@redneckz/wildless-cms-uni-blocks 0.14.766 → 0.14.768

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 (3249) hide show
  1. package/bundle/api/RetailAPI/StatusType.d.ts +1 -0
  2. package/bundle/api/RetailAPI/checkCaptcha.d.ts +4 -0
  3. package/bundle/api/RetailAPI/checkCode.d.ts +12 -0
  4. package/bundle/api/RetailAPI/createCaptcha.d.ts +1 -0
  5. package/bundle/api/RetailAPI/createDraftTask.d.ts +9 -0
  6. package/bundle/api/RetailAPI/createUserProfile.d.ts +9 -0
  7. package/bundle/api/RetailAPI/doRequest.d.ts +2 -0
  8. package/bundle/api/RetailAPI/draftTasksKZO.d.ts +34 -0
  9. package/bundle/api/RetailAPI/feedbackById.d.ts +1 -0
  10. package/bundle/api/RetailAPI/getCardTypes.d.ts +8 -0
  11. package/bundle/api/RetailAPI/getGenderFromName.d.ts +1 -0
  12. package/bundle/api/RetailAPI/getLastTaskStatus.d.ts +6 -0
  13. package/bundle/api/RetailAPI/getLink.d.ts +7 -0
  14. package/bundle/api/RetailAPI/getPaymentSystems.d.ts +2 -0
  15. package/bundle/api/RetailAPI/getTaskById.d.ts +6 -0
  16. package/bundle/api/RetailAPI/getTaskStatus.d.ts +18 -0
  17. package/bundle/api/RetailAPI/getTraceId.d.ts +1 -0
  18. package/bundle/api/RetailAPI/getUserTasks.d.ts +41 -0
  19. package/bundle/api/RetailAPI/regionOffices.d.ts +16 -0
  20. package/bundle/api/RetailAPI/sendCode.d.ts +7 -0
  21. package/bundle/api/RetailAPI/sendSignalToProcess.d.ts +7 -0
  22. package/bundle/api/RetailAPI/updateProfileEsia.d.ts +66 -0
  23. package/bundle/api/RetailAPI/updateRefreshToken.d.ts +1 -0
  24. package/bundle/api/RetailAPI/updateUserProfile.d.ts +21 -0
  25. package/bundle/api/RetailAPI/updateUserTask.d.ts +140 -0
  26. package/bundle/api/dadataHints/dadataHints.d.ts +2 -0
  27. package/bundle/api/dadataHints/dadataHintsType.d.ts +68 -0
  28. package/bundle/api/dadataHints/hintsListsOptions.d.ts +11 -0
  29. package/bundle/blocks.schema.json +1 -1
  30. package/bundle/bundle.umd.js +5942 -2427
  31. package/bundle/bundle.umd.min.js +1 -1
  32. package/bundle/components/ApplicationForm/getInitialFormState.d.ts +4 -2
  33. package/bundle/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +6 -0
  34. package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +18 -0
  35. package/bundle/components/ApplicationLeadForm/Footnote.d.ts +7 -0
  36. package/bundle/components/ApplicationLeadForm/GroupedConsents.d.ts +8 -0
  37. package/bundle/components/ApplicationLeadForm/applicationFormData.d.ts +2 -0
  38. package/bundle/components/ApplicationLeadForm/consents.d.ts +7 -0
  39. package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +3 -0
  40. package/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +10 -0
  41. package/bundle/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +3 -0
  42. package/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +4 -0
  43. package/bundle/components/ApplicationLeadForm/renderInputs.d.ts +2 -0
  44. package/bundle/components/ApplicationLeadForm/renderSubmitButton.d.ts +2 -0
  45. package/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +11 -0
  46. package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +5 -0
  47. package/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
  48. package/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +9 -0
  49. package/bundle/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  50. package/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +21 -0
  51. package/bundle/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  52. package/bundle/components/CreditCardForm/CreditCardFormStatus.d.ts +15 -0
  53. package/bundle/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +1 -0
  54. package/bundle/components/CreditCardForm/CreditCardFormStep.d.ts +9 -0
  55. package/bundle/components/CreditCardForm/FailedStatusContent.d.ts +1 -0
  56. package/bundle/components/CreditCardForm/PendingStatusContent.d.ts +3 -0
  57. package/bundle/components/CreditCardForm/ReworkStatusContent.d.ts +1 -0
  58. package/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +6 -0
  59. package/bundle/components/CreditCardForm/SuccessStatusCardContent.d.ts +1 -0
  60. package/bundle/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  61. package/bundle/components/CreditCardForm/formStateMap.d.ts +2 -0
  62. package/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  63. package/bundle/components/CreditCardForm/getDeliveryCreditCardData.d.ts +28 -0
  64. package/bundle/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  65. package/bundle/components/CreditCardForm/renderInputs.d.ts +9 -0
  66. package/bundle/components/CreditCardForm/renderStep.d.ts +10 -0
  67. package/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +8 -0
  68. package/bundle/components/CreditForm/CreditForm.d.ts +9 -0
  69. package/bundle/components/CreditForm/CreditFormContent.d.ts +9 -0
  70. package/bundle/components/CreditForm/CreditFormProgress.d.ts +6 -0
  71. package/bundle/components/CreditForm/CreditFormStatus.d.ts +15 -0
  72. package/bundle/components/CreditForm/CreditFormStatusTracker.d.ts +1 -0
  73. package/bundle/components/CreditForm/CreditFormStep.d.ts +11 -0
  74. package/bundle/components/CreditForm/FailedStatusContent.d.ts +1 -0
  75. package/bundle/components/CreditForm/PendingStatusContent.d.ts +3 -0
  76. package/bundle/components/CreditForm/ProgramsSourceProps.d.ts +16 -0
  77. package/bundle/components/CreditForm/ReworkStatusContent.d.ts +1 -0
  78. package/bundle/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
  79. package/bundle/components/CreditForm/SuccessStatusContent.d.ts +1 -0
  80. package/bundle/components/CreditForm/creditFormStepsData.d.ts +2 -0
  81. package/bundle/components/CreditForm/formStateMap.d.ts +2 -0
  82. package/bundle/components/CreditForm/getCalcData.d.ts +3 -0
  83. package/bundle/components/CreditForm/getInitialFormState.d.ts +2 -0
  84. package/bundle/components/CreditForm/renderInputs.d.ts +9 -0
  85. package/bundle/components/CreditForm/renderStep.d.ts +10 -0
  86. package/bundle/components/CreditForm/useCreditFormAPI.d.ts +8 -0
  87. package/bundle/components/CreditForm/utils.d.ts +25 -0
  88. package/bundle/hooks/useLeadFormData.d.ts +8 -0
  89. package/bundle/hooks/useRetailFormStore.d.ts +36 -0
  90. package/bundle/model/InputSectionsType.d.ts +9 -0
  91. package/bundle/services/retail/adaptors/getAdditionalInfoData.d.ts +3 -0
  92. package/bundle/services/retail/adaptors/getCalculatorData.d.ts +3 -0
  93. package/bundle/services/retail/adaptors/getCardOptionsData.d.ts +3 -0
  94. package/bundle/services/retail/adaptors/getCreditFormTaskData.d.ts +11 -0
  95. package/bundle/services/retail/adaptors/getDeliveryCreditData.d.ts +3 -0
  96. package/bundle/services/retail/adaptors/getEmploymentData.d.ts +3 -0
  97. package/bundle/services/retail/adaptors/getFamilyStatusAndIncomeData.d.ts +4 -0
  98. package/bundle/services/retail/adaptors/getPersonalInfoData.d.ts +3 -0
  99. package/bundle/services/retail/content.d.ts +6 -0
  100. package/bundle/services/retail/external/types.d.ts +10 -0
  101. package/bundle/services/retail/external/utils.d.ts +2 -0
  102. package/bundle/services/retail/inputs.d.ts +75 -0
  103. package/bundle/services/retail/mockLocalStorage.d.ts +1 -0
  104. package/bundle/services/retail/model/EOrganizationActivityTypes.d.ts +23 -0
  105. package/bundle/services/retail/model/LeadFormData.d.ts +7 -0
  106. package/bundle/services/retail/model/LeadFormState.d.ts +146 -0
  107. package/bundle/services/retail/model/NameFieldDef.d.ts +6 -0
  108. package/bundle/services/retail/model/RetailFormContent.d.ts +26 -0
  109. package/bundle/services/retail/utils/calculateInputs.d.ts +5 -0
  110. package/bundle/services/retail/utils/getOrganizationParams.d.ts +17 -0
  111. package/bundle/services/retail/utils/getUpdateUserProfile.d.ts +3 -0
  112. package/bundle/ui-kit/CaptchaDialog/CaptchaDialog.d.ts +6 -0
  113. package/bundle/ui-kit/Checkbox/CheckboxWithDoc.d.ts +6 -0
  114. package/bundle/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +5 -0
  115. package/bundle/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -0
  116. package/bundle/ui-kit/DocumentDialog/DocumentDialog.d.ts +6 -0
  117. package/bundle/ui-kit/DocumentDialog/useDocumentDialog.d.ts +2 -0
  118. package/bundle/ui-kit/DraftDialog/DraftActionButton.d.ts +8 -0
  119. package/bundle/ui-kit/DraftDialog/DraftDialog.d.ts +7 -0
  120. package/bundle/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +4 -0
  121. package/bundle/ui-kit/DraftDialog/parseDraftTask.d.ts +3 -0
  122. package/bundle/ui-kit/DraftDialog/useDraftDialog.d.ts +10 -0
  123. package/bundle/ui-kit/DraftDialog/utils.d.ts +148 -0
  124. package/bundle/ui-kit/EsiaLoginDialog/EsiaLoginDialog.d.ts +4 -0
  125. package/bundle/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.d.ts +1 -0
  126. package/bundle/ui-kit/FormField/BaseFieldDef.d.ts +1 -1
  127. package/bundle/ui-kit/FormField/Fields/AddressFactField.d.ts +2 -0
  128. package/bundle/ui-kit/FormField/Fields/AddressField.d.ts +20 -0
  129. package/bundle/ui-kit/FormField/Fields/AddressMatchField.d.ts +2 -0
  130. package/bundle/ui-kit/FormField/Fields/AddressRetailField.d.ts +2 -0
  131. package/bundle/ui-kit/FormField/Fields/AmountWorkersField.d.ts +2 -0
  132. package/bundle/ui-kit/FormField/Fields/ApplierTypeField.d.ts +7 -0
  133. package/bundle/ui-kit/FormField/Fields/ArmyIdFlgField.d.ts +2 -0
  134. package/bundle/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
  135. package/bundle/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
  136. package/bundle/ui-kit/FormField/Fields/BeginDateField.d.ts +2 -0
  137. package/bundle/ui-kit/FormField/Fields/BirthPlaceField.d.ts +2 -0
  138. package/bundle/ui-kit/FormField/Fields/CardCategoryField.d.ts +2 -0
  139. package/bundle/ui-kit/FormField/Fields/ChildrenField.d.ts +2 -0
  140. package/bundle/ui-kit/FormField/Fields/CodeWordField.d.ts +2 -0
  141. package/bundle/ui-kit/FormField/Fields/ConfirmationIncomeField.d.ts +2 -0
  142. package/bundle/ui-kit/FormField/Fields/ConscriptionField.d.ts +2 -0
  143. package/bundle/ui-kit/FormField/Fields/ConsentField.d.ts +2 -0
  144. package/bundle/ui-kit/FormField/Fields/CreditCalcField.d.ts +2 -0
  145. package/bundle/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
  146. package/bundle/ui-kit/FormField/Fields/CurrencyField.d.ts +2 -0
  147. package/bundle/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  148. package/bundle/ui-kit/FormField/Fields/DependentsField.d.ts +2 -0
  149. package/bundle/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
  150. package/bundle/ui-kit/FormField/Fields/DulIssueDateField.d.ts +2 -0
  151. package/bundle/ui-kit/FormField/Fields/DulIssuedByField.d.ts +2 -0
  152. package/bundle/ui-kit/FormField/Fields/DulNumberField.d.ts +2 -0
  153. package/bundle/ui-kit/FormField/Fields/DulSerieField.d.ts +2 -0
  154. package/bundle/ui-kit/FormField/Fields/DulSubdivisionCodeField.d.ts +2 -0
  155. package/bundle/ui-kit/FormField/Fields/EducationField.d.ts +2 -0
  156. package/bundle/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +2 -0
  157. package/bundle/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +2 -0
  158. package/bundle/ui-kit/FormField/Fields/EmploymentField.d.ts +2 -0
  159. package/bundle/ui-kit/FormField/Fields/ExpensesField.d.ts +2 -0
  160. package/bundle/ui-kit/FormField/Fields/FamilyMembersField.d.ts +2 -0
  161. package/bundle/ui-kit/FormField/Fields/FamilyStatusField.d.ts +2 -0
  162. package/bundle/ui-kit/FormField/Fields/GeneralSeniorityField.d.ts +2 -0
  163. package/bundle/ui-kit/FormField/Fields/HousingField.d.ts +2 -0
  164. package/bundle/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
  165. package/bundle/ui-kit/FormField/Fields/JobsNumberField.d.ts +2 -0
  166. package/bundle/ui-kit/FormField/Fields/LastJobExperienceField.d.ts +2 -0
  167. package/bundle/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
  168. package/bundle/ui-kit/FormField/Fields/LegalFormField.d.ts +2 -0
  169. package/bundle/ui-kit/FormField/Fields/LimitedBirthdayField.d.ts +2 -0
  170. package/bundle/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
  171. package/bundle/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  172. package/bundle/ui-kit/FormField/Fields/OrganizationField.d.ts +2 -0
  173. package/bundle/ui-kit/FormField/Fields/OrganizationNameField.d.ts +2 -0
  174. package/bundle/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
  175. package/bundle/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
  176. package/bundle/ui-kit/FormField/Fields/ParticipantDateRegistrationField.d.ts +2 -0
  177. package/bundle/ui-kit/FormField/Fields/PaymentSystemField.d.ts +2 -0
  178. package/bundle/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +2 -0
  179. package/bundle/ui-kit/FormField/Fields/RegionRetailField.d.ts +2 -0
  180. package/bundle/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
  181. package/bundle/ui-kit/FormField/Fields/SexField.d.ts +4 -0
  182. package/bundle/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
  183. package/bundle/ui-kit/FormField/Fields/SnilsField.d.ts +2 -0
  184. package/bundle/ui-kit/FormField/Fields/TotalIncomeField.d.ts +2 -0
  185. package/bundle/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
  186. package/bundle/ui-kit/FormField/SelectField.d.ts +12 -0
  187. package/bundle/ui-kit/FormField/getObjectValidator.d.ts +1 -1
  188. package/bundle/ui-kit/FormField/isEsiaAuthorize.d.ts +2 -0
  189. package/bundle/ui-kit/FormField/shouldRenderField.d.ts +1 -1
  190. package/bundle/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
  191. package/bundle/ui-kit/FormField/validators.d.ts +10 -0
  192. package/bundle/ui-kit/Input/InputPopup.d.ts +8 -0
  193. package/bundle/ui-kit/Input/InputProps.d.ts +4 -0
  194. package/bundle/ui-kit/Input/useInputPopup.d.ts +13 -0
  195. package/bundle/ui-kit/VerifyPhoneDialog/InputCode.d.ts +8 -0
  196. package/bundle/ui-kit/VerifyPhoneDialog/SubmitButton.d.ts +7 -0
  197. package/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +10 -0
  198. package/bundle/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +16 -0
  199. package/dist/api/RetailAPI/StatusType.d.ts +1 -0
  200. package/dist/api/RetailAPI/StatusType.js +2 -0
  201. package/dist/api/RetailAPI/StatusType.js.map +1 -0
  202. package/dist/api/RetailAPI/checkCaptcha.d.ts +4 -0
  203. package/dist/api/RetailAPI/checkCaptcha.js +8 -0
  204. package/dist/api/RetailAPI/checkCaptcha.js.map +1 -0
  205. package/dist/api/RetailAPI/checkCode.d.ts +12 -0
  206. package/dist/api/RetailAPI/checkCode.js +12 -0
  207. package/dist/api/RetailAPI/checkCode.js.map +1 -0
  208. package/dist/api/RetailAPI/createCaptcha.d.ts +1 -0
  209. package/dist/api/RetailAPI/createCaptcha.js +6 -0
  210. package/dist/api/RetailAPI/createCaptcha.js.map +1 -0
  211. package/dist/api/RetailAPI/createDraftTask.d.ts +9 -0
  212. package/dist/api/RetailAPI/createDraftTask.js +9 -0
  213. package/dist/api/RetailAPI/createDraftTask.js.map +1 -0
  214. package/dist/api/RetailAPI/createUserProfile.d.ts +9 -0
  215. package/dist/api/RetailAPI/createUserProfile.js +6 -0
  216. package/dist/api/RetailAPI/createUserProfile.js.map +1 -0
  217. package/dist/api/RetailAPI/doRequest.d.ts +2 -0
  218. package/dist/api/RetailAPI/doRequest.js +36 -0
  219. package/dist/api/RetailAPI/doRequest.js.map +1 -0
  220. package/dist/api/RetailAPI/draftTasksKZO.d.ts +34 -0
  221. package/dist/api/RetailAPI/draftTasksKZO.js +9 -0
  222. package/dist/api/RetailAPI/draftTasksKZO.js.map +1 -0
  223. package/dist/api/RetailAPI/feedbackById.d.ts +1 -0
  224. package/dist/api/RetailAPI/feedbackById.js +9 -0
  225. package/dist/api/RetailAPI/feedbackById.js.map +1 -0
  226. package/dist/api/RetailAPI/getCardTypes.d.ts +8 -0
  227. package/dist/api/RetailAPI/getCardTypes.js +12 -0
  228. package/dist/api/RetailAPI/getCardTypes.js.map +1 -0
  229. package/dist/api/RetailAPI/getGenderFromName.d.ts +1 -0
  230. package/dist/api/RetailAPI/getGenderFromName.js +17 -0
  231. package/dist/api/RetailAPI/getGenderFromName.js.map +1 -0
  232. package/dist/api/RetailAPI/getLastTaskStatus.d.ts +6 -0
  233. package/dist/api/RetailAPI/getLastTaskStatus.js +9 -0
  234. package/dist/api/RetailAPI/getLastTaskStatus.js.map +1 -0
  235. package/dist/api/RetailAPI/getLink.d.ts +7 -0
  236. package/dist/api/RetailAPI/getLink.js +6 -0
  237. package/dist/api/RetailAPI/getLink.js.map +1 -0
  238. package/dist/api/RetailAPI/getPaymentSystems.d.ts +2 -0
  239. package/dist/api/RetailAPI/getPaymentSystems.js +15 -0
  240. package/dist/api/RetailAPI/getPaymentSystems.js.map +1 -0
  241. package/dist/api/RetailAPI/getTaskById.d.ts +6 -0
  242. package/dist/api/RetailAPI/getTaskById.js +9 -0
  243. package/dist/api/RetailAPI/getTaskById.js.map +1 -0
  244. package/dist/api/RetailAPI/getTaskStatus.d.ts +18 -0
  245. package/dist/api/RetailAPI/getTaskStatus.js +18 -0
  246. package/dist/api/RetailAPI/getTaskStatus.js.map +1 -0
  247. package/dist/api/RetailAPI/getTraceId.d.ts +1 -0
  248. package/dist/api/RetailAPI/getTraceId.js +9 -0
  249. package/dist/api/RetailAPI/getTraceId.js.map +1 -0
  250. package/dist/api/RetailAPI/getUserTasks.d.ts +41 -0
  251. package/dist/api/RetailAPI/getUserTasks.js +15 -0
  252. package/dist/api/RetailAPI/getUserTasks.js.map +1 -0
  253. package/dist/api/RetailAPI/regionOffices.d.ts +16 -0
  254. package/dist/api/RetailAPI/regionOffices.js +20 -0
  255. package/dist/api/RetailAPI/regionOffices.js.map +1 -0
  256. package/dist/api/RetailAPI/sendCode.d.ts +7 -0
  257. package/dist/api/RetailAPI/sendCode.js +8 -0
  258. package/dist/api/RetailAPI/sendCode.js.map +1 -0
  259. package/dist/api/RetailAPI/sendSignalToProcess.d.ts +7 -0
  260. package/dist/api/RetailAPI/sendSignalToProcess.js +6 -0
  261. package/dist/api/RetailAPI/sendSignalToProcess.js.map +1 -0
  262. package/dist/api/RetailAPI/updateProfileEsia.d.ts +66 -0
  263. package/dist/api/RetailAPI/updateProfileEsia.js +6 -0
  264. package/dist/api/RetailAPI/updateProfileEsia.js.map +1 -0
  265. package/dist/api/RetailAPI/updateRefreshToken.d.ts +1 -0
  266. package/dist/api/RetailAPI/updateRefreshToken.js +39 -0
  267. package/dist/api/RetailAPI/updateRefreshToken.js.map +1 -0
  268. package/dist/api/RetailAPI/updateUserProfile.d.ts +21 -0
  269. package/dist/api/RetailAPI/updateUserProfile.js +6 -0
  270. package/dist/api/RetailAPI/updateUserProfile.js.map +1 -0
  271. package/dist/api/RetailAPI/updateUserTask.d.ts +140 -0
  272. package/dist/api/RetailAPI/updateUserTask.js +6 -0
  273. package/dist/api/RetailAPI/updateUserTask.js.map +1 -0
  274. package/dist/api/dadataHints/dadataHints.d.ts +2 -0
  275. package/dist/api/dadataHints/dadataHints.js +38 -0
  276. package/dist/api/dadataHints/dadataHints.js.map +1 -0
  277. package/dist/api/dadataHints/dadataHintsType.d.ts +68 -0
  278. package/dist/api/dadataHints/dadataHintsType.js +2 -0
  279. package/dist/api/dadataHints/dadataHintsType.js.map +1 -0
  280. package/dist/api/dadataHints/hintsListsOptions.d.ts +11 -0
  281. package/dist/api/dadataHints/hintsListsOptions.js +58 -0
  282. package/dist/api/dadataHints/hintsListsOptions.js.map +1 -0
  283. package/dist/components/ApplicationForm/getFormatData.js +5 -2
  284. package/dist/components/ApplicationForm/getFormatData.js.map +1 -1
  285. package/dist/components/ApplicationForm/getInitialFormState.d.ts +4 -2
  286. package/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
  287. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +6 -0
  288. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +40 -0
  289. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -0
  290. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +18 -0
  291. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js +2 -0
  292. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -0
  293. package/dist/components/ApplicationLeadForm/Footnote.d.ts +7 -0
  294. package/dist/components/ApplicationLeadForm/Footnote.js +9 -0
  295. package/dist/components/ApplicationLeadForm/Footnote.js.map +1 -0
  296. package/dist/components/ApplicationLeadForm/GroupedConsents.d.ts +8 -0
  297. package/dist/components/ApplicationLeadForm/GroupedConsents.js +33 -0
  298. package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -0
  299. package/dist/components/ApplicationLeadForm/applicationFormData.d.ts +2 -0
  300. package/dist/components/ApplicationLeadForm/applicationFormData.js +25 -0
  301. package/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -0
  302. package/dist/components/ApplicationLeadForm/consents.d.ts +7 -0
  303. package/dist/components/ApplicationLeadForm/consents.js +25 -0
  304. package/dist/components/ApplicationLeadForm/consents.js.map +1 -0
  305. package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +3 -0
  306. package/dist/components/ApplicationLeadForm/getInitialFormState.js +24 -0
  307. package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -0
  308. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +10 -0
  309. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +51 -0
  310. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -0
  311. package/dist/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +3 -0
  312. package/dist/components/ApplicationLeadForm/pasreEsiaProfile.js +53 -0
  313. package/dist/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -0
  314. package/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +4 -0
  315. package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +14 -0
  316. package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -0
  317. package/dist/components/ApplicationLeadForm/renderInputs.d.ts +2 -0
  318. package/dist/components/ApplicationLeadForm/renderInputs.js +18 -0
  319. package/dist/components/ApplicationLeadForm/renderInputs.js.map +1 -0
  320. package/dist/components/ApplicationLeadForm/renderSubmitButton.d.ts +2 -0
  321. package/dist/components/ApplicationLeadForm/renderSubmitButton.js +7 -0
  322. package/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -0
  323. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +11 -0
  324. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +114 -0
  325. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -0
  326. package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +5 -0
  327. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +55 -0
  328. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -0
  329. package/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
  330. package/dist/components/ApplicationLeadForm/useLeadFormStore.js +6 -0
  331. package/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -0
  332. package/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +9 -0
  333. package/dist/components/ApplicationLeadForm/useSaveUserData.js +17 -0
  334. package/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -0
  335. package/dist/components/Blocks.js +6 -0
  336. package/dist/components/Blocks.js.map +1 -1
  337. package/dist/components/Blocks.mobile.js +6 -0
  338. package/dist/components/Blocks.mobile.js.map +1 -1
  339. package/dist/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  340. package/dist/components/CreditCardForm/CreditCardForm.js +40 -0
  341. package/dist/components/CreditCardForm/CreditCardForm.js.map +1 -0
  342. package/dist/components/CreditCardForm/CreditCardFormContent.d.ts +21 -0
  343. package/dist/components/CreditCardForm/CreditCardFormContent.js +2 -0
  344. package/dist/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
  345. package/dist/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  346. package/dist/components/CreditCardForm/CreditCardFormProgress.js +11 -0
  347. package/dist/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
  348. package/dist/components/CreditCardForm/CreditCardFormStatus.d.ts +15 -0
  349. package/dist/components/CreditCardForm/CreditCardFormStatus.js +23 -0
  350. package/dist/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
  351. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +1 -0
  352. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +51 -0
  353. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
  354. package/dist/components/CreditCardForm/CreditCardFormStep.d.ts +9 -0
  355. package/dist/components/CreditCardForm/CreditCardFormStep.js +28 -0
  356. package/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
  357. package/dist/components/CreditCardForm/FailedStatusContent.d.ts +1 -0
  358. package/dist/components/CreditCardForm/FailedStatusContent.js +7 -0
  359. package/dist/components/CreditCardForm/FailedStatusContent.js.map +1 -0
  360. package/dist/components/CreditCardForm/PendingStatusContent.d.ts +3 -0
  361. package/dist/components/CreditCardForm/PendingStatusContent.js +20 -0
  362. package/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -0
  363. package/dist/components/CreditCardForm/ReworkStatusContent.d.ts +1 -0
  364. package/dist/components/CreditCardForm/ReworkStatusContent.js +35 -0
  365. package/dist/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
  366. package/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +6 -0
  367. package/dist/components/CreditCardForm/StepsNavigationButtons.js +12 -0
  368. package/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
  369. package/dist/components/CreditCardForm/SuccessStatusCardContent.d.ts +1 -0
  370. package/dist/components/CreditCardForm/SuccessStatusCardContent.js +37 -0
  371. package/dist/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -0
  372. package/dist/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  373. package/dist/components/CreditCardForm/creditCardFormStepsData.js +9 -0
  374. package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
  375. package/dist/components/CreditCardForm/formStateMap.d.ts +2 -0
  376. package/dist/components/CreditCardForm/formStateMap.js +89 -0
  377. package/dist/components/CreditCardForm/formStateMap.js.map +1 -0
  378. package/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  379. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +57 -0
  380. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
  381. package/dist/components/CreditCardForm/getDeliveryCreditCardData.d.ts +28 -0
  382. package/dist/components/CreditCardForm/getDeliveryCreditCardData.js +39 -0
  383. package/dist/components/CreditCardForm/getDeliveryCreditCardData.js.map +1 -0
  384. package/dist/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  385. package/dist/components/CreditCardForm/getInitialFormState.js +22 -0
  386. package/dist/components/CreditCardForm/getInitialFormState.js.map +1 -0
  387. package/dist/components/CreditCardForm/renderInputs.d.ts +9 -0
  388. package/dist/components/CreditCardForm/renderInputs.js +8 -0
  389. package/dist/components/CreditCardForm/renderInputs.js.map +1 -0
  390. package/dist/components/CreditCardForm/renderStep.d.ts +10 -0
  391. package/dist/components/CreditCardForm/renderStep.js +15 -0
  392. package/dist/components/CreditCardForm/renderStep.js.map +1 -0
  393. package/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +8 -0
  394. package/dist/components/CreditCardForm/useCreditCardFormAPI.js +55 -0
  395. package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
  396. package/dist/components/CreditForm/CreditForm.d.ts +9 -0
  397. package/dist/components/CreditForm/CreditForm.js +41 -0
  398. package/dist/components/CreditForm/CreditForm.js.map +1 -0
  399. package/dist/components/CreditForm/CreditFormContent.d.ts +9 -0
  400. package/dist/components/CreditForm/CreditFormContent.js +2 -0
  401. package/dist/components/CreditForm/CreditFormContent.js.map +1 -0
  402. package/dist/components/CreditForm/CreditFormProgress.d.ts +6 -0
  403. package/dist/components/CreditForm/CreditFormProgress.js +11 -0
  404. package/dist/components/CreditForm/CreditFormProgress.js.map +1 -0
  405. package/dist/components/CreditForm/CreditFormStatus.d.ts +15 -0
  406. package/dist/components/CreditForm/CreditFormStatus.js +25 -0
  407. package/dist/components/CreditForm/CreditFormStatus.js.map +1 -0
  408. package/dist/components/CreditForm/CreditFormStatusTracker.d.ts +1 -0
  409. package/dist/components/CreditForm/CreditFormStatusTracker.js +51 -0
  410. package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -0
  411. package/dist/components/CreditForm/CreditFormStep.d.ts +11 -0
  412. package/dist/components/CreditForm/CreditFormStep.js +31 -0
  413. package/dist/components/CreditForm/CreditFormStep.js.map +1 -0
  414. package/dist/components/CreditForm/FailedStatusContent.d.ts +1 -0
  415. package/dist/components/CreditForm/FailedStatusContent.js +7 -0
  416. package/dist/components/CreditForm/FailedStatusContent.js.map +1 -0
  417. package/dist/components/CreditForm/PendingStatusContent.d.ts +3 -0
  418. package/dist/components/CreditForm/PendingStatusContent.js +32 -0
  419. package/dist/components/CreditForm/PendingStatusContent.js.map +1 -0
  420. package/dist/components/CreditForm/ProgramsSourceProps.d.ts +16 -0
  421. package/dist/components/CreditForm/ProgramsSourceProps.js +2 -0
  422. package/dist/components/CreditForm/ProgramsSourceProps.js.map +1 -0
  423. package/dist/components/CreditForm/ReworkStatusContent.d.ts +1 -0
  424. package/dist/components/CreditForm/ReworkStatusContent.js +25 -0
  425. package/dist/components/CreditForm/ReworkStatusContent.js.map +1 -0
  426. package/dist/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
  427. package/dist/components/CreditForm/StepsNavigationButtons.js +12 -0
  428. package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -0
  429. package/dist/components/CreditForm/SuccessStatusContent.d.ts +1 -0
  430. package/dist/components/CreditForm/SuccessStatusContent.js +32 -0
  431. package/dist/components/CreditForm/SuccessStatusContent.js.map +1 -0
  432. package/dist/components/CreditForm/creditFormStepsData.d.ts +2 -0
  433. package/dist/components/CreditForm/creditFormStepsData.js +9 -0
  434. package/dist/components/CreditForm/creditFormStepsData.js.map +1 -0
  435. package/dist/components/CreditForm/formStateMap.d.ts +2 -0
  436. package/dist/components/CreditForm/formStateMap.js +84 -0
  437. package/dist/components/CreditForm/formStateMap.js.map +1 -0
  438. package/dist/components/CreditForm/getCalcData.d.ts +3 -0
  439. package/dist/components/CreditForm/getCalcData.js +16 -0
  440. package/dist/components/CreditForm/getCalcData.js.map +1 -0
  441. package/dist/components/CreditForm/getInitialFormState.d.ts +2 -0
  442. package/dist/components/CreditForm/getInitialFormState.js +22 -0
  443. package/dist/components/CreditForm/getInitialFormState.js.map +1 -0
  444. package/dist/components/CreditForm/renderInputs.d.ts +9 -0
  445. package/dist/components/CreditForm/renderInputs.js +7 -0
  446. package/dist/components/CreditForm/renderInputs.js.map +1 -0
  447. package/dist/components/CreditForm/renderStep.d.ts +10 -0
  448. package/dist/components/CreditForm/renderStep.js +15 -0
  449. package/dist/components/CreditForm/renderStep.js.map +1 -0
  450. package/dist/components/CreditForm/useCreditFormAPI.d.ts +8 -0
  451. package/dist/components/CreditForm/useCreditFormAPI.js +59 -0
  452. package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -0
  453. package/dist/components/CreditForm/utils.d.ts +25 -0
  454. package/dist/components/CreditForm/utils.js +72 -0
  455. package/dist/components/CreditForm/utils.js.map +1 -0
  456. package/dist/hooks/useLeadFormData.d.ts +8 -0
  457. package/dist/hooks/useLeadFormData.js +17 -0
  458. package/dist/hooks/useLeadFormData.js.map +1 -0
  459. package/dist/hooks/useRetailFormStore.d.ts +36 -0
  460. package/dist/hooks/useRetailFormStore.js +8 -0
  461. package/dist/hooks/useRetailFormStore.js.map +1 -0
  462. package/dist/model/InputSectionsType.d.ts +9 -0
  463. package/dist/services/retail/adaptors/getAdditionalInfoData.d.ts +3 -0
  464. package/dist/services/retail/adaptors/getAdditionalInfoData.js +13 -0
  465. package/dist/services/retail/adaptors/getAdditionalInfoData.js.map +1 -0
  466. package/dist/services/retail/adaptors/getCalculatorData.d.ts +3 -0
  467. package/dist/services/retail/adaptors/getCalculatorData.js +11 -0
  468. package/dist/services/retail/adaptors/getCalculatorData.js.map +1 -0
  469. package/dist/services/retail/adaptors/getCardOptionsData.d.ts +3 -0
  470. package/dist/services/retail/adaptors/getCardOptionsData.js +13 -0
  471. package/dist/services/retail/adaptors/getCardOptionsData.js.map +1 -0
  472. package/dist/services/retail/adaptors/getCreditFormTaskData.d.ts +11 -0
  473. package/dist/services/retail/adaptors/getCreditFormTaskData.js +58 -0
  474. package/dist/services/retail/adaptors/getCreditFormTaskData.js.map +1 -0
  475. package/dist/services/retail/adaptors/getDeliveryCreditData.d.ts +3 -0
  476. package/dist/services/retail/adaptors/getDeliveryCreditData.js +10 -0
  477. package/dist/services/retail/adaptors/getDeliveryCreditData.js.map +1 -0
  478. package/dist/services/retail/adaptors/getEmploymentData.d.ts +3 -0
  479. package/dist/services/retail/adaptors/getEmploymentData.js +31 -0
  480. package/dist/services/retail/adaptors/getEmploymentData.js.map +1 -0
  481. package/dist/services/retail/adaptors/getFamilyStatusAndIncomeData.d.ts +4 -0
  482. package/dist/services/retail/adaptors/getFamilyStatusAndIncomeData.js +30 -0
  483. package/dist/services/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -0
  484. package/dist/services/retail/adaptors/getPersonalInfoData.d.ts +3 -0
  485. package/dist/services/retail/adaptors/getPersonalInfoData.js +35 -0
  486. package/dist/services/retail/adaptors/getPersonalInfoData.js.map +1 -0
  487. package/dist/services/retail/content.d.ts +6 -0
  488. package/dist/services/retail/content.js +364 -0
  489. package/dist/services/retail/content.js.map +1 -0
  490. package/dist/services/retail/external/types.d.ts +10 -0
  491. package/dist/services/retail/external/types.js +2 -0
  492. package/dist/services/retail/external/types.js.map +1 -0
  493. package/dist/services/retail/external/utils.d.ts +2 -0
  494. package/dist/services/retail/external/utils.js +7 -0
  495. package/dist/services/retail/external/utils.js.map +1 -0
  496. package/dist/services/retail/inputs.d.ts +75 -0
  497. package/dist/services/retail/inputs.js +138 -0
  498. package/dist/services/retail/inputs.js.map +1 -0
  499. package/dist/services/retail/mockLocalStorage.d.ts +1 -0
  500. package/dist/services/retail/mockLocalStorage.js +35 -0
  501. package/dist/services/retail/mockLocalStorage.js.map +1 -0
  502. package/dist/services/retail/model/EOrganizationActivityTypes.d.ts +23 -0
  503. package/dist/services/retail/model/EOrganizationActivityTypes.js +2 -0
  504. package/dist/services/retail/model/EOrganizationActivityTypes.js.map +1 -0
  505. package/dist/services/retail/model/LeadFormData.d.ts +7 -0
  506. package/dist/services/retail/model/LeadFormData.js +2 -0
  507. package/dist/services/retail/model/LeadFormData.js.map +1 -0
  508. package/dist/services/retail/model/LeadFormState.d.ts +146 -0
  509. package/dist/services/retail/model/LeadFormState.js +2 -0
  510. package/dist/services/retail/model/LeadFormState.js.map +1 -0
  511. package/dist/services/retail/model/NameFieldDef.d.ts +6 -0
  512. package/dist/services/retail/model/NameFieldDef.js +2 -0
  513. package/dist/services/retail/model/NameFieldDef.js.map +1 -0
  514. package/dist/services/retail/model/RetailFormContent.d.ts +26 -0
  515. package/dist/services/retail/model/RetailFormContent.js +2 -0
  516. package/dist/services/retail/model/RetailFormContent.js.map +1 -0
  517. package/dist/services/retail/utils/calculateInputs.d.ts +5 -0
  518. package/dist/services/retail/utils/calculateInputs.js +31 -0
  519. package/dist/services/retail/utils/calculateInputs.js.map +1 -0
  520. package/dist/services/retail/utils/getOrganizationParams.d.ts +17 -0
  521. package/dist/services/retail/utils/getOrganizationParams.js +106 -0
  522. package/dist/services/retail/utils/getOrganizationParams.js.map +1 -0
  523. package/dist/services/retail/utils/getUpdateUserProfile.d.ts +3 -0
  524. package/dist/services/retail/utils/getUpdateUserProfile.js +27 -0
  525. package/dist/services/retail/utils/getUpdateUserProfile.js.map +1 -0
  526. package/dist/ui-kit/CaptchaDialog/CaptchaDialog.d.ts +6 -0
  527. package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +39 -0
  528. package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -0
  529. package/dist/ui-kit/Checkbox/CheckboxWithDoc.d.ts +6 -0
  530. package/dist/ui-kit/Checkbox/CheckboxWithDoc.js +14 -0
  531. package/dist/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -0
  532. package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +5 -0
  533. package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +42 -0
  534. package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -0
  535. package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -0
  536. package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +44 -0
  537. package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -0
  538. package/dist/ui-kit/DocumentDialog/DocumentDialog.d.ts +6 -0
  539. package/dist/ui-kit/DocumentDialog/DocumentDialog.js +16 -0
  540. package/dist/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -0
  541. package/dist/ui-kit/DocumentDialog/useDocumentDialog.d.ts +2 -0
  542. package/dist/ui-kit/DocumentDialog/useDocumentDialog.js +19 -0
  543. package/dist/ui-kit/DocumentDialog/useDocumentDialog.js.map +1 -0
  544. package/dist/ui-kit/DraftDialog/DraftActionButton.d.ts +8 -0
  545. package/dist/ui-kit/DraftDialog/DraftActionButton.js +9 -0
  546. package/dist/ui-kit/DraftDialog/DraftActionButton.js.map +1 -0
  547. package/dist/ui-kit/DraftDialog/DraftDialog.d.ts +7 -0
  548. package/dist/ui-kit/DraftDialog/DraftDialog.js +37 -0
  549. package/dist/ui-kit/DraftDialog/DraftDialog.js.map +1 -0
  550. package/dist/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +4 -0
  551. package/dist/ui-kit/DraftDialog/EmptyDraftDialog.js +22 -0
  552. package/dist/ui-kit/DraftDialog/EmptyDraftDialog.js.map +1 -0
  553. package/dist/ui-kit/DraftDialog/parseDraftTask.d.ts +3 -0
  554. package/dist/ui-kit/DraftDialog/parseDraftTask.js +67 -0
  555. package/dist/ui-kit/DraftDialog/parseDraftTask.js.map +1 -0
  556. package/dist/ui-kit/DraftDialog/useDraftDialog.d.ts +10 -0
  557. package/dist/ui-kit/DraftDialog/useDraftDialog.js +16 -0
  558. package/dist/ui-kit/DraftDialog/useDraftDialog.js.map +1 -0
  559. package/dist/ui-kit/DraftDialog/utils.d.ts +148 -0
  560. package/dist/ui-kit/DraftDialog/utils.js +96 -0
  561. package/dist/ui-kit/DraftDialog/utils.js.map +1 -0
  562. package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.d.ts +4 -0
  563. package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +33 -0
  564. package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -0
  565. package/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.d.ts +1 -0
  566. package/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +15 -0
  567. package/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -0
  568. package/dist/ui-kit/FormField/BaseFieldDef.d.ts +1 -1
  569. package/dist/ui-kit/FormField/Fields/AddressFactField.d.ts +2 -0
  570. package/dist/ui-kit/FormField/Fields/AddressFactField.js +56 -0
  571. package/dist/ui-kit/FormField/Fields/AddressFactField.js.map +1 -0
  572. package/dist/ui-kit/FormField/Fields/AddressField.d.ts +20 -0
  573. package/dist/ui-kit/FormField/Fields/AddressField.js +53 -0
  574. package/dist/ui-kit/FormField/Fields/AddressField.js.map +1 -0
  575. package/dist/ui-kit/FormField/Fields/AddressMatchField.d.ts +2 -0
  576. package/dist/ui-kit/FormField/Fields/AddressMatchField.js +9 -0
  577. package/dist/ui-kit/FormField/Fields/AddressMatchField.js.map +1 -0
  578. package/dist/ui-kit/FormField/Fields/AddressRetailField.d.ts +2 -0
  579. package/dist/ui-kit/FormField/Fields/AddressRetailField.js +37 -0
  580. package/dist/ui-kit/FormField/Fields/AddressRetailField.js.map +1 -0
  581. package/dist/ui-kit/FormField/Fields/AmountWorkersField.d.ts +2 -0
  582. package/dist/ui-kit/FormField/Fields/AmountWorkersField.js +19 -0
  583. package/dist/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -0
  584. package/dist/ui-kit/FormField/Fields/ApplierTypeField.d.ts +7 -0
  585. package/dist/ui-kit/FormField/Fields/ApplierTypeField.js +7 -5
  586. package/dist/ui-kit/FormField/Fields/ApplierTypeField.js.map +1 -1
  587. package/dist/ui-kit/FormField/Fields/ArmyIdFlgField.d.ts +2 -0
  588. package/dist/ui-kit/FormField/Fields/ArmyIdFlgField.js +7 -0
  589. package/dist/ui-kit/FormField/Fields/ArmyIdFlgField.js.map +1 -0
  590. package/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
  591. package/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js +7 -0
  592. package/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +1 -0
  593. package/dist/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
  594. package/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js +7 -0
  595. package/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -0
  596. package/dist/ui-kit/FormField/Fields/BeginDateField.d.ts +2 -0
  597. package/dist/ui-kit/FormField/Fields/BeginDateField.js +7 -0
  598. package/dist/ui-kit/FormField/Fields/BeginDateField.js.map +1 -0
  599. package/dist/ui-kit/FormField/Fields/BirthPlaceField.d.ts +2 -0
  600. package/dist/ui-kit/FormField/Fields/BirthPlaceField.js +9 -0
  601. package/dist/ui-kit/FormField/Fields/BirthPlaceField.js.map +1 -0
  602. package/dist/ui-kit/FormField/Fields/CardCategoryField.d.ts +2 -0
  603. package/dist/ui-kit/FormField/Fields/CardCategoryField.js +30 -0
  604. package/dist/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -0
  605. package/dist/ui-kit/FormField/Fields/ChildrenField.d.ts +2 -0
  606. package/dist/ui-kit/FormField/Fields/ChildrenField.js +7 -0
  607. package/dist/ui-kit/FormField/Fields/ChildrenField.js.map +1 -0
  608. package/dist/ui-kit/FormField/Fields/CodeWordField.d.ts +2 -0
  609. package/dist/ui-kit/FormField/Fields/CodeWordField.js +7 -0
  610. package/dist/ui-kit/FormField/Fields/CodeWordField.js.map +1 -0
  611. package/dist/ui-kit/FormField/Fields/ConfirmationIncomeField.d.ts +2 -0
  612. package/dist/ui-kit/FormField/Fields/ConfirmationIncomeField.js +11 -0
  613. package/dist/ui-kit/FormField/Fields/ConfirmationIncomeField.js.map +1 -0
  614. package/dist/ui-kit/FormField/Fields/ConscriptionField.d.ts +2 -0
  615. package/dist/ui-kit/FormField/Fields/ConscriptionField.js +11 -0
  616. package/dist/ui-kit/FormField/Fields/ConscriptionField.js.map +1 -0
  617. package/dist/ui-kit/FormField/Fields/ConsentField.d.ts +2 -0
  618. package/dist/ui-kit/FormField/Fields/ConsentField.js +8 -0
  619. package/dist/ui-kit/FormField/Fields/ConsentField.js.map +1 -0
  620. package/dist/ui-kit/FormField/Fields/CreditCalcField.d.ts +2 -0
  621. package/dist/ui-kit/FormField/Fields/CreditCalcField.js +28 -0
  622. package/dist/ui-kit/FormField/Fields/CreditCalcField.js.map +1 -0
  623. package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
  624. package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js +14 -0
  625. package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -0
  626. package/dist/ui-kit/FormField/Fields/CurrencyField.d.ts +2 -0
  627. package/dist/ui-kit/FormField/Fields/CurrencyField.js +8 -0
  628. package/dist/ui-kit/FormField/Fields/CurrencyField.js.map +1 -0
  629. package/dist/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  630. package/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js +7 -0
  631. package/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
  632. package/dist/ui-kit/FormField/Fields/DependentsField.d.ts +2 -0
  633. package/dist/ui-kit/FormField/Fields/DependentsField.js +7 -0
  634. package/dist/ui-kit/FormField/Fields/DependentsField.js.map +1 -0
  635. package/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
  636. package/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js +7 -0
  637. package/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -0
  638. package/dist/ui-kit/FormField/Fields/DulIssueDateField.d.ts +2 -0
  639. package/dist/ui-kit/FormField/Fields/DulIssueDateField.js +8 -0
  640. package/dist/ui-kit/FormField/Fields/DulIssueDateField.js.map +1 -0
  641. package/dist/ui-kit/FormField/Fields/DulIssuedByField.d.ts +2 -0
  642. package/dist/ui-kit/FormField/Fields/DulIssuedByField.js +15 -0
  643. package/dist/ui-kit/FormField/Fields/DulIssuedByField.js.map +1 -0
  644. package/dist/ui-kit/FormField/Fields/DulNumberField.d.ts +2 -0
  645. package/dist/ui-kit/FormField/Fields/DulNumberField.js +8 -0
  646. package/dist/ui-kit/FormField/Fields/DulNumberField.js.map +1 -0
  647. package/dist/ui-kit/FormField/Fields/DulSerieField.d.ts +2 -0
  648. package/dist/ui-kit/FormField/Fields/DulSerieField.js +8 -0
  649. package/dist/ui-kit/FormField/Fields/DulSerieField.js.map +1 -0
  650. package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.d.ts +2 -0
  651. package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +14 -0
  652. package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -0
  653. package/dist/ui-kit/FormField/Fields/EducationField.d.ts +2 -0
  654. package/dist/ui-kit/FormField/Fields/EducationField.js +11 -0
  655. package/dist/ui-kit/FormField/Fields/EducationField.js.map +1 -0
  656. package/dist/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +2 -0
  657. package/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js +19 -0
  658. package/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -0
  659. package/dist/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +2 -0
  660. package/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js +19 -0
  661. package/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -0
  662. package/dist/ui-kit/FormField/Fields/EmploymentField.d.ts +2 -0
  663. package/dist/ui-kit/FormField/Fields/EmploymentField.js +11 -0
  664. package/dist/ui-kit/FormField/Fields/EmploymentField.js.map +1 -0
  665. package/dist/ui-kit/FormField/Fields/ExpensesField.d.ts +2 -0
  666. package/dist/ui-kit/FormField/Fields/ExpensesField.js +7 -0
  667. package/dist/ui-kit/FormField/Fields/ExpensesField.js.map +1 -0
  668. package/dist/ui-kit/FormField/Fields/FamilyMembersField.d.ts +2 -0
  669. package/dist/ui-kit/FormField/Fields/FamilyMembersField.js +19 -0
  670. package/dist/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -0
  671. package/dist/ui-kit/FormField/Fields/FamilyStatusField.d.ts +2 -0
  672. package/dist/ui-kit/FormField/Fields/FamilyStatusField.js +11 -0
  673. package/dist/ui-kit/FormField/Fields/FamilyStatusField.js.map +1 -0
  674. package/dist/ui-kit/FormField/Fields/GeneralSeniorityField.d.ts +2 -0
  675. package/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js +7 -0
  676. package/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -0
  677. package/dist/ui-kit/FormField/Fields/HousingField.d.ts +2 -0
  678. package/dist/ui-kit/FormField/Fields/HousingField.js +11 -0
  679. package/dist/ui-kit/FormField/Fields/HousingField.js.map +1 -0
  680. package/dist/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
  681. package/dist/ui-kit/FormField/Fields/InfoCardField.js +7 -0
  682. package/dist/ui-kit/FormField/Fields/InfoCardField.js.map +1 -0
  683. package/dist/ui-kit/FormField/Fields/InnField.js +11 -1
  684. package/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
  685. package/dist/ui-kit/FormField/Fields/JobsNumberField.d.ts +2 -0
  686. package/dist/ui-kit/FormField/Fields/JobsNumberField.js +7 -0
  687. package/dist/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -0
  688. package/dist/ui-kit/FormField/Fields/LastJobExperienceField.d.ts +2 -0
  689. package/dist/ui-kit/FormField/Fields/LastJobExperienceField.js +7 -0
  690. package/dist/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -0
  691. package/dist/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
  692. package/dist/ui-kit/FormField/Fields/LegalEntityNameField.js +9 -0
  693. package/dist/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -0
  694. package/dist/ui-kit/FormField/Fields/LegalFormField.d.ts +2 -0
  695. package/dist/ui-kit/FormField/Fields/LegalFormField.js +7 -0
  696. package/dist/ui-kit/FormField/Fields/LegalFormField.js.map +1 -0
  697. package/dist/ui-kit/FormField/Fields/LimitedBirthdayField.d.ts +2 -0
  698. package/dist/ui-kit/FormField/Fields/LimitedBirthdayField.js +8 -0
  699. package/dist/ui-kit/FormField/Fields/LimitedBirthdayField.js.map +1 -0
  700. package/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
  701. package/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js +7 -0
  702. package/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -0
  703. package/dist/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  704. package/dist/ui-kit/FormField/Fields/MethodObtainField.js +11 -0
  705. package/dist/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
  706. package/dist/ui-kit/FormField/Fields/MiddleNameField.js +2 -1
  707. package/dist/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
  708. package/dist/ui-kit/FormField/Fields/NameField.js +2 -1
  709. package/dist/ui-kit/FormField/Fields/NameField.js.map +1 -1
  710. package/dist/ui-kit/FormField/Fields/OrganizationField.d.ts +2 -0
  711. package/dist/ui-kit/FormField/Fields/OrganizationField.js +19 -0
  712. package/dist/ui-kit/FormField/Fields/OrganizationField.js.map +1 -0
  713. package/dist/ui-kit/FormField/Fields/OrganizationNameField.d.ts +2 -0
  714. package/dist/ui-kit/FormField/Fields/OrganizationNameField.js +17 -0
  715. package/dist/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -0
  716. package/dist/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
  717. package/dist/ui-kit/FormField/Fields/OtherIncomeField.js +7 -0
  718. package/dist/ui-kit/FormField/Fields/OtherIncomeField.js.map +1 -0
  719. package/dist/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
  720. package/dist/ui-kit/FormField/Fields/PartInBusinessField.js +14 -0
  721. package/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -0
  722. package/dist/ui-kit/FormField/Fields/ParticipantDateRegistrationField.d.ts +2 -0
  723. package/dist/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js +7 -0
  724. package/dist/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js.map +1 -0
  725. package/dist/ui-kit/FormField/Fields/PaymentSystemField.d.ts +2 -0
  726. package/dist/ui-kit/FormField/Fields/PaymentSystemField.js +27 -0
  727. package/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -0
  728. package/dist/ui-kit/FormField/Fields/PhoneField.js +2 -1
  729. package/dist/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
  730. package/dist/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +2 -0
  731. package/dist/ui-kit/FormField/Fields/PositionOrganizationField.js +11 -0
  732. package/dist/ui-kit/FormField/Fields/PositionOrganizationField.js.map +1 -0
  733. package/dist/ui-kit/FormField/Fields/RegionRetailField.d.ts +2 -0
  734. package/dist/ui-kit/FormField/Fields/RegionRetailField.js +12 -0
  735. package/dist/ui-kit/FormField/Fields/RegionRetailField.js.map +1 -0
  736. package/dist/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
  737. package/dist/ui-kit/FormField/Fields/RetirementIncomeField.js +7 -0
  738. package/dist/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -0
  739. package/dist/ui-kit/FormField/Fields/SexField.d.ts +4 -0
  740. package/dist/ui-kit/FormField/Fields/SexField.js +27 -0
  741. package/dist/ui-kit/FormField/Fields/SexField.js.map +1 -0
  742. package/dist/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
  743. package/dist/ui-kit/FormField/Fields/ShareholderFlgField.js +7 -0
  744. package/dist/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -0
  745. package/dist/ui-kit/FormField/Fields/SnilsField.d.ts +2 -0
  746. package/dist/ui-kit/FormField/Fields/SnilsField.js +7 -0
  747. package/dist/ui-kit/FormField/Fields/SnilsField.js.map +1 -0
  748. package/dist/ui-kit/FormField/Fields/SurnameField.js +3 -1
  749. package/dist/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
  750. package/dist/ui-kit/FormField/Fields/TotalIncomeField.d.ts +2 -0
  751. package/dist/ui-kit/FormField/Fields/TotalIncomeField.js +7 -0
  752. package/dist/ui-kit/FormField/Fields/TotalIncomeField.js.map +1 -0
  753. package/dist/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
  754. package/dist/ui-kit/FormField/Fields/WagesField.js +7 -0
  755. package/dist/ui-kit/FormField/Fields/WagesField.js.map +1 -0
  756. package/{mobile/dist/ui-kit/FormField/Fields//320/241onsentToReceiveMaterialsField.js → dist/ui-kit/FormField/Fields/consentToReceiveMaterialsField.js} +1 -1
  757. package/dist/ui-kit/FormField/Fields/consentToReceiveMaterialsField.js.map +1 -0
  758. package/dist/ui-kit/FormField/SelectField.d.ts +12 -0
  759. package/dist/ui-kit/FormField/SelectField.js +15 -0
  760. package/dist/ui-kit/FormField/SelectField.js.map +1 -0
  761. package/dist/ui-kit/FormField/getField.js +2 -2
  762. package/dist/ui-kit/FormField/getField.js.map +1 -1
  763. package/dist/ui-kit/FormField/getObjectValidator.d.ts +1 -1
  764. package/dist/ui-kit/FormField/getObjectValidator.js +77 -8
  765. package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  766. package/dist/ui-kit/FormField/isEsiaAuthorize.d.ts +2 -0
  767. package/dist/ui-kit/FormField/isEsiaAuthorize.js +6 -0
  768. package/dist/ui-kit/FormField/isEsiaAuthorize.js.map +1 -0
  769. package/dist/ui-kit/FormField/shouldRenderField.d.ts +1 -1
  770. package/dist/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
  771. package/dist/ui-kit/FormField/updateOrganizationFields.js +25 -0
  772. package/dist/ui-kit/FormField/updateOrganizationFields.js.map +1 -0
  773. package/dist/ui-kit/FormField/validators.d.ts +10 -0
  774. package/dist/ui-kit/FormField/validators.js +53 -3
  775. package/dist/ui-kit/FormField/validators.js.map +1 -1
  776. package/dist/ui-kit/Input/InputControl.js +13 -4
  777. package/dist/ui-kit/Input/InputControl.js.map +1 -1
  778. package/dist/ui-kit/Input/InputPopup.d.ts +8 -0
  779. package/dist/ui-kit/Input/InputPopup.js +34 -0
  780. package/dist/ui-kit/Input/InputPopup.js.map +1 -0
  781. package/dist/ui-kit/Input/InputProps.d.ts +4 -0
  782. package/dist/ui-kit/Input/useInputPopup.d.ts +13 -0
  783. package/dist/ui-kit/Input/useInputPopup.js +67 -0
  784. package/dist/ui-kit/Input/useInputPopup.js.map +1 -0
  785. package/dist/ui-kit/VerifyPhoneDialog/InputCode.d.ts +8 -0
  786. package/dist/ui-kit/VerifyPhoneDialog/InputCode.js +46 -0
  787. package/dist/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -0
  788. package/dist/ui-kit/VerifyPhoneDialog/SubmitButton.d.ts +7 -0
  789. package/dist/ui-kit/VerifyPhoneDialog/SubmitButton.js +10 -0
  790. package/dist/ui-kit/VerifyPhoneDialog/SubmitButton.js.map +1 -0
  791. package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +10 -0
  792. package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +51 -0
  793. package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -0
  794. package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +16 -0
  795. package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +51 -0
  796. package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -0
  797. package/lib/api/RetailAPI/StatusType.d.ts +1 -0
  798. package/lib/api/RetailAPI/StatusType.js +2 -0
  799. package/lib/api/RetailAPI/StatusType.js.map +1 -0
  800. package/lib/api/RetailAPI/checkCaptcha.d.ts +4 -0
  801. package/lib/api/RetailAPI/checkCaptcha.js +5 -0
  802. package/lib/api/RetailAPI/checkCaptcha.js.map +1 -0
  803. package/lib/api/RetailAPI/checkCode.d.ts +12 -0
  804. package/lib/api/RetailAPI/checkCode.js +9 -0
  805. package/lib/api/RetailAPI/checkCode.js.map +1 -0
  806. package/lib/api/RetailAPI/createCaptcha.d.ts +1 -0
  807. package/lib/api/RetailAPI/createCaptcha.js +3 -0
  808. package/lib/api/RetailAPI/createCaptcha.js.map +1 -0
  809. package/lib/api/RetailAPI/createDraftTask.d.ts +9 -0
  810. package/lib/api/RetailAPI/createDraftTask.js +6 -0
  811. package/lib/api/RetailAPI/createDraftTask.js.map +1 -0
  812. package/lib/api/RetailAPI/createUserProfile.d.ts +9 -0
  813. package/lib/api/RetailAPI/createUserProfile.js +3 -0
  814. package/lib/api/RetailAPI/createUserProfile.js.map +1 -0
  815. package/lib/api/RetailAPI/doRequest.d.ts +2 -0
  816. package/lib/api/RetailAPI/doRequest.js +32 -0
  817. package/lib/api/RetailAPI/doRequest.js.map +1 -0
  818. package/lib/api/RetailAPI/draftTasksKZO.d.ts +34 -0
  819. package/lib/api/RetailAPI/draftTasksKZO.js +6 -0
  820. package/lib/api/RetailAPI/draftTasksKZO.js.map +1 -0
  821. package/lib/api/RetailAPI/feedbackById.d.ts +1 -0
  822. package/lib/api/RetailAPI/feedbackById.js +6 -0
  823. package/lib/api/RetailAPI/feedbackById.js.map +1 -0
  824. package/lib/api/RetailAPI/getCardTypes.d.ts +8 -0
  825. package/lib/api/RetailAPI/getCardTypes.js +9 -0
  826. package/lib/api/RetailAPI/getCardTypes.js.map +1 -0
  827. package/lib/api/RetailAPI/getGenderFromName.d.ts +1 -0
  828. package/lib/api/RetailAPI/getGenderFromName.js +14 -0
  829. package/lib/api/RetailAPI/getGenderFromName.js.map +1 -0
  830. package/lib/api/RetailAPI/getLastTaskStatus.d.ts +6 -0
  831. package/lib/api/RetailAPI/getLastTaskStatus.js +6 -0
  832. package/lib/api/RetailAPI/getLastTaskStatus.js.map +1 -0
  833. package/lib/api/RetailAPI/getLink.d.ts +7 -0
  834. package/lib/api/RetailAPI/getLink.js +3 -0
  835. package/lib/api/RetailAPI/getLink.js.map +1 -0
  836. package/lib/api/RetailAPI/getPaymentSystems.d.ts +2 -0
  837. package/lib/api/RetailAPI/getPaymentSystems.js +12 -0
  838. package/lib/api/RetailAPI/getPaymentSystems.js.map +1 -0
  839. package/lib/api/RetailAPI/getTaskById.d.ts +6 -0
  840. package/lib/api/RetailAPI/getTaskById.js +6 -0
  841. package/lib/api/RetailAPI/getTaskById.js.map +1 -0
  842. package/lib/api/RetailAPI/getTaskStatus.d.ts +18 -0
  843. package/lib/api/RetailAPI/getTaskStatus.js +15 -0
  844. package/lib/api/RetailAPI/getTaskStatus.js.map +1 -0
  845. package/lib/api/RetailAPI/getTraceId.d.ts +1 -0
  846. package/lib/api/RetailAPI/getTraceId.js +6 -0
  847. package/lib/api/RetailAPI/getTraceId.js.map +1 -0
  848. package/lib/api/RetailAPI/getUserTasks.d.ts +41 -0
  849. package/lib/api/RetailAPI/getUserTasks.js +12 -0
  850. package/lib/api/RetailAPI/getUserTasks.js.map +1 -0
  851. package/lib/api/RetailAPI/regionOffices.d.ts +16 -0
  852. package/lib/api/RetailAPI/regionOffices.js +17 -0
  853. package/lib/api/RetailAPI/regionOffices.js.map +1 -0
  854. package/lib/api/RetailAPI/sendCode.d.ts +7 -0
  855. package/lib/api/RetailAPI/sendCode.js +5 -0
  856. package/lib/api/RetailAPI/sendCode.js.map +1 -0
  857. package/lib/api/RetailAPI/sendSignalToProcess.d.ts +7 -0
  858. package/lib/api/RetailAPI/sendSignalToProcess.js +3 -0
  859. package/lib/api/RetailAPI/sendSignalToProcess.js.map +1 -0
  860. package/lib/api/RetailAPI/updateProfileEsia.d.ts +66 -0
  861. package/lib/api/RetailAPI/updateProfileEsia.js +3 -0
  862. package/lib/api/RetailAPI/updateProfileEsia.js.map +1 -0
  863. package/lib/api/RetailAPI/updateRefreshToken.d.ts +1 -0
  864. package/lib/api/RetailAPI/updateRefreshToken.js +36 -0
  865. package/lib/api/RetailAPI/updateRefreshToken.js.map +1 -0
  866. package/lib/api/RetailAPI/updateUserProfile.d.ts +21 -0
  867. package/lib/api/RetailAPI/updateUserProfile.js +3 -0
  868. package/lib/api/RetailAPI/updateUserProfile.js.map +1 -0
  869. package/lib/api/RetailAPI/updateUserTask.d.ts +140 -0
  870. package/lib/api/RetailAPI/updateUserTask.js +3 -0
  871. package/lib/api/RetailAPI/updateUserTask.js.map +1 -0
  872. package/lib/api/dadataHints/dadataHints.d.ts +2 -0
  873. package/lib/api/dadataHints/dadataHints.js +35 -0
  874. package/lib/api/dadataHints/dadataHints.js.map +1 -0
  875. package/lib/api/dadataHints/dadataHintsType.d.ts +68 -0
  876. package/lib/api/dadataHints/dadataHintsType.js +2 -0
  877. package/lib/api/dadataHints/dadataHintsType.js.map +1 -0
  878. package/lib/api/dadataHints/hintsListsOptions.d.ts +11 -0
  879. package/lib/api/dadataHints/hintsListsOptions.js +56 -0
  880. package/lib/api/dadataHints/hintsListsOptions.js.map +1 -0
  881. package/lib/common.css +1 -1
  882. package/lib/components/ApplicationForm/getFormatData.js +5 -2
  883. package/lib/components/ApplicationForm/getFormatData.js.map +1 -1
  884. package/lib/components/ApplicationForm/getInitialFormState.d.ts +4 -2
  885. package/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
  886. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +6 -0
  887. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.d.ts +6 -0
  888. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.mobile.d.ts +6 -0
  889. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +38 -0
  890. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -0
  891. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +18 -0
  892. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js +2 -0
  893. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -0
  894. package/lib/components/ApplicationLeadForm/Footnote.d.ts +7 -0
  895. package/lib/components/ApplicationLeadForm/Footnote.js +7 -0
  896. package/lib/components/ApplicationLeadForm/Footnote.js.map +1 -0
  897. package/lib/components/ApplicationLeadForm/GroupedConsents.d.ts +8 -0
  898. package/lib/components/ApplicationLeadForm/GroupedConsents.js +31 -0
  899. package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -0
  900. package/lib/components/ApplicationLeadForm/applicationFormData.d.ts +2 -0
  901. package/lib/components/ApplicationLeadForm/applicationFormData.js +23 -0
  902. package/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -0
  903. package/lib/components/ApplicationLeadForm/consents.d.ts +7 -0
  904. package/lib/components/ApplicationLeadForm/consents.js +23 -0
  905. package/lib/components/ApplicationLeadForm/consents.js.map +1 -0
  906. package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +3 -0
  907. package/lib/components/ApplicationLeadForm/getInitialFormState.js +21 -0
  908. package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -0
  909. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +10 -0
  910. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +48 -0
  911. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -0
  912. package/lib/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +3 -0
  913. package/lib/components/ApplicationLeadForm/pasreEsiaProfile.js +50 -0
  914. package/lib/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -0
  915. package/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +4 -0
  916. package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +11 -0
  917. package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -0
  918. package/lib/components/ApplicationLeadForm/renderInputs.d.ts +2 -0
  919. package/lib/components/ApplicationLeadForm/renderInputs.js +15 -0
  920. package/lib/components/ApplicationLeadForm/renderInputs.js.map +1 -0
  921. package/lib/components/ApplicationLeadForm/renderSubmitButton.d.ts +2 -0
  922. package/lib/components/ApplicationLeadForm/renderSubmitButton.js +4 -0
  923. package/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -0
  924. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +11 -0
  925. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +111 -0
  926. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -0
  927. package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +5 -0
  928. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +52 -0
  929. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -0
  930. package/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
  931. package/lib/components/ApplicationLeadForm/useLeadFormStore.js +3 -0
  932. package/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -0
  933. package/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +9 -0
  934. package/lib/components/ApplicationLeadForm/useSaveUserData.js +14 -0
  935. package/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -0
  936. package/lib/components/Blocks.js +6 -0
  937. package/lib/components/Blocks.js.map +1 -1
  938. package/lib/components/Blocks.mobile.js +6 -0
  939. package/lib/components/Blocks.mobile.js.map +1 -1
  940. package/lib/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  941. package/lib/components/CreditCardForm/CreditCardForm.fixture.d.ts +5 -0
  942. package/lib/components/CreditCardForm/CreditCardForm.fixture.mobile.d.ts +5 -0
  943. package/lib/components/CreditCardForm/CreditCardForm.js +38 -0
  944. package/lib/components/CreditCardForm/CreditCardForm.js.map +1 -0
  945. package/lib/components/CreditCardForm/CreditCardFormContent.d.ts +21 -0
  946. package/lib/components/CreditCardForm/CreditCardFormContent.js +2 -0
  947. package/lib/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
  948. package/lib/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  949. package/lib/components/CreditCardForm/CreditCardFormProgress.js +9 -0
  950. package/lib/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
  951. package/lib/components/CreditCardForm/CreditCardFormStatus.d.ts +15 -0
  952. package/lib/components/CreditCardForm/CreditCardFormStatus.js +21 -0
  953. package/lib/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
  954. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +1 -0
  955. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +49 -0
  956. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
  957. package/lib/components/CreditCardForm/CreditCardFormStep.d.ts +9 -0
  958. package/lib/components/CreditCardForm/CreditCardFormStep.js +26 -0
  959. package/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
  960. package/lib/components/CreditCardForm/FailedStatusContent.d.ts +1 -0
  961. package/lib/components/CreditCardForm/FailedStatusContent.js +5 -0
  962. package/lib/components/CreditCardForm/FailedStatusContent.js.map +1 -0
  963. package/lib/components/CreditCardForm/PendingStatusContent.d.ts +3 -0
  964. package/lib/components/CreditCardForm/PendingStatusContent.js +18 -0
  965. package/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -0
  966. package/lib/components/CreditCardForm/ReworkStatusContent.d.ts +1 -0
  967. package/lib/components/CreditCardForm/ReworkStatusContent.js +33 -0
  968. package/lib/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
  969. package/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +6 -0
  970. package/lib/components/CreditCardForm/StepsNavigationButtons.js +10 -0
  971. package/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
  972. package/lib/components/CreditCardForm/SuccessStatusCardContent.d.ts +1 -0
  973. package/lib/components/CreditCardForm/SuccessStatusCardContent.js +35 -0
  974. package/lib/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -0
  975. package/lib/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  976. package/lib/components/CreditCardForm/creditCardFormStepsData.js +7 -0
  977. package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
  978. package/lib/components/CreditCardForm/formStateMap.d.ts +2 -0
  979. package/lib/components/CreditCardForm/formStateMap.js +87 -0
  980. package/lib/components/CreditCardForm/formStateMap.js.map +1 -0
  981. package/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  982. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +54 -0
  983. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
  984. package/lib/components/CreditCardForm/getDeliveryCreditCardData.d.ts +28 -0
  985. package/lib/components/CreditCardForm/getDeliveryCreditCardData.js +34 -0
  986. package/lib/components/CreditCardForm/getDeliveryCreditCardData.js.map +1 -0
  987. package/lib/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  988. package/lib/components/CreditCardForm/getInitialFormState.js +19 -0
  989. package/lib/components/CreditCardForm/getInitialFormState.js.map +1 -0
  990. package/lib/components/CreditCardForm/renderInputs.d.ts +9 -0
  991. package/lib/components/CreditCardForm/renderInputs.js +5 -0
  992. package/lib/components/CreditCardForm/renderInputs.js.map +1 -0
  993. package/lib/components/CreditCardForm/renderStep.d.ts +10 -0
  994. package/lib/components/CreditCardForm/renderStep.js +12 -0
  995. package/lib/components/CreditCardForm/renderStep.js.map +1 -0
  996. package/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +8 -0
  997. package/lib/components/CreditCardForm/useCreditCardFormAPI.js +52 -0
  998. package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
  999. package/lib/components/CreditForm/CreditForm.d.ts +9 -0
  1000. package/lib/components/CreditForm/CreditForm.fixture.d.ts +5 -0
  1001. package/lib/components/CreditForm/CreditForm.fixture.mobile.d.ts +5 -0
  1002. package/lib/components/CreditForm/CreditForm.js +39 -0
  1003. package/lib/components/CreditForm/CreditForm.js.map +1 -0
  1004. package/lib/components/CreditForm/CreditFormContent.d.ts +9 -0
  1005. package/lib/components/CreditForm/CreditFormContent.js +2 -0
  1006. package/lib/components/CreditForm/CreditFormContent.js.map +1 -0
  1007. package/lib/components/CreditForm/CreditFormProgress.d.ts +6 -0
  1008. package/lib/components/CreditForm/CreditFormProgress.js +9 -0
  1009. package/lib/components/CreditForm/CreditFormProgress.js.map +1 -0
  1010. package/lib/components/CreditForm/CreditFormStatus.d.ts +15 -0
  1011. package/lib/components/CreditForm/CreditFormStatus.js +23 -0
  1012. package/lib/components/CreditForm/CreditFormStatus.js.map +1 -0
  1013. package/lib/components/CreditForm/CreditFormStatusTracker.d.ts +1 -0
  1014. package/lib/components/CreditForm/CreditFormStatusTracker.js +49 -0
  1015. package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -0
  1016. package/lib/components/CreditForm/CreditFormStep.d.ts +11 -0
  1017. package/lib/components/CreditForm/CreditFormStep.js +29 -0
  1018. package/lib/components/CreditForm/CreditFormStep.js.map +1 -0
  1019. package/lib/components/CreditForm/FailedStatusContent.d.ts +1 -0
  1020. package/lib/components/CreditForm/FailedStatusContent.js +5 -0
  1021. package/lib/components/CreditForm/FailedStatusContent.js.map +1 -0
  1022. package/lib/components/CreditForm/PendingStatusContent.d.ts +3 -0
  1023. package/lib/components/CreditForm/PendingStatusContent.js +30 -0
  1024. package/lib/components/CreditForm/PendingStatusContent.js.map +1 -0
  1025. package/lib/components/CreditForm/ProgramsSourceProps.d.ts +16 -0
  1026. package/lib/components/CreditForm/ProgramsSourceProps.js +2 -0
  1027. package/lib/components/CreditForm/ProgramsSourceProps.js.map +1 -0
  1028. package/lib/components/CreditForm/ReworkStatusContent.d.ts +1 -0
  1029. package/lib/components/CreditForm/ReworkStatusContent.js +23 -0
  1030. package/lib/components/CreditForm/ReworkStatusContent.js.map +1 -0
  1031. package/lib/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
  1032. package/lib/components/CreditForm/StepsNavigationButtons.js +10 -0
  1033. package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -0
  1034. package/lib/components/CreditForm/SuccessStatusContent.d.ts +1 -0
  1035. package/lib/components/CreditForm/SuccessStatusContent.js +30 -0
  1036. package/lib/components/CreditForm/SuccessStatusContent.js.map +1 -0
  1037. package/lib/components/CreditForm/creditFormStepsData.d.ts +2 -0
  1038. package/lib/components/CreditForm/creditFormStepsData.js +7 -0
  1039. package/lib/components/CreditForm/creditFormStepsData.js.map +1 -0
  1040. package/lib/components/CreditForm/formStateMap.d.ts +2 -0
  1041. package/lib/components/CreditForm/formStateMap.js +82 -0
  1042. package/lib/components/CreditForm/formStateMap.js.map +1 -0
  1043. package/lib/components/CreditForm/getCalcData.d.ts +3 -0
  1044. package/lib/components/CreditForm/getCalcData.js +13 -0
  1045. package/lib/components/CreditForm/getCalcData.js.map +1 -0
  1046. package/lib/components/CreditForm/getInitialFormState.d.ts +2 -0
  1047. package/lib/components/CreditForm/getInitialFormState.js +19 -0
  1048. package/lib/components/CreditForm/getInitialFormState.js.map +1 -0
  1049. package/lib/components/CreditForm/renderInputs.d.ts +9 -0
  1050. package/lib/components/CreditForm/renderInputs.js +4 -0
  1051. package/lib/components/CreditForm/renderInputs.js.map +1 -0
  1052. package/lib/components/CreditForm/renderStep.d.ts +10 -0
  1053. package/lib/components/CreditForm/renderStep.js +12 -0
  1054. package/lib/components/CreditForm/renderStep.js.map +1 -0
  1055. package/lib/components/CreditForm/useCreditFormAPI.d.ts +8 -0
  1056. package/lib/components/CreditForm/useCreditFormAPI.js +56 -0
  1057. package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -0
  1058. package/lib/components/CreditForm/utils.d.ts +25 -0
  1059. package/lib/components/CreditForm/utils.js +67 -0
  1060. package/lib/components/CreditForm/utils.js.map +1 -0
  1061. package/lib/hooks/useLeadFormData.d.ts +8 -0
  1062. package/lib/hooks/useLeadFormData.js +14 -0
  1063. package/lib/hooks/useLeadFormData.js.map +1 -0
  1064. package/lib/hooks/useRetailFormStore.d.ts +36 -0
  1065. package/lib/hooks/useRetailFormStore.js +5 -0
  1066. package/lib/hooks/useRetailFormStore.js.map +1 -0
  1067. package/lib/model/InputSectionsType.d.ts +9 -0
  1068. package/lib/services/retail/adaptors/getAdditionalInfoData.d.ts +3 -0
  1069. package/lib/services/retail/adaptors/getAdditionalInfoData.js +10 -0
  1070. package/lib/services/retail/adaptors/getAdditionalInfoData.js.map +1 -0
  1071. package/lib/services/retail/adaptors/getCalculatorData.d.ts +3 -0
  1072. package/lib/services/retail/adaptors/getCalculatorData.js +8 -0
  1073. package/lib/services/retail/adaptors/getCalculatorData.js.map +1 -0
  1074. package/lib/services/retail/adaptors/getCardOptionsData.d.ts +3 -0
  1075. package/lib/services/retail/adaptors/getCardOptionsData.js +10 -0
  1076. package/lib/services/retail/adaptors/getCardOptionsData.js.map +1 -0
  1077. package/lib/services/retail/adaptors/getCreditFormTaskData.d.ts +11 -0
  1078. package/lib/services/retail/adaptors/getCreditFormTaskData.js +55 -0
  1079. package/lib/services/retail/adaptors/getCreditFormTaskData.js.map +1 -0
  1080. package/lib/services/retail/adaptors/getDeliveryCreditData.d.ts +3 -0
  1081. package/lib/services/retail/adaptors/getDeliveryCreditData.js +7 -0
  1082. package/lib/services/retail/adaptors/getDeliveryCreditData.js.map +1 -0
  1083. package/lib/services/retail/adaptors/getEmploymentData.d.ts +3 -0
  1084. package/lib/services/retail/adaptors/getEmploymentData.js +28 -0
  1085. package/lib/services/retail/adaptors/getEmploymentData.js.map +1 -0
  1086. package/lib/services/retail/adaptors/getFamilyStatusAndIncomeData.d.ts +4 -0
  1087. package/lib/services/retail/adaptors/getFamilyStatusAndIncomeData.js +26 -0
  1088. package/lib/services/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -0
  1089. package/lib/services/retail/adaptors/getPersonalInfoData.d.ts +3 -0
  1090. package/lib/services/retail/adaptors/getPersonalInfoData.js +32 -0
  1091. package/lib/services/retail/adaptors/getPersonalInfoData.js.map +1 -0
  1092. package/lib/services/retail/content.d.ts +6 -0
  1093. package/lib/services/retail/content.js +362 -0
  1094. package/lib/services/retail/content.js.map +1 -0
  1095. package/lib/services/retail/external/types.d.ts +10 -0
  1096. package/lib/services/retail/external/types.js +2 -0
  1097. package/lib/services/retail/external/types.js.map +1 -0
  1098. package/lib/services/retail/external/utils.d.ts +2 -0
  1099. package/lib/services/retail/external/utils.js +3 -0
  1100. package/lib/services/retail/external/utils.js.map +1 -0
  1101. package/lib/services/retail/inputs.d.ts +75 -0
  1102. package/lib/services/retail/inputs.js +136 -0
  1103. package/lib/services/retail/inputs.js.map +1 -0
  1104. package/lib/services/retail/mockLocalStorage.d.ts +1 -0
  1105. package/lib/services/retail/mockLocalStorage.js +32 -0
  1106. package/lib/services/retail/mockLocalStorage.js.map +1 -0
  1107. package/lib/services/retail/model/EOrganizationActivityTypes.d.ts +23 -0
  1108. package/lib/services/retail/model/EOrganizationActivityTypes.js +2 -0
  1109. package/lib/services/retail/model/EOrganizationActivityTypes.js.map +1 -0
  1110. package/lib/services/retail/model/LeadFormData.d.ts +7 -0
  1111. package/lib/services/retail/model/LeadFormData.js +2 -0
  1112. package/lib/services/retail/model/LeadFormData.js.map +1 -0
  1113. package/lib/services/retail/model/LeadFormState.d.ts +146 -0
  1114. package/lib/services/retail/model/LeadFormState.js +2 -0
  1115. package/lib/services/retail/model/LeadFormState.js.map +1 -0
  1116. package/lib/services/retail/model/NameFieldDef.d.ts +6 -0
  1117. package/lib/services/retail/model/NameFieldDef.js +2 -0
  1118. package/lib/services/retail/model/NameFieldDef.js.map +1 -0
  1119. package/lib/services/retail/model/RetailFormContent.d.ts +26 -0
  1120. package/lib/services/retail/model/RetailFormContent.js +2 -0
  1121. package/lib/services/retail/model/RetailFormContent.js.map +1 -0
  1122. package/lib/services/retail/utils/calculateInputs.d.ts +5 -0
  1123. package/lib/services/retail/utils/calculateInputs.js +27 -0
  1124. package/lib/services/retail/utils/calculateInputs.js.map +1 -0
  1125. package/lib/services/retail/utils/getOrganizationParams.d.ts +17 -0
  1126. package/lib/services/retail/utils/getOrganizationParams.js +100 -0
  1127. package/lib/services/retail/utils/getOrganizationParams.js.map +1 -0
  1128. package/lib/services/retail/utils/getUpdateUserProfile.d.ts +3 -0
  1129. package/lib/services/retail/utils/getUpdateUserProfile.js +24 -0
  1130. package/lib/services/retail/utils/getUpdateUserProfile.js.map +1 -0
  1131. package/lib/ui-kit/CaptchaDialog/CaptchaDialog.d.ts +6 -0
  1132. package/lib/ui-kit/CaptchaDialog/CaptchaDialog.fixture.d.ts +5 -0
  1133. package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +37 -0
  1134. package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -0
  1135. package/lib/ui-kit/Checkbox/CheckboxWithDoc.d.ts +6 -0
  1136. package/lib/ui-kit/Checkbox/CheckboxWithDoc.js +12 -0
  1137. package/lib/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -0
  1138. package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +5 -0
  1139. package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.fixture.d.ts +5 -0
  1140. package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +40 -0
  1141. package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -0
  1142. package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -0
  1143. package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +41 -0
  1144. package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -0
  1145. package/lib/ui-kit/DocumentDialog/DocumentDialog.d.ts +6 -0
  1146. package/lib/ui-kit/DocumentDialog/DocumentDialog.js +14 -0
  1147. package/lib/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -0
  1148. package/lib/ui-kit/DocumentDialog/useDocumentDialog.d.ts +2 -0
  1149. package/lib/ui-kit/DocumentDialog/useDocumentDialog.js +16 -0
  1150. package/lib/ui-kit/DocumentDialog/useDocumentDialog.js.map +1 -0
  1151. package/lib/ui-kit/DraftDialog/DraftActionButton.d.ts +8 -0
  1152. package/lib/ui-kit/DraftDialog/DraftActionButton.js +7 -0
  1153. package/lib/ui-kit/DraftDialog/DraftActionButton.js.map +1 -0
  1154. package/lib/ui-kit/DraftDialog/DraftDialog.d.ts +7 -0
  1155. package/lib/ui-kit/DraftDialog/DraftDialog.fixture.d.ts +4 -0
  1156. package/lib/ui-kit/DraftDialog/DraftDialog.fixture.mobile.d.ts +4 -0
  1157. package/lib/ui-kit/DraftDialog/DraftDialog.js +35 -0
  1158. package/lib/ui-kit/DraftDialog/DraftDialog.js.map +1 -0
  1159. package/lib/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +4 -0
  1160. package/lib/ui-kit/DraftDialog/EmptyDraftDialog.js +20 -0
  1161. package/lib/ui-kit/DraftDialog/EmptyDraftDialog.js.map +1 -0
  1162. package/lib/ui-kit/DraftDialog/parseDraftTask.d.ts +3 -0
  1163. package/lib/ui-kit/DraftDialog/parseDraftTask.js +64 -0
  1164. package/lib/ui-kit/DraftDialog/parseDraftTask.js.map +1 -0
  1165. package/lib/ui-kit/DraftDialog/useDraftDialog.d.ts +10 -0
  1166. package/lib/ui-kit/DraftDialog/useDraftDialog.js +13 -0
  1167. package/lib/ui-kit/DraftDialog/useDraftDialog.js.map +1 -0
  1168. package/lib/ui-kit/DraftDialog/utils.d.ts +148 -0
  1169. package/lib/ui-kit/DraftDialog/utils.js +89 -0
  1170. package/lib/ui-kit/DraftDialog/utils.js.map +1 -0
  1171. package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.d.ts +4 -0
  1172. package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.fixture.d.ts +5 -0
  1173. package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +31 -0
  1174. package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -0
  1175. package/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.d.ts +1 -0
  1176. package/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +12 -0
  1177. package/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -0
  1178. package/lib/ui-kit/FormField/BaseFieldDef.d.ts +1 -1
  1179. package/lib/ui-kit/FormField/Fields/AddressFactField.d.ts +2 -0
  1180. package/lib/ui-kit/FormField/Fields/AddressFactField.js +54 -0
  1181. package/lib/ui-kit/FormField/Fields/AddressFactField.js.map +1 -0
  1182. package/lib/ui-kit/FormField/Fields/AddressField.d.ts +20 -0
  1183. package/lib/ui-kit/FormField/Fields/AddressField.js +50 -0
  1184. package/lib/ui-kit/FormField/Fields/AddressField.js.map +1 -0
  1185. package/lib/ui-kit/FormField/Fields/AddressMatchField.d.ts +2 -0
  1186. package/lib/ui-kit/FormField/Fields/AddressMatchField.js +7 -0
  1187. package/lib/ui-kit/FormField/Fields/AddressMatchField.js.map +1 -0
  1188. package/lib/ui-kit/FormField/Fields/AddressRetailField.d.ts +2 -0
  1189. package/lib/ui-kit/FormField/Fields/AddressRetailField.js +35 -0
  1190. package/lib/ui-kit/FormField/Fields/AddressRetailField.js.map +1 -0
  1191. package/lib/ui-kit/FormField/Fields/AmountWorkersField.d.ts +2 -0
  1192. package/lib/ui-kit/FormField/Fields/AmountWorkersField.js +17 -0
  1193. package/lib/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -0
  1194. package/lib/ui-kit/FormField/Fields/ApplierTypeField.d.ts +7 -0
  1195. package/lib/ui-kit/FormField/Fields/ApplierTypeField.js +5 -3
  1196. package/lib/ui-kit/FormField/Fields/ApplierTypeField.js.map +1 -1
  1197. package/lib/ui-kit/FormField/Fields/ArmyIdFlgField.d.ts +2 -0
  1198. package/lib/ui-kit/FormField/Fields/ArmyIdFlgField.js +5 -0
  1199. package/lib/ui-kit/FormField/Fields/ArmyIdFlgField.js.map +1 -0
  1200. package/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
  1201. package/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js +5 -0
  1202. package/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +1 -0
  1203. package/lib/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
  1204. package/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js +5 -0
  1205. package/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -0
  1206. package/lib/ui-kit/FormField/Fields/BeginDateField.d.ts +2 -0
  1207. package/lib/ui-kit/FormField/Fields/BeginDateField.js +5 -0
  1208. package/lib/ui-kit/FormField/Fields/BeginDateField.js.map +1 -0
  1209. package/lib/ui-kit/FormField/Fields/BirthPlaceField.d.ts +2 -0
  1210. package/lib/ui-kit/FormField/Fields/BirthPlaceField.js +7 -0
  1211. package/lib/ui-kit/FormField/Fields/BirthPlaceField.js.map +1 -0
  1212. package/lib/ui-kit/FormField/Fields/CardCategoryField.d.ts +2 -0
  1213. package/lib/ui-kit/FormField/Fields/CardCategoryField.js +28 -0
  1214. package/lib/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -0
  1215. package/lib/ui-kit/FormField/Fields/ChildrenField.d.ts +2 -0
  1216. package/lib/ui-kit/FormField/Fields/ChildrenField.js +5 -0
  1217. package/lib/ui-kit/FormField/Fields/ChildrenField.js.map +1 -0
  1218. package/lib/ui-kit/FormField/Fields/CodeWordField.d.ts +2 -0
  1219. package/lib/ui-kit/FormField/Fields/CodeWordField.js +5 -0
  1220. package/lib/ui-kit/FormField/Fields/CodeWordField.js.map +1 -0
  1221. package/lib/ui-kit/FormField/Fields/ConfirmationIncomeField.d.ts +2 -0
  1222. package/lib/ui-kit/FormField/Fields/ConfirmationIncomeField.js +9 -0
  1223. package/lib/ui-kit/FormField/Fields/ConfirmationIncomeField.js.map +1 -0
  1224. package/lib/ui-kit/FormField/Fields/ConscriptionField.d.ts +2 -0
  1225. package/lib/ui-kit/FormField/Fields/ConscriptionField.js +9 -0
  1226. package/lib/ui-kit/FormField/Fields/ConscriptionField.js.map +1 -0
  1227. package/lib/ui-kit/FormField/Fields/ConsentField.d.ts +2 -0
  1228. package/lib/ui-kit/FormField/Fields/ConsentField.js +6 -0
  1229. package/lib/ui-kit/FormField/Fields/ConsentField.js.map +1 -0
  1230. package/lib/ui-kit/FormField/Fields/CreditCalcField.d.ts +2 -0
  1231. package/lib/ui-kit/FormField/Fields/CreditCalcField.js +26 -0
  1232. package/lib/ui-kit/FormField/Fields/CreditCalcField.js.map +1 -0
  1233. package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
  1234. package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js +12 -0
  1235. package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -0
  1236. package/lib/ui-kit/FormField/Fields/CurrencyField.d.ts +2 -0
  1237. package/lib/ui-kit/FormField/Fields/CurrencyField.js +6 -0
  1238. package/lib/ui-kit/FormField/Fields/CurrencyField.js.map +1 -0
  1239. package/lib/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  1240. package/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js +5 -0
  1241. package/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
  1242. package/lib/ui-kit/FormField/Fields/DependentsField.d.ts +2 -0
  1243. package/lib/ui-kit/FormField/Fields/DependentsField.js +5 -0
  1244. package/lib/ui-kit/FormField/Fields/DependentsField.js.map +1 -0
  1245. package/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
  1246. package/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js +5 -0
  1247. package/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -0
  1248. package/lib/ui-kit/FormField/Fields/DulIssueDateField.d.ts +2 -0
  1249. package/lib/ui-kit/FormField/Fields/DulIssueDateField.js +6 -0
  1250. package/lib/ui-kit/FormField/Fields/DulIssueDateField.js.map +1 -0
  1251. package/lib/ui-kit/FormField/Fields/DulIssuedByField.d.ts +2 -0
  1252. package/lib/ui-kit/FormField/Fields/DulIssuedByField.js +13 -0
  1253. package/lib/ui-kit/FormField/Fields/DulIssuedByField.js.map +1 -0
  1254. package/lib/ui-kit/FormField/Fields/DulNumberField.d.ts +2 -0
  1255. package/lib/ui-kit/FormField/Fields/DulNumberField.js +6 -0
  1256. package/lib/ui-kit/FormField/Fields/DulNumberField.js.map +1 -0
  1257. package/lib/ui-kit/FormField/Fields/DulSerieField.d.ts +2 -0
  1258. package/lib/ui-kit/FormField/Fields/DulSerieField.js +6 -0
  1259. package/lib/ui-kit/FormField/Fields/DulSerieField.js.map +1 -0
  1260. package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.d.ts +2 -0
  1261. package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +12 -0
  1262. package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -0
  1263. package/lib/ui-kit/FormField/Fields/EducationField.d.ts +2 -0
  1264. package/lib/ui-kit/FormField/Fields/EducationField.js +9 -0
  1265. package/lib/ui-kit/FormField/Fields/EducationField.js.map +1 -0
  1266. package/lib/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +2 -0
  1267. package/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js +17 -0
  1268. package/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -0
  1269. package/lib/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +2 -0
  1270. package/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js +17 -0
  1271. package/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -0
  1272. package/lib/ui-kit/FormField/Fields/EmploymentField.d.ts +2 -0
  1273. package/lib/ui-kit/FormField/Fields/EmploymentField.js +9 -0
  1274. package/lib/ui-kit/FormField/Fields/EmploymentField.js.map +1 -0
  1275. package/lib/ui-kit/FormField/Fields/ExpensesField.d.ts +2 -0
  1276. package/lib/ui-kit/FormField/Fields/ExpensesField.js +5 -0
  1277. package/lib/ui-kit/FormField/Fields/ExpensesField.js.map +1 -0
  1278. package/lib/ui-kit/FormField/Fields/FamilyMembersField.d.ts +2 -0
  1279. package/lib/ui-kit/FormField/Fields/FamilyMembersField.js +17 -0
  1280. package/lib/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -0
  1281. package/lib/ui-kit/FormField/Fields/FamilyStatusField.d.ts +2 -0
  1282. package/lib/ui-kit/FormField/Fields/FamilyStatusField.js +9 -0
  1283. package/lib/ui-kit/FormField/Fields/FamilyStatusField.js.map +1 -0
  1284. package/lib/ui-kit/FormField/Fields/GeneralSeniorityField.d.ts +2 -0
  1285. package/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js +5 -0
  1286. package/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -0
  1287. package/lib/ui-kit/FormField/Fields/HousingField.d.ts +2 -0
  1288. package/lib/ui-kit/FormField/Fields/HousingField.js +9 -0
  1289. package/lib/ui-kit/FormField/Fields/HousingField.js.map +1 -0
  1290. package/lib/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
  1291. package/lib/ui-kit/FormField/Fields/InfoCardField.js +5 -0
  1292. package/lib/ui-kit/FormField/Fields/InfoCardField.js.map +1 -0
  1293. package/lib/ui-kit/FormField/Fields/InnField.js +11 -1
  1294. package/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
  1295. package/lib/ui-kit/FormField/Fields/JobsNumberField.d.ts +2 -0
  1296. package/lib/ui-kit/FormField/Fields/JobsNumberField.js +5 -0
  1297. package/lib/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -0
  1298. package/lib/ui-kit/FormField/Fields/LastJobExperienceField.d.ts +2 -0
  1299. package/lib/ui-kit/FormField/Fields/LastJobExperienceField.js +5 -0
  1300. package/lib/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -0
  1301. package/lib/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
  1302. package/lib/ui-kit/FormField/Fields/LegalEntityNameField.js +7 -0
  1303. package/lib/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -0
  1304. package/lib/ui-kit/FormField/Fields/LegalFormField.d.ts +2 -0
  1305. package/lib/ui-kit/FormField/Fields/LegalFormField.js +5 -0
  1306. package/lib/ui-kit/FormField/Fields/LegalFormField.js.map +1 -0
  1307. package/lib/ui-kit/FormField/Fields/LimitedBirthdayField.d.ts +2 -0
  1308. package/lib/ui-kit/FormField/Fields/LimitedBirthdayField.js +6 -0
  1309. package/lib/ui-kit/FormField/Fields/LimitedBirthdayField.js.map +1 -0
  1310. package/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
  1311. package/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js +5 -0
  1312. package/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -0
  1313. package/lib/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  1314. package/lib/ui-kit/FormField/Fields/MethodObtainField.js +9 -0
  1315. package/lib/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
  1316. package/lib/ui-kit/FormField/Fields/MiddleNameField.js +2 -1
  1317. package/lib/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
  1318. package/lib/ui-kit/FormField/Fields/NameField.js +2 -1
  1319. package/lib/ui-kit/FormField/Fields/NameField.js.map +1 -1
  1320. package/lib/ui-kit/FormField/Fields/OrganizationField.d.ts +2 -0
  1321. package/lib/ui-kit/FormField/Fields/OrganizationField.js +17 -0
  1322. package/lib/ui-kit/FormField/Fields/OrganizationField.js.map +1 -0
  1323. package/lib/ui-kit/FormField/Fields/OrganizationNameField.d.ts +2 -0
  1324. package/lib/ui-kit/FormField/Fields/OrganizationNameField.js +15 -0
  1325. package/lib/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -0
  1326. package/lib/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
  1327. package/lib/ui-kit/FormField/Fields/OtherIncomeField.js +5 -0
  1328. package/lib/ui-kit/FormField/Fields/OtherIncomeField.js.map +1 -0
  1329. package/lib/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
  1330. package/lib/ui-kit/FormField/Fields/PartInBusinessField.js +12 -0
  1331. package/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -0
  1332. package/lib/ui-kit/FormField/Fields/ParticipantDateRegistrationField.d.ts +2 -0
  1333. package/lib/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js +5 -0
  1334. package/lib/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js.map +1 -0
  1335. package/lib/ui-kit/FormField/Fields/PaymentSystemField.d.ts +2 -0
  1336. package/lib/ui-kit/FormField/Fields/PaymentSystemField.js +25 -0
  1337. package/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -0
  1338. package/lib/ui-kit/FormField/Fields/PhoneField.js +2 -1
  1339. package/lib/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
  1340. package/lib/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +2 -0
  1341. package/lib/ui-kit/FormField/Fields/PositionOrganizationField.js +9 -0
  1342. package/lib/ui-kit/FormField/Fields/PositionOrganizationField.js.map +1 -0
  1343. package/lib/ui-kit/FormField/Fields/RegionRetailField.d.ts +2 -0
  1344. package/lib/ui-kit/FormField/Fields/RegionRetailField.js +10 -0
  1345. package/lib/ui-kit/FormField/Fields/RegionRetailField.js.map +1 -0
  1346. package/lib/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
  1347. package/lib/ui-kit/FormField/Fields/RetirementIncomeField.js +5 -0
  1348. package/lib/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -0
  1349. package/lib/ui-kit/FormField/Fields/SexField.d.ts +4 -0
  1350. package/lib/ui-kit/FormField/Fields/SexField.js +25 -0
  1351. package/lib/ui-kit/FormField/Fields/SexField.js.map +1 -0
  1352. package/lib/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
  1353. package/lib/ui-kit/FormField/Fields/ShareholderFlgField.js +5 -0
  1354. package/lib/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -0
  1355. package/lib/ui-kit/FormField/Fields/SnilsField.d.ts +2 -0
  1356. package/lib/ui-kit/FormField/Fields/SnilsField.js +5 -0
  1357. package/lib/ui-kit/FormField/Fields/SnilsField.js.map +1 -0
  1358. package/lib/ui-kit/FormField/Fields/SurnameField.js +3 -1
  1359. package/lib/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
  1360. package/lib/ui-kit/FormField/Fields/TotalIncomeField.d.ts +2 -0
  1361. package/lib/ui-kit/FormField/Fields/TotalIncomeField.js +5 -0
  1362. package/lib/ui-kit/FormField/Fields/TotalIncomeField.js.map +1 -0
  1363. package/lib/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
  1364. package/lib/ui-kit/FormField/Fields/WagesField.js +5 -0
  1365. package/lib/ui-kit/FormField/Fields/WagesField.js.map +1 -0
  1366. package/lib/ui-kit/FormField/Fields/{/320/241onsentToReceiveMaterialsField.js → consentToReceiveMaterialsField.js} +1 -1
  1367. package/lib/ui-kit/FormField/Fields/consentToReceiveMaterialsField.js.map +1 -0
  1368. package/lib/ui-kit/FormField/SelectField.d.ts +12 -0
  1369. package/lib/ui-kit/FormField/SelectField.js +13 -0
  1370. package/lib/ui-kit/FormField/SelectField.js.map +1 -0
  1371. package/lib/ui-kit/FormField/getField.js +1 -1
  1372. package/lib/ui-kit/FormField/getField.js.map +1 -1
  1373. package/lib/ui-kit/FormField/getObjectValidator.d.ts +1 -1
  1374. package/lib/ui-kit/FormField/getObjectValidator.js +78 -9
  1375. package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  1376. package/lib/ui-kit/FormField/isEsiaAuthorize.d.ts +2 -0
  1377. package/lib/ui-kit/FormField/isEsiaAuthorize.js +3 -0
  1378. package/lib/ui-kit/FormField/isEsiaAuthorize.js.map +1 -0
  1379. package/lib/ui-kit/FormField/shouldRenderField.d.ts +1 -1
  1380. package/lib/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
  1381. package/lib/ui-kit/FormField/updateOrganizationFields.js +22 -0
  1382. package/lib/ui-kit/FormField/updateOrganizationFields.js.map +1 -0
  1383. package/lib/ui-kit/FormField/validators.d.ts +10 -0
  1384. package/lib/ui-kit/FormField/validators.js +42 -1
  1385. package/lib/ui-kit/FormField/validators.js.map +1 -1
  1386. package/lib/ui-kit/Input/InputControl.js +13 -4
  1387. package/lib/ui-kit/Input/InputControl.js.map +1 -1
  1388. package/lib/ui-kit/Input/InputPopup.d.ts +8 -0
  1389. package/lib/ui-kit/Input/InputPopup.js +32 -0
  1390. package/lib/ui-kit/Input/InputPopup.js.map +1 -0
  1391. package/lib/ui-kit/Input/InputProps.d.ts +4 -0
  1392. package/lib/ui-kit/Input/useInputPopup.d.ts +13 -0
  1393. package/lib/ui-kit/Input/useInputPopup.js +64 -0
  1394. package/lib/ui-kit/Input/useInputPopup.js.map +1 -0
  1395. package/lib/ui-kit/VerifyPhoneDialog/InputCode.d.ts +8 -0
  1396. package/lib/ui-kit/VerifyPhoneDialog/InputCode.js +44 -0
  1397. package/lib/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -0
  1398. package/lib/ui-kit/VerifyPhoneDialog/SubmitButton.d.ts +7 -0
  1399. package/lib/ui-kit/VerifyPhoneDialog/SubmitButton.js +8 -0
  1400. package/lib/ui-kit/VerifyPhoneDialog/SubmitButton.js.map +1 -0
  1401. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +10 -0
  1402. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.fixture.d.ts +5 -0
  1403. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +49 -0
  1404. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -0
  1405. package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +16 -0
  1406. package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +48 -0
  1407. package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -0
  1408. package/mobile/bundle/api/RetailAPI/StatusType.d.ts +1 -0
  1409. package/mobile/bundle/api/RetailAPI/checkCaptcha.d.ts +4 -0
  1410. package/mobile/bundle/api/RetailAPI/checkCode.d.ts +12 -0
  1411. package/mobile/bundle/api/RetailAPI/createCaptcha.d.ts +1 -0
  1412. package/mobile/bundle/api/RetailAPI/createDraftTask.d.ts +9 -0
  1413. package/mobile/bundle/api/RetailAPI/createUserProfile.d.ts +9 -0
  1414. package/mobile/bundle/api/RetailAPI/doRequest.d.ts +2 -0
  1415. package/mobile/bundle/api/RetailAPI/draftTasksKZO.d.ts +34 -0
  1416. package/mobile/bundle/api/RetailAPI/feedbackById.d.ts +1 -0
  1417. package/mobile/bundle/api/RetailAPI/getCardTypes.d.ts +8 -0
  1418. package/mobile/bundle/api/RetailAPI/getGenderFromName.d.ts +1 -0
  1419. package/mobile/bundle/api/RetailAPI/getLastTaskStatus.d.ts +6 -0
  1420. package/mobile/bundle/api/RetailAPI/getLink.d.ts +7 -0
  1421. package/mobile/bundle/api/RetailAPI/getPaymentSystems.d.ts +2 -0
  1422. package/mobile/bundle/api/RetailAPI/getTaskById.d.ts +6 -0
  1423. package/mobile/bundle/api/RetailAPI/getTaskStatus.d.ts +18 -0
  1424. package/mobile/bundle/api/RetailAPI/getTraceId.d.ts +1 -0
  1425. package/mobile/bundle/api/RetailAPI/getUserTasks.d.ts +41 -0
  1426. package/mobile/bundle/api/RetailAPI/regionOffices.d.ts +16 -0
  1427. package/mobile/bundle/api/RetailAPI/sendCode.d.ts +7 -0
  1428. package/mobile/bundle/api/RetailAPI/sendSignalToProcess.d.ts +7 -0
  1429. package/mobile/bundle/api/RetailAPI/updateProfileEsia.d.ts +66 -0
  1430. package/mobile/bundle/api/RetailAPI/updateRefreshToken.d.ts +1 -0
  1431. package/mobile/bundle/api/RetailAPI/updateUserProfile.d.ts +21 -0
  1432. package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +140 -0
  1433. package/mobile/bundle/api/dadataHints/dadataHints.d.ts +2 -0
  1434. package/mobile/bundle/api/dadataHints/dadataHintsType.d.ts +68 -0
  1435. package/mobile/bundle/api/dadataHints/hintsListsOptions.d.ts +11 -0
  1436. package/mobile/bundle/bundle.umd.js +6099 -2584
  1437. package/mobile/bundle/bundle.umd.min.js +1 -1
  1438. package/mobile/bundle/components/ApplicationForm/getInitialFormState.d.ts +4 -2
  1439. package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +6 -0
  1440. package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +18 -0
  1441. package/mobile/bundle/components/ApplicationLeadForm/Footnote.d.ts +7 -0
  1442. package/mobile/bundle/components/ApplicationLeadForm/GroupedConsents.d.ts +8 -0
  1443. package/mobile/bundle/components/ApplicationLeadForm/applicationFormData.d.ts +2 -0
  1444. package/mobile/bundle/components/ApplicationLeadForm/consents.d.ts +7 -0
  1445. package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +3 -0
  1446. package/mobile/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +10 -0
  1447. package/mobile/bundle/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +3 -0
  1448. package/mobile/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +4 -0
  1449. package/mobile/bundle/components/ApplicationLeadForm/renderInputs.d.ts +2 -0
  1450. package/mobile/bundle/components/ApplicationLeadForm/renderSubmitButton.d.ts +2 -0
  1451. package/mobile/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +11 -0
  1452. package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +5 -0
  1453. package/mobile/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
  1454. package/mobile/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +9 -0
  1455. package/mobile/bundle/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  1456. package/mobile/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +21 -0
  1457. package/mobile/bundle/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  1458. package/mobile/bundle/components/CreditCardForm/CreditCardFormStatus.d.ts +15 -0
  1459. package/mobile/bundle/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +1 -0
  1460. package/mobile/bundle/components/CreditCardForm/CreditCardFormStep.d.ts +9 -0
  1461. package/mobile/bundle/components/CreditCardForm/FailedStatusContent.d.ts +1 -0
  1462. package/mobile/bundle/components/CreditCardForm/PendingStatusContent.d.ts +3 -0
  1463. package/mobile/bundle/components/CreditCardForm/ReworkStatusContent.d.ts +1 -0
  1464. package/mobile/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +6 -0
  1465. package/mobile/bundle/components/CreditCardForm/SuccessStatusCardContent.d.ts +1 -0
  1466. package/mobile/bundle/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  1467. package/mobile/bundle/components/CreditCardForm/formStateMap.d.ts +2 -0
  1468. package/mobile/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  1469. package/mobile/bundle/components/CreditCardForm/getDeliveryCreditCardData.d.ts +28 -0
  1470. package/mobile/bundle/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  1471. package/mobile/bundle/components/CreditCardForm/renderInputs.d.ts +9 -0
  1472. package/mobile/bundle/components/CreditCardForm/renderStep.d.ts +10 -0
  1473. package/mobile/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +8 -0
  1474. package/mobile/bundle/components/CreditForm/CreditForm.d.ts +9 -0
  1475. package/mobile/bundle/components/CreditForm/CreditFormContent.d.ts +9 -0
  1476. package/mobile/bundle/components/CreditForm/CreditFormProgress.d.ts +6 -0
  1477. package/mobile/bundle/components/CreditForm/CreditFormStatus.d.ts +15 -0
  1478. package/mobile/bundle/components/CreditForm/CreditFormStatusTracker.d.ts +1 -0
  1479. package/mobile/bundle/components/CreditForm/CreditFormStep.d.ts +11 -0
  1480. package/mobile/bundle/components/CreditForm/FailedStatusContent.d.ts +1 -0
  1481. package/mobile/bundle/components/CreditForm/PendingStatusContent.d.ts +3 -0
  1482. package/mobile/bundle/components/CreditForm/ProgramsSourceProps.d.ts +16 -0
  1483. package/mobile/bundle/components/CreditForm/ReworkStatusContent.d.ts +1 -0
  1484. package/mobile/bundle/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
  1485. package/mobile/bundle/components/CreditForm/SuccessStatusContent.d.ts +1 -0
  1486. package/mobile/bundle/components/CreditForm/creditFormStepsData.d.ts +2 -0
  1487. package/mobile/bundle/components/CreditForm/formStateMap.d.ts +2 -0
  1488. package/mobile/bundle/components/CreditForm/getCalcData.d.ts +3 -0
  1489. package/mobile/bundle/components/CreditForm/getInitialFormState.d.ts +2 -0
  1490. package/mobile/bundle/components/CreditForm/renderInputs.d.ts +9 -0
  1491. package/mobile/bundle/components/CreditForm/renderStep.d.ts +10 -0
  1492. package/mobile/bundle/components/CreditForm/useCreditFormAPI.d.ts +8 -0
  1493. package/mobile/bundle/components/CreditForm/utils.d.ts +25 -0
  1494. package/mobile/bundle/hooks/useLeadFormData.d.ts +8 -0
  1495. package/mobile/bundle/hooks/useRetailFormStore.d.ts +36 -0
  1496. package/mobile/bundle/model/InputSectionsType.d.ts +9 -0
  1497. package/mobile/bundle/services/retail/adaptors/getAdditionalInfoData.d.ts +3 -0
  1498. package/mobile/bundle/services/retail/adaptors/getCalculatorData.d.ts +3 -0
  1499. package/mobile/bundle/services/retail/adaptors/getCardOptionsData.d.ts +3 -0
  1500. package/mobile/bundle/services/retail/adaptors/getCreditFormTaskData.d.ts +11 -0
  1501. package/mobile/bundle/services/retail/adaptors/getDeliveryCreditData.d.ts +3 -0
  1502. package/mobile/bundle/services/retail/adaptors/getEmploymentData.d.ts +3 -0
  1503. package/mobile/bundle/services/retail/adaptors/getFamilyStatusAndIncomeData.d.ts +4 -0
  1504. package/mobile/bundle/services/retail/adaptors/getPersonalInfoData.d.ts +3 -0
  1505. package/mobile/bundle/services/retail/content.d.ts +6 -0
  1506. package/mobile/bundle/services/retail/external/types.d.ts +10 -0
  1507. package/mobile/bundle/services/retail/external/utils.d.ts +2 -0
  1508. package/mobile/bundle/services/retail/inputs.d.ts +75 -0
  1509. package/mobile/bundle/services/retail/mockLocalStorage.d.ts +1 -0
  1510. package/mobile/bundle/services/retail/model/EOrganizationActivityTypes.d.ts +23 -0
  1511. package/mobile/bundle/services/retail/model/LeadFormData.d.ts +7 -0
  1512. package/mobile/bundle/services/retail/model/LeadFormState.d.ts +146 -0
  1513. package/mobile/bundle/services/retail/model/NameFieldDef.d.ts +6 -0
  1514. package/mobile/bundle/services/retail/model/RetailFormContent.d.ts +26 -0
  1515. package/mobile/bundle/services/retail/utils/calculateInputs.d.ts +5 -0
  1516. package/mobile/bundle/services/retail/utils/getOrganizationParams.d.ts +17 -0
  1517. package/mobile/bundle/services/retail/utils/getUpdateUserProfile.d.ts +3 -0
  1518. package/mobile/bundle/ui-kit/CaptchaDialog/CaptchaDialog.d.ts +6 -0
  1519. package/mobile/bundle/ui-kit/Checkbox/CheckboxWithDoc.d.ts +6 -0
  1520. package/mobile/bundle/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +5 -0
  1521. package/mobile/bundle/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -0
  1522. package/mobile/bundle/ui-kit/DocumentDialog/DocumentDialog.d.ts +6 -0
  1523. package/mobile/bundle/ui-kit/DocumentDialog/useDocumentDialog.d.ts +2 -0
  1524. package/mobile/bundle/ui-kit/DraftDialog/DraftActionButton.d.ts +8 -0
  1525. package/mobile/bundle/ui-kit/DraftDialog/DraftDialog.d.ts +7 -0
  1526. package/mobile/bundle/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +4 -0
  1527. package/mobile/bundle/ui-kit/DraftDialog/parseDraftTask.d.ts +3 -0
  1528. package/mobile/bundle/ui-kit/DraftDialog/useDraftDialog.d.ts +10 -0
  1529. package/mobile/bundle/ui-kit/DraftDialog/utils.d.ts +148 -0
  1530. package/mobile/bundle/ui-kit/EsiaLoginDialog/EsiaLoginDialog.d.ts +4 -0
  1531. package/mobile/bundle/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.d.ts +1 -0
  1532. package/mobile/bundle/ui-kit/FormField/BaseFieldDef.d.ts +1 -1
  1533. package/mobile/bundle/ui-kit/FormField/Fields/AddressFactField.d.ts +2 -0
  1534. package/mobile/bundle/ui-kit/FormField/Fields/AddressField.d.ts +20 -0
  1535. package/mobile/bundle/ui-kit/FormField/Fields/AddressMatchField.d.ts +2 -0
  1536. package/mobile/bundle/ui-kit/FormField/Fields/AddressRetailField.d.ts +2 -0
  1537. package/mobile/bundle/ui-kit/FormField/Fields/AmountWorkersField.d.ts +2 -0
  1538. package/mobile/bundle/ui-kit/FormField/Fields/ApplierTypeField.d.ts +7 -0
  1539. package/mobile/bundle/ui-kit/FormField/Fields/ArmyIdFlgField.d.ts +2 -0
  1540. package/mobile/bundle/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
  1541. package/mobile/bundle/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
  1542. package/mobile/bundle/ui-kit/FormField/Fields/BeginDateField.d.ts +2 -0
  1543. package/mobile/bundle/ui-kit/FormField/Fields/BirthPlaceField.d.ts +2 -0
  1544. package/mobile/bundle/ui-kit/FormField/Fields/CardCategoryField.d.ts +2 -0
  1545. package/mobile/bundle/ui-kit/FormField/Fields/ChildrenField.d.ts +2 -0
  1546. package/mobile/bundle/ui-kit/FormField/Fields/CodeWordField.d.ts +2 -0
  1547. package/mobile/bundle/ui-kit/FormField/Fields/ConfirmationIncomeField.d.ts +2 -0
  1548. package/mobile/bundle/ui-kit/FormField/Fields/ConscriptionField.d.ts +2 -0
  1549. package/mobile/bundle/ui-kit/FormField/Fields/ConsentField.d.ts +2 -0
  1550. package/mobile/bundle/ui-kit/FormField/Fields/CreditCalcField.d.ts +2 -0
  1551. package/mobile/bundle/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
  1552. package/mobile/bundle/ui-kit/FormField/Fields/CurrencyField.d.ts +2 -0
  1553. package/mobile/bundle/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  1554. package/mobile/bundle/ui-kit/FormField/Fields/DependentsField.d.ts +2 -0
  1555. package/mobile/bundle/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
  1556. package/mobile/bundle/ui-kit/FormField/Fields/DulIssueDateField.d.ts +2 -0
  1557. package/mobile/bundle/ui-kit/FormField/Fields/DulIssuedByField.d.ts +2 -0
  1558. package/mobile/bundle/ui-kit/FormField/Fields/DulNumberField.d.ts +2 -0
  1559. package/mobile/bundle/ui-kit/FormField/Fields/DulSerieField.d.ts +2 -0
  1560. package/mobile/bundle/ui-kit/FormField/Fields/DulSubdivisionCodeField.d.ts +2 -0
  1561. package/mobile/bundle/ui-kit/FormField/Fields/EducationField.d.ts +2 -0
  1562. package/mobile/bundle/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +2 -0
  1563. package/mobile/bundle/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +2 -0
  1564. package/mobile/bundle/ui-kit/FormField/Fields/EmploymentField.d.ts +2 -0
  1565. package/mobile/bundle/ui-kit/FormField/Fields/ExpensesField.d.ts +2 -0
  1566. package/mobile/bundle/ui-kit/FormField/Fields/FamilyMembersField.d.ts +2 -0
  1567. package/mobile/bundle/ui-kit/FormField/Fields/FamilyStatusField.d.ts +2 -0
  1568. package/mobile/bundle/ui-kit/FormField/Fields/GeneralSeniorityField.d.ts +2 -0
  1569. package/mobile/bundle/ui-kit/FormField/Fields/HousingField.d.ts +2 -0
  1570. package/mobile/bundle/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
  1571. package/mobile/bundle/ui-kit/FormField/Fields/JobsNumberField.d.ts +2 -0
  1572. package/mobile/bundle/ui-kit/FormField/Fields/LastJobExperienceField.d.ts +2 -0
  1573. package/mobile/bundle/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
  1574. package/mobile/bundle/ui-kit/FormField/Fields/LegalFormField.d.ts +2 -0
  1575. package/mobile/bundle/ui-kit/FormField/Fields/LimitedBirthdayField.d.ts +2 -0
  1576. package/mobile/bundle/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
  1577. package/mobile/bundle/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  1578. package/mobile/bundle/ui-kit/FormField/Fields/OrganizationField.d.ts +2 -0
  1579. package/mobile/bundle/ui-kit/FormField/Fields/OrganizationNameField.d.ts +2 -0
  1580. package/mobile/bundle/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
  1581. package/mobile/bundle/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
  1582. package/mobile/bundle/ui-kit/FormField/Fields/ParticipantDateRegistrationField.d.ts +2 -0
  1583. package/mobile/bundle/ui-kit/FormField/Fields/PaymentSystemField.d.ts +2 -0
  1584. package/mobile/bundle/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +2 -0
  1585. package/mobile/bundle/ui-kit/FormField/Fields/RegionRetailField.d.ts +2 -0
  1586. package/mobile/bundle/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
  1587. package/mobile/bundle/ui-kit/FormField/Fields/SexField.d.ts +4 -0
  1588. package/mobile/bundle/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
  1589. package/mobile/bundle/ui-kit/FormField/Fields/SnilsField.d.ts +2 -0
  1590. package/mobile/bundle/ui-kit/FormField/Fields/TotalIncomeField.d.ts +2 -0
  1591. package/mobile/bundle/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
  1592. package/mobile/bundle/ui-kit/FormField/SelectField.d.ts +12 -0
  1593. package/mobile/bundle/ui-kit/FormField/getObjectValidator.d.ts +1 -1
  1594. package/mobile/bundle/ui-kit/FormField/isEsiaAuthorize.d.ts +2 -0
  1595. package/mobile/bundle/ui-kit/FormField/shouldRenderField.d.ts +1 -1
  1596. package/mobile/bundle/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
  1597. package/mobile/bundle/ui-kit/FormField/validators.d.ts +10 -0
  1598. package/mobile/bundle/ui-kit/Input/InputPopup.d.ts +8 -0
  1599. package/mobile/bundle/ui-kit/Input/InputProps.d.ts +4 -0
  1600. package/mobile/bundle/ui-kit/Input/useInputPopup.d.ts +13 -0
  1601. package/mobile/bundle/ui-kit/VerifyPhoneDialog/InputCode.d.ts +8 -0
  1602. package/mobile/bundle/ui-kit/VerifyPhoneDialog/SubmitButton.d.ts +7 -0
  1603. package/mobile/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +10 -0
  1604. package/mobile/bundle/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +16 -0
  1605. package/mobile/dist/api/RetailAPI/StatusType.d.ts +1 -0
  1606. package/mobile/dist/api/RetailAPI/StatusType.js +2 -0
  1607. package/mobile/dist/api/RetailAPI/StatusType.js.map +1 -0
  1608. package/mobile/dist/api/RetailAPI/checkCaptcha.d.ts +4 -0
  1609. package/mobile/dist/api/RetailAPI/checkCaptcha.js +8 -0
  1610. package/mobile/dist/api/RetailAPI/checkCaptcha.js.map +1 -0
  1611. package/mobile/dist/api/RetailAPI/checkCode.d.ts +12 -0
  1612. package/mobile/dist/api/RetailAPI/checkCode.js +12 -0
  1613. package/mobile/dist/api/RetailAPI/checkCode.js.map +1 -0
  1614. package/mobile/dist/api/RetailAPI/createCaptcha.d.ts +1 -0
  1615. package/mobile/dist/api/RetailAPI/createCaptcha.js +6 -0
  1616. package/mobile/dist/api/RetailAPI/createCaptcha.js.map +1 -0
  1617. package/mobile/dist/api/RetailAPI/createDraftTask.d.ts +9 -0
  1618. package/mobile/dist/api/RetailAPI/createDraftTask.js +9 -0
  1619. package/mobile/dist/api/RetailAPI/createDraftTask.js.map +1 -0
  1620. package/mobile/dist/api/RetailAPI/createUserProfile.d.ts +9 -0
  1621. package/mobile/dist/api/RetailAPI/createUserProfile.js +6 -0
  1622. package/mobile/dist/api/RetailAPI/createUserProfile.js.map +1 -0
  1623. package/mobile/dist/api/RetailAPI/doRequest.d.ts +2 -0
  1624. package/mobile/dist/api/RetailAPI/doRequest.js +36 -0
  1625. package/mobile/dist/api/RetailAPI/doRequest.js.map +1 -0
  1626. package/mobile/dist/api/RetailAPI/draftTasksKZO.d.ts +34 -0
  1627. package/mobile/dist/api/RetailAPI/draftTasksKZO.js +9 -0
  1628. package/mobile/dist/api/RetailAPI/draftTasksKZO.js.map +1 -0
  1629. package/mobile/dist/api/RetailAPI/feedbackById.d.ts +1 -0
  1630. package/mobile/dist/api/RetailAPI/feedbackById.js +9 -0
  1631. package/mobile/dist/api/RetailAPI/feedbackById.js.map +1 -0
  1632. package/mobile/dist/api/RetailAPI/getCardTypes.d.ts +8 -0
  1633. package/mobile/dist/api/RetailAPI/getCardTypes.js +12 -0
  1634. package/mobile/dist/api/RetailAPI/getCardTypes.js.map +1 -0
  1635. package/mobile/dist/api/RetailAPI/getGenderFromName.d.ts +1 -0
  1636. package/mobile/dist/api/RetailAPI/getGenderFromName.js +17 -0
  1637. package/mobile/dist/api/RetailAPI/getGenderFromName.js.map +1 -0
  1638. package/mobile/dist/api/RetailAPI/getLastTaskStatus.d.ts +6 -0
  1639. package/mobile/dist/api/RetailAPI/getLastTaskStatus.js +9 -0
  1640. package/mobile/dist/api/RetailAPI/getLastTaskStatus.js.map +1 -0
  1641. package/mobile/dist/api/RetailAPI/getLink.d.ts +7 -0
  1642. package/mobile/dist/api/RetailAPI/getLink.js +6 -0
  1643. package/mobile/dist/api/RetailAPI/getLink.js.map +1 -0
  1644. package/mobile/dist/api/RetailAPI/getPaymentSystems.d.ts +2 -0
  1645. package/mobile/dist/api/RetailAPI/getPaymentSystems.js +15 -0
  1646. package/mobile/dist/api/RetailAPI/getPaymentSystems.js.map +1 -0
  1647. package/mobile/dist/api/RetailAPI/getTaskById.d.ts +6 -0
  1648. package/mobile/dist/api/RetailAPI/getTaskById.js +9 -0
  1649. package/mobile/dist/api/RetailAPI/getTaskById.js.map +1 -0
  1650. package/mobile/dist/api/RetailAPI/getTaskStatus.d.ts +18 -0
  1651. package/mobile/dist/api/RetailAPI/getTaskStatus.js +18 -0
  1652. package/mobile/dist/api/RetailAPI/getTaskStatus.js.map +1 -0
  1653. package/mobile/dist/api/RetailAPI/getTraceId.d.ts +1 -0
  1654. package/mobile/dist/api/RetailAPI/getTraceId.js +9 -0
  1655. package/mobile/dist/api/RetailAPI/getTraceId.js.map +1 -0
  1656. package/mobile/dist/api/RetailAPI/getUserTasks.d.ts +41 -0
  1657. package/mobile/dist/api/RetailAPI/getUserTasks.js +15 -0
  1658. package/mobile/dist/api/RetailAPI/getUserTasks.js.map +1 -0
  1659. package/mobile/dist/api/RetailAPI/regionOffices.d.ts +16 -0
  1660. package/mobile/dist/api/RetailAPI/regionOffices.js +20 -0
  1661. package/mobile/dist/api/RetailAPI/regionOffices.js.map +1 -0
  1662. package/mobile/dist/api/RetailAPI/sendCode.d.ts +7 -0
  1663. package/mobile/dist/api/RetailAPI/sendCode.js +8 -0
  1664. package/mobile/dist/api/RetailAPI/sendCode.js.map +1 -0
  1665. package/mobile/dist/api/RetailAPI/sendSignalToProcess.d.ts +7 -0
  1666. package/mobile/dist/api/RetailAPI/sendSignalToProcess.js +6 -0
  1667. package/mobile/dist/api/RetailAPI/sendSignalToProcess.js.map +1 -0
  1668. package/mobile/dist/api/RetailAPI/updateProfileEsia.d.ts +66 -0
  1669. package/mobile/dist/api/RetailAPI/updateProfileEsia.js +6 -0
  1670. package/mobile/dist/api/RetailAPI/updateProfileEsia.js.map +1 -0
  1671. package/mobile/dist/api/RetailAPI/updateRefreshToken.d.ts +1 -0
  1672. package/mobile/dist/api/RetailAPI/updateRefreshToken.js +39 -0
  1673. package/mobile/dist/api/RetailAPI/updateRefreshToken.js.map +1 -0
  1674. package/mobile/dist/api/RetailAPI/updateUserProfile.d.ts +21 -0
  1675. package/mobile/dist/api/RetailAPI/updateUserProfile.js +6 -0
  1676. package/mobile/dist/api/RetailAPI/updateUserProfile.js.map +1 -0
  1677. package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +140 -0
  1678. package/mobile/dist/api/RetailAPI/updateUserTask.js +6 -0
  1679. package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -0
  1680. package/mobile/dist/api/dadataHints/dadataHints.d.ts +2 -0
  1681. package/mobile/dist/api/dadataHints/dadataHints.js +38 -0
  1682. package/mobile/dist/api/dadataHints/dadataHints.js.map +1 -0
  1683. package/mobile/dist/api/dadataHints/dadataHintsType.d.ts +68 -0
  1684. package/mobile/dist/api/dadataHints/dadataHintsType.js +2 -0
  1685. package/mobile/dist/api/dadataHints/dadataHintsType.js.map +1 -0
  1686. package/mobile/dist/api/dadataHints/hintsListsOptions.d.ts +11 -0
  1687. package/mobile/dist/api/dadataHints/hintsListsOptions.js +58 -0
  1688. package/mobile/dist/api/dadataHints/hintsListsOptions.js.map +1 -0
  1689. package/mobile/dist/components/ApplicationForm/getFormatData.js +5 -2
  1690. package/mobile/dist/components/ApplicationForm/getFormatData.js.map +1 -1
  1691. package/mobile/dist/components/ApplicationForm/getInitialFormState.d.ts +4 -2
  1692. package/mobile/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
  1693. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +6 -0
  1694. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +40 -0
  1695. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -0
  1696. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +18 -0
  1697. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js +2 -0
  1698. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -0
  1699. package/mobile/dist/components/ApplicationLeadForm/Footnote.d.ts +7 -0
  1700. package/mobile/dist/components/ApplicationLeadForm/Footnote.js +9 -0
  1701. package/mobile/dist/components/ApplicationLeadForm/Footnote.js.map +1 -0
  1702. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.d.ts +8 -0
  1703. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js +33 -0
  1704. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -0
  1705. package/mobile/dist/components/ApplicationLeadForm/applicationFormData.d.ts +2 -0
  1706. package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js +25 -0
  1707. package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -0
  1708. package/mobile/dist/components/ApplicationLeadForm/consents.d.ts +7 -0
  1709. package/mobile/dist/components/ApplicationLeadForm/consents.js +25 -0
  1710. package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -0
  1711. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +3 -0
  1712. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +24 -0
  1713. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -0
  1714. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +10 -0
  1715. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +51 -0
  1716. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -0
  1717. package/mobile/dist/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +3 -0
  1718. package/mobile/dist/components/ApplicationLeadForm/pasreEsiaProfile.js +53 -0
  1719. package/mobile/dist/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -0
  1720. package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +4 -0
  1721. package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +14 -0
  1722. package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -0
  1723. package/mobile/dist/components/ApplicationLeadForm/renderInputs.d.ts +2 -0
  1724. package/mobile/dist/components/ApplicationLeadForm/renderInputs.js +18 -0
  1725. package/mobile/dist/components/ApplicationLeadForm/renderInputs.js.map +1 -0
  1726. package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.d.ts +2 -0
  1727. package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js +7 -0
  1728. package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -0
  1729. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +11 -0
  1730. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +114 -0
  1731. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -0
  1732. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +5 -0
  1733. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +55 -0
  1734. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -0
  1735. package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
  1736. package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.js +6 -0
  1737. package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -0
  1738. package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +9 -0
  1739. package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js +17 -0
  1740. package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -0
  1741. package/mobile/dist/components/Blocks.js +6 -0
  1742. package/mobile/dist/components/Blocks.js.map +1 -1
  1743. package/mobile/dist/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  1744. package/mobile/dist/components/CreditCardForm/CreditCardForm.js +40 -0
  1745. package/mobile/dist/components/CreditCardForm/CreditCardForm.js.map +1 -0
  1746. package/mobile/dist/components/CreditCardForm/CreditCardFormContent.d.ts +21 -0
  1747. package/mobile/dist/components/CreditCardForm/CreditCardFormContent.js +2 -0
  1748. package/mobile/dist/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
  1749. package/mobile/dist/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  1750. package/mobile/dist/components/CreditCardForm/CreditCardFormProgress.js +11 -0
  1751. package/mobile/dist/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
  1752. package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.d.ts +15 -0
  1753. package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.js +23 -0
  1754. package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
  1755. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +1 -0
  1756. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +51 -0
  1757. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
  1758. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.d.ts +9 -0
  1759. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js +28 -0
  1760. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
  1761. package/mobile/dist/components/CreditCardForm/FailedStatusContent.d.ts +1 -0
  1762. package/mobile/dist/components/CreditCardForm/FailedStatusContent.js +7 -0
  1763. package/mobile/dist/components/CreditCardForm/FailedStatusContent.js.map +1 -0
  1764. package/mobile/dist/components/CreditCardForm/PendingStatusContent.d.ts +3 -0
  1765. package/mobile/dist/components/CreditCardForm/PendingStatusContent.js +20 -0
  1766. package/mobile/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -0
  1767. package/mobile/dist/components/CreditCardForm/ReworkStatusContent.d.ts +1 -0
  1768. package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js +35 -0
  1769. package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
  1770. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +6 -0
  1771. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js +12 -0
  1772. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
  1773. package/mobile/dist/components/CreditCardForm/SuccessStatusCardContent.d.ts +1 -0
  1774. package/mobile/dist/components/CreditCardForm/SuccessStatusCardContent.js +37 -0
  1775. package/mobile/dist/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -0
  1776. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  1777. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +9 -0
  1778. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
  1779. package/mobile/dist/components/CreditCardForm/formStateMap.d.ts +2 -0
  1780. package/mobile/dist/components/CreditCardForm/formStateMap.js +89 -0
  1781. package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -0
  1782. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  1783. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +57 -0
  1784. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
  1785. package/mobile/dist/components/CreditCardForm/getDeliveryCreditCardData.d.ts +28 -0
  1786. package/mobile/dist/components/CreditCardForm/getDeliveryCreditCardData.js +39 -0
  1787. package/mobile/dist/components/CreditCardForm/getDeliveryCreditCardData.js.map +1 -0
  1788. package/mobile/dist/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  1789. package/mobile/dist/components/CreditCardForm/getInitialFormState.js +22 -0
  1790. package/mobile/dist/components/CreditCardForm/getInitialFormState.js.map +1 -0
  1791. package/mobile/dist/components/CreditCardForm/renderInputs.d.ts +9 -0
  1792. package/mobile/dist/components/CreditCardForm/renderInputs.js +8 -0
  1793. package/mobile/dist/components/CreditCardForm/renderInputs.js.map +1 -0
  1794. package/mobile/dist/components/CreditCardForm/renderStep.d.ts +10 -0
  1795. package/mobile/dist/components/CreditCardForm/renderStep.js +15 -0
  1796. package/mobile/dist/components/CreditCardForm/renderStep.js.map +1 -0
  1797. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +8 -0
  1798. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +55 -0
  1799. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
  1800. package/mobile/dist/components/CreditForm/CreditForm.d.ts +9 -0
  1801. package/mobile/dist/components/CreditForm/CreditForm.js +41 -0
  1802. package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -0
  1803. package/mobile/dist/components/CreditForm/CreditFormContent.d.ts +9 -0
  1804. package/mobile/dist/components/CreditForm/CreditFormContent.js +2 -0
  1805. package/mobile/dist/components/CreditForm/CreditFormContent.js.map +1 -0
  1806. package/mobile/dist/components/CreditForm/CreditFormProgress.d.ts +6 -0
  1807. package/mobile/dist/components/CreditForm/CreditFormProgress.js +11 -0
  1808. package/mobile/dist/components/CreditForm/CreditFormProgress.js.map +1 -0
  1809. package/mobile/dist/components/CreditForm/CreditFormStatus.d.ts +15 -0
  1810. package/mobile/dist/components/CreditForm/CreditFormStatus.js +25 -0
  1811. package/mobile/dist/components/CreditForm/CreditFormStatus.js.map +1 -0
  1812. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.d.ts +1 -0
  1813. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +51 -0
  1814. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -0
  1815. package/mobile/dist/components/CreditForm/CreditFormStep.d.ts +11 -0
  1816. package/mobile/dist/components/CreditForm/CreditFormStep.js +31 -0
  1817. package/mobile/dist/components/CreditForm/CreditFormStep.js.map +1 -0
  1818. package/mobile/dist/components/CreditForm/FailedStatusContent.d.ts +1 -0
  1819. package/mobile/dist/components/CreditForm/FailedStatusContent.js +7 -0
  1820. package/mobile/dist/components/CreditForm/FailedStatusContent.js.map +1 -0
  1821. package/mobile/dist/components/CreditForm/PendingStatusContent.d.ts +3 -0
  1822. package/mobile/dist/components/CreditForm/PendingStatusContent.js +32 -0
  1823. package/mobile/dist/components/CreditForm/PendingStatusContent.js.map +1 -0
  1824. package/mobile/dist/components/CreditForm/ProgramsSourceProps.d.ts +16 -0
  1825. package/mobile/dist/components/CreditForm/ProgramsSourceProps.js +2 -0
  1826. package/mobile/dist/components/CreditForm/ProgramsSourceProps.js.map +1 -0
  1827. package/mobile/dist/components/CreditForm/ReworkStatusContent.d.ts +1 -0
  1828. package/mobile/dist/components/CreditForm/ReworkStatusContent.js +25 -0
  1829. package/mobile/dist/components/CreditForm/ReworkStatusContent.js.map +1 -0
  1830. package/mobile/dist/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
  1831. package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +12 -0
  1832. package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -0
  1833. package/mobile/dist/components/CreditForm/SuccessStatusContent.d.ts +1 -0
  1834. package/mobile/dist/components/CreditForm/SuccessStatusContent.js +32 -0
  1835. package/mobile/dist/components/CreditForm/SuccessStatusContent.js.map +1 -0
  1836. package/mobile/dist/components/CreditForm/creditFormStepsData.d.ts +2 -0
  1837. package/mobile/dist/components/CreditForm/creditFormStepsData.js +9 -0
  1838. package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -0
  1839. package/mobile/dist/components/CreditForm/formStateMap.d.ts +2 -0
  1840. package/mobile/dist/components/CreditForm/formStateMap.js +84 -0
  1841. package/mobile/dist/components/CreditForm/formStateMap.js.map +1 -0
  1842. package/mobile/dist/components/CreditForm/getCalcData.d.ts +3 -0
  1843. package/mobile/dist/components/CreditForm/getCalcData.js +16 -0
  1844. package/mobile/dist/components/CreditForm/getCalcData.js.map +1 -0
  1845. package/mobile/dist/components/CreditForm/getInitialFormState.d.ts +2 -0
  1846. package/mobile/dist/components/CreditForm/getInitialFormState.js +22 -0
  1847. package/mobile/dist/components/CreditForm/getInitialFormState.js.map +1 -0
  1848. package/mobile/dist/components/CreditForm/renderInputs.d.ts +9 -0
  1849. package/mobile/dist/components/CreditForm/renderInputs.js +7 -0
  1850. package/mobile/dist/components/CreditForm/renderInputs.js.map +1 -0
  1851. package/mobile/dist/components/CreditForm/renderStep.d.ts +10 -0
  1852. package/mobile/dist/components/CreditForm/renderStep.js +15 -0
  1853. package/mobile/dist/components/CreditForm/renderStep.js.map +1 -0
  1854. package/mobile/dist/components/CreditForm/useCreditFormAPI.d.ts +8 -0
  1855. package/mobile/dist/components/CreditForm/useCreditFormAPI.js +59 -0
  1856. package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -0
  1857. package/mobile/dist/components/CreditForm/utils.d.ts +25 -0
  1858. package/mobile/dist/components/CreditForm/utils.js +72 -0
  1859. package/mobile/dist/components/CreditForm/utils.js.map +1 -0
  1860. package/mobile/dist/hooks/useLeadFormData.d.ts +8 -0
  1861. package/mobile/dist/hooks/useLeadFormData.js +17 -0
  1862. package/mobile/dist/hooks/useLeadFormData.js.map +1 -0
  1863. package/mobile/dist/hooks/useRetailFormStore.d.ts +36 -0
  1864. package/mobile/dist/hooks/useRetailFormStore.js +8 -0
  1865. package/mobile/dist/hooks/useRetailFormStore.js.map +1 -0
  1866. package/mobile/dist/model/InputSectionsType.d.ts +9 -0
  1867. package/mobile/dist/services/retail/adaptors/getAdditionalInfoData.d.ts +3 -0
  1868. package/mobile/dist/services/retail/adaptors/getAdditionalInfoData.js +13 -0
  1869. package/mobile/dist/services/retail/adaptors/getAdditionalInfoData.js.map +1 -0
  1870. package/mobile/dist/services/retail/adaptors/getCalculatorData.d.ts +3 -0
  1871. package/mobile/dist/services/retail/adaptors/getCalculatorData.js +11 -0
  1872. package/mobile/dist/services/retail/adaptors/getCalculatorData.js.map +1 -0
  1873. package/mobile/dist/services/retail/adaptors/getCardOptionsData.d.ts +3 -0
  1874. package/mobile/dist/services/retail/adaptors/getCardOptionsData.js +13 -0
  1875. package/mobile/dist/services/retail/adaptors/getCardOptionsData.js.map +1 -0
  1876. package/mobile/dist/services/retail/adaptors/getCreditFormTaskData.d.ts +11 -0
  1877. package/mobile/dist/services/retail/adaptors/getCreditFormTaskData.js +58 -0
  1878. package/mobile/dist/services/retail/adaptors/getCreditFormTaskData.js.map +1 -0
  1879. package/mobile/dist/services/retail/adaptors/getDeliveryCreditData.d.ts +3 -0
  1880. package/mobile/dist/services/retail/adaptors/getDeliveryCreditData.js +10 -0
  1881. package/mobile/dist/services/retail/adaptors/getDeliveryCreditData.js.map +1 -0
  1882. package/mobile/dist/services/retail/adaptors/getEmploymentData.d.ts +3 -0
  1883. package/mobile/dist/services/retail/adaptors/getEmploymentData.js +31 -0
  1884. package/mobile/dist/services/retail/adaptors/getEmploymentData.js.map +1 -0
  1885. package/mobile/dist/services/retail/adaptors/getFamilyStatusAndIncomeData.d.ts +4 -0
  1886. package/mobile/dist/services/retail/adaptors/getFamilyStatusAndIncomeData.js +30 -0
  1887. package/mobile/dist/services/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -0
  1888. package/mobile/dist/services/retail/adaptors/getPersonalInfoData.d.ts +3 -0
  1889. package/mobile/dist/services/retail/adaptors/getPersonalInfoData.js +35 -0
  1890. package/mobile/dist/services/retail/adaptors/getPersonalInfoData.js.map +1 -0
  1891. package/mobile/dist/services/retail/content.d.ts +6 -0
  1892. package/mobile/dist/services/retail/content.js +364 -0
  1893. package/mobile/dist/services/retail/content.js.map +1 -0
  1894. package/mobile/dist/services/retail/external/types.d.ts +10 -0
  1895. package/mobile/dist/services/retail/external/types.js +2 -0
  1896. package/mobile/dist/services/retail/external/types.js.map +1 -0
  1897. package/mobile/dist/services/retail/external/utils.d.ts +2 -0
  1898. package/mobile/dist/services/retail/external/utils.js +7 -0
  1899. package/mobile/dist/services/retail/external/utils.js.map +1 -0
  1900. package/mobile/dist/services/retail/inputs.d.ts +75 -0
  1901. package/mobile/dist/services/retail/inputs.js +138 -0
  1902. package/mobile/dist/services/retail/inputs.js.map +1 -0
  1903. package/mobile/dist/services/retail/mockLocalStorage.d.ts +1 -0
  1904. package/mobile/dist/services/retail/mockLocalStorage.js +35 -0
  1905. package/mobile/dist/services/retail/mockLocalStorage.js.map +1 -0
  1906. package/mobile/dist/services/retail/model/EOrganizationActivityTypes.d.ts +23 -0
  1907. package/mobile/dist/services/retail/model/EOrganizationActivityTypes.js +2 -0
  1908. package/mobile/dist/services/retail/model/EOrganizationActivityTypes.js.map +1 -0
  1909. package/mobile/dist/services/retail/model/LeadFormData.d.ts +7 -0
  1910. package/mobile/dist/services/retail/model/LeadFormData.js +2 -0
  1911. package/mobile/dist/services/retail/model/LeadFormData.js.map +1 -0
  1912. package/mobile/dist/services/retail/model/LeadFormState.d.ts +146 -0
  1913. package/mobile/dist/services/retail/model/LeadFormState.js +2 -0
  1914. package/mobile/dist/services/retail/model/LeadFormState.js.map +1 -0
  1915. package/mobile/dist/services/retail/model/NameFieldDef.d.ts +6 -0
  1916. package/mobile/dist/services/retail/model/NameFieldDef.js +2 -0
  1917. package/mobile/dist/services/retail/model/NameFieldDef.js.map +1 -0
  1918. package/mobile/dist/services/retail/model/RetailFormContent.d.ts +26 -0
  1919. package/mobile/dist/services/retail/model/RetailFormContent.js +2 -0
  1920. package/mobile/dist/services/retail/model/RetailFormContent.js.map +1 -0
  1921. package/mobile/dist/services/retail/utils/calculateInputs.d.ts +5 -0
  1922. package/mobile/dist/services/retail/utils/calculateInputs.js +31 -0
  1923. package/mobile/dist/services/retail/utils/calculateInputs.js.map +1 -0
  1924. package/mobile/dist/services/retail/utils/getOrganizationParams.d.ts +17 -0
  1925. package/mobile/dist/services/retail/utils/getOrganizationParams.js +106 -0
  1926. package/mobile/dist/services/retail/utils/getOrganizationParams.js.map +1 -0
  1927. package/mobile/dist/services/retail/utils/getUpdateUserProfile.d.ts +3 -0
  1928. package/mobile/dist/services/retail/utils/getUpdateUserProfile.js +27 -0
  1929. package/mobile/dist/services/retail/utils/getUpdateUserProfile.js.map +1 -0
  1930. package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.d.ts +6 -0
  1931. package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +39 -0
  1932. package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -0
  1933. package/mobile/dist/ui-kit/Checkbox/CheckboxWithDoc.d.ts +6 -0
  1934. package/mobile/dist/ui-kit/Checkbox/CheckboxWithDoc.js +14 -0
  1935. package/mobile/dist/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -0
  1936. package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +5 -0
  1937. package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +42 -0
  1938. package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -0
  1939. package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -0
  1940. package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +44 -0
  1941. package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -0
  1942. package/mobile/dist/ui-kit/DocumentDialog/DocumentDialog.d.ts +6 -0
  1943. package/mobile/dist/ui-kit/DocumentDialog/DocumentDialog.js +16 -0
  1944. package/mobile/dist/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -0
  1945. package/mobile/dist/ui-kit/DocumentDialog/useDocumentDialog.d.ts +2 -0
  1946. package/mobile/dist/ui-kit/DocumentDialog/useDocumentDialog.js +19 -0
  1947. package/mobile/dist/ui-kit/DocumentDialog/useDocumentDialog.js.map +1 -0
  1948. package/mobile/dist/ui-kit/DraftDialog/DraftActionButton.d.ts +8 -0
  1949. package/mobile/dist/ui-kit/DraftDialog/DraftActionButton.js +9 -0
  1950. package/mobile/dist/ui-kit/DraftDialog/DraftActionButton.js.map +1 -0
  1951. package/mobile/dist/ui-kit/DraftDialog/DraftDialog.d.ts +7 -0
  1952. package/mobile/dist/ui-kit/DraftDialog/DraftDialog.js +37 -0
  1953. package/mobile/dist/ui-kit/DraftDialog/DraftDialog.js.map +1 -0
  1954. package/mobile/dist/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +4 -0
  1955. package/mobile/dist/ui-kit/DraftDialog/EmptyDraftDialog.js +22 -0
  1956. package/mobile/dist/ui-kit/DraftDialog/EmptyDraftDialog.js.map +1 -0
  1957. package/mobile/dist/ui-kit/DraftDialog/parseDraftTask.d.ts +3 -0
  1958. package/mobile/dist/ui-kit/DraftDialog/parseDraftTask.js +67 -0
  1959. package/mobile/dist/ui-kit/DraftDialog/parseDraftTask.js.map +1 -0
  1960. package/mobile/dist/ui-kit/DraftDialog/useDraftDialog.d.ts +10 -0
  1961. package/mobile/dist/ui-kit/DraftDialog/useDraftDialog.js +16 -0
  1962. package/mobile/dist/ui-kit/DraftDialog/useDraftDialog.js.map +1 -0
  1963. package/mobile/dist/ui-kit/DraftDialog/utils.d.ts +148 -0
  1964. package/mobile/dist/ui-kit/DraftDialog/utils.js +96 -0
  1965. package/mobile/dist/ui-kit/DraftDialog/utils.js.map +1 -0
  1966. package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.d.ts +4 -0
  1967. package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +33 -0
  1968. package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -0
  1969. package/mobile/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.d.ts +1 -0
  1970. package/mobile/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +15 -0
  1971. package/mobile/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -0
  1972. package/mobile/dist/ui-kit/FormField/BaseFieldDef.d.ts +1 -1
  1973. package/mobile/dist/ui-kit/FormField/Fields/AddressFactField.d.ts +2 -0
  1974. package/mobile/dist/ui-kit/FormField/Fields/AddressFactField.js +56 -0
  1975. package/mobile/dist/ui-kit/FormField/Fields/AddressFactField.js.map +1 -0
  1976. package/mobile/dist/ui-kit/FormField/Fields/AddressField.d.ts +20 -0
  1977. package/mobile/dist/ui-kit/FormField/Fields/AddressField.js +53 -0
  1978. package/mobile/dist/ui-kit/FormField/Fields/AddressField.js.map +1 -0
  1979. package/mobile/dist/ui-kit/FormField/Fields/AddressMatchField.d.ts +2 -0
  1980. package/mobile/dist/ui-kit/FormField/Fields/AddressMatchField.js +9 -0
  1981. package/mobile/dist/ui-kit/FormField/Fields/AddressMatchField.js.map +1 -0
  1982. package/mobile/dist/ui-kit/FormField/Fields/AddressRetailField.d.ts +2 -0
  1983. package/mobile/dist/ui-kit/FormField/Fields/AddressRetailField.js +37 -0
  1984. package/mobile/dist/ui-kit/FormField/Fields/AddressRetailField.js.map +1 -0
  1985. package/mobile/dist/ui-kit/FormField/Fields/AmountWorkersField.d.ts +2 -0
  1986. package/mobile/dist/ui-kit/FormField/Fields/AmountWorkersField.js +19 -0
  1987. package/mobile/dist/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -0
  1988. package/mobile/dist/ui-kit/FormField/Fields/ApplierTypeField.d.ts +7 -0
  1989. package/mobile/dist/ui-kit/FormField/Fields/ApplierTypeField.js +7 -5
  1990. package/mobile/dist/ui-kit/FormField/Fields/ApplierTypeField.js.map +1 -1
  1991. package/mobile/dist/ui-kit/FormField/Fields/ArmyIdFlgField.d.ts +2 -0
  1992. package/mobile/dist/ui-kit/FormField/Fields/ArmyIdFlgField.js +7 -0
  1993. package/mobile/dist/ui-kit/FormField/Fields/ArmyIdFlgField.js.map +1 -0
  1994. package/mobile/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
  1995. package/mobile/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js +7 -0
  1996. package/mobile/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +1 -0
  1997. package/mobile/dist/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
  1998. package/mobile/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js +7 -0
  1999. package/mobile/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -0
  2000. package/mobile/dist/ui-kit/FormField/Fields/BeginDateField.d.ts +2 -0
  2001. package/mobile/dist/ui-kit/FormField/Fields/BeginDateField.js +7 -0
  2002. package/mobile/dist/ui-kit/FormField/Fields/BeginDateField.js.map +1 -0
  2003. package/mobile/dist/ui-kit/FormField/Fields/BirthPlaceField.d.ts +2 -0
  2004. package/mobile/dist/ui-kit/FormField/Fields/BirthPlaceField.js +9 -0
  2005. package/mobile/dist/ui-kit/FormField/Fields/BirthPlaceField.js.map +1 -0
  2006. package/mobile/dist/ui-kit/FormField/Fields/CardCategoryField.d.ts +2 -0
  2007. package/mobile/dist/ui-kit/FormField/Fields/CardCategoryField.js +30 -0
  2008. package/mobile/dist/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -0
  2009. package/mobile/dist/ui-kit/FormField/Fields/ChildrenField.d.ts +2 -0
  2010. package/mobile/dist/ui-kit/FormField/Fields/ChildrenField.js +7 -0
  2011. package/mobile/dist/ui-kit/FormField/Fields/ChildrenField.js.map +1 -0
  2012. package/mobile/dist/ui-kit/FormField/Fields/CodeWordField.d.ts +2 -0
  2013. package/mobile/dist/ui-kit/FormField/Fields/CodeWordField.js +7 -0
  2014. package/mobile/dist/ui-kit/FormField/Fields/CodeWordField.js.map +1 -0
  2015. package/mobile/dist/ui-kit/FormField/Fields/ConfirmationIncomeField.d.ts +2 -0
  2016. package/mobile/dist/ui-kit/FormField/Fields/ConfirmationIncomeField.js +11 -0
  2017. package/mobile/dist/ui-kit/FormField/Fields/ConfirmationIncomeField.js.map +1 -0
  2018. package/mobile/dist/ui-kit/FormField/Fields/ConscriptionField.d.ts +2 -0
  2019. package/mobile/dist/ui-kit/FormField/Fields/ConscriptionField.js +11 -0
  2020. package/mobile/dist/ui-kit/FormField/Fields/ConscriptionField.js.map +1 -0
  2021. package/mobile/dist/ui-kit/FormField/Fields/ConsentField.d.ts +2 -0
  2022. package/mobile/dist/ui-kit/FormField/Fields/ConsentField.js +8 -0
  2023. package/mobile/dist/ui-kit/FormField/Fields/ConsentField.js.map +1 -0
  2024. package/mobile/dist/ui-kit/FormField/Fields/CreditCalcField.d.ts +2 -0
  2025. package/mobile/dist/ui-kit/FormField/Fields/CreditCalcField.js +28 -0
  2026. package/mobile/dist/ui-kit/FormField/Fields/CreditCalcField.js.map +1 -0
  2027. package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
  2028. package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js +14 -0
  2029. package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -0
  2030. package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.d.ts +2 -0
  2031. package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.js +8 -0
  2032. package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.js.map +1 -0
  2033. package/mobile/dist/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  2034. package/mobile/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js +7 -0
  2035. package/mobile/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
  2036. package/mobile/dist/ui-kit/FormField/Fields/DependentsField.d.ts +2 -0
  2037. package/mobile/dist/ui-kit/FormField/Fields/DependentsField.js +7 -0
  2038. package/mobile/dist/ui-kit/FormField/Fields/DependentsField.js.map +1 -0
  2039. package/mobile/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
  2040. package/mobile/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js +7 -0
  2041. package/mobile/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -0
  2042. package/mobile/dist/ui-kit/FormField/Fields/DulIssueDateField.d.ts +2 -0
  2043. package/mobile/dist/ui-kit/FormField/Fields/DulIssueDateField.js +8 -0
  2044. package/mobile/dist/ui-kit/FormField/Fields/DulIssueDateField.js.map +1 -0
  2045. package/mobile/dist/ui-kit/FormField/Fields/DulIssuedByField.d.ts +2 -0
  2046. package/mobile/dist/ui-kit/FormField/Fields/DulIssuedByField.js +15 -0
  2047. package/mobile/dist/ui-kit/FormField/Fields/DulIssuedByField.js.map +1 -0
  2048. package/mobile/dist/ui-kit/FormField/Fields/DulNumberField.d.ts +2 -0
  2049. package/mobile/dist/ui-kit/FormField/Fields/DulNumberField.js +8 -0
  2050. package/mobile/dist/ui-kit/FormField/Fields/DulNumberField.js.map +1 -0
  2051. package/mobile/dist/ui-kit/FormField/Fields/DulSerieField.d.ts +2 -0
  2052. package/mobile/dist/ui-kit/FormField/Fields/DulSerieField.js +8 -0
  2053. package/mobile/dist/ui-kit/FormField/Fields/DulSerieField.js.map +1 -0
  2054. package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.d.ts +2 -0
  2055. package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +14 -0
  2056. package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -0
  2057. package/mobile/dist/ui-kit/FormField/Fields/EducationField.d.ts +2 -0
  2058. package/mobile/dist/ui-kit/FormField/Fields/EducationField.js +11 -0
  2059. package/mobile/dist/ui-kit/FormField/Fields/EducationField.js.map +1 -0
  2060. package/mobile/dist/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +2 -0
  2061. package/mobile/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js +19 -0
  2062. package/mobile/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -0
  2063. package/mobile/dist/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +2 -0
  2064. package/mobile/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js +19 -0
  2065. package/mobile/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -0
  2066. package/mobile/dist/ui-kit/FormField/Fields/EmploymentField.d.ts +2 -0
  2067. package/mobile/dist/ui-kit/FormField/Fields/EmploymentField.js +11 -0
  2068. package/mobile/dist/ui-kit/FormField/Fields/EmploymentField.js.map +1 -0
  2069. package/mobile/dist/ui-kit/FormField/Fields/ExpensesField.d.ts +2 -0
  2070. package/mobile/dist/ui-kit/FormField/Fields/ExpensesField.js +7 -0
  2071. package/mobile/dist/ui-kit/FormField/Fields/ExpensesField.js.map +1 -0
  2072. package/mobile/dist/ui-kit/FormField/Fields/FamilyMembersField.d.ts +2 -0
  2073. package/mobile/dist/ui-kit/FormField/Fields/FamilyMembersField.js +19 -0
  2074. package/mobile/dist/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -0
  2075. package/mobile/dist/ui-kit/FormField/Fields/FamilyStatusField.d.ts +2 -0
  2076. package/mobile/dist/ui-kit/FormField/Fields/FamilyStatusField.js +11 -0
  2077. package/mobile/dist/ui-kit/FormField/Fields/FamilyStatusField.js.map +1 -0
  2078. package/mobile/dist/ui-kit/FormField/Fields/GeneralSeniorityField.d.ts +2 -0
  2079. package/mobile/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js +7 -0
  2080. package/mobile/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -0
  2081. package/mobile/dist/ui-kit/FormField/Fields/HousingField.d.ts +2 -0
  2082. package/mobile/dist/ui-kit/FormField/Fields/HousingField.js +11 -0
  2083. package/mobile/dist/ui-kit/FormField/Fields/HousingField.js.map +1 -0
  2084. package/mobile/dist/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
  2085. package/mobile/dist/ui-kit/FormField/Fields/InfoCardField.js +7 -0
  2086. package/mobile/dist/ui-kit/FormField/Fields/InfoCardField.js.map +1 -0
  2087. package/mobile/dist/ui-kit/FormField/Fields/InnField.js +11 -1
  2088. package/mobile/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
  2089. package/mobile/dist/ui-kit/FormField/Fields/JobsNumberField.d.ts +2 -0
  2090. package/mobile/dist/ui-kit/FormField/Fields/JobsNumberField.js +7 -0
  2091. package/mobile/dist/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -0
  2092. package/mobile/dist/ui-kit/FormField/Fields/LastJobExperienceField.d.ts +2 -0
  2093. package/mobile/dist/ui-kit/FormField/Fields/LastJobExperienceField.js +7 -0
  2094. package/mobile/dist/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -0
  2095. package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
  2096. package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.js +9 -0
  2097. package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -0
  2098. package/mobile/dist/ui-kit/FormField/Fields/LegalFormField.d.ts +2 -0
  2099. package/mobile/dist/ui-kit/FormField/Fields/LegalFormField.js +7 -0
  2100. package/mobile/dist/ui-kit/FormField/Fields/LegalFormField.js.map +1 -0
  2101. package/mobile/dist/ui-kit/FormField/Fields/LimitedBirthdayField.d.ts +2 -0
  2102. package/mobile/dist/ui-kit/FormField/Fields/LimitedBirthdayField.js +8 -0
  2103. package/mobile/dist/ui-kit/FormField/Fields/LimitedBirthdayField.js.map +1 -0
  2104. package/mobile/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
  2105. package/mobile/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js +7 -0
  2106. package/mobile/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -0
  2107. package/mobile/dist/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  2108. package/mobile/dist/ui-kit/FormField/Fields/MethodObtainField.js +11 -0
  2109. package/mobile/dist/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
  2110. package/mobile/dist/ui-kit/FormField/Fields/MiddleNameField.js +2 -1
  2111. package/mobile/dist/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
  2112. package/mobile/dist/ui-kit/FormField/Fields/NameField.js +2 -1
  2113. package/mobile/dist/ui-kit/FormField/Fields/NameField.js.map +1 -1
  2114. package/mobile/dist/ui-kit/FormField/Fields/OrganizationField.d.ts +2 -0
  2115. package/mobile/dist/ui-kit/FormField/Fields/OrganizationField.js +19 -0
  2116. package/mobile/dist/ui-kit/FormField/Fields/OrganizationField.js.map +1 -0
  2117. package/mobile/dist/ui-kit/FormField/Fields/OrganizationNameField.d.ts +2 -0
  2118. package/mobile/dist/ui-kit/FormField/Fields/OrganizationNameField.js +17 -0
  2119. package/mobile/dist/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -0
  2120. package/mobile/dist/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
  2121. package/mobile/dist/ui-kit/FormField/Fields/OtherIncomeField.js +7 -0
  2122. package/mobile/dist/ui-kit/FormField/Fields/OtherIncomeField.js.map +1 -0
  2123. package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
  2124. package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js +14 -0
  2125. package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -0
  2126. package/mobile/dist/ui-kit/FormField/Fields/ParticipantDateRegistrationField.d.ts +2 -0
  2127. package/mobile/dist/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js +7 -0
  2128. package/mobile/dist/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js.map +1 -0
  2129. package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.d.ts +2 -0
  2130. package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js +27 -0
  2131. package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -0
  2132. package/mobile/dist/ui-kit/FormField/Fields/PhoneField.js +2 -1
  2133. package/mobile/dist/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
  2134. package/mobile/dist/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +2 -0
  2135. package/mobile/dist/ui-kit/FormField/Fields/PositionOrganizationField.js +11 -0
  2136. package/mobile/dist/ui-kit/FormField/Fields/PositionOrganizationField.js.map +1 -0
  2137. package/mobile/dist/ui-kit/FormField/Fields/RegionRetailField.d.ts +2 -0
  2138. package/mobile/dist/ui-kit/FormField/Fields/RegionRetailField.js +12 -0
  2139. package/mobile/dist/ui-kit/FormField/Fields/RegionRetailField.js.map +1 -0
  2140. package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
  2141. package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.js +7 -0
  2142. package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -0
  2143. package/mobile/dist/ui-kit/FormField/Fields/SexField.d.ts +4 -0
  2144. package/mobile/dist/ui-kit/FormField/Fields/SexField.js +27 -0
  2145. package/mobile/dist/ui-kit/FormField/Fields/SexField.js.map +1 -0
  2146. package/mobile/dist/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
  2147. package/mobile/dist/ui-kit/FormField/Fields/ShareholderFlgField.js +7 -0
  2148. package/mobile/dist/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -0
  2149. package/mobile/dist/ui-kit/FormField/Fields/SnilsField.d.ts +2 -0
  2150. package/mobile/dist/ui-kit/FormField/Fields/SnilsField.js +7 -0
  2151. package/mobile/dist/ui-kit/FormField/Fields/SnilsField.js.map +1 -0
  2152. package/mobile/dist/ui-kit/FormField/Fields/SurnameField.js +3 -1
  2153. package/mobile/dist/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
  2154. package/mobile/dist/ui-kit/FormField/Fields/TotalIncomeField.d.ts +2 -0
  2155. package/mobile/dist/ui-kit/FormField/Fields/TotalIncomeField.js +7 -0
  2156. package/mobile/dist/ui-kit/FormField/Fields/TotalIncomeField.js.map +1 -0
  2157. package/mobile/dist/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
  2158. package/mobile/dist/ui-kit/FormField/Fields/WagesField.js +7 -0
  2159. package/mobile/dist/ui-kit/FormField/Fields/WagesField.js.map +1 -0
  2160. package/{dist/ui-kit/FormField/Fields//320/241onsentToReceiveMaterialsField.js → mobile/dist/ui-kit/FormField/Fields/consentToReceiveMaterialsField.js} +1 -1
  2161. package/mobile/dist/ui-kit/FormField/Fields/consentToReceiveMaterialsField.js.map +1 -0
  2162. package/mobile/dist/ui-kit/FormField/SelectField.d.ts +12 -0
  2163. package/mobile/dist/ui-kit/FormField/SelectField.js +15 -0
  2164. package/mobile/dist/ui-kit/FormField/SelectField.js.map +1 -0
  2165. package/mobile/dist/ui-kit/FormField/getField.js +2 -2
  2166. package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
  2167. package/mobile/dist/ui-kit/FormField/getObjectValidator.d.ts +1 -1
  2168. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +77 -8
  2169. package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  2170. package/mobile/dist/ui-kit/FormField/isEsiaAuthorize.d.ts +2 -0
  2171. package/mobile/dist/ui-kit/FormField/isEsiaAuthorize.js +6 -0
  2172. package/mobile/dist/ui-kit/FormField/isEsiaAuthorize.js.map +1 -0
  2173. package/mobile/dist/ui-kit/FormField/shouldRenderField.d.ts +1 -1
  2174. package/mobile/dist/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
  2175. package/mobile/dist/ui-kit/FormField/updateOrganizationFields.js +25 -0
  2176. package/mobile/dist/ui-kit/FormField/updateOrganizationFields.js.map +1 -0
  2177. package/mobile/dist/ui-kit/FormField/validators.d.ts +10 -0
  2178. package/mobile/dist/ui-kit/FormField/validators.js +53 -3
  2179. package/mobile/dist/ui-kit/FormField/validators.js.map +1 -1
  2180. package/mobile/dist/ui-kit/Input/InputControl.js +13 -4
  2181. package/mobile/dist/ui-kit/Input/InputControl.js.map +1 -1
  2182. package/mobile/dist/ui-kit/Input/InputPopup.d.ts +8 -0
  2183. package/mobile/dist/ui-kit/Input/InputPopup.js +34 -0
  2184. package/mobile/dist/ui-kit/Input/InputPopup.js.map +1 -0
  2185. package/mobile/dist/ui-kit/Input/InputProps.d.ts +4 -0
  2186. package/mobile/dist/ui-kit/Input/useInputPopup.d.ts +13 -0
  2187. package/mobile/dist/ui-kit/Input/useInputPopup.js +67 -0
  2188. package/mobile/dist/ui-kit/Input/useInputPopup.js.map +1 -0
  2189. package/mobile/dist/ui-kit/VerifyPhoneDialog/InputCode.d.ts +8 -0
  2190. package/mobile/dist/ui-kit/VerifyPhoneDialog/InputCode.js +46 -0
  2191. package/mobile/dist/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -0
  2192. package/mobile/dist/ui-kit/VerifyPhoneDialog/SubmitButton.d.ts +7 -0
  2193. package/mobile/dist/ui-kit/VerifyPhoneDialog/SubmitButton.js +10 -0
  2194. package/mobile/dist/ui-kit/VerifyPhoneDialog/SubmitButton.js.map +1 -0
  2195. package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +10 -0
  2196. package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +51 -0
  2197. package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -0
  2198. package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +16 -0
  2199. package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +51 -0
  2200. package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -0
  2201. package/mobile/lib/api/RetailAPI/StatusType.d.ts +1 -0
  2202. package/mobile/lib/api/RetailAPI/StatusType.js +2 -0
  2203. package/mobile/lib/api/RetailAPI/StatusType.js.map +1 -0
  2204. package/mobile/lib/api/RetailAPI/checkCaptcha.d.ts +4 -0
  2205. package/mobile/lib/api/RetailAPI/checkCaptcha.js +5 -0
  2206. package/mobile/lib/api/RetailAPI/checkCaptcha.js.map +1 -0
  2207. package/mobile/lib/api/RetailAPI/checkCode.d.ts +12 -0
  2208. package/mobile/lib/api/RetailAPI/checkCode.js +9 -0
  2209. package/mobile/lib/api/RetailAPI/checkCode.js.map +1 -0
  2210. package/mobile/lib/api/RetailAPI/createCaptcha.d.ts +1 -0
  2211. package/mobile/lib/api/RetailAPI/createCaptcha.js +3 -0
  2212. package/mobile/lib/api/RetailAPI/createCaptcha.js.map +1 -0
  2213. package/mobile/lib/api/RetailAPI/createDraftTask.d.ts +9 -0
  2214. package/mobile/lib/api/RetailAPI/createDraftTask.js +6 -0
  2215. package/mobile/lib/api/RetailAPI/createDraftTask.js.map +1 -0
  2216. package/mobile/lib/api/RetailAPI/createUserProfile.d.ts +9 -0
  2217. package/mobile/lib/api/RetailAPI/createUserProfile.js +3 -0
  2218. package/mobile/lib/api/RetailAPI/createUserProfile.js.map +1 -0
  2219. package/mobile/lib/api/RetailAPI/doRequest.d.ts +2 -0
  2220. package/mobile/lib/api/RetailAPI/doRequest.js +32 -0
  2221. package/mobile/lib/api/RetailAPI/doRequest.js.map +1 -0
  2222. package/mobile/lib/api/RetailAPI/draftTasksKZO.d.ts +34 -0
  2223. package/mobile/lib/api/RetailAPI/draftTasksKZO.js +6 -0
  2224. package/mobile/lib/api/RetailAPI/draftTasksKZO.js.map +1 -0
  2225. package/mobile/lib/api/RetailAPI/feedbackById.d.ts +1 -0
  2226. package/mobile/lib/api/RetailAPI/feedbackById.js +6 -0
  2227. package/mobile/lib/api/RetailAPI/feedbackById.js.map +1 -0
  2228. package/mobile/lib/api/RetailAPI/getCardTypes.d.ts +8 -0
  2229. package/mobile/lib/api/RetailAPI/getCardTypes.js +9 -0
  2230. package/mobile/lib/api/RetailAPI/getCardTypes.js.map +1 -0
  2231. package/mobile/lib/api/RetailAPI/getGenderFromName.d.ts +1 -0
  2232. package/mobile/lib/api/RetailAPI/getGenderFromName.js +14 -0
  2233. package/mobile/lib/api/RetailAPI/getGenderFromName.js.map +1 -0
  2234. package/mobile/lib/api/RetailAPI/getLastTaskStatus.d.ts +6 -0
  2235. package/mobile/lib/api/RetailAPI/getLastTaskStatus.js +6 -0
  2236. package/mobile/lib/api/RetailAPI/getLastTaskStatus.js.map +1 -0
  2237. package/mobile/lib/api/RetailAPI/getLink.d.ts +7 -0
  2238. package/mobile/lib/api/RetailAPI/getLink.js +3 -0
  2239. package/mobile/lib/api/RetailAPI/getLink.js.map +1 -0
  2240. package/mobile/lib/api/RetailAPI/getPaymentSystems.d.ts +2 -0
  2241. package/mobile/lib/api/RetailAPI/getPaymentSystems.js +12 -0
  2242. package/mobile/lib/api/RetailAPI/getPaymentSystems.js.map +1 -0
  2243. package/mobile/lib/api/RetailAPI/getTaskById.d.ts +6 -0
  2244. package/mobile/lib/api/RetailAPI/getTaskById.js +6 -0
  2245. package/mobile/lib/api/RetailAPI/getTaskById.js.map +1 -0
  2246. package/mobile/lib/api/RetailAPI/getTaskStatus.d.ts +18 -0
  2247. package/mobile/lib/api/RetailAPI/getTaskStatus.js +15 -0
  2248. package/mobile/lib/api/RetailAPI/getTaskStatus.js.map +1 -0
  2249. package/mobile/lib/api/RetailAPI/getTraceId.d.ts +1 -0
  2250. package/mobile/lib/api/RetailAPI/getTraceId.js +6 -0
  2251. package/mobile/lib/api/RetailAPI/getTraceId.js.map +1 -0
  2252. package/mobile/lib/api/RetailAPI/getUserTasks.d.ts +41 -0
  2253. package/mobile/lib/api/RetailAPI/getUserTasks.js +12 -0
  2254. package/mobile/lib/api/RetailAPI/getUserTasks.js.map +1 -0
  2255. package/mobile/lib/api/RetailAPI/regionOffices.d.ts +16 -0
  2256. package/mobile/lib/api/RetailAPI/regionOffices.js +17 -0
  2257. package/mobile/lib/api/RetailAPI/regionOffices.js.map +1 -0
  2258. package/mobile/lib/api/RetailAPI/sendCode.d.ts +7 -0
  2259. package/mobile/lib/api/RetailAPI/sendCode.js +5 -0
  2260. package/mobile/lib/api/RetailAPI/sendCode.js.map +1 -0
  2261. package/mobile/lib/api/RetailAPI/sendSignalToProcess.d.ts +7 -0
  2262. package/mobile/lib/api/RetailAPI/sendSignalToProcess.js +3 -0
  2263. package/mobile/lib/api/RetailAPI/sendSignalToProcess.js.map +1 -0
  2264. package/mobile/lib/api/RetailAPI/updateProfileEsia.d.ts +66 -0
  2265. package/mobile/lib/api/RetailAPI/updateProfileEsia.js +3 -0
  2266. package/mobile/lib/api/RetailAPI/updateProfileEsia.js.map +1 -0
  2267. package/mobile/lib/api/RetailAPI/updateRefreshToken.d.ts +1 -0
  2268. package/mobile/lib/api/RetailAPI/updateRefreshToken.js +36 -0
  2269. package/mobile/lib/api/RetailAPI/updateRefreshToken.js.map +1 -0
  2270. package/mobile/lib/api/RetailAPI/updateUserProfile.d.ts +21 -0
  2271. package/mobile/lib/api/RetailAPI/updateUserProfile.js +3 -0
  2272. package/mobile/lib/api/RetailAPI/updateUserProfile.js.map +1 -0
  2273. package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +140 -0
  2274. package/mobile/lib/api/RetailAPI/updateUserTask.js +3 -0
  2275. package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -0
  2276. package/mobile/lib/api/dadataHints/dadataHints.d.ts +2 -0
  2277. package/mobile/lib/api/dadataHints/dadataHints.js +35 -0
  2278. package/mobile/lib/api/dadataHints/dadataHints.js.map +1 -0
  2279. package/mobile/lib/api/dadataHints/dadataHintsType.d.ts +68 -0
  2280. package/mobile/lib/api/dadataHints/dadataHintsType.js +2 -0
  2281. package/mobile/lib/api/dadataHints/dadataHintsType.js.map +1 -0
  2282. package/mobile/lib/api/dadataHints/hintsListsOptions.d.ts +11 -0
  2283. package/mobile/lib/api/dadataHints/hintsListsOptions.js +56 -0
  2284. package/mobile/lib/api/dadataHints/hintsListsOptions.js.map +1 -0
  2285. package/mobile/lib/common.css +1 -1
  2286. package/mobile/lib/components/ApplicationForm/getFormatData.js +5 -2
  2287. package/mobile/lib/components/ApplicationForm/getFormatData.js.map +1 -1
  2288. package/mobile/lib/components/ApplicationForm/getInitialFormState.d.ts +4 -2
  2289. package/mobile/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
  2290. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +6 -0
  2291. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +38 -0
  2292. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -0
  2293. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +18 -0
  2294. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js +2 -0
  2295. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -0
  2296. package/mobile/lib/components/ApplicationLeadForm/Footnote.d.ts +7 -0
  2297. package/mobile/lib/components/ApplicationLeadForm/Footnote.js +7 -0
  2298. package/mobile/lib/components/ApplicationLeadForm/Footnote.js.map +1 -0
  2299. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.d.ts +8 -0
  2300. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js +31 -0
  2301. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -0
  2302. package/mobile/lib/components/ApplicationLeadForm/applicationFormData.d.ts +2 -0
  2303. package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js +23 -0
  2304. package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -0
  2305. package/mobile/lib/components/ApplicationLeadForm/consents.d.ts +7 -0
  2306. package/mobile/lib/components/ApplicationLeadForm/consents.js +23 -0
  2307. package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -0
  2308. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +3 -0
  2309. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +21 -0
  2310. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -0
  2311. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +10 -0
  2312. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +48 -0
  2313. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -0
  2314. package/mobile/lib/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +3 -0
  2315. package/mobile/lib/components/ApplicationLeadForm/pasreEsiaProfile.js +50 -0
  2316. package/mobile/lib/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -0
  2317. package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +4 -0
  2318. package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +11 -0
  2319. package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -0
  2320. package/mobile/lib/components/ApplicationLeadForm/renderInputs.d.ts +2 -0
  2321. package/mobile/lib/components/ApplicationLeadForm/renderInputs.js +15 -0
  2322. package/mobile/lib/components/ApplicationLeadForm/renderInputs.js.map +1 -0
  2323. package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.d.ts +2 -0
  2324. package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js +4 -0
  2325. package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -0
  2326. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +11 -0
  2327. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +111 -0
  2328. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -0
  2329. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +5 -0
  2330. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +52 -0
  2331. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -0
  2332. package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
  2333. package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.js +3 -0
  2334. package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -0
  2335. package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +9 -0
  2336. package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js +14 -0
  2337. package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -0
  2338. package/mobile/lib/components/Blocks.js +6 -0
  2339. package/mobile/lib/components/Blocks.js.map +1 -1
  2340. package/mobile/lib/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  2341. package/mobile/lib/components/CreditCardForm/CreditCardForm.js +38 -0
  2342. package/mobile/lib/components/CreditCardForm/CreditCardForm.js.map +1 -0
  2343. package/mobile/lib/components/CreditCardForm/CreditCardFormContent.d.ts +21 -0
  2344. package/mobile/lib/components/CreditCardForm/CreditCardFormContent.js +2 -0
  2345. package/mobile/lib/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
  2346. package/mobile/lib/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  2347. package/mobile/lib/components/CreditCardForm/CreditCardFormProgress.js +9 -0
  2348. package/mobile/lib/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
  2349. package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.d.ts +15 -0
  2350. package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.js +21 -0
  2351. package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
  2352. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +1 -0
  2353. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +49 -0
  2354. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
  2355. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.d.ts +9 -0
  2356. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js +26 -0
  2357. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
  2358. package/mobile/lib/components/CreditCardForm/FailedStatusContent.d.ts +1 -0
  2359. package/mobile/lib/components/CreditCardForm/FailedStatusContent.js +5 -0
  2360. package/mobile/lib/components/CreditCardForm/FailedStatusContent.js.map +1 -0
  2361. package/mobile/lib/components/CreditCardForm/PendingStatusContent.d.ts +3 -0
  2362. package/mobile/lib/components/CreditCardForm/PendingStatusContent.js +18 -0
  2363. package/mobile/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -0
  2364. package/mobile/lib/components/CreditCardForm/ReworkStatusContent.d.ts +1 -0
  2365. package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js +33 -0
  2366. package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
  2367. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +6 -0
  2368. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js +10 -0
  2369. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
  2370. package/mobile/lib/components/CreditCardForm/SuccessStatusCardContent.d.ts +1 -0
  2371. package/mobile/lib/components/CreditCardForm/SuccessStatusCardContent.js +35 -0
  2372. package/mobile/lib/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -0
  2373. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  2374. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +7 -0
  2375. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
  2376. package/mobile/lib/components/CreditCardForm/formStateMap.d.ts +2 -0
  2377. package/mobile/lib/components/CreditCardForm/formStateMap.js +87 -0
  2378. package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -0
  2379. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  2380. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +54 -0
  2381. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
  2382. package/mobile/lib/components/CreditCardForm/getDeliveryCreditCardData.d.ts +28 -0
  2383. package/mobile/lib/components/CreditCardForm/getDeliveryCreditCardData.js +34 -0
  2384. package/mobile/lib/components/CreditCardForm/getDeliveryCreditCardData.js.map +1 -0
  2385. package/mobile/lib/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  2386. package/mobile/lib/components/CreditCardForm/getInitialFormState.js +19 -0
  2387. package/mobile/lib/components/CreditCardForm/getInitialFormState.js.map +1 -0
  2388. package/mobile/lib/components/CreditCardForm/renderInputs.d.ts +9 -0
  2389. package/mobile/lib/components/CreditCardForm/renderInputs.js +5 -0
  2390. package/mobile/lib/components/CreditCardForm/renderInputs.js.map +1 -0
  2391. package/mobile/lib/components/CreditCardForm/renderStep.d.ts +10 -0
  2392. package/mobile/lib/components/CreditCardForm/renderStep.js +12 -0
  2393. package/mobile/lib/components/CreditCardForm/renderStep.js.map +1 -0
  2394. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +8 -0
  2395. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +52 -0
  2396. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
  2397. package/mobile/lib/components/CreditForm/CreditForm.d.ts +9 -0
  2398. package/mobile/lib/components/CreditForm/CreditForm.js +39 -0
  2399. package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -0
  2400. package/mobile/lib/components/CreditForm/CreditFormContent.d.ts +9 -0
  2401. package/mobile/lib/components/CreditForm/CreditFormContent.js +2 -0
  2402. package/mobile/lib/components/CreditForm/CreditFormContent.js.map +1 -0
  2403. package/mobile/lib/components/CreditForm/CreditFormProgress.d.ts +6 -0
  2404. package/mobile/lib/components/CreditForm/CreditFormProgress.js +9 -0
  2405. package/mobile/lib/components/CreditForm/CreditFormProgress.js.map +1 -0
  2406. package/mobile/lib/components/CreditForm/CreditFormStatus.d.ts +15 -0
  2407. package/mobile/lib/components/CreditForm/CreditFormStatus.js +23 -0
  2408. package/mobile/lib/components/CreditForm/CreditFormStatus.js.map +1 -0
  2409. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.d.ts +1 -0
  2410. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +49 -0
  2411. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -0
  2412. package/mobile/lib/components/CreditForm/CreditFormStep.d.ts +11 -0
  2413. package/mobile/lib/components/CreditForm/CreditFormStep.js +29 -0
  2414. package/mobile/lib/components/CreditForm/CreditFormStep.js.map +1 -0
  2415. package/mobile/lib/components/CreditForm/FailedStatusContent.d.ts +1 -0
  2416. package/mobile/lib/components/CreditForm/FailedStatusContent.js +5 -0
  2417. package/mobile/lib/components/CreditForm/FailedStatusContent.js.map +1 -0
  2418. package/mobile/lib/components/CreditForm/PendingStatusContent.d.ts +3 -0
  2419. package/mobile/lib/components/CreditForm/PendingStatusContent.js +30 -0
  2420. package/mobile/lib/components/CreditForm/PendingStatusContent.js.map +1 -0
  2421. package/mobile/lib/components/CreditForm/ProgramsSourceProps.d.ts +16 -0
  2422. package/mobile/lib/components/CreditForm/ProgramsSourceProps.js +2 -0
  2423. package/mobile/lib/components/CreditForm/ProgramsSourceProps.js.map +1 -0
  2424. package/mobile/lib/components/CreditForm/ReworkStatusContent.d.ts +1 -0
  2425. package/mobile/lib/components/CreditForm/ReworkStatusContent.js +23 -0
  2426. package/mobile/lib/components/CreditForm/ReworkStatusContent.js.map +1 -0
  2427. package/mobile/lib/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
  2428. package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +10 -0
  2429. package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -0
  2430. package/mobile/lib/components/CreditForm/SuccessStatusContent.d.ts +1 -0
  2431. package/mobile/lib/components/CreditForm/SuccessStatusContent.js +30 -0
  2432. package/mobile/lib/components/CreditForm/SuccessStatusContent.js.map +1 -0
  2433. package/mobile/lib/components/CreditForm/creditFormStepsData.d.ts +2 -0
  2434. package/mobile/lib/components/CreditForm/creditFormStepsData.js +7 -0
  2435. package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -0
  2436. package/mobile/lib/components/CreditForm/formStateMap.d.ts +2 -0
  2437. package/mobile/lib/components/CreditForm/formStateMap.js +82 -0
  2438. package/mobile/lib/components/CreditForm/formStateMap.js.map +1 -0
  2439. package/mobile/lib/components/CreditForm/getCalcData.d.ts +3 -0
  2440. package/mobile/lib/components/CreditForm/getCalcData.js +13 -0
  2441. package/mobile/lib/components/CreditForm/getCalcData.js.map +1 -0
  2442. package/mobile/lib/components/CreditForm/getInitialFormState.d.ts +2 -0
  2443. package/mobile/lib/components/CreditForm/getInitialFormState.js +19 -0
  2444. package/mobile/lib/components/CreditForm/getInitialFormState.js.map +1 -0
  2445. package/mobile/lib/components/CreditForm/renderInputs.d.ts +9 -0
  2446. package/mobile/lib/components/CreditForm/renderInputs.js +4 -0
  2447. package/mobile/lib/components/CreditForm/renderInputs.js.map +1 -0
  2448. package/mobile/lib/components/CreditForm/renderStep.d.ts +10 -0
  2449. package/mobile/lib/components/CreditForm/renderStep.js +12 -0
  2450. package/mobile/lib/components/CreditForm/renderStep.js.map +1 -0
  2451. package/mobile/lib/components/CreditForm/useCreditFormAPI.d.ts +8 -0
  2452. package/mobile/lib/components/CreditForm/useCreditFormAPI.js +56 -0
  2453. package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -0
  2454. package/mobile/lib/components/CreditForm/utils.d.ts +25 -0
  2455. package/mobile/lib/components/CreditForm/utils.js +67 -0
  2456. package/mobile/lib/components/CreditForm/utils.js.map +1 -0
  2457. package/mobile/lib/hooks/useLeadFormData.d.ts +8 -0
  2458. package/mobile/lib/hooks/useLeadFormData.js +14 -0
  2459. package/mobile/lib/hooks/useLeadFormData.js.map +1 -0
  2460. package/mobile/lib/hooks/useRetailFormStore.d.ts +36 -0
  2461. package/mobile/lib/hooks/useRetailFormStore.js +5 -0
  2462. package/mobile/lib/hooks/useRetailFormStore.js.map +1 -0
  2463. package/mobile/lib/model/InputSectionsType.d.ts +9 -0
  2464. package/mobile/lib/services/retail/adaptors/getAdditionalInfoData.d.ts +3 -0
  2465. package/mobile/lib/services/retail/adaptors/getAdditionalInfoData.js +10 -0
  2466. package/mobile/lib/services/retail/adaptors/getAdditionalInfoData.js.map +1 -0
  2467. package/mobile/lib/services/retail/adaptors/getCalculatorData.d.ts +3 -0
  2468. package/mobile/lib/services/retail/adaptors/getCalculatorData.js +8 -0
  2469. package/mobile/lib/services/retail/adaptors/getCalculatorData.js.map +1 -0
  2470. package/mobile/lib/services/retail/adaptors/getCardOptionsData.d.ts +3 -0
  2471. package/mobile/lib/services/retail/adaptors/getCardOptionsData.js +10 -0
  2472. package/mobile/lib/services/retail/adaptors/getCardOptionsData.js.map +1 -0
  2473. package/mobile/lib/services/retail/adaptors/getCreditFormTaskData.d.ts +11 -0
  2474. package/mobile/lib/services/retail/adaptors/getCreditFormTaskData.js +55 -0
  2475. package/mobile/lib/services/retail/adaptors/getCreditFormTaskData.js.map +1 -0
  2476. package/mobile/lib/services/retail/adaptors/getDeliveryCreditData.d.ts +3 -0
  2477. package/mobile/lib/services/retail/adaptors/getDeliveryCreditData.js +7 -0
  2478. package/mobile/lib/services/retail/adaptors/getDeliveryCreditData.js.map +1 -0
  2479. package/mobile/lib/services/retail/adaptors/getEmploymentData.d.ts +3 -0
  2480. package/mobile/lib/services/retail/adaptors/getEmploymentData.js +28 -0
  2481. package/mobile/lib/services/retail/adaptors/getEmploymentData.js.map +1 -0
  2482. package/mobile/lib/services/retail/adaptors/getFamilyStatusAndIncomeData.d.ts +4 -0
  2483. package/mobile/lib/services/retail/adaptors/getFamilyStatusAndIncomeData.js +26 -0
  2484. package/mobile/lib/services/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -0
  2485. package/mobile/lib/services/retail/adaptors/getPersonalInfoData.d.ts +3 -0
  2486. package/mobile/lib/services/retail/adaptors/getPersonalInfoData.js +32 -0
  2487. package/mobile/lib/services/retail/adaptors/getPersonalInfoData.js.map +1 -0
  2488. package/mobile/lib/services/retail/content.d.ts +6 -0
  2489. package/mobile/lib/services/retail/content.js +362 -0
  2490. package/mobile/lib/services/retail/content.js.map +1 -0
  2491. package/mobile/lib/services/retail/external/types.d.ts +10 -0
  2492. package/mobile/lib/services/retail/external/types.js +2 -0
  2493. package/mobile/lib/services/retail/external/types.js.map +1 -0
  2494. package/mobile/lib/services/retail/external/utils.d.ts +2 -0
  2495. package/mobile/lib/services/retail/external/utils.js +3 -0
  2496. package/mobile/lib/services/retail/external/utils.js.map +1 -0
  2497. package/mobile/lib/services/retail/inputs.d.ts +75 -0
  2498. package/mobile/lib/services/retail/inputs.js +136 -0
  2499. package/mobile/lib/services/retail/inputs.js.map +1 -0
  2500. package/mobile/lib/services/retail/mockLocalStorage.d.ts +1 -0
  2501. package/mobile/lib/services/retail/mockLocalStorage.js +32 -0
  2502. package/mobile/lib/services/retail/mockLocalStorage.js.map +1 -0
  2503. package/mobile/lib/services/retail/model/EOrganizationActivityTypes.d.ts +23 -0
  2504. package/mobile/lib/services/retail/model/EOrganizationActivityTypes.js +2 -0
  2505. package/mobile/lib/services/retail/model/EOrganizationActivityTypes.js.map +1 -0
  2506. package/mobile/lib/services/retail/model/LeadFormData.d.ts +7 -0
  2507. package/mobile/lib/services/retail/model/LeadFormData.js +2 -0
  2508. package/mobile/lib/services/retail/model/LeadFormData.js.map +1 -0
  2509. package/mobile/lib/services/retail/model/LeadFormState.d.ts +146 -0
  2510. package/mobile/lib/services/retail/model/LeadFormState.js +2 -0
  2511. package/mobile/lib/services/retail/model/LeadFormState.js.map +1 -0
  2512. package/mobile/lib/services/retail/model/NameFieldDef.d.ts +6 -0
  2513. package/mobile/lib/services/retail/model/NameFieldDef.js +2 -0
  2514. package/mobile/lib/services/retail/model/NameFieldDef.js.map +1 -0
  2515. package/mobile/lib/services/retail/model/RetailFormContent.d.ts +26 -0
  2516. package/mobile/lib/services/retail/model/RetailFormContent.js +2 -0
  2517. package/mobile/lib/services/retail/model/RetailFormContent.js.map +1 -0
  2518. package/mobile/lib/services/retail/utils/calculateInputs.d.ts +5 -0
  2519. package/mobile/lib/services/retail/utils/calculateInputs.js +27 -0
  2520. package/mobile/lib/services/retail/utils/calculateInputs.js.map +1 -0
  2521. package/mobile/lib/services/retail/utils/getOrganizationParams.d.ts +17 -0
  2522. package/mobile/lib/services/retail/utils/getOrganizationParams.js +100 -0
  2523. package/mobile/lib/services/retail/utils/getOrganizationParams.js.map +1 -0
  2524. package/mobile/lib/services/retail/utils/getUpdateUserProfile.d.ts +3 -0
  2525. package/mobile/lib/services/retail/utils/getUpdateUserProfile.js +24 -0
  2526. package/mobile/lib/services/retail/utils/getUpdateUserProfile.js.map +1 -0
  2527. package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.d.ts +6 -0
  2528. package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +37 -0
  2529. package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -0
  2530. package/mobile/lib/ui-kit/Checkbox/CheckboxWithDoc.d.ts +6 -0
  2531. package/mobile/lib/ui-kit/Checkbox/CheckboxWithDoc.js +12 -0
  2532. package/mobile/lib/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -0
  2533. package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +5 -0
  2534. package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +40 -0
  2535. package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -0
  2536. package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -0
  2537. package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +41 -0
  2538. package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -0
  2539. package/mobile/lib/ui-kit/DocumentDialog/DocumentDialog.d.ts +6 -0
  2540. package/mobile/lib/ui-kit/DocumentDialog/DocumentDialog.js +14 -0
  2541. package/mobile/lib/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -0
  2542. package/mobile/lib/ui-kit/DocumentDialog/useDocumentDialog.d.ts +2 -0
  2543. package/mobile/lib/ui-kit/DocumentDialog/useDocumentDialog.js +16 -0
  2544. package/mobile/lib/ui-kit/DocumentDialog/useDocumentDialog.js.map +1 -0
  2545. package/mobile/lib/ui-kit/DraftDialog/DraftActionButton.d.ts +8 -0
  2546. package/mobile/lib/ui-kit/DraftDialog/DraftActionButton.js +7 -0
  2547. package/mobile/lib/ui-kit/DraftDialog/DraftActionButton.js.map +1 -0
  2548. package/mobile/lib/ui-kit/DraftDialog/DraftDialog.d.ts +7 -0
  2549. package/mobile/lib/ui-kit/DraftDialog/DraftDialog.js +35 -0
  2550. package/mobile/lib/ui-kit/DraftDialog/DraftDialog.js.map +1 -0
  2551. package/mobile/lib/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +4 -0
  2552. package/mobile/lib/ui-kit/DraftDialog/EmptyDraftDialog.js +20 -0
  2553. package/mobile/lib/ui-kit/DraftDialog/EmptyDraftDialog.js.map +1 -0
  2554. package/mobile/lib/ui-kit/DraftDialog/parseDraftTask.d.ts +3 -0
  2555. package/mobile/lib/ui-kit/DraftDialog/parseDraftTask.js +64 -0
  2556. package/mobile/lib/ui-kit/DraftDialog/parseDraftTask.js.map +1 -0
  2557. package/mobile/lib/ui-kit/DraftDialog/useDraftDialog.d.ts +10 -0
  2558. package/mobile/lib/ui-kit/DraftDialog/useDraftDialog.js +13 -0
  2559. package/mobile/lib/ui-kit/DraftDialog/useDraftDialog.js.map +1 -0
  2560. package/mobile/lib/ui-kit/DraftDialog/utils.d.ts +148 -0
  2561. package/mobile/lib/ui-kit/DraftDialog/utils.js +89 -0
  2562. package/mobile/lib/ui-kit/DraftDialog/utils.js.map +1 -0
  2563. package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.d.ts +4 -0
  2564. package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +31 -0
  2565. package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -0
  2566. package/mobile/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.d.ts +1 -0
  2567. package/mobile/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +12 -0
  2568. package/mobile/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -0
  2569. package/mobile/lib/ui-kit/FormField/BaseFieldDef.d.ts +1 -1
  2570. package/mobile/lib/ui-kit/FormField/Fields/AddressFactField.d.ts +2 -0
  2571. package/mobile/lib/ui-kit/FormField/Fields/AddressFactField.js +54 -0
  2572. package/mobile/lib/ui-kit/FormField/Fields/AddressFactField.js.map +1 -0
  2573. package/mobile/lib/ui-kit/FormField/Fields/AddressField.d.ts +20 -0
  2574. package/mobile/lib/ui-kit/FormField/Fields/AddressField.js +50 -0
  2575. package/mobile/lib/ui-kit/FormField/Fields/AddressField.js.map +1 -0
  2576. package/mobile/lib/ui-kit/FormField/Fields/AddressMatchField.d.ts +2 -0
  2577. package/mobile/lib/ui-kit/FormField/Fields/AddressMatchField.js +7 -0
  2578. package/mobile/lib/ui-kit/FormField/Fields/AddressMatchField.js.map +1 -0
  2579. package/mobile/lib/ui-kit/FormField/Fields/AddressRetailField.d.ts +2 -0
  2580. package/mobile/lib/ui-kit/FormField/Fields/AddressRetailField.js +35 -0
  2581. package/mobile/lib/ui-kit/FormField/Fields/AddressRetailField.js.map +1 -0
  2582. package/mobile/lib/ui-kit/FormField/Fields/AmountWorkersField.d.ts +2 -0
  2583. package/mobile/lib/ui-kit/FormField/Fields/AmountWorkersField.js +17 -0
  2584. package/mobile/lib/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -0
  2585. package/mobile/lib/ui-kit/FormField/Fields/ApplierTypeField.d.ts +7 -0
  2586. package/mobile/lib/ui-kit/FormField/Fields/ApplierTypeField.js +5 -3
  2587. package/mobile/lib/ui-kit/FormField/Fields/ApplierTypeField.js.map +1 -1
  2588. package/mobile/lib/ui-kit/FormField/Fields/ArmyIdFlgField.d.ts +2 -0
  2589. package/mobile/lib/ui-kit/FormField/Fields/ArmyIdFlgField.js +5 -0
  2590. package/mobile/lib/ui-kit/FormField/Fields/ArmyIdFlgField.js.map +1 -0
  2591. package/mobile/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
  2592. package/mobile/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js +5 -0
  2593. package/mobile/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +1 -0
  2594. package/mobile/lib/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
  2595. package/mobile/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js +5 -0
  2596. package/mobile/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -0
  2597. package/mobile/lib/ui-kit/FormField/Fields/BeginDateField.d.ts +2 -0
  2598. package/mobile/lib/ui-kit/FormField/Fields/BeginDateField.js +5 -0
  2599. package/mobile/lib/ui-kit/FormField/Fields/BeginDateField.js.map +1 -0
  2600. package/mobile/lib/ui-kit/FormField/Fields/BirthPlaceField.d.ts +2 -0
  2601. package/mobile/lib/ui-kit/FormField/Fields/BirthPlaceField.js +7 -0
  2602. package/mobile/lib/ui-kit/FormField/Fields/BirthPlaceField.js.map +1 -0
  2603. package/mobile/lib/ui-kit/FormField/Fields/CardCategoryField.d.ts +2 -0
  2604. package/mobile/lib/ui-kit/FormField/Fields/CardCategoryField.js +28 -0
  2605. package/mobile/lib/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -0
  2606. package/mobile/lib/ui-kit/FormField/Fields/ChildrenField.d.ts +2 -0
  2607. package/mobile/lib/ui-kit/FormField/Fields/ChildrenField.js +5 -0
  2608. package/mobile/lib/ui-kit/FormField/Fields/ChildrenField.js.map +1 -0
  2609. package/mobile/lib/ui-kit/FormField/Fields/CodeWordField.d.ts +2 -0
  2610. package/mobile/lib/ui-kit/FormField/Fields/CodeWordField.js +5 -0
  2611. package/mobile/lib/ui-kit/FormField/Fields/CodeWordField.js.map +1 -0
  2612. package/mobile/lib/ui-kit/FormField/Fields/ConfirmationIncomeField.d.ts +2 -0
  2613. package/mobile/lib/ui-kit/FormField/Fields/ConfirmationIncomeField.js +9 -0
  2614. package/mobile/lib/ui-kit/FormField/Fields/ConfirmationIncomeField.js.map +1 -0
  2615. package/mobile/lib/ui-kit/FormField/Fields/ConscriptionField.d.ts +2 -0
  2616. package/mobile/lib/ui-kit/FormField/Fields/ConscriptionField.js +9 -0
  2617. package/mobile/lib/ui-kit/FormField/Fields/ConscriptionField.js.map +1 -0
  2618. package/mobile/lib/ui-kit/FormField/Fields/ConsentField.d.ts +2 -0
  2619. package/mobile/lib/ui-kit/FormField/Fields/ConsentField.js +6 -0
  2620. package/mobile/lib/ui-kit/FormField/Fields/ConsentField.js.map +1 -0
  2621. package/mobile/lib/ui-kit/FormField/Fields/CreditCalcField.d.ts +2 -0
  2622. package/mobile/lib/ui-kit/FormField/Fields/CreditCalcField.js +26 -0
  2623. package/mobile/lib/ui-kit/FormField/Fields/CreditCalcField.js.map +1 -0
  2624. package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
  2625. package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js +12 -0
  2626. package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -0
  2627. package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.d.ts +2 -0
  2628. package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.js +6 -0
  2629. package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.js.map +1 -0
  2630. package/mobile/lib/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  2631. package/mobile/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js +5 -0
  2632. package/mobile/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
  2633. package/mobile/lib/ui-kit/FormField/Fields/DependentsField.d.ts +2 -0
  2634. package/mobile/lib/ui-kit/FormField/Fields/DependentsField.js +5 -0
  2635. package/mobile/lib/ui-kit/FormField/Fields/DependentsField.js.map +1 -0
  2636. package/mobile/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
  2637. package/mobile/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js +5 -0
  2638. package/mobile/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -0
  2639. package/mobile/lib/ui-kit/FormField/Fields/DulIssueDateField.d.ts +2 -0
  2640. package/mobile/lib/ui-kit/FormField/Fields/DulIssueDateField.js +6 -0
  2641. package/mobile/lib/ui-kit/FormField/Fields/DulIssueDateField.js.map +1 -0
  2642. package/mobile/lib/ui-kit/FormField/Fields/DulIssuedByField.d.ts +2 -0
  2643. package/mobile/lib/ui-kit/FormField/Fields/DulIssuedByField.js +13 -0
  2644. package/mobile/lib/ui-kit/FormField/Fields/DulIssuedByField.js.map +1 -0
  2645. package/mobile/lib/ui-kit/FormField/Fields/DulNumberField.d.ts +2 -0
  2646. package/mobile/lib/ui-kit/FormField/Fields/DulNumberField.js +6 -0
  2647. package/mobile/lib/ui-kit/FormField/Fields/DulNumberField.js.map +1 -0
  2648. package/mobile/lib/ui-kit/FormField/Fields/DulSerieField.d.ts +2 -0
  2649. package/mobile/lib/ui-kit/FormField/Fields/DulSerieField.js +6 -0
  2650. package/mobile/lib/ui-kit/FormField/Fields/DulSerieField.js.map +1 -0
  2651. package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.d.ts +2 -0
  2652. package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +12 -0
  2653. package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -0
  2654. package/mobile/lib/ui-kit/FormField/Fields/EducationField.d.ts +2 -0
  2655. package/mobile/lib/ui-kit/FormField/Fields/EducationField.js +9 -0
  2656. package/mobile/lib/ui-kit/FormField/Fields/EducationField.js.map +1 -0
  2657. package/mobile/lib/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +2 -0
  2658. package/mobile/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js +17 -0
  2659. package/mobile/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -0
  2660. package/mobile/lib/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +2 -0
  2661. package/mobile/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js +17 -0
  2662. package/mobile/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -0
  2663. package/mobile/lib/ui-kit/FormField/Fields/EmploymentField.d.ts +2 -0
  2664. package/mobile/lib/ui-kit/FormField/Fields/EmploymentField.js +9 -0
  2665. package/mobile/lib/ui-kit/FormField/Fields/EmploymentField.js.map +1 -0
  2666. package/mobile/lib/ui-kit/FormField/Fields/ExpensesField.d.ts +2 -0
  2667. package/mobile/lib/ui-kit/FormField/Fields/ExpensesField.js +5 -0
  2668. package/mobile/lib/ui-kit/FormField/Fields/ExpensesField.js.map +1 -0
  2669. package/mobile/lib/ui-kit/FormField/Fields/FamilyMembersField.d.ts +2 -0
  2670. package/mobile/lib/ui-kit/FormField/Fields/FamilyMembersField.js +17 -0
  2671. package/mobile/lib/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -0
  2672. package/mobile/lib/ui-kit/FormField/Fields/FamilyStatusField.d.ts +2 -0
  2673. package/mobile/lib/ui-kit/FormField/Fields/FamilyStatusField.js +9 -0
  2674. package/mobile/lib/ui-kit/FormField/Fields/FamilyStatusField.js.map +1 -0
  2675. package/mobile/lib/ui-kit/FormField/Fields/GeneralSeniorityField.d.ts +2 -0
  2676. package/mobile/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js +5 -0
  2677. package/mobile/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -0
  2678. package/mobile/lib/ui-kit/FormField/Fields/HousingField.d.ts +2 -0
  2679. package/mobile/lib/ui-kit/FormField/Fields/HousingField.js +9 -0
  2680. package/mobile/lib/ui-kit/FormField/Fields/HousingField.js.map +1 -0
  2681. package/mobile/lib/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
  2682. package/mobile/lib/ui-kit/FormField/Fields/InfoCardField.js +5 -0
  2683. package/mobile/lib/ui-kit/FormField/Fields/InfoCardField.js.map +1 -0
  2684. package/mobile/lib/ui-kit/FormField/Fields/InnField.js +11 -1
  2685. package/mobile/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
  2686. package/mobile/lib/ui-kit/FormField/Fields/JobsNumberField.d.ts +2 -0
  2687. package/mobile/lib/ui-kit/FormField/Fields/JobsNumberField.js +5 -0
  2688. package/mobile/lib/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -0
  2689. package/mobile/lib/ui-kit/FormField/Fields/LastJobExperienceField.d.ts +2 -0
  2690. package/mobile/lib/ui-kit/FormField/Fields/LastJobExperienceField.js +5 -0
  2691. package/mobile/lib/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -0
  2692. package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
  2693. package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.js +7 -0
  2694. package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -0
  2695. package/mobile/lib/ui-kit/FormField/Fields/LegalFormField.d.ts +2 -0
  2696. package/mobile/lib/ui-kit/FormField/Fields/LegalFormField.js +5 -0
  2697. package/mobile/lib/ui-kit/FormField/Fields/LegalFormField.js.map +1 -0
  2698. package/mobile/lib/ui-kit/FormField/Fields/LimitedBirthdayField.d.ts +2 -0
  2699. package/mobile/lib/ui-kit/FormField/Fields/LimitedBirthdayField.js +6 -0
  2700. package/mobile/lib/ui-kit/FormField/Fields/LimitedBirthdayField.js.map +1 -0
  2701. package/mobile/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
  2702. package/mobile/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js +5 -0
  2703. package/mobile/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -0
  2704. package/mobile/lib/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  2705. package/mobile/lib/ui-kit/FormField/Fields/MethodObtainField.js +9 -0
  2706. package/mobile/lib/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
  2707. package/mobile/lib/ui-kit/FormField/Fields/MiddleNameField.js +2 -1
  2708. package/mobile/lib/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
  2709. package/mobile/lib/ui-kit/FormField/Fields/NameField.js +2 -1
  2710. package/mobile/lib/ui-kit/FormField/Fields/NameField.js.map +1 -1
  2711. package/mobile/lib/ui-kit/FormField/Fields/OrganizationField.d.ts +2 -0
  2712. package/mobile/lib/ui-kit/FormField/Fields/OrganizationField.js +17 -0
  2713. package/mobile/lib/ui-kit/FormField/Fields/OrganizationField.js.map +1 -0
  2714. package/mobile/lib/ui-kit/FormField/Fields/OrganizationNameField.d.ts +2 -0
  2715. package/mobile/lib/ui-kit/FormField/Fields/OrganizationNameField.js +15 -0
  2716. package/mobile/lib/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -0
  2717. package/mobile/lib/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
  2718. package/mobile/lib/ui-kit/FormField/Fields/OtherIncomeField.js +5 -0
  2719. package/mobile/lib/ui-kit/FormField/Fields/OtherIncomeField.js.map +1 -0
  2720. package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.d.ts +2 -0
  2721. package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js +12 -0
  2722. package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -0
  2723. package/mobile/lib/ui-kit/FormField/Fields/ParticipantDateRegistrationField.d.ts +2 -0
  2724. package/mobile/lib/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js +5 -0
  2725. package/mobile/lib/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js.map +1 -0
  2726. package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.d.ts +2 -0
  2727. package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js +25 -0
  2728. package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -0
  2729. package/mobile/lib/ui-kit/FormField/Fields/PhoneField.js +2 -1
  2730. package/mobile/lib/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
  2731. package/mobile/lib/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +2 -0
  2732. package/mobile/lib/ui-kit/FormField/Fields/PositionOrganizationField.js +9 -0
  2733. package/mobile/lib/ui-kit/FormField/Fields/PositionOrganizationField.js.map +1 -0
  2734. package/mobile/lib/ui-kit/FormField/Fields/RegionRetailField.d.ts +2 -0
  2735. package/mobile/lib/ui-kit/FormField/Fields/RegionRetailField.js +10 -0
  2736. package/mobile/lib/ui-kit/FormField/Fields/RegionRetailField.js.map +1 -0
  2737. package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
  2738. package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.js +5 -0
  2739. package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -0
  2740. package/mobile/lib/ui-kit/FormField/Fields/SexField.d.ts +4 -0
  2741. package/mobile/lib/ui-kit/FormField/Fields/SexField.js +25 -0
  2742. package/mobile/lib/ui-kit/FormField/Fields/SexField.js.map +1 -0
  2743. package/mobile/lib/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
  2744. package/mobile/lib/ui-kit/FormField/Fields/ShareholderFlgField.js +5 -0
  2745. package/mobile/lib/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -0
  2746. package/mobile/lib/ui-kit/FormField/Fields/SnilsField.d.ts +2 -0
  2747. package/mobile/lib/ui-kit/FormField/Fields/SnilsField.js +5 -0
  2748. package/mobile/lib/ui-kit/FormField/Fields/SnilsField.js.map +1 -0
  2749. package/mobile/lib/ui-kit/FormField/Fields/SurnameField.js +3 -1
  2750. package/mobile/lib/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
  2751. package/mobile/lib/ui-kit/FormField/Fields/TotalIncomeField.d.ts +2 -0
  2752. package/mobile/lib/ui-kit/FormField/Fields/TotalIncomeField.js +5 -0
  2753. package/mobile/lib/ui-kit/FormField/Fields/TotalIncomeField.js.map +1 -0
  2754. package/mobile/lib/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
  2755. package/mobile/lib/ui-kit/FormField/Fields/WagesField.js +5 -0
  2756. package/mobile/lib/ui-kit/FormField/Fields/WagesField.js.map +1 -0
  2757. package/mobile/lib/ui-kit/FormField/Fields/{/320/241onsentToReceiveMaterialsField.js → consentToReceiveMaterialsField.js} +1 -1
  2758. package/mobile/lib/ui-kit/FormField/Fields/consentToReceiveMaterialsField.js.map +1 -0
  2759. package/mobile/lib/ui-kit/FormField/SelectField.d.ts +12 -0
  2760. package/mobile/lib/ui-kit/FormField/SelectField.js +13 -0
  2761. package/mobile/lib/ui-kit/FormField/SelectField.js.map +1 -0
  2762. package/mobile/lib/ui-kit/FormField/getField.js +1 -1
  2763. package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
  2764. package/mobile/lib/ui-kit/FormField/getObjectValidator.d.ts +1 -1
  2765. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +78 -9
  2766. package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  2767. package/mobile/lib/ui-kit/FormField/isEsiaAuthorize.d.ts +2 -0
  2768. package/mobile/lib/ui-kit/FormField/isEsiaAuthorize.js +3 -0
  2769. package/mobile/lib/ui-kit/FormField/isEsiaAuthorize.js.map +1 -0
  2770. package/mobile/lib/ui-kit/FormField/shouldRenderField.d.ts +1 -1
  2771. package/mobile/lib/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
  2772. package/mobile/lib/ui-kit/FormField/updateOrganizationFields.js +22 -0
  2773. package/mobile/lib/ui-kit/FormField/updateOrganizationFields.js.map +1 -0
  2774. package/mobile/lib/ui-kit/FormField/validators.d.ts +10 -0
  2775. package/mobile/lib/ui-kit/FormField/validators.js +42 -1
  2776. package/mobile/lib/ui-kit/FormField/validators.js.map +1 -1
  2777. package/mobile/lib/ui-kit/Input/InputControl.js +13 -4
  2778. package/mobile/lib/ui-kit/Input/InputControl.js.map +1 -1
  2779. package/mobile/lib/ui-kit/Input/InputPopup.d.ts +8 -0
  2780. package/mobile/lib/ui-kit/Input/InputPopup.js +32 -0
  2781. package/mobile/lib/ui-kit/Input/InputPopup.js.map +1 -0
  2782. package/mobile/lib/ui-kit/Input/InputProps.d.ts +4 -0
  2783. package/mobile/lib/ui-kit/Input/useInputPopup.d.ts +13 -0
  2784. package/mobile/lib/ui-kit/Input/useInputPopup.js +64 -0
  2785. package/mobile/lib/ui-kit/Input/useInputPopup.js.map +1 -0
  2786. package/mobile/lib/ui-kit/VerifyPhoneDialog/InputCode.d.ts +8 -0
  2787. package/mobile/lib/ui-kit/VerifyPhoneDialog/InputCode.js +44 -0
  2788. package/mobile/lib/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -0
  2789. package/mobile/lib/ui-kit/VerifyPhoneDialog/SubmitButton.d.ts +7 -0
  2790. package/mobile/lib/ui-kit/VerifyPhoneDialog/SubmitButton.js +8 -0
  2791. package/mobile/lib/ui-kit/VerifyPhoneDialog/SubmitButton.js.map +1 -0
  2792. package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +10 -0
  2793. package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +49 -0
  2794. package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -0
  2795. package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +16 -0
  2796. package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +48 -0
  2797. package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -0
  2798. package/mobile/src/api/RetailAPI/StatusType.ts +1 -0
  2799. package/mobile/src/api/RetailAPI/checkCaptcha.ts +10 -0
  2800. package/mobile/src/api/RetailAPI/checkCode.ts +24 -0
  2801. package/mobile/src/api/RetailAPI/createCaptcha.ts +6 -0
  2802. package/mobile/src/api/RetailAPI/createDraftTask.ts +23 -0
  2803. package/mobile/src/api/RetailAPI/createUserProfile.ts +15 -0
  2804. package/mobile/src/api/RetailAPI/doRequest.ts +45 -0
  2805. package/mobile/src/api/RetailAPI/draftTasksKZO.ts +39 -0
  2806. package/mobile/src/api/RetailAPI/feedbackById.ts +10 -0
  2807. package/mobile/src/api/RetailAPI/getCardTypes.ts +18 -0
  2808. package/mobile/src/api/RetailAPI/getGenderFromName.ts +17 -0
  2809. package/mobile/src/api/RetailAPI/getLastTaskStatus.ts +21 -0
  2810. package/mobile/src/api/RetailAPI/getLink.ts +12 -0
  2811. package/mobile/src/api/RetailAPI/getPaymentSystems.ts +29 -0
  2812. package/mobile/src/api/RetailAPI/getTaskById.ts +12 -0
  2813. package/mobile/src/api/RetailAPI/getTaskStatus.ts +21 -0
  2814. package/mobile/src/api/RetailAPI/getTraceId.ts +6 -0
  2815. package/mobile/src/api/RetailAPI/getUserTasks.ts +50 -0
  2816. package/mobile/src/api/RetailAPI/regionOffices.ts +42 -0
  2817. package/mobile/src/api/RetailAPI/sendCode.ts +13 -0
  2818. package/mobile/src/api/RetailAPI/sendSignalToProcess.ts +14 -0
  2819. package/mobile/src/api/RetailAPI/updateProfileEsia.ts +71 -0
  2820. package/mobile/src/api/RetailAPI/updateRefreshToken.ts +53 -0
  2821. package/mobile/src/api/RetailAPI/updateUserProfile.ts +25 -0
  2822. package/mobile/src/api/RetailAPI/updateUserTask.ts +155 -0
  2823. package/mobile/src/api/dadataHints/dadataHints.ts +51 -0
  2824. package/mobile/src/api/dadataHints/dadataHintsType.ts +79 -0
  2825. package/mobile/src/api/dadataHints/hintsListsOptions.ts +77 -0
  2826. package/mobile/src/components/ApplicationForm/getFormatData.tsx +7 -1
  2827. package/mobile/src/components/ApplicationForm/getInitialFormState.tsx +4 -2
  2828. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +70 -0
  2829. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +72 -0
  2830. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.ui.json +1 -0
  2831. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +23 -0
  2832. package/mobile/src/components/ApplicationLeadForm/Footnote.tsx +21 -0
  2833. package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +79 -0
  2834. package/mobile/src/components/ApplicationLeadForm/applicationFormData.tsx +24 -0
  2835. package/mobile/src/components/ApplicationLeadForm/consents.ts +29 -0
  2836. package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +29 -0
  2837. package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +66 -0
  2838. package/mobile/src/components/ApplicationLeadForm/pasreEsiaProfile.ts +70 -0
  2839. package/mobile/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +28 -0
  2840. package/mobile/src/components/ApplicationLeadForm/renderInputs.tsx +26 -0
  2841. package/mobile/src/components/ApplicationLeadForm/renderSubmitButton.tsx +8 -0
  2842. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +141 -0
  2843. package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +71 -0
  2844. package/mobile/src/components/ApplicationLeadForm/useLeadFormStore.ts +12 -0
  2845. package/mobile/src/components/ApplicationLeadForm/useSaveUserData.ts +27 -0
  2846. package/mobile/src/components/Blocks.ts +6 -0
  2847. package/mobile/src/components/CreditCardForm/CreditCardForm.tsx +75 -0
  2848. package/mobile/src/components/CreditCardForm/CreditCardFormContent.ts +26 -0
  2849. package/mobile/src/components/CreditCardForm/CreditCardFormProgress.tsx +27 -0
  2850. package/mobile/src/components/CreditCardForm/CreditCardFormStatus.tsx +110 -0
  2851. package/mobile/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +61 -0
  2852. package/mobile/src/components/CreditCardForm/CreditCardFormStep.tsx +52 -0
  2853. package/mobile/src/components/CreditCardForm/FailedStatusContent.tsx +10 -0
  2854. package/mobile/src/components/CreditCardForm/PendingStatusContent.tsx +27 -0
  2855. package/mobile/src/components/CreditCardForm/ReworkStatusContent.tsx +46 -0
  2856. package/mobile/src/components/CreditCardForm/StepsNavigationButtons.tsx +27 -0
  2857. package/mobile/src/components/CreditCardForm/SuccessStatusCardContent.tsx +45 -0
  2858. package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +12 -0
  2859. package/mobile/src/components/CreditCardForm/formStateMap.tsx +88 -0
  2860. package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +76 -0
  2861. package/mobile/src/components/CreditCardForm/getDeliveryCreditCardData.ts +43 -0
  2862. package/mobile/src/components/CreditCardForm/getInitialFormState.tsx +25 -0
  2863. package/mobile/src/components/CreditCardForm/renderInputs.tsx +18 -0
  2864. package/mobile/src/components/CreditCardForm/renderStep.tsx +32 -0
  2865. package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +78 -0
  2866. package/mobile/src/components/CreditForm/CreditForm.tsx +81 -0
  2867. package/mobile/src/components/CreditForm/CreditFormContent.ts +10 -0
  2868. package/mobile/src/components/CreditForm/CreditFormProgress.tsx +27 -0
  2869. package/mobile/src/components/CreditForm/CreditFormStatus.tsx +112 -0
  2870. package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +60 -0
  2871. package/mobile/src/components/CreditForm/CreditFormStep.tsx +58 -0
  2872. package/mobile/src/components/CreditForm/FailedStatusContent.tsx +10 -0
  2873. package/mobile/src/components/CreditForm/PendingStatusContent.tsx +39 -0
  2874. package/mobile/src/components/CreditForm/ProgramsSourceProps.tsx +20 -0
  2875. package/mobile/src/components/CreditForm/ReworkStatusContent.tsx +32 -0
  2876. package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +27 -0
  2877. package/mobile/src/components/CreditForm/SuccessStatusContent.tsx +37 -0
  2878. package/mobile/src/components/CreditForm/creditFormStepsData.tsx +12 -0
  2879. package/mobile/src/components/CreditForm/formStateMap.tsx +83 -0
  2880. package/mobile/src/components/CreditForm/getCalcData.ts +19 -0
  2881. package/mobile/src/components/CreditForm/getInitialFormState.tsx +25 -0
  2882. package/mobile/src/components/CreditForm/renderInputs.tsx +14 -0
  2883. package/mobile/src/components/CreditForm/renderStep.tsx +32 -0
  2884. package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +83 -0
  2885. package/mobile/src/components/CreditForm/utils.ts +82 -0
  2886. package/mobile/src/hooks/useLeadFormData.ts +25 -0
  2887. package/mobile/src/hooks/useRetailFormStore.tsx +32 -0
  2888. package/mobile/src/model/InputSectionsType.ts +11 -0
  2889. package/mobile/src/services/retail/adaptors/getAdditionalInfoData.ts +13 -0
  2890. package/mobile/src/services/retail/adaptors/getCalculatorData.ts +13 -0
  2891. package/mobile/src/services/retail/adaptors/getCardOptionsData.tsx +13 -0
  2892. package/mobile/src/services/retail/adaptors/getCreditFormTaskData.ts +73 -0
  2893. package/mobile/src/services/retail/adaptors/getDeliveryCreditData.ts +12 -0
  2894. package/mobile/src/services/retail/adaptors/getEmploymentData.tsx +52 -0
  2895. package/mobile/src/services/retail/adaptors/getFamilyStatusAndIncomeData.ts +47 -0
  2896. package/mobile/src/services/retail/adaptors/getPersonalInfoData.tsx +57 -0
  2897. package/mobile/src/services/retail/content.tsx +366 -0
  2898. package/mobile/src/services/retail/external/types.ts +10 -0
  2899. package/mobile/src/services/retail/external/utils.ts +2 -0
  2900. package/mobile/src/services/retail/inputs.tsx +139 -0
  2901. package/mobile/src/services/retail/mockLocalStorage.ts +40 -0
  2902. package/mobile/src/services/retail/model/EOrganizationActivityTypes.ts +23 -0
  2903. package/mobile/src/services/retail/model/LeadFormData.ts +7 -0
  2904. package/mobile/src/services/retail/model/LeadFormState.ts +153 -0
  2905. package/mobile/src/services/retail/model/NameFieldDef.ts +89 -0
  2906. package/mobile/src/services/retail/model/RetailFormContent.ts +34 -0
  2907. package/mobile/src/services/retail/utils/calculateInputs.ts +51 -0
  2908. package/mobile/src/services/retail/utils/getOrganizationParams.ts +132 -0
  2909. package/mobile/src/services/retail/utils/getUpdateUserProfile.ts +45 -0
  2910. package/mobile/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +77 -0
  2911. package/mobile/src/ui-kit/Checkbox/CheckboxWithDoc.tsx +31 -0
  2912. package/mobile/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.tsx +80 -0
  2913. package/mobile/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +45 -0
  2914. package/mobile/src/ui-kit/DocumentDialog/DocumentDialog.tsx +35 -0
  2915. package/mobile/src/ui-kit/DocumentDialog/useDocumentDialog.ts +18 -0
  2916. package/mobile/src/ui-kit/DraftDialog/DraftActionButton.tsx +34 -0
  2917. package/mobile/src/ui-kit/DraftDialog/DraftDialog.tsx +75 -0
  2918. package/mobile/src/ui-kit/DraftDialog/EmptyDraftDialog.tsx +47 -0
  2919. package/mobile/src/ui-kit/DraftDialog/parseDraftTask.ts +129 -0
  2920. package/mobile/src/ui-kit/DraftDialog/useDraftDialog.tsx +21 -0
  2921. package/mobile/src/ui-kit/DraftDialog/utils.ts +162 -0
  2922. package/mobile/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +59 -0
  2923. package/mobile/src/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.tsx +13 -0
  2924. package/mobile/src/ui-kit/FormField/BaseFieldDef.ts +1 -1
  2925. package/mobile/src/ui-kit/FormField/Fields/AddressFactField.tsx +69 -0
  2926. package/mobile/src/ui-kit/FormField/Fields/AddressField.tsx +65 -0
  2927. package/mobile/src/ui-kit/FormField/Fields/AddressMatchField.tsx +12 -0
  2928. package/mobile/src/ui-kit/FormField/Fields/AddressRetailField.tsx +60 -0
  2929. package/mobile/src/ui-kit/FormField/Fields/AmountWorkersField.tsx +28 -0
  2930. package/mobile/src/ui-kit/FormField/Fields/ApplierTypeField.tsx +10 -3
  2931. package/mobile/src/ui-kit/FormField/Fields/ArmyIdFlgField.tsx +7 -0
  2932. package/mobile/src/ui-kit/FormField/Fields/BankEmployeeCodeField.tsx +13 -0
  2933. package/mobile/src/ui-kit/FormField/Fields/BankruptcyFlgField.tsx +10 -0
  2934. package/mobile/src/ui-kit/FormField/Fields/BeginDateField.tsx +11 -0
  2935. package/mobile/src/ui-kit/FormField/Fields/BirthPlaceField.tsx +15 -0
  2936. package/mobile/src/ui-kit/FormField/Fields/CardCategoryField.tsx +49 -0
  2937. package/mobile/src/ui-kit/FormField/Fields/ChildrenField.tsx +13 -0
  2938. package/mobile/src/ui-kit/FormField/Fields/CodeWordField.tsx +7 -0
  2939. package/mobile/src/ui-kit/FormField/Fields/ConfirmationIncomeField.tsx +18 -0
  2940. package/mobile/src/ui-kit/FormField/Fields/ConscriptionField.tsx +18 -0
  2941. package/mobile/src/ui-kit/FormField/Fields/ConsentField.tsx +14 -0
  2942. package/mobile/src/ui-kit/FormField/Fields/CreditCalcField.tsx +49 -0
  2943. package/mobile/src/ui-kit/FormField/Fields/CreditInRshbCdField.tsx +23 -0
  2944. package/mobile/src/ui-kit/FormField/Fields/CurrencyField.tsx +14 -0
  2945. package/mobile/src/ui-kit/FormField/Fields/DeliveryDateFiels.tsx +7 -0
  2946. package/mobile/src/ui-kit/FormField/Fields/DependentsField.tsx +14 -0
  2947. package/mobile/src/ui-kit/FormField/Fields/DisablePeopleFlgField.tsx +7 -0
  2948. package/mobile/src/ui-kit/FormField/Fields/DulIssueDateField.tsx +12 -0
  2949. package/mobile/src/ui-kit/FormField/Fields/DulIssuedByField.tsx +26 -0
  2950. package/mobile/src/ui-kit/FormField/Fields/DulNumberField.tsx +14 -0
  2951. package/mobile/src/ui-kit/FormField/Fields/DulSerieField.tsx +14 -0
  2952. package/mobile/src/ui-kit/FormField/Fields/DulSubdivisionCodeField.tsx +24 -0
  2953. package/mobile/src/ui-kit/FormField/Fields/EducationField.tsx +18 -0
  2954. package/mobile/src/ui-kit/FormField/Fields/EmployerActivitiesField.tsx +28 -0
  2955. package/mobile/src/ui-kit/FormField/Fields/EmployerOrganizationField.tsx +28 -0
  2956. package/mobile/src/ui-kit/FormField/Fields/EmploymentField.tsx +18 -0
  2957. package/mobile/src/ui-kit/FormField/Fields/ExpensesField.tsx +13 -0
  2958. package/mobile/src/ui-kit/FormField/Fields/FamilyMembersField.tsx +28 -0
  2959. package/mobile/src/ui-kit/FormField/Fields/FamilyStatusField.tsx +18 -0
  2960. package/mobile/src/ui-kit/FormField/Fields/GeneralSeniorityField.tsx +14 -0
  2961. package/mobile/src/ui-kit/FormField/Fields/HousingField.tsx +18 -0
  2962. package/mobile/src/ui-kit/FormField/Fields/InfoCardField.tsx +7 -0
  2963. package/mobile/src/ui-kit/FormField/Fields/InnField.tsx +23 -9
  2964. package/mobile/src/ui-kit/FormField/Fields/JobsNumberField.tsx +14 -0
  2965. package/mobile/src/ui-kit/FormField/Fields/LastJobExperienceField.tsx +14 -0
  2966. package/mobile/src/ui-kit/FormField/Fields/LegalEntityNameField.tsx +14 -0
  2967. package/mobile/src/ui-kit/FormField/Fields/LegalFormField.tsx +12 -0
  2968. package/mobile/src/ui-kit/FormField/Fields/LimitedBirthdayField.tsx +12 -0
  2969. package/mobile/src/ui-kit/FormField/Fields/MandatoryPaymentsField.tsx +13 -0
  2970. package/mobile/src/ui-kit/FormField/Fields/MethodObtainField.tsx +17 -0
  2971. package/mobile/src/ui-kit/FormField/Fields/MiddleNameField.tsx +2 -0
  2972. package/mobile/src/ui-kit/FormField/Fields/NameField.tsx +8 -1
  2973. package/mobile/src/ui-kit/FormField/Fields/OrganizationField.tsx +28 -0
  2974. package/mobile/src/ui-kit/FormField/Fields/OrganizationNameField.tsx +25 -0
  2975. package/mobile/src/ui-kit/FormField/Fields/OtherIncomeField.tsx +13 -0
  2976. package/mobile/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +28 -0
  2977. package/mobile/src/ui-kit/FormField/Fields/ParticipantDateRegistrationField.tsx +7 -0
  2978. package/mobile/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +40 -0
  2979. package/mobile/src/ui-kit/FormField/Fields/PhoneField.tsx +9 -1
  2980. package/mobile/src/ui-kit/FormField/Fields/PositionOrganizationField.tsx +18 -0
  2981. package/mobile/src/ui-kit/FormField/Fields/RegionRetailField.tsx +20 -0
  2982. package/mobile/src/ui-kit/FormField/Fields/RetirementIncomeField.tsx +13 -0
  2983. package/mobile/src/ui-kit/FormField/Fields/SexField.tsx +36 -0
  2984. package/mobile/src/ui-kit/FormField/Fields/ShareholderFlgField.tsx +10 -0
  2985. package/mobile/src/ui-kit/FormField/Fields/SnilsField.tsx +7 -0
  2986. package/mobile/src/ui-kit/FormField/Fields/SurnameField.tsx +10 -1
  2987. package/mobile/src/ui-kit/FormField/Fields/TotalIncomeField.tsx +13 -0
  2988. package/mobile/src/ui-kit/FormField/Fields/WagesField.tsx +13 -0
  2989. package/mobile/src/ui-kit/FormField/SelectField.tsx +42 -0
  2990. package/mobile/src/ui-kit/FormField/getField.tsx +1 -1
  2991. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +88 -11
  2992. package/mobile/src/ui-kit/FormField/isEsiaAuthorize.ts +6 -0
  2993. package/mobile/src/ui-kit/FormField/updateOrganizationFields.ts +41 -0
  2994. package/mobile/src/ui-kit/FormField/validators.ts +77 -1
  2995. package/mobile/src/ui-kit/Input/InputControl.tsx +17 -3
  2996. package/mobile/src/ui-kit/Input/InputPopup.tsx +60 -0
  2997. package/mobile/src/ui-kit/Input/InputProps.ts +4 -0
  2998. package/mobile/src/ui-kit/Input/useInputPopup.tsx +106 -0
  2999. package/mobile/src/ui-kit/VerifyPhoneDialog/InputCode.tsx +89 -0
  3000. package/mobile/src/ui-kit/VerifyPhoneDialog/SubmitButton.tsx +17 -0
  3001. package/mobile/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +138 -0
  3002. package/mobile/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +59 -0
  3003. package/package.json +2 -2
  3004. package/src/api/RetailAPI/StatusType.ts +1 -0
  3005. package/src/api/RetailAPI/checkCaptcha.ts +10 -0
  3006. package/src/api/RetailAPI/checkCode.ts +24 -0
  3007. package/src/api/RetailAPI/createCaptcha.ts +6 -0
  3008. package/src/api/RetailAPI/createDraftTask.ts +23 -0
  3009. package/src/api/RetailAPI/createUserProfile.ts +15 -0
  3010. package/src/api/RetailAPI/doRequest.ts +45 -0
  3011. package/src/api/RetailAPI/draftTasksKZO.ts +39 -0
  3012. package/src/api/RetailAPI/feedbackById.ts +10 -0
  3013. package/src/api/RetailAPI/getCardTypes.ts +18 -0
  3014. package/src/api/RetailAPI/getGenderFromName.ts +17 -0
  3015. package/src/api/RetailAPI/getLastTaskStatus.ts +21 -0
  3016. package/src/api/RetailAPI/getLink.ts +12 -0
  3017. package/src/api/RetailAPI/getPaymentSystems.ts +29 -0
  3018. package/src/api/RetailAPI/getTaskById.ts +12 -0
  3019. package/src/api/RetailAPI/getTaskStatus.ts +21 -0
  3020. package/src/api/RetailAPI/getTraceId.ts +6 -0
  3021. package/src/api/RetailAPI/getUserTasks.ts +50 -0
  3022. package/src/api/RetailAPI/regionOffices.ts +42 -0
  3023. package/src/api/RetailAPI/sendCode.ts +13 -0
  3024. package/src/api/RetailAPI/sendSignalToProcess.ts +14 -0
  3025. package/src/api/RetailAPI/updateProfileEsia.ts +71 -0
  3026. package/src/api/RetailAPI/updateRefreshToken.ts +53 -0
  3027. package/src/api/RetailAPI/updateUserProfile.ts +25 -0
  3028. package/src/api/RetailAPI/updateUserTask.ts +155 -0
  3029. package/src/api/dadataHints/dadataHints.ts +51 -0
  3030. package/src/api/dadataHints/dadataHintsType.ts +79 -0
  3031. package/src/api/dadataHints/hintsListsOptions.ts +77 -0
  3032. package/src/components/ApplicationForm/getFormatData.tsx +7 -1
  3033. package/src/components/ApplicationForm/getInitialFormState.tsx +4 -2
  3034. package/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +70 -0
  3035. package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.mobile.tsx +38 -0
  3036. package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +39 -0
  3037. package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +72 -0
  3038. package/src/components/ApplicationLeadForm/ApplicationLeadForm.ui.json +1 -0
  3039. package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +23 -0
  3040. package/src/components/ApplicationLeadForm/Footnote.tsx +21 -0
  3041. package/src/components/ApplicationLeadForm/GroupedConsents.tsx +79 -0
  3042. package/src/components/ApplicationLeadForm/applicationFormData.tsx +24 -0
  3043. package/src/components/ApplicationLeadForm/consents.ts +29 -0
  3044. package/src/components/ApplicationLeadForm/getInitialFormState.tsx +29 -0
  3045. package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +66 -0
  3046. package/src/components/ApplicationLeadForm/pasreEsiaProfile.ts +70 -0
  3047. package/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +28 -0
  3048. package/src/components/ApplicationLeadForm/renderInputs.tsx +26 -0
  3049. package/src/components/ApplicationLeadForm/renderSubmitButton.tsx +8 -0
  3050. package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +141 -0
  3051. package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +71 -0
  3052. package/src/components/ApplicationLeadForm/useLeadFormStore.ts +12 -0
  3053. package/src/components/ApplicationLeadForm/useSaveUserData.ts +27 -0
  3054. package/src/components/Blocks.mobile.ts +6 -0
  3055. package/src/components/Blocks.ts +6 -0
  3056. package/src/components/CreditCardForm/CreditCardForm.fixture.mobile.tsx +21 -0
  3057. package/src/components/CreditCardForm/CreditCardForm.fixture.tsx +21 -0
  3058. package/src/components/CreditCardForm/CreditCardForm.tsx +75 -0
  3059. package/src/components/CreditCardForm/CreditCardFormContent.ts +26 -0
  3060. package/src/components/CreditCardForm/CreditCardFormProgress.tsx +27 -0
  3061. package/src/components/CreditCardForm/CreditCardFormStatus.tsx +110 -0
  3062. package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +61 -0
  3063. package/src/components/CreditCardForm/CreditCardFormStep.tsx +52 -0
  3064. package/src/components/CreditCardForm/FailedStatusContent.tsx +10 -0
  3065. package/src/components/CreditCardForm/PendingStatusContent.tsx +27 -0
  3066. package/src/components/CreditCardForm/ReworkStatusContent.tsx +46 -0
  3067. package/src/components/CreditCardForm/StepsNavigationButtons.tsx +27 -0
  3068. package/src/components/CreditCardForm/SuccessStatusCardContent.tsx +45 -0
  3069. package/src/components/CreditCardForm/creditCardFormStepsData.tsx +12 -0
  3070. package/src/components/CreditCardForm/formStateMap.tsx +88 -0
  3071. package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +76 -0
  3072. package/src/components/CreditCardForm/getDeliveryCreditCardData.ts +43 -0
  3073. package/src/components/CreditCardForm/getInitialFormState.tsx +25 -0
  3074. package/src/components/CreditCardForm/renderInputs.tsx +18 -0
  3075. package/src/components/CreditCardForm/renderStep.tsx +32 -0
  3076. package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +78 -0
  3077. package/src/components/CreditForm/CreditForm.fixture.mobile.tsx +26 -0
  3078. package/src/components/CreditForm/CreditForm.fixture.tsx +26 -0
  3079. package/src/components/CreditForm/CreditForm.tsx +81 -0
  3080. package/src/components/CreditForm/CreditFormContent.ts +10 -0
  3081. package/src/components/CreditForm/CreditFormProgress.tsx +27 -0
  3082. package/src/components/CreditForm/CreditFormStatus.tsx +112 -0
  3083. package/src/components/CreditForm/CreditFormStatusTracker.tsx +60 -0
  3084. package/src/components/CreditForm/CreditFormStep.tsx +58 -0
  3085. package/src/components/CreditForm/FailedStatusContent.tsx +10 -0
  3086. package/src/components/CreditForm/PendingStatusContent.tsx +39 -0
  3087. package/src/components/CreditForm/ProgramsSourceProps.tsx +20 -0
  3088. package/src/components/CreditForm/ReworkStatusContent.tsx +32 -0
  3089. package/src/components/CreditForm/StepsNavigationButtons.tsx +27 -0
  3090. package/src/components/CreditForm/SuccessStatusContent.tsx +37 -0
  3091. package/src/components/CreditForm/creditFormStepsData.tsx +12 -0
  3092. package/src/components/CreditForm/formStateMap.tsx +83 -0
  3093. package/src/components/CreditForm/getCalcData.ts +19 -0
  3094. package/src/components/CreditForm/getInitialFormState.tsx +25 -0
  3095. package/src/components/CreditForm/renderInputs.tsx +14 -0
  3096. package/src/components/CreditForm/renderStep.tsx +32 -0
  3097. package/src/components/CreditForm/useCreditFormAPI.tsx +83 -0
  3098. package/src/components/CreditForm/utils.ts +82 -0
  3099. package/src/hooks/useLeadFormData.ts +25 -0
  3100. package/src/hooks/useRetailFormStore.tsx +32 -0
  3101. package/src/model/InputSectionsType.ts +11 -0
  3102. package/src/services/retail/adaptors/getAdditionalInfoData.ts +13 -0
  3103. package/src/services/retail/adaptors/getCalculatorData.ts +13 -0
  3104. package/src/services/retail/adaptors/getCardOptionsData.tsx +13 -0
  3105. package/src/services/retail/adaptors/getCreditFormTaskData.ts +73 -0
  3106. package/src/services/retail/adaptors/getDeliveryCreditData.ts +12 -0
  3107. package/src/services/retail/adaptors/getEmploymentData.tsx +52 -0
  3108. package/src/services/retail/adaptors/getFamilyStatusAndIncomeData.ts +47 -0
  3109. package/src/services/retail/adaptors/getPersonalInfoData.tsx +57 -0
  3110. package/src/services/retail/content.tsx +366 -0
  3111. package/src/services/retail/external/types.ts +10 -0
  3112. package/src/services/retail/external/utils.ts +2 -0
  3113. package/src/services/retail/inputs.tsx +139 -0
  3114. package/src/services/retail/mockLocalStorage.ts +40 -0
  3115. package/src/services/retail/model/EOrganizationActivityTypes.ts +23 -0
  3116. package/src/services/retail/model/LeadFormData.ts +7 -0
  3117. package/src/services/retail/model/LeadFormState.ts +153 -0
  3118. package/src/services/retail/model/NameFieldDef.ts +89 -0
  3119. package/src/services/retail/model/RetailFormContent.ts +34 -0
  3120. package/src/services/retail/utils/calculateInputs.ts +51 -0
  3121. package/src/services/retail/utils/getOrganizationParams.ts +132 -0
  3122. package/src/services/retail/utils/getUpdateUserProfile.ts +45 -0
  3123. package/src/ui-kit/CaptchaDialog/CaptchaDialog.fixture.tsx +11 -0
  3124. package/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +77 -0
  3125. package/src/ui-kit/Checkbox/CheckboxWithDoc.tsx +31 -0
  3126. package/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.fixture.tsx +7 -0
  3127. package/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.tsx +80 -0
  3128. package/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +45 -0
  3129. package/src/ui-kit/DocumentDialog/DocumentDialog.tsx +35 -0
  3130. package/src/ui-kit/DocumentDialog/useDocumentDialog.ts +18 -0
  3131. package/src/ui-kit/DraftDialog/DraftActionButton.tsx +34 -0
  3132. package/src/ui-kit/DraftDialog/DraftDialog.fixture.mobile.tsx +26 -0
  3133. package/src/ui-kit/DraftDialog/DraftDialog.fixture.tsx +27 -0
  3134. package/src/ui-kit/DraftDialog/DraftDialog.tsx +75 -0
  3135. package/src/ui-kit/DraftDialog/EmptyDraftDialog.tsx +47 -0
  3136. package/src/ui-kit/DraftDialog/parseDraftTask.ts +129 -0
  3137. package/src/ui-kit/DraftDialog/useDraftDialog.tsx +21 -0
  3138. package/src/ui-kit/DraftDialog/utils.ts +162 -0
  3139. package/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.fixture.tsx +7 -0
  3140. package/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +59 -0
  3141. package/src/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.tsx +13 -0
  3142. package/src/ui-kit/FormField/BaseFieldDef.ts +1 -1
  3143. package/src/ui-kit/FormField/Fields/AddressFactField.tsx +69 -0
  3144. package/src/ui-kit/FormField/Fields/AddressField.tsx +65 -0
  3145. package/src/ui-kit/FormField/Fields/AddressMatchField.tsx +12 -0
  3146. package/src/ui-kit/FormField/Fields/AddressRetailField.tsx +60 -0
  3147. package/src/ui-kit/FormField/Fields/AmountWorkersField.tsx +28 -0
  3148. package/src/ui-kit/FormField/Fields/ApplierTypeField.tsx +10 -3
  3149. package/src/ui-kit/FormField/Fields/ArmyIdFlgField.tsx +7 -0
  3150. package/src/ui-kit/FormField/Fields/BankEmployeeCodeField.tsx +13 -0
  3151. package/src/ui-kit/FormField/Fields/BankruptcyFlgField.tsx +10 -0
  3152. package/src/ui-kit/FormField/Fields/BeginDateField.tsx +11 -0
  3153. package/src/ui-kit/FormField/Fields/BirthPlaceField.tsx +15 -0
  3154. package/src/ui-kit/FormField/Fields/CardCategoryField.tsx +49 -0
  3155. package/src/ui-kit/FormField/Fields/ChildrenField.tsx +13 -0
  3156. package/src/ui-kit/FormField/Fields/CodeWordField.tsx +7 -0
  3157. package/src/ui-kit/FormField/Fields/ConfirmationIncomeField.tsx +18 -0
  3158. package/src/ui-kit/FormField/Fields/ConscriptionField.tsx +18 -0
  3159. package/src/ui-kit/FormField/Fields/ConsentField.tsx +14 -0
  3160. package/src/ui-kit/FormField/Fields/CreditCalcField.tsx +49 -0
  3161. package/src/ui-kit/FormField/Fields/CreditInRshbCdField.tsx +23 -0
  3162. package/src/ui-kit/FormField/Fields/CurrencyField.tsx +14 -0
  3163. package/src/ui-kit/FormField/Fields/DeliveryDateFiels.tsx +7 -0
  3164. package/src/ui-kit/FormField/Fields/DependentsField.tsx +14 -0
  3165. package/src/ui-kit/FormField/Fields/DisablePeopleFlgField.tsx +7 -0
  3166. package/src/ui-kit/FormField/Fields/DulIssueDateField.tsx +12 -0
  3167. package/src/ui-kit/FormField/Fields/DulIssuedByField.tsx +26 -0
  3168. package/src/ui-kit/FormField/Fields/DulNumberField.tsx +14 -0
  3169. package/src/ui-kit/FormField/Fields/DulSerieField.tsx +14 -0
  3170. package/src/ui-kit/FormField/Fields/DulSubdivisionCodeField.tsx +24 -0
  3171. package/src/ui-kit/FormField/Fields/EducationField.tsx +18 -0
  3172. package/src/ui-kit/FormField/Fields/EmployerActivitiesField.tsx +28 -0
  3173. package/src/ui-kit/FormField/Fields/EmployerOrganizationField.tsx +28 -0
  3174. package/src/ui-kit/FormField/Fields/EmploymentField.tsx +18 -0
  3175. package/src/ui-kit/FormField/Fields/ExpensesField.tsx +13 -0
  3176. package/src/ui-kit/FormField/Fields/FamilyMembersField.tsx +28 -0
  3177. package/src/ui-kit/FormField/Fields/FamilyStatusField.tsx +18 -0
  3178. package/src/ui-kit/FormField/Fields/GeneralSeniorityField.tsx +14 -0
  3179. package/src/ui-kit/FormField/Fields/HousingField.tsx +18 -0
  3180. package/src/ui-kit/FormField/Fields/InfoCardField.tsx +7 -0
  3181. package/src/ui-kit/FormField/Fields/InnField.tsx +23 -9
  3182. package/src/ui-kit/FormField/Fields/JobsNumberField.tsx +14 -0
  3183. package/src/ui-kit/FormField/Fields/LastJobExperienceField.tsx +14 -0
  3184. package/src/ui-kit/FormField/Fields/LegalEntityNameField.tsx +14 -0
  3185. package/src/ui-kit/FormField/Fields/LegalFormField.tsx +12 -0
  3186. package/src/ui-kit/FormField/Fields/LimitedBirthdayField.tsx +12 -0
  3187. package/src/ui-kit/FormField/Fields/MandatoryPaymentsField.tsx +13 -0
  3188. package/src/ui-kit/FormField/Fields/MethodObtainField.tsx +17 -0
  3189. package/src/ui-kit/FormField/Fields/MiddleNameField.tsx +2 -0
  3190. package/src/ui-kit/FormField/Fields/NameField.tsx +8 -1
  3191. package/src/ui-kit/FormField/Fields/OrganizationField.tsx +28 -0
  3192. package/src/ui-kit/FormField/Fields/OrganizationNameField.tsx +25 -0
  3193. package/src/ui-kit/FormField/Fields/OtherIncomeField.tsx +13 -0
  3194. package/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +28 -0
  3195. package/src/ui-kit/FormField/Fields/ParticipantDateRegistrationField.tsx +7 -0
  3196. package/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +40 -0
  3197. package/src/ui-kit/FormField/Fields/PhoneField.tsx +9 -1
  3198. package/src/ui-kit/FormField/Fields/PositionOrganizationField.tsx +18 -0
  3199. package/src/ui-kit/FormField/Fields/RegionRetailField.tsx +20 -0
  3200. package/src/ui-kit/FormField/Fields/RetirementIncomeField.tsx +13 -0
  3201. package/src/ui-kit/FormField/Fields/SexField.tsx +36 -0
  3202. package/src/ui-kit/FormField/Fields/ShareholderFlgField.tsx +10 -0
  3203. package/src/ui-kit/FormField/Fields/SnilsField.tsx +7 -0
  3204. package/src/ui-kit/FormField/Fields/SurnameField.tsx +10 -1
  3205. package/src/ui-kit/FormField/Fields/TotalIncomeField.tsx +13 -0
  3206. package/src/ui-kit/FormField/Fields/WagesField.tsx +13 -0
  3207. package/src/ui-kit/FormField/SelectField.tsx +42 -0
  3208. package/src/ui-kit/FormField/getField.tsx +1 -1
  3209. package/src/ui-kit/FormField/getObjectValidator.tsx +88 -11
  3210. package/src/ui-kit/FormField/isEsiaAuthorize.ts +6 -0
  3211. package/src/ui-kit/FormField/updateOrganizationFields.ts +41 -0
  3212. package/src/ui-kit/FormField/validators.ts +77 -1
  3213. package/src/ui-kit/Input/InputControl.tsx +17 -3
  3214. package/src/ui-kit/Input/InputPopup.tsx +60 -0
  3215. package/src/ui-kit/Input/InputProps.ts +4 -0
  3216. package/src/ui-kit/Input/useInputPopup.tsx +106 -0
  3217. package/src/ui-kit/VerifyPhoneDialog/InputCode.tsx +89 -0
  3218. package/src/ui-kit/VerifyPhoneDialog/SubmitButton.tsx +17 -0
  3219. package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.fixture.tsx +20 -0
  3220. package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +138 -0
  3221. package/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +59 -0
  3222. package/bundle/utils/isCyrilic.d.ts +0 -1
  3223. package/dist/ui-kit/FormField/Fields//320/241onsentToReceiveMaterialsField.js.map +0 -1
  3224. package/dist/utils/isCyrilic.d.ts +0 -1
  3225. package/dist/utils/isCyrilic.js +0 -6
  3226. package/dist/utils/isCyrilic.js.map +0 -1
  3227. package/lib/ui-kit/FormField/Fields//320/241onsentToReceiveMaterialsField.js.map +0 -1
  3228. package/lib/utils/isCyrilic.d.ts +0 -1
  3229. package/lib/utils/isCyrilic.js +0 -3
  3230. package/lib/utils/isCyrilic.js.map +0 -1
  3231. package/mobile/bundle/utils/isCyrilic.d.ts +0 -1
  3232. package/mobile/dist/ui-kit/FormField/Fields//320/241onsentToReceiveMaterialsField.js.map +0 -1
  3233. package/mobile/dist/utils/isCyrilic.d.ts +0 -1
  3234. package/mobile/dist/utils/isCyrilic.js +0 -6
  3235. package/mobile/dist/utils/isCyrilic.js.map +0 -1
  3236. package/mobile/lib/ui-kit/FormField/Fields//320/241onsentToReceiveMaterialsField.js.map +0 -1
  3237. package/mobile/lib/utils/isCyrilic.d.ts +0 -1
  3238. package/mobile/lib/utils/isCyrilic.js +0 -3
  3239. package/mobile/lib/utils/isCyrilic.js.map +0 -1
  3240. package/mobile/src/utils/isCyrilic.ts +0 -3
  3241. package/src/utils/isCyrilic.ts +0 -3
  3242. /package/bundle/ui-kit/FormField/Fields/{/320/241onsentToReceiveMaterialsField.d.ts" → consentToReceiveMaterialsField.d.ts} +0 -0
  3243. /package/dist/ui-kit/FormField/Fields/{/320/241onsentToReceiveMaterialsField.d.ts" → consentToReceiveMaterialsField.d.ts} +0 -0
  3244. /package/lib/ui-kit/FormField/Fields/{/320/241onsentToReceiveMaterialsField.d.ts" → consentToReceiveMaterialsField.d.ts} +0 -0
  3245. /package/mobile/bundle/ui-kit/FormField/Fields/{/320/241onsentToReceiveMaterialsField.d.ts" → consentToReceiveMaterialsField.d.ts} +0 -0
  3246. /package/mobile/dist/ui-kit/FormField/Fields/{/320/241onsentToReceiveMaterialsField.d.ts" → consentToReceiveMaterialsField.d.ts} +0 -0
  3247. /package/mobile/lib/ui-kit/FormField/Fields/{/320/241onsentToReceiveMaterialsField.d.ts" → consentToReceiveMaterialsField.d.ts} +0 -0
  3248. /package/mobile/src/ui-kit/FormField/Fields/{/320/241onsentToReceiveMaterialsField.tsx" → consentToReceiveMaterialsField.tsx} +0 -0
  3249. /package/src/ui-kit/FormField/Fields/{/320/241onsentToReceiveMaterialsField.tsx" → consentToReceiveMaterialsField.tsx} +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 n=e=>(...n)=>t[e](...n),l=n("useState"),a=n("useEffect"),r=n("useCallback"),i=n("useMemo"),s=n("useRef"),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||{},r=n?.slots?.default,i=l||r&&r();return e(Object.assign(a,i&&{children:i}),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:r,tag:i="section",role:s,children:c,style:d})=>{const m=t&&n;return o(i,{className:h("@container font-sans",{group:m},p[t],a||l,e),...m?{"data-ver":t}:{},...r?.anchor?{id:r.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:r="text-center",as:i,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",r),...u?.title,as:i||u?.title.as,title:l}):null,a?o(w,{size:u.descriptionSize,font:u.descriptionWeight,align:r,...p,children:a}):null]})})),C=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),I=[];function T(e,t,{className:n,...l}={}){const{key:a,blockDecorator:r=C,blocksRegistry:i={},ancestors:s=I}=t,{type:c}=e;c&&c in i||console.warn(`No block with "${c}" is registered`);const d=c&&i[c];return r({blockClassName:h(e.style?.length?e.style:"col-span-12",n),block:e,ancestors:s,render:({block:n,blockClassName:r})=>{const{content:i}=n;return d?o(d,{className:r,block:e,options:t,...i,...l},a):null}},a)}const B=[],M=(e,{key:t,ancestors:n=B,slotName:l=null,extraProps:a,renderProps:r=T,...i})=>{const s=a?(e,t)=>T(e,t,a):r;return(e||[]).map(((e,a)=>s(e,{...i,key:`${t||e.type}-${a}`,ancestors:i.parent?[...n||B,[i.parent,l]]:n},a)))};function P({block:e,options:t,children:n,extraProps:l,renderProps:a}){return n||(e&&t?M(e.blocks,{...t,parent:e,extraProps:l,renderProps:a}):null)}function V(){return V._impl()}V._impl=()=>({isReady:!1,href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{},back:()=>{}}),V.setup=e=>{V._impl=e};const R=["CDN","BASE_PATH"],z=new Proxy({_:{},setup(e){this._=e}},{get(e,t){const n=e._[t]||e[t];return R.includes(t)?(e=>e&&!e.endsWith("/")?`${e}/`:e)(n):n}}),D="http://_",_=(...e)=>{const t=e.filter(Boolean).map((e=>new URL(e,D))),n=t.find((e=>e.origin!==D))?.origin,l=j(t.map((e=>e.pathname))),a=$(...t.map((e=>e.searchParams))).toString(),r=t.find((e=>e.hash))?.hash;return[n,l,a?`?${a}`:"",r].filter(Boolean).join("")},$=(...e)=>{const t=new URLSearchParams;for(const n of e)for(const[e,l]of n)t.set(e,l);return t},j=e=>e.join("/").replace(/\/+/g,"/"),L=e=>Boolean(e?.includes(":")),A=(e,t)=>Boolean(e&&!L(e)&&(!t||"_self"===t)),O=e=>Boolean(e?.startsWith("#")),E=e=>(e??"").replace(/\?.*/,"").replace(/\/$/,""),F=e=>t=>Boolean(e&&t&&e.startsWith(t)&&("/"===t||e===t||"/"===e[t.length]));var U=Object.freeze({__proto__:null,isURL:L,isLocalURL:A,isHash:O,withoutQuery:E,hasPrefix:F,joinPath:_});const W="/api/",H=`${W}v1/storage`,Y=[z.CDN,W],X=e=>(t,n)=>{if(K(t))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`${H}/${t}/attachment`;const l=t?.startsWith("/");return _(F(t)(n)?"":n,l?"/":(a=e.pathname,a?.split("/").slice(0,-1).join("/")),t);var a},K=e=>!e||L(e)||O(e)||Y.some(F(e)),q={"":"",normal:"",color:"text-primary-main",black:"text-black",white:"text-black",gray:"text-gray"},G={small:"16",medium:"24",large:"48",xl:"78"},Z=d((({className:e="",imageClassName:t="",name:n="",alt:l=`Иконка ${n}`,title:a=l,iconVersion:r="color",size:i,width:s=i&&G[i],height:d=s})=>{const m=V(),u="normal"===r?`${n}.svg`:`sprites.svg#${n}`,p=X(m)(_(z.CDN,"/icons/",u));return"normal"===r?o("img",{className:e,style:J(e,d),src:p,alt:l,title:a,"aria-hidden":"true",width:s,height:d}):o(Q,{className:e,children:c("svg",{className:h(q[r],{"w-full h-full":!s,invert:"white"===r},t),width:s,height:d,"aria-hidden":"true",children:[a?o("title",{children:a}):null,l?o("desc",{children:l}):null,o("use",{href:p,xlinkHref:p})]})})})),J=(e,t)=>{return e?.includes("h-")?{}:{height:(n=t,n&&!/\D/.test(n)?`${t}px`:t),width:"auto"};var n},Q=d((({className:e,children:t})=>e?o("div",{role:"img",className:e,children:t}):t)),ee=new Proxy({_:{},setup(e){this._=e}},{get:(e,t)=>e._[t]||e[t]});function te(e=""){try{return new URL(e).pathname}catch(e){return""}}const ne=e=>t=>{const n=t?.startsWith("/wcms-resources")?"":te(ee.SITE_URL);return t&&!L(t)?X(e)(t,n):t},le=(e,t)=>e?.media&&t?.media?e.media-t.media:0,ae=d((({className:e="",image:t,imageClassName:n=""})=>{const l=V();return c("picture",{className:e,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(le).map((({src:e,format:n,media:a},r)=>o("source",{srcSet:ne(l)(e),type:ie(n),media:a?`(max-width: ${a}px)`:"",width:t?.size?.width,height:t?.size?.height},`${r}_${e}`))):null,t?.src?re({...t,src:ne(l)(t.src)},n):null]})})),re=(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}),ie=e=>e?`image/${String(e)}`:void 0,se=d((({className:e="",image:t,imageClassName:n="",...l})=>t?.src||t?.icon?t.icon?o(Z,{className:e,imageClassName:n,iconVersion:t?.iconVersion,name:t.icon,...l}):o(ae,{className:e,imageClassName:n,image:t}):null)),oe={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","":""},ce="bg-main-divider text-main-disabled",de={primary:ce,secondary:ce,white:ce,link:"",transparent:"",gray:ce,"":""},me="text-center font-sans select-none",he={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","":""},ue=({className:e,rounded:t,version:n})=>[me,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",n?oe[n]:"",t?"rounded-full":"rounded-md",e].join(" "),pe=e=>pe._impl(e);function ge(e,t){const n=s({});return i((()=>new Proxy({},{get:(l,a)=>(n.current||={},n.current[a]||=n=>e.fire(t,{...n??{},type:a}),n.current[a])})),[e,t])}pe._impl=e=>e,pe.setup=e=>{pe._impl=e};class xe{watchers=new Set;subscribersMap={};subjectsStateMap={};emitter=this;observable=this;watch(e){return this.watchers.add(e),()=>{this.watchers.delete(e)}}subscribe(e,t){this.subscribersMap[e]||=new Set,this.subscribersMap[e]?.add(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.subscribersMap[e]?.delete(t)}}fire(e,t){e in this.subjectsStateMap?this.subject(e,t):this.fireSubscribers(e,t)}subject(e,t){return this.subjectsStateMap[e]!==t&&(this.subjectsStateMap[e]=t??void 0,this.fireSubscribers(e,t)),()=>{delete this.subjectsStateMap[e]}}fireSubscribers(e,t){for(const n of this.subscribersMap[e]??[])n(t??null);for(const n of this.watchers)n({type:e,event:t??null})}}const fe=new xe,be=()=>ge(fe.emitter,"dialog");function ye(){const e=V(),{closeAll:t}=be();return n=>{const l=X(e)(n.href);return{...n,href:l,"aria-label":n.text,onClick:pe((a=>{n.onClick?.(a);const r=te(ee.SITE_URL);ve(l,n.target,r)&&(t(),a?.preventDefault(),e.push(((e,t="")=>e?.replace(t,"")||"/")(l,r)))}))}}}const ve=(e,t,n)=>A(e,t)&&!ee.SUB_PORTALS?.split(",")?.some(F(e))&&F(e)(n||"/"),Ne=e=>{try{return Array.isArray(e)&&e.length?{"data-aspects":JSON.stringify(e)}:{}}catch(e){return{}}},we=d((e=>{const{text:t,aboveText:n,appendLeft:l,appendRight:a,version:r="primary"}=e,i=Se(e)&&"hidden lg:block";return c("div",{className:h(ke(e),"flex gap-xs"),children:[l?o("div",{className:h(i,he[r]),children:l}):null,Se(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(i,he[r]),children:a}):null]})})),ke=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",Se(e)?a:"h-12 w-12 m-auto",{"rounded-full":l})},Se=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),Ce=({className:e,rounded:t,version:n})=>["inline-block",me,n?de[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Ie=d((({disabled:e,children:t,method:n="LINK",href:l,...a})=>{const i=(({method:e,href:t})=>r((n=>{if("POST"!==e||!t)return;n.preventDefault(),n.stopPropagation();const{origin:l,pathname:a,searchParams:r}=new URL(t||""),i=document.createElement("form");i.setAttribute("method","POST"),i.setAttribute("action",[l,a].join(""));for(const[e,t]of r.entries()){const n=document.createElement("input");n.setAttribute("type","hidden"),n.setAttribute("name",e),n.setAttribute("value",t),i.appendChild(n)}document.body.appendChild(i),i.submit()}),[e,t]))({method:n,href:l}),s=ye()({onClick:i,href:l,...a}),c=t??o(we,{...s});return o(e?Be:Te,{...s,children:c})})),Te=d((({className:e="",href:t,rel:n,target:l,ariaLabel:a,version:r,rounded:i,onClick:s,type:c,data:d,children:m,text:h})=>o("a",{className:ue({className:e,version:r,rounded:i}),href:t,rel:n,target:l,"aria-label":a||`Ссылка на ${h}`,role:t?"link":"button",onClick:s,type:c,...Ne(d),children:m}))),Be=d((({className:e,ariaLabel:t,version:n,rounded:l,children:a})=>o("button",{type:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:Ce({className:e,rounded:l,version:n}),children:a})));function Me({version:e,handleClick:t,text:n="Вернуться назад",alwaysVisible:l=!1}){if(!n)return null;const a="primary"===e?"white":"black",r="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(ue({className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center",rounded:!0}),r),onClick:t,children:o(se,{className:"w-4 h-4",image:{icon:"ArrowLeftIcon",iconVersion:a}})}),o(Ie,{version:"link",className:"group-data-secondary:text-white",text:n,ariaLabel:n,onClick:t,type:"button"})]})}const Pe=()=>{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(!0),()=>{e?.removeEventListener("change",n)}}),[]),e},Ve={start:"@xl:self-start",center:"@xl:self-center",end:"@xl:self-end"},Re=(e,{className:t,imageAlign:n})=>e?o("div",{className:h("shrink-1/2 justify-self-center",n&&Ve[n],t),children:e}):null,ze=d((({className:e,version:t="primary",defaultPadding:n,padding:l="",title:a,buttons:i,leftImage:s,rightImage:d,imageAlign:m,insetTitle:u,isImageAlwaysOnRight:p=!1,isImageSecondary:g=!1,backwardButton:x,children:f,...b})=>{const y=Pe(),v=V(),N=r((()=>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&&Me({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:[Re(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]}),_e(P({...b,extraProps:{className:"@container-normal"}})),Re(d,{className:h("@xl:justify-self-end @xl:col-start-2",{[De(p)]:i,"col-start-2 self-center":p,"hidden @xl:block":g}),imageAlign:m}),i?o("div",{className:"self-end",children:i}):null]})]})]})})),De=e=>h(e?"row-span-2":"@xl:row-span-2"),_e=e=>e?.length?o("div",{className:"flex items-start justify-end",children:e}):null,$e=(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(se,{className:"w-6 h-6",image:{...e,iconVersion:e.iconVersion||t}})}):null,je=d((({__html:e="",richVersion:t="",itemSize:n="list-m",isDotted:l=!0,children:a})=>e||a?o("div",{"data-component":"rich-text-container",children:o("div",{className:h(t,n,"md-container group-data-secondary:text-white group-data-gray:text-secondary-text",l?"":"without-dots"),dangerouslySetInnerHTML:e?{__html:e}:void 0,children:a})}):null)),Le=(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,Ae=d((({children:e,...t})=>o("span",{className:h("font-sans",Object.values(t)),children:e}))),Oe=(e,t)=>e?o(Ae,{color:"text-primary-text group-data-secondary:text-white",size:"text-h6",children:e},`label-${t}`):null,Ee=(e,t)=>["label"in e?Oe(e.label,t):null,"description"in e?o("span",{className:e.descriptionClassName,children:Le(e.description,t)},String(t)):null,"__html"in e?o(je,{...e},`rte-${t}`):null],Fe=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?$e(n.icon,t):null,o("div",{children:Ee(n)})]}))),Ue=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(Fe,{benefitsVersion:t,...e},String(n))))}):null)),We=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(Ee)}):null)),He=d((({isTabularBenefits:e,...t})=>o(e?We:Ue,{...t}))),Ye=e=>Boolean(e?.src||e?.icon),Xe=(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(Ke(n))}):null,Ke=(e="")=>(t,n)=>{const{text:l,icon:a,iconRight:r,version:i,...s}=t||{},c=qe(a,i),d=qe(r,i);return l||a?.icon?o(Ie,{className:h("basis-full @lg:basis-auto",e),appendLeft:Ge({...a,iconVersion:c}),appendRight:Ge({...r,iconVersion:d}),version:i,text:l,...s},n?String(n):""):null},qe=(e,t="secondary")=>{const n="secondary"===t?"color":"white";return e?.iconVersion||n},Ge=e=>Ye(e)&&o(se,{image:e,width:String(e?.size?.width||24),height:String(24)}),Ze=(e=0,{fixed:t}={})=>(n=0)=>new Intl.NumberFormat("ru-RU",{minimumFractionDigits:t?e:0,maximumFractionDigits:e}).format(Number(n)||0),Je=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(Qe)}):null)),Qe=({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(Ae,{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:[Ze(2)(t)," ",n||"₽"]}):null]},String(l)),et=d((({className:e,tags:t})=>t?.length?o("div",{className:h("flex flex-wrap gap-xs",e),role:"list",children:t.map(tt)}):null)),tt=(e,t)=>o("div",{className:"p-xs border-solid border rounded-md border-gray",role:"listitem",children:o(Ae,{size:"text-m",font:"font-light",children:e})},String(t)),nt={XXL:"list-l",XL:"list-l",L:"list-m",M:"list-m",S:"list-s",XS:"list-s"},lt=d((({className:e,padding:t,defaultPadding:n,title:l,description:a,headlineVersion:r="L",align:i="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:I,...T})=>{const B=y?.src?o(se,{image:y}):null,M=o(S,{title:l,description:a,headlineVersion:r,align:i,isEmbedded:!0}),P=h?.filter((e=>"__html"in e||"label"in e||"description"in e));return o(ze,{className:e,padding:t,defaultPadding:n,...g?{title:M}:{insetTitle:M},...at(B,N),isImageSecondary:k,imageAlign:v,isImageAlwaysOnRight:w,buttons:Xe(b),backwardButton:C,...T,children:c("div",{className:"flex flex-col sm:gap-xl gap-4xl",children:[P?.length?o(He,{benefitsVersion:s,isTabularBenefits:d,benefits:P}):null,u?o(je,{richVersion:p,__html:u,isDotted:m,itemSize:nt[r]}):null,I,x?.length?o(Je,{priceList:x}):null,rt(f)]})})})),at=(e,t)=>t?{rightImage:e}:{leftImage:e},rt=e=>e?.length?o(et,{tags:e}):null;class it{_;constructor(e){this._=e}of(e){return new this.constructor(e instanceof it?e._:e)}filter(e){return this.from(this.entries().filter(e))}map(e){return this.from(this.entries().map(e))}flatMap(e){return this.from(this.entries().flatMap(e))}reduce(e,t){return this.entries().reduce(e.bind(this),t)}}const st=()=>!0,ot=(e,t)=>(...n)=>e(...n)&&t(...n),ct=(...e)=>(...t)=>{const[,n]=function(e){if(!e)throw new Error("Value should be fulfilled");return e}(e.find((([e])=>e(...t))));return n(...t)};const dt=e=>Boolean(e&&Array.isArray(e)),mt=e=>Boolean(e&&"object"==typeof e&&!dt(e)),ht=e=>e;function ut(e){return e instanceof it?e._:e}class pt extends it{from(e){return this.of(e.map(((e=ht)=>([,t])=>e(t))(ut)))}entries(){return(this._??[]).map(((e,t)=>[t,this.of(e)]))}size(){return this._?.length??0}get(e){return this.of("number"==typeof e?this._?.[e]:void 0)}set(e,t){return this.of(dt(this._)?Array.from({length:Math.max(this._.length,Number(e)+1)},((n,l)=>l===e?t:this._[l])):Array.from({length:Number(e)+1},((n,l)=>l===e?t:void 0)))}}class gt extends it{from(){return this}entries(){return[]}size(){return 0}get(e){return this.of(void 0!==e?void 0:this._)}set(e,t){return this.of(t)}}class xt extends it{from(e){return this.of(Object.fromEntries(e.map((([e,t])=>[e,ut(t)]))))}entries(){return Object.entries(this._??{}).map((([e,t])=>[e,this.of(t)]))}size(){return Object.keys(this._??{}).length}get(e){return this.of("string"==typeof e?this._?.[e]:void 0)}set(e,t){return this.of({...this._,[e]:t})}}class ft extends it{proto=ct([e=>dt(this._)||"number"==typeof e,()=>pt.prototype],[e=>mt(this._)||"string"==typeof e,()=>xt.prototype],[st,()=>gt.prototype]);from(e){return this.proto(void 0).from.call(this,e)}entries(){return this.proto(void 0).entries.call(this)}size(){return this.proto(void 0).size.call(this)}get(e){return this.proto(e).get.call(this,e)}set(e,t){return this.proto(e).set.call(this,e,t)}}const bt=e=>e instanceof it?e:new ft(e),yt=e=>{const t=(t,...n)=>ut(e(bt(t),...n));return t.fn=e,t},vt=[],Nt=e=>e instanceof Function?e:t=>e===t,wt=e=>(t,n,l=vt)=>bt(t).entries().reduce(((t,[n,a])=>wt(e)(a,t,l.concat(n))),e(n,[l,bt(t)])),kt=yt(((e,[t,n])=>{const[l,...a]=t;return e.set(l,a.length?kt(e.get(l),[a,n]):n)})),St=yt(((e,t)=>t.reduce(kt.fn,e))),Ct=e=>wt(((e,[t,n])=>It(n)?[...e,[t,ut(n)]]:e))(e,[]),It=e=>0===e.size();yt(((e,t=vt)=>t.reduce(((e,t)=>e.get(t)),e)));const Tt=yt(((e,[t,...n])=>n.length?e.set(t,Tt(e.get(t),n)):e.filter((([e])=>e!==t)))),Bt=(Mt=["$ref"]).map(((e,t)=>n=>Nt(e)(n[t+n.length-Mt.length]))).reduceRight(ot,st);var Mt;const Pt=(e,t)=>(e=>e.includes("#")?e.substring(e.indexOf("#")+1).split("/").filter(Boolean):[])(t).reduce(Vt,e),Vt=ct([dt,(e,t)=>e[parseInt(t,10)]],[mt,(e,t)=>e[t]],[st,ht]),Rt=(e,t)=>((e,t={})=>n=>St(t,Ct(n).map((t=>e(t)))))((([e,n])=>{return Bt(e)?[(l=e,l.slice(0,-1)),Pt(t(n),n)]:[e,n];var l}))(e),zt=e=>Ct(e).filter(((e=ht)=>([t])=>e(t))(Bt)),Dt=e=>{return t=zt(e).map((([,e])=>e)),[...new Set(t)];var t};async function _t(e,t){try{return e?await $t(e,t):null}catch(e){console.error(e)}return null}const $t=async(e,t)=>(await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}})).json(),jt=e=>[...new Set(e)],Lt={},At=["/portal-resources"],Ot=(e,t)=>Rt(e,(e=>t?.[e])),Et=(e,t)=>{const n=Dt(e),[r,i]=l({});return a((()=>{Ft(n).then(i)}),[n.join()]),n.length?Ot(e,{...t,...r}):e},Ft=async(e,t={})=>{if(e.length){const n=await(async e=>Object.fromEntries((await Promise.allSettled(jt(e).filter((e=>!At.some((t=>e.startsWith(t))))).map((async e=>[e,Lt[e]||=await $t(e)])))).filter((e=>"fulfilled"===e.status)).map((({value:e})=>e))))(e),l={...t,...n},a=Object.entries(n).flatMap((([,e])=>Dt(e)));return a.length?Ft(a,l):l}return t};function Ut(e,t={}){const n=d((t=>{const n=Et((({block:e,options:t,className:n,defaultPadding:l,padding:a,isTheme:r,version:i,children:s,...o})=>o)(t),t.options?.page?.fallback);return o(e,{...t,...n})}));return Object.assign(n,t),n}const Wt=Ut((({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(lt,{defaultPadding:n||"p-6xl",padding:t,className:"grow h-full",...l})})),{childrenTypes:["UnitBlock"]}),Ht=d((e=>{const{items:t}=e.options?.page?.adSourceBook??{},n=i((()=>Yt(0,t?.length)),[t]),l=t?.[n];return l?o(Wt,{suppressHydrationWarning:!0,...l,...e}):o(g,{...e,children:o(x,{})})})),Yt=(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}`}},Kt=e=>e?.replace(/[^+\d]/g,""),qt="/api/v1";const Gt=e=>e?{phone:Kt(e)}:{},Zt=(e,t="birthday")=>e?{[t]:Xt(e)}:{},Jt=(e,t=!0)=>({[t?"regionBranch":"region"]:e}),Qt=(e,t=!0)=>({[t?"email":"mail"]:e}),en=(e="")=>e&&"+7 ("!==e?{secondaryPhoneNumber:Kt(e)}:{},tn=({aspectsAttributes:e,aspects:t,ev:n})=>{for(const{aspectName:l,params:a}of e??[])t[l??""]?.(n,a)};function nn(){return nn._impl()}nn._impl=()=>({assign:(e,t)=>{globalThis.open(e,t||"_self")},get origin(){return globalThis.location.origin},get href(){return globalThis.location.href}}),nn.setup=e=>{nn._impl=e};const ln="rshb-query-params";function an(){const e=globalThis.location?.search||globalThis.sessionStorage?.getItem(ln)||"";return e&&globalThis.sessionStorage?.setItem(ln,e),e}const rn=e=>{const t=e.target?.closest("a"),n=nn();if(L(t?.href)&&!t?.href?.startsWith(n.origin)){e.preventDefault(),e.stopPropagation();const l=(e=>{const t=an();if(!L(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;l&&n.assign(l,t?.target)}};function sn(){return sn._impl()}function on(e=!1){const[t,n]=l(e),a=r((()=>n(!0)),[]),i=r((()=>n(!1)),[]),s=r((()=>n((e=>!e))),[]);return[t,{setValue:n,setTrue:a,setFalse:i,toggle:s}]}sn._impl=()=>({forwardQuery:rn}),sn.setup=e=>{sn._impl=e};const cn=e=>t=>t&&Object.entries(e??{}).flatMap((([e,n])=>n?n(t[e]):[]))||[],dn=e=>!e?.length,mn=e=>t=>n=>e(n)?[]:[t],hn={},un=[];const pn=(e,t)=>e&&t&&(e===t||Object.keys({...e,...t}).every((n=>e[n]===t[n])));function gn(e,{resetOnSubmit:t,formValidator:n,normalizer:o,onChange:c,onSubmit:d}={}){const[m,h]=function(e,t,n){const[i,s]=l(e),o=r((e=>s((l=>{const a=e instanceof Function?e(l):e,r=t?t(a):a,i=pn(a,r)?a:r;return!pn(l,i)&&n?.(i),i}))),[t,n]);return a((()=>{t&&s(t)}),[t]),[i,o]}(e,o,c),[u,{setTrue:p,setFalse:g}]=on(!1),x=s({}),[f,{isValid:b,errors:y}]=function(e,t){const n=i((()=>t?.(e)??hn),[t,e]),l=i((()=>cn(n)(e)??un),[n,e]),a=dn(l);return[n,{isValid:a,errors:l}]}(m,n),v=r(((e,t={})=>{const{parse:n,format:l,onChange:a}=t,r=m[e],i=u||x.current?.[String(e)],s=t?.validator??f[e],o=i&&s?s(r):[];return{value:l?l(r):r,isDirty:i,errors:s&&o,error:o[0],onChange:t=>{x.current||={},x.current[String(e)]=!0;const l=n?n(t):t;a?.(l),h((t=>({...t,[e]:l})))}}}),[m,u,f,h]),N=r((e=>{x.current=e,h(e)}),[h]),w=r((()=>{x.current={},g(),h(e)}),[e,h]),k=r((e=>{e.preventDefault(),b?(t&&w(),d?.(m,e)):p()}),[t,m,b,w,d]);return[m,{errors:y,field:v,update:N,reset:w,onSubmit:k}]}const xn=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 space-y-lg",children:[n?o(N,{headingType:"h3",title:n,className:"@xl:text-center"}):null,l]})})}));function fn(e,t={}){const{open:n,close:l,...a}=be();return{open:r(((a,r={})=>n({dialog:o(e,{...t,...a,onClose:()=>{l(),a.onClose?.()}}),...r})),[e,n,l]),close:l,...a}}function bn(e,t,n,l){a((()=>{if(e&&n)return e.addEventListener(t,n,l),()=>{e.removeEventListener(t,n,l)}}),[e,t,n])}function yn(e){const t=s(null),n=r((n=>{t&&t.current&&n.target instanceof Node&&!t.current.contains(n.target)&&e()}),[e]);return bn(globalThis.document,"click",n),t}const vn=({label:e,errors:t})=>e&&t?`${e}*`:e,Nn=()=>{},wn="border border-solid outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text rounded",kn=e=>e?o(Ae,{size:"text-m",color:"text-primary-text",font:"font-light",children:e}):null,Sn=d((({key:e,className:t,id:n,name:l,type:i="text",label:d,placeholder:m,value:u="",valid:p=!0,pattern:g,autoFocus:x=!1,isTextarea:f=!1,disabled:b=!1,children:y,onChange:v,onFocus:N,onBlur:w})=>{const k=s(null),S=r((e=>{const t=(e.target?.value??"").trimStart();v&&v(t)}),[v]);a((()=>{x&&k.current?.focus()}),[x,k]);const C=y?"pr-3xl":"",I=(e=>e?wn:"border-error")(p),T=d??l??n;return c("div",{className:h("relative",t),children:[c("label",{className:"space-y-xs",children:[kn(d),f?o("textarea",{className:h("block resize-y min-h-24",Cn,I),id:h("textarea",n),value:u,name:l||n,placeholder:m,disabled:b,"aria-label":T,onChange:S,onFocus:N,onBlur:w},e):o("input",{ref:k,className:h("h-14",Cn,C,I),id:n,type:i,value:u,name:l||n,placeholder:m,pattern:g,disabled:b,"aria-label":T,onChange:S,onFocus:N,onBlur:w},e)]}),y]})})),Cn="w-full border rounded-md text-primary-text outline-none p-m",In=e=>o("div",{className:"h-6",children:e?o(Ae,{size:"text-xs",font:"font-light",color:"text-error",children:e}):null}),Tn=d((({className:e,label:t,value:n="",placeholder:l,error:i,errors:s,onChange:d=Nn,onBlur:m,isTextarea:u,type:p,isInteger:g=!1,maxLength:x,disabled:f=!1})=>{const[b,{setFalse:y,setTrue:v}]=on(),N=yn(y),w=r((e=>{!b&&v(),x?e.length<=x&&d(e):d(e)}),[b,d]);return a((()=>{g&&n&&d(Bn(n))}),[n]),c("div",{className:h("shrink-0 w-full",e),ref:N,onBlur:y,onFocus:v,children:[o("div",{children:o(Sn,{disabled:f,type:p||"text","aria-label":t,label:vn({label:t,errors:s}),valid:Boolean(!i),value:n,onChange:w,onBlur:m,isTextarea:u,placeholder:Mn(l,s,t)})}),In(i)]})})),Bn=(e="")=>e.replace(/[^\d]+/g,""),Mn=(e,t,n)=>t&&!n?`${e}*`:e,Pn=e=>e?.text||e?.key||"",Vn=(e,t)=>e?.length&&t?.trim()?e.filter((e=>e.text?.toLocaleLowerCase().includes(t?.trim().toLocaleLowerCase()))):e,Rn=d((({popupRef:e,options:t,value:n,query:l,onChange:a,iconVersion:r})=>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:Vn(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:Pn(e)}),o(Z,{name:"DoneSimpleIcon",width:"16",height:"16",iconVersion:r,className:h("absolute right-4 pt-3xs",{hidden:e.key!==n?.key})})]},e.key)))}):null));function zn({isOpen:e,options:t,value:n,query:l,onChange:i,onClose:c,iconVersion:d}){const m=ge(fe.emitter,"popup"),h=r((()=>{m.close(),c&&c()}),[c]),u=r((e=>{h(),i&&i(e)}),[h,i]),p=s(null),g=yn(h);return a((()=>{if(!e||!p.current)return;const a=p.current,{top:r,left:i,width:s,height:c}=a.getBoundingClientRect();m.open({popup:o(Rn,{popupRef:g,options:t,value:n,query:l,onChange:u,iconVersion:d}),top:r+window.scrollY+c,left:i,width:s})}),[e,t,n,l,u]),p}const Dn=d((({className:e,label:t,options:n=[],value:a,valid:i=!0,isBorder:s=!0,placeholder:d="",isSearch:m=!1,disabled:u=!1,iconVersion:p="black",onChange:g})=>{const[x,{setFalse:f,setTrue:b}]=on(),[y,v]=l(""),N=jn(u,n.length),w=x&&!N,k=r((()=>{N||b()}),[N]),S=r((()=>{v(""),f()}),[]),C=zn({isOpen:x,options:n,value:a,query:y,onChange:g,onClose:S,iconVersion:p});return c("div",{className:h("space-y-xs",e),children:[kn(t),c("div",{className:h("relative",w?"z-20":"z-10"),ref:C,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",$n(s,i,N)),onClick:w?S:k,children:[o("p",{className:"line-clamp-2 text-ellipsis",children:Pn(a)||d}),_n(w,p)]}),m&&w?o("div",{className:h("absolute top-0 w-full z-20"),children:o(Sn,{type:"text",value:y,autoFocus:!0,disabled:N,onChange:v})}):null]})]})})),_n=(e,t)=>o(Z,{className:h("absolute right-0 flex self-center",{"rotate-180":!e}),iconVersion:t,name:"ArrowUpIcon",width:"16",height:"16"}),$n=(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"),jn=(e,t)=>e||0===t,Ln=d((({className:e="",label:t,error:n,errors:l,...a})=>c("div",{className:e,children:[o(Dn,{...a,valid:!n,label:vn({label:t,errors:l})}),In(n)]}))),An=[{text:"Торговый эквайринг",key:"trade"},{text:"СБП-эквайринг",key:"sbp"},{text:"Интернет-эквайринг",key:"internet"},{text:"Все виды эквайринга",key:"all"}],On=d((({field:e,input:t})=>o(Ln,{label:"Вид эквайринга",placeholder:"Выберите эквайринг",options:An,...e(t?.name??"")}))),En=(e="")=>Boolean("trade"===e||"all"===e),Fn=e=>null!=e,Un=new Map,Wn=(e,t=Un)=>n=>{const l=Yn(n),a=t.get(l);if(l&&Fn(a))return a;const r=e(...n);return l&&Fn(r)&&t.set(l,Promise.resolve(r)),r},Hn=e=>Boolean(e?.every((e=>Array.isArray(e)?Hn(e):!e||"string"==typeof e))),Yn=e=>Hn(e)?e.toString():"",Xn=e=>Boolean(e&&Array.isArray(e)&&1===e.length&&"string"==typeof e[0]);function Kn(e,t,{fallback:n,cache:r}={}){const s=i((()=>qn(e)),[e]),[o,c]=l(void 0),[d,m]=l(void 0);a((()=>{if(!s.some(Fn))return;let e=!1;const n=(t,n)=>{e||(c(t),m(n))};return(async()=>{try{n(await Wn(t,r)(s))}catch(e){n(void 0,e)}})(),()=>{e=!0}}),[t,r,s]);const h=n&&Xn(s)&&n[s[0]];return{data:!o&&h?h:o,error:d,mutate:()=>Promise.resolve(void 0)}}function qn(e){return Array.isArray(e)?e:e instanceof Function?qn(e()):[e]}const Gn=`${qt}/branches`,Zn=[];const Jn=async e=>await _t(e,{method:"GET"})||Zn;function Qn(e=!1){const{data:t}=Kn(`${qt}${e?"/premiumBranchesByRegions":"/branchesByRegions"}`,$t);return Array.isArray(t)?t:[]}const el=(e="")=>"ULTRASERVICE"===e,tl=d((({field:e,input:t,params:n})=>{const l=el(n?.typeForm),r=e("region"),i=r?.value?.key,s=r?.value?.text,c=l?Qn(l)?.find((e=>e?.region===s))?.branches:function(e){const{data:t}=Kn(e?`${Gn}?regionCode=${e}`:null,Jn);return t||Zn}(i)?.filter((e=>e?.address));return a((()=>{""!==r?.value?.key&&e?.("addressBranch")?.onChange?.("")}),[r?.value]),o(Ln,{label:"Отделение",placeholder:"Выберите отделение",options:(c||[]).map((({address:e=""})=>({key:e,text:e}))),...e(t?.name??""),isSearch:!0})})),nl=(e,{normalize:t,format:n})=>{const{value:a,onFocus:i,onBlur:s,onChange:o}=e,[c,d]=l(!1),m=r((e=>{d(!0),i&&i(e)}),[]),h=r((()=>{d(!1),o&&o(t(a)),s&&s()}),[o,a]);return{value:c||!n?a:n(a),onFocus:m,onBlur:h}},ll=(e,t,n)=>Math.max(t,Math.min(e,n));function al(e){const t=(e||"").replace(/\D/g,""),n=parseInt(t,10);return Number.isNaN(n)?0:n}function rl({list:e=[],min:t,max:n,step:l,value:a=e[0]||t,disabled:r,onChange:i}){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||r?"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:r,onChange:t=>{const n=al(t.target?.value),l=e.length?e[n]:n;i&&i(l||0)}})})]})}const il=1,sl=100,ol=d((e=>{const{className:t,title:n,items:l=[],list:a=[],min:i=(a.length?0:il),max:s=(a.length?a.length-1:sl),step:d=1,value:m=a[0]||i,disabled:u=!1,onChange:p}=e,g=nl(e,{normalize:(e=0)=>a.length?cl(a)(e):ll(e,i,s),format:Ze()}),x=r((e=>{p&&p(al(e.target?.value))}),[p]);return c("div",{className:t,children:[c("label",{className:"block relative",children:[n?o(Ae,{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",wn,"disabled:border-gray disabled:bg-main-divider"),disabled:u,onChange:x,...g}),rl({list:a,min:i,max:s,step:d,disabled:u,value:m,onChange:p})]}),dl(l)]})})),cl=e=>t=>e.reduce(((e,n)=>Math.abs(n-t)<Math.abs(e-t)?n:e)),dl=e=>o("div",{className:"flex justify-between my-xs",children:e.map(((e,t)=>o(Ae,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e},String(t))))}),ml=["От 1 000 ₽","До 1 000 000 000 ₽"],hl=d((({field:e,input:t})=>o(ol,{title:"Сумма, ₽",items:ml,min:1e3,max:1e9,...e(t?.name??"")}))),ul=d((({field:e,input:t})=>o(Tn,{label:"Годовая выручка, ₽",...e(t?.name??"")}))),pl=[{key:"client",text:"Клиент"},{key:"representative",text:"Представитель клиента"}],gl=d((({field:e,input:t})=>o(Ln,{label:"Тип обратившегося",...t,options:pl,...e("applierType")}))),xl=d((({field:e,input:t})=>o(Tn,{label:"ФИО или должность обслуживавшего Вас сотрудника Банка",...e(t?.name??"")}))),fl=({today:e,firstDayOfWeek:t,totalDays:n,currentMonth:l,currentYear:a,min:r,max:i,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=bl(t,e),c=yl(t,r,i);h.push(o("td",{children:o("div",{className:vl(n,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,n)=>t&&e.getTime()<t.getTime()||n&&e.getTime()>n.getTime(),vl=(e=!1,t=!1)=>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:n,min:l,max:a,onDateSelect:r=Nn})=>{const{firstDayOfWeek:s,totalDays:d}=i((()=>({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:Nl.map(((e,t)=>o("th",{className:"p-s",children:e},String(t))))})}),o("tbody",{children:fl({firstDayOfWeek:s,today:e,totalDays:d,currentYear:n,currentMonth:t,min:l,max:a,onDateClick:r})})]})})),kl=["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"];const Sl=e=>"_"===e,Cl=e=>/\d/.test(e),Il=e=>Sl(e)||Cl(e),Tl=1940,Bl={name:"CalendarIcon",iconVersion:"black",width:"24",height:"24"},Ml=d((({setSelectedMonth:e,setSelectedYear:t,className:n,value:r,disabled:i,onChange:d,onClick:m})=>{const u=s(null),[p,g]=l(r||"");return a((()=>{g(r||"")}),[r]),a((()=>{Vl({inputValue:p,setSelectedMonth:e,setSelectedYear:t,onChange:d})}),[p]),c("div",{onClick:()=>{null!==u.current&&u.current.focus(),m?.()},className:h("relative",n),children:[o("input",{ref:u,className:"h-full w-full px-m text-l text-black focus-visible:outline-none",value:p,type:"text",onChange:e=>{const t=e.target?.value;"string"==typeof t&&t?.length<11&&g(function(e,t){const n=e.replace(/\D/g,"");if(""===n||n.length===t.length)return e;const l=[...t],a=l.findIndex(Sl),r=l.map(((e,t)=>Il(e)?l.slice(0,t).filter(Il).length:-1)),i=l.map(((e,t)=>Cl(e)?e:n.charAt(r[t])||e)),s=r.indexOf(n.length-1)+1;return i.slice(0,Math.max(a,s)).join("")}(t,"__.__.____"))},onBlur:()=>{Pl(p)?Vl({inputValue:p,setSelectedMonth:e,setSelectedYear:t,onChange:d}):g(r||"")},disabled:i}),i?null:o(Z,{className:"mr-s",...Bl})]})})),Pl=e=>{const[t,n,l]=e.split(".");if((e=>Number(e)>=Tl&&Number(e)<=(new Date).getFullYear())(l)&&(e=>Number(e)>0&&Number(e)<13)(n)){const e=new Date(Number(l),Number(n)-1,1);let a=0;for(;e.getMonth()===Number(n)-1;)e.setDate(e.getDate()+1),a++;return Number(t)>0&&Number(t)<=a}return!1},Vl=({inputValue:e,setSelectedMonth:t,setSelectedYear:n,onChange:l})=>{if(Pl(e)){const{day:a,month:r,year:i}=(e=>{const[t,n,l]=e.split(".");return{day:Number(t),month:Number(n)-1,year:Number(l)}})(e);t(r),n(i),l?.(new Date(i,r,a))}},Rl=({handleChangeVisibleCalendar:e,value:t,valid:n,onChange:l,setSelectedMonth:a,setSelectedYear:r,disabled:i=!1})=>o(Ml,{onChange:l,disabled:i,onClick:e,value:t&&Xt(t),setSelectedMonth:a,setSelectedYear:r,className:h("flex justify-between items-center h-14 border rounded-md cursor-pointer hover:border-black active:border-black focus:border-black",n?"border-gray":"border-error")}),zl=kl.map((e=>({key:e}))),Dl=Array.from({length:(new Date).getFullYear()-Tl+1},((e,t)=>Tl+t)).reverse().map((e=>({key:String(e)}))),_l=(e,t)=>{const n=new Date(e,t,1);let l=0;for(;n.getMonth()===t;)l++,n.setDate(n.getDate()+1);return l},$l=({maxDateOfMonth:e,selectedYear:t,selectedMonth:n,value:l,onChange:a})=>{l&&a?.(new Date(t,n,Math.min(e,l.getDate())))},jl={name:"ArrowUpIcon",iconVersion:"black",width:"24",height:"24"},Ll={className:"min-w-32",iconVersion:"black",isBorder:!1},Al=d((({className:e="",label:t="",value:n,valid:i=!0,minDate:s,maxDate:d,disabled:m,onChange:u})=>{const[p,{setValue:g,setFalse:x}]=on(!1),[f,b]=l(n?.getMonth()||(new Date).getMonth()),[y,v]=l(n?.getFullYear()??(new Date).getFullYear()),N=r((e=>{u?.(e),x()}),[u]),{handlePrevMonth:w,handleNextMonth:k,handleSelectMonth:S,handleSelectYear:C,monthsOptions:I,yearsOptions:T,handleChangeVisibleCalendar:B,ref:M}=(({onShowCalendar:e,showCalendar:t,selectedMonth:n,onMonthSelect:l,onYearSelect:a,selectedYear:i,onChange:s,value:o})=>{const c=yn(r((()=>t&&e(!1)),[t]));return{handleChangeVisibleCalendar:r((()=>e(!t)),[t]),handleNextMonth:r((()=>{n+1<=11?l(n+1):(l(0),a(i+1))}),[n]),handlePrevMonth:r((()=>{n-1>=0?l(n-1):(l(11),a(i-1))}),[n]),handleSelectMonth:r((({key:e})=>{l(kl.indexOf(e));const t=_l(i,kl.indexOf(e));$l({maxDateOfMonth:t,selectedYear:i,selectedMonth:kl.indexOf(e),value:o,onChange:s})}),[o]),handleSelectYear:r((({key:e})=>{a(Number(e)),o&&s?.(new Date(Number(e),n,o?.getDate()))}),[o]),monthsOptions:zl,yearsOptions:Dl,ref:c}})({onYearSelect:v,onMonthSelect:b,onShowCalendar:g,selectedYear:y,selectedMonth:f,showCalendar:p,onChange:u,value:n}),P=((e,t)=>{const[n,r]=l(!1);return a((()=>{const n=()=>{if(e?.current){const{top:n}=e.current.getBoundingClientRect();r(n>t)}};return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}),[e]),n})(M,370);return c("div",{className:h("space-y-xs",e),ref:M,children:[kn(t),c("div",{className:"relative",children:[Rl({handleChangeVisibleCalendar:B,value:n,valid:i,onChange:u,disabled:m,setSelectedMonth:b,setSelectedYear:v}),p&&!m?c("div",{className:h("absolute bg-white z-20 select-none",{"bottom-full":P}),children:[c("div",{className:"flex gap-s",children:[o("div",{className:"my-auto",onClick:w,children:o(Z,{...jl,className:"-rotate-90 cursor-pointer"})}),o(Dn,{onChange:S,value:{key:kl[f]},options:I,...Ll}),o(Dn,{onChange:C,value:{key:String(y)},options:T,...Ll}),o("div",{className:"my-auto",onClick:k,children:o(Z,{...jl,className:"rotate-90 cursor-pointer"})})]}),o(wl,{today:n,currentMonth:f,currentYear:y,min:s,max:d,onDateSelect:N})]}):null]})]})})),Ol=d((({className:e,label:t,error:n,errors:l,...a})=>c("div",{className:h("shrink-0 w-full",e),children:[o(Al,{label:vn({label:t,errors:l}),valid:Boolean(!n),...a}),In(n)]}))),El=d((({field:e,input:t})=>o(Ol,{label:t?.label||"Дата рождения",...e(t?.name??"")}))),Fl=d((({field:e,input:t})=>o(Tn,{label:"Количество объектов инкассации",isInteger:!0,...e(t?.name??"")}))),Ul=d((({field:e,input:t})=>o(Tn,{className:"col-span-2",...e(t?.name??""),placeholder:"Ваше сообщение",isTextarea:!0}))),Wl=d((({field:e,input:t})=>o(Ol,{label:"Желаемая дата встречи",...e(t?.name??"")}))),Hl=d((({field:e,input:t})=>o(Tn,{label:"Электронная почта",...e(t?.name??""),...t}))),Yl=[{key:"ULTRASERVICE",text:"Ультра"}],Xl=[{key:"Физическое лицо"},{key:"Юридическое лицо / ИП"}],Kl=[{key:"phone",text:"Телефонный звонок"},{key:"email",text:"Электронное сообщение"}],ql=d((({field:e,input:t})=>o(Ln,{label:"Способ получения ответа",options:Kl,...e(t?.name??"")}))),Gl=d((({field:e,input:t})=>o(Tn,{label:"ФИО",...e(t?.name??""),...t}))),Zl=d((({field:e,input:t})=>o(Tn,{label:"ИНН",isInteger:!0,maxLength:12,...t,...e(t?.name??"")}))),Jl=d((({className:e,viewBox:t,fill:n="none",width:l,height:a,paths:r,...i})=>o("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:n,width:l,height:a,children:r.map((({d:e,fill:t,...n},l)=>{const a={...i,...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)}))}))),Ql="appearance-none w-5 h-5 border-solid flex-none",ea=[{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"}],ta=d((({className:e,value:t,text:n,disabled:l,isRadio:a,onChange:i})=>{const s=r((e=>{l||(e.preventDefault(),i&&i(!t))}),[i,l,t]),d=a?o("div",{className:"absolute left-1 w-3 h-3 rounded-full bg-primary-main"}):o(Jl,{paths:ea,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",la(l)),onClick:s,children:[o("div",{className:h(Ql,"m-0",a?"rounded-full border-2":ra(t),!l&&t?"border-primary-main":"border-gray",l?"bg-main-disabled":"group-hover/box:border-primary-hover"),role:aa(a),"aria-checked":Boolean(t),"aria-disabled":Boolean(l),"aria-label":n}),t?d:null,na(n)]})})})),na=e=>e?o("div",{className:"ml-s",children:o(Ae,{size:"text-l",font:"font-light",children:e})}):null,la=(e=!1)=>e?"cursor-not-allowed":"cursor-pointer",aa=(e=!1)=>e?"radio":"checkbox",ra=(e=!1)=>h("rounded border",{"bg-primary-main":e}),ia=d((({className:e,text:t,value:n,key:l,disabled:a,error:r,onChange:i})=>c("div",{className:h("shrink-0",e),children:[o(ta,{text:t,value:n,disabled:a,onChange:i},l),In(r)]}))),sa=d((({field:e,input:t})=>o(ia,{...e(t?.name??""),text:'Являюсь клиентом банка АО "Россельхозбанк"'}))),oa=`${qt}/outservice`,ca=[];async function da(){const e=await _t(`${oa}/outserviceregions`);return e&&Array.isArray(e)?e:ca}const ma=d((({field:e,input:t})=>{const n=e("region"),l=n?.value?.key,{data:r}=Kn("outServiceRegions",da),s=i((()=>r?.find((e=>e.code===l))?.localities?.map((e=>({key:e,text:e})))),[r,l]);return a((()=>{""!==l&&e?.(t?.name??"")?.onChange?.("")}),[l,t?.name??""]),o(Ln,{label:"Населенный пункт",placeholder:"Выберите город, где доступен сервис",options:s,...e(t?.name??""),isSearch:!0})})),ha=d((({field:e,input:t})=>o(Tn,{label:"Отчество (Обязательно, при наличии)",maxLength:60,...e(t?.name??""),...t}))),ua=d((({field:e,input:t})=>o(Tn,{label:"Имя",maxLength:60,...e(t?.name??""),...t}))),pa=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(Ae,{size:"text-l",font:"font-light",color:"text-primary-text",children:t}):null]}))),ga=d((({field:e,input:t})=>En(e("acquiringType")?.value?.key)?o(pa,{type:"radio",text:"Хочу онлайн-кассу",...e(t?.name??"")}):null)),xa=d((({field:e,input:t})=>o(Tn,{...e(t?.name??""),placeholder:"Укажите интересующий вас вопрос",isTextarea:!0,...t}))),fa=e=>"_"===e,ba=e=>/\d/.test(e),ya=e=>fa(e)||ba(e),va=[..."+7 (___) ___-__-__"],Na=va.findIndex(fa),wa=va.map(((e,t)=>ya(e)?va.slice(0,t).filter(ya).length:-1));const ka=d((({children:e,onChange:t,...n})=>{const l=r((e=>t&&t(function(e){const t=e.replace(/\D/g,""),n=va.map(((e,n)=>ba(e)?e:t.charAt(wa[n])||e)),l=wa.indexOf(t.length-1)+1;return(l?n.slice(0,Math.max(Na,l)):n).join("")}(e))),[t]),a=r((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})})),Sa=d((({className:e,label:t,error:n,...l})=>c("div",{className:h("shrink-0 w-full",e),children:[o(ka,{"aria-label":t,label:vn({label:t,errors:l?.errors}),valid:Boolean(!n),placeholder:"+7 (___) ___-__-__",...l}),In(n)]}))),Ca=d((({field:e,input:t})=>o(Sa,{label:"Телефон",...e(t?.name||"phone"),...t}))),Ia=d((({field:e})=>En(e("acquiringType")?.value?.key)?o(pa,{type:"radio",text:"Хочу POS-терминал",...e("posTerminal")}):null)),Ta=Ut((({field:e,input:t,source:n})=>o(Ln,{placeholder:"Выберите продукт",label:"Продукт",options:Ba(n?.productList),...e(t?.name??"")}))),Ba=e=>(e??[]).map((e=>({key:e,value:e}))),Ma=`${qt}/regions`,Pa=[];function Va(e=Ma){const{data:t}=Kn(e,$t);return Array.isArray(t)?t:Pa}const Ra=`${qt}/outservice/outserviceregions`,za=d((({field:e,input:t,params:n})=>{var l;const a=Va((l=n?.typeForm,"OUTSERVICE"===l?Ra:void 0));return o(Ln,{label:t?.label||"Филиал",placeholder:"Выберите филиал",isSearch:!0,options:i((()=>a?.map((({code:e="",name:t=""})=>({key:e,text:t})))),[a]),...e(t?.name??"")})})),Da=d((({field:e,input:t})=>{const n=Qn(!0),l=i((()=>n?.map((({region:e})=>({key:e,text:e})))),[n]);return o(Ln,{label:"Регион",placeholder:"Выберите регион",options:l,...e(t?.name??"")})})),_a=d((({field:e,input:t})=>o(Tn,{label:"ФИО представителя",...t,...e("representativeName")}))),$a=(e,t)=>{const{value:n,isDirty:l}=e,a=l?t(n):[];return{...e,errors:a,error:a[0]}},ja=/^[\u0400-\u04FF\d\s]+$/u,La=mn((e=>null!=e&&""!==e)),Aa="Некорректно заполненное поле",Oa=e=>La(e??Aa),Ea=e=>mn((e=>e?.key&&""!==e?.key))(e??Aa),Fa=e=>mn((e=>"string"==typeof e&&e.length>1&&((e="")=>ja.test(e))(e)))(e??Aa),Ua=e=>/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/.test(e),Wa=e=>mn(Ua)(e),Ha=mn((e=>"boolean"==typeof e&&e))("Согласие обязательно"),Ya={fullName:Oa(),addressBranch:Ea(),desiredMeetingDate:Oa(),product:Oa(),localities:Oa(),partnerComments:Oa(),collectionCount:Oa(),acquiringType:Ea(),serviceType:Ea(),annualRevenue:Oa(),feedbackMethod:Ea(),serviceDirection:Ea(),secondaryPhone:Wa("Укажите номер телефона"),region:Ea(),situationDescription:Oa(),sufferedFrom:Oa(),applierType:Oa(),surname:Fa("Укажите свою фамилию на кириллице"),name:Fa("Укажите своё имя на кириллице"),middleName:Fa("Укажите своё отчество на кириллице"),birthday:Oa("Укажите дату рождения"),phone:Wa("Укажите номер телефона"),email:(Xa="Укажите электронную почту",mn((e=>/^[^\s@]+@[^\s@]+\.[a-zA-Z]{2,4}$/.test(e)))(Xa)),inn:(e=>mn((e=>"string"==typeof e&&(10===e.length||12===e.length)))(e))("Укажите ИНН"),comment:Oa(),typeForm:Oa(),consentToReceiveMaterials:Ha,consentDataProcessing:Ha};var Xa;const Ka=(e={})=>({name:t})=>Boolean(e[t??""]),qa=e=>t=>!t?.condition||t.condition.values.find((n=>{const l=e?.[t?.condition?.name??""];return n===(l?.key??l)})),Ga=d((({field:e})=>{const t=e("secondaryPhone");return o(Sa,{label:"Дополнительный телефон",...t.value&&"+7 ("!==t.value?$a(t,Ya.secondaryPhone):t})})),Za=d((({field:e,input:t})=>o(Ln,{label:"Направление обслуживания",placeholder:"Выберите направление",options:Xl,...e(t?.name??"")}))),Ja=d((({field:e,input:t})=>o(Tn,{label:"Описание ситуации",...t,...e("situationDescription")}))),Qa=[{key:"blg",text:"Белгородской области"},{key:"brnsk",text:"Брянской области"},{key:"krsk",text:"Курской области"},{key:"chs",text:"От стихийного бедствия ЧС"}],er=d((({field:e,input:t})=>o(Ln,{label:"Пострадал в",...t,options:Qa,...e("sufferedFrom")}))),tr=d((({field:e,input:t})=>o(Tn,{label:"Фамилия",maxLength:60,...e(t?.name??""),...t}))),nr=["От 1 мес","До 15 лет"],lr=d((({field:e})=>o(ol,{title:"Срок, месяцев",items:nr,min:1,max:180,...e("term")}))),ar=d((({field:e,input:t})=>o(Ln,{label:"Тип обслуживания",options:Yl,...e(t?.name??"")}))),rr={horizontal:"@lg:flex-row",vertical:""},ir=d((({label:e,items:t,value:n,className:l,disabled:a=!1,orientation:r="horizontal",onChange:i})=>c("div",{className:"grid gap-xs whitespace-nowrap",children:[e?o("div",{role:"radiogroup","aria-label":e,children:o(Ae,{color:"text-secondary-text",font:"font-light",children:e})}):null,o("div",{className:h("flex flex-col gap-s",rr[r],l),role:"radiogroup","aria-label":"Группа кнопок",children:t?.map((({id:e,text:t})=>o(ta,{isRadio:!0,text:t,value:n===e,onChange:()=>i?.(e),disabled:a},String(e))))})]}))),sr=[{id:"currencyControl",text:"Валютный контроль"},{id:"documentOperations",text:"Документарные операции"},{id:"conversionTransactions",text:"Конверсионные операции"},{id:"otherIssues",text:"Иные вопросы ВЭД"}],or=d((({field:e,input:t})=>{const n=r((t=>{"currencyControl"!==t&&(e("inn").onChange?.(""),e("region").onChange?.(""))}),[]);return o("div",{className:"py-m gap-m grid @xl:flex @xl:items-center",children:o(ir,{className:"whitespace-normal",orientation:"horizontal",items:sr,...e(t?.name??"",{onChange:n})})})})),cr=d((({field:e,input:t})=>o(ta,{text:"Согласен на получение информационных и аналитических материалов по электронной почте",...e(t?.name??"")})));const dr={$ref:"/wcms-resources/outservice-productlist.json"},mr={fullName:Gl,addressBranch:tl,desiredMeetingDate:Wl,product:e=>o(Ta,{...e,source:dr}),localities:ma,isClient:sa,partnerComments:xa,collectionCount:Fl,acquiringType:On,onlineCheckout:ga,posTerminal:Ia,serviceType:ar,term:lr,amount:hl,annualRevenue:ul,vedTypes:or,feedbackMethod:ql,serviceDirection:Za,bankEmpolee:xl,secondaryPhone:Ga,applicationDate:e=>o(Tn,{label:"Дата и время обращения в Банк",...e}),region:e=>el(e?.params?.typeForm)?o(Da,{...e}):o(za,{...e}),consentToReceiveMaterials:cr,sufferedFrom:er,situationDescription:Ja,representativeName:_a,applierType:gl,surname:tr,name:ua,middleName:ha,birthday:El,phone:Ca,email:Hl,inn:Zl,comment:Ul},hr=(e,t,n={})=>(l,a)=>{const r={...mr,...n}[String(l.name)];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:l,field:e})&&r?o("div",{children:o(r,{field:e,input:l,params:t})},a):null},ur=e=>e?o("div",{className:"@xl:text-center @xl:col-span-2 mb-m",children:o(Ae,{size:"text-h6",children:e})}):null,pr={primary:h("text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active","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("text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","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")},gr=h("group/btn-embedded","bg-transparent border border-transparent outline-none"),xr=h("bg-main-gray text-main-disabled cursor-not-allowed"),fr=d((({className:e,type:t="button",version:n="primary",shape:l="default",embedded:a,disabled:s,role:c,ariaLabel:d,data:m,dataTheme:u,children:p,onClick:g=Nn})=>{const x=r("tab"!==c?pe(g):g,[c,g]),f=i((()=>Ne(m)),[m]),b="round"===l;return o("button",{className:h("font-sans flex items-center gap-xs",{[pr[n]]:!s&&!a,[gr]:a,[xr]:s},a?"justify-between":"justify-center",a||b?"p-0":"px-9 py-4",{"rounded-md":"default"===l,"rounded-full":b},e),type:t,role:c,"aria-label":d,disabled:s,"aria-disabled":s?"true":void 0,"data-theme":u,...f,onClick:x,children:p})})),br=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(Z,{name:"CloseIcon",width:"20",height:"20",iconVersion:"gray"})}))),yr=d((({className:e,head:t,children:n,onClose:l,onClick:a})=>c("div",{className:h("relative bg-white pt-0 p-lg",e),role:"dialog",title:"Диалог",onClick:a,children:[c("div",{className:"sticky py-xl top-0 bg-white z-10",children:[o(br,{className:"absolute top-0 right-0",onClose:l}),o("div",{className:"container",children:t})]}),o("div",{className:"container pb-6xl",children:n})]}))),vr=d((({ok:e,typeForm:t,onClose:n})=>{const l="ANTIFRAUD"===t?"Сообщение отправлено. Для уточнения информации с Вами могут связаться работники Банка либо Вы\n можете самостоятельно позвонить по номеру контакт-центра +78001000100. Будьте внимательны, работники Банка\n не звонят с использованием мессенджеров.":"Совсем скоро мы с вами свяжемся";return o(yr,{className:"my-6xl max-w-lg w-full min-h-fit mx-auto",onClose:n,children:c("div",{className:"flex flex-col gap-lg items-center rounded-md space-x-m",children:[o(se,{image:{icon:e?"ResponseOKIcon":"ResponseFailIcon",iconVersion:"normal"},width:"136",height:"136"}),o(S,{className:"w-full",title:e?"Ваша заявка отправлена":"Не удалось отправить заявку",description:e?l:"Пожалуйста, повторите позднее",headlineVersion:"XS",isEmbedded:!0}),o(fr,{type:"button",onClick:n,children:"Хорошо"})]})})})),Nr=e=>{const{acquiringType:t,onlineCheckout:n,posTerminal:l,amount:a,term:r,annualRevenue:i,serviceType:s,vedTypes:o,region:c,inn:d,sufferedFrom:m,situationDescription:h,...u}=e,p=t||i?(e=>{const{acquiringType:t,onlineCheckout:n=!1,posTerminal:l=!1,term:a,amount:r,annualRevenue:i}=e;return t?`Вид эквайринга=${t?.text||""}${En(t?.key)?`/Онлайн касса=${n}/POS-терминал=${l}`:"/Онлайн касса=false/POS-терминал=false"}`:`Сумма=${r}/Срок=${a}/Выручка=${i}`})(e):null,g={...u,...Sr(o),...kr(c),...d&&{inn:d},...p?{partnerComments:p}:{},...s?{typeForm:s}:{},...wr(m,h?.text)};return Object.fromEntries(Object.entries(g)?.map((([e,t])=>[e,t?.key||t])))},wr=(e,t)=>e||t?{comment:`${e||""};${t||""}`}:{},kr=e=>e?.key||e?.text?{region:e?.text||e?.key}:{},Sr=e=>e?{vedTypes:Object.fromEntries(sr.map((({id:t})=>[t,t===e])))}:{},Cr={typeForm:"",region:{key:"",text:""},addressBranch:{key:"",text:""},surname:"",name:"",phone:"",secondaryPhone:"",comment:"",product:"",partnerComments:"",annualRevenue:"",term:12,amount:1e5,acquiringType:An[0],serviceType:Yl[0],feedbackMethod:Kl[0],serviceDirection:Xl[0],vedTypes:sr[0].id,birthday:void 0,isClient:!1,onlineCheckout:!1,posTerminal:!1,consentToReceiveMaterials:!1,consentDataProcessing:!1,addressRetail:{key:"",text:""}},Ir=(e,t="")=>({...Object.fromEntries(e.map((e=>[e.name,"vedTypes"===e?.name&&e?.defaultValue||Cr[e.name||""]]))),typeForm:{key:t,text:""}}),Tr=d((({color:e="text-primary-main",position:t="absolute",blur:n=!0,size:l="big"})=>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","animate-spin rounded-full","border-solid border-current","border-r-transparent","small"===l?"border-4 h-8 w-8":"border-8 h-28 w-28",e),role:"status"})}))),Br=d((({isLoading:e,disabled:t,children:n,...l})=>c(fr,{type:"submit",disabled:e||t,...l,children:[e?o(Tr,{blur:!0,size:"small"}):null,n]}))),Mr={primary:pr.primary,secondary:pr.secondary,white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"text-primary-main",gray:pr.secondary,transparent:"","":""},Pr=d((e=>{const t=ye(),{className:n,href:l,target:a,text:r,aboveText:i,version:s="link",rel:c,ariaLabel:d,data:m,children:u,onClick:p}=t(e),g="link"!==s;return o("a",{className:h("group/btn inline-flex items-center h-fit","font-sans no-underline select-none","border border-transparent focus:border-primary-text focus:border","cursor-pointer",{[Mr[s]]:Boolean(s),[i?"px-9 py-2.5":"px-9 py-4"]:g,"rounded-md":g},n),href:l,target:a,rel:c,"aria-label":d??`Ссылка на ${r}`,role:l?"link":"button",onClick:p,...Ne(m),children:u??Vr(r,i)})})),Vr=(e,t)=>e||t?c("div",{className:"whitespace-pre",children:[t?o("div",{className:"font-light text-left text-xs",children:t}):null,o("div",{className:h("text-left",{"text-s -mt-3xs":Boolean(t)}),children:e})]}):null,Rr=d((({text:e,link:t})=>c(w,{size:"text-l",font:"font-light",color:"text-secondary-text",children:[e?o(Ae,{children:e}):null,t?o(Pr,{...t,ariaLabel:"условия передачи данных",children:t.text}):null]}))),zr=(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(ta,{...e}),o(Rr,{link:t})]}),In($a(e,Ha).error)]}):o(Rr,{text:"Нажимая кнопку, вы подтверждаете согласие с ",link:t}),o(Br,{className:"w-full @xl:w-auto",children:n?.text?n.text:"Отправить заявку"})]}),Dr={send:async function(e,t=!1){const{typeForm:n,region:l,phone:a="",email:r,birthday:i,desiredMeetingDate:s,inn:o,addressBranch:c,secondaryPhone:d="",bankEmpolee:m,applicationDate:h,serviceDirection:u,...p}=e,g=t&&"Юридическое лицо / ИП"!==u,x=`${qt}${g?"/lead":"/sendcorporatelead"}`,f={typeForm:n,...Jt(l,g),...Qt(r,g),...Gt(a),...Zt(s,"desiredMeetingDate"),...g?Zt(i):{inn:o},..."FEEDBACK"===n?{}:{addressBranch:c,bankEmpolee:m,applicationDate:h,...en(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}}},_r=d((({className:e,title:t,typeForm:n="",sections:l=[],button:a,link:s,endpoint:d,additionalParams:m,isContacts:u,data:p,...g})=>{const x=i((()=>l?.flatMap((e=>e?.inputs))||[]),[l]),f=i((()=>Ir(x,n)),[x,n]),b=i((()=>((e,t={})=>{const n=e.filter((e=>Boolean(e?.required&&e?.name))),l={...Ya,...t},a=n.some((e=>e.condition?.values)),r=Object.fromEntries(n.filter(Ka(l)).map((({name:e})=>[e,l[e??""]])));return e=>a?Object.fromEntries(n.filter(Ka(l)).filter(qa(e)).map((({name:e})=>[e,l[e??""]]))):r})(x)),[x]),y=fn(vr),v=sn(),w=r((async(e,t)=>{const l=Nr({...e,...m}),a=Boolean(await Dr.send(l,"lead"===d));y.open({ok:a,typeForm:n}),a&&tn({aspectsAttributes:p,aspects:v,ev:t})}),[n]),[,{field:k,onSubmit:S}]=gn(f,{resetOnSubmit:!0,formValidator:b,onSubmit:w}),C=(e=>e?.find((e=>"consentDataProcessing"===e?.name)))(x)?.name;return c(xn,{className:h("container space-y-m",e),title:t,...g,children:[c("form",{onSubmit:S,children:[l.map(((e,t)=>{return c("div",{className:h((l=e.columns,2===l?"@xl:grid-cols-2":""),"grid gap-x-m"),children:[ur(e.title),(e?.inputs||[])?.map(hr(k,{typeForm:n}))]},`section-${t}`);var l})),zr(C?k("consentDataProcessing"):void 0,s,a)]}),u?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(se,{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(se,{image:{icon:"MailIcon"},width:"24",height:"24"}),o("span",{children:"ved@rshb.ru"})]})]})]}):null]})})),$r=d((({title:e,description:t})=>{const n=Pe();return c("div",{className:"bg-white p-6xl py-20 flex gap-s flex-col @xl:items-center",children:[o(se,{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"})]})})),jr=e=>e%2!=0,Lr=d((({className:e,children:t})=>o("span",{className:h("inline-flex items-center text-start gap-s group-[]/btn-embedded:text-primary-main",e),children:t}))),Ar=d((({isUnfolded:e,...t})=>o(Z,{name:e?"ArrowUpIcon":"ArrowDownIcon",size:"small",iconVersion:"",...t}))),Or=d((({className:e,isUnfolded:t,short:n,label:l=(t?"Скрыть":"Развернуть"),embedded:a,...r})=>c(fr,{className:h({"w-full":!n},e),embedded:a,shape:n?"default":"square",role:"tab","aria-label":"Кнопка сворачивающейся секции",...r,children:[o(Lr,{children:l}),o(Ar,{isUnfolded:t,iconVersion:a?"color":""})]}))),Er=d((({className:e,role:t="tablist",children:n})=>o("div",{className:h(e),role:t,children:n})));const Fr=d((({className:e,isUnfolded:t,children:n})=>{const l=s(null),r=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:h("transition-max-h duration-300 overflow-hidden",{"max-h-0":Boolean(l.current||!t)}),role:"tabpanel","aria-label":"Сворачивающаяся секция",children:o("div",{className:e,ref:r,children:n})})})),Ur="space-y-px lg:space-y-0 lg:grid lg:grid-cols-12 gap-2xs",Wr=d((({topItemsCount:e=0,label:t,block:n,blocksToRender:l=[],...a})=>{const[r,i]=e>0?[l.slice(0,e),l.slice(e)]:[l,[]],[s,{toggle:d}]=on(!1);return c("div",{className:h("space-y-2xs",{hidden:!l.length}),children:[c("div",{className:h(Ur),children:[M(r,{...a.options,parent:n}),jr(r.length)?o(Ht,{className:"col-span-6",...a}):null]}),c(Er,{children:[c(Fr,{className:h(Ur),isUnfolded:s,children:[M(i,{...a.options,parent:n}),jr(i.length)?o(Ht,{className:"col-span-6",...a}):null]}),o(Or,{className:h("text-h4",{hidden:e<1}),label:t,isUnfolded:s,disabled:!i?.length,dataTheme:a.options?.page?.colorPalette,onClick:d})]})]})})),Hr=(e=!1)=>e?"border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider":"",Yr=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),Xr=10;function Kr(e,{sensitivity:t,rootRef:n}={}){const l=s(null),r=i((()=>({threshold:qr(t),root:n?.current})),[t,n?.current]);return a((()=>{if(!l.current)return;const t=new IntersectionObserver(e,r);return t.observe(l.current),()=>{t.disconnect()}}),[e,r]),l}function qr(e=0){const t=Math.round(e*Xr);return Array.from({length:t}).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const Gr=d((({className:e,style:t,idx:n,activeIndex:l,observerOptions:a,children:i,onIntersection:s})=>{const c=Kr(r((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:i})})),Zr=["min-w-full","lg:min-w-[50%]","lg:min-w-[33.3%]","lg:min-w-[25%]"],Jr=d((({className:e,itemClassName:t,containerRef:n,activeIndex:l,visibleItemCount:a=0,gap:i=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=r(((e,t)=>{const n=[...b.current||[]];n[e]=t,b.current=n,g&&g(n),x&&x(ei(n))}),[g,x]),v=a>0?i*Number(a)-1:0,N="vertical-list"===d,w="horizontal-list"===d,k={...w?Qr(c,v):{},...N?Yr(u):{},gap:`${i}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(Gr,{className:h(m,a?Zr[a-1]:"",{"h-full":N},t),style:w?Qr(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})),Qr=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),ei=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),ti={"horizontal-list":"w-6","vertical-list":"h-6"},ni=({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?ti[n]:"w-2 h-2 opacity-30"),role:"button","aria-hidden":!0,onClick:()=>t(a)},String(a)),li=({activeIndex:e,onClick:t})=>(n,l)=>{const a=l===e,r=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",i=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",r),children:[o("div",{className:i,children:n?.title}),o("div",{className:h("text-secondary-text font-light",s),children:n?.description})]},String(l))},ai=e=>e,ri=(e=ai)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),ii=ri(),si=(e=ai)=>ri((t=>-e(t))),oi=si(),ci=e=>t=>e.scrollWidth/t,di=e=>(t,n)=>{e.scrollBy({left:n*ci(e)(t),behavior:"smooth"})},mi=({itemCount:e,onVisibleIndicesChange:t})=>{const n=s(null),[a,i]=l([]),o=r((e=>{i((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?[si()(a),ri()(a)]:[-1,-1],m=c>0,h=d<e-1,u=r((()=>{var t;n.current&&(m?di(n.current)(e,-1):(t=n.current).scrollTo({left:t.scrollWidth,behavior:"smooth"}))}),[e,m]),p=r((()=>{n.current&&(h?di(n.current)(e,1):n.current.scrollTo({left:0,behavior:"smooth"}))}),[e,h]),g=r(((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}]},hi={"horizontal-list":"mx-auto mt-lg w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},ui=d((({className:e="",activeIndex:t=0,dotCount:n=0,listType:l="horizontal-list",version:i,navButtons:s=[],containerRef:c,containerScroll:d})=>{const m=Pe(),[u,p]=mi({itemCount:s.length}),g=pi(Boolean(s?.length));a((()=>{s?.length&&t>=0&&u?.current&&p.scrollTo(t,g)}),[t]);const x=r((e=>{e!==t&&c?.current&&d?.scrollTo(e,g)}),[c?.current]);return s?.length&&!m?o(Jr,{containerRef:u,snapAlign:"snap-start",itemClassName:"h-36 flex items-stretch w-screen",gap:8,children:s.map(li({activeIndex:t,onClick:x}))}):n?o("div",{className:h("flex gap-xs",hi[l],i?"group":"",e,{"pb-xl":s?.length&&m}),"data-ver":i,children:Array.from({length:n}).fill(null).map(ni({activeIndex:t,onClick:x,listType:l}))}):null})),pi=(e=!1)=>({behavior:e?"auto":"smooth"}),gi=d((({className:e,name:t,...n})=>o(fr,{className:h("w-12 h-12 min-w-12 min-h-12",e),shape:"round",...n,children:o(Z,{name:t,iconVersion:"",size:"small"})}))),xi=d((e=>o(gi,{name:"ArrowLeftIcon",version:"secondary",ariaLabel:"Пролистать влево",...e}))),fi=d((e=>o(gi,{name:"ArrowRightIcon",version:"secondary",ariaLabel:"Пролистать вправо",...e}))),bi="absolute top-0 bottom-0 z-40 hidden @lg:block w-20 pointer-events-none",yi=d((({className:e,scroll:t,hasBlur:n,arrowsPadded:l,isBottom:a})=>{const{canScrollLeft:r,canScrollRight:i,scrollLeft:s,scrollRight:d}=t,m=l&&!a;return c("div",{className:e,children:[n?vi(t):null,r?o(xi,{className:h(Ni(a),m?"left-1":"left-0"),onClick:s}):null,i?o(fi,{className:h(Ni(a),m?"right-1":"right-0"),onClick:d}):null]})})),vi=e=>c("div",{children:[e.canScrollLeft?o("div",{className:h(bi,"left-0 bg-opacity-from-white group-data-secondary:bg-none")}):null,e.canScrollRight?o("div",{className:h(bi,"right-0 bg-opacity-to-white group-data-secondary:bg-none")}):null]}),Ni=(e=!1)=>h("absolute z-40",e?"bottom-[56px]":"top-[calc(50%-24px)]"),wi=d((({className:e,version:t,gap:n=14,padding:l=16,visibleItemCount:a=1,listType:r="horizontal-list",snapAlign:i,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]=mi({itemCount:b,onVisibleIndicesChange:x}),[N]=v.visibleIndicesRange;return c("div",{className:h(e,"vertical-list"===r?"relative h-full":""),children:[o(Jr,{containerRef:y,activeIndex:N,visibleItemCount:a,gap:n,padding:l,listType:r,snapAlign:i,minHeight:s,onVisibleIndicesChange:v.handleVisibleIndicesChange,children:g}),o(yi,{className:h(!d&&"hidden lg:block"),scroll:v,hasBlur:m,arrowsPadded:u,isBottom:Boolean(f?.length)}),o(ui,{className:h(!p&&"lg:hidden"),activeIndex:N,dotCount:b,listType:r,version:t,navButtons:f,containerRef:y,containerScroll:v})]})})),ki=({blocksToRender:e,...t})=>o(wi,{visibleItemCount:0,gap:0,arrowsPadded:!0,children:M(e,{...t.options,parent:t.block,renderProps:(e,t,n)=>o("div",{className:h("relative min-w-80",Hr(!0)),children:T(e,t)},String(n))})}),Si=d((({blocksSection:e,blocksToRender:t=[],notFound:n,...l})=>{switch(e?.view){case"grid":return c("div",{children:[Ci(n,t),o(Wr,{...e,...l,blocksToRender:t})]});case"carousel":return c("div",{className:"relative",children:[Ci(n,t),ki({...l,blocksToRender:t})]});default:return null}})),Ci=(e,t)=>e&&!t.length?o($r,{...e}):null,Ii=e=>t=>t.reduce(((t,n,l)=>t.length?t.concat({...e,key:`sep-${l}`},n):[n]),[]),Ti=d((({value:e,onChange:t,items:n=[],multiple:l})=>n.map((n=>o(pa,{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))))),Bi=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,Ii(o("div",{className:"h-full w-px bg-gray hidden @4xl:block"}))(Object.entries(t).map(Mi(l)).filter(Boolean))]}),n?o("div",{children:o(fr,{type:"reset",className:"w-full @4xl:w-56 @4xl:ml-s",onClick:a,children:n?.text})}):null]}))),Mi=e=>([t,n])=>{const l=n?.type;return"array"===l?Pi(t,e)(n):null},Pi=(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(Ae,{size:"text-m",font:"font-medium",color:"text-primary-text",children:n.title})}):null,o(Ti,{items:l,multiple:!n?.single,...t(e)})]},e)},Vi=e=>e;function Ri(e,...t){return e.map(((e,n)=>[e,...t.map((e=>e[n]))]))}const zi=e=>null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length,Di=(e,t)=>Object.entries(e).map((([n,l])=>"number"==typeof l?Array.isArray(t[n])?((e,t)=>n=>zi(t[e])||zi(n[e])||n[e]?.includes(t[e]))(n,e):((e,t)=>n=>zi(t[e])||zi(n[e])||_i(t[e])<=_i(n[e]))(n,e):"object"==typeof l&&"min"in l&&"max"in l?((e,t)=>n=>zi(t[e])||zi(n[e])||_i(t[e]?.min)>=_i(n[e]?.min)&&_i(t[e]?.min)<=_i(n[e]?.max))(n,e):Array.isArray(l)?((e,t)=>n=>zi(t[e])||zi(n[e])||t[e]?.every((t=>n[e]?.includes(t))))(n,e):((e,t)=>n=>zi(t[e])||zi(n[e])||t[e]===n[e])(n,e))).every((e=>e(t))),_i=e=>Number(e||0),$i=(e,{block:t,page:n,normalize:l=Vi})=>{const a=t?.blocks||[],[r,s]=gn(e),o=i((()=>Ri(a,a.map((e=>Ot(e.content,n?.fallback))))),[a,n?.fallback]),c=r===e?a:((e,t)=>(n=Vi)=>e?.filter((([,e])=>Di(t,n(e)||{}))).map((([e])=>e)))(o,r)(l);return[r,{blocksToRender:c,blocksWithProps:o},s]},ji={},Li={},Ai=Ut((({className:e,filtrationSchema:t=ji,consumerField:n={},resetButton:l,...a})=>{const[,{blocksToRender:r},{field:i,reset:s}]=$i(Li,{block:a.block,page:a.options?.page}),d=o(Dn,{className:"w-64",label:n?.title,options:Oi(n),...i("consumer",{parse:({key:e})=>[e],format:([e]=[])=>Oi(n).find((t=>t.key===e))||{key:""}})});return c(g,{className:h(e),defaultPadding:"p-0",version:"transparent",...a,children:[o(Bi,{filtrationSchema:t,field:i,reset:s,children:c("div",{children:[d,o("div",{children:o(fr,{type:"reset",className:"mt-lg w-64",onClick:s,version:l?.version,children:l?.text})})]})}),o(Si,{blocksToRender:r,...a})]})}),{childrenTypes:["CarouselTariffsCard"],childSchema:e=>({...e?.filtrationSchema,...e?.consumerField?{consumer:e?.consumerField}:{}})}),Oi=e=>Ri(e.items?.enum||[],e.items?.enumNames||[]).map((([e,t])=>({key:e,text:t}))),Ei=(e=!1)=>e?"text-left":"text-center",Fi={"":"bg-main-divider group-data-secondary:bg-white/30",primary:"bg-main-divider",secondary:"bg-secondary-light",opacity:"bg-white/30"},Ui=d((({className:e,iconBgVersion:t="primary",size:n,icon:l,...a})=>{const r=`${n?.width??44}px`;return l?o("div",{className:h("rounded-icon object-fit flex justify-center items-center",Fi[t],e),style:{width:r,height:r},role:"figure",children:o(Z,{name:l,width:"54%",...a})}):null})),Wi=d((({className:e="",title:t,benefitList:n,...l})=>{const a=Pe();return c(g,{className:e,defaultPadding:"p-6xl",...l,children:[t?o(N,{headingType:"h3",as:"h2",className:Ei(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(Hi)}):null]})})),Hi=({label:e,description:t,__html:n,icon:l,isDotted:a=!1,iconBgVersion:r},i)=>c("div",{className:"flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]",role:"listitem",children:[l?.icon?o(Ui,{className:"shrink-0",iconBgVersion:r,...l}):null,l?.src?o(se,{className:"shrink-0",image:l}):null,e?c("div",{className:"@sm:h-full space-y-xs",children:[o(N,{headingType:"h6",children:e}),o(Ae,{size:"text-l",color:"text-secondary-text group-data-secondary:text-white/80",font:"font-light",children:t}),n?o(je,{__html:n,isDotted:a,itemSize:"list-s"}):null]}):null]},String(i)),Yi=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(Ae,{size:"text-h6",font:"font-normal",align:e,children:n}):null,t?o(se,{image:t,height:"180",className:"w-auto mx-auto"}):null,l?o(Ae,{size:"text-h6",font:"font-normal",align:e,children:l}):null]},String(a)),Xi=(e,t,n)=>o("div",{className:`grid gap-2xs ${Ki(t)}`,children:e.map(Yi(n))}),Ki=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},qi=d((({bonusBenefits:e,cardTextAlign:t="text-center",className:n="",columnsCount:l="4",subtitle:a,title:r,...i})=>c(g,{className:h("space-y-3xl",n),defaultPadding:"p-6xl",...i,children:[o(S,{defaultPadding:"",title:r,description:a,headlineVersion:"M"}),e?.length?Xi(e,l,t):null]}))),Gi={start:"justify-start",center:"justify-center",end:"justify-end"},Zi=d((({buttons:e,className:t="",align:n,...l})=>{const a=n&&h("flex",Gi[n]);return o(g,{className:h("!bg-transparent",a,t),defaultPadding:"p-0",...l,children:Xe(e)})})),Ji=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]}))),Qi="flex flex-col justify-between lg:flex-row gap-x-4xl gap-y-7 lg:gap-y-4xl",es="flex flex-col lg:w-1/2 gap-2xl",ts="flex flex-col gap-y-xl min-w-52",ns=d((({value:e,fractionDigits:t,fixed:n,prefix:l,postfix:a})=>o(Ae,{size:"text-h3",children:"number"==typeof e?[l,Ze(t,{fixed:n})(e),a].filter(Boolean).join(" "):e}))),ls=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(Ae,{size:"text-l",font:"font-light",color:l,children:t}):null,n?o(ns,{value:n,...a}):o(Ae,{size:"text-h3",children:"-"})]}))),as=(e,t)=>e?o(w,{size:"text-xs",font:"font-light",color:"text-secondary-text",children:e},String(t)):null,rs=d((({rate:e=0,title:t="Ставка",unit:n,fractionDigits:l=2,depositeName:a,isShowDepositeName:r,color:i="text-secondary-text"})=>c("div",{children:[o(Ae,{size:"text-l",font:"font-light",color:i,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:Ze(l,{fixed:!0})(e)}),n?o("span",{className:"text-7xl mt-5",children:n}):null]}),a&&r?o("div",{className:"absolute bottom-2 w-full text-left whitespace-nowrap",children:a}):null]})]}))),is=d((({title:e="Ставка"})=>c("div",{className:"space-y-s min-w-96",children:[o(Ae,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}),o(Z,{className:"w-10 h-auto lg:w-40",name:"PercentIcon"}),o("div",{className:"w-64",children:o(w,{size:"text-xl",font:"font-light",color:"text-primary-text",children:"Процентная ставка не найдена, выберите другие параметры"})})]}))),ss=({title:e="Ставка",rate:t=0,unit:n="%",fractionDigits:l=2,color:a="text-secondary-text",children:r,...i})=>t?c("div",{className:"flex flex-col",children:[o("div",{className:"hidden lg:block min-w-96",children:o(rs,{title:e,rate:t,unit:n,fractionDigits:l,color:a,...i})}),o(ls,{className:"lg:hidden",title:e,value:t,postfix:n,fractionDigits:l,fixed:!0,color:a,...i}),r]}):o(is,{title:e,...i}),os=({isShowItems:e=!0,step:t=1e3,postfix:n="₽",...l})=>o(ol,{items:e?[`От ${Ze(1)(l.min||0)} ${n}`,`До ${Ze(1)(l.max||0)} ${n}`]:[],step:t,...l}),cs={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},ds={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},ms=(e,t)=>{const{travelExpenseValue:n,restExpenseValue:l}=e,[a,r]=((e,t,n)=>{const{maxBonus:l=5e3,prefMonthsNum:a=cs.prefMonthsNum,prefTravelBonusRate:r=cs.prefTravelBonusRate,prefRestBonusRate:i=.01,travelBonusRate:s=.015,restBonusRate:o=.01}=e,c=Math.min(Math.round(r*t)+Math.round(i*n),l);return[c,c*a+Math.min(Math.round(s*t)+Math.round(o*n),l)*(12-a)]})(t||ds,n,l);return{...t,...e,monthBonus:a,yearBonus:r}},hs=Ut((({className:e="",title:t,calcSource:n,buttons:l,footnote:a,...r})=>{const[i,{field:s}]=gn({travelExpenseValue:6e3,restExpenseValue:6e3}),{minSumTravel:d,maxSumTravel:m,minSumOther:u,maxSumOther:p,monthBonus:g,yearBonus:x}=ms(i,n);return o(Ji,{className:e,title:t,...r,children:c("section",{className:h(Qi,e),children:[c("div",{className:es,children:[os({title:"Сумма покупок в категории путешествия, ₽",min:d,max:m,step:500,isShowItems:!1,...s("travelExpenseValue")}),os({title:"Сумма покупок в остальных категориях, ₽",min:u,max:p,step:500,isShowItems:!1,...s("restExpenseValue")})]}),o("div",{className:"mb-s",children:g>=0?ss({title:"Баллов за месяц",rate:g,fractionDigits:0,unit:"",color:"text-primary-text"}):null}),c("div",{className:ts,children:[x>=0?o(ls,{title:"Баллов за год",value:x,color:"text-primary-text"}):null,Xe(l,{isVertical:!0}),as(a)]})]})})})),us=Math.round(29.5),ps=(e,t=0)=>e?.sum?e.sum:t,gs=(e,t=0)=>e?.period&&e.period>=1&&e.period<=60?e.period:t,xs=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`,fs=({items:e,title:t,mobileTitle:n=t,orientation:l="horizontal",value:a,onChange:r,...i})=>c("div",{className:"grid gap-s whitespace-nowrap",children:[t?o("div",{className:"hidden @5xl:block",role:"radiogroup","aria-label":t,children:o(Ae,{color:"text-secondary-text",font:"font-light",children:t})}):null,n?o("div",{className:"@5xl:hidden",role:"radiogroup","aria-label":n,children:o(Ae,{color:"text-secondary-text",font:"font-light",children:n})}):null,o(ir,{orientation:l,items:e,value:e[a?0:1].id,onChange:t=>r&&r(t===e[0].id),...i})]}),bs=e=>fs({...e,items:[{id:"everyMonth",text:"Ежемесячно"},{id:"atEndTerm",text:"В конце срока"}]}),ys=" (c капитализацией)",vs=({income:e,finalSum:t,postfix:n="₽",buttons:l=[],footnotes:a=[],isCapitalization:r=!1})=>c("div",{className:ts,children:[o(ls,{title:`Доход в конце срока${r?ys:""}`,value:e,postfix:n,prefix:"+"}),o(ls,{title:`Сумма в конце срока${r?ys:""}`,value:t,postfix:n}),Xe(l,{isVertical:!0}),a?.map(as)]}),Ns=([e,t],n,l=[])=>n&&n[e]&&n[t]?{[e]:n[e],[t]:n[t]}:ws([e,t],l),ws=([e,t],n=[])=>({[e]:n.length?oi(n.filter((t=>"number"==typeof t[e])).map((t=>t[e]))):0,[t]:n.length?ii(n.filter((t=>"number"==typeof t[e])).map((e=>e[t]))):0}),ks=(e,[t,n],l)=>e>=l[t]&&e<=l[n],Ss={UL:"businessdepositrates",IP:"selfemployeddepositrates"};const Cs={minSum:1e3,maxSum:100000001,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,depositeName:"Депозит 'Стабильный'"},Is=(e,t)=>{const{daysValue:n,moneyValue:l,isPartialWithdrawal:a,isReplenished:r,isMonthlyInterestPayment:i}=e,s=r||a,o=n<90||n>730,c=function(e){const t=e?.rateType?Ss[e?.rateType]:"",{data:n}=Kn(t?`${qt}/depositrates/${t}`:null,$t);return Array.isArray(n)?n:[]}(t),d=c?.find((e=>i===e.isMonthlyInterestPayment&&Ts(s,e)&&ks(l,["minSum","maxSum"],e)&&ks(n,["minDays","maxDays"],e)))||Cs,{rate:m}=d,h=Bs(m,e),u=l+h,p=c||[Cs];return{...d,...ws(["minSum","maxSum"],p),...ws(["minDays","maxDays"],p),...e,isDisabledOperatingDeposit:o,income:h,finalSum:u}},Ts=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,Bs=(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)},Ms=Ut((({className:e="",title:t,buttons:n,footnote:l,bottomFootnote:a,isShowDepositeName:r,defaultParams:i,rateParams:s,...d})=>{const[m,{field:u}]=gn({moneyValue:ps(i,1e5),daysValue:gs(i,60),isReplenished:Boolean(i?.isReplenished),isPartialWithdrawal:Boolean(i?.isPartialWithdrawal),isMonthlyInterestPayment:Boolean(i?.isMonthlyInterestPayment)}),p=Is(m,s),{income:g,finalSum:x,rate:f,depositeName:b}=p;return o(Ji,{className:e,title:t,...d,children:c("section",{className:h(Qi,e),children:[c("div",{className:es,children:[os({title:"Сумма, ₽",min:p.minSum,max:p.maxSum,...u("moneyValue"),value:p.moneyValue}),(y={title:"Срок, дней",min:p.minDays,max:p.maxDays,...u("daysValue"),value:p.daysValue},o(ol,{items:[`От ${xs(y.min||0)}`,`До ${xs(y.max||0)}`],step:1,...y})),c("div",{className:"flex flex-col sm:flex-row gap-y-m gap-x-5xl",children:[Ps(p,u),bs({title:"Выплата процентов",orientation:"vertical",...u("isMonthlyInterestPayment"),className:"sm:flex-col"})]})]}),ss({rate:f,depositeName:b,isShowDepositeName:r}),vs({income:g,finalSum:x,buttons:n,footnotes:[l,a]})]})});var y})),Ps=(e,t)=>c("div",{className:"space-y-s",children:[o(Ae,{color:"text-secondary-text",font:"font-light",children:"Параметры"}),c("div",{className:"flex flex-col gap-y-lg sm:gap-y-s",children:[o(ta,{text:"Пополнение",disabled:e.isDisabledOperatingDeposit,...t("isReplenished"),value:e.isReplenished}),o(ta,{disabled:e.isDisabledOperatingDeposit,text:"Частичное снятие",...t("isPartialWithdrawal"),value:e.isPartialWithdrawal})]})]}),Vs=(e=[],t=!1)=>Rs([(e,t)=>e>t,(e,t)=>e?.minSum<t?.minSum],e?.filter((e=>t===Boolean(e?.isNewClient)))),Rs=(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]},zs=({min:e=0,max:t=0,availableMonths:n,...l})=>o(ol,{items:[`От ${Ds(e)}`,`До ${Ds(t)}`],step:1,...n?.length?{list:n}:{min:e,max:t},...l}),Ds=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`,_s=e=>fs({...e,className:"sm:flex-col",items:[{id:"annuity",text:"Аннуитетный"},{id:"differential",text:"Дифференцированный"}]}),$s=({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?.(ll(t?.[a],n.minMonths,n.maxMonths))},js=(e,t)=>{const{isAnnuity:n,moneyValue:l,monthsValue:a,moneyExtra:r}=t;if(0===e)return 0;if(n){const t=e/1200;return r?(l+r)*(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)},Ls={minSum:1e4,maxSum:5e6,minMonths:1,maxMonths:60,rate:0,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,isInsurance:!0},As=e=>Os({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&Os({...e,fieldKey:"isStateEmployee",viewSettingFieldKey:"isShowStateEmployee"})&&Os({...e,fieldKey:"isPensionClient",viewSettingFieldKey:"isShowPensionClient"})&&Os({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),Os=({row:e,userInputParams:t,paramsViewSettings:n,fieldKey:l,viewSettingFieldKey:a})=>!!n&&!n[a]||t[l]===e[l],Es=(e,t,n)=>{const{moneyValue:l,monthsValue:a}=e,r=t?.rateRows||[Ls],i=(({limitRows:e,userInputParams:t,paramsViewSettings:n})=>e?.find((e=>As({row:e,userInputParams:t,paramsViewSettings:n}))))({limitRows:t?.limitRows||[],userInputParams:e,paramsViewSettings:n}),{minSum:s,maxSum:o}=Ns(["minSum","maxSum"],i,r),{minMonths:c,maxMonths:d}=Ns(["minMonths","maxMonths"],i,r),m=(({rateRows:e=[],userInputParams:t,paramsViewSettings:n,moneyValue:l,monthsValue:a})=>e?.find((e=>As({row:e,userInputParams:t,paramsViewSettings:n})&&ks(l,["minSum","maxSum"],e)&&ks(a,["minMonths","maxMonths"],e)))||Ls)({rateRows:r,userInputParams:e,paramsViewSettings:n,moneyValue:l,monthsValue:a}),{rate:h}=m,u=js(h,e);return{...m,...e,minSum:s,maxSum:o,minMonths:c,maxMonths:d,moneyValue:l,monthsValue:a,monthlyPayment:u}},Fs=(e={})=>Boolean(Object.values(e).filter((e=>e)).length),Us={isSalaryClient:"isSalaryClient",isStateEmployee:"isStateEmployee",isPensionClient:"isPensionClient",isInsurance:"isInsurance",moneyValue:"maxSum"},Ws=Ut((({className:e,title:t,calcSource:n,buttons:l,footnote:r,paramsViewSettings:i,defaultParams:s,onChange:d,...m})=>{const u=(p=n?.rateRows,Rs([(e,t)=>e<t,(e,t)=>e?.maxSum>t?.maxSum],p));var p;const[g,{field:x}]=gn({moneyValue:ps(s,2e5),monthsValue:gs(s,us),isAnnuity:Boolean(s?.isAnnuity),isInsurance:Boolean(s?.isEnableInsurance),isSalaryClient:Boolean(s?.isEnableSalaryClient),isPensionClient:Boolean(s?.isEnablePensionClient),isStateEmployee:Boolean(s?.isEnableStateEmployee)},{onChange:d}),f=Es(g,n,i),b=_s({title:"Тип платежа",orientation:"vertical",...x("isAnnuity")}),{onChange:y}=x("moneyValue"),{onChange:v}=x("monthsValue");return a((()=>{y&&y(ll(g.moneyValue,f.minSum,f.maxSum))}),[f.minSum,f.maxSum]),a((()=>{v&&v(ll(g.monthsValue,f.minMonths,f.maxMonths))}),[f.minMonths,f.maxMonths]),a((()=>{!Fs(s)&&u&&$s({field:x,defParams:u,calcParams:f,map:Us,monthsValue:"minMonths"})}),[n,s]),o(Ji,{className:e,title:t,...m,children:c("section",{className:h(Qi,e),children:[c("div",{className:es,children:[os({title:"Сумма кредита, ₽",step:500,min:f.minSum,max:f.maxSum,...x("moneyValue"),value:f.moneyValue}),zs({title:"Срок кредита, месяцев",min:f.minMonths,max:f.maxMonths,...x("monthsValue"),value:f.monthsValue}),Hs({...f,...i},x),o("div",{className:"sm:hidden",children:b})]}),c("div",{className:h(ts,"@4xl:w-1/2"),children:[o(ls,{title:"Полная стоимость кредита",value:n?.totalLoanCost}),o(ls,{title:"Ставка",value:f?.rate,fractionDigits:2,postfix:"%"}),o(ls,{title:"Ежемесячный платёж",value:f.monthlyPayment,postfix:"₽"}),o("div",{className:"hidden sm:block mb-lg",children:b}),Xe(l,{isVertical:!0}),as(r)]})]})})})),Hs=(e,t)=>c("div",{className:"flex flex-col gap-y-2xl",children:[e.isShowSalaryClient?o(ta,{text:"Получаю зарплату на счёт\nв Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient,className:"whitespace-pre-line sm:whitespace-normal"}):null,e.isShowStateEmployee?o(ta,{text:"Работаю в бюджетной организации",...t("isStateEmployee"),value:e.isStateEmployee}):null,e.isShowPensionClient?o(ta,{text:"Получаю пенсию на карту Россельхозбанка",...t("isPensionClient"),value:e.isPensionClient}):null,e.isShowInsurance?o(ta,{text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null]}),Ys=e=>{const t=[...e];t.sort((([e],[t])=>e-t));let n=1;for(;n<t.length;){const[e,l]=t[n-1],[a,r]=t[n];l>=a?t.splice(n-1,2,[e,Math.max(l,r)]):n++}return t},Xs={minSum:5e4,maxSum:100000001,minMonths:2,maxMonths:10,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0,isReplenish:!1,isWithdrawn:!1,type:""},Ks=(e,t,n)=>{const{moneyValue:l,monthsValue:a}=e,r=t?.[0]?Zs(t[0].minMonths,t[0].maxMonths):0,i=!n?.isShowMonthlyInterestPayment,s=!n?.isShowRemoteRegistration,o=!n?.isShowReplenish,c=!n?.isShowWithdrawn,d=!n?.isShowNewClient,m=t?.find((t=>[Gs({row:t,userInputParams:e,paramKey:"isReplenish",isExclude:o}),Gs({row:t,userInputParams:e,paramKey:"isWithdrawn",isExclude:c}),Gs({row:t,userInputParams:e,paramKey:"isMonthlyInterestPayment",isExclude:i}),Gs({row:t,userInputParams:e,paramKey:"isRemoteRegistration",isExclude:s}),d||e?.isNewClient===t?.isNewClient,ks(l,["minSum","maxSum"],t),ks(a||r,["minMonths","maxMonths"],t)].every(Boolean)))||Xs,{rate:h}=m,u=qs(h,e),p=l+u,g=t||[Xs];return{...m,...ws(["minSum","maxSum"],g),...ws(["minMonths","maxMonths"],g),availableMonths:Ys(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:r,income:u,finalSum:p}},qs=(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)},Gs=({row:e,userInputParams:t,paramKey:n,isExclude:l})=>l||t[n]===e[n],Zs=(e,t)=>e+Math.round((t-e)/2),Js=(e="rub")=>"rub"===e,Qs=(e,t)=>{const{minMonths:n,maxMonths:l}=ws(["minMonths","maxMonths"],lo(t,e?.currency)),a=e.monthsValue||Math.round((n+l)/2);return{monthsValue:ll(a,n,l)}},eo=(e,t)=>{const{minSum:n,maxSum:l}=ws(["minSum","maxSum"],lo(t,e?.currency)),a=e.moneyValue||n;return{moneyValue:ll(a,n,l)}},to=(e,t)=>({currency:e?.currency??t?.map((e=>e.currency))?.[0]}),no=e=>{const t=Js(e?.currency?.key);return{isReplenish:t&&e?.isReplenish,isWithdrawn:t&&e?.isWithdrawn}},lo=(e,t)=>{const{rates:n}=e?.find((e=>e?.currency.key===t?.key))??{};return n??e?.[0]?.rates},ao=(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?fs({title:"Пополнение",...t("isReplenish"),value:e.isReplenish,orientation:"vertical",items:[{id:"withReplenish",text:"С пополнением"},{id:"withoutReplenish",text:"Без пополнения"}],disabled:n}):null,e.isShowWithdrawn?fs({title:"Снятие",...t("isWithdrawn"),value:e.isWithdrawn,orientation:"vertical",items:[{id:"wthDrawn",text:"Со снятием"},{id:"noWithdrawn",text:"Без снятия"}],disabled:n}):null]}),ro(e.isShowReplenish||e.isShowWithdrawn),c("div",{className:"flex gap-lg",children:[e.isShowMonthlyInterestPayment?bs({title:"Выплата процентов",...t("isMonthlyInterestPayment"),value:e.isMonthlyInterestPayment,orientation:"vertical"}):null,e.isShowRemoteRegistration?(l={title:"Оформление",...t("isRemoteRegistration"),value:e.isRemoteRegistration,orientation:"vertical"},fs({...l,items:[{id:"remote",text:"Дистанционно"},{id:"office",text:"Офис Банка"}]})):null]}),ro(e.isShowNewClient),e.isShowNewClient?o(ta,{text:"Новый вкладчик",...t("isNewClient")}):null]});var l},ro=(e=!1)=>e?o("div",{className:"border-b border-main-divider w-full"}):null,io={isMonthlyInterestPayment:"isMonthlyInterestPayment",isRemoteRegistration:"isRemoteRegistration",isReplenish:"isReplenish",isWithdrawn:"isWithdrawn",moneyValue:"minSum"},so={text:"₽",key:"rub"},oo=Ut((({className:e,title:t,calcSource:n,buttons:l=[],footnote:i="",paramsViewSettings:s,defaultParams:d,...m})=>{const{rows:u}=n??{},p=u?.map((e=>e.currency))??[so],g=r((e=>t=>e?{...t,...no(t),...eo(t,e),...Qs(t,e),...to(t,e)}:t)(u),[u]),[x,{field:f}]=gn({moneyValue:ps(d,2e4),monthsValue:gs(d,1),isMonthlyInterestPayment:Boolean(d?.isMonthlyInterestPayment),isRemoteRegistration:Boolean(d?.isRemoteRegistration),isReplenish:Boolean(d?.isReplenish),isWithdrawn:Boolean(d?.isWithdrawn),isNewClient:Boolean(d?.isNewClient),currency:so},{normalizer:g}),b=f?.("currency")?.value??so,y=f?.("isNewClient")?.value,v=lo(u,b),N=Ks(x,v,s),{rate:w,income:k,finalSum:S,type:C=""}=N,I=r((()=>{$s({field:f,defParams:Vs(v,y),calcParams:N,monthsValue:"minMonths",map:io})}),[f,u]);a((()=>{!Fs(d)&&v&&I()}),[d,u]);const T=w===Vs(v,y)?.rate;return o(Ji,{className:e,title:t,...m,children:c("section",{className:h(Qi,e),children:[c("div",{className:es,children:[c("div",{className:"flex gap-m",children:[os({className:"w-full",title:`Сумма, ${b?.text}`,min:N.minSum,max:N.maxSum,...f("moneyValue"),value:N.moneyValue,postfix:b?.text,step:co(b?.key)}),u&&u?.length>1?o(Ln,{label:"Валюта",options:p,...f("currency")}):null]}),zs({title:"Срок, месяцев",min:N.minMonths,max:N.maxMonths,availableMonths:N.availableMonths,...f("monthsValue"),value:N.monthsValue}),ao({...N,...s},f)]}),ss({rate:w,children:ho(I,T)}),vs({income:k,finalSum:S,buttons:[...l,mo(n?.buttons,C)],footnotes:[i],postfix:b?.text,isCapitalization:f("isMonthlyInterestPayment").value})]})})})),co=(e="")=>Js(e)?1e3:100,mo=(e=[],t="")=>{const{type:n,...l}=e.find((e=>e.type===t))??{};return l},ho=(e,t=!1)=>t?null:o(fr,{type:"button",version:"secondary",onClick:e,children:"Показать максимальную ставку"}),uo=e=>po({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&po({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),po=({row:e,userInputParams:t,paramsViewSettings:n,fieldKey:l,viewSettingFieldKey:a})=>!!n&&!n[a]||t[l]===e[l],go={minSum:1e4,maxSum:3e6,minSumOld:0,maxSumOld:25e5,minSumExtra:0,maxSumExtra:5e5,minMonths:13,maxMonths:60,rate:0,isExtraMoney:!1,isSalaryClient:!1,isInsurance:!0},xo=(e,t,n)=>{const{moneyValue:l,monthsValue:a,oldMonthlyPayment:r,moneyExtra:i}=e,s=t?.rateRows||[go],o=(({limitRows:e,userInputParams:t,paramsViewSettings:n})=>e?.find((e=>uo({row:e,userInputParams:t,paramsViewSettings:n}))))({limitRows:t?.limitRows||[],userInputParams:e,paramsViewSettings:n}),{minSum:c,maxSum:d}=Ns(["minSum","maxSum"],o,s),{minMonths:m,maxMonths:h}=Ns(["minMonths","maxMonths"],o,s),u=(({rateRows:e=[],userInputParams:t,paramsViewSettings:n,moneyValue:l,monthsValue:a,oldMonthlyPayment:r,moneyExtra:i})=>e?.find((e=>uo({row:e,userInputParams:t,paramsViewSettings:n})&&ks(l+i,["minSum","maxSum"],e)&&ks(r,["minSumOld","maxSumOld"],e)&&ks(i,["minSumExtra","maxSumExtra"],e)&&ks(a,["minMonths","maxMonths"],e)))||go)({rateRows:s,userInputParams:e,paramsViewSettings:n,moneyValue:l,monthsValue:a,oldMonthlyPayment:r,moneyExtra:i}),{rate:p}=u,g=js(p,e),x=e.oldMonthlyPayment-g;return{...u,...e,minSum:c,maxSum:d,minMonths:m,maxMonths:h,moneyValue:l,monthsValue:a,oldMonthlyPayment:r,moneyExtra:i,monthlyPayment:g,benefit:x}},fo=Ut((({className:e="",title:t,calcSource:n,buttons:l,footnote:a,paramsViewSettings:r,...i})=>{const[s,{field:d}]=gn({isAnnuity:!0,isInsurance:!0,isSalaryClient:!1,isExtraMoney:!1,moneyValue:7e5,oldMonthlyPayment:0,monthsValue:48,moneyExtra:0}),m=xo(s,n,r),u=_s({title:"",mobileTitle:"Тип платежа",orientation:"vertical",...d("isAnnuity")});return o(Ji,{className:e,title:t,...i,children:c("section",{className:h(Qi,e),children:[c("div",{className:es,children:[os({title:"Остаток долга в других банках, ₽ ",step:500,min:m.minSum,max:m.maxSum-m.maxSumExtra,...d("moneyValue"),value:m.moneyValue}),os({title:"Ежемесячный платёж в других банках, ₽",step:500,min:m.minSumOld,max:m.maxSumOld,...d("oldMonthlyPayment"),value:m.oldMonthlyPayment}),zs({title:"Новый срок кредита, месяцев",min:m.minMonths,max:m.maxMonths,...d("monthsValue"),value:m.monthsValue}),bo({...m,...r},d),m.isExtraMoney?os({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(ts,"@4xl:w-1/2"),children:[o(ls,{title:"Полная стоимость кредита",value:n?.totalLoanCost}),o(ls,{title:"Ставка",value:m?.rate,fractionDigits:2,postfix:"%"}),o(ls,{title:"Ежемесячный платёж",value:m.monthlyPayment,postfix:"₽"}),m.benefit>0?o(ls,{title:"Выгода в месяц",value:m.benefit,postfix:"₽"}):null,o("div",{className:"hidden sm:block mb-lg",children:u}),Xe(l,{isVertical:!0}),as(a)]})]})})})),bo=(e,t)=>c("div",{className:"space-y-lg sm:space-y-s",children:[e.isShowSalaryClient?o(ta,{text:"Получаю зарплату на счёт в Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient}):null,e.isShowInsurance?o(ta,{text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null,o(ta,{text:"Получить дополнительную сумму",...t("isExtraMoney"),value:e.isExtraMoney})]}),yo=d((e=>{const{onChange:t,min:n,max:l,defaultValue:a="0",fractionDigits:i=0,...s}=e,c=nl(e,{normalize:(e=a)=>n&&l?String(ll(Number(vo(e)),n,l)):vo(e),format:Ze(i)}),d=r((e=>t&&t(vo(e))),[t]);return o(Sn,{onChange:d,...s,...c})})),vo=(e="")=>e.replaceAll(",",".").replace(/[^\d.]/g,"").replace(/([^.]*\.[^.]*)\./,"$1"),No=d((e=>o(yo,{...e,fractionDigits:2,children:o("div",{className:"absolute right-4 bottom-4",children:o(Ae,{size:"text-xl",font:"font-light",children:"₽"})})})));function wo(e,t){for(const[n,l]of e.entries())null!=l?t.setItem(n,l):t.removeItem(n)}function ko(e,t){return wo(e,t),wo(t,e),e.bus.watch((({type:e,event:n})=>{null!=n?t.setItem(e,n):t.removeItem(e)}))}class So{storage;bus;get size(){return this.storage?.length??0}constructor(e,t=new xe){this.storage=e,this.bus=t}hasItem(e){return Boolean(this.storage?.getItem(String(e)))}getItem(e){const t=this.storage?.getItem(String(e))??null;try{return JSON.parse(String(t))}catch(e){return null}}entries(){return Array.from({length:this.size},((e,t)=>{const n=String(this.storage?.key(t));return[n,this.getItem(n)]}))}setItem(e,t){null!==t?this.storage?.setItem(String(e),JSON.stringify(t)):this.storage?.removeItem(String(e)),this.bus?.subject(e,t)}removeItem(e){this.storage?.removeItem(String(e)),this.bus?.subject(e,null)}}class Co{bus;store=new Map;get size(){return this.store.size}constructor(e=new xe){this.bus=e}hasItem(e){return this.store.has(e)}getItem(e){return this.store.get(e)}entries(){return this.store.entries()}setItem(e,t){this.store.set(e,t),this.bus.subject(e,t)}removeItem(e){this.store.delete(e),this.bus.subject(e,null)}}const Io={};function To(e,t=Io){const n=s(null),o=function(){const[,e]=l(0);return r((()=>e((e=>(e+1)%65536))),[])}();return a((()=>e.bus.watch((e=>{n.current?.has(String(e.type))&&o()}))),[e,o]),i((()=>new Proxy(t,{get:(t,l)=>(n.current||=new Set,n.current.add(l),e.getItem(l)),has:(t,l)=>(n.current||=new Set,n.current.add(l),e.hasItem(l)),set:(t,n,l)=>(e.setItem(n,l),!0),deleteProperty:(t,n)=>(e.removeItem(n),!0)})),[e])}const Bo=new Co;function Mo(){return To(Bo)}ko(Bo,new So(globalThis?.sessionStorage));const Po={private:"p2p/registerP2P",business:"b2c/registerB2C"},Vo=({onClose:e,errorCode:t,errorMessage:n})=>{const l=t?`Код ошибки - ${t}`:"Пожалуйста, повторите позднее";return o(yr,{className:"my-6xl max-w-lg w-full min-h-fit mx-auto",onClose:e,children:c("div",{className:"flex flex-col gap-lg items-center rounded-md space-x-m",children:[o(se,{image:{icon:"ResponseFailIcon",iconVersion:"normal"},width:"136",height:"136"}),o(S,{className:"w-full",title:"Ошибка перевода",description:l,headlineVersion:"XS",isEmbedded:!0}),n?c("div",{className:"bg-secondary-dark rounded-xl px-4 pt-4 pb-8 grid gap-4 grid-cols-12",children:[c("div",{className:"col-span-8",children:[" ",n]}),o("div",{className:"col-span-4",children:o(se,{image:{icon:"ResponseFailIcon",iconVersion:"normal"}})})]}):null]})})},Ro=e=>{const t=fn(Vo),n=Mo(),l=nn(),a="private"===e?"p2p":"b2c";return r((async({amount:r})=>{const i=await(async(e,t)=>{const n=nn(),l={amount:String(t),currency:"643",returnUrl:`${n.origin}/p2p/success`,failUrl:`${n.origin}/p2p/failed`,language:"ru"},a=`${qt}/payment/${Po[e]}`;try{const e=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(l)});return e.ok?await e.json():null}catch(e){return null}})(e,r);(e=>Boolean(e?.formUrl)&&Boolean(e?.orderId))(i)&&(n.transaction={orderId:i.orderId,type:a,url:l.href},l.assign(`${a}/?formUrl=${encodeURIComponent(i.formUrl)}`)),(e=>Boolean(e?.errorMessage)&&0!==e?.errorCode)(i)&&t.open({errorCode:i.errorCode,errorMessage:i.errorMessage})}),[e])},zo={amount:1500},Do=d((({className:e="",title:t="Укажите сумму перевода",label:n="Сумма перевода",button:l,formType:r="private",...i})=>{const[s,{setValue:d}]=on(!1),m=Ro(r),[{amount:u},{field:p,onSubmit:x}]=gn(zo,{onSubmit:m});return a((()=>{d(u<=0)}),[u]),c(g,{className:h("flex flex-col items-center",e),defaultPadding:"p-6xl",...i,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",onSubmit:x,children:[o(No,{valid:!s,label:n,max:3e5,min:1,...p("amount",{parse:Number,format:String})}),o("input",{type:"hidden",name:"amount",value:u}),l?.text?o(Br,{className:"w-full mt-lg",disabled:s,children:l.text}):null]})]})})),_o=({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(Z,{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})]}),$o="relative h-full",jo={small:"lg:min-w-64",normal:"lg:min-w-80 xl:min-w-96",big:"lg:min-w-[515px]"},Lo=({noCardBorder:e,cardSize:t="normal",isNavButtons:n=!1,...l})=>{const{blocks:a}=l.block||{},r=a?.some(Eo),i=n?{defaultPadding:"p-6xl pb-m"}:{};return P({...l,renderProps:(n,l,a)=>c("div",{className:Ao(n,{someCardsHighlighted:r}),children:[T(n,l,{className:Oo(n,{someCardsHighlighted:r,showBorder:!e,cardSize:t}),...i,blockIndex:a}),Eo(n)?_o({className:"absolute top-0 -right-4 z-40"}):null]},String(a))})},Ao=(e,{someCardsHighlighted:t})=>h($o,t&&(Eo(e)?"pt-3xl":"pt-3xl sm:pt-16")),Oo=(e,{someCardsHighlighted:t,showBorder:n,cardSize:l="normal"})=>h($o,"min-w-80",jo[l],t&&(Eo(e)?"pt-3xl sm:pt-16":"pt-3xl"),Hr(n),n&&"h-full"),Eo=e=>e?.content&&"isHighlighting"in e.content&&e.content.isHighlighting,Fo=Ut((({className:e,visibleItemCount:t=1,noCardBorder:n,arrowsPadded:l=!0,isGap:a=!0,cardSize:r="normal",isNavButtons:i=!1,...s})=>o(g,{className:h(e),defaultPadding:"p-6xl",...s,children:o(wi,{className:h("relative max-w-full"),visibleItemCount:t,snapAlign:"snap-start",gap:a?16:0,padding:0,arrowsPadded:l,navButtons:i?Uo(s?.block?.blocks):[],hasBlur:!0,children:Lo({noCardBorder:n,cardSize:r,isNavButtons:i,...s})})})),{childrenTypes:["CarouselCard","CarouselCatalogCard","CarouselRecommendationCard","CarouselTariffsCard","RichTextBlock","ProductBlock"],childSchema:()=>({isHighlighting:{title:"Выделить карточку",type:"boolean"}})}),Uo=e=>e?.map((e=>{const t=e?.content;return{title:t?.title,description:t?.additionalDescription||t?.description}}))??[],Wo="z-10 border border-solid w-full h-full",Ho=h(Wo,"absolute hidden @xl:block border-transparent"),Yo=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(Ho,"top-9 right-12 bg-green-dark")}),o("div",{className:h(Ho,"top-6 right-8 bg-green")}),o("div",{className:h(Ho,"top-3 right-4 bg-green-light")}),c("div",{className:h(Wo,"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}),Xe([l],{className:"mt-m sm:mt-6xl sm:justify-center",isVertical:!0})]})]})}))),Xo={black:"bg-black",white:"bg-white"},Ko=d((({className:e="",title:t,description:n,image:l,price:a,button:r,colors:i=[],align:s="text-left",padding:d,...m})=>o(g,{className:h("flex flex-col justify-left",e),defaultPadding:"p-2xl",...m,children:c(ze,{className:"h-full",padding:d,title:o(S,{title:t,description:n,headlineVersion:"XS",isEmbedded:!0,align:s}),rightImage:l?.src?o(se,{className:"flex justify-center align-center mb-xl",image:l}):null,buttons:Xe([r],{buttonClassName:"w-full self-end"}),children:[i?.length?c("div",{className:"flex text-secondary-text mb-m",children:[o("div",{className:"mr-xs",children:o(Ae,{size:"text-s",align:"text-left",font:"font-light",children:"Цвета:"})}),i.map(qo)]}):null,a?c(Ae,{size:"text-h3",align:"text-left",children:[a," ₽"]}):null]})}))),qo=(e,t)=>o("figure",{className:`w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${Xo[e]}`},String(t)),Go=d((({icon:e,...t})=>{const n=ye(),{text:l,href:a,target:r,onClick:i}=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:r,onClick:i,children:c("div",{className:"flex flex-col items-center gap-3 break-words max-w-[150px]",children:[e?o(se,{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})),Zo=d((({className:e,additionalDescription:t,description:n,links:l,title:a,...r})=>o(g,{defaultPadding:"p-5xl",className:h("overflow-hidden",e),...r,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?Jo(l):null]})}))),Jo=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(Go,{...e},String(t))))}),Qo=(e,t)=>e?.map((({aspectName:e,params:n})=>({aspectName:e,params:"mindboxEvent"===e?{...n,eventJson:t}:n}))),ec=d((({className:e="",href:t,target:n,onClick:l,data:a,children:r})=>{const i=ye()({href:t,target:n,onClick:l});return o(t?"a":"div",{className:h("block",e),...t?i:{},role:t?"link":"none",...Ne(a),children:r})})),tc=[{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"}}],nc=d((({className:e="",media:t,showButtonText:n,stretched:a,version:r="white",children:i})=>{if(!t?.length)return null;const[s,d]=l(),m=t?.map((e=>{const{href:t,icon:l,text:a}=e,{iconMapped:i}=(e=>tc.find((({origins:t})=>t?.some((t=>e?.includes(t)))))||{})(t),o=Ye(l)?l:i,c=n?{text:a}:{text:""},m=e?.icon?.iconVersion||"color";return!s&&a&&d(!0),{...e,...c,icon:{...o,iconVersion:m},version:e?.version??r}})),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},lc(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:Xe(m,{className:ac(s??!1,a??!1,n),buttonClassName:u})}),i?o(Ae,{size:"text-s",font:"font-light",color:"text-secondary-text",children:i}):null]})})),lc=(e=!1)=>e?"flex-1 @lg:flex-initial justify-center":"",ac=(e,t,n=!1)=>h(e||t?"basis-full":"",t&&(!n||!e)?"flex-nowrap":""),rc=d((({className:e,padding:t,description:n,additionalDescription:l,href:a,icon:r,isDotted:i,__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(ec,{href:a,target:m,className:"h-full",data:Qo(v),children:c(ze,{className:"h-full",defaultPadding:"p-2xl",padding:t,insetTitle:o(S,{title:u,description:n,headlineVersion:"XS",isEmbedded:!0,align:p}),...at(Ye(r)?o(se,{image:r}):null,f),buttons:d.length?o(nc,{media:d,stretched:!0,showButtonText:!0,version:N?.version}):null,isImageAlwaysOnRight:b,isImageSecondary:y,imageAlign:"center",children:[o(He,{benefits:x}),s?o(je,{__html:s,isDotted:i,itemSize:"list-s"}):null,ic(l,p)]})})}))),ic=(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,sc=new xe,oc=(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(Ae,{size:"text-m",color:"text-secondary-text",children:n})}):null,l?o("div",{className:"mt-2xs",children:o(Ae,{size:"text-xl",color:"text-primary-text",children:l})}):null,a?.length?o("div",{className:"text-primary-main",children:Xe(a)}):null]},String(t))},cc=d((({className:e="",title:t,align:n="text-center",icon:s,button:d,visibleCellsCount:m=1,cardCells:u=[],options:p,data:x,...f})=>{const b=i((()=>u.map(oc)),[u]),[y,v]=i((()=>m>0?[b.slice(0,m),b.slice(m)]:[b,[]]),[m,b]),[w,k]=l(!1);a((()=>sc.subscribe("fold",(e=>{e&&p?.parent&&e.parent===p?.parent&&k(e.isUnfolded)}))),[p?.parent]);const S=r((()=>{sc.fire("fold",{type:"fold",isUnfolded:!w,parent:p?.parent})}),[w,p?.parent]);return c(g,{className:h("flex flex-col",e),defaultPadding:"p-2xl",...f,children:[o(se,{className:"self-center",image:s}),t?o(N,{className:h("pt-xs",n),headingType:"h5",title:t}):null,d?.text?o(Ie,{className:"w-full mt-m mb-lg",...d}):null,v.length?c(Er,{children:[c("div",{children:[y,o(Fr,{isUnfolded:w,children:v})]}),u.length>=m?o(Or,{className:"mt-m",label:w?"Скрыть":"Подробнее о тарифе",isUnfolded:w,embedded:!0,data:x,onClick:S}):null]}):o("div",{children:y})]})})),dc=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?mc(n):null,t?.length?mc(t):null]}))),mc=e=>o("div",{className:"flex gap-5xl grow basis-0",children:e.map(((e,t)=>hc({column:e,i:t})))}),hc=({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:Xe([l])})]},String(a))))},`col-${String(t)}`):null,uc=e=>"number"==typeof e?.minMonths&&"number"==typeof e?.maxMonths,pc=(e,t)=>Array.from({length:t-e+1},((t,n)=>e+n)),gc=1e9,xc={sum:{min:1e4,max:gc},period:3},fc=Ut((({className:e,filtrationSchema:t={},resetButton:n,sumInput:l,periodInput:a,...r})=>{const[,{blocksToRender:i,blocksWithProps:s},{field:d,reset:m}]=$i(xc,{block:r.block,page:r.options?.page,normalize:e=>({...e,period:bc(e)})}),u=s.map((([,e])=>e?.paramsSource?.rows?.[0]?.rates)),p=yc(u);return c(g,{className:h("space-y-2xs",e),defaultPadding:"p-0",version:"transparent",...r,children:[o(Bi,{filtrationSchema:t,resetButton:n,field:d,reset:m,children:c("div",{className:"@4xl:max-w-xs space-y-lg",children:[o(No,{label:l?.title,min:500,max:gc,...d("sum",{parse:e=>({min:Number(e),max:gc}),format:({min:e})=>String(e)})}),o(ol,{title:a?.title,items:["От 3 мес","До 5 лет"],list:p,...d("period")})]})}),o(Si,{blocksToRender:i,...r})]})}),{childrenTypes:["ProductBlock"],childSchema:e=>({...e?.filtrationSchema||{},paramsSource:{type:"object",title:"Адрес справочника"}})}),bc=e=>jt((e?.paramsSource?.rateRows||[]).filter(uc).flatMap((e=>pc(e.minMonths,e.maxMonths)))),yc=e=>jt(e.flatMap((e=>e||[])).filter(uc).flatMap((e=>pc(e.minMonths,e.maxMonths)))).sort(((e,t)=>e-t))||[],vc=[{key:"10"},{key:"50"},{key:"100"}],Nc=({itemCount:e,onItemCountChange:t})=>{const n=r((({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(Dn,{className:"min-w-20",onChange:n,value:{key:String(e)},options:vc,iconVersion:"black"})]})},wc="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",kc=(e,t)=>{const{currentPage:n,onPageChange:l,totalPages:a}=e,r=t+1;return r===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:r},String(t)):1!==r&&r!==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))(r,n,a)?o("div",{onClick:()=>l(r),className:wc,"aria-label":`Страница ${r}`,children:r},String(t)):null},Sc={width:"24",height:"24"},Cc=({currentPage:e,onPageChange:t,totalPages:n})=>{const l=i((()=>Array.from({length:n}).fill({currentPage:e,onPageChange:t,totalPages:n})),[n,e]),a=r((()=>{e>1&&t(e-1)}),[e]),s=r((()=>{e<n&&t(e+1)}),[e,n]),d=r((()=>t(1)),[]),m=r((()=>t(n)),[n]);return c("div",{className:"flex gap-m items-center",children:[o("div",{onClick:a,children:o(Z,{name:"ArrowLeftIcon",iconVersion:"black",imageClassName:Ic(1===e),...Sc})}),c("div",{className:"flex @lg:gap-2xs",children:[e>1?o("div",{onClick:d,className:wc,"aria-label":"Страница 1",children:"1"}):null,e>3?o("div",{className:"py-m @lg:px-s",children:"..."}):null,l.map(kc),e<n-2?o("div",{className:"py-m @lg:px-s",children:"..."}):null,e<n?o("div",{onClick:m,className:wc,"aria-label":`Страница ${n}`,children:n}):null]}),o("div",{onClick:s,children:o(Z,{className:"rotate-180",name:"ArrowLeftIcon",iconVersion:"black",imageClassName:Ic(e===n),...Sc})})]})},Ic=e=>e?"opacity-20":"cursor-pointer hover:opacity-60",Tc=({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(Cc,{currentPage:e,onPageChange:t,totalPages:n}),l&&a?o(Nc,{itemCount:l,onItemCountChange:a}):null]}),Bc=d((({className:e,value:t,autoFocus:n,onChange:l,onFocus:a,placeholder:i="Поиск по сайту"})=>{const s=r((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(se,{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",wn),value:t,type:"text",name:"search-bar-input",placeholder:i,autoFocus:n,onChange:s,onFocus:a})]})})),Mc=d((({field:e,onClearFilter:t,filtrationState:n})=>c("div",{className:"grid grid-cols-12 mb-3xl @lg:space-x-xl",children:[o(Bc,{className:"col-span-12 @lg:col-span-4 mt-auto",placeholder:"Поиск",...e("query")}),o(Al,{className:"col-span-12 @lg:col-span-3 mt-4 @lg:mt-0",label:"Период от",maxDate:n.endDate,...e("startDate")}),o(Al,{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(fr,{type:"reset",className:"w-full",version:"secondary",onClick:t,children:"Очистить"})})]}))),Pc=d((({title:e,timestamp:t,publicId:n})=>{const l=ye(),{href:a}=l({href:`${qt}/depository/${n}/file`});return c("div",{className:"flex gap-3 items-center py-lg border-gray border-opacity-50 border-b",children:[o(Ui,{className:"shrink-0",icon:"DocDownloadIcon",iconVersion:"black"}),c("div",{className:"flex flex-col gap-x-6xl lg:flex-row lg:items-center",children:[t?o(Ae,{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)})),Vc=`${qt}/depository`,Rc={startDate:void 0,endDate:void 0,query:""},zc=Ut((({className:e,...t})=>{const[n,a]=l(0),[i,s]=l(10),[d,{field:m,reset:u}]=gn(Rc),{totalPages:p=0,items:x=[]}=(({size:e,page:t,query:n,startDate:l,endDate:a})=>{const r=l?Xt(l,!0):"",i=a?Xt(a,!0):"",s=new URLSearchParams(Vc);s.set("page",String(t)),s.set("size",String(e)),s.set("query",n),s.set("timestampStart",r),s.set("timestampEnd",i);const o=`?${s.toString()}`,{data:c}=Kn(Vc+o,$t);return{items:c?.content,totalPages:c?.totalPages}})({size:i,page:n,...d}),f=r((e=>a(e-1)),[]),b=r((e=>{i!==e?(s(e),a(0)):s(e)}),[]);return c(g,{className:h(e,"container p-6xl"),...t,children:[o(Mc,{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(Ae,{size:"text-m",color:"text-secondary-text",children:"Дата"})}),o("span",{className:"col-span-8 @lg:col-span-10 hidden @lg:block",children:o(Ae,{size:"text-m",color:"text-secondary-text",children:"Тема"})})]}),x.length?x.map((e=>o(Pc,{...e},String(e.publicId)))):o($r,{title:"Ничего не найдено",description:"Попробуйте очистить фильтры"}),o(Tc,{currentPage:n+1,onPageChange:f,totalPages:p,itemCount:i,onItemCountChange:b})]})]})})),Dc=e=>"Image"===e?.contentType&&e?.image?o(se,{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,_c=d((({className:e="",title:t,description:n,error:l,button:a,...r})=>c(g,{className:h("flex flex-col justify-center items-center",e),defaultPadding:h("p-6xl"),version:"transparent",...r,children:[o("div",{className:"flex justify-center",children:Dc(l)}),o(S,{title:t,description:n,headlineVersion:"XL",isEmbedded:!0,className:"mb-2xl last:mb-0"}),a?.text?o(Ie,{version:a?.version,text:a?.text,...a}):null]}))),$c=new Co;function jc(e){return To($c,e)}ko($c,new So(globalThis?.localStorage));const Lc=`${qt}/region`;function Ac(e="Москва"){return jc().location??{name:e}}function Oc(e="Москва"){const t=jc(),n=r((async()=>{if(!t.location){const n=await _t(Lc);t.location=n??{name:e}}}),[t,e]);return Kn(Lc,n),t}var Ec;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD",e.CNY="CNY"}(Ec||(Ec={}));const Fc=new Intl.NumberFormat("ru",{style:"currency",currency:Ec.RUB}),Uc=e=>e?Fc.format(e):"",Wc="text-m font-light text-secondary-text ",Hc=`${Wc} text-left`,Yc=`${Wc} pl-5xl text-center`,Xc=`${Wc} pl-5xl text-right`,Kc={USD:"DollarIcon",EUR:"EuroIcon",CNY:"ChineseYuanRenminbiIcon"},qc=d((({className:e,exchangeCurrencyItems:t})=>c("table",{className:h("h-fit w-full",e),children:[o("thead",{children:c("tr",{children:[o("th",{className:Hc,children:o(Ae,{size:"text-m",children:"Валюта"})}),o("th",{className:Yc,children:o(Ae,{size:"text-m",children:"Купить"})}),o("th",{className:Xc,children:o(Ae,{size:"text-m",children:"Продать"})})]})}),o("tbody",{children:t.map(Gc)})]}))),Gc=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(se,{image:{icon:Kc[t]},width:"24",height:"24"}):null,o(Ae,{size:"text-h6",children:t})]})}),o("td",{className:"pt-m pl-5xl text-center",children:o(Ae,{size:"text-h6",children:Uc(e?.saleExchangeRate)})}),o("td",{className:"pt-m pl-5xl text-right",children:o(Ae,{size:"text-h6",children:Uc(e?.buyExchangeRate)})})]},t)},Zc={icon:"GpsIcon"},Jc=d((({className:e="",address:t})=>c("div",{className:h("flex gap-s w-full justify-between @sm:justify-center",e),children:[o(Ui,{...Zc,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:"Курс указан для заданного офиса"})]})]}))),Qc=(e,t,n)=>{const l=Number(ed(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)},ed=e=>e.replace(/[^\d.,]/g,"").replace(",",".");function td(e){if(!e)throw new Error("Value should be fulfilled");return e}const nd=e=>t=>{const[,n]=td(e.find((([e])=>e(t))));return n(t)},ld=e=>nd(e.map((([e,t])=>[e,()=>t])));ld.if=e=>new ad(void 0,e);class ad{parent;predicate;unit;get entry(){return[td(this.predicate),td(this.unit)]}constructor(e,t,n){this.parent=e,this.predicate=t,this.unit=n}if(e){return new ad(this,e)}then(e){return new ad(this.parent,this.predicate,e)}else(e){return nd([...rd(this),[()=>!0,e]])}}const rd=e=>[...e?.parent?rd(e.parent):[],e.entry],id=e=>ld([[e=>e.value!==Ec.RUB&&e.oppositeValue!==Ec.RUB,()=>e.handleConvert(e.value,Ec.RUB)],[e=>e.value===Ec.RUB&&e.oppositeValue===Ec.RUB,()=>e.handleConvert(e.value,Ec.USD)],[e=>e.value===Ec.RUB&&e.oppositeValue===Ec.RUB,()=>e.handleConvert(e.value,Ec.CNY)],[()=>!0,()=>e.handleConvert(e.value)]])(e)?.();function sd(e){const{placeholder:t,rates:n,selected:l,value:a,setValue:r,setSelected:i}=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:r}),s.length?o(Dn,{className:"absolute right-0",isBorder:!1,onChange:e=>i(e.key),options:s,value:d}):null]})}const od=d((({className:e="",currencyRatesBuy:t,currencyRatesSell:n,button:a})=>{const[i,s]=l({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||Ec.RUB,selectBuy:n?.[0]?.currency?.currency||Ec.USD}),d=r((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:[sd({placeholder:"Хочу продать",rates:n,selected:i.selectSell,setSelected:cd(i,d,n),value:i.inputSell,setValue:e=>md(d,n)(e,i.selectSell,i.selectBuy)}),sd({placeholder:"Получу",rates:t,selected:i.selectBuy,setSelected:dd(i,d,t),value:i.inputBuy,setValue:e=>hd(d,t)(e,i.selectBuy,i.selectSell)})]}):null,a?.text?o(Ie,{text:a.text,version:a?.version,...a}):null]})})),cd=(e,t,n)=>l=>{t({selectSell:l}),id({value:l,oppositeValue:e.selectBuy,handleConvert:(l=e.selectSell,a=e.selectBuy)=>{md(t,n)(e.inputSell,l,a)}})},dd=(e,t,n)=>l=>{t({selectBuy:l}),id({value:l,oppositeValue:e.selectSell,handleConvert:(l=e.selectBuy,a=e.selectSell)=>hd(t,n)(e.inputBuy,l,a)})},md=(e,t)=>(n,l,a)=>{e({inputSell:ed(n),selectBuy:a});const r=t.find((e=>e.currency?.currency===a))?.buyExchangeRate||t.find((e=>e.currency?.currency===l))?.buyExchangeRate;r&&e({inputBuy:String(Qc(n,r,l===Ec.RUB)||"")})},hd=(e,t)=>(n,l,a)=>{e({inputBuy:ed(n),selectSell:a});const r=t.find((e=>e.currency?.currency===a))?.saleExchangeRate||t.find((e=>e.currency?.currency===l))?.saleExchangeRate;r&&e({inputSell:String(Qc(n,r,l===Ec.RUB)||"")})},ud=`${qt}/exchangerates`;const pd=d((({className:e="",title:t="Курсы обмена валют",button:n,...l})=>{const a=function(e){const t=e?.code||"000",{data:n}=Kn(ud+`?regionCode=${t}`,$t);return n||{}}(Ac()),r=gd(a?.exchangeRate?.currencies),i=r.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:Ec.RUB}});const s=r.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:Ec.RUB}}),o(g,{className:h("box-border min-h-80",e),...l,children:o(ze,{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(qc,{className:"mb-xl",exchangeCurrencyItems:r}):null,o(Jc,{address:a?.address})]}),o(od,{className:"grow w-1/2",currencyRatesBuy:i,currencyRatesSell:s,button:n})]})})})})),gd=e=>e?.filter((e=>[1,2,3].includes(e?.currency?.id)))||[],xd=d((({className:e="",items:t})=>{const n=ye();return o("ul",{className:h("flex flex-col gap-s w-full",e),children:t?.map(fd(n))})})),fd=e=>({dataFooter:t,...n},l)=>{const{text:a,href:r,target:i,onClick:s}=e(n);return a?o("li",{className:"list-none",children:o("a",{className:"hover:text-primary-main font-light",role:"link",href:r,target:i||"_self",onClick:s,...Ne(t),children:a||null})},String(l)):null},bd=e=>t=>!t.displayArea||e.includes(t.displayArea.toLowerCase()),yd=["all","footer"],vd=d((({className:e,navigationItems:t})=>{const n=ye();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(bd(yd)).map(n).map(Nd)})})),Nd=(e,t)=>{const{text:n,items:l=[],href:a,target:r="_self",onClick:i,dataFooter:s}=e,d=l.filter(bd(yd));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:r,onClick:i,...Ne(s),children:n}),d?o(xd,{items:d}):null]},String(t))},wd=d((({className:e="",items:t=[]})=>t?.length?o("div",{className:h("space-y-m",e),children:t.map(kd)}):null)),kd=(e,t)=>c("div",{className:"space-y-m",children:[o("div",{children:o(Ae,{size:"text-l",font:"font-medium",children:e?.title})}),o("div",{className:"space-y-m",children:e.items?.map(Sd)})]},String(t)),Sd=(e,t)=>c("div",{className:"space-y-2xs",children:[o("div",{children:Cd(e.type,e.text)}),o(w,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e.description})]},String(t)),Cd=(e,t="")=>{switch(e){case"tel":return o("a",{className:"text-primary-text hover:text-primary-main no-underline",href:`tel:${Id(t)}`,children:o(Ae,{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})}},Id=e=>e.replaceAll(/\D/g,""),Td=d((({className:e="",index:t,text:n,...l})=>{const a=ye(),{href:r,target:i,onClick:s}=a(l);return o("a",{className:h("text-secondary-text",e),href:r,target:i,onClick:s,children:n||`Документ ${t}`})})),Bd=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(Ae,{size:"text-l",font:"font-normal",children:t})}),n.map(((e,t)=>o(Td,{index:t,className:"text-l font-light lg:max-w-[292px]",...e},String(t))))]}):null}))),Md="w-full lg:w-52",Pd={width:"118",height:"24"},Vd={"bg-white":"color",transparent:"white"},Rd={"bg-white":"text-primary-main",transparent:"text-white"},zd=(e,t,n)=>o(se,{image:t?.src?t:{icon:t?.icon||"LogoIcon",iconVersion:Vd[e]},className:Rd[e],width:n?.width,height:n?.height}),Dd={"bg-white":"text-primary-text",transparent:"text-white"},_d=d((({className:e,href:t="/",logo:n,children:l,targetBlank:a,bgColor:r="bg-white",showTitle:i=!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??"Россельхозбанк",...Ne(s),children:[zd(r,n?.image,Pd),i?l??o("div",{className:"ml-s",children:o(Ae,{font:"font-medium",color:Dd[r],size:"",children:n?.title??"Россельхозбанк"})}):null]})));function $d(e,t,n=300){a((()=>{const t=globalThis.setTimeout(e,n);return()=>{globalThis.clearTimeout(t)}}),t)}const jd=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 r=0;for(let i=0;i<e.length;i++){const s=Math.max(0,i-n),o=Math.min(i+n,t.length-1);for(let n=s;n<=o;n++)l[i]||a[n]||e[i]!==t[n]||(r++,l[i]=!0,a[n]=!0)}return{m:r,s1Matches:l,s2Matches:a}}(e,t);if(0===n)return 0;const r=function(e,t,{s1Matches:n,s2Matches:l}){let a=0;for(let r=0,i=0;r<e.length;r++){if(!n[r])continue;let s=i;for(;s<t.length;s++)if(l[s]){i=s+1;break}e[r]!==t[s]&&a++}return a}(e,t,{s1Matches:l,s2Matches:a}),i=(n/e.length+n/t.length+(n-r/2)/n)/3,s=i>.7?.1*function(e,t){let n=0;for(;e[n]===t[n]&&n<4;)n++;return n}(e,t):0;return i+s*(1-i)};const Ld=(e,t)=>(n,l)=>{for(const[a,r]of l)n.set(a,e(n.get(a)||t,r));return n},Ad=(e=[])=>e.reduce(((e,t)=>e+t),0),Od=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),Ed=e=>t=>e.map((([e,n])=>[jd(t)(e),n])).filter((([e])=>e>=.8)).map((([e,t])=>Ud(t,e))).reduce(Ld(Math.max,0),new Map),Fd=e=>t=>{return Ri(t,t.map((({title:e})=>e)).map((e=>t=>{const n=Od(t||"");return n.length?Ad(e.map((e=>ii(n.map(jd(e)))))):0})(e))).sort((e=>(t,n)=>-e(t,n))((n=([,e])=>e,(e,t)=>n(e)-n(t)))).map((([e])=>e));var n},Ud=(e,t)=>new Map(e.map((e=>[e,t]))),Wd=({basePathList:e,initialQuery:t=""})=>{const[n,r]=l(t||"");a((()=>{null!=t&&r(t)}),[t]);const{data:i}=Kn(e?.length?e:null,Hd),[s,o]=l(null);return $d((()=>{i&&o(i.map((e=>t=>{const{corpus:n,dictionary:l}=t||{};if(!(e&&n?.length&&l&&Object.keys(l).length))return[];const a=Od(e);if(!a.length)return[];const r=Object.entries(l),i=[...a.map(Ed(r)).reduce(Ld(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*a.length)).map((([e])=>n[e]));return Fd(a)(i)})(n)))}),[i,n]),[s,{value:n,onChange:r}]},Hd=async(...e)=>(await Promise.allSettled(e.map((e=>_t(_(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),Yd=d((({initialQuery:e,navigationItems:t,onClose:n})=>{const l=i((()=>t?.map((e=>e.href||"/"))),[t]),[a,r]=Wd({basePathList:l,initialQuery:e}),s=i((()=>Xd(t)(a)),[t,a]);return o(yr,{head:o(Bc,{autoFocus:!0,...r}),onClose:n,children:o(vd,{navigationItems:s})})})),Xd=e=>t=>e?.length&&t?.length?Ri(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:_("/",t)})))}))):[],Kd=d((({className:e,search:t,...n})=>{const[a,i]=l(""),s=r((()=>i("")),[]),d=fn(Yd,n),m=r((e=>{i(e),qd(e)&&d.open({initialQuery:e,onClose:s})}),[s,d]);return c("div",{className:h("relative",e),role:"search",children:[o(Bc,{value:a,placeholder:t?.placeholder,onChange:m}),o(br,{className:"absolute top-0 right-0 sm:hidden",onClose:s})]})})),qd=e=>e&&e.length>=3,Gd=(e,t)=>{const{logo:n}=e??{},{dataHeader:l,dataFooter:a,...r}=n??{};return c("div",{className:"flex items-stretch gap-3xl",children:[o(_d,{className:Md,logo:r,data:a,showTitle:!1}),o(Kd,{className:"grow",navigationItems:t,...e})]})},Zd=d((({className:e="",index:t,...n})=>{const l=ye(),{href:a,target:r,text:i,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:r,onClick:s,children:i||`Документ ${t}`})})),Jd=d((({className:e="",links:t,license:n})=>c("div",{className:h("@container space-y-lg",e),children:[n?o("div",{children:o(Ae,{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(Zd,{index:t,...e},String(t))))}):null]}))),Qd=Ut((({className:e,footer:t,...n})=>{const{navigationItems:l}=n.options?.page?.navigation??{},a=n.options?.page?.common??{},{documents:r,relatedEnterprises:i,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:[Gd(a,l),c("div",{className:"flex flex-col lg:flex-row items-center @lg:items-stretch gap-lg lg:gap-6xl ",children:[o(vd,{navigationItems:l}),o("div",{className:"border-t border-main-divider lg:hidden w-full"}),c("div",{className:h(Md,"flex flex-col shrink-0 overflow-hidden space-y-xl"),children:[o(wd,{items:s}),u?o(Ie,{className:"w-full",version:"primary",...u}):null,d.map(((e,t)=>o(nc,{media:e?.links??[],showButtonText:!1,stretched:!0,children:e?.title},String(t)))),x.map(((e,t)=>o(Pr,{className:"text-s font-light",...e},`${e.href}_${t}`)))]})]}),o(Bd,{title:m,links:i}),o(Jd,{links:r,license:p})]})})),em=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?tm(l):null]}))),tm=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=>nm(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:lm(e)}),c("div",{className:"text-s",children:[o(Ae,{size:"text-s",font:"font-light",color:"text-primary-text",children:e.text})," ",o(Ae,{size:"text-s",font:"font-light",color:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},nm=(e,t)=>e.month?.map(((e,n)=>o("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${n}`))),lm=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(se,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),am=Ut((({className:e,title:t,button:n,regionSource:a,data:r,...i})=>{const[s,d]=l({key:""}),m=a?.regions??[],u=m?.find((e=>e.name===s.key))?.href;return o(g,{className:e,defaultPadding:"p-6xl",...i,children:c("div",{className:"container space-y-m",children:[t?o(N,{headingType:"h3",title:t,className:"@xl:text-center"}):null,m?o(Ln,{label:"Ваш регион",placeholder:"Выберите регион",isSearch:!0,options:m.map((({name:e=""})=>({key:e,text:e}))),value:s,onChange:d}):null,u?o("div",{className:"text-center",children:o(Pr,{className:h("w-full @xl:w-auto"),href:u,target:"_blank",version:n?.version??"primary",data:Qo(r,s?.key),children:n?.text?n.text:"Перейти"})}):null]})})}));function rm(e=[]){const t=V(),n=Array.from(e.entries()).filter((([,e])=>im(t)(e)));return n.find((([,e])=>im(t,!0)(e)))??n[n.length-1]??[]}const im=(e,t=!1)=>({href:n})=>{if(!n)return!1;const l=E(sm(e)(n));return t?l===E(n):l.startsWith(E(n))},sm=e=>t=>{const n=te(ee.SITE_URL);return L(t)?e.href:_(n,e.pathname)},om=d((({className:e="",items:t,activeItem:n,ariaLabel:l="Меню"})=>{const[i,{setFalse:d,toggle:m}]=on(!1),u=yn(d),p=s(null),g=r((({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`)}}),[i]);return bn(globalThis,"resize",(()=>g({isOpened:i,buttonRef:u,menuRef:p}))),a((()=>{g({isOpened:i,buttonRef:u,menuRef:p})}),[i]),c("div",{className:h(i?"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:!i}),"aria-hidden":!i,children:dm(t,n)})]})})),cm=d((({isActive:e,...t})=>{const n=ye(),{text:l,href:a,target:r,onClick:i}=n(t);return o("a",{className:h("text-l font-light pb-m hover:text-primary-main",{"text-primary-main":e}),href:a,target:r,onClick:i,role:"link",...Ne(t?.data),children:l})})),dm=(e,t)=>e?.map(((e,n)=>o(cm,{isActive:e===t,...e},e?.text??String(n)))),mm={default:"w-6 h-6",large:"w-12 h-12"},hm=d((({className:e,isRounded:t,buttonSize:n="default",isGrayBg:l=!1,disabled:a,ariaLabel:r="Меню второго уровня",image:i,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":`${mm[n]} text-primary-text hover:text-primary-main`,"group-data-transparent:text-white",e),type:"button",disabled:a,"aria-label":r,onClick:c,...Ne(s),children:o(se,{image:i,className:h("h-full",{"bg-main-divider/20 rounded-full":t}),imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0"})}))),um=e=>globalThis[e],pm=(e,t)=>{const n=document.getElementById(t);if(n){const t=um(e);return t?Promise.resolve(t):new Promise((t=>{n.addEventListener("load",(()=>{t(um(e))}))}))}return new Promise(((n,l)=>{const a=document.createElement("script");a.src=t,a.async=!0,a.id=t,a.addEventListener("load",(()=>{n(um(e))})),a.addEventListener("error",(e=>{l(e)})),document.head.appendChild(a)}))};const gm="chatbot",xm="text-page__btn-chat",fm={personal:"//chat.mes.rshb.ru/assets/js/webchat_rshb",business:""},bm=d((({chat:e="personal",iconVersion:t,className:n,ariaLabel:l="Чат",version:r})=>{const i=(e=>{a((()=>globalThis.localStorage?.setItem("webchat-keep-open",String(Date.now()))),[]);const t=fm[e??""];return n=>{if(t)if("personal"!==e)pm(gm,t);else{const e=n.target;e?.classList.contains(xm)||e?.classList.add(xm),document.getElementById("webchat-js-container:webchat_rshb")||pm(gm,t)}}})(e);return o(hm,{className:n,image:{icon:"HeadphonesIcon",iconVersion:t},ariaLabel:l,onClick:i,buttonSize:"large",isGrayBg:!0,version:r})})),ym=d((({className:e="",active:t,dataItemName:n,children:l,data:a,...r})=>{const i=ye(),{href:s,target:d,text:m,onClick:u}=i(r);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,...Ne(a),children:[o("span",{className:vm(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]})})),vm=(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"),Nm=d((({observerOptions:e,onVisibilityChange:t,children:n,className:l,...a})=>{const i=Kr(r((e=>{if(!e.length||!t)return;const n=e[e.length-1];t(n.isIntersecting)}),[t]),e);return o("span",{ref:i,className:l,role:"menuitem",children:o(ym,{...a,children:n})})})),wm={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"},km=d((({version:e,text:t,mobileText:n,...l})=>{const a=Pe()?n:t;return a?o(Ie,{className:h("py-s px-lg font-light whitespace-nowrap",wm["transparent"===e?"transparent":"default"]),...l,children:a}):null})),Sm=d((({subItems:e=[],version:t,internetBankButton:n,dropdownMenuAriaLabel:a,chatBotAriaLabel:r})=>{const d="transparent"===t?"white":"black",[,m]=rm(e),[h,u]=l(e.length),p=e.slice(h),g=s(null),x={rootRef:g},f=i((()=>e.map(((e,t)=>e=>{u(e?Cm(t):Im(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(Nm,{className:h-1<t?"invisible":"",active:e===m,observerOptions:x,onVisibilityChange:f[t],data:e.dataHeader,...e},String(t))))}),p.length?o(om,{items:p,activeItem:m,ariaLabel:a}):null,z.CHAT_BOT?o(bm,{version:t,iconVersion:d,chat:z.CHAT_BOT,ariaLabel:r}):null,o(km,{version:t,...n})]})})),Cm=e=>t=>Math.max(t,e+1),Im=e=>t=>Math.min(t,e),Tm=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(Ae,{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(Bm,{...e},String(t))))})]}):null,Bm=d((({icon:e,...t})=>{const n=ye(),{text:l,target:a,href:r,onClick:i}=n(t);return c("div",{className:"flex gap-s items-center",children:[e?o(se,{image:e}):null,l?o("a",{className:"hover:text-primary-hover",href:r,target:a,onClick:i,children:o(Ae,{size:"text-l",font:"font-light",color:"text-primary-text",children:l})}):null]})})),Mm=(e,t)=>n=>n.name?o(ec,{href:`/branches/${n.slug}`,className:"mb-xs sm:mb-2xs hover:text-primary-hover",onClick:()=>t?.(n),data:Qo(e,n.name),children:o(Ae,{size:"text-l",font:"font-light",children:n.name})},String(n.id)):null,Pm=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(wn,"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"})]}))),Vm=d((({defaultLocation:e})=>{const t=Ac(e),n=ye(),{href:l}=n({href:`/branches/${t.slug}`});return t?o("div",{className:"mb-s",children:c(w,{size:"text-l",color:"text-primary-text",children:["Сейчас выбран:",o(ec,{href:l,className:"inline mx-2xs text-primary-main",children:t.name})]})}):null})),Rm=d((({foreignOffices:e,branches:t,onClose:n})=>{const a=Oc(t?.default),[s,d]=l(""),m=Va(),h=i((()=>Dm(m).sort(((e,t)=>e.name.localeCompare(t.name)))),[m]),u=i((()=>((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,zm)),[h]),p=r((e=>{a.location=e,n?.()}),[a,n]);return c(yr,{className:"pb-20",head:c("div",{children:[o(Ae,{size:"text-h4",color:"text-primary-text",children:"Выберите филиал"}),o(Vm,{defaultLocation:t?.default}),o(Pm,{onSearch:d,searchTerm:s})]}),onClose:n,children:[s&&s.length>=3?o("div",{children:h.filter((({name:e})=>e&&jd(e.toLowerCase())(s.toLowerCase())>=.8)).map(Mm(t?.dataSelect,p))}):o("div",{className:"columns-1 sm:columns-3 md:columns-4 lg:columns-5",children:Array.from(u.entries()).map((g=p,x=t?.dataSelect,([e,t])=>c("div",{className:"break-inside-avoid mb-2xl w-56",children:[o("div",{className:"mb-s",children:o(Ae,{size:"text-h6",children:e})}),t.map(Mm(x,g))]},e)))}),Tm(e)]});var g,x})),zm=e=>e.name?.charAt(0)??"",Dm=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()??""}))),_m=d((({className:e="",active:t,flat:n,children:l,data:a,...r})=>{const i=ye(),{href:s,target:c,text:d,onClick:m}=i(r);return o("a",{className:h($m(t,n),e),href:s,target:c,onClick:m,rel:"noopener noreferrer","aria-label":`Ссылка на ${d}`,...Ne(a),children:o("span",{suppressHydrationWarning:!0,className:jm(t,n),children:d||l})})})),$m=(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}),jm=(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"),Lm=d((({className:e,version:t,...n})=>{const l="transparent"===t?"white":"black",a=Ac(n?.branches?.default),i=fn(Yd,n),s=fn(Rm,n),d=r((()=>i.open({})),[i]),m=r((()=>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(_m,{className:"whitespace-nowrap text-ellipsis overflow-hidden",flat:!0,href:"#",text:a?.name,data:Qo(n?.branches?.dataClick,a?.name??""),onClick:m}):null,n?.officesAtms?.href?o(_m,{className:"whitespace-nowrap",flat:!0,...n.officesAtms}):null,o(hm,{image:{icon:"LoupeIcon",iconVersion:l},ariaLabel:n?.search?.ariaLabel??"Поиск",onClick:d,data:n?.search?.data})]})})),Am=d((({observerOptions:e,onVisibilityChange:t,children:n,className:l,...a})=>{const i=Kr(r((e=>{if(!e.length||!t)return;const n=e[e.length-1];t(n.isIntersecting)}),[t]),e);return o("span",{ref:i,className:l,role:"menuitem",children:o(_m,{...a,children:n})})})),Om=d((({navigationItems:e=[],activeTopItem:t,dropdownMenuAriaLabel:n,version:a,headerData:r,search:d,bgColor:m,logo:h})=>{const[u,p]=l(e.length),g=e.slice(u),x=s(null),f={rootRef:x},b=i((()=>e.map(((e,t)=>e=>{p(e?Em(t):Fm(t))}))),[e]),{dataFooter:y,dataHeader:v,...N}=h??{};return c("div",{className:"flex items-center justify-between",children:[o(_d,{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(Am,{className:u-1<n?"invisible":"",active:e===t,observerOptions:f,onVisibilityChange:b[n],data:e.dataHeader,...e},String(n))))}),g.length?o(om,{className:"mx-xs",items:g,activeItem:t,ariaLabel:n}):null,o(Lm,{version:a,className:"ml-auto",search:d,navigationItems:e,...r})]})})),Em=e=>t=>Math.max(t,e+1),Fm=e=>t=>Math.min(t,e),Um={"bg-white":"primary",transparent:"transparent"},Wm=["all","header"],Hm=Ut((({className:e,bgColor:t="bg-white",logo:n={},version:l=Um[t],portal:a,header:r={},...i})=>{const{common:s,navigation:d}=Xm(i?.options?.page),{navigationItems:m}=d,{logo:u={}}=s,[,p]=rm(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,...i,children:c("div",{className:"container",children:[o("div",{className:"whitespace-nowrap",children:o(Om,{activeTopItem:p,navigationItems:m?.filter(bd(Wm)),version:l,headerData:{...r,...d},search:s.search,bgColor:t,logo:f})}),o("div",{className:h("mt-s h-px bg-main-divider",Ym(l))}),p?.items?.length&&o(Sm,{subItems:p?.items?.filter(bd(Wm)),version:l,internetBankButton:x})]})})})),Ym=e=>"transparent"===e?"opacity-30":"",Xm=e=>({navigation:e?.navigation??{},common:e?.common??{}}),Km=(e=!1)=>e?{}:{padding:"p-0"},qm={XXL:"gap-6xl",XL:"gap-5xl",L:"gap-3xl",M:"gap-m",S:"gap-xs",XS:"gap-2xs","":""},Gm=Ut((({className:e="",padding:t="p-0",gap:n="XS",isInnerPadding:l=!0,version:a="transparent",isTheme:r=!1,isCardBorder:i,...s})=>o(g,{className:h("relative","grid grid-cols-12",qm[n],e),padding:t,version:a,isTheme:r,...s,children:P({...s,extraProps:{...Km(l),className:Hr(i)}})})),{childrenTypes:{exclude:["HorizontalLayout"]}}),Zm=d((e=>{const{className:t,align:n,image:l,...a}=e,r=n?h("flex",Gi[n]):"";return o(g,{className:h(r,t),defaultPadding:"p-0",...a,children:o(se,{image:l})})})),Jm=(e,t=0)=>{const{itemCount:n,visibleItemCount:a}=e,[i,s]=l(t),o=r((()=>s((e=>Math.min(e+1,n-1)))),[n]),c=r((()=>s((e=>Math.max(e-1,0)))),[n]),d=a?n>a&&i<n-a:i<n-1,m=i>0;return[i,{inc:o,dec:c,canInc:d,canDec:m,isScrollAvailable:m||d}]},Qm=({className:e,btnClass:t,canDec:n,canInc:l,dec:a,inc:r})=>n||l?c("div",{children:[n?o(xi,{className:h("absolute z-40",t[0],e),onClick:a}):null,l?o(fi,{className:h("absolute z-40",t[1],e),onClick:r}):null]}):null,eh=d((({className:e="",cards:t=[],button:n})=>{const[a,i]=l(0),s=r((e=>i(e)),[]),d=t.length,[m,h]=Jm({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?th({activeIndex:m,cards:t,selectedCardIndex:a,onClick:s}):null,Qm({...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(Ie,{className:"w-60 text-center",version:"primary",...n,href:g})]})}));function th({activeIndex:e,cards:t,selectedCardIndex:n,onClick:l}){const a=460*e,r=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 ${r}`,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(se,{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?nh("страховая сумма",e.sum):null,e?.fee?nh("страховой взнос",e.fee):null]}),lh(n)]},String(t))}({slide:e,i:t,isActive:Boolean(t===n),onClick:()=>l(t)})))})})}function nh(e,t){return c("div",{className:"flex flex-col text-left whitespace-pre",children:[c(Ae,{size:"text-h6",children:[Ze(2)(t)," ₽"]}),o("div",{className:"mt-2xs",children:o(Ae,{size:"text-l",color:"text-secondary-text",children:e})})]})}function lh(e){return e?o(se,{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 ah=d((({className:e="",title:t,insuranceTabs:n=[],button:a,...i})=>{const[s,d]=l(0),m=r((e=>d(e)),[]);return c(g,{className:h("box-border overflow-hidden relative px-0 space-y-2xl",e),defaultPadding:"p-6xl",...i,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:rh({insuranceTabs:n,button:a})})]})})),rh=({insuranceTabs:e,button:t})=>{const n=e?.map((e=>e.cards));return n?.length?n.map(((e,n)=>o(eh,{button:t,cards:e},String(n)))):null};const ih={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},sh={XS:"h-10",S:"h-16",M:"h-24",L:"h-32",XL:"h-52"},oh=d((e=>{const{className:t="",__html:n,isDotted:l,investmentZeroColumn:a,investmentColumns:r,...i}=e,s=r?[...r]:[];return a&&s.unshift(a),o(g,{className:t,defaultPadding:"p-4xl",...i,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:[Ii(o("div",{className:"w-px h-4 bg-gray"}))(s.map(ch)),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(hh)})]}):null,n?o("div",{className:"max-w-2xl font-light text-base",children:o(je,{__html:n,isDotted:l,itemSize:"list-s"})}):null]})})})),ch=(e,t,n)=>{const l=1===t,a=t===n.length-1,r=e.cells?.reverse()||[];return o("div",{className:`${dh(l,a,e.cells)}`,children:r.length?o("div",{className:"w-full "+(a?"border-4 border-green-more-dark p-1.5 min-w-72":""),children:r.map(mh)}):null},`column_${t}`)},dh=(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(" "),mh=(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 ${sh[n]} ${ih[l]} ${"XS"===n?"px-s":"px-5xl"}`,children:o(Ae,{align:"text-center",children:e.text})},`cell_${t}`):null},hh=(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,uh=["байт","Кб","Мб","Гб","Тб","Пб"],ph=d((({icon:e,text:t,href:n,target:l,fileFormat:a,data:r,fileSize:i})=>{const s=i&&a?",":"",d=i??"",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,...Ne(r),children:[e,t?c(Ae,{size:"text-l",font:"font-light",children:[t," ",gh(d,m),o(Ae,{color:"text-secondary-text",children:n&&`${d+s+m}`})]}):null]})})),gh=(e,t)=>e||t?o("span",{children:", "}):"",xh=(e,t)=>(n,l)=>{const a=X(e)("Attachment"===n?.docType?n?.attachment?.src:n?.href),r="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))} ${uh[n]}`})(n?.attachment?.fileSize||0):n?.fileSize,i="Attachment"===n?.docType?bh(a):n?.fileFormat;return c("div",{role:"listitem",children:[o(ph,{text:n?.text,target:n?.target,href:a,fileFormat:i,fileSize:r,icon:fh(t),data:n?.data}),o(je,{__html:n?.__html})]},String(l))},fh=e=>e?o(se,{className:"min-w-6 min-h-6",image:e,width:"24",height:"24"}):null,bh=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},yh=d((({href:e,__html:t,target:n,onClose:l})=>c(yr,{className:"my-6xl min-h-fit w-fit mx-auto",onClose:l,children:[t?o(je,{__html:t}):null,c("div",{className:"flex flex-row mx-auto w-fit gap-lg py-lg",children:[o(Pr,{href:e,target:n,version:"primary",ariaLabel:"Ссылка на согласие",onClick:l,children:"Я согласен"}),o(fr,{type:"button",version:"secondary",onClick:l,children:"Я не согласен"})]}),o("div",{children:"Нажимая кнопку «Я СОГЛАСЕН» ниже Вы принимаете данные условия. Распространение или раскрытие любой части данного Заключения или любой информации, или рекомендации в нем запрещено.»"})]}))),vh=d((({text:e,href:t,target:n,__html:l,icon:a})=>{const{open:i}=fn(yh),s=r((()=>i({__html:l,href:t,target:n})),[l,t,n]);return e?c("button",{className:"flex gap-s text-primary-text no-underline hover:text-primary-main",onClick:s,children:[fh(a),o(Ae,{font:"font-light",children:e})]}):null})),Nh={double:"sm:flex-wrap sm:flex-row",single:"sm:flex-col"},wh=Ut((({className:e="",title:t,description:n,align:l="text-center",documents:a,icon:r={icon:"DocIcon"},columnsMode:i="double",...s})=>{const d=V();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"===i?"@md:grid-cols-2":"grid-cols-1",Nh[i]),role:"list",children:a.map(kh(d,r))}):null]})})),kh=(e,t)=>(n,l)=>{const a=n?.docType;return""===a?null:"reportSource"in n&&n?.reportSource?.__html?Sh(t)(n,l):xh(e,t)(n,l)},Sh=e=>(t,n)=>{const l={text:t.text,target:t.target,__html:t.reportSource?.__html};return t.reportSource?.__html&&t.text?c("div",{role:"listitem",children:[o(vh,{...l,icon:e,href:Ch(t)?t?.href:t?.attachment?.src}),o(je,{__html:t?.__html})]},String(n)):null},Ch=e=>"href"in e,Ih=Ut((({className:e,padding:t,align:n="text-left",buttons:l=[],description:a,image:r,__html:i,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=r?.src?o(se,{className:"hidden lg:block",image:r}):null;return o(g,{className:h("min-h-80",e),padding:"p-0",version:p,...x,children:c(ze,{className:"h-full",padding:t,defaultPadding:"p-6xl",title:o(N,{headingType:s,title:u,className:h("whitespace-pre-wrap",n)}),rightImage:b,buttons:Xe(l,{className:"flex-wrap"}),children:[a?o(Ae,{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:[i?o(je,{__html:i,itemSize:"list-m"}):null,o(Ae,{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(se,{className:"w-fit",image:d})}):null,r?.src?o(se,{className:"lg:hidden",image:r}):null]})]})})})),Th=(e,t)=>e&&"underlined"!==t?"primary":"secondary",Bh=(e=[],t={})=>e.filter((({content:e={}})=>Di(t,e))).length,Mh=(e,t)=>e===t;const Ph=(e=>(t,n)=>t===n||Boolean(t&&n&&Object.keys(t).length===Object.keys(n).length&&Object.entries(t).every((([t,l])=>e(l,n[t])))))(function(...e){return(t,n)=>e.some((e=>e(t,n)))}(Mh,((e=Mh)=>(t,n)=>t===n||Boolean(t&&n&&t.length===n.length&&t.every(((t,l)=>e(t,n[l])))))())),Vh=[],Rh={},zh={primary:"bg-white/30",secondary:"bg-main-divider"},Dh={primary:{desktop:"text-white",mobile:"text-primary-text"},secondary:{desktop:"text-secondary-text",mobile:"text-secondary-text"}},_h=d((({count:e,version:t="secondary"})=>{const n=Pe(),l=n?"bg-main-divider":zh[t],a=Dh[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(Ae,{size:"text-xs",color:a,children:e})})})),$h=({text:e,description:t,icon:n,isActive:l,type:a})=>{const r=(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(se,{className:h("h-6 w-6 min-w-6 min-h-6",r.icon),image:{...n,iconVersion:n?.iconVersion??r.iconVersion},width:"24",height:"24",alt:e}):null,c("div",{className:"border-0",children:[o("div",{className:"animated"===a?r.text:r.oldText,children:e}),o("div",{className:"animated"===a?r.desc:r.oldDesc,children:t})]})]})},jh={default:"px-xs",underlined:"px-m",animated:"px-m border border-gray cursor-pointer text-left border-b-0 mt-auto flex gap-2xs"},Lh={default:"text-black sm:text-white",underlined:"text-primary-main border-b-2",animated:"text-white sm:text-white"},Ah={default:"bg-white",underlined:"bg-white",animated:"p-1 ease-in duration-300 bg-white text-primary-text h-[70px] w-96"},Oh={default:"bg-white sm:bg-primary-main",underlined:"bg-white",animated:"p-2 border-none bg-primary-main text-white h-20 w-96"},Eh=d((({tag:e="div",item:t={},isActive:n=!1,type:l="default",onClick:a})=>{const r=e,{text:i,description:s,icon:d,count:m,tabName:u,...p}=t;return o(r,{className:h("h-12","block flex-1","cursor-pointer",jh[l],n?Oh[l]:Ah[l]),"aria-label":"Список табов",onClick:a,...p,children:c("div",{className:h("h-full","flex justify-center items-center","text-center whitespace-nowrap",n?Lh[l]:"text-secondary-text hover:text-primary-main"),role:"tab","aria-label":`Таб ${i}`,children:[$h({text:i,description:s,icon:d,isActive:n,type:l}),Number.isInteger(m)?o("div",{className:"ml-xs",role:"status","aria-label":`Количество программ и сервисов ${m}`,children:o(_h,{count:m,version:Th(n,l)})}):null]})})})),Fh=d((e=>o(e?.item?.href?Uh:Wh,{...e}))),Uh=d((e=>{const t=ye(),n=r((()=>{e.onClick&&e.onClick(e.item||{})}),[e.onClick,e.item]),{onClick:l,...a}=t({...e.item,onClick:n});return o(Eh,{...e,tag:"a",item:a,onClick:l})})),Wh=d((({item:e={},onClick:t,...n})=>{const l=r((()=>{t&&t(e)}),[t,e]);return o(Eh,{item:e,onClick:l,...n})})),Hh=(e,t,n)=>(l,a)=>o(Fh,{isActive:l===e,onClick:t,type:n,item:l},String(a)),Yh=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(Hh(l,a,t))}))),Xh={categories:[],extraOptions:[],propertyType:[],stage:[]},Kh=Ut((({className:e,hotFilters:t,filtrationSchema:n={},resetButton:l,...a})=>{const[s,{blocksToRender:d},{field:m,reset:u,update:p}]=$i(Xh,{block:a.block,page:a.options?.page}),x=r(((e=Xh)=>p(e)),[]),f=(({hotFilters:e=Vh,filtrationState:t=Rh,blocks:n=Vh,onFiltrationStateChange:l})=>{const a=i((()=>Math.max(0,e.findIndex((e=>Ph(e.filter,t))))),[e,t]),s=i((()=>e.map((t=>({text:t.text,count:Bh(n,t.filter),version:Th(t===e[a])})))),[e,n,a]),o=r((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(Yh,{...f}),o(Bi,{filtrationSchema:n,resetButton:l,field:m,reset:u}),o(Si,{blocksToRender:d,...a})]})}),{childrenTypes:["ProductBlock"],childSchema:e=>e?.filtrationSchema||{}}),qh=!Boolean("object"==typeof globalThis.process&&globalThis.process&&globalThis.process.version),Gh=d((({children:e})=>qh?e:null)),Zh="/icons/MapMarkerClusterIcon.svg",Jh="/icons/MapMarkerClusterYellowIcon.svg";function Qh({yandexMaps:e,map:t,points:n,isLoad:l}){if(l||!n)return;if(t.geoObjects.removeAll(),!n.length)return;const a=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),r=eu("offices",e,a);if(n.length&&n.every((e=>"type"in e))){const l=eu("workplaces",e,a),i=tu(n.filter((e=>"workplaces"===e.type)),"workplaces",e),s=tu(n.filter((e=>"offices"===e.type)),"offices",e);r.add(s),l.add(i),t.geoObjects.add(l),t.geoObjects.add(r)}else{const l=tu(n,"offices",e);r.add(l),t.geoObjects.add(r)}t.setBounds(e.util.bounds.fromPoints(n.map((e=>e.coords)))).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const eu=(e,t,n)=>new t.Clusterer({clusterIcons:[{href:"offices"===e?Zh:Jh,size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),tu=(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?Zh:Jh,iconImageSize:[78,84],iconImageOffset:[-35,-50]}))),nu={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",font:"text-center font-sans"},lu={...nu,border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center"},au=(e,t,n)=>o("div",{className:`select-none cursor-pointer py-m w-12 bg-white ${Object.values(lu).join(" ")} ${n}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.current.geoObjects.add(t.geoObjects)}))},children:o(Z,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),ru=()=>function(e,t,n=!0){const[r,i]=l(void 0);return a((()=>{let l=!0;return pm(e,t).then((e=>{l&&i(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),i(void 0)}}}),[e,t,n]),r}("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${z.YANDEX_MAP_API_KEY||""}&lang=ru_RU`,!1),iu={...nu,border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center"},su=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(iu).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:o(Z,{name:n,width:"20",height:"16"})})})),ou=[55.753995,37.614069],cu=d((({points:e,className:t="",zoom:n=5,isLoad:l,selectedAddress:r})=>{const i=s(null),d=s(null),m=ru();if(a((()=>{i.current?Qh({yandexMaps:m,map:i.current,points:e,isLoad:l}):m?.ready((()=>{i.current||(i.current=new m.Map(d.current,{center:du(e),zoom:n,controls:[],suppressMapOpenBlock:!0})),Qh({yandexMaps:m,map:i.current,points:e,isLoad:l})})),i.current&&r&&m?.geocode(r).then((e=>{const t=e.geoObjects.get(0).geometry.getCoordinates();i.current.setCenter(t),i.current.setZoom(18)}))}),[m,e,n,l,r]),!m)return null;const u="z-10";return c("div",{ref:d,className:h("relative","w-full",t),children:[l?o(Tr,{}):null,c("div",{className:h("absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md",u),children:[o(su,{yandexMaps:i}),o(su,{yandexMaps:i,direction:"out"})]}),au(i,m,h("right-2 top-80",u))]})})),du=e=>{const t=[hu(mu(e,0)),hu(mu(e,1))];return t.every((e=>e))?t:ou},mu=(e,t)=>e.map((e=>e.coords?.[t])),hu=e=>e.length&&e.reduce(((e,t)=>e+t))/e.length,uu={workingSaturday:!1,premiumService:!1,privateBanking:!1,remoteWorkplace:!1,serviceDisabledPeople:!1,sellingCoins:!1,buyingCoins:!1,bullionOperations:!1,preciousMetalsOperations:!1,transferringDataToBiometricSystem:!1},pu={safeBoxCaseVolumes:"Аренда индивидуальных сейфовых ячеек",workingSaturday:"Открыты по субботам",terminalTypeAtms:"Банкоматы",terminalTypeTerm:"Терминалы",workAllTime:"Круглосуточно",billAcceptorEnable:"Прием наличных",premiumService:"Премиальное обслуживание",privateBanking:"Услуга Private banking",sellingCoins:"Продажа монет из драгоценных металлов",buyingCoins:"Покупка монет из драгоценных металлов",bullionOperations:"Операции со слитками",preciousMetalsOperations:"Операции с драгоценными металлами",transferringDataToBiometricSystem:"Передача фото и голоса в Единую биометрическую систему",locationDisabledPeople:"Для маломобильных",designDisabledPeople:"Для слабовидящих",remoteWorkplace:"Удаленное рабочее место",serviceDisabledPeople:"Для маломобильных граждан"},gu={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)},xu="flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl",fu=d((({filters:e,field:{field:t,reset:n},onlyOffice:l,labels:a})=>{const r=l?5:6,i=(e||[]).map((e=>o(ta,{text:a[e],...t(e)},e))),[s,d]=r>0?[i.slice(0,r),i.slice(r)]:[i,[]],[m,{toggle:h}]=on(!1);return o("div",{children:e?.length?o("div",{children:c(Er,{children:[c("div",{children:[o("div",{className:xu,children:s}),o(Fr,{className:xu,isUnfolded:m,children:d})]}),c("div",{className:"flex space-x-lg",children:[l?o(Or,{label:m?"Меньше фильтров":"Больше фильтров",isUnfolded:m,embedded:!0,short:!0,onClick:h}):null,c(fr,{embedded:!0,onClick:n,children:[o(Lr,{children:"Очистить фильтр"}),o(Z,{name:"CloseIcon",size:"small"})]})]})]})}):null})})),bu=(e,t,n)=>{const l=Th("all"===t),a=Th("business"===t),r=(e,t,l)=>{const a=e.currentTarget===e.target&&"business"===t?i(l):l;return n(t),a},i=e=>e.filter((e=>e.workSchedule&&e.workSchedule.businessScheduleVisibleTag&&!e.workSchedule.businessScheduleDescription));return c("div",{className:"flex gap-lg flex-col sm:flex-row pb-lg",children:[o(fr,{"data-id":"all",onClick:t=>r(t,"all",e),version:l,children:"Для физических лиц"}),o(fr,{"data-id":"business",onClick:t=>r(t,"business",e),version:a,children:"Для юридических лиц"})]})},yu=({__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(je,{__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(se,{image:e.image}):null,e?.text?o(Ae,{size:"text-m",font:"font-light",children:e.text}):null]},String(t))))}):null]}):null,vu=(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(Ae,{size:"text-h2",color:"text-secondary-text",children:o("span",{suppressHydrationWarning:!0,children:` (${t})`})}):null]})}),Nu=(e,t)=>{const n=Object.keys(t).filter((e=>t[e]));return e.filter((e=>n.every((t=>gu[t](e)))))},wu=()=>{},ku=()=>{},Su=e=>"all"===e?"block":"hidden",Cu=d((({className:e,data:t=[],isLoad:n,remoteWorkplaces:a=[],renderCard:r=ku,renderRemoteWorkplaceCard:s=ku,getBalloon:d=ku,getBalloonRemoteWorkplaces:m=ku,descriptionData:u,title:p})=>{const g=p?.includes("Офис"),[x,{field:f,reset:b}]=gn(uu),{filteredItems:y,points:v,filteredRemoteWorkplaces:N,lengthItems:w}=(({data:e,remoteWorkplaces:t=[],filtrationState:n={},getBalloon:l=wu,getBalloonRemoteWorkplaces:a=wu})=>{const[r,s,o,c]=i((()=>{const r=Nu(e,n),i=Nu(t,n),s=[...r.map((e=>({type:"offices",coords:[Number(e.gpsLatitude),Number(e.gpsLongitude)]?.filter(Boolean),content:l(e)}))),...i.map((e=>({type:"workplaces",coords:[Number(e.gpsLatitude),Number(e.gpsLongitude)]?.filter(Boolean),content:a({address:e.address,workScheduleDescription:e.workScheduleDescription})})))].filter((e=>e.coords&&2===e.coords.length));return[r,s,i,r.length+i?.length]}),[e,t,n,l,a]);return{filteredItems:r,points:s,filteredRemoteWorkplaces:o,lengthItems:c}})({data:t,remoteWorkplaces:a,filtrationState:x,getBalloon:d,getBalloonRemoteWorkplaces:m}),[k,S]=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:[vu(p,w),u?yu(u):null,g&&bu(t,k,S),o("div",{className:h("pb-3xl",Su(k)),children:o(fu,{filters:Iu([...t,...a]),field:{field:f,reset:b},onlyOffice:g,labels:pu})})]}),o("div",{className:"h-[600px]",children:o(Gh,{children:o(cu,{points:v,isLoad:n,className:"h-full"})})})]}),c(Gh,{children:[y.map(r),N.map(s)]})]})})),Iu=e=>Object.keys(uu).filter((t=>e.filter((e=>gu[t](e))).length)),Tu=e=>e?`${e.charAt(0).toUpperCase()}${e.slice(1)}`:"",Bu={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"}},Mu=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",Bu[n].border,e),children:[o("div",{className:"block pr-m sm:pr-0 sm:hidden",children:o(se,{image:{icon:"SmallClockIcon"},width:"24",height:"24"})}),o(Ae,{size:"text-m",color:Bu[n].text,children:t})]}))),Pu=d((({value:e,subText:t,children:n,isPhone:l,...a})=>{const r=(Array.isArray(e)?e:e?.split(",")??[]).filter(Boolean);return[r.length,n,t].every((e=>!e))?null:Vu({textItems:r,subText:t,children:n,isPhone:l,...a})})),Vu=({label:e,labelSize:t="text-m",textItems:n,subColor:l,subText:a,className:r,children:i,isPhone:s=!1})=>c("div",{className:h("flex gap-2xs flex-col h-full max-w-[300px]",r),children:[e?o(Ae,{color:"text-secondary-text",font:"font-light",size:t,children:e}):null,i||Ru(n,s),a?o(Ae,{color:l,size:"text-m",children:a}):null]}),Ru=(e,t)=>e.filter(Boolean).map(((e,n)=>o(Ae,{size:"text-l",children:t?o("a",{href:`tel:${zu(e)}`,children:e.trim()}):e.trim()},String(n)))),zu=e=>e.replace(/\D/g,""),Du=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}))),_u=d((({children:e})=>{const[t,{toggle:n}]=on(!1);return c("div",{children:[o("div",{className:"hidden sm:block",children:e}),c(Er,{className:"block sm:hidden",children:[o(Fr,{isUnfolded:t,children:e}),o(Or,{className:"my-m mr-m border-b border-solid border-main-divider",label:t?"Скрыть":"Подробнее",isUnfolded:t,embedded:!0,onClick:n})]})]})})),$u=({location:e,address:t,billAcceptorType:n,terminalType:l,billAcceptorEnable:a,atmCode:r="",atmAccess:i="",workTime:s},d)=>{const m=[{label:"Устройство",value:Tu(l)},{label:"Модуль приема наличных",value:a?"Да":"Нет"},{label:"Прием наличных пачкой",value:"банкомат принимает пачками"===n?"Да":"Нет"},{label:"Доступность",value:["внешняя установка","территория банка"].includes(i)?"Общедоступный":""},{label:"Регистрационный номер",value:r}];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(Ae,{size:"text-h4",children:Tu(e)}),t?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(Z,{name:"GeolocationIcon",width:"24",height:"24"}),o(Ae,{size:"text-l",children:t})]}):null]}),o("div",{className:"whitespace-nowrap",children:o(Mu,{color:"green",children:Tu(s)})})]}),o(_u,{children:o(Du,{className:"flex-wrap",children:m?.map(((e,t)=>o(Pu,{...e},String(t))))})})]},String(d))},ju=({address:e="",terminalType:t,atmCode:n=""})=>({header:`${Tu(t)} №${n}`,body:e.toUpperCase()}),Lu=[];const Au=async e=>{const t=await _t(e,{method:"GET"});return Array.isArray(t)?t:Lu},Ou={terminalTypeAtms:!0,terminalTypeTerm:!1,workAllTime:!1,billAcceptorEnable:!1,locationDisabledPeople:!1,designDisabledPeople:!1},Eu={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)},Fu=d((({descriptionData:e,className:t})=>{const n=Ac(),l=n?.code??"000",{data:a,isLoad:r}=function(e){const{data:t,error:n}=Kn(`${qt}/atms?regionCode=${e}`,Au);return{data:t||Lu,isLoad:!t&&!n}}(l);return o(Cu,{className:t,filterItems:Uu,data:a,isLoad:r,initFilterState:Ou,renderCard:$u,getBalloon:ju,title:`Банкоматы филиала ${n?.name}`,descriptionData:e})})),Uu=(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=>Eu[t](e))),n=!l.length||l.some((t=>Eu[t](e)));return t&&n}))},Wu=e=>{const t=Yu(e);return o(Pu,{label:"Режим работы",value:t,className:"max-w-none"})},Hu=({workTime:e="",lunchHour:t="",daysOff:n=""},l=!1)=>e?[`${l?"Суббота":"Будние дни"}: ${e}`,t?`перерыв: ${t}`:"",n?`не работает: ${n}`:""].filter(Boolean).join("; "):"",Yu=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[Hu({workTime:t?.workTime,lunchHour:t?.lunchHour,daysOff:n?"":l}),Hu({workTime:n?.workTime,lunchHour:n?.lunchHour,daysOff:l},!0)].filter(Boolean)},Xu=[["workingMonday","Пн","Понедельник"],["workingTuesday","Вт","Вторник"],["workingWednesday","Ср","Среда"],["workingThursday","Чт","Четверг"],["workingFriday","Пт","Пятница"],["workingSaturday","Сб","Суббота"],["workingSunday","Вс","Воскресенье"]],Ku=e=>Xu.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??"")}}))),qu=e=>{if(!e)return null;const t=Gu(e);return c(Du,{className:"border-none",children:[o(Pu,{label:"Для юридических лиц",labelSize:"text-l",children:o("div",{className:"flex gap-1",children:t.map(Zu)})}),o(Pu,{label:"Режим работы",className:"max-w-none",children:o(Ae,{children:e})})]})},Gu=e=>{const t=Xu.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},Zu=({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(Ae,{size:"text-xs",children:e})},String(n)),Ju=({currency:e,buyExchangeRate:t,saleExchangeRate:n},l)=>c("div",{className:"flex gap-lg h-full",children:[e?.currency?o(Pu,{label:"Валюта",value:e.currency}):null,t?o(Pu,{label:"Купить",value:String(t)}):null,n?o(Pu,{label:"Продать",value:String(n)}):null]},String(l)),Qu=(new Date).getDay(),ep=e=>{const[t]=e?.slice(Qu-1)??[];if(!t)return null;const{lunchHour:n,status:l,workTime:a,hasLunch:r}=t;return l?c("div",{className:"flex gap-s items-start whitespace-nowrap",children:[a?o(Mu,{color:"green",children:a}):null,n&&r?o(Mu,{color:"yellow",children:`перерыв: ${n}`}):null]}):o(Mu,{color:"red",children:"Выходной"})},tp=({lunchHour:e,hasLunch:t=!1,status:n=!1})=>n?e&&t?`Перерыв ${e}`:e:"Не работает",np=({title:e,status:t,workTime:n,lunchHour:l,hasLunch:a},r)=>o(Pu,{label:e,value:t&&n?n:"",subText:tp({lunchHour:l,hasLunch:a,status:t}),subColor:!t||a?"text-error":"text-green-dark"},String(r)),lp=e=>`<p><b>Режим обслуживания физ.лиц:<br/></b>${e}</p>`,ap=e=>`<p><b>Режим обслуживания физ. и юр. лиц:<br/></b> ${e}</p>`,rp=(e,t)=>`<p><b>Режим обслуживания физ.лиц:<br/></b>${e}</p> <p><b>Режим обслуживания юр.лиц:<br/></b>${t}</p>`,ip=(e,t)=>{if(!e.workSchedule)return null;const n=Ku(e.workSchedule);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(Ae,{size:"text-h4",children:e.name}),e.address?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(Z,{name:"GeolocationIcon",width:"24",height:"24"}),o(Ae,{size:"text-l",children:e.address})]}):null]}),ep(n)]}),o(_u,{children:sp(e)})]},String(t))},sp=({phone:e,fax:t,phoneBusiness:n,phoneNatural:l,phoneCallCentre:a,phoneCurrencyControl:r,workSchedule:i,exchangeRate:s})=>{const d=Ku(i),m=i?.businessScheduleVisibleTag?"Для физических лиц":"Для физических и юридических лиц";return c("div",{children:[c(Du,{className:"flex-wrap border-b border-solid border-main-divider",children:[o(Pu,{label:"Факс",value:t,isPhone:!0}),o(Pu,{label:"Телефон филиала",value:e,isPhone:!0}),o(Pu,{label:"Для обращений юридических лиц",value:n,isPhone:!0}),o(Pu,{label:"Обслуживание физических лиц",value:l,isPhone:!0}),o(Pu,{label:"Для консультаций по валютному контролю",value:r,isPhone:!0}),o(Pu,{label:"Контакт-центр",value:a,isPhone:!0})]}),i?.isMatchesPattern?o(Du,{children:o(Pu,{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(np)})})}):c(Du,{children:[o(Pu,{label:m,labelSize:"text-l",children:o("div",{className:"flex gap-1",children:d?.map(Zu)})}),Wu(d)]}),i?.businessScheduleVisibleTag?qu(i?.businessScheduleDescription):null,s?.currencies?.length?o(Du,{className:"flex-wrap",children:s?.currencies?.map(Ju)}):null]})},op=({name:e="",address:t="",workSchedule:n})=>{const l=(a=e)?`${a?.charAt(0)?.toUpperCase()}${a?.slice(1)}`:"";var a;const r=`${t} ${(e=>{const t=Ku(e),n=e?Yu(t):"",l=e?e.businessScheduleDescription:"";return e?e.businessScheduleVisibleTag?e.businessScheduleVisibleTag&&null===e.businessScheduleDescription?lp(n):rp(n,l):ap(n):""})(n)}`;return{header:l,body:r}},cp=({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(Ae,{size:"text-h4",children:"Удаленное рабочее место"}),e?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(Z,{name:"GeolocationIcon",width:"24",height:"24"}),o(Ae,{size:"text-l",children:e})]}):null]})}),o(_u,{children:dp(t)})]},String(n)):null,dp=e=>c("div",{children:[c(Du,{className:"flex",children:[o(Pu,{label:"Операции для физических лиц",children:o(Ae,{children:"Оформление и обслуживание кредитов, счетов, вкладов"})}),o(Pu,{label:"Операции для физических лиц",children:o(Ae,{children:"Оформление и обслуживание банковских карт"})}),o(Pu,{label:"Операции для физических лиц",children:o(Ae,{children:"Инвестиционное и накопительное страхование"})}),o(Pu,{label:"Операции для физических лиц",children:o(Ae,{children:"Безналичные операции в рублях, переводы без открытия счёта"})})]}),o("hr",{className:"text-main-divider pb-xl"}),o(Pu,{label:"Режим работы",className:"max-w-none",children:o(Ae,{children:e})})]}),mp=({address:e="",workScheduleDescription:t})=>({header:"Удаленное рабочее место",body:`${e} ${t}`}),hp={branches:[],remoteWorkplaces:[]};const up=async e=>await _t(e,{method:"GET"})||hp,pp=d((({className:e})=>{const t=Ac(),n=t?.code??"000",{data:l,isLoad:a}=function(e="000"){const{data:t,error:n}=Kn(`${qt}/branchesAndRemoteWorkplaces?regionCode=${encodeURIComponent(e)}`,up);return{data:t||hp,isLoad:!t&&!n}}(n);return o(Cu,{className:e,data:l?.branches,isLoad:a,remoteWorkplaces:l?.remoteWorkplaces,renderCard:ip,renderRemoteWorkplaceCard:cp,getBalloon:op,getBalloonRemoteWorkplaces:mp,title:`Офисы филиала ${t?.name}`})})),gp=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(pp,{}):o(Fu,{descriptionData:e})})})),xp=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,{})]}))),fp="hidden sm:flex absolute z-40 top-10",bp=Ut((({className:e="",padding:t,slides:n=[],...a})=>{const[r,i]=l(0),[s,d]=mi({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*r}%)`},role:"list",children:n.map((({productBlock:e},t)=>o("div",{className:"box-border grow-0 shrink-0 basis-full",role:"listitem",children:o(lt,{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(Jr,{containerRef:s,snapAlign:"snap-start",onVisibleIndicesChange:d.handleVisibleIndicesChange,itemClassName:"h-40 flex items-stretch w-screen",gap:8,children:n.map(yp({activeSlideIndex:r,onClick:i}))}),d.canScrollLeft?o(xi,{className:h("left-6",fp),onClick:d.scrollLeft}):null,d.canScrollRight?o(fi,{className:h("right-6",fp),onClick:d.scrollRight}):null]})]})})),yp=({activeSlideIndex:e,onClick:t})=>({nav:n},l)=>{const a=l===e,r=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",i=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",r),children:[o("div",{className:i,children:n?.title}),o("div",{className:s,children:n?.description})]},String(l))},vp=d((({address:e,email:t,telephone:n,button:l,className:a="",__html:r,richVersion:i,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:[Ye(s)?o("div",{className:"w-10 h-7 sm:w-24 sm:h-16",children:o(se,{image:s})}):null,d?o(N,{headingType:"h3",as:"h3",title:d}):null]}),c("div",{className:"w-full space-y-m",children:[r?Np({__html:r,richVersion:i}):null,wp({label:"Адрес",data:e,iconName:"GeolocationIcon"}),wp({label:"Телефон(факс)",data:n,iconName:"PhoneIcon"}),wp({label:"E-mail",data:t,iconName:"MailIcon",dataColor:"text-primary-main"}),l?.text?Xe([l]):null]})]}))),Np=e=>o("div",{className:"border-b border-main-divider pb-lg",children:o(je,{...e,itemSize:"list-s"})}),wp=({label:e,data:t,iconName:n,dataColor:l=""})=>t?c("div",{className:"flex gap-s",children:[o(Z,{iconVersion:"black",name:n,width:"24",height:"24"}),c("div",{className:"flex flex-col gap-2xs",children:[o(Ae,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e}),o(Ae,{size:"text-xl",color:l,children:t})]})]}):null,kp=d((e=>{const{__html:t,richVersion:n="",...l}=e;return o(g,{defaultPadding:"p-0",...l,children:o(je,{__html:t,richVersion:n})})})),Sp=(e=!1)=>e?"flex flex-wrap group-last:last:pb-0":"grid grid-cols-12 [&>*]:pb-m",Cp=Ut((({className:e="",isExpanded:t,isFoldButtonOnTop:n=!0,foldButtonVersion:l="default",label:a,version:r,role:i,...s})=>{const d=Pe(),[m,{toggle:u}]=on(t),p=o(Fr,{className:h("gap-lg",Sp(d)),isUnfolded:m,children:P({...s,extraProps:{className:"w-full",padding:"p-0"}})}),x="accordion"===l,f=o(Or,{className:h(x?"text-h6 my-lg":"text-h4"),label:a,isUnfolded:m,embedded:x,onClick:u});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:i,...s,children:c(Er,{children:[n?f:p,n?p:f]})})}),{childrenTypes:{exclude:["RollupItem"]}}),Ip=d((({name:e,text:t,value:n,checked:l,onChange:a,className:r})=>o("div",{className:r,children:c("label",{className:"font-sans flex gap-s items-center relative cursor-pointer",children:[o("input",{className:h(wn.split(" ").filter((e=>"rounded"!==e)),Ql,"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(Ae,{color:"text-primary-text",children:t}):null]})}))),Tp=d((({className:e=""})=>{const[t,n]=l("option2"),a=r((e=>n(e)),[]);return c("div",{className:h("order-4",e),role:"radiogroup",children:[o(Ip,{className:"mb-xs",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===t,onChange:a}),o(Ip,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===t,onChange:a})]})})),Bp=d((({data:e,fieldLabel:t,fieldValue:n,selected:l,placeholder:a="",setSelected:r,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[n||t],text:e?.[t]}))),c=s.find((e=>e.key===l));return o(Dn,{options:s,label:i,placeholder:a||l,onChange:e=>r(e.key),value:c})})),Mp=d((({regions:e=[],selectedRegion:t,onSelectedRegion:n,branches:l=[],selectedBranch:a,onSelectedBranch:r})=>c("div",{className:"flex flex-col @xl:flex-row gap-m order-1",children:[o("div",{className:"flex-1 min-w-0",children:o(Bp,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:n,label:"Регион"})}),o("div",{className:"flex-1 min-w-0",children:o(Bp,{data:l,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:r,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Pp=["От 1 дня","До 365 дней"],Vp=d((({days:e,setDays:t})=>c("div",{className:"order-1",children:[o(Ae,{size:"text-m",font:"font-light",children:"Срок аренды"}),o(ol,{min:1,max:365,value:e,items:Pp,onChange:t})]}))),Rp=d((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:n,safeBoxCases:l=[],selectedBoxSize:a,onSelectedBoxSize:r})=>c("div",{className:"flex flex-col @xl:flex-row gap-m order-1",children:[o("div",{className:"flex-1 min-w-0",children:o(Bp,{data:e,fieldLabel:"volume",selected:t,setSelected:n,label:"Размер",placeholder:"Выберите размер"})}),o("div",{className:"flex-1 min-w-0",children:o(Bp,{data:l,fieldLabel:"safeBoxCasesSize",selected:a,setSelected:r,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),zp=d((({regions:e,selectedRegion:t,branches:n,selectedBranch:l,days:a,selectedCaseVolume:r,selectedBoxSize:i,safeBoxCases:s,caseVolumes:d,onChange:m,onClick:h})=>c("div",{className:"contents @xl:block flex-1 space-y-xl",children:[o(Mp,{regions:e,selectedRegion:t,onSelectedRegion:e=>m({selectedRegion:e}),branches:n,selectedBranch:l,onSelectedBranch:Dp(m)}),o(Vp,{days:a,setDays:e=>m({days:e})}),o(Rp,{caseVolumes:d,selectedCaseVolume:r,onSelectedCaseVolume:_p(m),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>m({selectedBoxSize:e})}),o("div",{className:"order-4",children:o(Ae,{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(Tp,{}),o(fr,{className:"order-6",version:"primary",onClick:h,children:"Офисы на карте"})]})]}))),Dp=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},_p=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},$p=d((({days:e,tariffs:t=[]})=>{const n=Lp(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:[jp("Аренда за",e),jp("Цена",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(Z,{className:"@xl:h-60",name:"PackA4Icon"}),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})})]})]})})),jp=(e,t)=>c("div",{className:"flex justify-between items-center gap-y-xs @xl:flex-col @xl:items-start",children:[o(Ae,{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})]}),Lp=(e,t)=>{const n=Ap(e);return e*(t?.find((e=>e.tariffType===String(n)))?.tariffValue||0)},Ap=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},Op=(e,t)=>e.find((e=>e.branchCode===t)),Ep=d((e=>{const{regions:t,data:n,branches:l,onChange:r,onClick:i}=e;a((()=>{r({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[n.selectedRegion,r]);const s=Op(l,n.selectedBranch),d=Fp(s?.safeBoxCaseVolumes),m=Up(s?.safeBoxCaseVolumes,n.selectedCaseVolume)?.safeBoxCases,h=Wp(m,n.selectedBoxSize);return c("div",{className:"flex flex-col @4xl:flex-row gap-4xl align-top",children:[o(zp,{...n,regions:t,onClick:i,branches:l,caseVolumes:d,safeBoxCases:m,onChange:r}),o($p,{days:n.days,tariffs:h})]})})),Fp=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],Up=(e,t)=>e?.find((e=>e.volume===t)),Wp=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,Hp=`${qt}/safeboxes`,Yp=[];const Xp=async e=>await _t(e,{method:"GET"})||Yp,Kp=d((({title:e,footnote:t,className:n="",...a})=>{const[i,s]=l(!1),d=r((()=>s((e=>!e))),[]),[m,h]=l({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),u=Va(),p=qp(m.selectedRegion,u),x=function(e){const{data:t}=Kn(e?`${Hp}?regionCode=${e}`:null,Xp);return t||Yp}(p),f=r((e=>h((t=>({...t,...e})))),[h]),b=(y=Op(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(Ep,{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&&i?o(cu,{points:b,className:"h-[640px]"}):null]})})),qp=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,Gp=e=>e<4?"w-72":"w-52",Zp={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"},Jp=d((({buttons:e,className:t="",description:n,showLines:l=!0,steps:a=[],stepVersion:r="gray",title:i,version:s="primary",...d})=>{const m=a.length>3,u=Zp,p=(e=>e?"":"opacity-0")(l),x=Pe();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:i,description:n,isEmbedded:!0,className:"w-full",align:Ei(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:Ii(o("div",{className:h("h-0.5 w-full bg-secondary-light flex-1",p)}))(a.map(Qp(u,m,r)))}),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:r,description:i,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",Gp(n.length)),children:[c("div",{className:"space-y-xs",children:[r?o(Ae,{size:"text-h6",align:"text-center",children:r}):null,c("div",{className:"flex flex-col items-center gap-3xs",children:[i?o("div",{className:l.description,children:i}):null,o(je,{__html:e.__html,itemSize:"list-s",isDotted:d})]})]}),s?.text?o(Ie,{className:"box-border py-s w-full mt-auto",version:a,...s,children:s?.text}):null]},String(t))}))})]}):null,Xe(e)]});var f})),Qp=(e,t,n)=>({icon:l},a)=>{const r="secondary"===n?"white":"color";return o(g,{defaultPadding:"",className:`${eg(t)} flex justify-center items-center text-center rounded-full box-border z-10`,version:n,children:Ye(l)?o(se,{image:{...l,iconVersion:l?.iconVersion||r},width:"48",height:"48"}):o("span",{className:h("text-h4","transparent"===n?e.iconText:(i=n,"secondary"===i?"group-data-primary:text-white":"text-secondary-text")),children:a+1})},String(a));var i},eg=e=>e?"h-16 w-16":"h-24 w-24",tg=d((()=>o("div",{className:"hidden",role:"none"}))),ng="hidden sm:flex absolute z-40",lg={default:{item:"flex-1",gap:0,buttonTop:"top-0"},animated:{item:"flex",gap:8,buttonTop:"top-5"},underlined:{item:"",gap:0,buttonTop:"top-0"}},ag=d((({className:e,items:t=[],activeItem:n,onChange:l,tabsType:r="default"})=>{const[i,s]=mi({itemCount:t?.length||0});return a((()=>rg(i.current,t,n)),[]),c("div",{className:h("relative overflow-x-auto no-scrollbar",e),children:[o(Jr,{containerRef:i,snapAlign:"snap-start",onVisibleIndicesChange:s.handleVisibleIndicesChange,itemClassName:lg[r].item,gap:lg[r].gap,children:t.map(Hh(n,l,r))}),s.canScrollLeft?o(xi,{className:h("left-6",ng,lg[r].buttonTop),onClick:s.scrollLeft}):null,s.canScrollRight?o(fi,{className:h("right-6",ng,lg[r].buttonTop),onClick:s.scrollRight}):null]})})),rg=(e,t,n)=>{const l=t.findIndex((e=>e===n));e&&l>0&&e.scrollTo({left:e?.children[l]?.offsetLeft,behavior:"smooth"})},ig={default:{wrapper:"",component:""},animated:{wrapper:"border-b-8 border-primary-main bg-white",component:"m-auto"},underlined:{wrapper:"flex",component:"m-auto"}},sg=({className:e="",tabsType:t="animated",...n})=>t?o("div",{className:h(ig[t].wrapper,e),children:o(ag,{className:ig[t].component,tabsType:t,...n})}):null,og=Ut((({className:e="",tabs:t=[],block:n,tabsType:i,showCounter:s=!1,isSticky:d=!1,...m})=>{const u=cg(n??{}),p=V(),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(hg(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=mg(f[y],y),S=r((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:[sg({className:h({"pb-1":n?.slots&&"default"===i,"sticky top-1 z-20":d&&!x}),items:dg(t,f),activeItem:N,tabsType:i,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])=>M(t,{...m?.options,slotName:k,parent:n,extraProps:{className:e===k?"":"hidden"}})))})]})}),{slots:({tabs:e})=>e?.map(mg)?.filter(Boolean)||[]}),cg=({__id:e,anchor:t})=>t??e??"tabs",dg=(e,t)=>t?.length?t:e,mg=(e,t)=>"group"===e?.type?e?.tabName||`Слот №${t+1}`:"",hg=(e,t)=>t?Number(t):e.reduce(((e,t,n)=>t.selected?n:e),0),ug={comparison:"flex gap-m duration-1000",tariff:"flex gap-5xl flex-grow duration-1000"},pg=d((({children:e,activeIndex:t,columnWidth:n,version:l="comparison"})=>o("div",{className:"flex flex-1 overflow-hidden",children:o("div",{className:ug[l],style:{transform:`translateX(-${t*n}px)`},children:e})}))),gg=d((({className:e="",isOpen:t,onClick:n})=>o(Or,{className:e,label:t?"Скрыть":"Показать",isUnfolded:t,version:"secondary",short:!0,onClick:n}))),xg={Buttons:({buttons:e})=>Xe(e,{buttonClassName:"basis-0"}),Img:({image:e})=>e?.src?o(se,{image:e}):null,RichText:({__html:e,isDotted:t=!0})=>o("div",{className:"flex flex-col justify-between items-start text-h6",children:o(je,{__html:e,isDotted:t,itemSize:"list-m"})}),LabelDescription:({label:e,description:t})=>c("div",{className:"space-y-2xs",children:[e?o("div",{children:o(Ae,{size:"text-h6",children:e})}):null,t?o("div",{className:"lg:text-l font-light text-xs",children:o(Ae,{color:"text-secondary-text",children:t})}):null]}),Table:({isVisible:e,displayTable:t,tableSource:n,pdfUrl:l,isOpen:a})=>e?o(gg,{className:"w-fit",isOpen:a,onClick:()=>{t({tableSource:n,pdfUrl:l})}}):null},fg=d((({cell:e,fieldIdx:t,rowIdx:n,cellIdx:r,setTableInner:i,tableInner:s,openTableInnerIdx:o,setOpenTableInnerIdx:c})=>{const[d,m]=l(!0);a((()=>{r===o&&s||m(!0)}),[s,o]);return bg({cell:e,cellProps:{rowIdx:n,cellIdx:r,fieldIdx:t,displayTable:e=>{m(!1),c(r),i(e)},isVisible:d}})})),bg=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:n,...l}=e;if(!n||!(n in xg))return null;return o(xg[n],{...t,...l})},yg=d((({cells:e,rowIdx:t,cellIdx:n,setTableInner:l,tableInner:a,openTableInnerIdx:r,setOpenTableInnerIdx:i})=>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(fg,{cell:e,fieldIdx:s,rowIdx:t,cellIdx:n,setTableInner:l,tableInner:a,openTableInnerIdx:r,setOpenTableInnerIdx:i},String(s)))):null}))),vg=(e,t)=>140*Ad(e.slice(0,t).map((e=>e?.cols?.length??1))),Ng=(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(Ae,{size:"text-h6",font:"font-light",children:e})},String(t))))}):null,wg=d((({rows:e})=>{const t=e?.[0]?.length??0,[n,l]=Jm({itemCount:t,visibleItemCount:5});return c("div",{children:[e?.map((a=n,(e,t)=>{if(!e?.length)return null;const[n,...l]=e,r=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(Ae,{size:"text-xl",font:"font-light",children:n.data})}):null,o("div",{className:"flex flex-grow overflow-hidden",children:o("div",{className:r,style:{transform:`translateX(-${vg(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(Ae,{size:"text-xl",children:e.data}):null,e?.cols?Ng(e.cols,a):null]},`row${t}`)))})})]},String(t))})),Qm({...l,btnClass:["left-3 top-20","right-3 top-20"],className:""})]});var a})),kg=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(Ae,{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(wg,{rows:t.rowsData})})})]},l)}))}))),Sg=(e=!1)=>""+(e?"text-white":"text-secondary-text"),Cg=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(Ae,{size:"text-xl",font:"font-light",color:Sg(t===n),children:e||t+1})},e)))}):null,t?o(Ie,{className:"text-primary-main",href:t,version:"secondary",target:"_blank",appendLeft:o(Z,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-3xs",width:"20",height:"20"}),text:"Скачать в PDF"}):null]}))),Ig=Ut((({tableSource:e,pdfUrl:t,onClick:n})=>{const a=e?.tableData,[i,s]=l(0),d=r((e=>s(e)),[]),m=a?.[i]?.items??[],h=a?.map((e=>e.currency??""));return c("div",a?{className:"bg-white z-10",children:[o(Cg,{currencies:h,activeTabIndex:i,setActiveTabIndex:d,linkToPDF:t}),o(kg,{activeTabIndex:i,items:m}),o(gg,{className:"mt-xl",onClick:n,isOpen:!0})]}:{className:"my-lg space-y-m text-center",children:[o(Ae,{size:"text-h6",children:"Данных нет"}),o(gg,{onClick:n,isOpen:!0})]})})),Tg=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(Ig,{...t,onClick:n})}):null]}))),Bg=d((({row:{header:e,data:t},activeIndex:n,rowIdx:a,...i})=>{const[s,d]=l(void 0),m=r((e=>d(e)),[]),[u,p]=l(void 0),g=r((e=>p(e)),[]);return c(Tg,{onHideContentClick:()=>d(void 0),tableInner:s,...i,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(se,{className:"hidden @4xl:block max-w-6 shrink-0",image:e.icon,width:"24",height:"24"}):null,e?.title?o(Ae,{size:"text-m",font:"font-light",color:"text-primary-text",children:e?.title}):null]})}),t?.length?o(pg,{activeIndex:n,columnWidth:360,version:"tariff",children:t.map(((e,t)=>o(yg,{cells:e,rowIdx:a,cellIdx:t,setTableInner:m,tableInner:s,openTableInnerIdx:u,setOpenTableInnerIdx:g,...i},String(t))))}):null]})})),Mg=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,Qm({...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]})})),Pg=d((({className:e="",title:t,description:n,rowHeaders:l,tariffsColumns:a,hiddenRowsNum:r=0,...i})=>{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]=Jm({itemCount:m,visibleItemCount:2}),x=(d||[]).map(((e,t)=>o(Bg,{row:e,activeIndex:u,rowIdx:t,...i},String(t)))),[f,b]=r>0?[x.slice(0,-r),x.slice(-r)]:[x,[]],[y,{toggle:v}]=on(!1);return c(g,{className:h("relative space-y-6xl @4xl:space-y-xl",e),defaultPadding:"p-6xl",...i,children:[o(S,{title:t,description:n,headlineVersion:"M",isEmbedded:!0,align:"text-center"}),o("div",{className:"space-y-m overflow-hidden",children:r>0?c(Er,{children:[c(Mg,{controls:p,children:[f,o(Fr,{isUnfolded:y,children:b})]}),o(Or,{className:"text-h4",isUnfolded:y,onClick:v})]}):o(Mg,{controls:p,children:x})})]})})),Vg=d((({className:e="",title:t,description:n,iconVersion:l,__html:a,richVersion:r,...i})=>c(g,{className:h("flex gap-s sm:gap-m group-data-secondary:bg-primary-main/10",e),...i,children:["small"===l?Rg():null,c("div",{className:"flex flex-col w-fit gap-2xs sm:gap-xs",children:[t?o(Ae,{size:"text-l",font:"font-normal",color:"text-primary-text group-data-secondary:text-white",children:t}):null,n?zg(n):null,a?o(je,{richVersion:r,__html:a}):null]})]}))),Rg=()=>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"}),zg=e=>o(w,{size:"text-s",font:"font-light",color:"text-secondary-text group-data-secondary:text-white",children:e}),Dg=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(Ae,{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(Ae,{size:"text-h2",children:n})}):null]}))),_g=d((e=>{const{prefix:t,unit:n,suffix:l,...a}=e;return o(g,{defaultPadding:"p-0",...a,children:o(Dg,{prefix:t,unit:n,suffix:l})})})),$g=Ut((({className:e="",padding:t="p-0",gap:n="",isInnerPadding:l=!0,version:a="transparent",isTheme:r=!1,isCardBorder:i=!1,image:s,...c})=>{const d=V();return o(g,{className:h("relative flex flex-col",qm[n],s?.src?"bg-right-bottom bg-no-repeat":"",e),...s?.src?{style:{backgroundImage:`url(${ne(d)(s?.src)})`}}:{},padding:t,version:a,isTheme:r,...c,children:P({...c,extraProps:{className:h("w-full",Hr(i)),...Km(l)}})})}),{childrenTypes:[]}),jg=e=>(e=>{const t="col-span-",n=e?.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(9),10):12})(e)<10?"py-xl px-6xl":"py-6xl px-32",Lg=d((({className:e,title:t,url:n,previewImg:l,...a})=>{const r=V();return c(g,{className:e,defaultPadding:jg(e),...a,children:[o(S,{title:t,headlineVersion:"M"}),n?o("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:X(r)(l?.src),style:{maxHeight:524},controls:!0,children:o("source",{src:X(r)(n)})}):null]})})),Ag={AdTile:Ht,ApplicationForm:_r,BankAccountFiltration:Ai,BenefitsBlock:Wi,BonusBenefitsBlock:qi,ButtonsBlock:Zi,CalculatorBonus:hs,CalculatorBusinessDeposit:Ms,CalculatorCredit:Ws,CalculatorDeposit:oo,CalculatorRefinancing:fo,CardTransfer:Do,Carousel:Fo,CarouselCard:Yo,CarouselCatalogCard:Ko,CarouselLinks:Zo,CarouselRecommendationCard:rc,CarouselTariffsCard:cc,ContactsBlock:dc,DepositFiltration:fc,Depository:zc,ErrorBlock:_c,ExchangeRateTile:pd,Footer:Qd,GracePeriod:em,GrantSupport:am,Header:Hm,Headline:S,HorizontalLayout:Gm,ImgBlock:Zm,InsuranceAmountBlock:ah,InvestmentInfo:oh,LinkDocs:wh,MobileAppTile:Ih,MortgageFiltration:Kh,OfficesAtmsMap:gp,Placeholder:xp,ProductBlock:Wt,ProductGallery:bp,RepresentativeOfficeInfo:vp,RichTextBlock:kp,RollupItem:Cp,SafeDepositRental:Kp,StepsBlock:Jp,StickyBottomMenu:tg,TabsLayout:og,TariffsTable:Pg,TextBlock:Vg,UnitBlock:_g,VerticalLayout:$g,Video:Lg},Og=pe((()=>{a((()=>{an()}),[]);const e=sn();bn(globalThis,"click",(e=>t=>{const n=t.target?.closest("[data-aspects]");try{const l=JSON.parse(n?.dataset?.aspects??"[]");tn({aspectsAttributes:l,aspects:e,ev:t})}catch(e){}e.forwardQuery?.(t)})(e))})),Eg="cookie",Fg=d((({__html:e})=>{const[t,{setTrue:n,setFalse:l}]=on();$d((()=>{globalThis.localStorage?.getItem(Eg)||n()}),[],3e3);const a=r((()=>{globalThis.localStorage?.setItem(Eg,"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(je,{__html:e})}),o("div",{className:"ml-s sm:ml-0 w-36 flex justify-end",children:o(br,{className:"bg-main-gray rounded-md w-11 h-11",onClose:a})})]})}):null}));function Ug(e){const t=r((({key:t})=>{"Escape"===t&&e()}),[e]);bn(globalThis.document,"keydown",t)}function Wg(e,t,n){a((()=>e.subscribe(t,(e=>{const t=e?.type;if(t&&"string"==typeof t){const l=n[t];l&&l(e)}}))),[e,t,...Object.values(n)])}const Hg=()=>{const[e,{push:t,pop:n,clear:a}]=function(e=[]){const[t,n]=l(e),a=r((e=>n((t=>[...t,e]))),[]),i=r((()=>n((e=>e.slice(0,-1)))),[]),s=r((e=>n((t=>t.filter((t=>t!==e))))),[]),o=r((()=>n([])),[]);return[t,{setList:n,push:a,pop:i,remove:s,clear:o}]}();return Wg(fe.observable,"dialog",{open:t,close:n,closeAll:a}),[e,{close:n,closeAll:a}]},Yg=d((()=>{const[e,{close:t}]=Hg(),n=Boolean(e.length);return Ug(t),a((()=>{n?globalThis.document?.body.classList.add("no-scrollbar","overflow-hidden"):globalThis.document?.body.classList.remove("no-scrollbar","overflow-hidden")}),[n]),n?o("div",{className:"fixed inset-0 z-50",children:e.map((({dialog:t,id:n},l)=>o("div",{className:h("absolute inset-0 overflow-x-hidden overflow-y-scroll no-scrollbar bg-black/50",{hidden:l!==e.length-1}),children:t},String(n||l))))}):null})),Xg=d((()=>{const[e,t]=l(null),n=r((()=>{t(null)}),[]);return Wg(fe.observable,"popup",{open:t,close:n}),Ug(n),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",title:"Всплывающее окно",children:e.popup}):null})),Kg="header",qg="footer",Gg="sticky-footer",Zg={},Jg=d((({className:e,data:t=Zg,blocksRegistry:n,blockDecorator:l})=>{const{slots:a,blocks:r,fallback:i,...s}=t,d=Et(s,i);Og(),Oc();const m={key:"",page:{slots:a,blocks:r,fallback:i,...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?.[Kg]?.length?o("div",{className:"relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]",children:M(a?.[Kg],{...m,slotName:Kg})}):null,c("div",{className:"container space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs",children:[P({block:t,options:m,extraProps:{className:"scroll-mt-12"}}),M(a?.[qg],{...m,slotName:qg})]})]}),a?.[Gg]?.length?o("div",{className:"fixed w-full bottom-0 left-0 z-[100]",children:M(a?.[Gg],{...m,slotName:Gg})}):null,o(Yg,{}),o(Xg,{}),o(Fg,{__html:d?.cookieContent?.__html})]})}));Object.assign(Jg,{childrenTypes:[],slots:()=>[Kg,qg,Gg]});e.Blocks=Ag,e.ContentPage=Jg,e.handlerDecorator=pe,e.joinList=Ii,e.locationNavigator=nn,e.packageVersion="0.14.765",e.projectSettings=z,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=U,e.useRouter=V,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),a=n("useState"),i=n("useEffect"),l=n("useCallback"),r=n("useMemo"),s=n("useRef"),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:a,...i}=t||{},l=n?.slots?.default,r=a||l&&l();return e(Object.assign(i,r&&{children:r}),n)}return t.inheritAttrs=!1,t},u=(...e)=>e.map((e=>h(e)?Object.entries(e).filter((([,e])=>e)).map((([e])=>e)):e)).flatMap((e=>e)).filter(Boolean).join(" "),h=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:a="p-xl",padding:i,block:l,tag:r="section",role:s,children:c,style:d})=>{const m=t&&n;return o(r,{className:u("@container font-sans",{group:m},p[t],i||a,e),...m?{"data-ver":t}:{},...l?.anchor?{id:l.anchor}:{},role:s,style:d,children:c})})),f=d((({className:e,size:t})=>o("figure",{className:u("m-0 mt-xl min-w-[80%]",e),children:x(t)}))),x=(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:a,children:i})=>o(n,{role:"heading",className:u("font-sans m-0",v[t],e),children:a||i}))),w=d((({children:e,...t})=>o("p",{className:u("font-sans",Object.values(t)),children:e}))),C={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:a,description:i,align:l="text-center",as:r,isEmbedded:s=!1,isTheme:d=!1,...m})=>{const h=C[n],p={marginTop:h.descriptionStyle};return c(g,{className:u({"@container-normal":s},e),defaultPadding:s?"":"p-6xl",version:t,isTheme:d,...m,children:[a?o(N,{className:u("whitespace-pre-wrap",l),...h?.title,as:r||h?.title.as,title:a}):null,i?o(w,{size:h.descriptionSize,font:h.descriptionWeight,align:l,...p,children:i}):null]})})),k=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),I=[];function T(e,t,{className:n,...a}={}){const{key:i,blockDecorator:l=k,blocksRegistry:r={},ancestors:s=I}=t,{type:c}=e;c&&c in r||console.warn(`No block with "${c}" is registered`);const d=c&&r[c];return l({blockClassName:u(e.style?.length?e.style:"col-span-12",n),block:e,ancestors:s,render:({block:n,blockClassName:l})=>{const{content:r}=n;return d?o(d,{className:l,block:e,options:t,...r,...a},i):null}},i)}const R=[],B=(e,{key:t,ancestors:n=R,slotName:a=null,extraProps:i,renderProps:l=T,...r})=>{const s=i?(e,t)=>T(e,t,i):l;return(e||[]).map(((e,i)=>s(e,{...r,key:`${t||e.type}-${i}`,ancestors:r.parent?[...n||R,[r.parent,a]]:n},i)))};function P({block:e,options:t,children:n,extraProps:a,renderProps:i}){return n||(e&&t?B(e.blocks,{...t,parent:e,extraProps:a,renderProps:i}):null)}function D(){return D._impl()}D._impl=()=>({isReady:!1,href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{},back:()=>{}}),D.setup=e=>{D._impl=e};const _=["CDN","BASE_PATH"],E=new Proxy({_:{},setup(e){this._=e}},{get(e,t){const n=e._[t]||e[t];return _.includes(t)?(e=>e&&!e.endsWith("/")?`${e}/`:e)(n):n}}),A="http://_",M=(...e)=>{const t=e.filter(Boolean).map((e=>new URL(e,A))),n=t.find((e=>e.origin!==A))?.origin,a=z(t.map((e=>e.pathname))),i=O(...t.map((e=>e.searchParams))).toString(),l=t.find((e=>e.hash))?.hash;return[n,a,i?`?${i}`:"",l].filter(Boolean).join("")},O=(...e)=>{const t=new URLSearchParams;for(const n of e)for(const[e,a]of n)t.set(e,a);return t},z=e=>e.join("/").replace(/\/+/g,"/"),V=e=>Boolean(e?.includes(":")),F=(e,t)=>Boolean(e&&!V(e)&&(!t||"_self"===t)),L=e=>Boolean(e?.startsWith("#")),$=e=>(e??"").replace(/\?.*/,"").replace(/\/$/,""),j=e=>t=>Boolean(e&&t&&e.startsWith(t)&&("/"===t||e===t||"/"===e[t.length]));var U=Object.freeze({__proto__:null,isURL:V,isLocalURL:F,isHash:L,withoutQuery:$,hasPrefix:j,joinPath:M});const q="/api/",W=`${q}v1/storage`,H=[E.CDN,q],Y=e=>(t,n)=>{if(G(t))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`${W}/${t}/attachment`;const a=t?.startsWith("/");return M(j(t)(n)?"":n,a?"/":(i=e.pathname,i?.split("/").slice(0,-1).join("/")),t);var i},G=e=>!e||V(e)||L(e)||H.some(j(e)),K={"":"",normal:"",color:"text-primary-main",black:"text-black",white:"text-black",gray:"text-gray"},X={small:"16",medium:"24",large:"48",xl:"78"},J=d((({className:e="",imageClassName:t="",name:n="",alt:a=`Иконка ${n}`,title:i=a,iconVersion:l="color",size:r,width:s=r&&X[r],height:d=s})=>{const m=D(),h="normal"===l?`${n}.svg`:`sprites.svg#${n}`,p=Y(m)(M(E.CDN,"/icons/",h));return"normal"===l?o("img",{className:e,style:Z(e,d),src:p,alt:a,title:i,"aria-hidden":"true",width:s,height:d}):o(Q,{className:e,children:c("svg",{className:u(K[l],{"w-full h-full":!s,invert:"white"===l},t),width:s,height:d,"aria-hidden":"true",children:[i?o("title",{children:i}):null,a?o("desc",{children:a}):null,o("use",{href:p,xlinkHref:p})]})})})),Z=(e,t)=>{return e?.includes("h-")?{}:{height:(n=t,n&&!/\D/.test(n)?`${t}px`:t),width:"auto"};var n},Q=d((({className:e,children:t})=>e?o("div",{role:"img",className:e,children:t}):t)),ee=new Proxy({_:{},setup(e){this._=e}},{get:(e,t)=>e._[t]||e[t]});function te(e=""){try{return new URL(e).pathname}catch(e){return""}}const ne=e=>t=>{const n=t?.startsWith("/wcms-resources")?"":te(ee.SITE_URL);return t&&!V(t)?Y(e)(t,n):t},ae=(e,t)=>e?.media&&t?.media?e.media-t.media:0,ie=d((({className:e="",image:t,imageClassName:n=""})=>{const a=D();return c("picture",{className:e,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(ae).map((({src:e,format:n,media:i},l)=>o("source",{srcSet:ne(a)(e),type:re(n),media:i?`(max-width: ${i}px)`:"",width:t?.size?.width,height:t?.size?.height},`${l}_${e}`))):null,t?.src?le({...t,src:ne(a)(t.src)},n):null]})})),le=(e,t="")=>o("img",{src:e.src,className:u("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}),re=e=>e?`image/${String(e)}`:void 0,se=d((({className:e="",image:t,imageClassName:n="",...a})=>t?.src||t?.icon?t.icon?o(J,{className:e,imageClassName:n,iconVersion:t?.iconVersion,name:t.icon,...a}):o(ie,{className:e,imageClassName:n,image:t}):null)),oe={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","":""},ce="bg-main-divider text-main-disabled",de={primary:ce,secondary:ce,white:ce,link:"",transparent:"",gray:ce,"":""},me="text-center font-sans select-none",ue={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","":""},he=({className:e,rounded:t,version:n})=>[me,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",n?oe[n]:"",t?"rounded-full":"rounded-md",e].join(" "),pe=e=>pe._impl(e);function ge(e,t){const n=s({});return r((()=>new Proxy({},{get:(a,i)=>(n.current||={},n.current[i]||=n=>e.fire(t,{...n??{},type:i}),n.current[i])})),[e,t])}pe._impl=e=>e,pe.setup=e=>{pe._impl=e};class fe{watchers=new Set;subscribersMap={};subjectsStateMap={};emitter=this;observable=this;watch(e){return this.watchers.add(e),()=>{this.watchers.delete(e)}}subscribe(e,t){this.subscribersMap[e]||=new Set,this.subscribersMap[e]?.add(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.subscribersMap[e]?.delete(t)}}fire(e,t){e in this.subjectsStateMap?this.subject(e,t):this.fireSubscribers(e,t)}subject(e,t){return this.subjectsStateMap[e]!==t&&(this.subjectsStateMap[e]=t??void 0,this.fireSubscribers(e,t)),()=>{delete this.subjectsStateMap[e]}}fireSubscribers(e,t){for(const n of this.subscribersMap[e]??[])n(t??null);for(const n of this.watchers)n({type:e,event:t??null})}}const xe=new fe,be=()=>ge(xe.emitter,"dialog");function ye(){const e=D(),{closeAll:t}=be();return n=>{const a=Y(e)(n.href);return{...n,href:a,"aria-label":n.text,onClick:pe((i=>{n.onClick?.(i);const l=te(ee.SITE_URL);ve(a,n.target,l)&&(t(),i?.preventDefault(),e.push(((e,t="")=>e?.replace(t,"")||"/")(a,l)))}))}}}const ve=(e,t,n)=>F(e,t)&&!ee.SUB_PORTALS?.split(",")?.some(j(e))&&j(e)(n||"/"),Ne=e=>{try{return Array.isArray(e)&&e.length?{"data-aspects":JSON.stringify(e)}:{}}catch(e){return{}}},we=d((e=>{const{text:t,aboveText:n,appendLeft:a,appendRight:i,version:l="primary"}=e,r=Se(e)&&"hidden lg:block";return c("div",{className:u(Ce(e),"flex gap-xs"),children:[a?o("div",{className:u(r,ue[l]),children:a}):null,Se(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,i?o("div",{className:u(r,ue[l]),children:i}):null]})})),Ce=e=>{const{version:t,aboveText:n,rounded:a}=e;if("link"===t)return"";const i=""+(n?"py-2.5 px-9":"py-4 px-9");return u("group/btn items-center justify-center",Se(e)?i:"h-12 w-12 m-auto",{"rounded-full":a})},Se=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),ke=({className:e,rounded:t,version:n})=>["inline-block",me,n?de[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Ie=d((({disabled:e,children:t,method:n="LINK",href:a,...i})=>{const r=(({method:e,href:t})=>l((n=>{if("POST"!==e||!t)return;n.preventDefault(),n.stopPropagation();const{origin:a,pathname:i,searchParams:l}=new URL(t||""),r=document.createElement("form");r.setAttribute("method","POST"),r.setAttribute("action",[a,i].join(""));for(const[e,t]of l.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()}),[e,t]))({method:n,href:a}),s=ye()({onClick:r,href:a,...i}),c=t??o(we,{...s});return o(e?Re:Te,{...s,children:c})})),Te=d((({className:e="",href:t,rel:n,target:a,ariaLabel:i,version:l,rounded:r,onClick:s,type:c,data:d,children:m,text:u})=>o("a",{className:he({className:e,version:l,rounded:r}),href:t,rel:n,target:a,"aria-label":i||`Ссылка на ${u}`,role:t?"link":"button",onClick:s,type:c,...Ne(d),children:m}))),Re=d((({className:e,ariaLabel:t,version:n,rounded:a,children:i})=>o("button",{type:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:ke({className:e,rounded:a,version:n}),children:i})));function Be({version:e,handleClick:t,text:n="Вернуться назад",alwaysVisible:a=!1}){if(!n)return null;const i="primary"===e?"white":"black",l="primary"===e?"bg-primary-main":"bg-white";return c("div",{className:u(a?"flex":"hidden sm:flex","items-center gap-s"),children:[o("div",{className:u(he({className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center",rounded:!0}),l),onClick:t,children:o(se,{className:"w-4 h-4",image:{icon:"ArrowLeftIcon",iconVersion:i}})}),o(Ie,{version:"link",className:"group-data-secondary:text-white",text:n,ariaLabel:n,onClick:t,type:"button"})]})}const Pe=()=>{const[e,t]=a(false);return i((()=>{const e=globalThis.matchMedia?.("(max-width: 1024px)"),n=()=>{t(Boolean(e?.matches))};return e?.addEventListener("change",n),e?.matches&&t(!0),()=>{e?.removeEventListener("change",n)}}),[]),e},De={start:"@xl:self-start",center:"@xl:self-center",end:"@xl:self-end"},_e=(e,{className:t,imageAlign:n})=>e?o("div",{className:u("shrink-1/2 justify-self-center",n&&De[n],t),children:e}):null,Ee=d((({className:e,version:t="primary",defaultPadding:n,padding:a="",title:i,buttons:r,leftImage:s,rightImage:d,imageAlign:m,insetTitle:h,isImageAlwaysOnRight:p=!1,isImageSecondary:g=!1,backwardButton:f,children:x,...b})=>{const y=Pe(),v=D(),N=l((()=>v.back()),[]),w=b.options?.page?.common?.backwardButton,C=f&&!y;return c("div",{className:u("relative flex flex-col gap-3xl overflow-hidden",a||n,e),children:[C&&Be({version:t,handleClick:N,text:w}),i?o("div",{className:"relative h-full",children:i}):null,c("div",{className:u("grow relative flex flex-col @xl:flex-row gap-3xl w-full",{"self-start @xl:w-auto":s}),children:[_e(s,{imageAlign:m,className:"mx-auto"}),c("div",{className:u("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:[h,x]}),Me(P({...b,extraProps:{className:"@container-normal"}})),_e(d,{className:u("@xl:justify-self-end @xl:col-start-2",{[Ae(p)]:r,"col-start-2 self-center":p,"hidden @xl:block":g}),imageAlign:m}),r?o("div",{className:"self-end",children:r}):null]})]})]})})),Ae=e=>u(e?"row-span-2":"@xl:row-span-2"),Me=e=>e?.length?o("div",{className:"flex items-start justify-end",children:e}):null,Oe=(e,t="normal")=>e?.icon||e?.src?o("div",{className:u("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(se,{className:"w-6 h-6",image:{...e,iconVersion:e.iconVersion||t}})}):null,ze=d((({__html:e="",richVersion:t="",itemSize:n="list-m",isDotted:a=!0,children:i})=>e||i?o("div",{"data-component":"rich-text-container",children:o("div",{className:u(t,n,"md-container group-data-secondary:text-white group-data-gray:text-secondary-text",a?"":"without-dots"),dangerouslySetInnerHTML:e?{__html:e}:void 0,children:i})}):null)),Ve=(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,Fe=d((({children:e,...t})=>o("span",{className:u("font-sans",Object.values(t)),children:e}))),Le=(e,t)=>e?o(Fe,{color:"text-primary-text group-data-secondary:text-white",size:"text-h6",children:e},`label-${t}`):null,$e=(e,t)=>["label"in e?Le(e.label,t):null,"description"in e?o("span",{className:e.descriptionClassName,children:Ve(e.description,t)},String(t)):null,"__html"in e?o(ze,{...e},`rte-${t}`):null],je=d((({className:e,benefitsVersion:t,...n})=>c("div",{className:u("flex gap-m min-w-56 items-center",e),role:"listitem",children:["icon"in n?Oe(n.icon,t):null,o("div",{children:$e(n)})]}))),Ue=d((({className:e,benefitsVersion:t="normal",benefits:n})=>n?.length?o("div",{className:u("flex gap-x-m gap-y-s flex-col",e),role:"list",children:n.map(((e,n)=>o(je,{benefitsVersion:t,...e},String(n))))}):null)),qe=d((({className:e,benefits:t})=>t?.length?o("div",{className:u("grid grid-cols-[max-content_1fr] auto-rows-auto items-baseline gap-x-m gap-y-xs",e),role:"list",children:t.flatMap($e)}):null)),We=d((({isTabularBenefits:e,...t})=>o(e?qe:Ue,{...t}))),He=e=>Boolean(e?.src||e?.icon),Ye=(e,{className:t,buttonClassName:n,isVertical:a}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?o("div",{className:u("flex",a?"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(Ge(n))}):null,Ge=(e="")=>(t,n)=>{const{text:a,icon:i,iconRight:l,version:r,...s}=t||{},c=Ke(i,r),d=Ke(l,r);return a||i?.icon?o(Ie,{className:u("basis-full @lg:basis-auto",e),appendLeft:Xe({...i,iconVersion:c}),appendRight:Xe({...l,iconVersion:d}),version:r,text:a,...s},n?String(n):""):null},Ke=(e,t="secondary")=>{const n="secondary"===t?"color":"white";return e?.iconVersion||n},Xe=e=>He(e)&&o(se,{image:e,width:String(e?.size?.width||24),height:String(24)}),Je=(e=0,{fixed:t}={})=>(n=0)=>new Intl.NumberFormat("ru-RU",{minimumFractionDigits:t?e:0,maximumFractionDigits:e}).format(Number(n)||0),Ze=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(Qe)}):null)),Qe=({label:e,amount:t,unit:n},a)=>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(Fe,{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:[Je(2)(t)," ",n||"₽"]}):null]},String(a)),et=d((({className:e,tags:t})=>t?.length?o("div",{className:u("flex flex-wrap gap-xs",e),role:"list",children:t.map(tt)}):null)),tt=(e,t)=>o("div",{className:"p-xs border-solid border rounded-md border-gray",role:"listitem",children:o(Fe,{size:"text-m",font:"font-light",children:e})},String(t)),nt={XXL:"list-l",XL:"list-l",L:"list-m",M:"list-m",S:"list-s",XS:"list-s"},at=d((({className:e,padding:t,defaultPadding:n,title:a,description:i,headlineVersion:l="L",align:r="text-left",benefitsVersion:s,isTabularBenefits:d,isDotted:m=!0,benefits:u,__html:h,richVersion:p,isFullWidthTitle:g,priceList:f=[],tags:x=[],buttons:b,image:y,imageOptions:{imageAlign:v="center",directionRight:N=!0,isImageAlwaysOnRight:w,isImageSecondary:C=!1}={},backwardButton:k,children:I,...T})=>{const R=y?.src?o(se,{image:y}):null,B=o(S,{title:a,description:i,headlineVersion:l,align:r,isEmbedded:!0}),P=u?.filter((e=>"__html"in e||"label"in e||"description"in e));return o(Ee,{className:e,padding:t,defaultPadding:n,...g?{title:B}:{insetTitle:B},...it(R,N),isImageSecondary:C,imageAlign:v,isImageAlwaysOnRight:w,buttons:Ye(b),backwardButton:k,...T,children:c("div",{className:"flex flex-col sm:gap-xl gap-4xl",children:[P?.length?o(We,{benefitsVersion:s,isTabularBenefits:d,benefits:P}):null,h?o(ze,{richVersion:p,__html:h,isDotted:m,itemSize:nt[l]}):null,I,f?.length?o(Ze,{priceList:f}):null,lt(x)]})})})),it=(e,t)=>t?{rightImage:e}:{leftImage:e},lt=e=>e?.length?o(et,{tags:e}):null;class rt{_;constructor(e){this._=e}of(e){return new this.constructor(e instanceof rt?e._:e)}filter(e){return this.from(this.entries().filter(e))}map(e){return this.from(this.entries().map(e))}flatMap(e){return this.from(this.entries().flatMap(e))}reduce(e,t){return this.entries().reduce(e.bind(this),t)}}const st=()=>!0,ot=(e,t)=>(...n)=>e(...n)&&t(...n),ct=(...e)=>(...t)=>{const[,n]=function(e){if(!e)throw new Error("Value should be fulfilled");return e}(e.find((([e])=>e(...t))));return n(...t)};const dt=e=>Boolean(e&&Array.isArray(e)),mt=e=>Boolean(e&&"object"==typeof e&&!dt(e)),ut=e=>e;function ht(e){return e instanceof rt?e._:e}class pt extends rt{from(e){return this.of(e.map(((e=ut)=>([,t])=>e(t))(ht)))}entries(){return(this._??[]).map(((e,t)=>[t,this.of(e)]))}size(){return this._?.length??0}get(e){return this.of("number"==typeof e?this._?.[e]:void 0)}set(e,t){return this.of(dt(this._)?Array.from({length:Math.max(this._.length,Number(e)+1)},((n,a)=>a===e?t:this._[a])):Array.from({length:Number(e)+1},((n,a)=>a===e?t:void 0)))}}class gt extends rt{from(){return this}entries(){return[]}size(){return 0}get(e){return this.of(void 0!==e?void 0:this._)}set(e,t){return this.of(t)}}class ft extends rt{from(e){return this.of(Object.fromEntries(e.map((([e,t])=>[e,ht(t)]))))}entries(){return Object.entries(this._??{}).map((([e,t])=>[e,this.of(t)]))}size(){return Object.keys(this._??{}).length}get(e){return this.of("string"==typeof e?this._?.[e]:void 0)}set(e,t){return this.of({...this._,[e]:t})}}class xt extends rt{proto=ct([e=>dt(this._)||"number"==typeof e,()=>pt.prototype],[e=>mt(this._)||"string"==typeof e,()=>ft.prototype],[st,()=>gt.prototype]);from(e){return this.proto(void 0).from.call(this,e)}entries(){return this.proto(void 0).entries.call(this)}size(){return this.proto(void 0).size.call(this)}get(e){return this.proto(e).get.call(this,e)}set(e,t){return this.proto(e).set.call(this,e,t)}}const bt=e=>e instanceof rt?e:new xt(e),yt=e=>{const t=(t,...n)=>ht(e(bt(t),...n));return t.fn=e,t},vt=[],Nt=e=>e instanceof Function?e:t=>e===t,wt=e=>(t,n,a=vt)=>bt(t).entries().reduce(((t,[n,i])=>wt(e)(i,t,a.concat(n))),e(n,[a,bt(t)])),Ct=yt(((e,[t,n])=>{const[a,...i]=t;return e.set(a,i.length?Ct(e.get(a),[i,n]):n)})),St=yt(((e,t)=>t.reduce(Ct.fn,e))),kt=e=>wt(((e,[t,n])=>It(n)?[...e,[t,ht(n)]]:e))(e,[]),It=e=>0===e.size();yt(((e,t=vt)=>t.reduce(((e,t)=>e.get(t)),e)));const Tt=yt(((e,[t,...n])=>n.length?e.set(t,Tt(e.get(t),n)):e.filter((([e])=>e!==t)))),Rt=(Bt=["$ref"]).map(((e,t)=>n=>Nt(e)(n[t+n.length-Bt.length]))).reduceRight(ot,st);var Bt;const Pt=(e,t)=>(e=>e.includes("#")?e.substring(e.indexOf("#")+1).split("/").filter(Boolean):[])(t).reduce(Dt,e),Dt=ct([dt,(e,t)=>e[parseInt(t,10)]],[mt,(e,t)=>e[t]],[st,ut]),_t=(e,t)=>((e,t={})=>n=>St(t,kt(n).map((t=>e(t)))))((([e,n])=>{return Rt(e)?[(a=e,a.slice(0,-1)),Pt(t(n),n)]:[e,n];var a}))(e),Et=e=>kt(e).filter(((e=ut)=>([t])=>e(t))(Rt)),At=e=>{return t=Et(e).map((([,e])=>e)),[...new Set(t)];var t};async function Mt(e,t){try{return e?await Ot(e,t):null}catch(e){console.error(e)}return null}const Ot=async(e,t)=>(await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}})).json(),zt=e=>[...new Set(e)],Vt={},Ft=["/portal-resources"],Lt=(e,t)=>_t(e,(e=>t?.[e])),$t=(e,t)=>{const n=At(e),[l,r]=a({});return i((()=>{jt(n).then(r)}),[n.join()]),n.length?Lt(e,{...t,...l}):e},jt=async(e,t={})=>{if(e.length){const n=await(async e=>Object.fromEntries((await Promise.allSettled(zt(e).filter((e=>!Ft.some((t=>e.startsWith(t))))).map((async e=>[e,Vt[e]||=await Ot(e)])))).filter((e=>"fulfilled"===e.status)).map((({value:e})=>e))))(e),a={...t,...n},i=Object.entries(n).flatMap((([,e])=>At(e)));return i.length?jt(i,a):a}return t};function Ut(e,t={}){const n=d((t=>{const n=$t((({block:e,options:t,className:n,defaultPadding:a,padding:i,isTheme:l,version:r,children:s,...o})=>o)(t),t.options?.page?.fallback);return o(e,{...t,...n})}));return Object.assign(n,t),n}const qt=Ut((({className:e,padding:t,defaultPadding:n,...a})=>o(g,{className:u("overflow-hidden flex flex-col gap-3xl box-border",e),padding:"p-0",...a,children:o(at,{defaultPadding:n||"p-6xl",padding:t,className:"grow h-full",...a})})),{childrenTypes:["UnitBlock"]}),Wt=d((e=>{const{items:t}=e.options?.page?.adSourceBook??{},n=r((()=>Ht(0,t?.length)),[t]),a=t?.[n];return a?o(qt,{suppressHydrationWarning:!0,...a,...e}):o(g,{...e,children:o(f,{})})})),Ht=(e=0,t=0)=>Math.floor(Math.random()*(t-e)+e),Yt=(e,t=!1)=>{if("string"==typeof e)return e.split("-").reverse().join(".");{const n=String(e.getDate()).padStart(2,"0"),a=String(e.getMonth()+1).padStart(2,"0"),i=String(e.getFullYear());return t?`${i}-${a}-${n}`:`${n}.${a}.${i}`}},Gt=e=>e?.replace(/[^+\d]/g,""),Kt="/api/v1";const Xt=e=>e?{phone:Gt(e)}:{},Jt=(e,t="birthday")=>e?{[t]:Yt(e)}:{},Zt=(e,t=!0)=>({[t?"regionBranch":"region"]:e}),Qt=(e,t=!0)=>({[t?"email":"mail"]:e}),en=(e="")=>e&&"+7 ("!==e?{secondaryPhoneNumber:Gt(e)}:{},tn=({aspectsAttributes:e,aspects:t,ev:n})=>{for(const{aspectName:a,params:i}of e??[])t[a??""]?.(n,i)};function nn(){return nn._impl()}nn._impl=()=>({assign:(e,t)=>{globalThis.open(e,t||"_self")},get origin(){return globalThis.location.origin},get href(){return globalThis.location.href}}),nn.setup=e=>{nn._impl=e};const an="rshb-query-params";function ln(){const e=globalThis.location?.search||globalThis.sessionStorage?.getItem(an)||"";return e&&globalThis.sessionStorage?.setItem(an,e),e}const rn=e=>{const t=e.target?.closest("a"),n=nn();if(V(t?.href)&&!t?.href?.startsWith(n.origin)){e.preventDefault(),e.stopPropagation();const a=(e=>{const t=ln();if(!V(e)||!t)return e;const n=new URL(e);for(const[e,a]of new URLSearchParams(t))n.searchParams.set(e,a);return n.toString()})(t?.href)||t?.href;a&&n.assign(a,t?.target)}};function sn(){return sn._impl()}function on(e=!1){const[t,n]=a(e),i=l((()=>n(!0)),[]),r=l((()=>n(!1)),[]),s=l((()=>n((e=>!e))),[]);return[t,{setValue:n,setTrue:i,setFalse:r,toggle:s}]}sn._impl=()=>({forwardQuery:rn}),sn.setup=e=>{sn._impl=e};const cn=e=>t=>t&&Object.entries(e??{}).flatMap((([e,n])=>n?n(t[e]):[]))||[],dn=e=>!e?.length,mn=e=>t=>n=>e(n)?[]:[t],un={},hn=[];const pn=(e,t)=>e&&t&&(e===t||Object.keys({...e,...t}).every((n=>e[n]===t[n])));function gn(e,{resetOnSubmit:t,formValidator:n,normalizer:o,onChange:c,onSubmit:d}={}){const[m,u]=function(e,t,n){const[r,s]=a(e),o=l((e=>s((a=>{const i=e instanceof Function?e(a):e,l=t?t(i):i,r=pn(i,l)?i:l;return!pn(a,r)&&n?.(r),r}))),[t,n]);return i((()=>{t&&s(t)}),[t]),[r,o]}(e,o,c),[h,{setTrue:p,setFalse:g}]=on(!1),f=s({}),[x,{isValid:b,errors:y}]=function(e,t){const n=r((()=>t?.(e)??un),[t,e]),a=r((()=>cn(n)(e)??hn),[n,e]),i=dn(a);return[n,{isValid:i,errors:a}]}(m,n),v=l(((e,t={})=>{const{parse:n,format:a,onChange:i}=t,l=m[e],r=h||f.current?.[String(e)],s=t?.validator??x[e],o=r&&s?s(l):[];return{value:a?a(l):l,isDirty:r,errors:s&&o,error:o[0],onChange:t=>{f.current||={},f.current[String(e)]=!0;const a=n?n(t):t;i?.(a),u((t=>({...t,[e]:a})))}}}),[m,h,x,u]),N=l((e=>{f.current=e,u(e)}),[u]),w=l((()=>{f.current={},g(),u(e)}),[e,u]),C=l((e=>{e.preventDefault(),b?(t&&w(),d?.(m,e)):p()}),[t,m,b,w,d]);return[m,{errors:y,field:v,update:N,reset:w,onSubmit:C}]}const fn=d((e=>{const{className:t,title:n,children:a,...i}=e;return o(g,{className:t,defaultPadding:"p-6xl",...i,children:c("div",{className:"container space-y-lg",children:[n?o(N,{headingType:"h3",title:n,className:"@xl:text-center"}):null,a]})})}));function xn(e,t={}){const{open:n,close:a,...i}=be();return{open:l(((i,l={})=>n({dialog:o(e,{...t,...i,onClose:()=>{a(),i.onClose?.()}}),...l})),[e,n,a]),close:a,...i}}function bn(e,t,n,a){i((()=>{if(e&&n)return e.addEventListener(t,n,a),()=>{e.removeEventListener(t,n,a)}}),[e,t,n])}function yn(e){const t=s(null),n=l((n=>{t&&t.current&&n.target instanceof Node&&!t.current.contains(n.target)&&e()}),[e]);return bn(globalThis.document,"click",n),t}const vn=({label:e,errors:t})=>e&&t?`${e}*`:e,Nn=()=>{},wn="border border-solid outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text rounded",Cn=e=>e?wn:"border-error",Sn=e=>e?o(Fe,{size:"text-m",color:"text-primary-text",font:"font-light",children:e}):null,kn=d((({key:e,className:t,id:n,name:a,type:r="text",label:d,placeholder:m,value:h="",valid:p=!0,pattern:g,autoFocus:f=!1,isTextarea:x=!1,disabled:b=!1,children:y,onChange:v,onFocus:N,onBlur:w})=>{const C=s(null),S=l((e=>{const t=(e.target?.value??"").trimStart();v&&v(t)}),[v]);i((()=>{f&&C.current?.focus()}),[f,C]);const k=y?"pr-3xl":"",I=Cn(p),T=d??a??n;return c("div",{className:u("relative",t),children:[c("label",{className:"space-y-xs",children:[Sn(d),x?o("textarea",{className:u("block resize-y min-h-24",In,I),id:u("textarea",n),value:h,name:a||n,placeholder:m,disabled:b,"aria-label":T,onChange:S,onFocus:N,onBlur:w},e):o("input",{ref:C,className:u("h-14",In,k,I),id:n,type:r,value:h,name:a||n,placeholder:m,pattern:g,disabled:b,"aria-label":T,onChange:S,onFocus:N,onBlur:w},e)]}),y]})})),In="w-full border rounded-md text-primary-text outline-none p-m",Tn=e=>o("div",{className:"h-6",children:e?o(Fe,{size:"text-xs",font:"font-light",color:"text-error",children:e}):null}),Rn=e=>e?.value||"",Bn=e=>{const{url:t,query:n,queryPrefix:a,requestData:i={},responseItemHandler:l=Rn}=e,r=(s=l,e=>(e?.suggestions||[]).map((e=>{const t=s(e);return{...e,processedValue:t}})));var s;const o=`${a?`${a}, `:""}${n}`;return fetch(`${Kt}/suggestions/${t}`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:10,...i,query:o})}).then((e=>e.json())).then(r)},Pn={url:"suggest/address"},Dn={name:{url:"suggest/fio",requestData:{parts:["NAME"],gender:"UNKNOWN"}},surname:{url:"suggest/fio",requestData:{parts:["SURNAME"],gender:"UNKNOWN"}},middleName:{url:"suggest/fio",requestData:{parts:["PATRONYMIC"],gender:"UNKNOWN"}},email:{url:"suggest/email"},dulSubdivisionCode:{url:"suggest/fms_unit",responseItemHandler:e=>e?.data?.code?.replace("-","")||""},dulIssuedBy:{url:"suggest/fms_unit"},organizationName:{url:"suggest/party"},inn:{url:"suggest/party",responseItemHandler:e=>e?.data?.inn||""},addressRegistration:Pn,addressFact:Pn,organizationAddress:Pn,addressCourier:Pn},_n=()=>ge(xe.emitter,"popup"),En=d((({options:e,container:t,onChange:n})=>{const[l,r]=a(-1),s=t=>{const a=e.length-1;"ArrowDown"===t.key?r(l<a?l+1:0):"ArrowUp"===t.key?r(l>0?l-1:a):"Enter"===t.key&&e[l]&&(t.preventDefault(),n(e[l]))};return i((()=>(t.addEventListener("keydown",s),()=>t.removeEventListener("keydown",s))),[l]),o("div",{className:"bg-white text-l overflow-y-auto overflow-x-hidden rounded-md shadow-2xl",role:"list",children:e?.map(((e,t)=>o("div",{className:u("flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative",{"bg-main-divider":l===t}),role:"listitem",onMouseDown:()=>n(e),children:o("span",{className:"min-h-6",children:e.processedValue})},t.toString())))})}));function An({isOpen:e,value:t,name:n,onChange:c,onDaDataChange:d,daDataQueryPrefix:m}){const u=s(t),h=s(t),[p,g]=a([]),f=_n(),x=Dn[n],b=l((()=>{h.current=t,f.close()}),[t]),y=l((e=>{b(),h.current=e.processedValue,c?.(e.processedValue),d?.(e)}),[b,c]),v=s(null),N=r((()=>async e=>{if(!x)return;const t=await Bn({url:x.url,responseItemHandler:x.responseItemHandler,requestData:{...x?.requestData},query:e,queryPrefix:m});t?.length&&g(t)}),[m]),w=r((()=>((e,t=600)=>{let n;const a=(...i)=>{a.dispose(),n=setTimeout((()=>{e(...i)}),t)};return a.dispose=()=>{n&&clearTimeout(n)},a})(N,300)),[N]);return i((()=>{if(!e||!v.current||h.current===t)return void b();const n=v.current,{top:a,left:i,width:l,height:r}=n.getBoundingClientRect();t&&u.current!==t&&(w(t),u.current=t),f.open({popup:o(En,{options:p,container:n,value:t,onChange:y}),top:a+globalThis.scrollY+r,left:i,width:l})}),[e,p,t,y]),v}const Mn=d((({className:e,label:t,value:n="",placeholder:a,error:r,errors:s,onChange:d=Nn,onDaDataChange:m,onBlur:h,isTextarea:p,type:g,name:f="",daDataQueryPrefix:x,isInteger:b=!1,maxLength:y,dadata:v=!1,disabled:N=!1})=>{const[w,{setFalse:C,setTrue:S}]=on(),k=yn(C),I=l((e=>{v&&!w&&S(),y?e.length<=y&&d(e):d(e)}),[v,w,d]);i((()=>{b&&n&&d(On(n))}),[n]);const T=An({isOpen:w&&v,name:f,value:n,daDataQueryPrefix:x,onChange:d,onDaDataChange:m});return c("div",{className:u("shrink-0 w-full",e),ref:k,onBlur:C,onFocus:S,children:[o("div",{ref:T,children:o(kn,{disabled:N,type:g||"text","aria-label":t,label:vn({label:t,errors:s}),valid:Boolean(!r),value:n,onChange:I,onBlur:h,isTextarea:p,placeholder:zn(a,s,t)})}),Tn(r)]})})),On=(e="")=>e.replace(/[^\d]+/g,""),zn=(e,t,n)=>t&&!n?`${e}*`:e,Vn=e=>e?.text||e?.key||"",Fn=(e,t)=>e?.length&&t?.trim()?e.filter((e=>e.text?.toLocaleLowerCase().includes(t?.trim().toLocaleLowerCase()))):e,Ln=d((({popupRef:e,options:t,value:n,query:a,onChange:i,iconVersion:l})=>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:Fn(t,a).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(),i&&i(e)},children:[o("span",{className:"min-h-6",children:Vn(e)}),o(J,{name:"DoneSimpleIcon",width:"16",height:"16",iconVersion:l,className:u("absolute right-4 pt-3xs",{hidden:e.key!==n?.key})})]},e.key)))}):null));const $n=d((({className:e,label:t,options:n=[],value:r,valid:d=!0,isBorder:m=!0,placeholder:h="",isSearch:p=!1,disabled:g=!1,iconVersion:f="black",onChange:x})=>{const[b,{setFalse:y,setTrue:v}]=on(),[N,w]=a(""),C=qn(g,n.length),S=b&&!C,k=l((()=>{C||v()}),[C]),I=l((()=>{w(""),y()}),[]),T=function({isOpen:e,options:t,value:n,query:a,onChange:r,onClose:c,iconVersion:d}){const m=_n(),u=l((()=>{m.close(),c&&c()}),[c]),h=l((e=>{u(),r&&r(e)}),[u,r]),p=s(null),g=yn(u);return i((()=>{if(!e||!p.current)return;const i=p.current,{top:l,left:r,width:s,height:c}=i.getBoundingClientRect();m.open({popup:o(Ln,{popupRef:g,options:t,value:n,query:a,onChange:h,iconVersion:d}),top:l+window.scrollY+c,left:r,width:s})}),[e,t,n,a,h]),p}({isOpen:b,options:n,value:r,query:N,onChange:x,onClose:I,iconVersion:f});return c("div",{className:u("space-y-xs",e),children:[Sn(t),c("div",{className:u("relative",S?"z-20":"z-10"),ref:T,children:[c("div",{className:u("h-14 [&>*]:p-m pr-6 text-l flex items-center justify-between text-primary-text relative z-10 overflow-hidden",Un(m,d,C)),onClick:S?I:k,children:[o("p",{className:"line-clamp-2 text-ellipsis",children:Vn(r)||h}),jn(S,f)]}),p&&S?o("div",{className:u("absolute top-0 w-full z-20"),children:o(kn,{type:"text",value:N,autoFocus:!0,disabled:C,onChange:w})}):null]})]})})),jn=(e,t)=>o(J,{className:u("absolute right-0 flex self-center",{"rotate-180":!e}),iconVersion:t,name:"ArrowUpIcon",width:"16",height:"16"}),Un=(e,t,n)=>u(e?"border rounded-md ":"",e&&!n?"hover:border-primary-hover":"",n?"bg-main-divider":"cursor-pointer ",t?"border-gray":"border-error"),qn=(e,t)=>e||0===t,Wn=d((({className:e="",label:t,error:n,errors:a,...i})=>c("div",{className:e,children:[o($n,{...i,valid:!n,label:vn({label:t,errors:a})}),Tn(n)]}))),Hn=[{text:"Торговый эквайринг",key:"trade"},{text:"СБП-эквайринг",key:"sbp"},{text:"Интернет-эквайринг",key:"internet"},{text:"Все виды эквайринга",key:"all"}],Yn=d((({field:e,input:t})=>o(Wn,{label:"Вид эквайринга",placeholder:"Выберите эквайринг",options:Hn,...e(t?.name??"")}))),Gn=(e="")=>Boolean("trade"===e||"all"===e),Kn=e=>null!=e,Xn=new Map,Jn=(e,t=Xn)=>n=>{const a=Qn(n),i=t.get(a);if(a&&Kn(i))return i;const l=e(...n);return a&&Kn(l)&&t.set(a,Promise.resolve(l)),l},Zn=e=>Boolean(e?.every((e=>Array.isArray(e)?Zn(e):!e||"string"==typeof e))),Qn=e=>Zn(e)?e.toString():"",ea=e=>Boolean(e&&Array.isArray(e)&&1===e.length&&"string"==typeof e[0]);function ta(e,t,{fallback:n,cache:l}={}){const s=r((()=>na(e)),[e]),[o,c]=a(void 0),[d,m]=a(void 0);i((()=>{if(!s.some(Kn))return;let e=!1;const n=(t,n)=>{e||(c(t),m(n))};return(async()=>{try{n(await Jn(t,l)(s))}catch(e){n(void 0,e)}})(),()=>{e=!0}}),[t,l,s]);const u=n&&ea(s)&&n[s[0]];return{data:!o&&u?u:o,error:d,mutate:()=>Promise.resolve(void 0)}}function na(e){return Array.isArray(e)?e:e instanceof Function?na(e()):[e]}const aa=`${Kt}/branches`,ia=[];const la=async e=>await Mt(e,{method:"GET"})||ia;function ra(e=!1){const{data:t}=ta(`${Kt}${e?"/premiumBranchesByRegions":"/branchesByRegions"}`,Ot);return Array.isArray(t)?t:[]}const sa=(e="")=>"ULTRASERVICE"===e,oa=d((({field:e,input:t,params:n})=>{const a=sa(n?.typeForm),l=e("region"),r=l?.value?.key,s=l?.value?.text,c=a?ra(a)?.find((e=>e?.region===s))?.branches:function(e){const{data:t}=ta(e?`${aa}?regionCode=${e}`:null,la);return t||ia}(r)?.filter((e=>e?.address));return i((()=>{""!==l?.value?.key&&e?.("addressBranch")?.onChange?.("")}),[l?.value]),o(Wn,{label:"Отделение",placeholder:"Выберите отделение",options:(c||[]).map((({address:e=""})=>({key:e,text:e}))),...e(t?.name??""),isSearch:!0})})),ca=(e,{normalize:t,format:n})=>{const{value:i,onFocus:r,onBlur:s,onChange:o}=e,[c,d]=a(!1),m=l((e=>{d(!0),r&&r(e)}),[]),u=l((()=>{d(!1),o&&o(t(i)),s&&s()}),[o,i]);return{value:c||!n?i:n(i),onFocus:m,onBlur:u}},da=(e,t,n)=>Math.max(t,Math.min(e,n));function ma(e){const t=(e||"").replace(/\D/g,""),n=parseInt(t,10);return Number.isNaN(n)?0:n}function ua({list:e=[],min:t,max:n,step:a,value:i=e[0]||t,disabled:l,onChange:r}){const s=e.length?e.indexOf(i):i,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:u("w-2 h-2 rounded-full",s<=t||l?"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:a,value:s,disabled:l,onChange:t=>{const n=ma(t.target?.value),a=e.length?e[n]:n;r&&r(a||0)}})})]})}const ha=1,pa=100,ga=d((e=>{const{className:t,title:n,items:a=[],list:i=[],min:r=(i.length?0:ha),max:s=(i.length?i.length-1:pa),step:d=1,value:m=i[0]||r,disabled:h=!1,onChange:p}=e,g=ca(e,{normalize:(e=0)=>i.length?fa(i)(e):da(e,r,s),format:Je()}),f=l((e=>{p&&p(ma(e.target?.value))}),[p]);return c("div",{className:t,children:[c("label",{className:"block relative",children:[n?o(Fe,{size:"text-m",font:"font-light",color:"text-primary-text",children:n}):null,o("input",{className:u("text-h3 w-full h-14","pl-m mt-xs box-border","text-primary-text",wn,"disabled:border-gray disabled:bg-main-divider"),disabled:h,onChange:f,...g}),ua({list:i,min:r,max:s,step:d,disabled:h,value:m,onChange:p})]}),xa(a)]})})),fa=e=>t=>e.reduce(((e,n)=>Math.abs(n-t)<Math.abs(e-t)?n:e)),xa=e=>o("div",{className:"flex justify-between my-xs",children:e.map(((e,t)=>o(Fe,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e},String(t))))}),ba=["От 1 000 ₽","До 1 000 000 000 ₽"],ya=d((({field:e,input:t})=>o(ga,{title:"Сумма, ₽",items:ba,min:1e3,max:1e9,...e(t?.name??"")}))),va=d((({field:e,input:t})=>o(Mn,{label:"Годовая выручка, ₽",...e(t?.name??"")}))),Na="client",wa=[{key:Na,text:"Клиент"},{key:"representative",text:"Представитель клиента"}],Ca=d((({field:e,input:t})=>o(Wn,{label:"Тип обратившегося",...t,options:wa,...e("applierType")}))),Sa=d((({field:e,input:t})=>o(Mn,{label:"ФИО или должность обслуживавшего Вас сотрудника Банка",...e(t?.name??"")}))),ka=({today:e,firstDayOfWeek:t,totalDays:n,currentMonth:a,currentYear:i,min:l,max:r,onDateClick:s})=>{const c=[];let d=1;for(let m=0;m<6;m++){const u=[];for(let c=0;c<7;c++)if(0===m&&c<t)u.push(o("td",{},`empty-${c}`));else if(d>n)u.push(o("td",{},`empty-${c}`));else{const t=new Date(i,a,d),n=Ia(t,e),c=Ta(t,l,r);u.push(o("td",{children:o("div",{className:Ra(n,c),onClick:()=>!c&&s(t),children:d})},`day-${d}`)),d++}c.push(o("tr",{children:u},`row-${m}`))}return c},Ia=(e,t)=>t&&e.toDateString()===t.toDateString(),Ta=(e,t,n)=>t&&e.getTime()<t.getTime()||n&&e.getTime()>n.getTime(),Ra=(e=!1,t=!1)=>u("p-s text-center rounded-md border",{"border-transparent hover:bg-gray":!e},t?"text-gray hover:bg-transparent":"cursor-pointer"),Ba=["Пн","Вт","Ср","Чт","Пт","Сб","Вс"],Pa=d((({today:e,currentMonth:t,currentYear:n,min:a,max:i,onDateSelect:l=Nn})=>{const{firstDayOfWeek:s,totalDays:d}=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:Ba.map(((e,t)=>o("th",{className:"p-s",children:e},String(t))))})}),o("tbody",{children:ka({firstDayOfWeek:s,today:e,totalDays:d,currentYear:n,currentMonth:t,min:a,max:i,onDateClick:l})})]})})),Da=["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"];function _a(e,t){const n=e.replace(/\D/g,"");if(""===n||n.length===t.length)return e;const a=[...t],i=a.findIndex(Ea),l=a.map(((e,t)=>Ma(e)?a.slice(0,t).filter(Ma).length:-1)),r=a.map(((e,t)=>Aa(e)?e:n.charAt(l[t])||e)),s=l.indexOf(n.length-1)+1;return r.slice(0,Math.max(i,s)).join("")}const Ea=e=>"_"===e,Aa=e=>/\d/.test(e),Ma=e=>Ea(e)||Aa(e),Oa=1940,za={name:"CalendarIcon",iconVersion:"black",width:"24",height:"24"},Va=d((({setSelectedMonth:e,setSelectedYear:t,className:n,value:l,disabled:r,onChange:d,onClick:m})=>{const h=s(null),[p,g]=a(l||"");return i((()=>{g(l||"")}),[l]),i((()=>{La({inputValue:p,setSelectedMonth:e,setSelectedYear:t,onChange:d})}),[p]),c("div",{onClick:()=>{null!==h.current&&h.current.focus(),m?.()},className:u("relative",n),children:[o("input",{ref:h,className:"h-full w-full px-m text-l text-black focus-visible:outline-none",value:p,type:"text",onChange:e=>{const t=e.target?.value;"string"==typeof t&&t?.length<11&&g(_a(t,"__.__.____"))},onBlur:()=>{Fa(p)?La({inputValue:p,setSelectedMonth:e,setSelectedYear:t,onChange:d}):g(l||"")},disabled:r}),r?null:o(J,{className:"mr-s",...za})]})})),Fa=e=>{const[t,n,a]=e.split(".");if((e=>Number(e)>=Oa&&Number(e)<=(new Date).getFullYear())(a)&&(e=>Number(e)>0&&Number(e)<13)(n)){const e=new Date(Number(a),Number(n)-1,1);let i=0;for(;e.getMonth()===Number(n)-1;)e.setDate(e.getDate()+1),i++;return Number(t)>0&&Number(t)<=i}return!1},La=({inputValue:e,setSelectedMonth:t,setSelectedYear:n,onChange:a})=>{if(Fa(e)){const{day:i,month:l,year:r}=(e=>{const[t,n,a]=e.split(".");return{day:Number(t),month:Number(n)-1,year:Number(a)}})(e);t(l),n(r),a?.(new Date(r,l,i))}},$a=({handleChangeVisibleCalendar:e,value:t,valid:n,onChange:a,setSelectedMonth:i,setSelectedYear:l,disabled:r=!1})=>o(Va,{onChange:a,disabled:r,onClick:e,value:t&&Yt(t),setSelectedMonth:i,setSelectedYear:l,className:u("flex justify-between items-center h-14 border rounded-md cursor-pointer hover:border-black active:border-black focus:border-black",n?"border-gray":"border-error")}),ja=Da.map((e=>({key:e}))),Ua=Array.from({length:(new Date).getFullYear()-Oa+1},((e,t)=>Oa+t)).reverse().map((e=>({key:String(e)}))),qa=(e,t)=>{const n=new Date(e,t,1);let a=0;for(;n.getMonth()===t;)a++,n.setDate(n.getDate()+1);return a},Wa=({maxDateOfMonth:e,selectedYear:t,selectedMonth:n,value:a,onChange:i})=>{a&&i?.(new Date(t,n,Math.min(e,a.getDate())))},Ha={name:"ArrowUpIcon",iconVersion:"black",width:"24",height:"24"},Ya={className:"min-w-32",iconVersion:"black",isBorder:!1},Ga=d((({className:e="",label:t="",value:n,valid:r=!0,minDate:s,maxDate:d,disabled:m,onChange:h})=>{const[p,{setValue:g,setFalse:f}]=on(!1),[x,b]=a(n?.getMonth()||(new Date).getMonth()),[y,v]=a(n?.getFullYear()??(new Date).getFullYear()),N=l((e=>{h?.(e),f()}),[h]),{handlePrevMonth:w,handleNextMonth:C,handleSelectMonth:S,handleSelectYear:k,monthsOptions:I,yearsOptions:T,handleChangeVisibleCalendar:R,ref:B}=(({onShowCalendar:e,showCalendar:t,selectedMonth:n,onMonthSelect:a,onYearSelect:i,selectedYear:r,onChange:s,value:o})=>{const c=yn(l((()=>t&&e(!1)),[t]));return{handleChangeVisibleCalendar:l((()=>e(!t)),[t]),handleNextMonth:l((()=>{n+1<=11?a(n+1):(a(0),i(r+1))}),[n]),handlePrevMonth:l((()=>{n-1>=0?a(n-1):(a(11),i(r-1))}),[n]),handleSelectMonth:l((({key:e})=>{a(Da.indexOf(e));const t=qa(r,Da.indexOf(e));Wa({maxDateOfMonth:t,selectedYear:r,selectedMonth:Da.indexOf(e),value:o,onChange:s})}),[o]),handleSelectYear:l((({key:e})=>{i(Number(e)),o&&s?.(new Date(Number(e),n,o?.getDate()))}),[o]),monthsOptions:ja,yearsOptions:Ua,ref:c}})({onYearSelect:v,onMonthSelect:b,onShowCalendar:g,selectedYear:y,selectedMonth:x,showCalendar:p,onChange:h,value:n}),P=((e,t)=>{const[n,l]=a(!1);return i((()=>{const n=()=>{if(e?.current){const{top:n}=e.current.getBoundingClientRect();l(n>t)}};return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}),[e]),n})(B,370);return c("div",{className:u("space-y-xs",e),ref:B,children:[Sn(t),c("div",{className:"relative",children:[$a({handleChangeVisibleCalendar:R,value:n,valid:r,onChange:h,disabled:m,setSelectedMonth:b,setSelectedYear:v}),p&&!m?c("div",{className:u("absolute bg-white z-20 select-none",{"bottom-full":P}),children:[c("div",{className:"flex gap-s",children:[o("div",{className:"my-auto",onClick:w,children:o(J,{...Ha,className:"-rotate-90 cursor-pointer"})}),o($n,{onChange:S,value:{key:Da[x]},options:I,...Ya}),o($n,{onChange:k,value:{key:String(y)},options:T,...Ya}),o("div",{className:"my-auto",onClick:C,children:o(J,{...Ha,className:"rotate-90 cursor-pointer"})})]}),o(Pa,{today:n,currentMonth:x,currentYear:y,min:s,max:d,onDateSelect:N})]}):null]})]})})),Ka=d((({className:e,label:t,error:n,errors:a,...i})=>c("div",{className:u("shrink-0 w-full",e),children:[o(Ga,{label:vn({label:t,errors:a}),valid:Boolean(!n),...i}),Tn(n)]}))),Xa=d((({field:e,input:t})=>o(Ka,{label:t?.label||"Дата рождения",...e(t?.name??"")}))),Ja=d((({field:e,input:t})=>o(Mn,{label:"Количество объектов инкассации",isInteger:!0,...e(t?.name??"")}))),Za=d((({field:e,input:t})=>o(Mn,{className:"col-span-2",...e(t?.name??""),placeholder:"Ваше сообщение",isTextarea:!0}))),Qa=d((({className:e,viewBox:t,fill:n="none",width:a,height:i,paths:l,...r})=>o("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:n,width:a,height:i,children:l.map((({d:e,fill:t,...n},a)=>{const i={...r,...n};return o("path",{d:e,fill:t||"currentColor",stroke:i.stroke,strokeLinecap:i.strokeLinecap,strokeLinejoin:i.strokeLinejoin,strokeWidth:i.strokeWidth,strokeMiterlimit:i.strokeMiterlimit},a)}))}))),ei="appearance-none w-5 h-5 border-solid flex-none",ti=[{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"}],ni=d((({className:e,value:t,text:n,disabled:a,isRadio:i,onChange:r})=>{const s=l((e=>{a||(e.preventDefault(),r&&r(!t))}),[r,a,t]),d=i?o("div",{className:"absolute left-1 w-3 h-3 rounded-full bg-primary-main"}):o(Qa,{paths:ti,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:u("flex items-center relative group/box",ii(a)),onClick:s,children:[o("div",{className:u(ei,"m-0",i?"rounded-full border-2":ri(t),!a&&t?"border-primary-main":"border-gray",a?"bg-main-disabled":"group-hover/box:border-primary-hover"),role:li(i),"aria-checked":Boolean(t),"aria-disabled":Boolean(a),"aria-label":n}),t?d:null,ai(n)]})})})),ai=e=>e?o("div",{className:"ml-s",children:o(Fe,{size:"text-l",font:"font-light",children:e})}):null,ii=(e=!1)=>e?"cursor-not-allowed":"cursor-pointer",li=(e=!1)=>e?"radio":"checkbox",ri=(e=!1)=>u("rounded border",{"bg-primary-main":e}),si=d((({field:e,input:t})=>o(ni,{text:"Согласен на получение информационных и аналитических материалов по электронной почте",...e(t?.name??"")}))),oi=d((({field:e,input:t})=>o(Ka,{label:"Желаемая дата встречи",...e(t?.name??"")}))),ci=d((({field:e,input:t})=>o(Mn,{label:"Электронная почта",...e(t?.name??""),...t}))),di=[{key:"ULTRASERVICE",text:"Ультра"}],mi=[{key:"Физическое лицо"},{key:"Юридическое лицо / ИП"}],ui=[{key:"phone",text:"Телефонный звонок"},{key:"email",text:"Электронное сообщение"}],hi=d((({field:e,input:t})=>o(Wn,{label:"Способ получения ответа",options:ui,...e(t?.name??"")}))),pi=d((({field:e,input:t})=>o(Mn,{label:"ФИО",...e(t?.name??""),...t})));function gi(e,t){for(const[n,a]of e.entries())null!=a?t.setItem(n,a):t.removeItem(n)}function fi(e,t){return gi(e,t),gi(t,e),e.bus.watch((({type:e,event:n})=>{null!=n?t.setItem(e,n):t.removeItem(e)}))}class xi{storage;bus;get size(){return this.storage?.length??0}constructor(e,t=new fe){this.storage=e,this.bus=t}hasItem(e){return Boolean(this.storage?.getItem(String(e)))}getItem(e){const t=this.storage?.getItem(String(e))??null;try{return JSON.parse(String(t))}catch(e){return null}}entries(){return Array.from({length:this.size},((e,t)=>{const n=String(this.storage?.key(t));return[n,this.getItem(n)]}))}setItem(e,t){null!==t?this.storage?.setItem(String(e),JSON.stringify(t)):this.storage?.removeItem(String(e)),this.bus?.subject(e,t)}removeItem(e){this.storage?.removeItem(String(e)),this.bus?.subject(e,null)}}class bi{bus;store=new Map;get size(){return this.store.size}constructor(e=new fe){this.bus=e}hasItem(e){return this.store.has(e)}getItem(e){return this.store.get(e)}entries(){return this.store.entries()}setItem(e,t){this.store.set(e,t),this.bus.subject(e,t)}removeItem(e){this.store.delete(e),this.bus.subject(e,null)}}const yi={};function vi(e,t=yi){const n=s(null),o=function(){const[,e]=a(0);return l((()=>e((e=>(e+1)%65536))),[])}();return i((()=>e.bus.watch((e=>{n.current?.has(String(e.type))&&o()}))),[e,o]),r((()=>new Proxy(t,{get:(t,a)=>(n.current||=new Set,n.current.add(a),e.getItem(a)),has:(t,a)=>(n.current||=new Set,n.current.add(a),e.hasItem(a)),set:(t,n,a)=>(e.setItem(n,a),!0),deleteProperty:(t,n)=>(e.removeItem(n),!0)})),[e])}const Ni=new bi;function wi(e){return vi(Ni,e)}fi(Ni,new xi(globalThis?.localStorage));const Ci=()=>wi(),Si=(e,t)=>{if(!t)return null;const n=Ri(e),a=+t?.split(".")[0],i=+t?.split(".")[1];switch(a){case 1:return n("AGRICULTURE");case 35:return n("FUEL_AND_ENERGY");case 41:case 42:case 43:return n("CONSTRUCTION");case 46:case 47:return n("TRADE");case 55:case 79:return n("TOURISM");case 62:return n("TECHNOLOGY");case 63:return n("CONSULTING_SERVICE");case 64:return n("BANK");case 65:return n("INSURER");case 66:return n("FINANCIAL_INSTITUTIONS");case 72:case 74:return n("SCIENCE");case 80:return n("SECURITY");case 84:return n(i<22?"GOVERNANCE":22===i?"ARMY":"OTHER_SECTORS");case 85:return n("EDUCATION");case 86:return n("HEALTHCARE");case 87:return n("SOCIAL_SPHERE");default:return n(a>=10&&a<=33?"INDUSTRY":a>=5&&a<=9?"FUEL_AND_ENERGY":a>=49&&a<=53?"TRANSPORT":"OTHER_SECTORS")}},ki=(e,t)=>{if(!t)return null;const[n]=[e?.find((e=>t<=Number(e.description)))].map((e=>({key:e?.key??"",text:e?.value??""})));return n},Ii=(e,t)=>{const n=Ri(e);return[40001,40002,71610].includes(t)?n("FOREIGN"):n("RUSSIAN")},Ti=(e,t,n)=>{const a=Ri(e);return a("7725114488"===n?"RSHB":50102===t?"SOLE_TRADER":t>=75e3&&t<=75505&&75500!==t?"BUDGETARY":"COMMERCIAL")},Ri=e=>t=>e.map((e=>({key:e.key,text:e.value}))).find((e=>e.key===t))??null,Bi=(e,t)=>Boolean(e("esiaAccountTypeCd")?.value?.key)&&e(t).value,Pi=d((({field:e,input:t})=>{const n=t?.name||"addressRegistration",a=e(n).value,i=l((t=>{e?.(n)?.onChange?.(Di(t))}),[]),r=l((t=>{e?.(n)?.onChange?.({apartment:"",city:"",district:"",fullAddress:t,fiasCode:"",house:"",locality:"",okatoRegionCode:"",postcode:"",region:"",regionCode:"",street:"",qc:"",qcComplete:"",qcHouse:""})}),[]);return o(Mn,{disabled:t?.filledByEsia&&Bi(e,n),label:"Адрес",...e(n),value:a?.fullAddress,onChange:r,...t,onDaDataChange:i})})),Di=e=>({apartment:e?.data?.flat,city:e?.data?.city,district:e?.data?.area_with_type,fullAddress:e?.unrestricted_value,fiasCode:e?.data?.fias_id,house:e?.data?.house,locality:e?.data?.settlement_with_type,okatoRegionCode:e?.data?.okato,postcode:e?.data?.postal_code,region:e?.data?.region,regionCode:e?.data?.region_kladr_id?e?.data?.region_kladr_id.substring(0,2):"",street:e?.data?.street,qc:e?.data?.qc,qcComplete:e?.data?.qc_complete,qcHouse:e?.data?.qc_house}),_i=(e,t,n)=>{const{okved:a,okopf:i,inn:l}=Ei(n);t?.("legalForm")?.onChange?.(n.data?.opf?.short),t?.("organizationAddress")?.onChange?.(Di(n.data?.address));const r={amountWorkers:ki(e?.amountWorkers,n.data?.employee_count),employerActivities:Si(e?.employerActivities??[],a),organization:Ti(e?.organization??[],i,l),employerOrganization:Ii(e?.employerOrganization??[],i)};for(const e in r)r[e]&&t?.(e)?.onChange?.(r[e])},Ei=e=>({inn:e.data?.inn??"",okopf:Number(e.data?.opf?.code),okved:e.data?.okved??""}),Ai=d((({field:e,input:t})=>{const n=Ci(),a=l((t=>{e?.("organizationName")?.onChange?.(t.data?.name?.short_with_opf),_i(n,e,t)}),[]);return o(Mn,{label:"ИНН",isInteger:!0,maxLength:12,...t,...e(t?.name??""),onDaDataChange:a})})),Mi=d((({className:e,text:t,value:n,key:a,disabled:i,error:l,onChange:r})=>c("div",{className:u("shrink-0",e),children:[o(ni,{text:t,value:n,disabled:i,onChange:r},a),Tn(l)]}))),Oi=d((({field:e,input:t})=>o(Mi,{...e(t?.name??""),text:'Являюсь клиентом банка АО "Россельхозбанк"'}))),zi=`${Kt}/outservice`,Vi=[];async function Fi(){const e=await Mt(`${zi}/outserviceregions`);return e&&Array.isArray(e)?e:Vi}const Li=d((({field:e,input:t})=>{const n=e("region"),a=n?.value?.key,{data:l}=ta("outServiceRegions",Fi),s=r((()=>l?.find((e=>e.code===a))?.localities?.map((e=>({key:e,text:e})))),[l,a]);return i((()=>{""!==a&&e?.(t?.name??"")?.onChange?.("")}),[a,t?.name??""]),o(Wn,{label:"Населенный пункт",placeholder:"Выберите город, где доступен сервис",options:s,...e(t?.name??""),isSearch:!0})})),$i=d((({field:e,input:t})=>o(Mn,{label:"Отчество (Обязательно, при наличии)",maxLength:60,disabled:t?.filledByEsia&&Bi(e,t?.name??""),...e(t?.name??""),...t}))),ji=d((({field:e,input:t})=>o(Mn,{label:"Имя",maxLength:60,disabled:t?.filledByEsia&&Bi(e,t.name??""),...e(t?.name??""),...t}))),Ui=d((({value:e=!1,text:t,type:n="checkbox",onChange:a})=>c("div",{role:n,"aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-s",onClick:()=>a&&a(!e),children:[o("div",{className:u("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:u("absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full",e?"left-1/2":"left-[5%]")})}),t?o(Fe,{size:"text-l",font:"font-light",color:"text-primary-text",children:t}):null]}))),qi=d((({field:e,input:t})=>Gn(e("acquiringType")?.value?.key)?o(Ui,{type:"radio",text:"Хочу онлайн-кассу",...e(t?.name??"")}):null)),Wi=d((({field:e,input:t})=>o(Mn,{...e(t?.name??""),placeholder:"Укажите интересующий вас вопрос",isTextarea:!0,...t}))),Hi=e=>"_"===e,Yi=e=>/\d/.test(e),Gi=e=>Hi(e)||Yi(e),Ki=[..."+7 (___) ___-__-__"],Xi=Ki.findIndex(Hi),Ji=Ki.map(((e,t)=>Gi(e)?Ki.slice(0,t).filter(Gi).length:-1));function Zi(e){const t=e.replace(/\D/g,""),n=Ki.map(((e,n)=>Yi(e)?e:t.charAt(Ji[n])||e)),a=Ji.indexOf(t.length-1)+1;return(a?n.slice(0,Math.max(Xi,a)):n).join("")}const Qi=d((({children:e,onChange:t,...n})=>{const a=l((e=>t&&t(Zi(e))),[t]),i=l((e=>{"+7 ("===e&&t&&t("")}),[]);return o(kn,{...n,onChange:a,onFocus:e=>a(e?.target?.value||""),onBlur:e=>i(e?.target?.value||""),children:e})})),el=d((({className:e,label:t,error:n,...a})=>c("div",{className:u("shrink-0 w-full",e),children:[o(Qi,{"aria-label":t,label:vn({label:t,errors:a?.errors}),valid:Boolean(!n),placeholder:"+7 (___) ___-__-__",...a}),Tn(n)]}))),tl=d((({field:e,input:t})=>{const n=t?.name||"phone";return o(el,{label:"Телефон",...e(n),disabled:t?.filledByEsia&&Bi(e,n),...t})})),nl=d((({field:e})=>Gn(e("acquiringType")?.value?.key)?o(Ui,{type:"radio",text:"Хочу POS-терминал",...e("posTerminal")}):null)),al=Ut((({field:e,input:t,source:n})=>o(Wn,{placeholder:"Выберите продукт",label:"Продукт",options:il(n?.productList),...e(t?.name??"")}))),il=e=>(e??[]).map((e=>({key:e,value:e}))),ll=`${Kt}/regions`,rl=[];function sl(e=ll){const{data:t}=ta(e,Ot);return Array.isArray(t)?t:rl}const ol=`${Kt}/outservice/outserviceregions`,cl=d((({field:e,input:t,params:n})=>{var a;const i=sl((a=n?.typeForm,"OUTSERVICE"===a?ol:void 0));return o(Wn,{label:t?.label||"Филиал",placeholder:"Выберите филиал",isSearch:!0,options:r((()=>i?.map((({code:e="",name:t=""})=>({key:e,text:t})))),[i]),...e(t?.name??"")})})),dl=d((({field:e,input:t})=>{const n=ra(!0),a=r((()=>n?.map((({region:e})=>({key:e,text:e})))),[n]);return o(Wn,{label:"Регион",placeholder:"Выберите регион",options:a,...e(t?.name??"")})})),ml=d((({field:e,input:t})=>o(Mn,{label:"ФИО представителя",...t,...e("representativeName")}))),ul=(e,t)=>{const{value:n,isDirty:a}=e,i=a?t(n):[];return{...e,errors:i,error:i[0]}},hl=mn((e=>null!=e&&""!==e)),pl="Некорректно заполненное поле",gl="Укажите регион, город/населенный пункт, улицу, дом",fl=e=>hl(e??pl),xl=e=>mn((e=>e?.key&&""!==e?.key))(e??pl),bl=e=>mn((e=>"string"==typeof e&&/^[0-9]{1,2}$/g.test(e)))(e??pl),yl=e=>mn((e=>"string"==typeof e&&e.length>1&&Bl(e)))(e??pl),vl=(e,t)=>mn((t=>"string"==typeof t&&t.length>=1&&t.length<=e))(t??pl),Nl=e=>mn((e=>"string"==typeof e&&6===e.length))(e),wl=e=>/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/.test(e),Cl=e=>mn(wl)(e),Sl=mn((e=>"boolean"==typeof e&&e))("Согласие обязательно"),kl=e=>{const t=String(e).replace(/[^0-9]+/g,"");if(11===t.length){let e=0;for(let n=0;n<9;n++)e+=parseInt(t.charAt(n))*(9-n);return e>101&&(e%=101),100!==e&&101!==e||(e=0),e===parseInt(t.substr(9))}return!1},Il=e=>Boolean(e.region&&(e.city||e.locality)&&e.house),Tl=()=>mn(Il)(gl),Rl=/^[\u0400-\u04FF\d\s]+$/u,Bl=(e="")=>Rl.test(e),Pl=e=>{const t=new Date,n=new Date(t.getFullYear()-23,t.getMonth(),t.getDate()),a=new Date(t.getFullYear()-75,t.getMonth(),t.getDate());return!(!e||e>n||e<a)},Dl={processPersonalDataFlg:Sl,consentProviderFlg:Sl,consentInformFlg:Sl,consentPfrFlg:Sl,consentOthersFlg:Sl},_l={addressCourier:Tl(),paymentSystem:fl("Укажите тип платежной системы"),currency:fl("Укажите валюту"),cardCategory:fl("Укажите категорию карты"),codeWord:(El="Необходимо ввести кодовое слово",mn((e=>"string"==typeof e&&e.length>=3&&e.length<=21&&Bl(e)))(El??pl)),confirmationIncome:xl(),methodObtain:fl(),deliveryDate:fl("Укажите дату доставки")};var El;const Al={organization:xl("Выберите тип организации"),organizationAddress:mn((e=>Boolean(e.fiasCode&&(e.city||e.locality)&&e.house)))(gl),organizationPhone:Cl("Укажите номер телефона"),organizationName:fl("Укажите наименование организации"),legalForm:fl("Укажите ОПФ"),generalSeniority:bl("Укажите количество лет стажа"),lastJobExperience:bl("Укажите стаж на последнем месте работы"),experience5Years:bl("Укажите общий стаж за последние 5 лет"),jobsNumber:bl("Укажите количество мест работы за последние 5 лет"),beginDate:fl("Укажите дату заключения трудового договора"),addressFact:Tl(),addressRegistration:Tl(),addressRetail:xl("Выберите адрес банка"),addressMatch:fl(),sex:fl("Укажите свой пол"),limitedBirthday:mn(Pl)("Допустимый возраст заёмщика - от 23 до 75 лет"),birthPlace:fl("Укажите место рождения"),education:xl("Выберите ваше образование"),housing:xl("Выберите тип жилья"),amountWorkers:xl("Выберите информацию о количестве сотрудников"),employment:xl("Выберите информацию о трудоустройстве"),employerActivities:xl("Выберите вид деятельности организации"),employerOrganization:xl("Выберите вид организации"),positionOrganization:xl("Выберите вашу должность"),familyStatus:xl("Выберите семейное положение"),familyMembers:vl(2,"Укажите количество членов семьи"),children:vl(2,"Укажите количество детей"),dependents:vl(2,"Укажите количество иждивенцев"),totalIncome:vl(19,"Укажите среднемесячный доход от основной зарплаты"),expenses:vl(10,"Укажите сумму обязательных выплат"),snils:(e=>mn(kl)(e))("Некорректный номер СНИЛС"),conscription:fl(),armyIdFlg:Sl,dulSerie:(e=>mn((e=>"string"==typeof e&&4===e.length))(e))("Укажите серию паспорта"),dulNumber:Nl("Укажите номер паспорта"),dulIssueDate:fl("Укажите дату выдачи паспорта"),dulSubdivisionCode:Nl("Укажите код подразделения"),dulIssuedBy:fl("Укажите организацию, выдавшую паспорт"),participantDateRegistration:fl("Укажите дату регистрации"),retirementIncome:fl(),otherIncome:fl(),wages:fl(),mandatoryPayments:fl(),disablePeopleFlg:fl(),bankruptcyFlg:fl(),shareholderFlg:fl(),legalEntityName:fl(),bankEmployeeCode:fl(),partInBusiness:fl(),regionRetail:xl("Выберите регион")},Ml={fullName:fl(),addressBranch:xl(),desiredMeetingDate:fl(),product:fl(),localities:fl(),partnerComments:fl(),collectionCount:fl(),acquiringType:xl(),serviceType:xl(),annualRevenue:fl(),feedbackMethod:xl(),serviceDirection:xl(),secondaryPhone:Cl("Укажите номер телефона"),region:xl(),situationDescription:fl(),sufferedFrom:fl(),applierType:fl(),surname:yl("Укажите свою фамилию на кириллице"),name:yl("Укажите своё имя на кириллице"),middleName:yl("Укажите своё отчество на кириллице"),birthday:fl("Укажите дату рождения"),phone:Cl("Укажите номер телефона"),email:(e=>mn((e=>/^[^\s@]+@[^\s@]+\.[a-zA-Z]{2,4}$/.test(e)))(e))("Укажите электронную почту"),inn:(e=>mn((e=>"string"==typeof e&&(10===e.length||12===e.length)))(e))("Укажите ИНН"),comment:fl(),typeForm:fl(),consentToReceiveMaterials:Sl,consentDataProcessing:Sl,...Dl,...Al,..._l},Ol=e=>{const t=e.filter((e=>Boolean(e?.required&&e?.name))),n=t.some((e=>e.condition?.values)),a=Object.fromEntries(t.filter(zl).map((({name:e})=>[e,Ml[e??""]])));return e=>n?Object.fromEntries(t.filter(zl).filter(Vl(e)).map((({name:e})=>[e,Ml[e??""]]))):a},zl=({name:e})=>Boolean(Ml[e??""]),Vl=e=>t=>!t?.condition||t.condition.values.find((n=>{const a=e?.[t?.condition?.name??""];return n===(a?.key??a)})),Fl=d((({field:e})=>{const t=e("secondaryPhone");return o(el,{label:"Дополнительный телефон",...t.value&&"+7 ("!==t.value?ul(t,Ml.secondaryPhone):t})})),Ll=d((({field:e,input:t})=>o(Wn,{label:"Направление обслуживания",placeholder:"Выберите направление",options:mi,...e(t?.name??"")}))),$l=d((({field:e,input:t})=>o(Mn,{label:"Описание ситуации",...t,...e("situationDescription")}))),jl=[{key:"blg",text:"Белгородской области"},{key:"brnsk",text:"Брянской области"},{key:"krsk",text:"Курской области"},{key:"chs",text:"От стихийного бедствия ЧС"}],Ul=d((({field:e,input:t})=>o(Wn,{label:"Пострадал в",...t,options:jl,...e("sufferedFrom")}))),ql=d((({field:e,input:t})=>o(Mn,{label:"Фамилия",maxLength:60,disabled:t?.filledByEsia&&Bi(e,"surname"),...e(t?.name??""),...t}))),Wl=["От 1 мес","До 15 лет"],Hl=d((({field:e})=>o(ga,{title:"Срок, месяцев",items:Wl,min:1,max:180,...e("term")}))),Yl=d((({field:e,input:t})=>o(Wn,{label:"Тип обслуживания",options:di,...e(t?.name??"")}))),Gl={horizontal:"@lg:flex-row",vertical:""},Kl=d((({label:e,items:t,value:n,className:a,disabled:i=!1,orientation:l="horizontal",onChange:r})=>c("div",{className:"grid gap-xs whitespace-nowrap",children:[e?o("div",{role:"radiogroup","aria-label":e,children:o(Fe,{color:"text-secondary-text",font:"font-light",children:e})}):null,o("div",{className:u("flex flex-col gap-s",Gl[l],a),role:"radiogroup","aria-label":"Группа кнопок",children:t?.map((({id:e,text:t})=>o(ni,{isRadio:!0,text:t,value:n===e,onChange:()=>r?.(e),disabled:i},String(e))))})]}))),Xl=[{id:"currencyControl",text:"Валютный контроль"},{id:"documentOperations",text:"Документарные операции"},{id:"conversionTransactions",text:"Конверсионные операции"},{id:"otherIssues",text:"Иные вопросы ВЭД"}],Jl=d((({field:e,input:t})=>{const n=l((t=>{"currencyControl"!==t&&(e("inn").onChange?.(""),e("region").onChange?.(""))}),[]);return o("div",{className:"py-m gap-m grid @xl:flex @xl:items-center",children:o(Kl,{className:"whitespace-normal",orientation:"horizontal",items:Xl,...e(t?.name??"",{onChange:n})})})}));const Zl={$ref:"/wcms-resources/outservice-productlist.json"},Ql={fullName:pi,addressBranch:oa,desiredMeetingDate:oi,product:e=>o(al,{...e,source:Zl}),localities:Li,isClient:Oi,partnerComments:Wi,collectionCount:Ja,acquiringType:Yn,onlineCheckout:qi,posTerminal:nl,serviceType:Yl,term:Hl,amount:ya,annualRevenue:va,vedTypes:Jl,feedbackMethod:hi,serviceDirection:Ll,bankEmpolee:Sa,secondaryPhone:Fl,applicationDate:e=>o(Mn,{label:"Дата и время обращения в Банк",...e}),region:e=>sa(e?.params?.typeForm)?o(dl,{...e}):o(cl,{...e}),consentToReceiveMaterials:si,sufferedFrom:Ul,situationDescription:$l,representativeName:ml,applierType:Ca,surname:ql,name:ji,middleName:$i,birthday:Xa,phone:tl,email:ci,inn:Ai,comment:Za},er=(e,t,n={})=>(a,i)=>{const l={...Ql,...n}[String(a.name)];return function({input:e,field:t}){const{condition:n}=e,{value:a}=t(n?.name||"");return!n||n?.values?.find((e=>e===(a?.key??a)))}({input:a,field:e})&&l?o("div",{children:o(l,{field:e,input:a,params:t})},i):null},tr=e=>2===e?"@xl:grid-cols-2":"",nr=e=>e?o("div",{className:"@xl:text-center @xl:col-span-2 mb-m",children:o(Fe,{size:"text-h6",children:e})}):null,ar={primary:u("text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active","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:u("text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","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")},ir=u("group/btn-embedded","bg-transparent border border-transparent outline-none"),lr=u("bg-main-gray text-main-disabled cursor-not-allowed"),rr=d((({className:e,type:t="button",version:n="primary",shape:a="default",embedded:i,disabled:s,role:c,ariaLabel:d,data:m,dataTheme:h,children:p,onClick:g=Nn})=>{const f=l("tab"!==c?pe(g):g,[c,g]),x=r((()=>Ne(m)),[m]),b="round"===a;return o("button",{className:u("font-sans flex items-center gap-xs",{[ar[n]]:!s&&!i,[ir]:i,[lr]:s},i?"justify-between":"justify-center",i||b?"p-0":"px-9 py-4",{"rounded-md":"default"===a,"rounded-full":b},e),type:t,role:c,"aria-label":d,disabled:s,"aria-disabled":s?"true":void 0,"data-theme":h,...x,onClick:f,children:p})})),sr=d((({className:e,onClose:t})=>o("button",{className:u("flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none",e),onClick:t,title:"Закрыть",type:"button",children:o(J,{name:"CloseIcon",width:"20",height:"20",iconVersion:"gray"})}))),or=d((({className:e,head:t,children:n,onClose:a,onClick:i})=>c("div",{className:u("relative bg-white pt-0 p-lg",e),role:"dialog",title:"Диалог",onClick:i,children:[c("div",{className:"sticky py-xl top-0 bg-white z-10",children:[o(sr,{className:"absolute top-0 right-0",onClose:a}),o("div",{className:"container",children:t})]}),o("div",{className:"container pb-6xl",children:n})]}))),cr=d((({ok:e,typeForm:t,onClose:n})=>{const a="ANTIFRAUD"===t?"Сообщение отправлено. Для уточнения информации с Вами могут связаться работники Банка либо Вы\n можете самостоятельно позвонить по номеру контакт-центра +78001000100. Будьте внимательны, работники Банка\n не звонят с использованием мессенджеров.":"Совсем скоро мы с вами свяжемся";return o(or,{className:"my-6xl max-w-lg w-full min-h-fit mx-auto",onClose:n,children:c("div",{className:"flex flex-col gap-lg items-center rounded-md space-x-m",children:[o(se,{image:{icon:e?"ResponseOKIcon":"ResponseFailIcon",iconVersion:"normal"},width:"136",height:"136"}),o(S,{className:"w-full",title:e?"Ваша заявка отправлена":"Не удалось отправить заявку",description:e?a:"Пожалуйста, повторите позднее",headlineVersion:"XS",isEmbedded:!0}),o(rr,{type:"button",onClick:n,children:"Хорошо"})]})})})),dr=e=>{const{acquiringType:t,onlineCheckout:n,posTerminal:a,amount:i,term:l,annualRevenue:r,serviceType:s,vedTypes:o,region:c,inn:d,sufferedFrom:m,situationDescription:u,applierType:h,...p}=e,g=t||r?(e=>{const{acquiringType:t,onlineCheckout:n=!1,posTerminal:a=!1,term:i,amount:l,annualRevenue:r}=e;return t?`Вид эквайринга=${t?.text||""}${Gn(t?.key)?`/Онлайн касса=${n}/POS-терминал=${a}`:"/Онлайн касса=false/POS-терминал=false"}`:`Сумма=${l}/Срок=${i}/Выручка=${r}`})(e):null,f={...p,...pr(o),...hr(c),...d&&{inn:d},...g?{partnerComments:g}:{},...s?{typeForm:s}:{},...ur(m?.text,u),...mr(h)};return Object.fromEntries(Object.entries(f)?.map((([e,t])=>[e,t?.key||t])))},mr=e=>e?.key?{isClient:e?.key===Na}:{},ur=(e,t)=>e||t?{comment:`${e||""};${t||""}`}:{},hr=e=>e?.key||e?.text?{region:e?.text||e?.key}:{},pr=e=>e?{vedTypes:Object.fromEntries(Xl.map((({id:t})=>[t,t===e])))}:{},gr={typeForm:"",region:{key:"",text:""},addressBranch:{key:"",text:""},surname:"",name:"",phone:"",secondaryPhone:"",comment:"",product:"",partnerComments:"",annualRevenue:"",term:12,amount:1e5,acquiringType:Hn[0],serviceType:di[0],feedbackMethod:ui[0],serviceDirection:mi[0],vedTypes:Xl[0].id,birthday:void 0,isClient:!1,onlineCheckout:!1,posTerminal:!1,consentToReceiveMaterials:!1,consentDataProcessing:!1,addressRetail:{key:"",text:""}},fr=d((({color:e="text-primary-main",position:t="absolute",blur:n=!0,size:a="big"})=>o("div",{className:u("flex justify-center items-center h-full w-full z-50",t,{"backdrop-blur":n}),children:o("div",{className:u("inline-block","animate-spin rounded-full","border-solid border-current","border-r-transparent","small"===a?"border-4 h-8 w-8":"border-8 h-28 w-28",e),role:"status"})}))),xr=d((({isLoading:e,disabled:t,children:n,...a})=>c(rr,{type:"submit",disabled:e||t,...a,children:[e?o(fr,{blur:!0,size:"small"}):null,n]}))),br={primary:ar.primary,secondary:ar.secondary,white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"text-primary-main",gray:ar.secondary,transparent:"","":""},yr=d((e=>{const t=ye(),{className:n,href:a,target:i,text:l,aboveText:r,version:s="link",rel:c,ariaLabel:d,data:m,children:h,onClick:p}=t(e),g="link"!==s;return o("a",{className:u("group/btn inline-flex items-center h-fit","font-sans no-underline select-none","border border-transparent focus:border-primary-text focus:border","cursor-pointer",{[br[s]]:Boolean(s),[r?"px-9 py-2.5":"px-9 py-4"]:g,"rounded-md":g},n),href:a,target:i,rel:c,"aria-label":d??`Ссылка на ${l}`,role:a?"link":"button",onClick:p,...Ne(m),children:h??vr(l,r)})})),vr=(e,t)=>e||t?c("div",{className:"whitespace-pre",children:[t?o("div",{className:"font-light text-left text-xs",children:t}):null,o("div",{className:u("text-left",{"text-s -mt-3xs":Boolean(t)}),children:e})]}):null,Nr=d((({text:e,link:t})=>c(w,{size:"text-l",font:"font-light",color:"text-secondary-text",children:[e?o(Fe,{children:e}):null,t?o(yr,{...t,ariaLabel:"условия передачи данных",children:t.text}):null]}))),wr=(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(ni,{...e}),o(Nr,{link:t})]}),Tn(ul(e,Sl).error)]}):o(Nr,{text:"Нажимая кнопку, вы подтверждаете согласие с ",link:t}),o(xr,{className:"w-full @xl:w-auto",children:n?.text?n.text:"Отправить заявку"})]}),Cr={send:async function(e,t=!1){const{typeForm:n,region:a,phone:i="",email:l,birthday:r,desiredMeetingDate:s,inn:o,addressBranch:c,secondaryPhone:d="",bankEmpolee:m,applicationDate:u,serviceDirection:h,...p}=e,g=t&&"Юридическое лицо / ИП"!==h,f=`${Kt}${g?"/lead":"/sendcorporatelead"}`,x={typeForm:n,...Zt(a,g),...Qt(l,g),...Xt(i),...Jt(s,"desiredMeetingDate"),...g?Jt(r):{inn:o},..."FEEDBACK"===n?{}:{addressBranch:c,bankEmpolee:m,applicationDate:u,...en(d)},...p};try{const e=await fetch(f,{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(x)});return e?.ok?await e.json():null}catch(e){return null}}},Sr=d((({className:e,title:t,typeForm:n="",sections:a=[],button:i,link:s,endpoint:d,additionalParams:m,isContacts:h,data:p,...g})=>{const f=r((()=>a?.flatMap((e=>e?.inputs))||[]),[a]),x=r((()=>((e,t="")=>({...Object.fromEntries(e.map((e=>[e.name,"vedTypes"===e?.name&&e?.defaultValue||gr[e.name||""]]))),typeForm:{key:t,text:""}}))(f,n)),[f,n]),b=r((()=>Ol(f)),[f]),y=xn(cr),v=sn(),w=l((async(e,t)=>{const a=dr({...e,...m}),i=Boolean(await Cr.send(a,"lead"===d));y.open({ok:i,typeForm:n}),i&&tn({aspectsAttributes:p,aspects:v,ev:t})}),[n]),[,{field:C,onSubmit:S}]=gn(x,{resetOnSubmit:!0,formValidator:b,onSubmit:w}),k=(e=>e?.find((e=>"consentDataProcessing"===e?.name)))(f)?.name;return c(fn,{className:u("container space-y-m",e),title:t,...g,children:[c("form",{onSubmit:S,children:[a.map(((e,t)=>c("div",{className:u(tr(e.columns),"grid gap-x-m"),children:[nr(e.title),(e?.inputs||[])?.map(er(C,{typeForm:n}))]},`section-${t}`))),wr(k?C("consentDataProcessing"):void 0,s,i)]}),h?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(se,{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(se,{image:{icon:"MailIcon"},width:"24",height:"24"}),o("span",{children:"ved@rshb.ru"})]})]})]}):null]})})),kr=[{columns:2,inputs:[{name:"surname",required:!0,dadata:!0},{name:"name",required:!0,dadata:!0},{name:"middleName",dadata:!0},{name:"limitedBirthday",required:!0},{name:"phone",required:!0},{name:"email",required:!0,dadata:!0}]},{inputs:[{name:"processPersonalDataFlg",required:!0},{name:"consentProviderFlg",required:!0},{name:"consentOthersFlg",required:!0},{name:"consentInformFlg"},{name:"consentPfrFlg"}]}],Ir=d((({field:e,input:t})=>{const n="addressFact",a=e(n).value,{value:r}=e("addressMatch");i((()=>{r&&e("addressFact")?.onChange?.(e("addressRegistration").value)}),[r,e("addressRegistration").value]);const s=l((t=>{e?.(n)?.onChange?.({apartment:t?.data?.flat,city:t?.data?.city,district:t?.data?.area_with_type,fullAddress:t?.value,fiasCode:t?.data?.fias_id,house:t?.data?.house,locality:t?.data?.settlement_with_type,okatoRegionCode:t?.data?.okato,postcode:t?.data?.postal_code,region:t?.data?.region,regionCode:t?.data?.region_kladr_id?t?.data?.region_kladr_id.substring(0,2):"",street:t?.data?.house,qc:t?.data?.qc,qcComplete:t?.data?.qc_complete,qcHouse:t?.data?.qc_house})}),[]),c=l((t=>{e?.(n)?.onChange?.({apartment:"",city:"",district:"",fullAddress:t,fiasCode:"",house:"",locality:"",okatoRegionCode:"",postcode:"",region:"",regionCode:"",street:"",qc:"",qcComplete:"",qcHouse:""})}),[]);return o(Mn,{label:"Адрес",disabled:r,...e(n),value:a?.fullAddress,onChange:c,...t,onDaDataChange:s})})),Tr=d((({field:e,input:t})=>o(Mi,{text:"Адрес фактического места жительства совпадает с адресом регистрации",...e(t?.name??"")}))),Rr="/icons/MapMarkerClusterIcon.svg",Br="/icons/MapMarkerClusterYellowIcon.svg";function Pr({yandexMaps:e,map:t,points:n,isLoad:a}){if(a||!n)return;if(t.geoObjects.removeAll(),!n.length)return;const i=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),l=Dr("offices",e,i);if(n.length&&n.every((e=>"type"in e))){const a=Dr("workplaces",e,i),r=_r(n.filter((e=>"workplaces"===e.type)),"workplaces",e),s=_r(n.filter((e=>"offices"===e.type)),"offices",e);l.add(s),a.add(r),t.geoObjects.add(a),t.geoObjects.add(l)}else{const a=_r(n,"offices",e);l.add(a),t.geoObjects.add(l)}t.setBounds(e.util.bounds.fromPoints(n.map((e=>e.coords)))).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const Dr=(e,t,n)=>new t.Clusterer({clusterIcons:[{href:"offices"===e?Rr:Br,size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),_r=(e,t,n)=>e.map((({coords:e,content:a})=>new n.Placemark(e,{balloonContentHeader:a?.header,balloonContentBody:a?.body,balloonContentFooter:a?.footer,hintContent:a?.hint},{iconLayout:"default#image",iconImageHref:"offices"===t?Rr:Br,iconImageSize:[78,84],iconImageOffset:[-35,-50]}))),Er={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",font:"text-center font-sans"},Ar={...Er,border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center"},Mr=(e,t,n)=>o("div",{className:`select-none cursor-pointer py-m w-12 bg-white ${Object.values(Ar).join(" ")} ${n}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.current.geoObjects.add(t.geoObjects)}))},children:o(J,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),Or=e=>globalThis[e],zr=(e,t)=>{const n=document.getElementById(t);if(n){const t=Or(e);return t?Promise.resolve(t):new Promise((t=>{n.addEventListener("load",(()=>{t(Or(e))}))}))}return new Promise(((n,a)=>{const i=document.createElement("script");i.src=t,i.async=!0,i.id=t,i.addEventListener("load",(()=>{n(Or(e))})),i.addEventListener("error",(e=>{a(e)})),document.head.appendChild(i)}))};const Vr=()=>function(e,t,n=!0){const[l,r]=a(void 0);return i((()=>{let a=!0;return zr(e,t).then((e=>{a&&r(e)})).catch((e=>{console.error(`Failed to initialize external namespace: ${e}`)})),()=>{if(a=!1,n){const e=document.getElementById(t);e&&document.head.removeChild(e),r(void 0)}}}),[e,t,n]),l}("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${E.YANDEX_MAP_API_KEY||""}&lang=ru_RU`,!1),Fr={...Er,border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center"},Lr=d((({yandexMaps:e,direction:t="in"})=>{const n="in"===t?"PlusIcon":"MinusIcon";return o("div",{onClick:()=>{const n=e.current.getZoom(),a="in"===t?n+1:n-1;e.current.setZoom(a,{checkZoomRange:!0})},className:`${Object.values(Fr).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:o(J,{name:n,width:"20",height:"16"})})})),$r=[55.753995,37.614069],jr=d((({points:e,className:t="",zoom:n=5,isLoad:a,selectedAddress:l})=>{const r=s(null),d=s(null),m=Vr();if(i((()=>{r.current?Pr({yandexMaps:m,map:r.current,points:e,isLoad:a}):m?.ready((()=>{r.current||(r.current=new m.Map(d.current,{center:Ur(e),zoom:n,controls:[],suppressMapOpenBlock:!0})),Pr({yandexMaps:m,map:r.current,points:e,isLoad:a})})),r.current&&l&&m?.geocode(l).then((e=>{const t=e.geoObjects.get(0).geometry.getCoordinates();r.current.setCenter(t),r.current.setZoom(18)}))}),[m,e,n,a,l]),!m)return null;const h="z-10";return c("div",{ref:d,className:u("relative","w-full",t),children:[a?o(fr,{}):null,c("div",{className:u("absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md",h),children:[o(Lr,{yandexMaps:r}),o(Lr,{yandexMaps:r,direction:"out"})]}),Mr(r,m,u("right-2 top-80",h))]})})),Ur=e=>{const t=[Wr(qr(e,0)),Wr(qr(e,1))];return t.every((e=>e))?t:$r},qr=(e,t)=>e.map((e=>e.coords?.[t])),Wr=e=>e.length&&e.reduce(((e,t)=>e+t))/e.length,Hr=async(e,t,n)=>{try{return(await Yr(e,t,n)).json()}catch(e){return console.error(e),null}};async function Yr(e,t,n){const a=(()=>{const e=new Uint8Array(8);return globalThis.crypto.getRandomValues(e),e.reduce(((e,t)=>`${e}${t.toString(16).padStart(2,"0")}`),"")})();return globalThis?.fetch?.(`/light-api-cash/v1${e}`,{method:t,headers:{"Content-Type":"application/json","X-B3-Sampled":"1","X-B3-Spanid":a,"X-B3-Traceid":a,...Gr()},credentials:"include",body:n?JSON.stringify(n):null})}const Gr=()=>{const e=sessionStorage.getItem("accessToken");return e?{Authorization:`Bearer ${e}`}:null},Kr=e=>Number(e.toString().replace(",",".")),Xr=d((({value:e,subText:t,children:n,isPhone:a,...i})=>{const l=(Array.isArray(e)?e:e?.split(",")??[]).filter(Boolean);return[l.length,n,t].every((e=>!e))?null:Jr({textItems:l,subText:t,children:n,isPhone:a,...i})})),Jr=({label:e,labelSize:t="text-m",textItems:n,subColor:a,subText:i,className:l,children:r,isPhone:s=!1})=>c("div",{className:u("flex gap-2xs flex-col h-full max-w-[300px]",l),children:[e?o(Fe,{color:"text-secondary-text",font:"font-light",size:t,children:e}):null,r||Zr(n,s),i?o(Fe,{color:a,size:"text-m",children:i}):null]}),Zr=(e,t)=>e.filter(Boolean).map(((e,n)=>o(Fe,{size:"text-l",children:t?o("a",{href:`tel:${Qr(e)}`,children:e.trim()}):e.trim()},String(n)))),Qr=e=>e.replace(/\D/g,""),es=d((({className:e,children:t})=>o("div",{className:u("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}))),ts=d((({className:e,children:t})=>o("span",{className:u("inline-flex items-center text-start gap-s group-[]/btn-embedded:text-primary-main",e),children:t}))),ns=d((({isUnfolded:e,...t})=>o(J,{name:e?"ArrowUpIcon":"ArrowDownIcon",size:"small",iconVersion:"",...t}))),as=d((({className:e,isUnfolded:t,short:n,label:a=(t?"Скрыть":"Развернуть"),embedded:i,...l})=>c(rr,{className:u({"w-full":!n},e),embedded:i,shape:n?"default":"square",role:"tab","aria-label":"Кнопка сворачивающейся секции",...l,children:[o(ts,{children:a}),o(ns,{isUnfolded:t,iconVersion:i?"color":""})]}))),is=d((({className:e,role:t="tablist",children:n})=>o("div",{className:u(e),role:t,children:n})));const ls=d((({className:e,isUnfolded:t,children:n})=>{const a=s(null),l=function(e,t){const n=s(null);return i((()=>{const t=n?.current;if(!t)return;const a=new ResizeObserver((n=>{e(t,n[0])}));return a.observe(t),()=>{a.disconnect()}}),[e,...t]),n}((e=>{a.current&&(a.current.style.maxHeight=t?`${e.scrollHeight}px`:"")}),[t]);return o("div",{ref:a,className:u("transition-max-h duration-300 overflow-hidden",{"max-h-0":Boolean(a.current||!t)}),role:"tabpanel","aria-label":"Сворачивающаяся секция",children:o("div",{className:e,ref:l,children:n})})})),rs=d((({children:e})=>{const[t,{toggle:n}]=on(!1);return c("div",{children:[o("div",{className:"hidden sm:block",children:e}),c(is,{className:"block sm:hidden",children:[o(ls,{isUnfolded:t,children:e}),o(as,{className:"my-m mr-m border-b border-solid border-main-divider",label:t?"Скрыть":"Подробнее",isUnfolded:t,embedded:!0,onClick:n})]})]})})),ss=e=>{const t=cs(e);return o(Xr,{label:"Режим работы",value:t,className:"max-w-none"})},os=({workTime:e="",lunchHour:t="",daysOff:n=""},a=!1)=>e?[`${a?"Суббота":"Будние дни"}: ${e}`,t?`перерыв: ${t}`:"",n?`не работает: ${n}`:""].filter(Boolean).join("; "):"",cs=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))),a=e.filter((e=>!e.status)).map((e=>e.short?.toLowerCase())).join(", ");return[os({workTime:t?.workTime,lunchHour:t?.lunchHour,daysOff:n?"":a}),os({workTime:n?.workTime,lunchHour:n?.lunchHour,daysOff:a},!0)].filter(Boolean)},ds=[["workingMonday","Пн","Понедельник"],["workingTuesday","Вт","Вторник"],["workingWednesday","Ср","Среда"],["workingThursday","Чт","Четверг"],["workingFriday","Пт","Пятница"],["workingSaturday","Сб","Суббота"],["workingSunday","Вс","Воскресенье"]],ms=e=>ds.map((([t,n,a])=>({key:t,title:a,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??"")}}))),us=e=>{if(!e)return null;const t=hs(e);return c(es,{className:"border-none",children:[o(Xr,{label:"Для юридических лиц",labelSize:"text-l",children:o("div",{className:"flex gap-1",children:t.map(ps)})}),o(Xr,{label:"Режим работы",className:"max-w-none",children:o(Fe,{children:e})})]})},hs=e=>{const t=ds.map((([,e])=>({short:e,status:!0}))),n=e.split("/")??[],a=n[n.length-1]?.toLowerCase();return a?.includes("выходной")?t.map((e=>({...e,status:!a?.includes(e.short.toLowerCase())}))):t},ps=({short:e,status:t},n)=>o("div",{className:u("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(Fe,{size:"text-xs",children:e})},String(n)),gs=({currency:e,buyExchangeRate:t,saleExchangeRate:n},a)=>c("div",{className:"flex gap-lg h-full",children:[e?.currency?o(Xr,{label:"Валюта",value:e.currency}):null,t?o(Xr,{label:"Купить",value:String(t)}):null,n?o(Xr,{label:"Продать",value:String(n)}):null]},String(a)),fs={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"}},xs=d((({className:e,children:t,color:n="gray"})=>c("div",{className:u("sm:p-s sm:border sm:border-green rounded-md flex items-center h-fit",fs[n].border,e),children:[o("div",{className:"block pr-m sm:pr-0 sm:hidden",children:o(se,{image:{icon:"SmallClockIcon"},width:"24",height:"24"})}),o(Fe,{size:"text-m",color:fs[n].text,children:t})]}))),bs=(new Date).getDay(),ys=e=>{const[t]=e?.slice(bs-1)??[];if(!t)return null;const{lunchHour:n,status:a,workTime:i,hasLunch:l}=t;return a?c("div",{className:"flex gap-s items-start whitespace-nowrap",children:[i?o(xs,{color:"green",children:i}):null,n&&l?o(xs,{color:"yellow",children:`перерыв: ${n}`}):null]}):o(xs,{color:"red",children:"Выходной"})},vs=({lunchHour:e,hasLunch:t=!1,status:n=!1})=>n?e&&t?`Перерыв ${e}`:e:"Не работает",Ns=({title:e,status:t,workTime:n,lunchHour:a,hasLunch:i},l)=>o(Xr,{label:e,value:t&&n?n:"",subText:vs({lunchHour:a,hasLunch:i,status:t}),subColor:!t||i?"text-error":"text-green-dark"},String(l)),ws=e=>`<p><b>Режим обслуживания физ.лиц:<br/></b>${e}</p>`,Cs=e=>`<p><b>Режим обслуживания физ. и юр. лиц:<br/></b> ${e}</p>`,Ss=(e,t)=>`<p><b>Режим обслуживания физ.лиц:<br/></b>${e}</p> <p><b>Режим обслуживания юр.лиц:<br/></b>${t}</p>`,ks=(e,t)=>{if(!e.workSchedule)return null;const n=ms(e.workSchedule);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(Fe,{size:"text-h4",children:e.name}),e.address?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(J,{name:"GeolocationIcon",width:"24",height:"24"}),o(Fe,{size:"text-l",children:e.address})]}):null]}),ys(n)]}),o(rs,{children:Is(e)})]},String(t))},Is=({phone:e,fax:t,phoneBusiness:n,phoneNatural:a,phoneCallCentre:i,phoneCurrencyControl:l,workSchedule:r,exchangeRate:s})=>{const d=ms(r),m=r?.businessScheduleVisibleTag?"Для физических лиц":"Для физических и юридических лиц";return c("div",{children:[c(es,{className:"flex-wrap border-b border-solid border-main-divider",children:[o(Xr,{label:"Факс",value:t,isPhone:!0}),o(Xr,{label:"Телефон филиала",value:e,isPhone:!0}),o(Xr,{label:"Для обращений юридических лиц",value:n,isPhone:!0}),o(Xr,{label:"Обслуживание физических лиц",value:a,isPhone:!0}),o(Xr,{label:"Для консультаций по валютному контролю",value:l,isPhone:!0}),o(Xr,{label:"Контакт-центр",value:i,isPhone:!0})]}),r?.isMatchesPattern?o(es,{children:o(Xr,{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(Ns)})})}):c(es,{children:[o(Xr,{label:m,labelSize:"text-l",children:o("div",{className:"flex gap-1",children:d?.map(ps)})}),ss(d)]}),r?.businessScheduleVisibleTag?us(r?.businessScheduleDescription):null,s?.currencies?.length?o(es,{className:"flex-wrap",children:s?.currencies?.map(gs)}):null]})},Ts=({name:e="",address:t="",workSchedule:n})=>{const a=(i=e)?`${i?.charAt(0)?.toUpperCase()}${i?.slice(1)}`:"";var i;const l=`${t} ${(e=>{const t=ms(e),n=e?cs(t):"",a=e?e.businessScheduleDescription:"";return e?e.businessScheduleVisibleTag?e.businessScheduleVisibleTag&&null===e.businessScheduleDescription?ws(n):Ss(n,a):Cs(n):""})(n)}`;return{header:a,body:l}},Rs={workingSaturday:!1,premiumService:!1,privateBanking:!1,remoteWorkplace:!1,serviceDisabledPeople:!1,sellingCoins:!1,buyingCoins:!1,bullionOperations:!1,preciousMetalsOperations:!1,transferringDataToBiometricSystem:!1},Bs={safeBoxCaseVolumes:"Аренда индивидуальных сейфовых ячеек",workingSaturday:"Открыты по субботам",terminalTypeAtms:"Банкоматы",terminalTypeTerm:"Терминалы",workAllTime:"Круглосуточно",billAcceptorEnable:"Прием наличных",premiumService:"Премиальное обслуживание",privateBanking:"Услуга Private banking",sellingCoins:"Продажа монет из драгоценных металлов",buyingCoins:"Покупка монет из драгоценных металлов",bullionOperations:"Операции со слитками",preciousMetalsOperations:"Операции с драгоценными металлами",transferringDataToBiometricSystem:"Передача фото и голоса в Единую биометрическую систему",locationDisabledPeople:"Для маломобильных",designDisabledPeople:"Для слабовидящих",remoteWorkplace:"Удаленное рабочее место",serviceDisabledPeople:"Для маломобильных граждан"},Ps={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)},Ds=(e,t)=>{const n=Object.keys(t).filter((e=>t[e]));return e.filter((e=>n.every((t=>Ps[t](e)))))},_s=()=>{},Es=({data:e,remoteWorkplaces:t=[],filtrationState:n={},getBalloon:a=_s,getBalloonRemoteWorkplaces:i=_s})=>{const[l,s,o,c]=r((()=>{const l=Ds(e,n),r=Ds(t,n),s=[...l.map((e=>({type:"offices",coords:[Number(e.gpsLatitude),Number(e.gpsLongitude)]?.filter(Boolean),content:a(e)}))),...r.map((e=>({type:"workplaces",coords:[Number(e.gpsLatitude),Number(e.gpsLongitude)]?.filter(Boolean),content:i({address:e.address,workScheduleDescription:e.workScheduleDescription})})))].filter((e=>e.coords&&2===e.coords.length));return[l,s,r,l.length+r?.length]}),[e,t,n,a,i]);return{filteredItems:l,points:s,filteredRemoteWorkplaces:o,lengthItems:c}},As=e=>{const{data:t,error:n}=ta(`/light-api-cash/v1/dictionary?dictionaryType=${encodeURIComponent(e)}`,Ms);return t&&"errorMessage"in t?{error:n}:{data:t,error:n}},Ms=async e=>await Mt(e,{method:"POST"})||[],Os=!Boolean("object"==typeof globalThis.process&&globalThis.process&&globalThis.process.version),zs=d((({children:e})=>Os?e:null)),Vs=d((({field:e,input:t})=>{const[n,l]=a([]),{data:r}=As("REGION_RF"),s=e("regionRetail")?.value||{},d=e(t?.name??"");i((()=>{(async()=>{const e=await(async e=>{const t=await Hr("/public-data/regionOffices","POST",{regionRfCd:{key:e},cashCardFlg:!0});return t?.offices?.map((e=>({...e,gpsLatitude:Kr(e.latitude??$r[0]),gpsLongitude:Kr(e.longitude??$r[1])})))||[]})(s?.key??"");l(e)})(),s?.key&&d.onChange?.("")}),[s.key]);const{points:m}=Es({data:n,filtrationState:{},getBalloon:Ts});return c("div",{children:[o(Wn,{label:"Адрес отделения",placeholder:"Выберите отделение",options:n.map((({id:e,address:t=""})=>({key:e?.toString()||"",text:t}))),...d,isSearch:!0}),o("div",{className:"h-[600px]",children:o(zs,{children:o(jr,{points:m,isLoad:!r,className:"h-full",selectedAddress:d?.value?.text})})})]})})),Fs=Ut((({field:e,source:t,fieldName:n,placeholder:a="Выберите из списка",options:i,...l})=>{const r=t?.map((e=>({key:e.key||"",text:e.value})))||[];return o(Wn,{placeholder:a,options:r,...e(n),...l})})),Ls=d((({field:e,input:t})=>{const{data:n}=As("EMPLOYEES_NUMBER"),a=Ci();return i((()=>{n&&(a.amountWorkers=n)}),[n]),o(Fs,{field:e,source:a.amountWorkers??[],label:"Количество работающих в организации",fieldName:"amountWorkers",input:t})})),$s=d((({field:e,input:t})=>o(Mi,{text:"Наличие военного билета",...e(t?.name??"")}))),js=d((({field:e,input:t})=>o(Mn,{label:"Код представителя Банка",placeholder:"Введите код",isInteger:!0,...e(t?.name??""),...t}))),Us=d((({field:e,input:t})=>o(Mi,{text:"В отношении меня ведётся производство по делу о банкротстве",...e(t?.name??"")}))),qs=d((({field:e,input:t})=>o(Ka,{label:"Дата начала работы на текущем месте",...e(t?.name??""),...t}))),Ws=d((({field:e,input:t})=>o(Mn,{label:"Место рождения",...e(t?.name??""),...t,disabled:t?.filledByEsia&&Bi(e,"birthPlace")}))),Hs=e=>{try{return JSON.parse(String(e))}catch(e){return null}};const Ys=d((({__html:e,icon:t="InfoCircleIcon",iconVersion:n="black"})=>c("div",{className:"flex flex-row items-center w-full min-h-14 bg-main-gray rounded-lg gap-m p-m",children:[o("div",{className:"rounded-full bg-white p-xs",children:o(J,{name:t,width:"24",height:"24",iconVersion:n})}),o("div",{className:"",children:o(ze,{__html:e})})]}))),Gs=d((({field:e,input:t})=>{const[n,s]=a([]),[d]=function(e){const t=globalThis.localStorage?.getItem(e),[n,i]=a(t?Hs(t):null);return[n,l((t=>{i((n=>{const a=t instanceof Function?t(n):t;return globalThis.localStorage?.setItem(e,JSON.stringify(a)),a}))}),[e])]}("programId"),{value:m,onChange:u}=e("cardCategory"),h=e("paymentSystem")?.value?.key;i((()=>{h&&d&&(async()=>{const e=await(async(e,t)=>{const n=await Hr("/dictionaryFiltered","POST",{type:"CARD_TYPE",presets:{paymentSystemTypeCd:e,creditProgramId:t}});return Array.isArray(n)?n:[]})(h,d);s(e),Ks(e,m)||u&&u(null)})()}),[h]);const p=r((()=>n?.find((e=>e.key===m?.key))?.description),[n,m]);return c("div",{children:[o(Fs,{field:e,source:n,label:"Категория карты",fieldName:"cardCategory",input:t}),p?o(Ys,{__html:p}):null]})})),Ks=(e,t)=>e.some((e=>e.key===t?.key)),Xs=d((({field:e,input:t})=>o(Mn,{label:"Количество детей до 18 лет",placeholder:"Введите значение",isInteger:!0,...e(t?.name??""),...t}))),Js=d((({field:e,input:t})=>o(Mn,{label:"Кодовое слово",...e(t?.name??""),...t}))),Zs=d((({field:e,input:t})=>{const{data:n}=As("INCOME_CERT_UNITED");return o(Fs,{field:e,source:n,label:"Способ подтверждения дохода",fieldName:"confirmationIncome",input:t})})),Qs=d((({field:e,input:t})=>{const{data:n}=As("MILITARY_STATUS");return o(Fs,{field:e,source:n,label:"Статус военнообязанного",fieldName:"conscription",input:t})})),eo={processPersonalDataFlg:{text:"Согласие на обработку персональных данных",docId:4},consentInformFlg:{text:"Согласие на информирование о продуктах и услугах Банка",docId:14},consentProviderFlg:{text:"Согласие об использовании простой электронной подписи",docId:5},consentOthersFlg:{text:"Прочие согласия",docId:1},consentPfrFlg:{text:"Согласие на запрос в ПФР",docId:3}},to=d((({src:e,onClose:t,onDocumentRead:n})=>{const a=Pe();return c(or,{className:"my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0",onClose:t,children:[a?o("img",{src:e}):o("iframe",{src:`${e}#toolbar=0`,className:"w-full h-[80vh]",id:"iframe-dialog"}),o(rr,{className:"mx-auto mt-m",type:"button",onClick:()=>{n?.(),t?.()},children:"Ознакомиться"})]})})),no=(e,t)=>{const{open:n}=xn(to),a=Pe();return l((async()=>{if(e){const i=URL.createObjectURL(await(async(e,t=!1)=>{const n=await Yr(`/feedback/file?id=${encodeURIComponent(e)}&convertToPngFlg=${t}`,"GET");return n?await n.blob():new Blob})(e,a));n({src:i,onDocumentRead:t})}}),[n,e,a])},ao=d((({className:e,error:t,docId:n,...a})=>{const i=no(n,(()=>a.onChange?.(!0)));return c("div",{className:e,children:[c("div",{className:"flex flex-wrap gap-x-m",children:[o(ni,{...a}),n?o(rr,{embedded:!0,onClick:i,children:o(ts,{children:"Ознакомиться"})}):null]}),Tn(t)]})})),io=d((({field:e,input:t})=>t&&t.name?o(ao,{text:eo[t.name]?.text,docId:eo[t.name]?.docId,...e(t.name)}):null)),lo=Math.round(29.5),ro=d((({className:e,title:t,children:n,...a})=>c(g,{className:u("space-y-xl",e),defaultPadding:"p-4xl",...a,children:[t?o(N,{className:"text-center",title:t}):null,n]}))),so="flex flex-col justify-between lg:flex-row gap-x-4xl gap-y-7 lg:gap-y-4xl",oo="flex flex-col lg:w-1/2 gap-2xl",co="flex flex-col gap-y-xl min-w-52",mo=d((({value:e,fractionDigits:t,fixed:n,prefix:a,postfix:i})=>o(Fe,{size:"text-h3",children:"number"==typeof e?[a,Je(t,{fixed:n})(e),i].filter(Boolean).join(" "):e}))),uo=d((({className:e,title:t,value:n,color:a="text-secondary-text",...i})=>c("div",{className:u("flex justify-between @xl:flex-col",e),children:[t?o(Fe,{size:"text-l",font:"font-light",color:a,children:t}):null,n?o(mo,{value:n,...i}):o(Fe,{size:"text-h3",children:"-"})]}))),ho=(e=[],t=!1)=>po([(e,t)=>e>t,(e,t)=>e?.minSum<t?.minSum],e?.filter((e=>t===Boolean(e?.isNewClient)))),po=(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]},go=(e,t=0)=>e?.sum?e.sum:t,fo=(e,t=0)=>e?.period&&e.period>=1&&e.period<=60?e.period:t,xo=(e,t)=>e?o(w,{size:"text-xs",font:"font-light",color:"text-secondary-text",children:e},String(t)):null,bo=({min:e=0,max:t=0,availableMonths:n,...a})=>o(ga,{items:[`От ${yo(e)}`,`До ${yo(t)}`],step:1,...n?.length?{list:n}:{min:e,max:t},...a}),yo=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`,vo=({items:e,title:t,mobileTitle:n=t,orientation:a="horizontal",value:i,onChange:l,...r})=>c("div",{className:"grid gap-s whitespace-nowrap",children:[t?o("div",{className:"hidden @5xl:block",role:"radiogroup","aria-label":t,children:o(Fe,{color:"text-secondary-text",font:"font-light",children:t})}):null,n?o("div",{className:"@5xl:hidden",role:"radiogroup","aria-label":n,children:o(Fe,{color:"text-secondary-text",font:"font-light",children:n})}):null,o(Kl,{orientation:a,items:e,value:e[i?0:1].id,onChange:t=>l&&l(t===e[0].id),...r})]}),No=e=>vo({...e,className:"sm:flex-col",items:[{id:"annuity",text:"Аннуитетный"},{id:"differential",text:"Дифференцированный"}]}),wo=({isShowItems:e=!0,step:t=1e3,postfix:n="₽",...a})=>o(ga,{items:e?[`От ${Je(1)(a.min||0)} ${n}`,`До ${Je(1)(a.max||0)} ${n}`]:[],step:t,...a}),Co=({field:e,defParams:t,calcParams:n,map:a,monthsValue:i="maxMonths"})=>{Object.entries(a).forEach((([n,a])=>{e?.(n)?.onChange?.(t?.[a])})),e?.("monthsValue")?.onChange?.(da(t?.[i],n.minMonths,n.maxMonths))},So=(e,t)=>{const{isAnnuity:n,moneyValue:a,monthsValue:i,moneyExtra:l}=t;if(0===e)return 0;if(n){const t=e/1200;return l?(a+l)*(t+t/(Math.pow(1+t,i)-1)):a*(t+t/(Math.pow(1+t,i)-1))}return Math.round(a/i)+a*(e/1200)},ko=e=>e,Io=(e=ko)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),To=Io(),Ro=(e=ko)=>Io((t=>-e(t))),Bo=Ro(),Po=([e,t],n,a=[])=>n&&n[e]&&n[t]?{[e]:n[e],[t]:n[t]}:Do([e,t],a),Do=([e,t],n=[])=>({[e]:n.length?Bo(n.filter((t=>"number"==typeof t[e])).map((t=>t[e]))):0,[t]:n.length?To(n.filter((t=>"number"==typeof t[e])).map((e=>e[t]))):0}),_o=(e,[t,n],a)=>e>=a[t]&&e<=a[n],Eo={minSum:1e4,maxSum:5e6,minMonths:1,maxMonths:60,rate:0,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,isInsurance:!0},Ao=e=>Mo({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&Mo({...e,fieldKey:"isStateEmployee",viewSettingFieldKey:"isShowStateEmployee"})&&Mo({...e,fieldKey:"isPensionClient",viewSettingFieldKey:"isShowPensionClient"})&&Mo({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),Mo=({row:e,userInputParams:t,paramsViewSettings:n,fieldKey:a,viewSettingFieldKey:i})=>!!n&&!n[i]||t[a]===e[a],Oo=(e,t,n)=>{const{moneyValue:a,monthsValue:i}=e,l=t?.rateRows||[Eo],r=(({limitRows:e,userInputParams:t,paramsViewSettings:n})=>e?.find((e=>Ao({row:e,userInputParams:t,paramsViewSettings:n}))))({limitRows:t?.limitRows||[],userInputParams:e,paramsViewSettings:n}),{minSum:s,maxSum:o}=Po(["minSum","maxSum"],r,l),{minMonths:c,maxMonths:d}=Po(["minMonths","maxMonths"],r,l),m=(({rateRows:e=[],userInputParams:t,paramsViewSettings:n,moneyValue:a,monthsValue:i})=>e?.find((e=>Ao({row:e,userInputParams:t,paramsViewSettings:n})&&_o(a,["minSum","maxSum"],e)&&_o(i,["minMonths","maxMonths"],e)))||Eo)({rateRows:l,userInputParams:e,paramsViewSettings:n,moneyValue:a,monthsValue:i}),{rate:u}=m,h=So(u,e);return{...m,...e,minSum:s,maxSum:o,minMonths:c,maxMonths:d,moneyValue:a,monthsValue:i,monthlyPayment:h}},zo=(e={})=>Boolean(Object.values(e).filter((e=>e)).length),Vo={isSalaryClient:"isSalaryClient",isStateEmployee:"isStateEmployee",isPensionClient:"isPensionClient",isInsurance:"isInsurance",moneyValue:"maxSum"},Fo=Ut((({className:e,title:t,calcSource:n,buttons:a,footnote:l,paramsViewSettings:r,defaultParams:s,onChange:d,...m})=>{const h=(p=n?.rateRows,po([(e,t)=>e<t,(e,t)=>e?.maxSum>t?.maxSum],p));var p;const[g,{field:f}]=gn({moneyValue:go(s,2e5),monthsValue:fo(s,lo),isAnnuity:Boolean(s?.isAnnuity),isInsurance:Boolean(s?.isEnableInsurance),isSalaryClient:Boolean(s?.isEnableSalaryClient),isPensionClient:Boolean(s?.isEnablePensionClient),isStateEmployee:Boolean(s?.isEnableStateEmployee)},{onChange:d}),x=Oo(g,n,r),b=No({title:"Тип платежа",orientation:"vertical",...f("isAnnuity")}),{onChange:y}=f("moneyValue"),{onChange:v}=f("monthsValue");return i((()=>{y&&y(da(g.moneyValue,x.minSum,x.maxSum))}),[x.minSum,x.maxSum]),i((()=>{v&&v(da(g.monthsValue,x.minMonths,x.maxMonths))}),[x.minMonths,x.maxMonths]),i((()=>{!zo(s)&&h&&Co({field:f,defParams:h,calcParams:x,map:Vo,monthsValue:"minMonths"})}),[n,s]),o(ro,{className:e,title:t,...m,children:c("section",{className:u(so,e),children:[c("div",{className:oo,children:[wo({title:"Сумма кредита, ₽",step:500,min:x.minSum,max:x.maxSum,...f("moneyValue"),value:x.moneyValue}),bo({title:"Срок кредита, месяцев",min:x.minMonths,max:x.maxMonths,...f("monthsValue"),value:x.monthsValue}),Lo({...x,...r},f),o("div",{className:"sm:hidden",children:b})]}),c("div",{className:u(co,"@4xl:w-1/2"),children:[o(uo,{title:"Полная стоимость кредита",value:n?.totalLoanCost}),o(uo,{title:"Ставка",value:x?.rate,fractionDigits:2,postfix:"%"}),o(uo,{title:"Ежемесячный платёж",value:x.monthlyPayment,postfix:"₽"}),o("div",{className:"hidden sm:block mb-lg",children:b}),Ye(a,{isVertical:!0}),xo(l)]})]})})})),Lo=(e,t)=>c("div",{className:"flex flex-col gap-y-2xl",children:[e.isShowSalaryClient?o(ni,{text:"Получаю зарплату на счёт\nв Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient,className:"whitespace-pre-line sm:whitespace-normal"}):null,e.isShowStateEmployee?o(ni,{text:"Работаю в бюджетной организации",...t("isStateEmployee"),value:e.isStateEmployee}):null,e.isShowPensionClient?o(ni,{text:"Получаю пенсию на карту Россельхозбанка",...t("isPensionClient"),value:e.isPensionClient}):null,e.isShowInsurance?o(ni,{text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null]}),$o="calculator",jo=d((({field:e,params:t})=>{const n=l((t=>{e($o).onChange?.(t)}),[]);return o(Fo,{...t?.calcData,padding:"p-0",defaultParams:qo(e($o).value),onChange:n})})),Uo={moneyValue:"sum",monthsValue:"period",isInsurance:"isEnableInsurance",isPensionClient:"isEnablePensionClient",isStateEmployee:"isEnableStateEmployee",isSalaryClient:"isEnableSalaryClient",isAnnuity:"isAnnuity"},qo=(e,t=!1)=>{const n=t?Wo(Uo):Uo;return Object.fromEntries(Object.entries(e??{}).map((([e,t])=>[n[e],t])))},Wo=e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[t,e]))),Ho=d((({field:e,input:t})=>{const{data:n}=As("CREDIT_IN_RSHB");return o(Fs,{field:e,source:n,label:"Имеет ли юридическое лицо, акционером / участником / членом / пайщиком /\n вкладчиком с долей участия более 20% уставного капитала руководителем,\n которого Вы являетесь, кредит в АО «Россельхозбанк»",fieldName:"creditInRshbCd",input:t,disabled:!e?.("shareholderFlg")?.value})})),Yo=d((({className:e,label:t,error:n,...a})=>c("div",{className:u("shrink-0 w-full",e),children:[o(Kl,{label:vn({label:t,errors:a?.errors}),...a}),Tn(n)]}))),Go=[{id:"810",text:"Рубли"}],Ko=d((({field:e,input:t})=>o(Yo,{label:"Валюта",orientation:"horizontal",items:Go,...e(t?.name??"")}))),Xo=d((({field:e,input:t})=>o(Ka,{label:"Дата доставки",...e(t?.name??"")}))),Jo=d((({field:e,input:t})=>o(Mn,{label:"Количество иждивенцев",placeholder:"За исключение детей до 18 лет",isInteger:!0,maxLength:2,...e(t?.name??""),...t}))),Zo=d((({field:e,input:t})=>o(Mi,{text:"Являюсь инвалидом",...e(t?.name??"")}))),Qo=d((({field:e,input:t})=>o(Ka,{label:"Дата выдачи",...e(t?.name??""),disabled:t?.filledByEsia&&Bi(e,t?.name??"")}))),ec=d((({field:e,input:t})=>{const{value:n,onChange:a}=e("dulSubdivisionCode"),i=l((e=>{a?.(e?.data?.code?.replace("-",""))}),[]);return o(Mn,{disabled:t?.filledByEsia&&Bi(e,t?.name??""),label:"Кем выдан",...t,...e(t?.name??""),onDaDataChange:i,daDataQueryPrefix:n})})),tc=d((({field:e,input:t})=>o(Mn,{disabled:t?.filledByEsia&&Bi(e,t.name??""),label:"Номер документа",isInteger:!0,maxLength:6,...e(t?.name??"")}))),nc=d((({field:e,input:t})=>o(Mn,{disabled:t?.filledByEsia&&Bi(e,t.name??""),label:"Серия документа",isInteger:!0,maxLength:4,...e(t?.name??"")}))),ac=d((({field:e,input:t})=>{const n=l((t=>{e?.("dulIssuedBy")?.onChange?.(t?.data?.name)}),[]);return o(Mn,{disabled:t?.filledByEsia&&Bi(e,t.name??""),label:"Код подразделения",isInteger:!0,maxLength:6,...t,...e(t?.name??""),onDaDataChange:n})})),ic=d((({field:e,input:t})=>{const{data:n}=As("EDUCATION_LEVEL");return o(Fs,{field:e,source:n,label:"Образование",fieldName:"education",input:t})})),lc=d((({field:e,input:t})=>{const{data:n}=As("ORGANIZATION_ACTIVITY_TYPE"),a=Ci();return i((()=>{n&&(a.employerActivities=n)}),[n]),o(Fs,{field:e,source:a.employerActivities??[],label:"Вид деятельности организации-работодателя",fieldName:"employerActivities",input:t})})),rc=d((({field:e,input:t})=>{const{data:n}=As("ORGANIZATION_KIND"),a=Ci();return i((()=>{n&&(a.employerOrganization=n)}),[n]),o(Fs,{field:e,source:a.employerOrganization??[],label:"Вид организации работодателя",fieldName:"employerOrganization",input:t})})),sc=d((({field:e,input:t})=>{const{data:n}=As("EMPLOYMENT_INFO_UNITED");return o(Fs,{field:e,source:n,label:"Информация о трудоустройстве",fieldName:"employment",input:t})})),oc=d((({field:e,input:t})=>o(Mn,{label:"Обязательные расходы в месяц",placeholder:"Введите значение",isInteger:!0,...e(t?.name??""),...t}))),cc=d((({field:e,input:t})=>{const n=l((n=>e(t?.name??"")?.onChange?.(String(da(Number(n),0,5)))),[]);return o(Mn,{label:"Стаж",placeholder:"За последние 5 лет",type:"number",...e(t?.name??""),...t,onChange:n})})),dc=d((({field:e,input:t})=>{const{value:n,onChange:a}=e(t?.name??""),l=e("familyStatus")?.value?.key,r="MARRIED"===l?2:1,s=Number(e("children")?.value),c=Number(e("dependents")?.value),d=r+s+c;return i((()=>{a?.(d)}),[l,s,c]),o(Mn,{label:"Количество членов семьи",placeholder:"Введите значение",type:"number",disabled:!0,value:n,onChange:a})})),mc=d((({field:e,input:t})=>{const{data:n}=As("MARITAL_STATUS");return o(Fs,{field:e,source:n,label:"Семейное положение",fieldName:"familyStatus",input:t})})),uc=d((({field:e,input:t})=>o(Mn,{label:"Общий стаж",type:"number",maxLength:2,placeholder:"Количество лет",...e(t?.name??""),...t}))),hc=d((({field:e,input:t})=>{const{data:n}=As("HOUSE_TYPE");return o(Fs,{field:e,source:n,label:"Тип жилья",fieldName:"housing",input:t})})),pc=d((({input:e})=>o(Ys,{__html:e?.label}))),gc=d((({field:e,input:t})=>o(Mn,{label:"Количество мест работы за последние 5 лет",placeholder:"Количество мест",isInteger:!0,maxLength:2,...e(t?.name??""),...t}))),fc=d((({field:e,input:t})=>o(Mn,{label:"Стаж на последнем рабочем месте",placeholder:"Количество лет",type:"number",maxLength:2,...e(t?.name??""),...t}))),xc=d((({field:e,input:t})=>o(Mn,{label:"Наименование юридического лица",...t,...e(t?.name??""),disabled:!e?.("shareholderFlg")?.value}))),bc=d((({field:e,input:t})=>o(Mn,{label:"ОПФ",placeholder:"ООО, ПАО и др.",...e(t?.name??""),...t}))),yc=d((({field:e,input:t})=>o(Ka,{label:"Дата рождения",...e(t?.name??""),disabled:t?.filledByEsia&&Bi(e,t.name??"")}))),vc=d((({field:e,input:t})=>o(Mn,{label:"Обязательные выплаты",placeholder:"Введите значение",isInteger:!0,...e(t?.name??""),...t}))),Nc=[{id:"office",text:"В отделении Банка"},{id:"courier",text:"Курьерская доставка"}],wc=d((({field:e,input:t})=>o(Yo,{orientation:"horizontal",items:Nc,...e(t?.name??"")}))),Cc=d((({field:e,input:t})=>{const{data:n}=As("ORGANIZATION_TYPE"),a=Ci();return i((()=>{n&&(a.organization=n)}),[n]),o(Fs,{field:e,source:a.organization??[],label:"Тип организации",fieldName:"organization",input:t})})),Sc=d((({field:e,input:t})=>{const n=Ci(),a=l((t=>{e?.("inn")?.onChange?.(t.data?.inn),_i(n,e,t)}),[]);return o(Mn,{label:"Наименование организации",...t,...e(t?.name??""),onDaDataChange:a})})),kc=d((({field:e,input:t})=>o(Mn,{label:"Иные доходы",placeholder:"Введите значение",isInteger:!0,...e(t?.name??""),...t}))),Ic=d((({field:e,input:t})=>o(Ka,{label:"Дата регистрации по месту жительства",...e(t?.name??"")}))),Tc=d((({field:e,input:t})=>{const n=l((n=>e(t?.name??"")?.onChange?.(String(da(Number(n),0,100)))),[]);return o(Mn,{label:"Доля участия в бизнесе",placeholder:"в %",isInteger:!0,maxLength:3,...e(t?.name??""),...t,onChange:n})})),Rc=e=>e.map((e=>({key:e.type,text:e.name})));const Bc=e=>e?.key,Pc=d((({field:e,input:t})=>{const[n,l]=a([]),s=wi();var c;c=async()=>{const{programId:e}=s;if(e){const t=await(async e=>{const t=await Hr("/public-data/creditProgramConditions","POST",{creditProgramId:e});return Rc(t?.paymentSystems||[])})(e);l(t??[])}},i((()=>{const e=c();return()=>{e.then((e=>{e instanceof Function&&e()}))}}),[]);const d=r((()=>n?.map((e=>({id:e.key,text:e.text})))??[]),[n]);return o(Yo,{label:"Платежная система",orientation:"horizontal",items:d,...e(t?.name??"",{format:Bc,parse:e=>n?.find((t=>t.key===e))})})})),Dc=d((({field:e,input:t})=>{const{data:n}=As("POSITION");return o(Fs,{field:e,source:n,label:"Должность в организации",fieldName:"positionOrganization",input:t})})),_c=d((({field:e,input:t})=>{const{data:n}=As("REGION_RF"),a=n?.map((({key:e,value:t})=>({key:e,text:t})));return o(Wn,{label:"Регион",placeholder:"Выберите регион",isSearch:!0,options:a,...e(t?.name??"")})})),Ec=d((({field:e,input:t})=>o(Mn,{label:"Пенсионные доходы",placeholder:"Введите значение",isInteger:!0,...e(t?.name??""),...t}))),Ac=["male","female"],Mc=[{id:"male",text:"Мужской"},{id:"female",text:"Женский"}],Oc=d((({field:e,input:t})=>{const n=e("name")?.value,{value:a,onChange:l}=e("sex");return i((()=>{n&&!a&&(async()=>{const e=await(async e=>{const t=await Bn({url:"/suggest/fio",requestData:{parts:["NAME"]},query:e}),n=t[0]?.data?.gender?.toLowerCase()||"";return Ac.includes(n)?n:""})(n);e&&l?.(e)})()}),[]),o(Yo,{label:"Пол",orientation:"horizontal",items:Mc,...e(t?.name??"")})})),zc=d((({field:e,input:t})=>o(Mi,{text:"Я являюсь акционером / участником / членом / пайщиком / вкладчиком с долей участия более 20% уставного капитала юридического лица",...e(t?.name??"")}))),Vc=d((({children:e,onChange:t,maxLength:n,...a})=>{const i=l((e=>n?e.length<=n&&t?.(_a(e,"___-___-___ __")):t?.(_a(e,"___-___-___ __"))),[t]),r=l((e=>{"___-___-___ __"===e&&t&&t("")}),[]);return o(kn,{...a,onChange:i,onFocus:e=>i(e?.target?.value||""),onBlur:e=>r(e?.target?.value||""),children:e})})),Fc=d((({className:e,label:t,value:n,error:a,onChange:i,onBlur:l,...r})=>c("div",{className:u("shrink-0 w-full",e),children:[o(Vc,{"aria-label":t,label:vn({label:t,errors:r?.errors}),valid:Boolean(!a),value:n,onChange:i,onBlur:l,placeholder:"___-___-___ __",...r}),Tn(a)]}))),Lc=d((({field:e,input:t})=>o(Fc,{label:"СНИЛС",maxLength:14,...e(t?.name??""),...t}))),$c=d((({field:e,input:t})=>o(Mn,{label:"Совокупный официальный доход в месяц после вычета налогов (зарплата, премии)",placeholder:"Введите значение",isInteger:!0,...e(t?.name??""),...t}))),jc=d((({field:e,input:t})=>o(Mn,{label:"Совокупный доход в месяц после вычета налогов (зарплата, премии)",placeholder:"Введите значение",isInteger:!0,...e(t?.name??""),...t}))),Uc={limitedBirthday:yc},qc={processPersonalDataFlg:io,consentProviderFlg:io,consentOthersFlg:io,consentInformFlg:io,consentPfrFlg:io},Wc={organization:Cc,organizationAddress:Pi,organizationPhone:tl,organizationName:Sc,legalForm:bc,generalSeniority:uc,lastJobExperience:fc,experience5Years:cc,jobsNumber:gc,beginDate:qs,addressFact:Ir,addressRegistration:Pi,addressRetail:Vs,addressMatch:Tr,sex:Oc,limitedBirthday:yc,birthPlace:Ws,education:ic,housing:hc,amountWorkers:Ls,employment:sc,employerActivities:lc,employerOrganization:rc,positionOrganization:Dc,familyStatus:mc,familyMembers:dc,children:Xs,dependents:Jo,totalIncome:$c,expenses:oc,snils:Lc,conscription:Qs,armyIdFlg:$s,dulSerie:nc,dulNumber:tc,dulIssueDate:Qo,dulSubdivisionCode:ac,dulIssuedBy:ec,participantDateRegistration:Ic,retirementIncome:Ec,otherIncome:kc,wages:jc,mandatoryPayments:vc,disablePeopleFlg:Zo,bankruptcyFlg:Us,shareholderFlg:zc,legalEntityName:xc,creditInRshbCd:Ho,bankEmployeeCode:js,partInBusiness:Tc,regionRetail:_c,infoCard:pc,calculator:jo,confirmationIncome:Zs},Hc={addressCourier:Pi,paymentSystem:Pc,currency:Ko,cardCategory:Gs,codeWord:Js,methodObtain:wc,deliveryDate:Xo},Yc="Согласие на все документы",Gc=d((({inputs:e=[],field:t,key:n})=>{const a=e.every((e=>Boolean(t(e.name).value))),i=l((n=>{for(const a of e){const e=t(a.name);e.onChange?.(n)}}),[e]),s=r((()=>e?.filter((e=>e.required))?.some((e=>Boolean(ul(t(e?.name),Ml[e?.name]).error)))),[e]),[d,{toggle:m}]=on(!0);return o("div",{className:"w-fit",children:c(is,{children:[c("div",{className:"flex items-start",children:[c("div",{children:[o(ni,{text:Yc,value:a,onChange:i},n),Tn(s?"Отметьте все обязательные соглашения":"")]}),o(rr,{embedded:!0,ariaLabel:Yc,onClick:m,children:o(ns,{className:"p-2xs",iconVersion:"color",isUnfolded:d})})]}),o(ls,{className:"flex flex-col pl-2xl",isUnfolded:d,children:e.map(er(t,{},qc))})]})})})),Kc=({field:e,inputs:t})=>{const{consentInputs:n,restInputs:a}=Xc(t||[]);return n.length>2?c("div",{children:[a.map(er(e,{},{...Uc})),o(Gc,{inputs:n,field:e})]}):(t||[])?.map(er(e,{},{...Uc}))},Xc=(e=[])=>({consentInputs:e.filter((({name:e})=>Object.keys(eo).includes(String(e)))),restInputs:e.filter((({name:e})=>!Object.keys(eo).includes(String(e))))}),Jc=(e,t)=>o(xr,{className:"w-full @xl:w-auto",isLoading:t,children:e?.text?e.text:"Отправить заявку"}),Zc=e=>Yr("/user-data/updateUserProfile","PUT",e),Qc=e=>Yr("/user-data/updateUserTask","PUT",e),ed={width:"118",height:"24"},td={"bg-white":"color",transparent:"white"},nd={"bg-white":"text-primary-main",transparent:"text-white"},ad=(e,t,n)=>o(se,{image:t?.src?t:{icon:t?.icon||"LogoIcon",iconVersion:td[e]},className:nd[e],width:n?.width,height:n?.height}),id={"bg-white":"text-primary-text",transparent:"text-white"},ld=d((({className:e,href:t="/",logo:n,children:a,targetBlank:i,bgColor:l="bg-white",showTitle:r=!0,data:s})=>c("a",{className:u("inline-flex items-center font-sans no-underline",e),href:n?.href??t,target:i?"_blank":"_self","aria-label":n?.title??"Россельхозбанк",...Ne(s),children:[ad(l,n?.image,ed),r?a??o("div",{className:"ml-s",children:o(Fe,{font:"font-medium",color:id[l],size:"",children:n?.title??"Россельхозбанк"})}):null]}))),rd=d((({phoneNumber:e,sendCode:t,onClose:n})=>{const[r,s]=a(""),[d,m]=a(""),[u,h]=a(!1),[p,{setTrue:g,setFalse:f}]=on(!1),x=l((async()=>{g();var e;await(e={captchaText:d},Yr("/sms/checkCaptcha","POST",e).then((e=>e.text())).then((e=>"ERROR"!==e)))?(n?.(),t?.()):h(!0),f()}),[d,t]),b=l((()=>{(async()=>{s(URL.createObjectURL(await(e=>Yr(`/sms/createCaptcha?phoneNumber=${encodeURIComponent(e)}`,"GET").then((async e=>e?await e.blob():new Blob)))(e)))})()}),[]);return i(b,[]),o(or,{className:"my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg",head:o(ld,{}),onClose:n,children:c("div",{className:"flex flex-col gap-lg items-center rounded-md",children:[c("div",{className:"flex h-36 w-72",children:[o("img",{className:"grow",src:r}),o(rr,{className:"w-8",embedded:!0,onClick:b,children:o(J,{iconVersion:"normal",name:"RefreshIcon"})})]}),o(kn,{className:"w-[300px]",onChange:m,value:d,placeholder:"Введите код с картинки"}),u?o("div",{className:"text-error",children:"Неверный код"}):null,c("div",{className:"flex w-[310px] justify-between",children:[o(rr,{version:"secondary",onClick:close,children:"Вернуться"}),o(xr,{version:"secondary",disabled:!d,onClick:x,children:"Отправить"})]}),p?o(fr,{blur:!1}):null]})})})),sd=d((({className:e,seconds:t})=>o("span",{className:e,children:od(t)}))),od=e=>[Math.floor(e/60),e%60].map((e=>String(e).padStart(2,"0"))).join(":"),cd=(e,t)=>{const n=s(null),a=l((()=>clearInterval(n.current)),[]),r=l((()=>{a(),n.current=setInterval((()=>e(a)),t)}),[e,t,a]);return i((()=>(r(),a)),[r,a]),{start:r,stop:a}};function dd({seconds:e,period:t=1e3,onTick:n,onEnd:a}){const i=s(e),r=l((e=>{i.current||=0,i.current=Math.max(0,i.current-1);try{n?.(i.current)}finally{i.current<=0&&(e(),a?.())}}),[n,a]),{start:o}=cd(r,t);return l((e=>{i.current=e,o()}),[])}const md=d((({values:e,setValues:t,hasError:n,errorText:r})=>{const[d,m]=a(0),u=s([]);i((()=>{u.current?.[d]?.focus()}),[d]);const h=l((n=>a=>{const{value:i}=a.currentTarget,l=i.slice(0,1);t(e.map(((e,t)=>t===n?l:e))),m(n+1)}),[e]),p=l((n=>a=>{const{key:i}=a;if("Backspace"===i&&!e[n]){const a=n>0?n-1:e.length-1,i=e.map(((e,t)=>t===a?"":e));t(i),m(a)}}),[e]),g=l((n=>{n.preventDefault();const a=n.clipboardData.getData("text"),i=e.map(((e,t)=>t<a.length?a[t]:e));t(i),m(i.length-1)}),[e]);return c("div",{className:"flex flex-col gap-2 text-center",children:[o("div",{children:e.map(((t,a)=>o("input",{type:"number",maxLength:1,value:t,onChange:h(a),onPaste:g,ref:e=>{u.current||(u.current=[]),u.current[a]=e},onFocus:e=>e.target.select(),onKeyDown:p(a),className:ud(a,e,n)},a)))}),n?o("div",{className:"text-error",children:r}):null]})})),ud=(e,t,n=!1)=>{const a=!t[e];return`w-16 sm:w-20 h-24 text-5xl text-center p-md m-2 border ${Cn(!n||!a)} rounded-md caret-transparent outline-none`},hd=d((({isDisabled:e,onClick:t,text:n})=>o(rr,{type:"button",onClick:t,disabled:e,children:o(Fe,{font:"font-normal",children:n})}))),pd=e=>{e&&(globalThis.sessionStorage.setItem("accessToken",e.access_token),globalThis.sessionStorage.setItem("refreshToken",e.refresh_token))},gd=({values:e,onSuccess:t})=>{const[n,r]=a(""),[s,{setTrue:o,setFalse:c}]=on(!1),[d,m]=a(0),[u,h]=a(!1),[p,g]=a(0),f=l((()=>r("")),[]),x=Boolean(0===d&&u),b=p>2||x||!e.every(Boolean),y=l((async()=>{try{h(!1),m(0),g((e=>e+1)),o(),await(async e=>Hr("/sms/checkCode","POST",e).then(pd))({smsText:e.join(""),smsCodesSetName:{key:"AUTHENTICATION"}}),f(),await(t?.(e.join("")))}catch{r(p>1?"Исчерпан лимит ввода смс-кода":"Неверный код")}finally{c()}}),[e,p]);return i((()=>{r(x?"Код просрочен":"")}),[x]),{handleSubmit:y,hasError:Boolean(n),errorText:n,isLoading:s,timeNextReq:d,isSubmitButtonDisabled:b,setTimeNextReq:m,setIsTimerStarted:h,setAttempts:g}},fd=d((({phone:e,code:t=!0,withDescription:n=!0,codeLength:r=4,consents:s,onSuccess:d=Nn,onClose:m=Nn})=>{const[u,h]=a(Array(r).fill("")),{handleSubmit:p,hasError:g,errorText:f,isLoading:x,timeNextReq:b,isSubmitButtonDisabled:y,setTimeNextReq:v,setIsTimerStarted:N,setAttempts:w}=gd({values:u,onSuccess:d}),C=xn(rd),k=Gt(e),I=dd({seconds:b,onTick:v}),T=l((async()=>{var e;await(e={phoneNumber:k,smsCodesSetName:{key:"AUTHENTICATION"}},Yr("/sms/sendCode","POST",e).then((e=>e.text())).then((e=>"OK"===e)))?(w(0),v(180),I(180),N(!0)):C.open({phoneNumber:k,sendCode:T})}),[k,I,m]);return i((()=>{T()}),[]),o(or,{className:"my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl p-m",onClose:m,children:c("div",{className:"flex flex-col gap-xl items-center rounded-md",children:[o(S,{className:"w-full",title:"Подтвердите номер телефона",description:`Мы отправили код на ${e}`,headlineVersion:"XS",isEmbedded:!0,as:"h6"}),t?o(md,{values:u,setValues:h,errorText:f,hasError:g}):null,bd(b,T),n?c(ze,{itemSize:"list-s",children:[o("span",{children:"Вводя код, я подтверждаю, что ознакомлен и подписываю: "}),o("ul",{children:s?.map(((e,t)=>o("li",{children:e},`${e}-${t}`)))})]}):null,xd(y,p),x?o(fr,{blur:!1}):null]})})})),xd=(e,t)=>o(hd,{text:"Далее",isDisabled:e,onClick:t}),bd=(e,t)=>e?c("div",{className:"flex flex-row text-l font-light text-base",children:["Получить новый код можно через",o(sd,{className:"ml-1",seconds:e})]}):o(rr,{embedded:!0,onClick:t,children:o(ts,{children:"Получить новый код"})}),yd={title:"Подпишите согласие на запрос в БКИ",description:"Согласие на запрос в Бюро кредитных историй (БКИ) ускорит решение по кредиту"},vd={title:"Вы уверены, что хотите отказаться от запроса в БКИ",description:"Согласие на запрос в Бюро кредитных историй (БКИ) повысит вероятность одобрения"},Nd=[{id:"SIGNED",text:"Подписать"},{id:"REFUSE",text:"Отказаться"}],wd=d((({onSubmit:e=Nn,onClose:t=Nn})=>{const[n,i]=a(""),[r,s]=a(!1),d=no(2),m=l((()=>{e(n)}),[e,n]),u=l((e=>{i(e),"REFUSE"===e&&s(!0)}),[]),h=r?vd:yd;return o(or,{className:"my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-lg px-5xl",onClose:t,children:c("div",{className:"flex flex-col gap-xl items-center",children:[o("div",{role:"button",onClick:d,children:o(N,{className:"text-center text-balance",headingType:"h2",title:h.title})}),o(w,{align:"text-center",children:h.description}),o(Kl,{className:"whitespace-normal",orientation:"horizontal",items:Nd,value:n,onChange:u}),o(rr,{disabled:!n,type:"button",onClick:m,children:"Далее"})]})})})),Cd=d((({title:e,icon:t,description:n,onClick:a=Nn})=>c("button",{className:"flex gap-lg items-center border border-gray/30 rounded-xl cursor-pointer p-4 hover:border-green",type:"button",onClick:a,children:[o(se,{image:{icon:t,iconVersion:"normal"},width:"78",height:"78"}),c("div",{className:"flex flex-col items-start gap-xs md:w-72 md:mr-lg",children:[o(Fe,{font:"font-medium",size:"text-s",children:e}),n?o(Fe,{color:"text-secondary-text",size:"text-xs",children:n}):null]})]}))),Sd={email:"EMAIL",phone:"MAIN_PHONE",organizationPhone:"ORGANIZATION_PHONE"},kd={addressRegistration:"REGISTRATION",addressFact:"RESIDENTAL",organizationAddress:"WORK",addressCourier:"DELIVERY"},Id={incomeAverage:"INCOME_AVERAGE",mandatoryPayments:"MANDATORY_PAYMENTS",additionalIncome:"ADDITIONAL_INCOME",otherIncome:"OTHER_INCOME",otherPayments:"OTHER_PAYMENTS",rentalIncome:"RENTAL_INCOME",wages:"WAGES",retirementIncome:"RETIREMENT_INCOME"},Td=e=>Object.entries(e).reduce(((e,[t,n])=>t in Sd?[...e,{contactTypeCd:{key:Sd[t]},value:n}]:e),[]),Rd=e=>Object.entries(e).reduce(((e,[t,n])=>{if(t in kd){const a=Object.fromEntries(Object.entries(n??{}).filter((([e])=>!e.startsWith("qc"))).map((([e,t])=>[e,t??""])));return[...e,{addressType:{key:kd[t]},...a}]}return e}),[]),Bd=e=>{const{familyStatus:t,familyMembers:n,dependents:a,children:i,confirmationIncome:l,wages:r,mandatoryPayments:s,additionalIncome:o,otherIncome:c,otherPayments:d,rentalIncome:m,retirementIncome:u,snils:h,armyIdFlg:p,conscription:g}=e;return{maritalStatusCd:t,totalDependents:n,incomeCertificateCd:l,otherDependents:a,childrenDependents:i,militaryStatusCd:g,participantIncomes:(f={wages:r,mandatoryPayments:s,incomeAverage:Pd(r,u),additionalIncome:o,otherIncome:c,otherPayments:d,rentalIncome:m,retirementIncome:u},Object.entries(f).reduce(((e,[t,n])=>t in Id?[...e,{incomeTypeCd:{key:Id[t]},value:Number(n||0)}]:e),[])),snils:h?.replace(/[-\s]/g,""),armyIdFlg:p};var f},Pd=(e,t)=>Number(e)+Number(t),Dd={WORK:"Работаю",RETIREE:"Пенсионер"},_d={BANK_STATEMENT:"Получаю зарплату на счет/карту в РСХБ",BANK_STATEMENT_PENS:"Получаю пенсию на счет/карту в РСХБ",PFR_CERTIFICATE:"Получаю зарплату на счет/карту в другом банке",OTHER:"Другое"},Ed={credit_cash:"10",credit_cash_single_doc:"28",credit_mcx:"39",family_offer_credit:"41",gas_engine_fuel:"33",pension_credit:"12",ref_credit:"11",ref_credit_single_doc:"29",self_employed:"34",summer_cash:"35",summer_cash_pens:"36"},Ad={...Ed,amur_card:"14",owner_card:"13",travel_card:"15"},Md=e=>{const t=e?.find((e=>"WAGES"===e.incomeTypeCd.key))?.value,n=e?.find((e=>"MANDATORY_PAYMENTS"===e.incomeTypeCd.key))?.value,a=e?.find((e=>"ADDITIONAL_INCOME"===e.incomeTypeCd.key))?.value,i=e?.find((e=>"OTHER_INCOME"===e.incomeTypeCd.key))?.value,l=e?.find((e=>"OTHER_PAYMENTS"===e.incomeTypeCd.key))?.value,r=e?.find((e=>"RENTAL_INCOME"===e.incomeTypeCd.key))?.value,s=e?.find((e=>"RETIREMENT_INCOME"===e.incomeTypeCd.key))?.value;return{wages:t,mandatoryPayments:n,incomeAverage:Pd(t,s),additionalIncome:a,otherIncome:i,otherPayments:l,rentalIncome:r,retirementIncome:s}},Od=e=>{const t=e?.find((e=>"REGISTRATION"===e.addressType.key)),n=e?.find((e=>"RESIDENTAL"===e.addressType.key)),a=e?.find((e=>"WORK"===e.addressType.key));return{addressRegistration:t,addressFact:n,organizationAddress:a}},zd=e=>{const t=e?.find((e=>"EMAIL"===e.contactTypeCd.key))?.value,n=e?.find((e=>"MAIN_PHONE"===e.contactTypeCd.key))?.value,a=e?.find((e=>"ORGANIZATION_PHONE"===e.contactTypeCd.key))?.value;return{email:t,phone:n,organizationPhone:a}},Vd=(e,t)=>e?.key?{key:e.key,text:t?t[e.key]:e.value}:void 0,Fd=d((function({task:e,isFromLead:t=!1,onClose:n=Nn}){const a=Ci(),i=nn(),{participants:r,creditProgram:s,createdDate:d="",id:m}=e,u=Ad[s.code],h=Boolean(Ed[s.code]),p=h?"/credit-lead":"/credit-card-lead",{id:g,profile:f}=r[0],x=l((()=>{const t=(e=>{const t=e.participants[0],{classCard:n,codeWord:a,paymentSystemTypeCd:i,currencyCode:l}=e,{loanAmount:r,creditPeriod:s,paymentTypeCd:o}=e,{birthDate:c,midname:d,name:m,surname:u,birthPlace:h,dulIssueDate:p,dulIssuedBy:g,dulNumber:f,dulSerie:x,dulSubdivisionCode:b,educationLevelCd:y,registrationDate:v,houseTypeCd:N,genderCd:w,participantContacts:C=[],participantAddresses:S=[],employmentContractDate:k,employmentTypeCd:I,organizationName:T,organizationInn:R,organizationActivityTypeCd:B,organizationTypeCd:P,organizationKindCd:D,employeesNumberCd:_,opf:E,seniority:A,generalSeniority:M,jobsNumber:O,lastWorkDuration:z,positionCd:V,maritalStatusCd:F,childrenDependents:L,totalDependents:$,otherDependents:j,militaryStatusCd:U,participantIncomes:q,snils:W,armyIdFlg:H,bankruptcyFlg:Y,shareholderFlg:G,nameLegalEntity:K,creditInRshbCd:X,payrollCardRshbFlg:J,consentInsuranceFlg:Z,incomeCertificateCd:Q}=t;return{currency:l?.key,paymentSystem:Vd(i),cardCategory:Vd(n),codeWord:a,limitedBirthday:c,middleName:d,name:m,surname:u,birthPlace:h,dulIssueDate:p,dulIssuedBy:g,dulNumber:f,dulSerie:x,dulSubdivisionCode:b,education:Vd(y),participantDateRegistration:v,housing:Vd(N),beginDate:k,employment:Vd(I,Dd),organizationName:T,inn:R,employerActivities:Vd(B),organization:Vd(P),employerOrganization:Vd(D),amountWorkers:Vd(_),legalForm:E,generalSeniority:A?.toString(),experience5Years:M?.toString(),jobsNumber:O?.toString(),lastJobExperience:z?.toString(),positionOrganization:Vd(V),familyStatus:Vd(F),children:L?.toString(),familyMembers:$?.toString(),dependents:j?.toString(),conscription:Vd(U),confirmationIncome:Vd(Q,_d),snils:W,armyIdFlg:H,bankruptcyFlg:Y,shareholderFlg:G,legalEntityName:K,creditInRshbCd:Vd(X),calculator:{isInsurance:J,isSalaryClient:Z,moneyValue:r,monthsValue:s,isAnnuity:"ANNUITY"===o?.key},...Md(q),...Od(S),...zd(C),...(ee=w,ee?.key?{sex:"MAN"===ee.key?"male":"female"}:null)};var ee})(e);a.participantId=g,a.taskId=m,a.profileId=f?.id,a.programId=u,a.leadForm=t,i.assign(p)}),[]),b=l((()=>{i.assign(h?"/natural/loans/all-goals":"/natural/creditcards/svoya")}),[]);return o(or,{className:"my-6xl max-w-4xl w-full min-h-fit mx-auto rounded-xl py-0",onClose:n,children:c("div",{className:"flex flex-col gap-lg items-center mt-xs md:mt-0 mx-6xl",children:[o(N,{className:"whitespace-pre-wrap text-center",title:"Нашли черновик вашей заявки",headingType:"h5"}),c("div",{className:"flex flex-col gap-m max-w-lg",children:[o(Cd,{title:"Продолжить заполнение черновика",icon:"BankColorIcon",description:d?`Черновик от ${Yt(new Date(d))}`:"",onClick:x}),o(Cd,{title:t?"Продолжить заполнение текущей заявки":"Создать новую заявку",icon:"NewLoanIcon",description:"На получение кредита",onClick:t?n:b})]})]})})})),Ld=d((function({onClose:e=Nn}){const t=nn(),n=l((()=>{t.assign("/natural/loans/all-goals")}),[]),a=l((()=>{t.assign("/")}),[]);return o(or,{className:"my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-lg py-0 px-5xl",onClose:e,children:c("div",{className:"flex flex-col gap-lg",children:[o(N,{className:"text-center",title:"Заявки не найдены",headingType:"h3"}),o(w,{size:"text-l",align:"text-center",children:"По данному номеру не найдено незавершенных заявок. Вы можете заполнить новую заявку или вернуться на главную страницу"}),o(rr,{type:"button",className:"w-full",onClick:n,children:"Заполнить новую заявку"}),o(rr,{type:"button",version:"secondary",className:"w-full",onClick:a,children:"Вернуться на главную"})]})})})),$d=d((({onClose:e})=>{const t=nn(),n=Ci(),a=l((async()=>{const e=await(n={redirectUri:t.href},Hr("/esia/getLink","POST",n));var n;e?.link&&t.assign(e.link)}),[]),i=l((()=>{if(n.leadForm){const e={...n.leadForm};delete e.esiaAccountTypeCd,n.leadForm=e}e?.()}),[]);return o(or,{className:"my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg",onClose:i,children:c("div",{className:"flex flex-col gap-lg items-center rounded-md",children:[c("div",{className:"flex items-center justify-around w-full px-m",children:[c("ul",{className:"list-disc",children:[o("li",{children:"Вероятность одобрения выше"}),o("li",{children:"Без справок о доходах и трудоустройстве"}),o("li",{children:"С защитой Ваших данных"})]}),o(se,{image:{icon:"GosUslugiIcon",iconVersion:"normal"},height:"70"})]}),c("div",{className:"flex flex-wrap gap-lg w-full",children:[o(rr,{type:"button",onClick:a,children:"Заполнить через Госуслуги"}),o(rr,{type:"button",version:"secondary",onClick:i,children:"Пропустить"})]})]})})})),jd=()=>{const e=new URLSearchParams(decodeURIComponent(globalThis.location?.search));return{utm_campaign:e.get("utm_campaign"),utm_medium:e.get("utm_medium"),utm_source:e.get("utm_source"),utm_content:e.get("utm_content"),utm_term:e.get("utm_term")}},Ud=()=>wi(),qd=({programId:e,nextStepLink:t})=>{const[n,{setTrue:i,setFalse:r}]=on(!1),[s,o]=a(),c=(()=>{const e=Ud();return l((({participantId:t,taskId:n,profileId:a,programId:i,formData:l})=>{e.participantId=t,e.taskId=n,e.profileId=a,e.programId=i,e.leadForm=l}),[])})(),d=(e=>{const{open:t}=xn($d),n=nn();return l((()=>{t({onClose:()=>n.assign(e)})}),[t,e])})(t),m=(e=>{const{open:t}=xn(wd),n=xn(fd),a=t=>async n=>{try{t&&await Zc({profile:{id:t,consentBkiFlg:!0,smsConsentBki:n}}),e()}catch(e){console.log(e)}},i=(t,i)=>async l=>{"SIGNED"===l&&t?n.open({phone:t,consents:["согласие на запрос информации в БКИ"],onSuccess:a(i)}):e()};return{open:(n,a)=>t({onSubmit:i(n,a),onClose:e})}})(d),u=xn(fd),h=(()=>{const{open:e}=xn(Fd),{open:t}=xn(Ld);return{open:({task:n,isFromLead:a,onClose:i})=>{n?e({task:n,isFromLead:a,onClose:i}):t({})}}})();return{isSending:n,ok:s,handleSubmit:l((async t=>{try{i();const a=await(n={profile:{phone:Gt(t.phone)}},Hr("/public-data/createUserProfile","POST",n).then((e=>e?.profile?.id||null)));if(a&&t?.phone){const n=async()=>{await Hd({programId:e,profileId:a,formData:t,saveUserData:c}),u.close(),m.open(t.phone,a)},i=async()=>{try{const t=await(async e=>{const t=await Hr("/user-data/getLastStatus","POST",e);return"DRAFT"===t?.statusCd?t?.taskId:null})({profileId:a,programId:e});if(t){const e=await(async e=>await Hr("/user-data/getTaskById","POST",e)||void 0)({taskId:t});u.close(),h.open({task:e,isFromLead:!0,onClose:n})}else await n()}catch{o(!1)}},l=Wd(t);u.open({phone:t?.phone,consents:l,onSuccess:i}),r()}}catch{o(!1)}var n}),[])}},Wd=e=>Object.keys(eo).filter((t=>e[t])).map((e=>eo[e]?.text)),Hd=async({programId:e,profileId:t,formData:n,saveUserData:a})=>{const i=Yd(n);await Zc(((e,t)=>{const{name:n="",surname:a="",middleName:i="",limitedBirthday:l="",phone:r="",email:s="",processPersonalDataFlg:o,consentProviderFlg:c,consentPfrFlg:d,consentPhotoFlg:m,consentAssignmentClaimsFlg:u,consentCollectionFlg:h,consentInformFlg:p}=t;return{profile:{id:e,name:n,surname:a,midname:i,birthDate:l&&Yt(l,!0),email:s,phone:Gt(r),processPersonalDataFlg:Boolean(o),consentProviderFlg:Boolean(c),consentPfrFlg:Boolean(d),consentPhotoFlg:Boolean(m),consentAssignmentClaimsFlg:Boolean(u),consentCollectionFlg:Boolean(h),consentInformFlg:Boolean(p)}}})(t,i));const{taskId:l,participantId:r}=await(async e=>await Hr("/user-data/createDraftTask","POST",e)||{})({profileId:t,programId:e});try{await Qc((({participantId:e,taskId:t,profileId:n,formData:a})=>{const{name:i,surname:l,middleName:r,limitedBirthday:s,phone:o,email:c}=a;return{sendToBank:!0,taskKind:"SHORT",task:{taskSource:nn().origin,id:t,participants:[{birthDate:s&&Yt(s,!0),id:e,midname:r,name:i,surname:l,profile:{id:n},participantContacts:Td({phone:o&&Gt(o),email:c}),roleCd:{key:"BORROWER",value:"Заемщик"}}],marketingInfo:jd()}}})({participantId:r,taskId:l,profileId:t,formData:i}))}catch(e){console.log(e)}a({participantId:r,taskId:l,profileId:t,programId:e,formData:n})},Yd=e=>{const{consentOthersFlg:t,...n}=e;return{...n,consentCollectionFlg:t,consentAssignmentClaimsFlg:t,consentPhotoFlg:t}},Gd={surname:"",name:"",middleName:"",limitedBirthday:void 0,phone:"",email:"",processPersonalDataFlg:!1,consentProviderFlg:!1,consentOthersFlg:!1,consentInformFlg:!1,consentPfrFlg:!1},Kd=(e,t)=>{if(t)return{...t,limitedBirthday:new Date(t?.limitedBirthday||0)};return{...Object.fromEntries(e.map((e=>[e.name,Gd[e.name||""]])))}},Xd=e=>{const{profile:t,addInfo:n,document:a,addressRegistration:i,addressFact:l}=e;return{name:t?.name,surname:t?.surname,middleName:t?.midname,limitedBirthday:t?.birthDate,phone:Zi(t?.phone),email:t?.email,dulIssueDate:a?.dulIssueDate,dulIssuedBy:a?.dulIssuedBy,dulNumber:a?.dulNumber,dulSerie:a?.dulSerie,dulSubdivisionCode:a?.dulSubdivisionCode,snils:n?.snils,birthPlace:n?.birthPlace,addressRegistration:Jd(i),addressFact:Jd(l),esiaAccountTypeCd:t?.esiaAccountType}},Jd=e=>{const{postcode:t,region:n,regionCode:a,locality:i,city:l,street:r,house:s,building:o,block:c,apartment:d}=e,m=[t,n,i||l,r?`ул ${r}`:void 0,s?`д ${s}`:void 0,c?`к ${c}`:void 0,o?`стр ${o}`:void 0,d?`кв ${d}`:void 0].reduce(((e,t)=>t?e?`${e}, ${t}`:t:e),"");return{...e,regionCode:a?.key,fullAddress:m}},Zd=(e,t)=>{const n=nn(),[a,{setTrue:s,setFalse:o}]=on(!1),c=Ud(),d=l((e=>{const t=e instanceof Function?e(m[u]):e;null!=t?m[u]=t:delete m[u]}),[m=c,u="leadForm"]);var m,u;const h=r((()=>Kd(e,c.leadForm)),[e,c.leadForm]),p=l((async(e,a,i)=>{s();try{const r=await(l={profileId:e,code:a,state:i,redirectUri:globalThis.location?.href},Hr("/esia/updateProfileEsia","POST",l));r&&d((e=>({...e,...Xd(r)}))),n.assign(t)}finally{o()}var l}),[t]);return i((()=>{const e=Hs(globalThis.localStorage?.getItem("profileId")??""),t=new URLSearchParams(decodeURIComponent(globalThis.location?.search)),n=t.get("code"),a=t.get("state");e&&n&&a?p(e,n,a):(sessionStorage.removeItem("accessToken"),sessionStorage.removeItem("refreshToken"))}),[]),[h,{isLoading:a}]},Qd=d((({className:e,title:t,programId:n="",nextStepLink:a="/credit-lead",button:l,...s})=>{const d=r((()=>kr?.flatMap((e=>e?.inputs))||[]),[kr]),m=r((()=>Ol(d)),[d]),[h,{isLoading:p}]=Zd(d,a),{isSending:g,ok:f,handleSubmit:x}=qd({programId:n,nextStepLink:a}),[,{field:b,onSubmit:y}]=gn(h,{formValidator:m,onSubmit:x}),v=xn(cr);return i((()=>{void 0!==f&&v.open({ok:f})}),[f]),o(fn,{className:u("container space-y-m",e),title:t,...s,children:c("form",{onSubmit:y,className:"space-y-m relative",children:[p?o(fr,{blur:!1}):null,kr.map(((e,t)=>c("div",{className:u(tr(e.columns),"grid gap-x-m"),children:[nr(e.title),Kc({field:b,inputs:e?.inputs})]},`section-${t}`))),Jc(l,g)]})})})),em=d((({title:e,description:t})=>{const n=Pe();return c("div",{className:"bg-white p-6xl py-20 flex gap-s flex-col @xl:items-center",children:[o(se,{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"})]})})),tm=e=>e%2!=0,nm="space-y-px lg:space-y-0 lg:grid lg:grid-cols-12 gap-2xs",am=d((({topItemsCount:e=0,label:t,block:n,blocksToRender:a=[],...i})=>{const[l,r]=e>0?[a.slice(0,e),a.slice(e)]:[a,[]],[s,{toggle:d}]=on(!1);return c("div",{className:u("space-y-2xs",{hidden:!a.length}),children:[c("div",{className:u(nm),children:[B(l,{...i.options,parent:n}),tm(l.length)?o(Wt,{className:"col-span-6",...i}):null]}),c(is,{children:[c(ls,{className:u(nm),isUnfolded:s,children:[B(r,{...i.options,parent:n}),tm(r.length)?o(Wt,{className:"col-span-6",...i}):null]}),o(as,{className:u("text-h4",{hidden:e<1}),label:t,isUnfolded:s,disabled:!r?.length,dataTheme:i.options?.page?.colorPalette,onClick:d})]})]})})),im=(e=!1)=>e?"border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider":"",lm=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),rm=10;function sm(e,{sensitivity:t,rootRef:n}={}){const a=s(null),l=r((()=>({threshold:om(t),root:n?.current})),[t,n?.current]);return i((()=>{if(!a.current)return;const t=new IntersectionObserver(e,l);return t.observe(a.current),()=>{t.disconnect()}}),[e,l]),a}function om(e=0){const t=Math.round(e*rm);return Array.from({length:t}).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const cm=d((({className:e,style:t,idx:n,activeIndex:a,observerOptions:i,children:r,onIntersection:s})=>{const c=sm(l((e=>{e.length&&s&&s(n||0,e[e.length-1])}),[s,n]),i);return o("div",{className:u("inline-block snap-always box-border",e),style:t,"aria-current":Boolean(n===a),ref:c,role:"listitem",children:r})})),dm=["min-w-full","lg:min-w-[50%]","lg:min-w-[33.3%]","lg:min-w-[25%]"],mm=d((({className:e,itemClassName:t,containerRef:n,activeIndex:a,visibleItemCount:i=0,gap:r=0,padding:c=0,listType:d="horizontal-list",snapAlign:m="snap-center",minHeight:h,children:p,onVisibleItemsChange:g,onVisibleIndicesChange:f})=>{const x={sensitivity:1,rootRef:n},b=s([]),y=l(((e,t)=>{const n=[...b.current||[]];n[e]=t,b.current=n,g&&g(n),f&&f(hm(n))}),[g,f]),v=i>0?r*Number(i)-1:0,N="vertical-list"===d,w="horizontal-list"===d,C={...w?um(c,v):{},...N?lm(h):{},gap:`${r}px`};return o("div",{className:u("box-border overflow-auto no-scrollbar",d,e),style:C,ref:n,role:"list",children:(S=(e,n)=>o(cm,{className:u(m,i?dm[i-1]:"",{"h-full":N},t),style:w?um(c/4):{},activeIndex:a,idx:n,observerOptions:x,onIntersection:y,children:e},String(n)),e=>null==e?e:Array.isArray(e)?e.map(S):S(e,0))(p)});var S})),um=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),hm=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),pm={"horizontal-list":"w-6","vertical-list":"h-6"},gm=({activeIndex:e,onClick:t,listType:n="horizontal-list"})=>(a,i)=>o("div",{className:u("cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white",i===e?pm[n]:"w-2 h-2 opacity-30"),role:"button","aria-hidden":!0,onClick:()=>t(i)},String(i)),fm=({activeIndex:e,onClick:t})=>(n,a)=>{const i=a===e,l=i?"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=i?"text-primary-text text-h6 py-xs":"text-l pb-2xs text-secondary-text group-data-secondary:text-white",s=i?"text-l":"text-m group-data-secondary:text-white/80";return c("button",{type:"button",onClick:()=>t(a),"aria-label":n?.title,className:u("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",l),children:[o("div",{className:r,children:n?.title}),o("div",{className:u("text-secondary-text font-light",s),children:n?.description})]},String(a))},xm=e=>t=>e.scrollWidth/t,bm=e=>(t,n)=>{e.scrollBy({left:n*xm(e)(t),behavior:"smooth"})},ym=({itemCount:e,onVisibleIndicesChange:t})=>{const n=s(null),[i,r]=a([]),o=l((e=>{r((t=>{return(n=t)===(a=e)||Boolean(n&&a&&n?.length===a?.length&&n.every(((e,t)=>e===a[t])))?t:e;var n,a})),t&&t(e)}),[t]),[c,d]=i.length?[Ro()(i),Io()(i)]:[-1,-1],m=c>0,u=d<e-1,h=l((()=>{var t;n.current&&(m?bm(n.current)(e,-1):(t=n.current).scrollTo({left:t.scrollWidth,behavior:"smooth"}))}),[e,m]),p=l((()=>{n.current&&(u?bm(n.current)(e,1):n.current.scrollTo({left:0,behavior:"smooth"}))}),[e,u]),g=l(((e,t={behavior:"smooth",block:"nearest",inline:"center"})=>{n?.current&&n.current.children[e]?.scrollIntoView(t)}),[n]);return[n,{scrollLeft:h,scrollRight:p,scrollTo:g,canScrollLeft:m,canScrollRight:u,visibleIndicesRange:[c,d],handleVisibleIndicesChange:o}]},vm={"horizontal-list":"mx-auto mt-lg w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},Nm=d((({className:e="",activeIndex:t=0,dotCount:n=0,listType:a="horizontal-list",version:r,navButtons:s=[],containerRef:c,containerScroll:d})=>{const m=Pe(),[h,p]=ym({itemCount:s.length}),g=wm(Boolean(s?.length));i((()=>{s?.length&&t>=0&&h?.current&&p.scrollTo(t,g)}),[t]);const f=l((e=>{e!==t&&c?.current&&d?.scrollTo(e,g)}),[c?.current]);return s?.length&&!m?o(mm,{containerRef:h,snapAlign:"snap-start",itemClassName:"h-36 flex items-stretch w-screen",gap:8,children:s.map(fm({activeIndex:t,onClick:f}))}):n?o("div",{className:u("flex gap-xs",vm[a],r?"group":"",e,{"pb-xl":s?.length&&m}),"data-ver":r,children:Array.from({length:n}).fill(null).map(gm({activeIndex:t,onClick:f,listType:a}))}):null})),wm=(e=!1)=>({behavior:e?"auto":"smooth"}),Cm=d((({className:e,name:t,...n})=>o(rr,{className:u("w-12 h-12 min-w-12 min-h-12",e),shape:"round",...n,children:o(J,{name:t,iconVersion:"",size:"small"})}))),Sm=d((e=>o(Cm,{name:"ArrowLeftIcon",version:"secondary",ariaLabel:"Пролистать влево",...e}))),km=d((e=>o(Cm,{name:"ArrowRightIcon",version:"secondary",ariaLabel:"Пролистать вправо",...e}))),Im="absolute top-0 bottom-0 z-40 hidden @lg:block w-20 pointer-events-none",Tm=d((({className:e,scroll:t,hasBlur:n,arrowsPadded:a,isBottom:i})=>{const{canScrollLeft:l,canScrollRight:r,scrollLeft:s,scrollRight:d}=t,m=a&&!i;return c("div",{className:e,children:[n?Rm(t):null,l?o(Sm,{className:u(Bm(i),m?"left-1":"left-0"),onClick:s}):null,r?o(km,{className:u(Bm(i),m?"right-1":"right-0"),onClick:d}):null]})})),Rm=e=>c("div",{children:[e.canScrollLeft?o("div",{className:u(Im,"left-0 bg-opacity-from-white group-data-secondary:bg-none")}):null,e.canScrollRight?o("div",{className:u(Im,"right-0 bg-opacity-to-white group-data-secondary:bg-none")}):null]}),Bm=(e=!1)=>u("absolute z-40",e?"bottom-[56px]":"top-[calc(50%-24px)]"),Pm=d((({className:e,version:t,gap:n=14,padding:a=16,visibleItemCount:i=1,listType:l="horizontal-list",snapAlign:r,minHeight:s,showArrows:d,hasBlur:m,arrowsPadded:h,showDots:p,children:g,onVisibleIndicesChange:f,navButtons:x})=>{const b=Array.isArray(g)?g.length:0,[y,v]=ym({itemCount:b,onVisibleIndicesChange:f}),[N]=v.visibleIndicesRange;return c("div",{className:u(e,"vertical-list"===l?"relative h-full":""),children:[o(mm,{containerRef:y,activeIndex:N,visibleItemCount:i,gap:n,padding:a,listType:l,snapAlign:r,minHeight:s,onVisibleIndicesChange:v.handleVisibleIndicesChange,children:g}),o(Tm,{className:u(!d&&"hidden lg:block"),scroll:v,hasBlur:m,arrowsPadded:h,isBottom:Boolean(x?.length)}),o(Nm,{className:u(!p&&"lg:hidden"),activeIndex:N,dotCount:b,listType:l,version:t,navButtons:x,containerRef:y,containerScroll:v})]})})),Dm=({blocksToRender:e,...t})=>o(Pm,{visibleItemCount:0,gap:0,arrowsPadded:!0,children:B(e,{...t.options,parent:t.block,renderProps:(e,t,n)=>o("div",{className:u("relative min-w-80",im(!0)),children:T(e,t)},String(n))})}),_m=d((({blocksSection:e,blocksToRender:t=[],notFound:n,...a})=>{switch(e?.view){case"grid":return c("div",{children:[Em(n,t),o(am,{...e,...a,blocksToRender:t})]});case"carousel":return c("div",{className:"relative",children:[Em(n,t),Dm({...a,blocksToRender:t})]});default:return null}})),Em=(e,t)=>e&&!t.length?o(em,{...e}):null,Am=e=>t=>t.reduce(((t,n,a)=>t.length?t.concat({...e,key:`sep-${a}`},n):[n]),[]),Mm=d((({value:e,onChange:t,items:n=[],multiple:a})=>n.map((n=>o(Ui,{text:n?.title,value:[e].flatMap((e=>e)).includes(n.value),onChange:()=>(n=>{if(!t)return;const i=e?.includes(n);t(a?i?(e||[]).filter((e=>e!==n)):[...e||[],n]:i?[]:[n])})(n.value),type:a?"checkbox":"radio"},n.value))))),Om=d((({children:e,filtrationSchema:t,resetButton:n,field:a,reset:i})=>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,Am(o("div",{className:"h-full w-px bg-gray hidden @4xl:block"}))(Object.entries(t).map(zm(a)).filter(Boolean))]}),n?o("div",{children:o(rr,{type:"reset",className:"w-full @4xl:w-56 @4xl:ml-s",onClick:i,children:n?.text})}):null]}))),zm=e=>([t,n])=>{const a=n?.type;return"array"===a?Vm(t,e)(n):null},Vm=(e,t)=>n=>{const a=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(Fe,{size:"text-m",font:"font-medium",color:"text-primary-text",children:n.title})}):null,o(Mm,{items:a,multiple:!n?.single,...t(e)})]},e)},Fm=e=>e;function Lm(e,...t){return e.map(((e,n)=>[e,...t.map((e=>e[n]))]))}const $m=e=>null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length,jm=(e,t)=>Object.entries(e).map((([n,a])=>"number"==typeof a?Array.isArray(t[n])?((e,t)=>n=>$m(t[e])||$m(n[e])||n[e]?.includes(t[e]))(n,e):((e,t)=>n=>$m(t[e])||$m(n[e])||Um(t[e])<=Um(n[e]))(n,e):"object"==typeof a&&"min"in a&&"max"in a?((e,t)=>n=>$m(t[e])||$m(n[e])||Um(t[e]?.min)>=Um(n[e]?.min)&&Um(t[e]?.min)<=Um(n[e]?.max))(n,e):Array.isArray(a)?((e,t)=>n=>$m(t[e])||$m(n[e])||t[e]?.every((t=>n[e]?.includes(t))))(n,e):((e,t)=>n=>$m(t[e])||$m(n[e])||t[e]===n[e])(n,e))).every((e=>e(t))),Um=e=>Number(e||0),qm=(e,{block:t,page:n,normalize:a=Fm})=>{const i=t?.blocks||[],[l,s]=gn(e),o=r((()=>Lm(i,i.map((e=>Lt(e.content,n?.fallback))))),[i,n?.fallback]),c=l===e?i:((e,t)=>(n=Fm)=>e?.filter((([,e])=>jm(t,n(e)||{}))).map((([e])=>e)))(o,l)(a);return[l,{blocksToRender:c,blocksWithProps:o},s]},Wm={},Hm={},Ym=Ut((({className:e,filtrationSchema:t=Wm,consumerField:n={},resetButton:a,...i})=>{const[,{blocksToRender:l},{field:r,reset:s}]=qm(Hm,{block:i.block,page:i.options?.page}),d=o($n,{className:"w-64",label:n?.title,options:Gm(n),...r("consumer",{parse:({key:e})=>[e],format:([e]=[])=>Gm(n).find((t=>t.key===e))||{key:""}})});return c(g,{className:u(e),defaultPadding:"p-0",version:"transparent",...i,children:[o(Om,{filtrationSchema:t,field:r,reset:s,children:c("div",{children:[d,o("div",{children:o(rr,{type:"reset",className:"mt-lg w-64",onClick:s,version:a?.version,children:a?.text})})]})}),o(_m,{blocksToRender:l,...i})]})}),{childrenTypes:["CarouselTariffsCard"],childSchema:e=>({...e?.filtrationSchema,...e?.consumerField?{consumer:e?.consumerField}:{}})}),Gm=e=>Lm(e.items?.enum||[],e.items?.enumNames||[]).map((([e,t])=>({key:e,text:t}))),Km=(e=!1)=>e?"text-left":"text-center",Xm={"":"bg-main-divider group-data-secondary:bg-white/30",primary:"bg-main-divider",secondary:"bg-secondary-light",opacity:"bg-white/30"},Jm=d((({className:e,iconBgVersion:t="primary",size:n,icon:a,...i})=>{const l=`${n?.width??44}px`;return a?o("div",{className:u("rounded-icon object-fit flex justify-center items-center",Xm[t],e),style:{width:l,height:l},role:"figure",children:o(J,{name:a,width:"54%",...i})}):null})),Zm=d((({className:e="",title:t,benefitList:n,...a})=>{const i=Pe();return c(g,{className:e,defaultPadding:"p-6xl",...a,children:[t?o(N,{headingType:"h3",as:"h2",className:Km(i),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(Qm)}):null]})})),Qm=({label:e,description:t,__html:n,icon:a,isDotted:i=!1,iconBgVersion:l},r)=>c("div",{className:"flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]",role:"listitem",children:[a?.icon?o(Jm,{className:"shrink-0",iconBgVersion:l,...a}):null,a?.src?o(se,{className:"shrink-0",image:a}):null,e?c("div",{className:"@sm:h-full space-y-xs",children:[o(N,{headingType:"h6",children:e}),o(Fe,{size:"text-l",color:"text-secondary-text group-data-secondary:text-white/80",font:"font-light",children:t}),n?o(ze,{__html:n,isDotted:i,itemSize:"list-s"}):null]}):null]},String(r)),eu=e=>({icon:t,title:n,description:a},i)=>c("div",{className:u("flex flex-col gap-1","items-center",{"justify-center":!a&&!n}),children:[n?o(Fe,{size:"text-h6",font:"font-normal",align:e,children:n}):null,t?o(se,{image:t,height:"180",className:"w-auto mx-auto"}):null,a?o(Fe,{size:"text-h6",font:"font-normal",align:e,children:a}):null]},String(i)),tu=(e,t,n)=>o("div",{className:`grid gap-2xs ${nu(t)}`,children:e.map(eu(n))}),nu=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},au=d((({bonusBenefits:e,cardTextAlign:t="text-center",className:n="",columnsCount:a="4",subtitle:i,title:l,...r})=>c(g,{className:u("space-y-3xl",n),defaultPadding:"p-6xl",...r,children:[o(S,{defaultPadding:"",title:l,description:i,headlineVersion:"M"}),e?.length?tu(e,a,t):null]}))),iu={start:"justify-start",center:"justify-center",end:"justify-end"},lu=d((({buttons:e,className:t="",align:n,...a})=>{const i=n&&u("flex",iu[n]);return o(g,{className:u("!bg-transparent",i,t),defaultPadding:"p-0",...a,children:Ye(e)})})),ru=d((({rate:e=0,title:t="Ставка",unit:n,fractionDigits:a=2,depositeName:i,isShowDepositeName:l,color:r="text-secondary-text"})=>c("div",{children:[o(Fe,{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:Je(a,{fixed:!0})(e)}),n?o("span",{className:"text-7xl mt-5",children:n}):null]}),i&&l?o("div",{className:"absolute bottom-2 w-full text-left whitespace-nowrap",children:i}):null]})]}))),su=d((({title:e="Ставка"})=>c("div",{className:"space-y-s min-w-96",children:[o(Fe,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}),o(J,{className:"w-10 h-auto lg:w-40",name:"PercentIcon"}),o("div",{className:"w-64",children:o(w,{size:"text-xl",font:"font-light",color:"text-primary-text",children:"Процентная ставка не найдена, выберите другие параметры"})})]}))),ou=({title:e="Ставка",rate:t=0,unit:n="%",fractionDigits:a=2,color:i="text-secondary-text",children:l,...r})=>t?c("div",{className:"flex flex-col",children:[o("div",{className:"hidden lg:block min-w-96",children:o(ru,{title:e,rate:t,unit:n,fractionDigits:a,color:i,...r})}),o(uo,{className:"lg:hidden",title:e,value:t,postfix:n,fractionDigits:a,fixed:!0,color:i,...r}),l]}):o(su,{title:e,...r}),cu={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},du={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},mu=(e,t)=>{const{travelExpenseValue:n,restExpenseValue:a}=e,[i,l]=((e,t,n)=>{const{maxBonus:a=5e3,prefMonthsNum:i=cu.prefMonthsNum,prefTravelBonusRate:l=cu.prefTravelBonusRate,prefRestBonusRate:r=.01,travelBonusRate:s=.015,restBonusRate:o=.01}=e,c=Math.min(Math.round(l*t)+Math.round(r*n),a);return[c,c*i+Math.min(Math.round(s*t)+Math.round(o*n),a)*(12-i)]})(t||du,n,a);return{...t,...e,monthBonus:i,yearBonus:l}},uu=Ut((({className:e="",title:t,calcSource:n,buttons:a,footnote:i,...l})=>{const[r,{field:s}]=gn({travelExpenseValue:6e3,restExpenseValue:6e3}),{minSumTravel:d,maxSumTravel:m,minSumOther:h,maxSumOther:p,monthBonus:g,yearBonus:f}=mu(r,n);return o(ro,{className:e,title:t,...l,children:c("section",{className:u(so,e),children:[c("div",{className:oo,children:[wo({title:"Сумма покупок в категории путешествия, ₽",min:d,max:m,step:500,isShowItems:!1,...s("travelExpenseValue")}),wo({title:"Сумма покупок в остальных категориях, ₽",min:h,max:p,step:500,isShowItems:!1,...s("restExpenseValue")})]}),o("div",{className:"mb-s",children:g>=0?ou({title:"Баллов за месяц",rate:g,fractionDigits:0,unit:"",color:"text-primary-text"}):null}),c("div",{className:co,children:[f>=0?o(uo,{title:"Баллов за год",value:f,color:"text-primary-text"}):null,Ye(a,{isVertical:!0}),xo(i)]})]})})})),hu=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`,pu=e=>vo({...e,items:[{id:"everyMonth",text:"Ежемесячно"},{id:"atEndTerm",text:"В конце срока"}]}),gu=" (c капитализацией)",fu=({income:e,finalSum:t,postfix:n="₽",buttons:a=[],footnotes:i=[],isCapitalization:l=!1})=>c("div",{className:co,children:[o(uo,{title:`Доход в конце срока${l?gu:""}`,value:e,postfix:n,prefix:"+"}),o(uo,{title:`Сумма в конце срока${l?gu:""}`,value:t,postfix:n}),Ye(a,{isVertical:!0}),i?.map(xo)]}),xu={UL:"businessdepositrates",IP:"selfemployeddepositrates"};const bu={minSum:1e3,maxSum:100000001,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,depositeName:"Депозит 'Стабильный'"},yu=(e,t)=>{const{daysValue:n,moneyValue:a,isPartialWithdrawal:i,isReplenished:l,isMonthlyInterestPayment:r}=e,s=l||i,o=n<90||n>730,c=function(e){const t=e?.rateType?xu[e?.rateType]:"",{data:n}=ta(t?`${Kt}/depositrates/${t}`:null,Ot);return Array.isArray(n)?n:[]}(t),d=c?.find((e=>r===e.isMonthlyInterestPayment&&vu(s,e)&&_o(a,["minSum","maxSum"],e)&&_o(n,["minDays","maxDays"],e)))||bu,{rate:m}=d,u=Nu(m,e),h=a+u,p=c||[bu];return{...d,...Do(["minSum","maxSum"],p),...Do(["minDays","maxDays"],p),...e,isDisabledOperatingDeposit:o,income:u,finalSum:h}},vu=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,Nu=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:a,daysValue:i}=t;return n?Math.round(a*Math.pow((1200+e)/1200,i/30)-a):Math.round(a*e*i/365/100)},wu=Ut((({className:e="",title:t,buttons:n,footnote:a,bottomFootnote:i,isShowDepositeName:l,defaultParams:r,rateParams:s,...d})=>{const[m,{field:h}]=gn({moneyValue:go(r,1e5),daysValue:fo(r,60),isReplenished:Boolean(r?.isReplenished),isPartialWithdrawal:Boolean(r?.isPartialWithdrawal),isMonthlyInterestPayment:Boolean(r?.isMonthlyInterestPayment)}),p=yu(m,s),{income:g,finalSum:f,rate:x,depositeName:b}=p;return o(ro,{className:e,title:t,...d,children:c("section",{className:u(so,e),children:[c("div",{className:oo,children:[wo({title:"Сумма, ₽",min:p.minSum,max:p.maxSum,...h("moneyValue"),value:p.moneyValue}),(y={title:"Срок, дней",min:p.minDays,max:p.maxDays,...h("daysValue"),value:p.daysValue},o(ga,{items:[`От ${hu(y.min||0)}`,`До ${hu(y.max||0)}`],step:1,...y})),c("div",{className:"flex flex-col sm:flex-row gap-y-m gap-x-5xl",children:[Cu(p,h),pu({title:"Выплата процентов",orientation:"vertical",...h("isMonthlyInterestPayment"),className:"sm:flex-col"})]})]}),ou({rate:x,depositeName:b,isShowDepositeName:l}),fu({income:g,finalSum:f,buttons:n,footnotes:[a,i]})]})});var y})),Cu=(e,t)=>c("div",{className:"space-y-s",children:[o(Fe,{color:"text-secondary-text",font:"font-light",children:"Параметры"}),c("div",{className:"flex flex-col gap-y-lg sm:gap-y-s",children:[o(ni,{text:"Пополнение",disabled:e.isDisabledOperatingDeposit,...t("isReplenished"),value:e.isReplenished}),o(ni,{disabled:e.isDisabledOperatingDeposit,text:"Частичное снятие",...t("isPartialWithdrawal"),value:e.isPartialWithdrawal})]})]}),Su=e=>{const t=[...e];t.sort((([e],[t])=>e-t));let n=1;for(;n<t.length;){const[e,a]=t[n-1],[i,l]=t[n];a>=i?t.splice(n-1,2,[e,Math.max(a,l)]):n++}return t},ku={minSum:5e4,maxSum:100000001,minMonths:2,maxMonths:10,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0,isReplenish:!1,isWithdrawn:!1,type:""},Iu=(e,t,n)=>{const{moneyValue:a,monthsValue:i}=e,l=t?.[0]?Bu(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=>[Ru({row:t,userInputParams:e,paramKey:"isReplenish",isExclude:o}),Ru({row:t,userInputParams:e,paramKey:"isWithdrawn",isExclude:c}),Ru({row:t,userInputParams:e,paramKey:"isMonthlyInterestPayment",isExclude:r}),Ru({row:t,userInputParams:e,paramKey:"isRemoteRegistration",isExclude:s}),d||e?.isNewClient===t?.isNewClient,_o(a,["minSum","maxSum"],t),_o(i||l,["minMonths","maxMonths"],t)].every(Boolean)))||ku,{rate:u}=m,h=Tu(u,e),p=a+h,g=t||[ku];return{...m,...Do(["minSum","maxSum"],g),...Do(["minMonths","maxMonths"],g),availableMonths:Su(g.map((e=>[e.minMonths,e.maxMonths]))).flatMap((([e,t])=>((e,t,n=1)=>Array.from({length:Math.abs(t-e)/n+1},((a,i)=>t>=e?e+i*n:e-i*n)))(e,t))),...e,defaultMonth:l,income:h,finalSum:p}},Tu=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:a,monthsValue:i}=t;return n?Math.round(a*Math.pow((1200+e)/1200,i)-a):Math.round(a*e*30*i/365/100)},Ru=({row:e,userInputParams:t,paramKey:n,isExclude:a})=>a||t[n]===e[n],Bu=(e,t)=>e+Math.round((t-e)/2),Pu=(e="rub")=>"rub"===e,Du=(e,t)=>{const{minMonths:n,maxMonths:a}=Do(["minMonths","maxMonths"],Mu(t,e?.currency)),i=e.monthsValue||Math.round((n+a)/2);return{monthsValue:da(i,n,a)}},_u=(e,t)=>{const{minSum:n,maxSum:a}=Do(["minSum","maxSum"],Mu(t,e?.currency)),i=e.moneyValue||n;return{moneyValue:da(i,n,a)}},Eu=(e,t)=>({currency:e?.currency??t?.map((e=>e.currency))?.[0]}),Au=e=>{const t=Pu(e?.currency?.key);return{isReplenish:t&&e?.isReplenish,isWithdrawn:t&&e?.isWithdrawn}},Mu=(e,t)=>{const{rates:n}=e?.find((e=>e?.currency.key===t?.key))??{};return n??e?.[0]?.rates},Ou=(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?vo({title:"Пополнение",...t("isReplenish"),value:e.isReplenish,orientation:"vertical",items:[{id:"withReplenish",text:"С пополнением"},{id:"withoutReplenish",text:"Без пополнения"}],disabled:n}):null,e.isShowWithdrawn?vo({title:"Снятие",...t("isWithdrawn"),value:e.isWithdrawn,orientation:"vertical",items:[{id:"wthDrawn",text:"Со снятием"},{id:"noWithdrawn",text:"Без снятия"}],disabled:n}):null]}),zu(e.isShowReplenish||e.isShowWithdrawn),c("div",{className:"flex gap-lg",children:[e.isShowMonthlyInterestPayment?pu({title:"Выплата процентов",...t("isMonthlyInterestPayment"),value:e.isMonthlyInterestPayment,orientation:"vertical"}):null,e.isShowRemoteRegistration?(a={title:"Оформление",...t("isRemoteRegistration"),value:e.isRemoteRegistration,orientation:"vertical"},vo({...a,items:[{id:"remote",text:"Дистанционно"},{id:"office",text:"Офис Банка"}]})):null]}),zu(e.isShowNewClient),e.isShowNewClient?o(ni,{text:"Новый вкладчик",...t("isNewClient")}):null]});var a},zu=(e=!1)=>e?o("div",{className:"border-b border-main-divider w-full"}):null,Vu={isMonthlyInterestPayment:"isMonthlyInterestPayment",isRemoteRegistration:"isRemoteRegistration",isReplenish:"isReplenish",isWithdrawn:"isWithdrawn",moneyValue:"minSum"},Fu={text:"₽",key:"rub"},Lu=Ut((({className:e,title:t,calcSource:n,buttons:a=[],footnote:r="",paramsViewSettings:s,defaultParams:d,...m})=>{const{rows:h}=n??{},p=h?.map((e=>e.currency))??[Fu],g=l((e=>t=>e?{...t,...Au(t),..._u(t,e),...Du(t,e),...Eu(t,e)}:t)(h),[h]),[f,{field:x}]=gn({moneyValue:go(d,2e4),monthsValue:fo(d,1),isMonthlyInterestPayment:Boolean(d?.isMonthlyInterestPayment),isRemoteRegistration:Boolean(d?.isRemoteRegistration),isReplenish:Boolean(d?.isReplenish),isWithdrawn:Boolean(d?.isWithdrawn),isNewClient:Boolean(d?.isNewClient),currency:Fu},{normalizer:g}),b=x?.("currency")?.value??Fu,y=x?.("isNewClient")?.value,v=Mu(h,b),N=Iu(f,v,s),{rate:w,income:C,finalSum:S,type:k=""}=N,I=l((()=>{Co({field:x,defParams:ho(v,y),calcParams:N,monthsValue:"minMonths",map:Vu})}),[x,h]);i((()=>{!zo(d)&&v&&I()}),[d,h]);const T=w===ho(v,y)?.rate;return o(ro,{className:e,title:t,...m,children:c("section",{className:u(so,e),children:[c("div",{className:oo,children:[c("div",{className:"flex gap-m",children:[wo({className:"w-full",title:`Сумма, ${b?.text}`,min:N.minSum,max:N.maxSum,...x("moneyValue"),value:N.moneyValue,postfix:b?.text,step:$u(b?.key)}),h&&h?.length>1?o(Wn,{label:"Валюта",options:p,...x("currency")}):null]}),bo({title:"Срок, месяцев",min:N.minMonths,max:N.maxMonths,availableMonths:N.availableMonths,...x("monthsValue"),value:N.monthsValue}),Ou({...N,...s},x)]}),ou({rate:w,children:Uu(I,T)}),fu({income:C,finalSum:S,buttons:[...a,ju(n?.buttons,k)],footnotes:[r],postfix:b?.text,isCapitalization:x("isMonthlyInterestPayment").value})]})})})),$u=(e="")=>Pu(e)?1e3:100,ju=(e=[],t="")=>{const{type:n,...a}=e.find((e=>e.type===t))??{};return a},Uu=(e,t=!1)=>t?null:o(rr,{type:"button",version:"secondary",onClick:e,children:"Показать максимальную ставку"}),qu=e=>Wu({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&Wu({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),Wu=({row:e,userInputParams:t,paramsViewSettings:n,fieldKey:a,viewSettingFieldKey:i})=>!!n&&!n[i]||t[a]===e[a],Hu={minSum:1e4,maxSum:3e6,minSumOld:0,maxSumOld:25e5,minSumExtra:0,maxSumExtra:5e5,minMonths:13,maxMonths:60,rate:0,isExtraMoney:!1,isSalaryClient:!1,isInsurance:!0},Yu=(e,t,n)=>{const{moneyValue:a,monthsValue:i,oldMonthlyPayment:l,moneyExtra:r}=e,s=t?.rateRows||[Hu],o=(({limitRows:e,userInputParams:t,paramsViewSettings:n})=>e?.find((e=>qu({row:e,userInputParams:t,paramsViewSettings:n}))))({limitRows:t?.limitRows||[],userInputParams:e,paramsViewSettings:n}),{minSum:c,maxSum:d}=Po(["minSum","maxSum"],o,s),{minMonths:m,maxMonths:u}=Po(["minMonths","maxMonths"],o,s),h=(({rateRows:e=[],userInputParams:t,paramsViewSettings:n,moneyValue:a,monthsValue:i,oldMonthlyPayment:l,moneyExtra:r})=>e?.find((e=>qu({row:e,userInputParams:t,paramsViewSettings:n})&&_o(a+r,["minSum","maxSum"],e)&&_o(l,["minSumOld","maxSumOld"],e)&&_o(r,["minSumExtra","maxSumExtra"],e)&&_o(i,["minMonths","maxMonths"],e)))||Hu)({rateRows:s,userInputParams:e,paramsViewSettings:n,moneyValue:a,monthsValue:i,oldMonthlyPayment:l,moneyExtra:r}),{rate:p}=h,g=So(p,e),f=e.oldMonthlyPayment-g;return{...h,...e,minSum:c,maxSum:d,minMonths:m,maxMonths:u,moneyValue:a,monthsValue:i,oldMonthlyPayment:l,moneyExtra:r,monthlyPayment:g,benefit:f}},Gu=Ut((({className:e="",title:t,calcSource:n,buttons:a,footnote:i,paramsViewSettings:l,...r})=>{const[s,{field:d}]=gn({isAnnuity:!0,isInsurance:!0,isSalaryClient:!1,isExtraMoney:!1,moneyValue:7e5,oldMonthlyPayment:0,monthsValue:48,moneyExtra:0}),m=Yu(s,n,l),h=No({title:"",mobileTitle:"Тип платежа",orientation:"vertical",...d("isAnnuity")});return o(ro,{className:e,title:t,...r,children:c("section",{className:u(so,e),children:[c("div",{className:oo,children:[wo({title:"Остаток долга в других банках, ₽ ",step:500,min:m.minSum,max:m.maxSum-m.maxSumExtra,...d("moneyValue"),value:m.moneyValue}),wo({title:"Ежемесячный платёж в других банках, ₽",step:500,min:m.minSumOld,max:m.maxSumOld,...d("oldMonthlyPayment"),value:m.oldMonthlyPayment}),bo({title:"Новый срок кредита, месяцев",min:m.minMonths,max:m.maxMonths,...d("monthsValue"),value:m.monthsValue}),Ku({...m,...l},d),m.isExtraMoney?wo({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:h})]}),c("div",{className:u(co,"@4xl:w-1/2"),children:[o(uo,{title:"Полная стоимость кредита",value:n?.totalLoanCost}),o(uo,{title:"Ставка",value:m?.rate,fractionDigits:2,postfix:"%"}),o(uo,{title:"Ежемесячный платёж",value:m.monthlyPayment,postfix:"₽"}),m.benefit>0?o(uo,{title:"Выгода в месяц",value:m.benefit,postfix:"₽"}):null,o("div",{className:"hidden sm:block mb-lg",children:h}),Ye(a,{isVertical:!0}),xo(i)]})]})})})),Ku=(e,t)=>c("div",{className:"space-y-lg sm:space-y-s",children:[e.isShowSalaryClient?o(ni,{text:"Получаю зарплату на счёт в Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient}):null,e.isShowInsurance?o(ni,{text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null,o(ni,{text:"Получить дополнительную сумму",...t("isExtraMoney"),value:e.isExtraMoney})]}),Xu=d((e=>{const{onChange:t,min:n,max:a,defaultValue:i="0",fractionDigits:r=0,...s}=e,c=ca(e,{normalize:(e=i)=>n&&a?String(da(Number(Ju(e)),n,a)):Ju(e),format:Je(r)}),d=l((e=>t&&t(Ju(e))),[t]);return o(kn,{onChange:d,...s,...c})})),Ju=(e="")=>e.replaceAll(",",".").replace(/[^\d.]/g,"").replace(/([^.]*\.[^.]*)\./,"$1"),Zu=d((e=>o(Xu,{...e,fractionDigits:2,children:o("div",{className:"absolute right-4 bottom-4",children:o(Fe,{size:"text-xl",font:"font-light",children:"₽"})})}))),Qu=new bi;function eh(){return vi(Qu)}fi(Qu,new xi(globalThis?.sessionStorage));const th={private:"p2p/registerP2P",business:"b2c/registerB2C"},nh=({onClose:e,errorCode:t,errorMessage:n})=>{const a=t?`Код ошибки - ${t}`:"Пожалуйста, повторите позднее";return o(or,{className:"my-6xl max-w-lg w-full min-h-fit mx-auto",onClose:e,children:c("div",{className:"flex flex-col gap-lg items-center rounded-md space-x-m",children:[o(se,{image:{icon:"ResponseFailIcon",iconVersion:"normal"},width:"136",height:"136"}),o(S,{className:"w-full",title:"Ошибка перевода",description:a,headlineVersion:"XS",isEmbedded:!0}),n?c("div",{className:"bg-secondary-dark rounded-xl px-4 pt-4 pb-8 grid gap-4 grid-cols-12",children:[c("div",{className:"col-span-8",children:[" ",n]}),o("div",{className:"col-span-4",children:o(se,{image:{icon:"ResponseFailIcon",iconVersion:"normal"}})})]}):null]})})},ah=e=>{const t=xn(nh),n=eh(),a=nn(),i="private"===e?"p2p":"b2c";return l((async({amount:l})=>{const r=await(async(e,t)=>{const n=nn(),a={amount:String(t),currency:"643",returnUrl:`${n.origin}/p2p/success`,failUrl:`${n.origin}/p2p/failed`,language:"ru"},i=`${Kt}/payment/${th[e]}`;try{const e=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(a)});return e.ok?await e.json():null}catch(e){return null}})(e,l);(e=>Boolean(e?.formUrl)&&Boolean(e?.orderId))(r)&&(n.transaction={orderId:r.orderId,type:i,url:a.href},a.assign(`${i}/?formUrl=${encodeURIComponent(r.formUrl)}`)),(e=>Boolean(e?.errorMessage)&&0!==e?.errorCode)(r)&&t.open({errorCode:r.errorCode,errorMessage:r.errorMessage})}),[e])},ih={amount:1500},lh=d((({className:e="",title:t="Укажите сумму перевода",label:n="Сумма перевода",button:a,formType:l="private",...r})=>{const[s,{setValue:d}]=on(!1),m=ah(l),[{amount:h},{field:p,onSubmit:f}]=gn(ih,{onSubmit:m});return i((()=>{d(h<=0)}),[h]),c(g,{className:u("flex flex-col items-center",e),defaultPadding:"p-6xl",...r,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",onSubmit:f,children:[o(Zu,{valid:!s,label:n,max:3e5,min:1,...p("amount",{parse:Number,format:String})}),o("input",{type:"hidden",name:"amount",value:h}),a?.text?o(xr,{className:"w-full mt-lg",disabled:s,children:a.text}):null]})]})})),rh=({className:e,text:t="ХИТ"}={})=>c("div",{className:u("w-14 h-14 bg-white flex flex-col items-center justify-center rounded-md shadow-main-black",e),children:[o(J,{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})]}),sh="relative h-full",oh={small:"lg:min-w-64",normal:"lg:min-w-80 xl:min-w-96",big:"lg:min-w-[515px]"},ch=({noCardBorder:e,cardSize:t="normal",isNavButtons:n=!1,...a})=>{const{blocks:i}=a.block||{},l=i?.some(uh),r=n?{defaultPadding:"p-6xl pb-m"}:{};return P({...a,renderProps:(n,a,i)=>c("div",{className:dh(n,{someCardsHighlighted:l}),children:[T(n,a,{className:mh(n,{someCardsHighlighted:l,showBorder:!e,cardSize:t}),...r,blockIndex:i}),uh(n)?rh({className:"absolute top-0 -right-4 z-40"}):null]},String(i))})},dh=(e,{someCardsHighlighted:t})=>u(sh,t&&(uh(e)?"pt-3xl":"pt-3xl sm:pt-16")),mh=(e,{someCardsHighlighted:t,showBorder:n,cardSize:a="normal"})=>u(sh,"min-w-80",oh[a],t&&(uh(e)?"pt-3xl sm:pt-16":"pt-3xl"),im(n),n&&"h-full"),uh=e=>e?.content&&"isHighlighting"in e.content&&e.content.isHighlighting,hh=Ut((({className:e,visibleItemCount:t=1,noCardBorder:n,arrowsPadded:a=!0,isGap:i=!0,cardSize:l="normal",isNavButtons:r=!1,...s})=>o(g,{className:u(e),defaultPadding:"p-6xl",...s,children:o(Pm,{className:u("relative max-w-full"),visibleItemCount:t,snapAlign:"snap-start",gap:i?16:0,padding:0,arrowsPadded:a,navButtons:r?ph(s?.block?.blocks):[],hasBlur:!0,children:ch({noCardBorder:n,cardSize:l,isNavButtons:r,...s})})})),{childrenTypes:["CarouselCard","CarouselCatalogCard","CarouselRecommendationCard","CarouselTariffsCard","RichTextBlock","ProductBlock"],childSchema:()=>({isHighlighting:{title:"Выделить карточку",type:"boolean"}})}),ph=e=>e?.map((e=>{const t=e?.content;return{title:t?.title,description:t?.additionalDescription||t?.description}}))??[],gh="z-10 border border-solid w-full h-full",fh=u(gh,"absolute hidden @xl:block border-transparent"),xh=d((({className:e,title:t,description:n,button:a,...i})=>o(g,{className:u("sm:pl-6xl sm:pb-4xl @container-normal",e),defaultPadding:"p-0",...i,children:c("div",{className:"relative h-full",children:[o("div",{className:u(fh,"top-9 right-12 bg-green-dark")}),o("div",{className:u(fh,"top-6 right-8 bg-green")}),o("div",{className:u(fh,"top-3 right-4 bg-green-light")}),c("div",{className:u(gh,"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}),Ye([a],{className:"mt-m sm:mt-6xl sm:justify-center",isVertical:!0})]})]})}))),bh={black:"bg-black",white:"bg-white"},yh=d((({className:e="",title:t,description:n,image:a,price:i,button:l,colors:r=[],align:s="text-left",padding:d,...m})=>o(g,{className:u("flex flex-col justify-left",e),defaultPadding:"p-2xl",...m,children:c(Ee,{className:"h-full",padding:d,title:o(S,{title:t,description:n,headlineVersion:"XS",isEmbedded:!0,align:s}),rightImage:a?.src?o(se,{className:"flex justify-center align-center mb-xl",image:a}):null,buttons:Ye([l],{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(Fe,{size:"text-s",align:"text-left",font:"font-light",children:"Цвета:"})}),r.map(vh)]}):null,i?c(Fe,{size:"text-h3",align:"text-left",children:[i," ₽"]}):null]})}))),vh=(e,t)=>o("figure",{className:`w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${bh[e]}`},String(t)),Nh=d((({icon:e,...t})=>{const n=ye(),{text:a,href:i,target:l,onClick:r}=n(t);return a?o("div",{className:u("p-3 rounded-lg bg-white text-secondary-text flex justify-center"),children:o("a",{role:"link",href:i,target:l,onClick:r,children:c("div",{className:"flex flex-col items-center gap-3 break-words max-w-[150px]",children:[e?o(se,{className:"w-7 h-7 md:w-12 md:h-12",image:{...e,iconVersion:e?.iconVersion},alt:a}):null,o("div",{className:"font-light md:font-normal text-primary-text text-center text-xs md:text-sm whitespace-wrap",children:a})]})})}):null})),wh=d((({className:e,additionalDescription:t,description:n,links:a,title:i,...l})=>o(g,{defaultPadding:"p-5xl",className:u("overflow-hidden",e),...l,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:i,description:n,as:"h1",align:"text-left",headlineVersion:"XL"}),o(S,{className:"pt-m",description:t,align:"text-left",isEmbedded:!0})]}),a?.length?Ch(a):null]})}))),Ch=e=>o("div",{className:u("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(Nh,{...e},String(t))))}),Sh=(e,t)=>e?.map((({aspectName:e,params:n})=>({aspectName:e,params:"mindboxEvent"===e?{...n,eventJson:t}:n}))),kh=d((({className:e="",href:t,target:n,onClick:a,data:i,children:l})=>{const r=ye()({href:t,target:n,onClick:a});return o(t?"a":"div",{className:u("block",e),...t?r:{},role:t?"link":"none",...Ne(i),children:l})})),Ih=[{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"}}],Th=d((({className:e="",media:t,showButtonText:n,stretched:i,version:l="white",children:r})=>{if(!t?.length)return null;const[s,d]=a(),m=t?.map((e=>{const{href:t,icon:a,text:i}=e,{iconMapped:r}=(e=>Ih.find((({origins:t})=>t?.some((t=>e?.includes(t)))))||{})(t),o=He(a)?a:r,c=n?{text:i}:{text:""},m=e?.icon?.iconVersion||"color";return!s&&i&&d(!0),{...e,...c,icon:{...o,iconVersion:m},version:e?.version??l}})),h=u("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},Rh(i));return c("div",{className:u("flex flex-col gap-m xl:gap-xs",e),"aria-label":"Социальные сети",children:[o("div",{className:"flex gap-xs",children:Ye(m,{className:Bh(s??!1,i??!1,n),buttonClassName:h})}),r?o(Fe,{size:"text-s",font:"font-light",color:"text-secondary-text",children:r}):null]})})),Rh=(e=!1)=>e?"flex-1 @lg:flex-initial justify-center":"",Bh=(e,t,n=!1)=>u(e||t?"basis-full":"",t&&(!n||!e)?"flex-nowrap":""),Ph=d((({className:e,padding:t,description:n,additionalDescription:a,href:i,icon:l,isDotted:r,__html:s,socialMedia:d=[],target:m,title:h,align:p="text-left",benefits:f,imageOptions:{directionRight:x=!0,isImageAlwaysOnRight:b=true,isImageSecondary:y=!1}={},data:v,...N})=>o(g,{className:u("relative min-h-28 group-data-gray:bg-main-divider/50",e),defaultPadding:"p-0",...N,children:o(kh,{href:i,target:m,className:"h-full",data:Sh(v),children:c(Ee,{className:"h-full",defaultPadding:"p-2xl",padding:t,insetTitle:o(S,{title:h,description:n,headlineVersion:"XS",isEmbedded:!0,align:p}),...it(He(l)?o(se,{image:l}):null,x),buttons:d.length?o(Th,{media:d,stretched:!0,showButtonText:!0,version:N?.version}):null,isImageAlwaysOnRight:b,isImageSecondary:y,imageAlign:"center",children:[o(We,{benefits:f}),s?o(ze,{__html:s,isDotted:r,itemSize:"list-s"}):null,Dh(a,p)]})})}))),Dh=(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,_h=new fe,Eh=(e,t)=>{const{title:n,description:a,buttons:i}=e;return c("div",{className:"py-lg border-b border-main-divider",children:[n?o("div",{className:"opacity-80",children:o(Fe,{size:"text-m",color:"text-secondary-text",children:n})}):null,a?o("div",{className:"mt-2xs",children:o(Fe,{size:"text-xl",color:"text-primary-text",children:a})}):null,i?.length?o("div",{className:"text-primary-main",children:Ye(i)}):null]},String(t))},Ah=d((({className:e="",title:t,align:n="text-center",icon:s,button:d,visibleCellsCount:m=1,cardCells:h=[],options:p,data:f,...x})=>{const b=r((()=>h.map(Eh)),[h]),[y,v]=r((()=>m>0?[b.slice(0,m),b.slice(m)]:[b,[]]),[m,b]),[w,C]=a(!1);i((()=>_h.subscribe("fold",(e=>{e&&p?.parent&&e.parent===p?.parent&&C(e.isUnfolded)}))),[p?.parent]);const S=l((()=>{_h.fire("fold",{type:"fold",isUnfolded:!w,parent:p?.parent})}),[w,p?.parent]);return c(g,{className:u("flex flex-col",e),defaultPadding:"p-2xl",...x,children:[o(se,{className:"self-center",image:s}),t?o(N,{className:u("pt-xs",n),headingType:"h5",title:t}):null,d?.text?o(Ie,{className:"w-full mt-m mb-lg",...d}):null,v.length?c(is,{children:[c("div",{children:[y,o(ls,{isUnfolded:w,children:v})]}),h.length>=m?o(as,{className:"mt-m",label:w?"Скрыть":"Подробнее о тарифе",isUnfolded:w,embedded:!0,data:f,onClick:S}):null]}):o("div",{children:y})]})})),Mh=d((({className:e,contacts:t,info:n,version:a="secondary",...i})=>c(g,{className:u("flex",e),defaultPadding:"p-6xl",version:a,...i,children:[n?.length?Oh(n):null,t?.length?Oh(t):null]}))),Oh=e=>o("div",{className:"flex gap-5xl grow basis-0",children:e.map(((e,t)=>zh({column:e,i:t})))}),zh=({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:a},i)=>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:u({"mt-xl":Boolean(a?.text)}),children:Ye([a])})]},String(i))))},`col-${String(t)}`):null,Vh=()=>{const e=globalThis.sessionStorage?.getItem("refreshToken"),t=globalThis.sessionStorage?.getItem("accessToken"),n=globalThis.localStorage.getItem("taskId"),a=nn();if(!t||!e||!n)return a.assign("/"),()=>{};const i=async()=>{const n=await Yr("/auth/refresh","POST",{refresh_token:e,access_token:t});if(401==n?.status&&a.assign("/"),n?.ok){const e=await n.json();globalThis.sessionStorage.setItem("refreshToken",e.refresh_token),globalThis.sessionStorage.setItem("accessToken",e.access_token)}};i();const l=setInterval(i,24e4);return()=>clearInterval(l)},Fh=d((({step:e=10,description:t,showPercentage:n=!0})=>c("div",{children:[o("div",{className:"h-4 w-full bg-gray relative",children:o("div",{className:"h-4 bg-green",style:{width:`${e}%`}})}),c("div",{className:"relative",children:[n?c("div",{className:"absolute left-2/4 text-green",children:[e,"%"]}):null,t?o("div",{className:"text-right mr-4 text-gray",children:t}):null]})]}))),Lh=d((({step:e=1,totalSteps:t=6,stepsTitles:n=[]})=>{const a=r((()=>(e+1)/t*100),[e,t]);return o("div",{className:"py-lg px-5xl bg-white col-span-12",children:c("div",{children:[c("span",{className:"font-bold mr-s",children:["Шаг ",e+1," из ",t,"."]}),n[e]||null,o(Fh,{step:a,showPercentage:!1})]})})}));var $h;!function(e){e.process="IN_PROCESS",e.ok="APPROVED",e.fail="CANCELLED",e.pre_decision="PRE_DECISION",e.approved="APPROVED",e.cancelled="CANCELLED",e.failed="FAILED",e.draft="DRAFT",e.rework="REVISION"}($h||($h={}));const jh=e=>Hr("/user-data/getTaskStatus","POST",e),Uh=e=>Yr("/user-data/sendSignalToProcess","POST",e),qh=d((({title:e,interval:t=0,onEnd:n=Nn})=>{const[i,l]=a(t);dd({seconds:t,onTick:l,onEnd:n});const r=100-(t-i)/t*100;return c("div",{children:[e?o(S,{title:e,headlineVersion:"S"}):null,c("div",{className:"relative flex items-center justify-center w-24 h-24 rounded-full bg-gray text-transparent mb-5",children:[o("div",{className:"absolute inset-0 rounded-full",style:{background:`conic-gradient(rgb(66, 171, 68) ${r}%, rgb(125, 126, 127) 0deg)`}}),o("div",{className:"z-10 flex items-center justify-center w-20 h-20 rounded-full bg-white text-primary-text text-m",children:o(sd,{seconds:i})})]})]})})),Wh=d((({title:e,description:t,sectionInfoTitle:n,sectionInfo:a,sectionAdditionalTitle:i,sectionInfoAdditional:l,buttonText:r,interval:s,onExpire:d=Nn,...m})=>c(g,{...m,children:[c("div",{className:"flex flex-col md:flex-row items-center",children:[o(S,{headlineVersion:"M",title:e,description:t,align:"text-left",padding:"p-xl",className:"w-full"}),s?o(qh,{interval:s,onEnd:d}):null]}),o(Hh,{title:n,items:a}),o(Hh,{title:i,items:l,countColumns:!0}),r?o(yr,{href:"/natural",text:r,version:"primary",className:"w-full mt-lg"}):null]}))),Hh=({title:e,items:t,countColumns:n=!1})=>{const a=Pe();return t?c("div",{children:[o("hr",{className:"w-full h-px bg-main-gray border-0"}),c("div",{className:"p-xl",children:[e?o(Fe,{color:"text-primary-text",size:"text-h5",children:o("div",{className:u({"mb-m":Boolean(e)}),children:e})}):null,t?o("div",{className:u("grid grid-cols-1 gap-m",tr(n||a?1:2)),children:t.map(((e,t)=>o("div",{children:Yh(e)},t)))}):null]})]}):null},Yh=({label:e,description:t})=>c("div",{className:"flex flex-col",children:[o(Fe,{color:"text-secondary-text",size:"text-l",children:e}),o(Fe,{color:"text-primary-text",size:"text-xl",children:t})]}),Gh=d((()=>o(Wh,{title:"Благодарим Вас за ожидание",description:"В настоящий момент Банк не может одобрить Вашу заявку на кредит. Попробуйте подать заявку позже. Спасибо за обращение в АО «Россельхозбанк».",buttonText:"Вернуться на главную"}))),Kh=d((({onExpire:e})=>{const{statusInfo:t}=Ci();return o(Wh,{interval:300,title:"Заявка успешно отправлена",description:"Не закрывайте окно, скоро сообщим результат",sectionInfoTitle:"Заявленные условия по кредиту",sectionInfo:[{label:"Название продукта",description:"Кредитная карта"},{label:"Категория",description:t?.cardCategory}],onExpire:e})})),Xh=d((()=>{const{statusInfo:e}=Ci(),t="courier"===e?.methodObtain;return o(Wh,{title:"Благодарим вас за ожидание, но нам требуется больше времени для принятия решения",description:t?"":"Посетите выбранное отделение банка с необходимыми документами и так завершите оформление кредита.",sectionAdditionalTitle:t?"Адрес доставки":"В отделении Банка",sectionInfoAdditional:t?[{description:e?.deliveryAddress}]:[{label:"Регион",description:e?.regionRetail},{label:"Адрес",description:e?.addressRetail}],sectionInfo:[{label:"Основные документы:",description:"- Паспорт РФ"}],buttonText:"Вернуться на главную"})})),Jh=d((()=>{const{statusInfo:e}=Ci();return o(Wh,{title:"Банк одобрил вам кредит",description:"Обратитесь в отделение банка, чтобы завершить оформление и получит ваш кредит",sectionInfo:Zh(e),buttonText:"Вернуться на главную"})})),Zh=e=>{const t=[{label:"Название продукта",description:"Кредитная карта"},{label:"Категория",description:e?.cardCategory}];return e?.deliveryAddress&&e?.deliveryDate?t.concat([{label:"Адрес доставки",description:e?.deliveryAddress},{label:"Дата доставки",description:Yt(e?.deliveryDate)}]):t},Qh=["CREATE_APPLICATION_SHORT_SIGNAL","CREATE_APPLICATION_LOAN_V3_SIGNAL"],ep=d((()=>{const[e,t]=a($h.process),{taskId:n}=Ci();i((()=>{(async()=>{for(const e of Qh)await Uh({signalType:e,taskId:n})})()}),[n]);const r=l((async e=>{const a=await jh({taskId:n});a&&a?.statusCd!==$h.process&&(e(),t(a.statusCd))}),[n]);cd(r,3e4);const s=l((()=>t($h.rework)),[]);return tp(e,s)})),tp=(e,t)=>({IN_PROCESS:o(Kh,{onExpire:t}),CANCELLED:o(Gh,{}),FAILED:o(Gh,{}),DRAFT:o(Gh,{}),APPROVED:o(Jh,{}),PRE_DECISION:o(Jh,{}),REVISION:o(Xh,{})}[e]||o(Xh,{})),np=e=>(t,n)=>t.filter((e=>e)).map((t=>[ap(n,e),ip(t,e),op(t,e),lp(t,e),rp(t,e),sp(t,e)].some(Boolean)?{...t,required:!1}:t)),ap=(e,t)=>2===e&&"RETIREE"===t("employment")?.key,ip=({name:e},t)=>"partInBusiness"===e&&"BUSINESS_OWNER"!==t("positionOrganization")?.key,lp=({name:e,filledByEsia:t},n)=>e?.startsWith("address")&&n("esiaAccountTypeCd")?.key&&t,rp=({name:e},t)=>"addressFact"===e&&t("addressMatch"),sp=({condition:e},t)=>e?.name&&e?.values?.some((n=>{const a=t(e?.name);return n!==(a?.key??a)})),op=({name:e},t)=>"snils"===e&&cp(t),cp=e=>"PFR_CERTIFICATE"!==e("confirmationIncome")?.key,dp={...Wc,...Hc},mp=({field:e,inputs:t,params:n})=>t.map(er(e,n,dp)),up=({sections:e,field:t,step:n,params:a})=>e?.map((({inputs:e=[],columns:i,title:l},r)=>{const s=np(hp(t))(e,n);return c("div",{className:u(tr(i),"grid gap-x-m"),children:[nr(l),mp({field:t,inputs:s,params:a})]},`section-${r}`)})),hp=e=>t=>e(t)?.value,pp=d((({step:e,isSending:t,onPrevStep:n})=>{const a=5===e;return c("div",{className:"flex justify-between gap-m",children:[o(rr,{version:"secondary",disabled:0===e,onClick:n,children:"Назад"}),o(xr,{isLoading:t,children:a?"Отправить заявку":"Далее"})]})})),gp=e=>{const{bankruptcyFlg:t,shareholderFlg:n,legalEntityName:a,creditInRshbCd:i}=e;return{bankruptcyFlg:t,shareholderFlg:n,nameLegalEntity:a,creditInRshbCd:i}},fp=e=>{const{currency:t,paymentSystem:n,cardCategory:a,codeWord:i}=e;return{currencyCode:t?{key:t}:void 0,paymentSystemTypeCd:n,classCard:a,codeWord:i}},xp=e=>{const{beginDate:t,employment:n,organizationName:a,inn:i,legalForm:l,organization:r,amountWorkers:s,employerActivities:o,employerOrganization:c,generalSeniority:d,lastJobExperience:m,experience5Years:u,jobsNumber:h,organizationPhone:p,organizationAddress:g,positionOrganization:f,partInBusiness:x}=e;return{employmentContractDate:Yt(t||"",!0),employmentTypeCd:n,organizationName:a,organizationInn:i,organizationActivityTypeCd:o,organizationTypeCd:r,organizationKindCd:c,employeesNumberCd:s,opf:l,seniority:d,generalSeniority:u,jobsNumber:h,lastWorkDuration:m,positionCd:f,participantContacts:Td({organizationPhone:p&&Gt(p)}),participantAddresses:Rd({organizationAddress:g}),ownershipShare:"BUSINESS_OWNER"===f?.key?x:""}},bp=e=>{const{name:t,surname:n,middleName:a,limitedBirthday:i="",phone:l="",email:r,sex:s,birthPlace:o,dulIssueDate:c="",dulIssuedBy:d,dulNumber:m,dulSerie:u,dulSubdivisionCode:h,education:p,participantDateRegistration:g="",housing:f,addressRegistration:x,addressFact:b}=e;return{birthDate:Yt(i,!0),midname:a,name:t,surname:n,birthPlace:o,dulIssueDate:Yt(c,!0),dulIssuedBy:d,dulNumber:m,dulSerie:u,dulSubdivisionCode:h,educationLevelCd:p,registrationDate:Yt(g,!0),houseTypeCd:f,participantContacts:Td({phone:Gt(l),email:r}),participantAddresses:Rd({addressRegistration:x,addressFact:b}),genderCd:s?{key:"male"===s?"MAN":"WOMAN"}:void 0}},yp=e=>{const{methodObtain:t,deliveryDate:n=""}=e,a="courier"===t;return a?{courierDeliveryFlg:a,deliveryDate:(i=n.toString().replace(/(GMT)[+-]\d{4}/,"GMT+0000"),i?new Date(i).toISOString().split(".")[0]:""),deliveryTimeCd:{value:"TIME_2"},office:{id:"3"}}:{};var i},vp=e=>{const{addressRetail:t,methodObtain:n}=e;return t?.key&&"office"===n?{office:{id:t.key}}:{}},Np=(e,t)=>{switch(e){case 0:default:return{};case 1:return bp(t);case 2:return xp(t);case 3:return Bd(t);case 4:return gp(t);case 5:return(e=>{const{addressCourier:t,methodObtain:n}=e;return"courier"===n?{participantAddresses:Rd({addressCourier:t})}:{}})(t)}},wp=[{paymentSystem:{key:"",text:""},currency:"810",codeWord:""},{surname:"",name:"",middleName:"",sex:"",limitedBirthday:void 0,birthPlace:"",phone:"",email:"",dulSerie:void 0,dulNumber:void 0,dulIssueDate:void 0,dulSubdivisionCode:"",dulIssuedBy:"",addressRegistration:{fullAddress:"",fiasCode:""},participantDateRegistration:void 0,addressFact:{fullAddress:"",fiasCode:""},housing:void 0,methodObtain:"office",addressCourier:{fullAddress:"",fiasCode:""}},{amountWorkers:{key:"",text:""},beginDate:void 0,employerActivities:{key:"",text:""},employerOrganization:{key:"",text:""},employment:{key:"",text:""},experience5Years:void 0,inn:void 0,jobsNumber:void 0,lastJobExperience:void 0,legalForm:"",organization:{key:"",text:""},organizationAddress:{fullAddress:"",fiasCode:""},organizationName:"",organizationPhone:"",partInBusiness:void 0,positionOrganization:{key:"",text:""}},{familyStatus:{key:"",text:""},familyMembers:void 0,dependents:void 0,confirmationIncome:{key:"",text:""},wages:void 0,mandatoryPayments:void 0,snils:"",armyIdFlg:!1},{disablePeopleFlg:!1,bankruptcyFlg:!1,shareholderFlg:!1,legalEntityName:"",creditInRshbCd:void 0},{regionRetail:{key:"",text:""},addressRetail:{key:"",text:""},bankEmployeeCode:void 0,addressCourier:{fullAddress:"",fiasCode:""},methodObtain:"office",deliveryDate:void 0}],Cp=e=>{try{return e?new Date(e):void 0}catch(e){return}},Sp=({step:e,onNextStep:t,onFinish:n})=>{const[a,{setTrue:i,setFalse:s}]=on(!1),o=5===e,c=Ci(),d=r((()=>((e,t)=>({...wp[e],...t,limitedBirthday:Cp(t?.limitedBirthday),dulIssueDate:Cp(t?.dulIssueDate),participantDateRegistration:Cp(t?.participantDateRegistration),beginDate:Cp(t?.beginDate),deliveryDate:Cp(t?.deliveryDate)}))(e,c.leadForm)),[e,c.leadForm]),m=l((e=>{const{leadForm:t}=c;o&&e.ok&&t&&(c.statusInfo={regionRetail:t?.regionRetail?.text,addressRetail:t?.addressRetail?.text,deliveryAddress:t?.addressCourier?.fullAddress,cardCategory:t?.cardCategory?.text,deliveryDate:t?.deliveryDate,methodObtain:t?.methodObtain},c.leadForm=d)}),[o,d]),u=l((async a=>{i(),c.leadForm=a;try{const{taskId:i,profileId:l,participantId:r}=c;if(i&&l&&r){const t=await Qc((({participantId:e,taskId:t,profileId:n,formData:a,step:i=0})=>({sendToBank:!0,taskKind:"UNITED",task:{taskSource:nn().origin,id:t,...vp(a),authorizedAgentId:a?.bankEmployeeCode,participants:[{id:e,profile:{id:n},roleCd:{key:"BORROWER",value:"Заемщик"},...Np(i,a)}],...fp(a),...yp(a)}}))({participantId:r,taskId:i,profileId:l,step:e,formData:a}));m(t)}o?n?.():t()}catch(e){}finally{s()}}),[o,m]);return[d,u,a]},kp=d((({step:e,sections:t,onPrevStep:n,onNextStep:a,onFinish:i})=>{const s=r((()=>t?.flatMap((e=>e?.inputs||[]))),[t]),d=l((t=>Ol(np((e=>t[e]))(s,e))(t)),[s]),[m,u,h]=Sp({step:e,onNextStep:a,onFinish:i}),[,{field:p,onSubmit:g}]=gn(m,{formValidator:d,onSubmit:u});return c("form",{onSubmit:g,className:"space-y-m",children:[up({sections:t,field:p,step:e}),o(pp,{isSending:h,step:e,onPrevStep:n})]})})),Ip=[[{title:"Персональные данные",columns:2,inputs:[{name:"surname",required:!0,dadata:!0,filledByEsia:!0},{name:"name",required:!0,dadata:!0,filledByEsia:!0},{name:"middleName",dadata:!0,filledByEsia:!0},{name:"sex",required:!0},{name:"limitedBirthday",required:!0,filledByEsia:!0},{name:"birthPlace",required:!0,filledByEsia:!0},{name:"phone",required:!0,filledByEsia:!0},{name:"email",required:!0,dadata:!0}]},{title:"Паспортные данные",columns:2,inputs:[{name:"dulSerie",required:!0,filledByEsia:!0},{name:"dulNumber",required:!0,filledByEsia:!0},{name:"dulIssueDate",required:!0,filledByEsia:!0},{name:"dulSubdivisionCode",required:!0,dadata:!0,filledByEsia:!0}]},{inputs:[{name:"dulIssuedBy",required:!0,dadata:!0,filledByEsia:!0},{name:"education",required:!0}]},{title:"Адрес регистрации по месту жительства",columns:1,inputs:[]},{inputs:[{name:"addressRegistration",required:!0,dadata:!0,filledByEsia:!0},{name:"addressMatch"}]},{columns:2,inputs:[{name:"participantDateRegistration",required:!0}]},{title:"Адрес фактического проживания (место пребывания РФ)",inputs:[]},{columns:2,inputs:[{name:"housing",required:!0}]},{inputs:[{name:"addressFact",required:!0,dadata:!0}]}],[{title:"Данные о трудоустройстве",inputs:[]},{inputs:[{name:"infoCard",label:"Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске"}]},{inputs:[{name:"employment",required:!0},{name:"organizationName",required:!0,dadata:!0}]},{columns:2,inputs:[{name:"inn",required:!0,dadata:!0},{name:"legalForm",required:!0}]},{inputs:[{name:"organization",required:!0},{name:"amountWorkers",required:!0}]},{columns:2,inputs:[{name:"employerActivities",required:!0},{name:"employerOrganization",required:!0},{name:"generalSeniority",required:!0},{name:"lastJobExperience",required:!0},{name:"experience5Years",required:!0},{name:"jobsNumber",required:!0}]},{inputs:[{name:"organizationPhone",label:"Телефон работодателя",required:!0},{name:"beginDate",required:!0}]},{columns:2,inputs:[{name:"positionOrganization",required:!0},{name:"partInBusiness",required:!0,condition:{name:"positionOrganization",values:["BUSINESS_OWNER"]}}]},{title:"Адрес работодателя",inputs:[]},{inputs:[{name:"organizationAddress",required:!0,dadata:!0}]}],[{title:"Семейное положение"},{columns:1,inputs:[{name:"familyStatus",required:!0}]},{columns:1,inputs:[{name:"dependents",required:!0}]},{columns:2,inputs:[{name:"familyMembers"},{name:"children",required:!0}]},{title:"Совокупный доход"},{inputs:[{name:"infoCard",label:"Сумма основного и дополнительных доходов после вычета налога"}]},{columns:1,inputs:[{name:"confirmationIncome",required:!0}]},{columns:1,inputs:[{name:"wages",required:!0}]},{columns:1,inputs:[{name:"mandatoryPayments",required:!0}]},{columns:1,inputs:[{name:"snils",required:!0}]},{columns:1,inputs:[{name:"conscription",required:!0}]},{columns:2,inputs:[{name:"armyIdFlg"}]}],[{title:"Дополнительные сведения",columns:1,inputs:[]},{inputs:[{name:"disablePeopleFlg"}]},{inputs:[{name:"bankruptcyFlg"}]},{inputs:[{name:"shareholderFlg"}]},{inputs:[{name:"legalEntityName"}]},{inputs:[{name:"creditInRshbCd"}]}]],Tp=[[{title:"Параметры карты",inputs:[]},{inputs:[{name:"currency",required:!0},{name:"paymentSystem",required:!0},{name:"cardCategory",required:!0},{name:"codeWord",required:!0}]}],...Ip,[{title:"Адрес",columns:1,inputs:[]},{inputs:[{name:"addressCourier",dadata:!0,condition:{name:"methodObtain",values:["courier"]},required:!0},{name:"deliveryDate",condition:{name:"methodObtain",values:["courier"]},required:!0},{name:"comment",condition:{name:"methodObtain",values:["courier"]}}]},{inputs:[{name:"regionRetail",required:!0,condition:{name:"methodObtain",values:["office"]}},{name:"addressRetail",required:!0,condition:{name:"methodObtain",values:["office"]}}]},{inputs:[{name:"infoCard",label:"Если представитель Банка помогал Вам в заведении заявки, введите здесь его код",condition:{name:"methodObtain",values:["office"]}},{name:"bankEmployeeCode",condition:{name:"methodObtain",values:["office"]}}]}]],Rp=["Параметры карты","Персональные данные","Данные о трудоустройстве","Семейное положение и доход","Дополнительные сведения","Выбор способа получения"],Bp=d((({className:e,...t})=>{const[n,r]=a(0),d=s(null),m=l((()=>d?.current?.scrollIntoView({behavior:"smooth"})),[d]);i(Vh,[]);const u=l((()=>{r((e=>Math.min(e+1,6))),m()}),[]),h=l((()=>{r((e=>Math.max(e-1,0))),m()}),[]),p=Tp[n],[f,{setTrue:x}]=on(!1);return o(g,{className:e,...t,children:c("div",{ref:d,className:"container grid grid-cols-12",children:[f?null:o(Lh,{stepsTitles:Rp,step:n,totalSteps:6}),o("div",{className:"py-lg px-5xl mt-2xs bg-white col-span-12",children:f?o(ep,{}):o(kp,{step:n,sections:p,onNextStep:u,onPrevStep:h,onFinish:x},String(n))})]})})})),Pp=d((({step:e=1,totalSteps:t=5,stepsTitles:n=[]})=>{const a=r((()=>e/t*100),[e,t]);return o("div",{className:"py-lg px-5xl bg-white col-span-12",children:c("div",{children:[c("span",{className:"font-bold mr-s",children:["Шаг ",e," из ",t,"."]}),n[e]||null,o(Fh,{step:a,showPercentage:!1})]})})})),Dp=d((({title:e,description:t,sectionInfoTitle:n,sectionInfo:a,sectionAdditionalTitle:i,sectionInfoAdditional:l,buttonText:r,interval:s,onExpire:d=Nn,...m})=>c(g,{...m,children:[c("div",{className:"flex flex-col md:flex-row items-center",children:[o(S,{headlineVersion:"M",title:e,description:t,align:"text-left",padding:"p-xl",className:"w-full"}),s?o(qh,{interval:s,onEnd:d}):null]}),o(_p,{title:n,items:a}),o(_p,{title:i,items:l,countColumns:!0}),r?o(yr,{href:"/natural",text:r,version:"primary",className:"w-full mt-lg"}):null]}))),_p=({title:e,items:t,countColumns:n=!1})=>{const a=Pe();return t?c("div",{children:[o("hr",{className:"w-full h-px bg-main-gray border-0"}),c("div",{className:"p-xl",children:[e?o(Fe,{color:"text-primary-text",size:"text-h5",children:o("div",{className:u({"mb-m":Boolean(e)}),children:e})}):null,t?o("div",{className:u("grid grid-cols-1 gap-m",tr(n||a?1:2)),children:t.map(((e,t)=>o("div",{children:Ep(e)},t)))}):null]})]}):null},Ep=({label:e,description:t})=>c("div",{className:"flex flex-col",children:[o(Fe,{color:"text-secondary-text",size:"text-l",children:e}),o(Fe,{color:"text-primary-text",size:"text-xl",children:t})]}),Ap=d((()=>o(Dp,{title:"Благодарим Вас за ожидание",description:"В настоящий момент Банк не может одобрить Вашу заявку на кредит. Попробуйте подать заявку позже. Спасибо за обращение в АО «Россельхозбанк».",buttonText:"Вернуться на главную"}))),Mp=d((({onExpire:e})=>{const{statusInfo:t}=Ci();return o(Dp,{interval:300,title:"Заявка успешно отправлена",description:"Не закрывайте окно, скоро сообщим результат",sectionInfoTitle:"Заявленные условия по кредиту",sectionInfo:[{label:"Название продукта",description:"Кредит на любые цели"},{label:"Цель кредита",description:"На любые цели"},{label:"Сумма",description:`${t?.calculator?.moneyValue?.toLocaleString()??"0"} ₽`},{label:"Срок кредита",description:`${t?.calculator?.monthsValue??"0"} мес`},{label:"Тип платежа",description:t?.calculator?.isAnnuity?"Аннуитетный":"Дифференцированный"}],onExpire:e})})),Op=d((()=>{const{statusInfo:e}=Ci();return o(Dp,{title:"Благодарим вас за ожидание, но нам требуется больше времени для принятия решения",description:"Посетите выбранное отделение банка с необходимыми документами и так завершите оформление кредита.",sectionAdditionalTitle:"В отделении Банка",sectionInfoAdditional:[{label:"Регион",description:e?.regionRetail},{label:"Адрес",description:e?.addressRetail}],sectionInfo:[{label:"Основные документы:",description:"- Паспорт РФ"}],buttonText:"Вернуться на главную"})})),zp=d((()=>{const{statusInfo:e}=Ci();return o(Dp,{title:"Банк одобрил вам кредит",description:"Обратитесь в отделение банка, чтобы завершить оформление и получит ваш кредит",sectionInfo:[{label:"Название продукта",description:"Кредит на любые цели"},{label:"Ставка",description:"14,5%"},{label:"Ежемесячный платеж",description:"86 052 ₽"},{label:"Срок кредита",description:e?.calculator?.monthsValue+" мес"},{label:"Тип платежа",description:e?.calculator?.isAnnuity?"Аннуитетный":"Дифференцированный"}],buttonText:"Вернуться на главную"})})),Vp=["CREATE_APPLICATION_SHORT_SIGNAL","CREATE_APPLICATION_LOAN_V3_SIGNAL"],Fp=d((()=>{const[e,t]=a($h.process),{taskId:n}=Ci();i((()=>{(async()=>{for(const e of Vp)await Uh({signalType:e,taskId:n})})()}),[n]);const r=l((async e=>{const a=await jh({taskId:n});a&&a?.statusCd!==$h.process&&(e(),t(a.statusCd))}),[n]);cd(r,3e4);const s=l((()=>t($h.rework)),[]);return Lp(e,s)})),Lp=(e,t)=>({IN_PROCESS:o(Mp,{onExpire:t}),CANCELLED:o(Ap,{}),FAILED:o(Ap,{}),DRAFT:o(Ap,{}),APPROVED:o(zp,{}),PRE_DECISION:o(zp,{}),REVISION:o(Op,{})}[e]||o(Op,{})),$p=({field:e,inputs:t,params:n})=>t.map(er(e,n,{...Wc})),jp=({sections:e,field:t,step:n,params:a})=>e?.map((({inputs:e=[],columns:i,title:l},r)=>{const s=np(Up(t))(e,n);return c("div",{className:u(tr(i),"grid gap-x-m"),children:[nr(l),$p({field:t,inputs:s,params:a})]},`section-${r}`)})),Up=e=>t=>e(t)?.value,qp=d((({step:e,onPrevStep:t,isSending:n})=>{const a=5===e;return c("div",{className:"flex justify-between gap-m",children:[o(rr,{version:"secondary",disabled:0===e,onClick:t,children:"Назад"}),o(xr,{isLoading:n,children:a?"Отправить заявку":"Далее"})]})})),Wp={annuity:{key:"ANNUITY",value:"Аннуитетный"},differential:{key:"DIFFERENTIAL",value:"Дифференцированный "}},Hp=e=>{const{moneyValue:t,monthsValue:n,isAnnuity:a}=e?.calculator??{};return{loanAmount:t,creditPeriod:n,paymentTypeCd:Wp[a?"annuity":"differential"]}},Yp=e=>{const{addressRetail:t}=e;return{office:t?.key?{id:t.key}:void 0}},Gp=(e,t)=>{switch(e){case 0:return(e=>{const{isInsurance:t,isSalaryClient:n}=e?.calculator??{};return{payrollCardRshbFlg:t,consentInsuranceFlg:n}})(t);case 1:return bp(t);case 2:return xp(t);case 3:return Bd(t);case 4:return gp(t);default:return{}}},Kp=[{calculator:{moneyValue:0,monthsValue:0,isAnnuity:!1,isInsurance:!1,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1}},{surname:"",name:"",middleName:"",sex:"",limitedBirthday:void 0,birthPlace:"",phone:"",email:"",dulSerie:void 0,dulNumber:void 0,dulIssueDate:void 0,dulSubdivisionCode:"",dulIssuedBy:"",addressRegistration:{fullAddress:"",fiasCode:""},participantDateRegistration:void 0,addressFact:{fullAddress:"",fiasCode:""},housing:void 0},{amountWorkers:{key:"",text:""},beginDate:void 0,employerActivities:{key:"",text:""},employerOrganization:{key:"",text:""},employment:{key:"",text:""},experience5Years:void 0,inn:void 0,jobsNumber:void 0,lastJobExperience:void 0,legalForm:"",organization:{key:"",text:""},organizationAddress:{fullAddress:"",fiasCode:""},organizationName:"",organizationPhone:"",partInBusiness:void 0,positionOrganization:{key:"",text:""}},{familyStatus:{key:"",text:""},dependents:void 0,familyMembers:void 0,confirmationIncome:{key:"",text:""},wages:void 0,mandatoryPayments:void 0,snils:"",armyIdFlg:!1},{disablePeopleFlg:!1,bankruptcyFlg:!1,shareholderFlg:!1,legalEntityName:"",creditInRshbCd:void 0},{regionRetail:{key:"",text:""},addressRetail:void 0,bankEmployeeCode:void 0}],Xp=e=>{try{return e?new Date(e):void 0}catch(e){return}},Jp=({step:e,onNextStep:t,onFinish:n})=>{const[a,{setTrue:i,setFalse:s}]=on(!1),o=5===e,c=Ci(),d=r((()=>((e,t)=>({...Kp[e],...t,limitedBirthday:Xp(t?.limitedBirthday),dulIssueDate:Xp(t?.dulIssueDate),participantDateRegistration:Xp(t?.participantDateRegistration),beginDate:Xp(t?.beginDate),deliveryDate:Xp(t?.deliveryDate)}))(e,c.leadForm)),[e,c.leadForm]),m=l((e=>{const{leadForm:t}=c;o&&e.ok&&t&&(c.statusInfo={regionRetail:t?.regionRetail?.text,addressRetail:t?.addressRetail?.text,calculator:{monthsValue:t?.calculator?.monthsValue,moneyValue:t?.calculator?.moneyValue,isAnnuity:t?.calculator?.isAnnuity}},c.leadForm=d)}),[o,d]),u=l((async a=>{i(),c.leadForm=a;try{const{taskId:i,profileId:l,participantId:r}=c;if(i&&l&&r){const t=await Qc((({participantId:e,taskId:t,profileId:n,formData:a,step:i=0})=>({sendToBank:!0,taskKind:"UNITED",task:{taskSource:nn().origin,id:t,authorizedAgentId:a?.bankEmployeeCode,participants:[{id:e,profile:{id:n},roleCd:{key:"BORROWER",value:"Заемщик"},...Gp(i,a)}],...Hp(a),...Yp(a),esiaAccountTypeCd:{key:a?.esiaAccountTypeCd?.key}}}))({participantId:r,taskId:i,profileId:l,step:e,formData:a}));m(t)}t(),o&&n?.()}catch(e){}finally{s()}}),[o,m]);return[d,u,a]},Zp=d((({step:e,sections:t,programsSource:n,onPrevStep:a,onNextStep:i,onFinish:s})=>{const{programId:d}=Ci(),m=n?.[d??""],u=r((()=>t?.flatMap((e=>e?.inputs??[]))),[t]),h=l((t=>Ol(np((e=>t[e]))(u,e))(t)),[u]),[p,g,f]=Jp({step:e,onNextStep:i,onFinish:s}),[,{field:x,onSubmit:b}]=gn(p,{formValidator:h,onSubmit:g});return c("form",{onSubmit:b,className:"space-y-m",children:[jp({sections:t,field:x,step:e,params:{calcData:m}}),o(qp,{step:e,isSending:f,onPrevStep:a})]})})),Qp=[[{columns:1,inputs:[{name:"calculator"}]}],...Ip,[{title:"Отделение Банка",columns:1,inputs:[]},{inputs:[{name:"regionRetail",required:!0}]},{inputs:[{name:"addressRetail",required:!0}]},{title:"Код представителя Банка",columns:1,inputs:[]},{inputs:[{name:"infoCard",label:"Если представитель Банка помогал Вам в заведении заявки, введите здесь его код"}]},{inputs:[{name:"bankEmployeeCode"}]}]],eg=["","Персональные данные","Данные о трудоустройстве","Семейное положение и доход","Дополнительные сведения","Отделение Банка"],tg=Ut((({className:e,programsSource:t,...n})=>{const[r,d]=a(0),m=s(null),u=l((()=>m?.current?.scrollIntoView({behavior:"smooth"})),[m]);i(Vh,[]);const h=l((()=>{d((e=>Math.min(e+1,5))),u()}),[]),p=l((()=>{d((e=>Math.max(e-1,0))),u()}),[]),f=Qp[r],x=0===r,[b,{setTrue:y}]=on(!1);return o(g,{className:e,...n,children:c("div",{ref:m,className:"container grid grid-cols-12",children:[x||b?null:o(Pp,{stepsTitles:eg,step:r,totalSteps:5}),o("div",{className:"py-lg px-5xl mt-2xs bg-white col-span-12",children:b?o(Fp,{}):o(Zp,{step:r,sections:f,programsSource:t,onNextStep:h,onPrevStep:p,onFinish:y},String(r))})]})})})),ng=e=>"number"==typeof e?.minMonths&&"number"==typeof e?.maxMonths,ag=(e,t)=>Array.from({length:t-e+1},((t,n)=>e+n)),ig=1e9,lg={sum:{min:1e4,max:ig},period:3},rg=Ut((({className:e,filtrationSchema:t={},resetButton:n,sumInput:a,periodInput:i,...l})=>{const[,{blocksToRender:r,blocksWithProps:s},{field:d,reset:m}]=qm(lg,{block:l.block,page:l.options?.page,normalize:e=>({...e,period:sg(e)})}),h=s.map((([,e])=>e?.paramsSource?.rows?.[0]?.rates)),p=og(h);return c(g,{className:u("space-y-2xs",e),defaultPadding:"p-0",version:"transparent",...l,children:[o(Om,{filtrationSchema:t,resetButton:n,field:d,reset:m,children:c("div",{className:"@4xl:max-w-xs space-y-lg",children:[o(Zu,{label:a?.title,min:500,max:ig,...d("sum",{parse:e=>({min:Number(e),max:ig}),format:({min:e})=>String(e)})}),o(ga,{title:i?.title,items:["От 3 мес","До 5 лет"],list:p,...d("period")})]})}),o(_m,{blocksToRender:r,...l})]})}),{childrenTypes:["ProductBlock"],childSchema:e=>({...e?.filtrationSchema||{},paramsSource:{type:"object",title:"Адрес справочника"}})}),sg=e=>zt((e?.paramsSource?.rateRows||[]).filter(ng).flatMap((e=>ag(e.minMonths,e.maxMonths)))),og=e=>zt(e.flatMap((e=>e||[])).filter(ng).flatMap((e=>ag(e.minMonths,e.maxMonths)))).sort(((e,t)=>e-t))||[],cg=[{key:"10"},{key:"50"},{key:"100"}],dg=({itemCount:e,onItemCountChange:t})=>{const n=l((({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($n,{className:"min-w-20",onChange:n,value:{key:String(e)},options:cg,iconVersion:"black"})]})},mg="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",ug=(e,t)=>{const{currentPage:n,onPageChange:a,totalPages:i}=e,l=t+1;return l===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:l},String(t)):1!==l&&l!==i&&((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))(l,n,i)?o("div",{onClick:()=>a(l),className:mg,"aria-label":`Страница ${l}`,children:l},String(t)):null},hg={width:"24",height:"24"},pg=({currentPage:e,onPageChange:t,totalPages:n})=>{const a=r((()=>Array.from({length:n}).fill({currentPage:e,onPageChange:t,totalPages:n})),[n,e]),i=l((()=>{e>1&&t(e-1)}),[e]),s=l((()=>{e<n&&t(e+1)}),[e,n]),d=l((()=>t(1)),[]),m=l((()=>t(n)),[n]);return c("div",{className:"flex gap-m items-center",children:[o("div",{onClick:i,children:o(J,{name:"ArrowLeftIcon",iconVersion:"black",imageClassName:gg(1===e),...hg})}),c("div",{className:"flex @lg:gap-2xs",children:[e>1?o("div",{onClick:d,className:mg,"aria-label":"Страница 1",children:"1"}):null,e>3?o("div",{className:"py-m @lg:px-s",children:"..."}):null,a.map(ug),e<n-2?o("div",{className:"py-m @lg:px-s",children:"..."}):null,e<n?o("div",{onClick:m,className:mg,"aria-label":`Страница ${n}`,children:n}):null]}),o("div",{onClick:s,children:o(J,{className:"rotate-180",name:"ArrowLeftIcon",iconVersion:"black",imageClassName:gg(e===n),...hg})})]})},gg=e=>e?"opacity-20":"cursor-pointer hover:opacity-60",fg=({currentPage:e,onPageChange:t,totalPages:n,itemCount:a,onItemCountChange:i})=>c("div",{className:"mt-3xl flex justify-between flex-col @lg:flex-row items-center select-none",role:"navigation","aria-label":"Пагинация",children:[o(pg,{currentPage:e,onPageChange:t,totalPages:n}),a&&i?o(dg,{itemCount:a,onItemCountChange:i}):null]}),xg=d((({className:e,value:t,autoFocus:n,onChange:a,onFocus:i,placeholder:r="Поиск по сайту"})=>{const s=l((e=>{a&&a(e.target?.value||"")}),[a]);return c("div",{className:u("relative",e),role:"form",children:[o("div",{className:"absolute h-full flex items-center pl-m pointer-events-none",children:o(se,{image:{icon:"LoupeIcon",iconVersion:"black"},width:"24",height:"24"})}),o("input",{className:u("h-14 w-full px-10 text-l text-black box-border rounded-md",wn),value:t,type:"text",name:"search-bar-input",placeholder:r,autoFocus:n,onChange:s,onFocus:i})]})})),bg=d((({field:e,onClearFilter:t,filtrationState:n})=>c("div",{className:"grid grid-cols-12 mb-3xl @lg:space-x-xl",children:[o(xg,{className:"col-span-12 @lg:col-span-4 mt-auto",placeholder:"Поиск",...e("query")}),o(Ga,{className:"col-span-12 @lg:col-span-3 mt-4 @lg:mt-0",label:"Период от",maxDate:n.endDate,...e("startDate")}),o(Ga,{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(rr,{type:"reset",className:"w-full",version:"secondary",onClick:t,children:"Очистить"})})]}))),yg=d((({title:e,timestamp:t,publicId:n})=>{const a=ye(),{href:i}=a({href:`${Kt}/depository/${n}/file`});return c("div",{className:"flex gap-3 items-center py-lg border-gray border-opacity-50 border-b",children:[o(Jm,{className:"shrink-0",icon:"DocDownloadIcon",iconVersion:"black"}),c("div",{className:"flex flex-col gap-x-6xl lg:flex-row lg:items-center",children:[t?o(Fe,{size:"text-m","font-weight":"font-light",children:Yt(t)}):null,o("a",{className:"text-h6 hover:text-primary-active",href:i,download:!0,"aria-label":"Скачать",children:e})]})]},n)})),vg=`${Kt}/depository`,Ng={startDate:void 0,endDate:void 0,query:""},wg=Ut((({className:e,...t})=>{const[n,i]=a(0),[r,s]=a(10),[d,{field:m,reset:h}]=gn(Ng),{totalPages:p=0,items:f=[]}=(({size:e,page:t,query:n,startDate:a,endDate:i})=>{const l=a?Yt(a,!0):"",r=i?Yt(i,!0):"",s=new URLSearchParams(vg);s.set("page",String(t)),s.set("size",String(e)),s.set("query",n),s.set("timestampStart",l),s.set("timestampEnd",r);const o=`?${s.toString()}`,{data:c}=ta(vg+o,Ot);return{items:c?.content,totalPages:c?.totalPages}})({size:r,page:n,...d}),x=l((e=>i(e-1)),[]),b=l((e=>{r!==e?(s(e),i(0)):s(e)}),[]);return c(g,{className:u(e,"container p-6xl"),...t,children:[o(bg,{filtrationState:d,field:m,onClearFilter:h}),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(Fe,{size:"text-m",color:"text-secondary-text",children:"Дата"})}),o("span",{className:"col-span-8 @lg:col-span-10 hidden @lg:block",children:o(Fe,{size:"text-m",color:"text-secondary-text",children:"Тема"})})]}),f.length?f.map((e=>o(yg,{...e},String(e.publicId)))):o(em,{title:"Ничего не найдено",description:"Попробуйте очистить фильтры"}),o(fg,{currentPage:n+1,onPageChange:x,totalPages:p,itemCount:r,onItemCountChange:b})]})]})})),Cg=e=>"Image"===e?.contentType&&e?.image?o(se,{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,Sg=d((({className:e="",title:t,description:n,error:a,button:i,...l})=>c(g,{className:u("flex flex-col justify-center items-center",e),defaultPadding:u("p-6xl"),version:"transparent",...l,children:[o("div",{className:"flex justify-center",children:Cg(a)}),o(S,{title:t,description:n,headlineVersion:"XL",isEmbedded:!0,className:"mb-2xl last:mb-0"}),i?.text?o(Ie,{version:i?.version,text:i?.text,...i}):null]}))),kg=`${Kt}/region`;function Ig(e="Москва"){return wi().location??{name:e}}function Tg(e="Москва"){const t=wi(),n=l((async()=>{if(!t.location){const n=await Mt(kg);t.location=n??{name:e}}}),[t,e]);return ta(kg,n),t}var Rg;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD",e.CNY="CNY"}(Rg||(Rg={}));const Bg=new Intl.NumberFormat("ru",{style:"currency",currency:Rg.RUB}),Pg=e=>e?Bg.format(e):"",Dg="text-m font-light text-secondary-text ",_g=`${Dg} text-left`,Eg=`${Dg} pl-5xl text-center`,Ag=`${Dg} pl-5xl text-right`,Mg={USD:"DollarIcon",EUR:"EuroIcon",CNY:"ChineseYuanRenminbiIcon"},Og=d((({className:e,exchangeCurrencyItems:t})=>c("table",{className:u("h-fit w-full",e),children:[o("thead",{children:c("tr",{children:[o("th",{className:_g,children:o(Fe,{size:"text-m",children:"Валюта"})}),o("th",{className:Eg,children:o(Fe,{size:"text-m",children:"Купить"})}),o("th",{className:Ag,children:o(Fe,{size:"text-m",children:"Продать"})})]})}),o("tbody",{children:t.map(zg)})]}))),zg=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(se,{image:{icon:Mg[t]},width:"24",height:"24"}):null,o(Fe,{size:"text-h6",children:t})]})}),o("td",{className:"pt-m pl-5xl text-center",children:o(Fe,{size:"text-h6",children:Pg(e?.saleExchangeRate)})}),o("td",{className:"pt-m pl-5xl text-right",children:o(Fe,{size:"text-h6",children:Pg(e?.buyExchangeRate)})})]},t)},Vg={icon:"GpsIcon"},Fg=d((({className:e="",address:t})=>c("div",{className:u("flex gap-s w-full justify-between @sm:justify-center",e),children:[o(Jm,{...Vg,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:"Курс указан для заданного офиса"})]})]}))),Lg=(e,t,n)=>{const a=Number($g(e))*Math.pow(t,n?-1:1);return Number.isInteger(a)?a:((e,t=2)=>{const n=10**t;return Math.round(parseFloat(String(e))*n)/n})(a)},$g=e=>e.replace(/[^\d.,]/g,"").replace(",",".");function jg(e){if(!e)throw new Error("Value should be fulfilled");return e}const Ug=e=>t=>{const[,n]=jg(e.find((([e])=>e(t))));return n(t)},qg=e=>Ug(e.map((([e,t])=>[e,()=>t])));qg.if=e=>new Wg(void 0,e);class Wg{parent;predicate;unit;get entry(){return[jg(this.predicate),jg(this.unit)]}constructor(e,t,n){this.parent=e,this.predicate=t,this.unit=n}if(e){return new Wg(this,e)}then(e){return new Wg(this.parent,this.predicate,e)}else(e){return Ug([...Hg(this),[()=>!0,e]])}}const Hg=e=>[...e?.parent?Hg(e.parent):[],e.entry],Yg=e=>qg([[e=>e.value!==Rg.RUB&&e.oppositeValue!==Rg.RUB,()=>e.handleConvert(e.value,Rg.RUB)],[e=>e.value===Rg.RUB&&e.oppositeValue===Rg.RUB,()=>e.handleConvert(e.value,Rg.USD)],[e=>e.value===Rg.RUB&&e.oppositeValue===Rg.RUB,()=>e.handleConvert(e.value,Rg.CNY)],[()=>!0,()=>e.handleConvert(e.value)]])(e)?.();function Gg(e){const{placeholder:t,rates:n,selected:a,value:i,setValue:l,setSelected:r}=e,s=n.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),d={key:a,text:a};return c("div",{className:"relative flex",children:[o(kn,{className:"shrink-0 text-l w-full appearance-none -mr-20",placeholder:t,type:"text",value:i,onChange:l}),s.length?o($n,{className:"absolute right-0",isBorder:!1,onChange:e=>r(e.key),options:s,value:d}):null]})}const Kg=d((({className:e="",currencyRatesBuy:t,currencyRatesSell:n,button:i})=>{const[r,s]=a({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||Rg.RUB,selectBuy:n?.[0]?.currency?.currency||Rg.USD}),d=l((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:[Gg({placeholder:"Хочу продать",rates:n,selected:r.selectSell,setSelected:Xg(r,d,n),value:r.inputSell,setValue:e=>Zg(d,n)(e,r.selectSell,r.selectBuy)}),Gg({placeholder:"Получу",rates:t,selected:r.selectBuy,setSelected:Jg(r,d,t),value:r.inputBuy,setValue:e=>Qg(d,t)(e,r.selectBuy,r.selectSell)})]}):null,i?.text?o(Ie,{text:i.text,version:i?.version,...i}):null]})})),Xg=(e,t,n)=>a=>{t({selectSell:a}),Yg({value:a,oppositeValue:e.selectBuy,handleConvert:(a=e.selectSell,i=e.selectBuy)=>{Zg(t,n)(e.inputSell,a,i)}})},Jg=(e,t,n)=>a=>{t({selectBuy:a}),Yg({value:a,oppositeValue:e.selectSell,handleConvert:(a=e.selectBuy,i=e.selectSell)=>Qg(t,n)(e.inputBuy,a,i)})},Zg=(e,t)=>(n,a,i)=>{e({inputSell:$g(n),selectBuy:i});const l=t.find((e=>e.currency?.currency===i))?.buyExchangeRate||t.find((e=>e.currency?.currency===a))?.buyExchangeRate;l&&e({inputBuy:String(Lg(n,l,a===Rg.RUB)||"")})},Qg=(e,t)=>(n,a,i)=>{e({inputBuy:$g(n),selectSell:i});const l=t.find((e=>e.currency?.currency===i))?.saleExchangeRate||t.find((e=>e.currency?.currency===a))?.saleExchangeRate;l&&e({inputSell:String(Lg(n,l,a===Rg.RUB)||"")})},ef=`${Kt}/exchangerates`;const tf=d((({className:e="",title:t="Курсы обмена валют",button:n,...a})=>{const i=function(e){const t=e?.code||"000",{data:n}=ta(ef+`?regionCode=${t}`,Ot);return n||{}}(Ig()),l=nf(i?.exchangeRate?.currencies),r=l.filter((e=>e.buyExchangeRate));r.unshift({currency:{currency:Rg.RUB}});const s=l.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:Rg.RUB}}),o(g,{className:u("box-border min-h-80",e),...a,children:o(Ee,{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:[l?o(Og,{className:"mb-xl",exchangeCurrencyItems:l}):null,o(Fg,{address:i?.address})]}),o(Kg,{className:"grow w-1/2",currencyRatesBuy:r,currencyRatesSell:s,button:n})]})})})})),nf=e=>e?.filter((e=>[1,2,3].includes(e?.currency?.id)))||[],af=d((({className:e="",items:t})=>{const n=ye();return o("ul",{className:u("flex flex-col gap-s w-full",e),children:t?.map(lf(n))})})),lf=e=>({dataFooter:t,...n},a)=>{const{text:i,href:l,target:r,onClick:s}=e(n);return i?o("li",{className:"list-none",children:o("a",{className:"hover:text-primary-main font-light",role:"link",href:l,target:r||"_self",onClick:s,...Ne(t),children:i||null})},String(a)):null},rf=e=>t=>!t.displayArea||e.includes(t.displayArea.toLowerCase()),sf=["all","footer"],of=d((({className:e,navigationItems:t})=>{const n=ye();return o("div",{role:"menu",className:u("w-full flex items-start justify-between flex-col md:flex-row gap-y-m lg:order-2",e),children:t?.filter(rf(sf)).map(n).map(cf)})})),cf=(e,t)=>{const{text:n,items:a=[],href:i,target:l="_self",onClick:r,dataFooter:s}=e,d=a.filter(rf(sf));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:i,target:l,onClick:r,...Ne(s),children:n}),d?o(af,{items:d}):null]},String(t))},df=d((({className:e="",items:t=[]})=>t?.length?o("div",{className:u("space-y-m",e),children:t.map(mf)}):null)),mf=(e,t)=>c("div",{className:"space-y-m",children:[o("div",{children:o(Fe,{size:"text-l",font:"font-medium",children:e?.title})}),o("div",{className:"space-y-m",children:e.items?.map(uf)})]},String(t)),uf=(e,t)=>c("div",{className:"space-y-2xs",children:[o("div",{children:hf(e.type,e.text)}),o(w,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e.description})]},String(t)),hf=(e,t="")=>{switch(e){case"tel":return o("a",{className:"text-primary-text hover:text-primary-main no-underline",href:`tel:${pf(t)}`,children:o(Fe,{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})}},pf=e=>e.replaceAll(/\D/g,""),gf=d((({className:e="",index:t,text:n,...a})=>{const i=ye(),{href:l,target:r,onClick:s}=i(a);return o("a",{className:u("text-secondary-text",e),href:l,target:r,onClick:s,children:n||`Документ ${t}`})})),ff=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(Fe,{size:"text-l",font:"font-normal",children:t})}),n.map(((e,t)=>o(gf,{index:t,className:"text-l font-light lg:max-w-[292px]",...e},String(t))))]}):null}))),xf="w-full lg:w-52";function bf(e,t,n=300){i((()=>{const t=globalThis.setTimeout(e,n);return()=>{globalThis.clearTimeout(t)}}),t)}const yf=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:n,s1Matches:a,s2Matches:i}=function(e,t){const n=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),a=Array.from({length:e.length}),i=Array.from({length:t.length});let l=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++)a[r]||i[n]||e[r]!==t[n]||(l++,a[r]=!0,i[n]=!0)}return{m:l,s1Matches:a,s2Matches:i}}(e,t);if(0===n)return 0;const l=function(e,t,{s1Matches:n,s2Matches:a}){let i=0;for(let l=0,r=0;l<e.length;l++){if(!n[l])continue;let s=r;for(;s<t.length;s++)if(a[s]){r=s+1;break}e[l]!==t[s]&&i++}return i}(e,t,{s1Matches:a,s2Matches:i}),r=(n/e.length+n/t.length+(n-l/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 vf=(e,t)=>(n,a)=>{for(const[i,l]of a)n.set(i,e(n.get(i)||t,l));return n},Nf=(e=[])=>e.reduce(((e,t)=>e+t),0),wf=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),Cf=e=>t=>e.map((([e,n])=>[yf(t)(e),n])).filter((([e])=>e>=.8)).map((([e,t])=>kf(t,e))).reduce(vf(Math.max,0),new Map),Sf=e=>t=>{return Lm(t,t.map((({title:e})=>e)).map((e=>t=>{const n=wf(t||"");return n.length?Nf(e.map((e=>To(n.map(yf(e)))))):0})(e))).sort((e=>(t,n)=>-e(t,n))((n=([,e])=>e,(e,t)=>n(e)-n(t)))).map((([e])=>e));var n},kf=(e,t)=>new Map(e.map((e=>[e,t]))),If=({basePathList:e,initialQuery:t=""})=>{const[n,l]=a(t||"");i((()=>{null!=t&&l(t)}),[t]);const{data:r}=ta(e?.length?e:null,Tf),[s,o]=a(null);return bf((()=>{r&&o(r.map((e=>t=>{const{corpus:n,dictionary:a}=t||{};if(!(e&&n?.length&&a&&Object.keys(a).length))return[];const i=wf(e);if(!i.length)return[];const l=Object.entries(a),r=[...i.map(Cf(l)).reduce(vf(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*i.length)).map((([e])=>n[e]));return Sf(i)(r)})(n)))}),[r,n]),[s,{value:n,onChange:l}]},Tf=async(...e)=>(await Promise.allSettled(e.map((e=>Mt(M(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),Rf=d((({initialQuery:e,navigationItems:t,onClose:n})=>{const a=r((()=>t?.map((e=>e.href||"/"))),[t]),[i,l]=If({basePathList:a,initialQuery:e}),s=r((()=>Bf(t)(i)),[t,i]);return o(or,{head:o(xg,{autoFocus:!0,...l}),onClose:n,children:o(of,{navigationItems:s})})})),Bf=e=>t=>e?.length&&t?.length?Lm(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:M("/",t)})))}))):[],Pf=d((({className:e,search:t,...n})=>{const[i,r]=a(""),s=l((()=>r("")),[]),d=xn(Rf,n),m=l((e=>{r(e),Df(e)&&d.open({initialQuery:e,onClose:s})}),[s,d]);return c("div",{className:u("relative",e),role:"search",children:[o(xg,{value:i,placeholder:t?.placeholder,onChange:m}),o(sr,{className:"absolute top-0 right-0 sm:hidden",onClose:s})]})})),Df=e=>e&&e.length>=3,_f=(e,t)=>{const{logo:n}=e??{},{dataHeader:a,dataFooter:i,...l}=n??{};return c("div",{className:"flex items-stretch gap-3xl",children:[o(ld,{className:xf,logo:l,data:i,showTitle:!1}),o(Pf,{className:"grow",navigationItems:t,...e})]})},Ef=d((({className:e="",index:t,...n})=>{const a=ye(),{href:i,target:l,text:r,onClick:s}=a(n);return o("a",{className:u("text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px]",e),href:i,target:l,onClick:s,children:r||`Документ ${t}`})})),Af=d((({className:e="",links:t,license:n})=>c("div",{className:u("@container space-y-lg",e),children:[n?o("div",{children:o(Fe,{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(Ef,{index:t,...e},String(t))))}):null]}))),Mf=Ut((({className:e,footer:t,...n})=>{const{navigationItems:a}=n.options?.page?.navigation??{},i=n.options?.page?.common??{},{documents:l,relatedEnterprises:r,contacts:s,mediaLinks:d=[],horizontalNavigationTitle:m,feedbackButton:h,license:p,otherLinks:f=[]}=t??{};return c(g,{tag:"footer",className:u("grid gap-y-xl p-4xl pb-24 lg:p-xl",e),...n,children:[_f(i,a),c("div",{className:"flex flex-col lg:flex-row items-center @lg:items-stretch gap-lg lg:gap-6xl ",children:[o(of,{navigationItems:a}),o("div",{className:"border-t border-main-divider lg:hidden w-full"}),c("div",{className:u(xf,"flex flex-col shrink-0 overflow-hidden space-y-xl"),children:[o(df,{items:s}),h?o(Ie,{className:"w-full",version:"primary",...h}):null,d.map(((e,t)=>o(Th,{media:e?.links??[],showButtonText:!1,stretched:!0,children:e?.title},String(t)))),f.map(((e,t)=>o(yr,{className:"text-s font-light",...e},`${e.href}_${t}`)))]})]}),o(ff,{title:m,links:r}),o(Af,{links:l,license:p})]})})),Of=d((({className:e="",title:t,description:n,calendar:a,...i})=>c(g,{className:u("space-y-m",e),defaultPadding:"p-6xl",...i,children:[o(S,{title:t,description:n,headlineVersion:"M",isEmbedded:!0}),a?zf(a):null]}))),zf=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=>Vf(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:Ff(e)}),c("div",{className:"text-s",children:[o(Fe,{size:"text-s",font:"font-light",color:"text-primary-text",children:e.text})," ",o(Fe,{size:"text-s",font:"font-light",color:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},Vf=(e,t)=>e.month?.map(((e,n)=>o("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${n}`))),Ff=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(se,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),Lf=Ut((({className:e,title:t,button:n,regionSource:i,data:l,...r})=>{const[s,d]=a({key:""}),m=i?.regions??[],h=m?.find((e=>e.name===s.key))?.href;return o(g,{className:e,defaultPadding:"p-6xl",...r,children:c("div",{className:"container space-y-m",children:[t?o(N,{headingType:"h3",title:t,className:"@xl:text-center"}):null,m?o(Wn,{label:"Ваш регион",placeholder:"Выберите регион",isSearch:!0,options:m.map((({name:e=""})=>({key:e,text:e}))),value:s,onChange:d}):null,h?o("div",{className:"text-center",children:o(yr,{className:u("w-full @xl:w-auto"),href:h,target:"_blank",version:n?.version??"primary",data:Sh(l,s?.key),children:n?.text?n.text:"Перейти"})}):null]})})}));function $f(e=[]){const t=D(),n=Array.from(e.entries()).filter((([,e])=>jf(t)(e)));return n.find((([,e])=>jf(t,!0)(e)))??n[n.length-1]??[]}const jf=(e,t=!1)=>({href:n})=>{if(!n)return!1;const a=$(Uf(e)(n));return t?a===$(n):a.startsWith($(n))},Uf=e=>t=>{const n=te(ee.SITE_URL);return V(t)?e.href:M(n,e.pathname)},qf=d((({className:e="",items:t,activeItem:n,ariaLabel:a="Меню"})=>{const[r,{setFalse:d,toggle:m}]=on(!1),h=yn(d),p=s(null),g=l((({isOpened:e,buttonRef:t,menuRef:n})=>{if(e&&t.current&&n.current){const e=n.current.getBoundingClientRect(),a=t.current.getBoundingClientRect(),i=globalThis.innerWidth-e.width;e.right>=globalThis.innerWidth?n.current.style.left=`${i}px`:a.left>e.left&&(i>a.left?n.current.style.left="":n.current.style.left=`${i}px`)}}),[r]);return bn(globalThis,"resize",(()=>g({isOpened:r,buttonRef:h,menuRef:p}))),i((()=>{g({isOpened:r,buttonRef:h,menuRef:p})}),[r]),c("div",{className:u(r?"rounded-md shadow-blue-gray":"",e),ref:h,role:"navigation",children:[o("button",{type:"button",className:"group/btn flex justify-between items-center h-6","aria-label":a,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:u("absolute flex flex-col rounded-md bg-white p-xl pb-xs w-56 z-40",{hidden:!r}),"aria-hidden":!r,children:Hf(t,n)})]})})),Wf=d((({isActive:e,...t})=>{const n=ye(),{text:a,href:i,target:l,onClick:r}=n(t);return o("a",{className:u("text-l font-light pb-m hover:text-primary-main",{"text-primary-main":e}),href:i,target:l,onClick:r,role:"link",...Ne(t?.data),children:a})})),Hf=(e,t)=>e?.map(((e,n)=>o(Wf,{isActive:e===t,...e},e?.text??String(n)))),Yf={default:"w-6 h-6",large:"w-12 h-12"},Gf=d((({className:e,isRounded:t,buttonSize:n="default",isGrayBg:a=!1,disabled:i,ariaLabel:l="Меню второго уровня",image:r,data:s,onClick:c,version:d})=>o("button",{className:u("group/btn border-0 flex shrink-0 items-center",a?"p-s rounded-full":"p-0 bg-inherit","transparent"===d?"backdrop-opacity-30 bg-white/30":a&&!t?"bg-main-divider":"",t?"w-8 h-8 text-secondary-light hover:text-secondary-hove":`${Yf[n]} text-primary-text hover:text-primary-main`,"group-data-transparent:text-white",e),type:"button",disabled:i,"aria-label":l,onClick:c,...Ne(s),children:o(se,{image:r,className:u("h-full",{"bg-main-divider/20 rounded-full":t}),imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0"})}))),Kf="chatbot",Xf="text-page__btn-chat",Jf={personal:"//chat.mes.rshb.ru/assets/js/webchat_rshb",business:""},Zf=d((({chat:e="personal",iconVersion:t,className:n,ariaLabel:a="Чат",version:l})=>{const r=(e=>{i((()=>globalThis.localStorage?.setItem("webchat-keep-open",String(Date.now()))),[]);const t=Jf[e??""];return n=>{if(t)if("personal"!==e)zr(Kf,t);else{const e=n.target;e?.classList.contains(Xf)||e?.classList.add(Xf),document.getElementById("webchat-js-container:webchat_rshb")||zr(Kf,t)}}})(e);return o(Gf,{className:n,image:{icon:"HeadphonesIcon",iconVersion:t},ariaLabel:a,onClick:r,buttonSize:"large",isGrayBg:!0,version:l})})),Qf=d((({className:e="",active:t,dataItemName:n,children:a,data:i,...l})=>{const r=ye(),{href:s,target:d,text:m,onClick:h}=r(l);return c("a",{className:u("relative inline-block bg-transparent text-center no-underline",e),href:s,target:d,"data-item-name":n,onClick:h,...Ne(i),children:[o("span",{className:ex(t),children:m||a}),t?o("div",{className:"absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-white"}):null]})})),ex=(e=!1)=>u("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"),tx=d((({observerOptions:e,onVisibilityChange:t,children:n,className:a,...i})=>{const r=sm(l((e=>{if(!e.length||!t)return;const n=e[e.length-1];t(n.isIntersecting)}),[t]),e);return o("span",{ref:r,className:a,role:"menuitem",children:o(Qf,{...i,children:n})})})),nx={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"},ax=d((({version:e,text:t,mobileText:n,...a})=>{const i=Pe()?n:t;return i?o(Ie,{className:u("py-s px-lg font-light whitespace-nowrap",nx["transparent"===e?"transparent":"default"]),...a,children:i}):null})),ix=d((({subItems:e=[],version:t,internetBankButton:n,dropdownMenuAriaLabel:i,chatBotAriaLabel:l})=>{const d="transparent"===t?"white":"black",[,m]=$f(e),[u,h]=a(e.length),p=e.slice(u),g=s(null),f={rootRef:g},x=r((()=>e.map(((e,t)=>e=>{h(e?lx(t):rx(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(tx,{className:u-1<t?"invisible":"",active:e===m,observerOptions:f,onVisibilityChange:x[t],data:e.dataHeader,...e},String(t))))}),p.length?o(qf,{items:p,activeItem:m,ariaLabel:i}):null,E.CHAT_BOT?o(Zf,{version:t,iconVersion:d,chat:E.CHAT_BOT,ariaLabel:l}):null,o(ax,{version:t,...n})]})})),lx=e=>t=>Math.max(t,e+1),rx=e=>t=>Math.min(t,e),sx=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(Fe,{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(ox,{...e},String(t))))})]}):null,ox=d((({icon:e,...t})=>{const n=ye(),{text:a,target:i,href:l,onClick:r}=n(t);return c("div",{className:"flex gap-s items-center",children:[e?o(se,{image:e}):null,a?o("a",{className:"hover:text-primary-hover",href:l,target:i,onClick:r,children:o(Fe,{size:"text-l",font:"font-light",color:"text-primary-text",children:a})}):null]})})),cx=(e,t)=>n=>n.name?o(kh,{href:`/branches/${n.slug}`,className:"mb-xs sm:mb-2xs hover:text-primary-hover",onClick:()=>t?.(n),data:Sh(e,n.name),children:o(Fe,{size:"text-l",font:"font-light",children:n.name})},String(n.id)):null,dx=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:u(wn,"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"})]}))),mx=d((({defaultLocation:e})=>{const t=Ig(e),n=ye(),{href:a}=n({href:`/branches/${t.slug}`});return t?o("div",{className:"mb-s",children:c(w,{size:"text-l",color:"text-primary-text",children:["Сейчас выбран:",o(kh,{href:a,className:"inline mx-2xs text-primary-main",children:t.name})]})}):null})),ux=d((({foreignOffices:e,branches:t,onClose:n})=>{const i=Tg(t?.default),[s,d]=a(""),m=sl(),u=r((()=>px(m).sort(((e,t)=>e.name.localeCompare(t.name)))),[m]),h=r((()=>((e,t)=>{const n=new Map;for(const a of e){const e=t(a),i=n.get(e)||[];n.set(e,[...i,a])}return n})(u,hx)),[u]),p=l((e=>{i.location=e,n?.()}),[i,n]);return c(or,{className:"pb-20",head:c("div",{children:[o(Fe,{size:"text-h4",color:"text-primary-text",children:"Выберите филиал"}),o(mx,{defaultLocation:t?.default}),o(dx,{onSearch:d,searchTerm:s})]}),onClose:n,children:[s&&s.length>=3?o("div",{children:u.filter((({name:e})=>e&&yf(e.toLowerCase())(s.toLowerCase())>=.8)).map(cx(t?.dataSelect,p))}):o("div",{className:"columns-1 sm:columns-3 md:columns-4 lg:columns-5",children:Array.from(h.entries()).map((g=p,f=t?.dataSelect,([e,t])=>c("div",{className:"break-inside-avoid mb-2xl w-56",children:[o("div",{className:"mb-s",children:o(Fe,{size:"text-h6",children:e})}),t.map(cx(f,g))]},e)))}),sx(e)]});var g,f})),hx=e=>e.name?.charAt(0)??"",px=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()??""}))),gx=d((({className:e="",active:t,flat:n,children:a,data:i,...l})=>{const r=ye(),{href:s,target:c,text:d,onClick:m}=r(l);return o("a",{className:u(fx(t,n),e),href:s,target:c,onClick:m,rel:"noopener noreferrer","aria-label":`Ссылка на ${d}`,...Ne(i),children:o("span",{suppressHydrationWarning:!0,className:xx(t,n),children:d||a})})})),fx=(e=!1,t=!1)=>u("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}),xx=(e=!1,t=!1)=>u("font-sans text-s font-light",e?"text-primary-main":u(t?"text-primary-text":"text-secondary-text","hover:text-primary-main"),"group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),bx=d((({className:e,version:t,...n})=>{const a="transparent"===t?"white":"black",i=Ig(n?.branches?.default),r=xn(Rf,n),s=xn(ux,n),d=l((()=>r.open({})),[r]),m=l((()=>s.open({})),[s]);return c("div",{className:u("flex items-center ml-5 md:max-w-[300px] xl:max-w-full gap-lg",e),role:"navigation",children:[n?.branches?.visible?o(gx,{className:"whitespace-nowrap text-ellipsis overflow-hidden",flat:!0,href:"#",text:i?.name,data:Sh(n?.branches?.dataClick,i?.name??""),onClick:m}):null,n?.officesAtms?.href?o(gx,{className:"whitespace-nowrap",flat:!0,...n.officesAtms}):null,o(Gf,{image:{icon:"LoupeIcon",iconVersion:a},ariaLabel:n?.search?.ariaLabel??"Поиск",onClick:d,data:n?.search?.data})]})})),yx=d((({observerOptions:e,onVisibilityChange:t,children:n,className:a,...i})=>{const r=sm(l((e=>{if(!e.length||!t)return;const n=e[e.length-1];t(n.isIntersecting)}),[t]),e);return o("span",{ref:r,className:a,role:"menuitem",children:o(gx,{...i,children:n})})})),vx=d((({navigationItems:e=[],activeTopItem:t,dropdownMenuAriaLabel:n,version:i,headerData:l,search:d,bgColor:m,logo:u})=>{const[h,p]=a(e.length),g=e.slice(h),f=s(null),x={rootRef:f},b=r((()=>e.map(((e,t)=>e=>{p(e?Nx(t):wx(t))}))),[e]),{dataFooter:y,dataHeader:v,...N}=u??{};return c("div",{className:"flex items-center justify-between",children:[o(ld,{className:"mr-3xl",bgColor:m,logo:N,data:v,showTitle:!1}),o("div",{ref:f,className:"overflow-hidden min-w-[160px] pb-xs mt-xs",role:"menu",children:e.map(((e,n)=>o(yx,{className:h-1<n?"invisible":"",active:e===t,observerOptions:x,onVisibilityChange:b[n],data:e.dataHeader,...e},String(n))))}),g.length?o(qf,{className:"mx-xs",items:g,activeItem:t,ariaLabel:n}):null,o(bx,{version:i,className:"ml-auto",search:d,navigationItems:e,...l})]})})),Nx=e=>t=>Math.max(t,e+1),wx=e=>t=>Math.min(t,e),Cx={"bg-white":"primary",transparent:"transparent"},Sx=["all","header"],kx=Ut((({className:e,bgColor:t="bg-white",logo:n={},version:a=Cx[t],portal:i,header:l={},...r})=>{const{common:s,navigation:d}=Tx(r?.options?.page),{navigationItems:m}=d,{logo:h={}}=s,[,p]=$f(m),{internetBankButton:f}=i||{},x=n.image?.icon||n.image?.src||n?.title?n:h;return o(g,{tag:"header",className:u("pt-m px-20",p?.items?.length?"pb-m":"pb-lg",e),defaultPadding:"",version:a,...r,children:c("div",{className:"container",children:[o("div",{className:"whitespace-nowrap",children:o(vx,{activeTopItem:p,navigationItems:m?.filter(rf(Sx)),version:a,headerData:{...l,...d},search:s.search,bgColor:t,logo:x})}),o("div",{className:u("mt-s h-px bg-main-divider",Ix(a))}),p?.items?.length&&o(ix,{subItems:p?.items?.filter(rf(Sx)),version:a,internetBankButton:f})]})})})),Ix=e=>"transparent"===e?"opacity-30":"",Tx=e=>({navigation:e?.navigation??{},common:e?.common??{}}),Rx=(e=!1)=>e?{}:{padding:"p-0"},Bx={XXL:"gap-6xl",XL:"gap-5xl",L:"gap-3xl",M:"gap-m",S:"gap-xs",XS:"gap-2xs","":""},Px=Ut((({className:e="",padding:t="p-0",gap:n="XS",isInnerPadding:a=!0,version:i="transparent",isTheme:l=!1,isCardBorder:r,...s})=>o(g,{className:u("relative","grid grid-cols-12",Bx[n],e),padding:t,version:i,isTheme:l,...s,children:P({...s,extraProps:{...Rx(a),className:im(r)}})})),{childrenTypes:{exclude:["HorizontalLayout"]}}),Dx=d((e=>{const{className:t,align:n,image:a,...i}=e,l=n?u("flex",iu[n]):"";return o(g,{className:u(l,t),defaultPadding:"p-0",...i,children:o(se,{image:a})})})),_x=(e,t=0)=>{const{itemCount:n,visibleItemCount:i}=e,[r,s]=a(t),o=l((()=>s((e=>Math.min(e+1,n-1)))),[n]),c=l((()=>s((e=>Math.max(e-1,0)))),[n]),d=i?n>i&&r<n-i:r<n-1,m=r>0;return[r,{inc:o,dec:c,canInc:d,canDec:m,isScrollAvailable:m||d}]},Ex=({className:e,btnClass:t,canDec:n,canInc:a,dec:i,inc:l})=>n||a?c("div",{children:[n?o(Sm,{className:u("absolute z-40",t[0],e),onClick:i}):null,a?o(km,{className:u("absolute z-40",t[1],e),onClick:l}):null]}):null,Ax=d((({className:e="",cards:t=[],button:n})=>{const[i,r]=a(0),s=l((e=>r(e)),[]),d=t.length,[m,u]=_x({itemCount:d,visibleItemCount:2}),{canDec:h,canInc:p}=u,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?Mx({activeIndex:m,cards:t,selectedCardIndex:i,onClick:s}):null,Ex({...u,btnClass:["left-12","right-12"],className:"top-16"}),h?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(Ie,{className:"w-60 text-center",version:"primary",...n,href:g})]})}));function Mx({activeIndex:e,cards:t,selectedCardIndex:n,onClick:a}){const i=460*e,l=t.length>2?"justify-start":"justify-center";return o("div",{style:{transform:`translateX(-${i}px)`},className:"duration-1000 px-6xl",children:o("div",{className:`w-full flex flex-nowrap gap-s pb-6xl ${l}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:n,onClick:a}){return c("button",{type:"button",onClick:a,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(se,{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?Ox("страховая сумма",e.sum):null,e?.fee?Ox("страховой взнос",e.fee):null]}),zx(n)]},String(t))}({slide:e,i:t,isActive:Boolean(t===n),onClick:()=>a(t)})))})})}function Ox(e,t){return c("div",{className:"flex flex-col text-left whitespace-pre",children:[c(Fe,{size:"text-h6",children:[Je(2)(t)," ₽"]}),o("div",{className:"mt-2xs",children:o(Fe,{size:"text-l",color:"text-secondary-text",children:e})})]})}function zx(e){return e?o(se,{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 Vx=d((({className:e="",title:t,insuranceTabs:n=[],button:i,...r})=>{const[s,d]=a(0),m=l((e=>d(e)),[]);return c(g,{className:u("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:a}){return o("button",{type:"button",onClick:a,"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:Fx({insuranceTabs:n,button:i})})]})})),Fx=({insuranceTabs:e,button:t})=>{const n=e?.map((e=>e.cards));return n?.length?n.map(((e,n)=>o(Ax,{button:t,cards:e},String(n)))):null};const Lx={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},$x={XS:"h-10",S:"h-16",M:"h-24",L:"h-32",XL:"h-52"},jx=d((e=>{const{className:t="",__html:n,isDotted:a,investmentZeroColumn:i,investmentColumns:l,...r}=e,s=l?[...l]:[];return i&&s.unshift(i),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:[Am(o("div",{className:"w-px h-4 bg-gray"}))(s.map(Ux)),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(Hx)})]}):null,n?o("div",{className:"max-w-2xl font-light text-base",children:o(ze,{__html:n,isDotted:a,itemSize:"list-s"})}):null]})})})),Ux=(e,t,n)=>{const a=1===t,i=t===n.length-1,l=e.cells?.reverse()||[];return o("div",{className:`${qx(a,i,e.cells)}`,children:l.length?o("div",{className:"w-full "+(i?"border-4 border-green-more-dark p-1.5 min-w-72":""),children:l.map(Wx)}):null},`column_${t}`)},qx=(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(" "),Wx=(e,t)=>{const n=e.cellSize||"XS",a=e.cellColor||"green";return e.text?o("div",{className:`flex-1 flex items-center justify-center relative py-xs ${$x[n]} ${Lx[a]} ${"XS"===n?"px-s":"px-5xl"}`,children:o(Fe,{align:"text-center",children:e.text})},`cell_${t}`):null},Hx=(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,Yx=["байт","Кб","Мб","Гб","Тб","Пб"],Gx=d((({icon:e,text:t,href:n,target:a,fileFormat:i,data:l,fileSize:r})=>{const s=r&&i?",":"",d=r??"",m=i?String(i):"";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:a,...Ne(l),children:[e,t?c(Fe,{size:"text-l",font:"font-light",children:[t," ",Kx(d,m),o(Fe,{color:"text-secondary-text",children:n&&`${d+s+m}`})]}):null]})})),Kx=(e,t)=>e||t?o("span",{children:", "}):"",Xx=(e,t)=>(n,a)=>{const i=Y(e)("Attachment"===n?.docType?n?.attachment?.src:n?.href),l="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))} ${Yx[n]}`})(n?.attachment?.fileSize||0):n?.fileSize,r="Attachment"===n?.docType?Zx(i):n?.fileFormat;return c("div",{role:"listitem",children:[o(Gx,{text:n?.text,target:n?.target,href:i,fileFormat:r,fileSize:l,icon:Jx(t),data:n?.data}),o(ze,{__html:n?.__html})]},String(a))},Jx=e=>e?o(se,{className:"min-w-6 min-h-6",image:e,width:"24",height:"24"}):null,Zx=e=>{if(!e)return"";const t=e.lastIndexOf("."),n=new RegExp(/\/(.*)/),a=-1!==t?e.substring(t+1):"";return a.includes("/")?a.replace(n,""):a},Qx=d((({href:e,__html:t,target:n,onClose:a})=>c(or,{className:"my-6xl min-h-fit w-fit mx-auto",onClose:a,children:[t?o(ze,{__html:t}):null,c("div",{className:"flex flex-row mx-auto w-fit gap-lg py-lg",children:[o(yr,{href:e,target:n,version:"primary",ariaLabel:"Ссылка на согласие",onClick:a,children:"Я согласен"}),o(rr,{type:"button",version:"secondary",onClick:a,children:"Я не согласен"})]}),o("div",{children:"Нажимая кнопку «Я СОГЛАСЕН» ниже Вы принимаете данные условия. Распространение или раскрытие любой части данного Заключения или любой информации, или рекомендации в нем запрещено.»"})]}))),eb=d((({text:e,href:t,target:n,__html:a,icon:i})=>{const{open:r}=xn(Qx),s=l((()=>r({__html:a,href:t,target:n})),[a,t,n]);return e?c("button",{className:"flex gap-s text-primary-text no-underline hover:text-primary-main",onClick:s,children:[Jx(i),o(Fe,{font:"font-light",children:e})]}):null})),tb={double:"sm:flex-wrap sm:flex-row",single:"sm:flex-col"},nb=Ut((({className:e="",title:t,description:n,align:a="text-center",documents:i,icon:l={icon:"DocIcon"},columnsMode:r="double",...s})=>{const d=D();return c(g,{className:u("space-y-lg",e),defaultPadding:"p-6xl",...s,children:[o(S,{title:t,description:n,align:a,headlineVersion:"M",as:"h2",isEmbedded:!0}),i?.length?o("div",{className:u("grid gap-xl","double"===r?"@md:grid-cols-2":"grid-cols-1",tb[r]),role:"list",children:i.map(ab(d,l))}):null]})})),ab=(e,t)=>(n,a)=>{const i=n?.docType;return""===i?null:"reportSource"in n&&n?.reportSource?.__html?ib(t)(n,a):Xx(e,t)(n,a)},ib=e=>(t,n)=>{const a={text:t.text,target:t.target,__html:t.reportSource?.__html};return t.reportSource?.__html&&t.text?c("div",{role:"listitem",children:[o(eb,{...a,icon:e,href:lb(t)?t?.href:t?.attachment?.src}),o(ze,{__html:t?.__html})]},String(n)):null},lb=e=>"href"in e,rb=Ut((({className:e,padding:t,align:n="text-left",buttons:a=[],description:i,image:l,__html:r,headingType:s,qr:d,additionalDescription:m="",title:h="Мобильное приложение",version:p="primary",...f})=>{const x="secondary"===p?"p-m min-w-32":"min-w-24",b=l?.src?o(se,{className:"hidden lg:block",image:l}):null;return o(g,{className:u("min-h-80",e),padding:"p-0",version:p,...f,children:c(Ee,{className:"h-full",padding:t,defaultPadding:"p-6xl",title:o(N,{headingType:s,title:h,className:u("whitespace-pre-wrap",n)}),rightImage:b,buttons:Ye(a,{className:"flex-wrap"}),children:[i?o(Fe,{size:"text-xl","font-weight":"font-light",children:i}):null,c("div",{className:u("gap-m","flex flex-1 flex-col","flex-col items-start @xl:flex-row @xl:items-center"),children:[r?o(ze,{__html:r,itemSize:"list-m"}):null,o(Fe,{size:"text-m","font-weight":"font-light",color:"text-secondary-text",children:m}),d?.src?o("div",{className:u("flex justify-center bg-white rounded-md @xl:-order-1",x),children:o(se,{className:"w-fit",image:d})}):null,l?.src?o(se,{className:"lg:hidden",image:l}):null]})]})})})),sb=(e,t)=>e&&"underlined"!==t?"primary":"secondary",ob=(e=[],t={})=>e.filter((({content:e={}})=>jm(t,e))).length,cb=(e,t)=>e===t;const db=(e=>(t,n)=>t===n||Boolean(t&&n&&Object.keys(t).length===Object.keys(n).length&&Object.entries(t).every((([t,a])=>e(a,n[t])))))(function(...e){return(t,n)=>e.some((e=>e(t,n)))}(cb,((e=cb)=>(t,n)=>t===n||Boolean(t&&n&&t.length===n.length&&t.every(((t,a)=>e(t,n[a])))))())),mb=[],ub={},hb={primary:"bg-white/30",secondary:"bg-main-divider"},pb={primary:{desktop:"text-white",mobile:"text-primary-text"},secondary:{desktop:"text-secondary-text",mobile:"text-secondary-text"}},gb=d((({count:e,version:t="secondary"})=>{const n=Pe(),a=n?"bg-main-divider":hb[t],i=pb[t][n?"mobile":"desktop"];return o("div",{className:u("w-6 h-6 rounded-full flex items-center justify-center",a),role:"status","aria-label":`Количество ${e} доступных программ и сервисов`,children:o(Fe,{size:"text-xs",color:i,children:e})})})),fb=({text:e,description:t,icon:n,isActive:a,type:i})=>{const l=(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"}))(a);return c("div",{className:u("cursor-pointer text-left border-b-0 flex gap-2xs"),"aria-label":e,"aria-labelledby":`${e}-label`,children:[n?o(se,{className:u("h-6 w-6 min-w-6 min-h-6",l.icon),image:{...n,iconVersion:n?.iconVersion??l.iconVersion},width:"24",height:"24",alt:e}):null,c("div",{className:"border-0",children:[o("div",{className:"animated"===i?l.text:l.oldText,children:e}),o("div",{className:"animated"===i?l.desc:l.oldDesc,children:t})]})]})},xb={default:"px-xs",underlined:"px-m",animated:"px-m border border-gray cursor-pointer text-left border-b-0 mt-auto flex gap-2xs"},bb={default:"text-black sm:text-white",underlined:"text-primary-main border-b-2",animated:"text-white sm:text-white"},yb={default:"bg-white",underlined:"bg-white",animated:"p-1 ease-in duration-300 bg-white text-primary-text h-[70px] w-96"},vb={default:"bg-white sm:bg-primary-main",underlined:"bg-white",animated:"p-2 border-none bg-primary-main text-white h-20 w-96"},Nb=d((({tag:e="div",item:t={},isActive:n=!1,type:a="default",onClick:i})=>{const l=e,{text:r,description:s,icon:d,count:m,tabName:h,...p}=t;return o(l,{className:u("h-12","block flex-1","cursor-pointer",xb[a],n?vb[a]:yb[a]),"aria-label":"Список табов",onClick:i,...p,children:c("div",{className:u("h-full","flex justify-center items-center","text-center whitespace-nowrap",n?bb[a]:"text-secondary-text hover:text-primary-main"),role:"tab","aria-label":`Таб ${r}`,children:[fb({text:r,description:s,icon:d,isActive:n,type:a}),Number.isInteger(m)?o("div",{className:"ml-xs",role:"status","aria-label":`Количество программ и сервисов ${m}`,children:o(gb,{count:m,version:sb(n,a)})}):null]})})})),wb=d((e=>o(e?.item?.href?Cb:Sb,{...e}))),Cb=d((e=>{const t=ye(),n=l((()=>{e.onClick&&e.onClick(e.item||{})}),[e.onClick,e.item]),{onClick:a,...i}=t({...e.item,onClick:n});return o(Nb,{...e,tag:"a",item:i,onClick:a})})),Sb=d((({item:e={},onClick:t,...n})=>{const a=l((()=>{t&&t(e)}),[t,e]);return o(Nb,{item:e,onClick:a,...n})})),kb=(e,t,n)=>(a,i)=>o(wb,{isActive:a===e,onClick:t,type:n,item:a},String(i)),Ib=d((({className:e,tabsType:t="default",items:n=[],activeItem:a,onChange:i})=>o("div",{className:u("flex gap-x-2xs overflow-x-auto no-scrollbar",e),role:"tabpanel","aria-label":"Панель управления табами",children:n.map(kb(a,i,t))}))),Tb={categories:[],extraOptions:[],propertyType:[],stage:[]},Rb=Ut((({className:e,hotFilters:t,filtrationSchema:n={},resetButton:a,...i})=>{const[s,{blocksToRender:d},{field:m,reset:h,update:p}]=qm(Tb,{block:i.block,page:i.options?.page}),f=l(((e=Tb)=>p(e)),[]),x=(({hotFilters:e=mb,filtrationState:t=ub,blocks:n=mb,onFiltrationStateChange:a})=>{const i=r((()=>Math.max(0,e.findIndex((e=>db(e.filter,t))))),[e,t]),s=r((()=>e.map((t=>({text:t.text,count:ob(n,t.filter),version:sb(t===e[i])})))),[e,n,i]),o=l((t=>{a(e[s.indexOf(t)].filter)}),[e,s]);return{activeItem:s[i],items:s,onChange:o}})({hotFilters:t,filtrationState:s,blocks:i.block?.blocks,onFiltrationStateChange:f});return c(g,{className:u("space-y-2xs",e),defaultPadding:"p-0",version:"transparent",...i,children:[o(Ib,{...x}),o(Om,{filtrationSchema:n,resetButton:a,field:m,reset:h}),o(_m,{blocksToRender:d,...i})]})}),{childrenTypes:["ProductBlock"],childSchema:e=>e?.filtrationSchema||{}}),Bb="flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl",Pb=d((({filters:e,field:{field:t,reset:n},onlyOffice:a,labels:i})=>{const l=a?5:6,r=(e||[]).map((e=>o(ni,{text:i[e],...t(e)},e))),[s,d]=l>0?[r.slice(0,l),r.slice(l)]:[r,[]],[m,{toggle:u}]=on(!1);return o("div",{children:e?.length?o("div",{children:c(is,{children:[c("div",{children:[o("div",{className:Bb,children:s}),o(ls,{className:Bb,isUnfolded:m,children:d})]}),c("div",{className:"flex space-x-lg",children:[a?o(as,{label:m?"Меньше фильтров":"Больше фильтров",isUnfolded:m,embedded:!0,short:!0,onClick:u}):null,c(rr,{embedded:!0,onClick:n,children:[o(ts,{children:"Очистить фильтр"}),o(J,{name:"CloseIcon",size:"small"})]})]})]})}):null})})),Db=(e,t,n)=>{const a=sb("all"===t),i=sb("business"===t),l=(e,t,a)=>{const i=e.currentTarget===e.target&&"business"===t?r(a):a;return n(t),i},r=e=>e.filter((e=>e.workSchedule&&e.workSchedule.businessScheduleVisibleTag&&!e.workSchedule.businessScheduleDescription));return c("div",{className:"flex gap-lg flex-col sm:flex-row pb-lg",children:[o(rr,{"data-id":"all",onClick:t=>l(t,"all",e),version:a,children:"Для физических лиц"}),o(rr,{"data-id":"business",onClick:t=>l(t,"business",e),version:i,children:"Для юридических лиц"})]})},_b=({__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(ze,{__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(se,{image:e.image}):null,e?.text?o(Fe,{size:"text-m",font:"font-light",children:e.text}):null]},String(t))))}):null]}):null,Eb=(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(Fe,{size:"text-h2",color:"text-secondary-text",children:o("span",{suppressHydrationWarning:!0,children:` (${t})`})}):null]})}),Ab=()=>{},Mb=e=>"all"===e?"block":"hidden",Ob=d((({className:e,data:t=[],isLoad:n,remoteWorkplaces:i=[],renderCard:l=Ab,renderRemoteWorkplaceCard:r=Ab,getBalloon:s=Ab,getBalloonRemoteWorkplaces:d=Ab,descriptionData:m,title:h})=>{const p=h?.includes("Офис"),[g,{field:f,reset:x}]=gn(Rs),{filteredItems:b,points:y,filteredRemoteWorkplaces:v,lengthItems:N}=Es({data:t,remoteWorkplaces:i,filtrationState:g,getBalloon:s,getBalloonRemoteWorkplaces:d}),[w,C]=a("all");return c("div",{className:u("space-y-1",e),children:[c("div",{className:"bg-white",children:[c("div",{className:"p-3xl pb-0",children:[Eb(h,N),m?_b(m):null,p&&Db(t,w,C),o("div",{className:u("pb-3xl",Mb(w)),children:o(Pb,{filters:zb([...t,...i]),field:{field:f,reset:x},onlyOffice:p,labels:Bs})})]}),o("div",{className:"h-[600px]",children:o(zs,{children:o(jr,{points:y,isLoad:n,className:"h-full"})})})]}),c(zs,{children:[b.map(l),v.map(r)]})]})})),zb=e=>Object.keys(Rs).filter((t=>e.filter((e=>Ps[t](e))).length)),Vb=e=>e?`${e.charAt(0).toUpperCase()}${e.slice(1)}`:"",Fb=({location:e,address:t,billAcceptorType:n,terminalType:a,billAcceptorEnable:i,atmCode:l="",atmAccess:r="",workTime:s},d)=>{const m=[{label:"Устройство",value:Vb(a)},{label:"Модуль приема наличных",value:i?"Да":"Нет"},{label:"Прием наличных пачкой",value:"банкомат принимает пачками"===n?"Да":"Нет"},{label:"Доступность",value:["внешняя установка","территория банка"].includes(r)?"Общедоступный":""},{label:"Регистрационный номер",value:l}];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(Fe,{size:"text-h4",children:Vb(e)}),t?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(J,{name:"GeolocationIcon",width:"24",height:"24"}),o(Fe,{size:"text-l",children:t})]}):null]}),o("div",{className:"whitespace-nowrap",children:o(xs,{color:"green",children:Vb(s)})})]}),o(rs,{children:o(es,{className:"flex-wrap",children:m?.map(((e,t)=>o(Xr,{...e},String(t))))})})]},String(d))},Lb=({address:e="",terminalType:t,atmCode:n=""})=>({header:`${Vb(t)} №${n}`,body:e.toUpperCase()}),$b=[];const jb=async e=>{const t=await Mt(e,{method:"GET"});return Array.isArray(t)?t:$b},Ub={terminalTypeAtms:!0,terminalTypeTerm:!1,workAllTime:!1,billAcceptorEnable:!1,locationDisabledPeople:!1,designDisabledPeople:!1},qb={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)},Wb=d((({descriptionData:e,className:t})=>{const n=Ig(),a=n?.code??"000",{data:i,isLoad:l}=function(e){const{data:t,error:n}=ta(`${Kt}/atms?regionCode=${e}`,jb);return{data:t||$b,isLoad:!t&&!n}}(a);return o(Ob,{className:t,filterItems:Hb,data:i,isLoad:l,initFilterState:Ub,renderCard:Fb,getBalloon:Lb,title:`Банкоматы филиала ${n?.name}`,descriptionData:e})})),Hb=(e,t)=>{const n=Object.keys(t).filter((e=>t[e])),a=n.filter((e=>e.startsWith("terminalType"))),i=n.filter((e=>!a.includes(e)));return e.filter((e=>{const t=i.every((t=>qb[t](e))),n=!a.length||a.some((t=>qb[t](e)));return t&&n}))},Yb=({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(Fe,{size:"text-h4",children:"Удаленное рабочее место"}),e?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(J,{name:"GeolocationIcon",width:"24",height:"24"}),o(Fe,{size:"text-l",children:e})]}):null]})}),o(rs,{children:Gb(t)})]},String(n)):null,Gb=e=>c("div",{children:[c(es,{className:"flex",children:[o(Xr,{label:"Операции для физических лиц",children:o(Fe,{children:"Оформление и обслуживание кредитов, счетов, вкладов"})}),o(Xr,{label:"Операции для физических лиц",children:o(Fe,{children:"Оформление и обслуживание банковских карт"})}),o(Xr,{label:"Операции для физических лиц",children:o(Fe,{children:"Инвестиционное и накопительное страхование"})}),o(Xr,{label:"Операции для физических лиц",children:o(Fe,{children:"Безналичные операции в рублях, переводы без открытия счёта"})})]}),o("hr",{className:"text-main-divider pb-xl"}),o(Xr,{label:"Режим работы",className:"max-w-none",children:o(Fe,{children:e})})]}),Kb=({address:e="",workScheduleDescription:t})=>({header:"Удаленное рабочее место",body:`${e} ${t}`}),Xb={branches:[],remoteWorkplaces:[]};const Jb=async e=>await Mt(e,{method:"GET"})||Xb,Zb=d((({className:e})=>{const t=Ig(),n=t?.code??"000",{data:a,isLoad:i}=function(e="000"){const{data:t,error:n}=ta(`${Kt}/branchesAndRemoteWorkplaces?regionCode=${encodeURIComponent(e)}`,Jb);return{data:t||Xb,isLoad:!t&&!n}}(n);return o(Ob,{className:e,data:a?.branches,isLoad:i,remoteWorkplaces:a?.remoteWorkplaces,renderCard:ks,renderRemoteWorkplaceCard:Yb,getBalloon:Ts,getBalloonRemoteWorkplaces:Kb,title:`Офисы филиала ${t?.name}`})})),Qb=d((({data:e,className:t,...n})=>{const a=e?.dataType??"offices";return o(g,{version:"transparent",className:u(t),defaultPadding:"p-0",...n,children:"offices"===a?o(Zb,{}):o(Wb,{descriptionData:e})})})),ey=d((({className:e,title:t,description:n="Блок в разработке...",...a})=>c(g,{className:u("box-border",e),...a,children:[o(S,{className:"max-w-[600px]",title:t,description:n,headlineVersion:"L",align:"text-left",isEmbedded:!0}),o(f,{})]}))),ty="hidden sm:flex absolute z-40 top-10",ny=Ut((({className:e="",padding:t,slides:n=[],...i})=>{const[l,r]=a(0),[s,d]=ym({itemCount:n?.length||0});return c(g,{className:u("box-border overflow-hidden",e),defaultPadding:"pt-6xl",padding:t,...i,children:[o("div",{className:"flex duration-1000",style:{transform:`translateX(-${100*l}%)`},role:"list",children:n.map((({productBlock:e},t)=>o("div",{className:"box-border grow-0 shrink-0 basis-full",role:"listitem",children:o(at,{className:"pl-6xl h-full",headlineVersion:"M",isFullWidthTitle:!1,...e,...i})},String(t))))}),c("div",{className:"relative pr-xs mt-m -mb-m flex gap-xs box-border",children:[o(mm,{containerRef:s,snapAlign:"snap-start",onVisibleIndicesChange:d.handleVisibleIndicesChange,itemClassName:"h-40 flex items-stretch w-screen",gap:8,children:n.map(ay({activeSlideIndex:l,onClick:r}))}),d.canScrollLeft?o(Sm,{className:u("left-6",ty),onClick:d.scrollLeft}):null,d.canScrollRight?o(km,{className:u("right-6",ty),onClick:d.scrollRight}):null]})]})})),ay=({activeSlideIndex:e,onClick:t})=>({nav:n},a)=>{const i=a===e,l=i?"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=i?"text-primary-text text-h6 py-xs":"text-l pb-2xs text-secondary-text group-data-secondary:text-white",s=i?"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(a),"aria-label":n?.title,className:u("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",l),children:[o("div",{className:r,children:n?.title}),o("div",{className:s,children:n?.description})]},String(a))},iy=d((({address:e,email:t,telephone:n,button:a,className:i="",__html:l,richVersion:r,icon:s,title:d,version:m="primary",...h})=>c(g,{className:u("box-border text-left space-y-s",i),version:m,...h,children:[c("div",{className:"w-full flex justify-between flex-row-reverse",children:[He(s)?o("div",{className:"w-10 h-7 sm:w-24 sm:h-16",children:o(se,{image:s})}):null,d?o(N,{headingType:"h3",as:"h3",title:d}):null]}),c("div",{className:"w-full space-y-m",children:[l?ly({__html:l,richVersion:r}):null,ry({label:"Адрес",data:e,iconName:"GeolocationIcon"}),ry({label:"Телефон(факс)",data:n,iconName:"PhoneIcon"}),ry({label:"E-mail",data:t,iconName:"MailIcon",dataColor:"text-primary-main"}),a?.text?Ye([a]):null]})]}))),ly=e=>o("div",{className:"border-b border-main-divider pb-lg",children:o(ze,{...e,itemSize:"list-s"})}),ry=({label:e,data:t,iconName:n,dataColor:a=""})=>t?c("div",{className:"flex gap-s",children:[o(J,{iconVersion:"black",name:n,width:"24",height:"24"}),c("div",{className:"flex flex-col gap-2xs",children:[o(Fe,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e}),o(Fe,{size:"text-xl",color:a,children:t})]})]}):null,sy=d((e=>{const{__html:t,richVersion:n="",...a}=e;return o(g,{defaultPadding:"p-0",...a,children:o(ze,{__html:t,richVersion:n})})})),oy=(e=!1)=>e?"flex flex-wrap group-last:last:pb-0":"grid grid-cols-12 [&>*]:pb-m",cy=Ut((({className:e="",isExpanded:t,isFoldButtonOnTop:n=!0,foldButtonVersion:a="default",label:i,version:l,role:r,...s})=>{const d=Pe(),[m,{toggle:h}]=on(t),p=o(ls,{className:u("gap-lg",oy(d)),isUnfolded:m,children:P({...s,extraProps:{className:"w-full",padding:"p-0"}})}),f="accordion"===a,x=o(as,{className:u(f?"text-h6 my-lg":"text-h4"),label:i,isUnfolded:m,embedded:f,onClick:h});return o(g,{className:u("w-full border-0 border-b border-solid border-main-divider last:border-b-0",e),defaultPadding:"p-0",tag:"div",version:"transparent",role:r,...s,children:c(is,{children:[n?x:p,n?p:x]})})}),{childrenTypes:{exclude:["RollupItem"]}}),dy=d((({name:e,text:t,value:n,checked:a,onChange:i,className:l})=>o("div",{className:l,children:c("label",{className:"font-sans flex gap-s items-center relative cursor-pointer",children:[o("input",{className:u(wn.split(" ").filter((e=>"rounded"!==e)),ei,"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:a,onChange:e=>i?.(e.target.value),role:"radio"}),t?o(Fe,{color:"text-primary-text",children:t}):null]})}))),my=d((({className:e=""})=>{const[t,n]=a("option2"),i=l((e=>n(e)),[]);return c("div",{className:u("order-4",e),role:"radiogroup",children:[o(dy,{className:"mb-xs",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===t,onChange:i}),o(dy,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===t,onChange:i})]})})),uy=d((({data:e,fieldLabel:t,fieldValue:n,selected:a,placeholder:i="",setSelected:l,label:r})=>{const s=e.filter(Boolean).map((e=>({key:e?.[n||t],text:e?.[t]}))),c=s.find((e=>e.key===a));return o($n,{options:s,label:r,placeholder:i||a,onChange:e=>l(e.key),value:c})})),hy=d((({regions:e=[],selectedRegion:t,onSelectedRegion:n,branches:a=[],selectedBranch:i,onSelectedBranch:l})=>c("div",{className:"flex flex-col @xl:flex-row gap-m order-1",children:[o("div",{className:"flex-1 min-w-0",children:o(uy,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:n,label:"Регион"})}),o("div",{className:"flex-1 min-w-0",children:o(uy,{data:a,fieldValue:"branchCode",fieldLabel:"address",selected:i,setSelected:l,label:"Отделение",placeholder:"Выберите отделение"})})]}))),py=["От 1 дня","До 365 дней"],gy=d((({days:e,setDays:t})=>c("div",{className:"order-1",children:[o(Fe,{size:"text-m",font:"font-light",children:"Срок аренды"}),o(ga,{min:1,max:365,value:e,items:py,onChange:t})]}))),fy=d((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:n,safeBoxCases:a=[],selectedBoxSize:i,onSelectedBoxSize:l})=>c("div",{className:"flex flex-col @xl:flex-row gap-m order-1",children:[o("div",{className:"flex-1 min-w-0",children:o(uy,{data:e,fieldLabel:"volume",selected:t,setSelected:n,label:"Размер",placeholder:"Выберите размер"})}),o("div",{className:"flex-1 min-w-0",children:o(uy,{data:a,fieldLabel:"safeBoxCasesSize",selected:i,setSelected:l,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),xy=d((({regions:e,selectedRegion:t,branches:n,selectedBranch:a,days:i,selectedCaseVolume:l,selectedBoxSize:r,safeBoxCases:s,caseVolumes:d,onChange:m,onClick:u})=>c("div",{className:"contents @xl:block flex-1 space-y-xl",children:[o(hy,{regions:e,selectedRegion:t,onSelectedRegion:e=>m({selectedRegion:e}),branches:n,selectedBranch:a,onSelectedBranch:by(m)}),o(gy,{days:i,setDays:e=>m({days:e})}),o(fy,{caseVolumes:d,selectedCaseVolume:l,onSelectedCaseVolume:yy(m),safeBoxCases:s,selectedBoxSize:r,onSelectedBoxSize:e=>m({selectedBoxSize:e})}),o("div",{className:"order-4",children:o(Fe,{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(my,{}),o(rr,{className:"order-6",version:"primary",onClick:u,children:"Офисы на карте"})]})]}))),by=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},yy=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},vy=d((({days:e,tariffs:t=[]})=>{const n=wy(e,t),a="На рисунке изображена пачка листов\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:[Ny("Аренда за",e),Ny("Цена",n+" ₽")]}),o("div",{className:"@xl:hidden order-3 mb-xs",children:o(w,{size:"text-s",font:"font-light",color:"text-secondary-text",children:a})}),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(J,{className:"@xl:h-60",name:"PackA4Icon"}),o("div",{className:"hidden @xl:inline opacity-80 whitespace-pre-line",children:o(w,{size:"text-s",font:"font-light",color:"text-white",children:a})})]})]})})),Ny=(e,t)=>c("div",{className:"flex justify-between items-center gap-y-xs @xl:flex-col @xl:items-start",children:[o(Fe,{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})]}),wy=(e,t)=>{const n=Cy(e);return e*(t?.find((e=>e.tariffType===String(n)))?.tariffValue||0)},Cy=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},Sy=(e,t)=>e.find((e=>e.branchCode===t)),ky=d((e=>{const{regions:t,data:n,branches:a,onChange:l,onClick:r}=e;i((()=>{l({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[n.selectedRegion,l]);const s=Sy(a,n.selectedBranch),d=Iy(s?.safeBoxCaseVolumes),m=Ty(s?.safeBoxCaseVolumes,n.selectedCaseVolume)?.safeBoxCases,u=Ry(m,n.selectedBoxSize);return c("div",{className:"flex flex-col @4xl:flex-row gap-4xl align-top",children:[o(xy,{...n,regions:t,onClick:r,branches:a,caseVolumes:d,safeBoxCases:m,onChange:l}),o(vy,{days:n.days,tariffs:u})]})})),Iy=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],Ty=(e,t)=>e?.find((e=>e.volume===t)),Ry=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,By=`${Kt}/safeboxes`,Py=[];const Dy=async e=>await Mt(e,{method:"GET"})||Py,_y=d((({title:e,footnote:t,className:n="",...i})=>{const[r,s]=a(!1),d=l((()=>s((e=>!e))),[]),[m,u]=a({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),h=sl(),p=Ey(m.selectedRegion,h),f=function(e){const{data:t}=ta(e?`${By}?regionCode=${e}`:null,Dy);return t||Py}(p),x=l((e=>u((t=>({...t,...e})))),[u]),b=(y=Sy(f,m.selectedBranch)||f,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:"",...i,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(ky,{regions:h,branches:f,data:{...m,selectedRegion:p},onClick:d,onChange:x}),t?o(w,{size:"text-s",font:"font-light",children:t}):null]}),b.length&&r?o(jr,{points:b,className:"h-[640px]"}):null]})})),Ey=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,Ay=e=>e<4?"w-72":"w-52",My={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"},Oy=d((({buttons:e,className:t="",description:n,showLines:a=!0,steps:i=[],stepVersion:l="gray",title:r,version:s="primary",...d})=>{const m=i.length>3,h=My,p=(e=>e?"":"opacity-0")(a),f=Pe();return c(g,{className:u("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:Km(f)}),i?.length?c("div",{className:"box-border space-y-lg flex flex-col justify-center",children:[o("div",{className:u("flex items-center",m?"px-16":"px-24"),children:Am(o("div",{className:u("h-0.5 w-full bg-secondary-light flex-1",p)}))(i.map(zy(h,m,l)))}),o("div",{className:u("flex justify-between",m?"gap-x-s":"gap-x-20"),children:i.map((x={styleMap:h,version:s},(e,t,n)=>{const{styleMap:a,version:i}=x,{label:l,description:r,button:s,isDotted:d}=e;return c("div",{className:u("relative flex flex-col items-center text-center justify-between whitespace-pre-line overflow-hidden space-y-3xl",Ay(n.length)),children:[c("div",{className:"space-y-xs",children:[l?o(Fe,{size:"text-h6",align:"text-center",children:l}):null,c("div",{className:"flex flex-col items-center gap-3xs",children:[r?o("div",{className:a.description,children:r}):null,o(ze,{__html:e.__html,itemSize:"list-s",isDotted:d})]})]}),s?.text?o(Ie,{className:"box-border py-s w-full mt-auto",version:i,...s,children:s?.text}):null]},String(t))}))})]}):null,Ye(e)]});var x})),zy=(e,t,n)=>({icon:a},i)=>{const l="secondary"===n?"white":"color";return o(g,{defaultPadding:"",className:`${Vy(t)} flex justify-center items-center text-center rounded-full box-border z-10`,version:n,children:He(a)?o(se,{image:{...a,iconVersion:a?.iconVersion||l},width:"48",height:"48"}):o("span",{className:u("text-h4","transparent"===n?e.iconText:(r=n,"secondary"===r?"group-data-primary:text-white":"text-secondary-text")),children:i+1})},String(i));var r},Vy=e=>e?"h-16 w-16":"h-24 w-24",Fy=d((()=>o("div",{className:"hidden",role:"none"}))),Ly="hidden sm:flex absolute z-40",$y={default:{item:"flex-1",gap:0,buttonTop:"top-0"},animated:{item:"flex",gap:8,buttonTop:"top-5"},underlined:{item:"",gap:0,buttonTop:"top-0"}},jy=d((({className:e,items:t=[],activeItem:n,onChange:a,tabsType:l="default"})=>{const[r,s]=ym({itemCount:t?.length||0});return i((()=>Uy(r.current,t,n)),[]),c("div",{className:u("relative overflow-x-auto no-scrollbar",e),children:[o(mm,{containerRef:r,snapAlign:"snap-start",onVisibleIndicesChange:s.handleVisibleIndicesChange,itemClassName:$y[l].item,gap:$y[l].gap,children:t.map(kb(n,a,l))}),s.canScrollLeft?o(Sm,{className:u("left-6",Ly,$y[l].buttonTop),onClick:s.scrollLeft}):null,s.canScrollRight?o(km,{className:u("right-6",Ly,$y[l].buttonTop),onClick:s.scrollRight}):null]})})),Uy=(e,t,n)=>{const a=t.findIndex((e=>e===n));e&&a>0&&e.scrollTo({left:e?.children[a]?.offsetLeft,behavior:"smooth"})},qy={default:{wrapper:"",component:""},animated:{wrapper:"border-b-8 border-primary-main bg-white",component:"m-auto"},underlined:{wrapper:"flex",component:"m-auto"}},Wy=({className:e="",tabsType:t="animated",...n})=>t?o("div",{className:u(qy[t].wrapper,e),children:o(jy,{className:qy[t].component,tabsType:t,...n})}):null,Hy=Ut((({className:e="",tabs:t=[],block:n,tabsType:r,showCounter:s=!1,isSticky:d=!1,...m})=>{const h=Yy(n??{}),p=D(),f=t.every((e=>"link"===e?.type)),x=s?t.map((e=>({...e,count:"group"===e?.type?n?.slots?.[e?.tabName??""]?.length??0:0}))):t,{isReady:b}=p,[y,v]=a(Xy(x,((e="")=>{const t=globalThis?.location?.href;return t?new URL(t).searchParams.get(e):null})(h))),N=x[y],w=x.findIndex((e=>Boolean(e.selected)));i((()=>{const e=p.query[h]?x.findIndex(((e,t)=>"group"===e.type&&(e?.tabName??String(t))===p.query[h])):w;v(-1===e?0:e)}),[b,w,h]);const C=Ky(x[y],y),S=l((e=>{const t=x.indexOf(e),n=x[t];v(t),"group"===n.type&&((e,t)=>{const n=new URLSearchParams(p.query);e.text?n.set(h,e?.tabName??String(t)):n.delete(h),p.replace(`${p.pathname}?${n}`,"",{scroll:!1})})(e,t)}),[x]);return c(g,{className:u({"sticky top-1 z-20":d&&f},e),defaultPadding:"p-0",block:n,...m,children:[Wy({className:u({"pb-1":n?.slots&&"default"===r,"sticky top-1 z-20":d&&!f}),items:Gy(t,x),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])=>B(t,{...m?.options,slotName:C,parent:n,extraProps:{className:e===C?"":"hidden"}})))})]})}),{slots:({tabs:e})=>e?.map(Ky)?.filter(Boolean)||[]}),Yy=({__id:e,anchor:t})=>t??e??"tabs",Gy=(e,t)=>t?.length?t:e,Ky=(e,t)=>"group"===e?.type?e?.tabName||`Слот №${t+1}`:"",Xy=(e,t)=>t?Number(t):e.reduce(((e,t,n)=>t.selected?n:e),0),Jy={comparison:"flex gap-m duration-1000",tariff:"flex gap-5xl flex-grow duration-1000"},Zy=d((({children:e,activeIndex:t,columnWidth:n,version:a="comparison"})=>o("div",{className:"flex flex-1 overflow-hidden",children:o("div",{className:Jy[a],style:{transform:`translateX(-${t*n}px)`},children:e})}))),Qy=d((({className:e="",isOpen:t,onClick:n})=>o(as,{className:e,label:t?"Скрыть":"Показать",isUnfolded:t,version:"secondary",short:!0,onClick:n}))),ev={Buttons:({buttons:e})=>Ye(e,{buttonClassName:"basis-0"}),Img:({image:e})=>e?.src?o(se,{image:e}):null,RichText:({__html:e,isDotted:t=!0})=>o("div",{className:"flex flex-col justify-between items-start text-h6",children:o(ze,{__html:e,isDotted:t,itemSize:"list-m"})}),LabelDescription:({label:e,description:t})=>c("div",{className:"space-y-2xs",children:[e?o("div",{children:o(Fe,{size:"text-h6",children:e})}):null,t?o("div",{className:"lg:text-l font-light text-xs",children:o(Fe,{color:"text-secondary-text",children:t})}):null]}),Table:({isVisible:e,displayTable:t,tableSource:n,pdfUrl:a,isOpen:i})=>e?o(Qy,{className:"w-fit",isOpen:i,onClick:()=>{t({tableSource:n,pdfUrl:a})}}):null},tv=d((({cell:e,fieldIdx:t,rowIdx:n,cellIdx:l,setTableInner:r,tableInner:s,openTableInnerIdx:o,setOpenTableInnerIdx:c})=>{const[d,m]=a(!0);i((()=>{l===o&&s||m(!0)}),[s,o]);return nv({cell:e,cellProps:{rowIdx:n,cellIdx:l,fieldIdx:t,displayTable:e=>{m(!1),c(l),r(e)},isVisible:d}})})),nv=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:n,...a}=e;if(!n||!(n in ev))return null;return o(ev[n],{...t,...a})},av=d((({cells:e,rowIdx:t,cellIdx:n,setTableInner:a,tableInner:i,openTableInnerIdx:l,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(tv,{cell:e,fieldIdx:s,rowIdx:t,cellIdx:n,setTableInner:a,tableInner:i,openTableInnerIdx:l,setOpenTableInnerIdx:r},String(s)))):null}))),iv=(e,t)=>140*Nf(e.slice(0,t).map((e=>e?.cols?.length??1))),lv=(e,t)=>e?.length>0?o("div",{className:u("flex",{"text-secondary-text":0===t}),children:e.map(((e,t)=>o("div",{className:"w-20 mx-lg",children:o(Fe,{size:"text-h6",font:"font-light",children:e})},String(t))))}):null,rv=d((({rows:e})=>{const t=e?.[0]?.length??0,[n,a]=_x({itemCount:t,visibleItemCount:5});return c("div",{children:[e?.map((i=n,(e,t)=>{if(!e?.length)return null;const[n,...a]=e,l=u("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(Fe,{size:"text-xl",font:"font-light",children:n.data})}):null,o("div",{className:"flex flex-grow overflow-hidden",children:o("div",{className:l,style:{transform:`translateX(-${iv(a,i)}px)`},children:a?.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(Fe,{size:"text-xl",children:e.data}):null,e?.cols?lv(e.cols,i):null]},`row${t}`)))})})]},String(t))})),Ex({...a,btnClass:["left-3 top-20","right-3 top-20"],className:""})]});var i})),sv=d((({activeTabIndex:e,items:t})=>o("div",{children:t.map(((t,n)=>{const a=`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(Fe,{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(rv,{rows:t.rowsData})})})]},a)}))}))),ov=(e=!1)=>""+(e?"text-white":"text-secondary-text"),cv=d((({currencies:e,linkToPDF:t,activeTabIndex:n,setActiveTabIndex:a})=>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:u("rounded-md px-4 py-3 cursor-pointer",{"bg-primary-main":t===n}),onClick:()=>a(t),children:o(Fe,{size:"text-xl",font:"font-light",color:ov(t===n),children:e||t+1})},e)))}):null,t?o(Ie,{className:"text-primary-main",href:t,version:"secondary",target:"_blank",appendLeft:o(J,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-3xs",width:"20",height:"20"}),text:"Скачать в PDF"}):null]}))),dv=Ut((({tableSource:e,pdfUrl:t,onClick:n})=>{const i=e?.tableData,[r,s]=a(0),d=l((e=>s(e)),[]),m=i?.[r]?.items??[],u=i?.map((e=>e.currency??""));return c("div",i?{className:"bg-white z-10",children:[o(cv,{currencies:u,activeTabIndex:r,setActiveTabIndex:d,linkToPDF:t}),o(sv,{activeTabIndex:r,items:m}),o(Qy,{className:"mt-xl",onClick:n,isOpen:!0})]}:{className:"my-lg space-y-m text-center",children:[o(Fe,{size:"text-h6",children:"Данных нет"}),o(Qy,{onClick:n,isOpen:!0})]})})),mv=d((({children:e,tableInner:t,onHideContentClick:n})=>c("div",{className:"self-start flex flex-col",role:"row",children:[o("div",{className:u("@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(dv,{...t,onClick:n})}):null]}))),uv=d((({row:{header:e,data:t},activeIndex:n,rowIdx:i,...r})=>{const[s,d]=a(void 0),m=l((e=>d(e)),[]),[h,p]=a(void 0),g=l((e=>p(e)),[]);return c(mv,{onHideContentClick:()=>d(void 0),tableInner:s,...r,children:[o("div",{className:u("text-s","w-80 flex-shrink-0"),children:c("div",{className:"flex gap-m items-center",role:"cell",children:[e?.icon?o(se,{className:"hidden @4xl:block max-w-6 shrink-0",image:e.icon,width:"24",height:"24"}):null,e?.title?o(Fe,{size:"text-m",font:"font-light",color:"text-primary-text",children:e?.title}):null]})}),t?.length?o(Zy,{activeIndex:n,columnWidth:360,version:"tariff",children:t.map(((e,t)=>o(av,{cells:e,rowIdx:i,cellIdx:t,setTableInner:m,tableInner:s,openTableInnerIdx:h,setOpenTableInnerIdx:g,...r},String(t))))}):null]})})),hv=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,Ex({...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]})})),pv=d((({className:e="",title:t,description:n,rowHeaders:a,tariffsColumns:i,hiddenRowsNum:l=0,...r})=>{const s=i?.map((({data:e})=>e))||[],d=a?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),m=s.length,[h,p]=_x({itemCount:m,visibleItemCount:2}),f=(d||[]).map(((e,t)=>o(uv,{row:e,activeIndex:h,rowIdx:t,...r},String(t)))),[x,b]=l>0?[f.slice(0,-l),f.slice(-l)]:[f,[]],[y,{toggle:v}]=on(!1);return c(g,{className:u("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:l>0?c(is,{children:[c(hv,{controls:p,children:[x,o(ls,{isUnfolded:y,children:b})]}),o(as,{className:"text-h4",isUnfolded:y,onClick:v})]}):o(hv,{controls:p,children:f})})]})})),gv=d((({className:e="",title:t,description:n,iconVersion:a,__html:i,richVersion:l,...r})=>c(g,{className:u("flex gap-s sm:gap-m group-data-secondary:bg-primary-main/10",e),...r,children:["small"===a?fv():null,c("div",{className:"flex flex-col w-fit gap-2xs sm:gap-xs",children:[t?o(Fe,{size:"text-l",font:"font-normal",color:"text-primary-text group-data-secondary:text-white",children:t}):null,n?xv(n):null,i?o(ze,{richVersion:l,__html:i}):null]})]}))),fv=()=>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"}),xv=e=>o(w,{size:"text-s",font:"font-light",color:"text-secondary-text group-data-secondary:text-white",children:e}),bv=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(Fe,{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(Fe,{size:"text-h2",children:n})}):null]}))),yv=d((e=>{const{prefix:t,unit:n,suffix:a,...i}=e;return o(g,{defaultPadding:"p-0",...i,children:o(bv,{prefix:t,unit:n,suffix:a})})})),vv=Ut((({className:e="",padding:t="p-0",gap:n="",isInnerPadding:a=!0,version:i="transparent",isTheme:l=!1,isCardBorder:r=!1,image:s,...c})=>{const d=D();return o(g,{className:u("relative flex flex-col",Bx[n],s?.src?"bg-right-bottom bg-no-repeat":"",e),...s?.src?{style:{backgroundImage:`url(${ne(d)(s?.src)})`}}:{},padding:t,version:i,isTheme:l,...c,children:P({...c,extraProps:{className:u("w-full",im(r)),...Rx(a)}})})}),{childrenTypes:[]}),Nv=e=>(e=>{const t="col-span-",n=e?.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(9),10):12})(e)<10?"py-xl px-6xl":"py-6xl px-32",wv=d((({className:e,title:t,url:n,previewImg:a,...i})=>{const l=D();return c(g,{className:e,defaultPadding:Nv(e),...i,children:[o(S,{title:t,headlineVersion:"M"}),n?o("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:Y(l)(a?.src),style:{maxHeight:524},controls:!0,children:o("source",{src:Y(l)(n)})}):null]})})),Cv={AdTile:Wt,ApplicationForm:Sr,ApplicationLeadForm:Qd,BankAccountFiltration:Ym,BenefitsBlock:Zm,BonusBenefitsBlock:au,ButtonsBlock:lu,CalculatorBonus:uu,CalculatorBusinessDeposit:wu,CalculatorCredit:Fo,CalculatorDeposit:Lu,CalculatorRefinancing:Gu,CardTransfer:lh,Carousel:hh,CarouselCard:xh,CarouselCatalogCard:yh,CarouselLinks:wh,CarouselRecommendationCard:Ph,CarouselTariffsCard:Ah,ContactsBlock:Mh,CreditCardForm:Bp,CreditForm:tg,DepositFiltration:rg,Depository:wg,ErrorBlock:Sg,ExchangeRateTile:tf,Footer:Mf,GracePeriod:Of,GrantSupport:Lf,Header:kx,Headline:S,HorizontalLayout:Px,ImgBlock:Dx,InsuranceAmountBlock:Vx,InvestmentInfo:jx,LinkDocs:nb,MobileAppTile:rb,MortgageFiltration:Rb,OfficesAtmsMap:Qb,Placeholder:ey,ProductBlock:qt,ProductGallery:ny,RepresentativeOfficeInfo:iy,RichTextBlock:sy,RollupItem:cy,SafeDepositRental:_y,StepsBlock:Oy,StickyBottomMenu:Fy,TabsLayout:Hy,TariffsTable:pv,TextBlock:gv,UnitBlock:yv,VerticalLayout:vv,Video:wv},Sv=pe((()=>{i((()=>{ln()}),[]);const e=sn();bn(globalThis,"click",(e=>t=>{const n=t.target?.closest("[data-aspects]");try{const a=JSON.parse(n?.dataset?.aspects??"[]");tn({aspectsAttributes:a,aspects:e,ev:t})}catch(e){}e.forwardQuery?.(t)})(e))})),kv="cookie",Iv=d((({__html:e})=>{const[t,{setTrue:n,setFalse:a}]=on();bf((()=>{globalThis.localStorage?.getItem(kv)||n()}),[],3e3);const i=l((()=>{globalThis.localStorage?.setItem(kv,"true"),a()}),[]);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(ze,{__html:e})}),o("div",{className:"ml-s sm:ml-0 w-36 flex justify-end",children:o(sr,{className:"bg-main-gray rounded-md w-11 h-11",onClose:i})})]})}):null}));function Tv(e){const t=l((({key:t})=>{"Escape"===t&&e()}),[e]);bn(globalThis.document,"keydown",t)}function Rv(e,t,n){i((()=>e.subscribe(t,(e=>{const t=e?.type;if(t&&"string"==typeof t){const a=n[t];a&&a(e)}}))),[e,t,...Object.values(n)])}const Bv=()=>{const[e,{push:t,pop:n,clear:i}]=function(e=[]){const[t,n]=a(e),i=l((e=>n((t=>[...t,e]))),[]),r=l((()=>n((e=>e.slice(0,-1)))),[]),s=l((e=>n((t=>t.filter((t=>t!==e))))),[]),o=l((()=>n([])),[]);return[t,{setList:n,push:i,pop:r,remove:s,clear:o}]}();return Rv(xe.observable,"dialog",{open:t,close:n,closeAll:i}),[e,{close:n,closeAll:i}]},Pv=d((()=>{const[e,{close:t}]=Bv(),n=Boolean(e.length);return Tv(t),i((()=>{n?globalThis.document?.body.classList.add("no-scrollbar","overflow-hidden"):globalThis.document?.body.classList.remove("no-scrollbar","overflow-hidden")}),[n]),n?o("div",{className:"fixed inset-0 z-50",children:e.map((({dialog:t,id:n},a)=>o("div",{className:u("absolute inset-0 overflow-x-hidden overflow-y-scroll no-scrollbar bg-black/50",{hidden:a!==e.length-1}),children:t},String(n||a))))}):null})),Dv=d((()=>{const[e,t]=a(null),n=l((()=>{t(null)}),[]);return Rv(xe.observable,"popup",{open:t,close:n}),Tv(n),e?o("div",{className:u("z-50",e.fixed?"fixed":"absolute"),style:{left:`${e.left}px`,top:`${e.top}px`,...e.width?{width:`${e.width}px`}:{}},role:"dialog",title:"Всплывающее окно",children:e.popup}):null})),_v="header",Ev="footer",Av="sticky-footer",Mv={},Ov=d((({className:e,data:t=Mv,blocksRegistry:n,blockDecorator:a})=>{const{slots:i,blocks:l,fallback:r,...s}=t,d=$t(s,r);Sv(),Tg();const m={key:"",page:{slots:i,blocks:l,fallback:r,...d},blocksRegistry:n,blockDecorator:a,parent:t};return c("div",{"data-theme":t.colorPalette||"pc",children:[c("section",{className:u("@container relative",t.style,e),children:[i?.[_v]?.length?o("div",{className:"relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]",children:B(i?.[_v],{...m,slotName:_v})}):null,c("div",{className:"container space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs",children:[P({block:t,options:m,extraProps:{className:"scroll-mt-12"}}),B(i?.[Ev],{...m,slotName:Ev})]})]}),i?.[Av]?.length?o("div",{className:"fixed w-full bottom-0 left-0 z-[100]",children:B(i?.[Av],{...m,slotName:Av})}):null,o(Pv,{}),o(Dv,{}),o(Iv,{__html:d?.cookieContent?.__html})]})}));Object.assign(Ov,{childrenTypes:[],slots:()=>[_v,Ev,Av]});e.Blocks=Cv,e.ContentPage=Ov,e.handlerDecorator=pe,e.joinList=Am,e.locationNavigator=nn,e.packageVersion="0.14.767",e.projectSettings=E,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=U,e.useRouter=D,Object.defineProperty(e,"__esModule",{value:!0})}));