@redneckz/wildless-cms-uni-blocks 0.14.761 → 0.14.763

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 (737) hide show
  1. package/bundle/bundle.umd.js +208 -215
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/CreditCardForm/CreditCardFormStatus.d.ts +1 -3
  4. package/bundle/components/CreditCardForm/PendingStatusContent.d.ts +1 -1
  5. package/bundle/components/CreditForm/CreditFormStatus.d.ts +1 -3
  6. package/bundle/components/CreditForm/PendingStatusContent.d.ts +1 -1
  7. package/bundle/hooks/useInterval.d.ts +4 -1
  8. package/bundle/hooks/useLink.d.ts +1 -2
  9. package/bundle/ui-kit/Button/Button.d.ts +3 -1
  10. package/bundle/ui-kit/Button/IconButton.d.ts +6 -0
  11. package/bundle/ui-kit/DatePicker/Calendar.d.ts +0 -1
  12. package/bundle/ui-kit/DocumentDialog/DocumentDialog.d.ts +0 -1
  13. package/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -0
  14. package/bundle/ui-kit/Icon/RoundedIcon.d.ts +0 -1
  15. package/bundle/ui-kit/InfoCard/InfoCard.d.ts +0 -2
  16. package/bundle/ui-kit/Link/Link.d.ts +12 -0
  17. package/bundle/ui-kit/LinkButton/ArrowButton.d.ts +3 -5
  18. package/bundle/ui-kit/LinkButton/renderArrows.d.ts +1 -1
  19. package/bundle/ui-kit/LinkButton/useFormSubmit.d.ts +0 -1
  20. package/bundle/ui-kit/TimerCircle/Timer.d.ts +1 -3
  21. package/bundle/ui-kit/TimerCircle/TimerCircle.d.ts +2 -3
  22. package/bundle/ui-kit/TimerCircle/useCountDownTimer.d.ts +8 -0
  23. package/bundle/utils/adjustHref.d.ts +0 -2
  24. package/bundle/utils/url.d.ts +4 -4
  25. package/dist/components/ApplicationForm/Footnote.js +2 -2
  26. package/dist/components/ApplicationForm/Footnote.js.map +1 -1
  27. package/dist/components/ApplicationLeadForm/Footnote.js +2 -2
  28. package/dist/components/ApplicationLeadForm/Footnote.js.map +1 -1
  29. package/dist/components/ApplicationLeadForm/GroupedConsents.js +1 -1
  30. package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  31. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
  32. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  33. package/dist/components/CreditCardForm/CreditCardFormStatus.d.ts +1 -3
  34. package/dist/components/CreditCardForm/CreditCardFormStatus.js +3 -7
  35. package/dist/components/CreditCardForm/CreditCardFormStatus.js.map +1 -1
  36. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +5 -5
  37. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  38. package/dist/components/CreditCardForm/PendingStatusContent.d.ts +1 -1
  39. package/dist/components/CreditCardForm/PendingStatusContent.js +3 -3
  40. package/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -1
  41. package/dist/components/CreditCardForm/StepsNavigationButtons.js +1 -1
  42. package/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
  43. package/dist/components/CreditForm/CreditFormStatus.d.ts +1 -3
  44. package/dist/components/CreditForm/CreditFormStatus.js +4 -8
  45. package/dist/components/CreditForm/CreditFormStatus.js.map +1 -1
  46. package/dist/components/CreditForm/CreditFormStatusTracker.js +6 -6
  47. package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  48. package/dist/components/CreditForm/PendingStatusContent.d.ts +1 -1
  49. package/dist/components/CreditForm/PendingStatusContent.js +3 -3
  50. package/dist/components/CreditForm/PendingStatusContent.js.map +1 -1
  51. package/dist/components/CreditForm/StepsNavigationButtons.js +1 -1
  52. package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  53. package/dist/components/Footer/Footer.js +2 -2
  54. package/dist/components/Footer/Footer.js.map +1 -1
  55. package/dist/components/GrantSupport/GrantSupport.js +2 -8
  56. package/dist/components/GrantSupport/GrantSupport.js.map +1 -1
  57. package/dist/components/OfficesAtmsMap/FiltrationForm.js +1 -1
  58. package/dist/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
  59. package/dist/components/OfficesAtmsMap/FoldableCardContent.js +1 -1
  60. package/dist/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -1
  61. package/dist/components/ProductBlock/renderBackwardButton.js +1 -0
  62. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  63. package/dist/components/ProductGallery/ProductGallery.js +1 -1
  64. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  65. package/dist/components/RollupItem/RollupItem.js +1 -1
  66. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  67. package/dist/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  68. package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  69. package/dist/components/TariffsTable/TariffsTable.js +1 -1
  70. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  71. package/dist/hooks/useInterval.d.ts +4 -1
  72. package/dist/hooks/useInterval.js +9 -5
  73. package/dist/hooks/useInterval.js.map +1 -1
  74. package/dist/hooks/useLink.d.ts +1 -2
  75. package/dist/hooks/useLink.js +12 -25
  76. package/dist/hooks/useLink.js.map +1 -1
  77. package/dist/ui-kit/BaseFiltration/GridBlocks.js +1 -1
  78. package/dist/ui-kit/BaseFiltration/GridBlocks.js.map +1 -1
  79. package/dist/ui-kit/Button/Button.d.ts +3 -1
  80. package/dist/ui-kit/Button/Button.js +20 -13
  81. package/dist/ui-kit/Button/Button.js.map +1 -1
  82. package/dist/ui-kit/Button/ButtonTitle.js +1 -1
  83. package/dist/ui-kit/Button/ButtonTitle.js.map +1 -1
  84. package/dist/ui-kit/Button/IconButton.d.ts +6 -0
  85. package/dist/ui-kit/Button/IconButton.js +9 -0
  86. package/dist/ui-kit/Button/IconButton.js.map +1 -0
  87. package/dist/ui-kit/Checkbox/CheckboxWithDoc.js +3 -4
  88. package/dist/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
  89. package/dist/ui-kit/DatePicker/Calendar.d.ts +0 -1
  90. package/dist/ui-kit/DatePicker/Calendar.js +2 -6
  91. package/dist/ui-kit/DatePicker/Calendar.js.map +1 -1
  92. package/dist/ui-kit/DatePicker/DatePicker.js +9 -5
  93. package/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
  94. package/dist/ui-kit/DialogManager/Dialog.js +1 -1
  95. package/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
  96. package/dist/ui-kit/DialogManager/DialogManager.js +1 -1
  97. package/dist/ui-kit/DialogManager/DialogManager.js.map +1 -1
  98. package/dist/ui-kit/DocumentDialog/DocumentDialog.d.ts +0 -1
  99. package/dist/ui-kit/DocumentDialog/DocumentDialog.js +8 -4
  100. package/dist/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -1
  101. package/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -0
  102. package/dist/ui-kit/Foldable/DefaultFoldButton.js +1 -1
  103. package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  104. package/dist/ui-kit/Foldable/Foldable.js +1 -1
  105. package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  106. package/dist/ui-kit/Foldable/FoldableSection.js +5 -2
  107. package/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
  108. package/dist/ui-kit/Icon/RoundedIcon.d.ts +0 -1
  109. package/dist/ui-kit/Icon/RoundedIcon.js +5 -7
  110. package/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
  111. package/dist/ui-kit/InfoCard/InfoCard.d.ts +0 -2
  112. package/dist/ui-kit/InfoCard/InfoCard.js +1 -2
  113. package/dist/ui-kit/InfoCard/InfoCard.js.map +1 -1
  114. package/dist/ui-kit/InnerTable/InnerTableButton.js +2 -3
  115. package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  116. package/dist/ui-kit/Input/Input.js +4 -3
  117. package/dist/ui-kit/Input/Input.js.map +1 -1
  118. package/dist/ui-kit/Link/Link.d.ts +12 -0
  119. package/dist/ui-kit/Link/Link.js +29 -0
  120. package/dist/ui-kit/Link/Link.js.map +1 -0
  121. package/dist/ui-kit/LinkButton/ArrowButton.d.ts +3 -5
  122. package/dist/ui-kit/LinkButton/ArrowButton.js +4 -10
  123. package/dist/ui-kit/LinkButton/ArrowButton.js.map +1 -1
  124. package/dist/ui-kit/LinkButton/renderArrows.d.ts +1 -1
  125. package/dist/ui-kit/LinkButton/renderArrows.js +1 -7
  126. package/dist/ui-kit/LinkButton/renderArrows.js.map +1 -1
  127. package/dist/ui-kit/LinkButton/useFormSubmit.d.ts +0 -1
  128. package/dist/ui-kit/LinkButton/useFormSubmit.js +1 -2
  129. package/dist/ui-kit/LinkButton/useFormSubmit.js.map +1 -1
  130. package/dist/ui-kit/PopupManager/PopupManager.js +1 -1
  131. package/dist/ui-kit/PopupManager/PopupManager.js.map +1 -1
  132. package/dist/ui-kit/ReportDialog/ReportDialog.js +2 -8
  133. package/dist/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
  134. package/dist/ui-kit/Select/Select.js +2 -2
  135. package/dist/ui-kit/Select/Select.js.map +1 -1
  136. package/dist/ui-kit/Sitemap/Sitemap.mobile.js +1 -1
  137. package/dist/ui-kit/Sitemap/Sitemap.mobile.js.map +1 -1
  138. package/dist/ui-kit/SwipeListControl/SwipeListScrollButtons.js +1 -1
  139. package/dist/ui-kit/SwipeListControl/SwipeListScrollButtons.js.map +1 -1
  140. package/dist/ui-kit/TabsControl/ScrollableTabsControl.js +1 -1
  141. package/dist/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
  142. package/dist/ui-kit/TabsControl/TabItemInner.js +1 -1
  143. package/dist/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  144. package/dist/ui-kit/TimerCircle/Timer.d.ts +1 -3
  145. package/dist/ui-kit/TimerCircle/Timer.js +4 -19
  146. package/dist/ui-kit/TimerCircle/Timer.js.map +1 -1
  147. package/dist/ui-kit/TimerCircle/TimerCircle.d.ts +2 -3
  148. package/dist/ui-kit/TimerCircle/TimerCircle.js +7 -12
  149. package/dist/ui-kit/TimerCircle/TimerCircle.js.map +1 -1
  150. package/dist/ui-kit/TimerCircle/useCountDownTimer.d.ts +8 -0
  151. package/dist/ui-kit/TimerCircle/useCountDownTimer.js +28 -0
  152. package/dist/ui-kit/TimerCircle/useCountDownTimer.js.map +1 -0
  153. package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +8 -4
  154. package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  155. package/dist/utils/adjustHref.d.ts +0 -2
  156. package/dist/utils/adjustHref.js +8 -11
  157. package/dist/utils/adjustHref.js.map +1 -1
  158. package/dist/utils/url.d.ts +4 -4
  159. package/dist/utils/url.js +6 -11
  160. package/dist/utils/url.js.map +1 -1
  161. package/lib/common.css +1 -1
  162. package/lib/components/ApplicationForm/Footnote.js +2 -2
  163. package/lib/components/ApplicationForm/Footnote.js.map +1 -1
  164. package/lib/components/ApplicationLeadForm/Footnote.js +2 -2
  165. package/lib/components/ApplicationLeadForm/Footnote.js.map +1 -1
  166. package/lib/components/ApplicationLeadForm/GroupedConsents.js +1 -1
  167. package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  168. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
  169. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  170. package/lib/components/CreditCardForm/CreditCardFormStatus.d.ts +1 -3
  171. package/lib/components/CreditCardForm/CreditCardFormStatus.js +3 -7
  172. package/lib/components/CreditCardForm/CreditCardFormStatus.js.map +1 -1
  173. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +5 -5
  174. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  175. package/lib/components/CreditCardForm/PendingStatusContent.d.ts +1 -1
  176. package/lib/components/CreditCardForm/PendingStatusContent.js +3 -3
  177. package/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -1
  178. package/lib/components/CreditCardForm/StepsNavigationButtons.js +1 -1
  179. package/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
  180. package/lib/components/CreditForm/CreditFormStatus.d.ts +1 -3
  181. package/lib/components/CreditForm/CreditFormStatus.js +4 -8
  182. package/lib/components/CreditForm/CreditFormStatus.js.map +1 -1
  183. package/lib/components/CreditForm/CreditFormStatusTracker.js +6 -6
  184. package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  185. package/lib/components/CreditForm/PendingStatusContent.d.ts +1 -1
  186. package/lib/components/CreditForm/PendingStatusContent.js +3 -3
  187. package/lib/components/CreditForm/PendingStatusContent.js.map +1 -1
  188. package/lib/components/CreditForm/StepsNavigationButtons.js +1 -1
  189. package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  190. package/lib/components/Footer/Footer.js +2 -2
  191. package/lib/components/Footer/Footer.js.map +1 -1
  192. package/lib/components/GrantSupport/GrantSupport.js +2 -8
  193. package/lib/components/GrantSupport/GrantSupport.js.map +1 -1
  194. package/lib/components/OfficesAtmsMap/FiltrationForm.js +1 -1
  195. package/lib/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
  196. package/lib/components/OfficesAtmsMap/FoldableCardContent.js +1 -1
  197. package/lib/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -1
  198. package/lib/components/ProductBlock/renderBackwardButton.js +1 -0
  199. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  200. package/lib/components/ProductGallery/ProductGallery.js +2 -2
  201. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  202. package/lib/components/RollupItem/RollupItem.js +1 -1
  203. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  204. package/lib/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  205. package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  206. package/lib/components/TariffsTable/TariffsTable.js +1 -1
  207. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  208. package/lib/hooks/useInterval.d.ts +4 -1
  209. package/lib/hooks/useInterval.js +9 -5
  210. package/lib/hooks/useInterval.js.map +1 -1
  211. package/lib/hooks/useLink.d.ts +1 -2
  212. package/lib/hooks/useLink.js +12 -25
  213. package/lib/hooks/useLink.js.map +1 -1
  214. package/lib/ui-kit/BaseFiltration/GridBlocks.js +1 -1
  215. package/lib/ui-kit/BaseFiltration/GridBlocks.js.map +1 -1
  216. package/lib/ui-kit/Button/Button.d.ts +3 -1
  217. package/lib/ui-kit/Button/Button.js +19 -12
  218. package/lib/ui-kit/Button/Button.js.map +1 -1
  219. package/lib/ui-kit/Button/ButtonTitle.js +1 -1
  220. package/lib/ui-kit/Button/ButtonTitle.js.map +1 -1
  221. package/lib/ui-kit/Button/IconButton.d.ts +6 -0
  222. package/lib/ui-kit/Button/IconButton.js +7 -0
  223. package/lib/ui-kit/Button/IconButton.js.map +1 -0
  224. package/lib/ui-kit/Checkbox/CheckboxWithDoc.js +3 -4
  225. package/lib/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
  226. package/lib/ui-kit/DatePicker/Calendar.d.ts +0 -1
  227. package/lib/ui-kit/DatePicker/Calendar.js +3 -7
  228. package/lib/ui-kit/DatePicker/Calendar.js.map +1 -1
  229. package/lib/ui-kit/DatePicker/DatePicker.js +10 -6
  230. package/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
  231. package/lib/ui-kit/DialogManager/Dialog.js +1 -1
  232. package/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
  233. package/lib/ui-kit/DialogManager/DialogManager.js +1 -1
  234. package/lib/ui-kit/DialogManager/DialogManager.js.map +1 -1
  235. package/lib/ui-kit/DocumentDialog/DocumentDialog.d.ts +0 -1
  236. package/lib/ui-kit/DocumentDialog/DocumentDialog.js +8 -4
  237. package/lib/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -1
  238. package/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -0
  239. package/lib/ui-kit/Foldable/DefaultFoldButton.js +1 -1
  240. package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  241. package/lib/ui-kit/Foldable/Foldable.js +1 -1
  242. package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  243. package/lib/ui-kit/Foldable/FoldableSection.js +5 -2
  244. package/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
  245. package/lib/ui-kit/Icon/RoundedIcon.d.ts +0 -1
  246. package/lib/ui-kit/Icon/RoundedIcon.js +5 -7
  247. package/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
  248. package/lib/ui-kit/InfoCard/InfoCard.d.ts +0 -2
  249. package/lib/ui-kit/InfoCard/InfoCard.js +1 -2
  250. package/lib/ui-kit/InfoCard/InfoCard.js.map +1 -1
  251. package/lib/ui-kit/InnerTable/InnerTableButton.js +2 -3
  252. package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  253. package/lib/ui-kit/Input/Input.js +4 -3
  254. package/lib/ui-kit/Input/Input.js.map +1 -1
  255. package/lib/ui-kit/Link/Link.d.ts +12 -0
  256. package/lib/ui-kit/Link/Link.js +27 -0
  257. package/lib/ui-kit/Link/Link.js.map +1 -0
  258. package/lib/ui-kit/LinkButton/ArrowButton.d.ts +3 -5
  259. package/lib/ui-kit/LinkButton/ArrowButton.js +3 -9
  260. package/lib/ui-kit/LinkButton/ArrowButton.js.map +1 -1
  261. package/lib/ui-kit/LinkButton/renderArrows.d.ts +1 -1
  262. package/lib/ui-kit/LinkButton/renderArrows.js +2 -8
  263. package/lib/ui-kit/LinkButton/renderArrows.js.map +1 -1
  264. package/lib/ui-kit/LinkButton/useFormSubmit.d.ts +0 -1
  265. package/lib/ui-kit/LinkButton/useFormSubmit.js +1 -2
  266. package/lib/ui-kit/LinkButton/useFormSubmit.js.map +1 -1
  267. package/lib/ui-kit/PopupManager/PopupManager.js +1 -1
  268. package/lib/ui-kit/PopupManager/PopupManager.js.map +1 -1
  269. package/lib/ui-kit/ReportDialog/ReportDialog.js +2 -8
  270. package/lib/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
  271. package/lib/ui-kit/Select/Select.js +2 -2
  272. package/lib/ui-kit/Select/Select.js.map +1 -1
  273. package/lib/ui-kit/Sitemap/Sitemap.mobile.js +1 -1
  274. package/lib/ui-kit/Sitemap/Sitemap.mobile.js.map +1 -1
  275. package/lib/ui-kit/SwipeListControl/SwipeListScrollButtons.js +2 -2
  276. package/lib/ui-kit/SwipeListControl/SwipeListScrollButtons.js.map +1 -1
  277. package/lib/ui-kit/TabsControl/ScrollableTabsControl.js +2 -2
  278. package/lib/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
  279. package/lib/ui-kit/TabsControl/TabItemInner.js +1 -1
  280. package/lib/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  281. package/lib/ui-kit/TimerCircle/Timer.d.ts +1 -3
  282. package/lib/ui-kit/TimerCircle/Timer.js +4 -19
  283. package/lib/ui-kit/TimerCircle/Timer.js.map +1 -1
  284. package/lib/ui-kit/TimerCircle/TimerCircle.d.ts +2 -3
  285. package/lib/ui-kit/TimerCircle/TimerCircle.js +7 -12
  286. package/lib/ui-kit/TimerCircle/TimerCircle.js.map +1 -1
  287. package/lib/ui-kit/TimerCircle/useCountDownTimer.d.ts +8 -0
  288. package/lib/ui-kit/TimerCircle/useCountDownTimer.js +25 -0
  289. package/lib/ui-kit/TimerCircle/useCountDownTimer.js.map +1 -0
  290. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +8 -4
  291. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  292. package/lib/utils/adjustHref.d.ts +0 -2
  293. package/lib/utils/adjustHref.js +6 -9
  294. package/lib/utils/adjustHref.js.map +1 -1
  295. package/lib/utils/url.d.ts +4 -4
  296. package/lib/utils/url.js +6 -11
  297. package/lib/utils/url.js.map +1 -1
  298. package/mobile/bundle/bundle.umd.js +208 -215
  299. package/mobile/bundle/bundle.umd.min.js +1 -1
  300. package/mobile/bundle/components/CreditCardForm/CreditCardFormStatus.d.ts +1 -3
  301. package/mobile/bundle/components/CreditCardForm/PendingStatusContent.d.ts +1 -1
  302. package/mobile/bundle/components/CreditForm/CreditFormStatus.d.ts +1 -3
  303. package/mobile/bundle/components/CreditForm/PendingStatusContent.d.ts +1 -1
  304. package/mobile/bundle/hooks/useInterval.d.ts +4 -1
  305. package/mobile/bundle/hooks/useLink.d.ts +1 -2
  306. package/mobile/bundle/ui-kit/Button/Button.d.ts +3 -1
  307. package/mobile/bundle/ui-kit/Button/IconButton.d.ts +6 -0
  308. package/mobile/bundle/ui-kit/DatePicker/Calendar.d.ts +0 -1
  309. package/mobile/bundle/ui-kit/DocumentDialog/DocumentDialog.d.ts +0 -1
  310. package/mobile/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -0
  311. package/mobile/bundle/ui-kit/Icon/RoundedIcon.d.ts +0 -1
  312. package/mobile/bundle/ui-kit/InfoCard/InfoCard.d.ts +0 -2
  313. package/mobile/bundle/ui-kit/Link/Link.d.ts +12 -0
  314. package/mobile/bundle/ui-kit/LinkButton/ArrowButton.d.ts +3 -5
  315. package/mobile/bundle/ui-kit/LinkButton/renderArrows.d.ts +1 -1
  316. package/mobile/bundle/ui-kit/LinkButton/useFormSubmit.d.ts +0 -1
  317. package/mobile/bundle/ui-kit/TimerCircle/Timer.d.ts +1 -3
  318. package/mobile/bundle/ui-kit/TimerCircle/TimerCircle.d.ts +2 -3
  319. package/mobile/bundle/ui-kit/TimerCircle/useCountDownTimer.d.ts +8 -0
  320. package/mobile/bundle/utils/adjustHref.d.ts +0 -2
  321. package/mobile/bundle/utils/url.d.ts +4 -4
  322. package/mobile/dist/components/ApplicationForm/Footnote.js +2 -2
  323. package/mobile/dist/components/ApplicationForm/Footnote.js.map +1 -1
  324. package/mobile/dist/components/ApplicationLeadForm/Footnote.js +2 -2
  325. package/mobile/dist/components/ApplicationLeadForm/Footnote.js.map +1 -1
  326. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js +1 -1
  327. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  328. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
  329. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  330. package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.d.ts +1 -3
  331. package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.js +3 -7
  332. package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.js.map +1 -1
  333. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +5 -5
  334. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  335. package/mobile/dist/components/CreditCardForm/PendingStatusContent.d.ts +1 -1
  336. package/mobile/dist/components/CreditCardForm/PendingStatusContent.js +3 -3
  337. package/mobile/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -1
  338. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js +1 -1
  339. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
  340. package/mobile/dist/components/CreditForm/CreditFormStatus.d.ts +1 -3
  341. package/mobile/dist/components/CreditForm/CreditFormStatus.js +4 -8
  342. package/mobile/dist/components/CreditForm/CreditFormStatus.js.map +1 -1
  343. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +6 -6
  344. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  345. package/mobile/dist/components/CreditForm/PendingStatusContent.d.ts +1 -1
  346. package/mobile/dist/components/CreditForm/PendingStatusContent.js +3 -3
  347. package/mobile/dist/components/CreditForm/PendingStatusContent.js.map +1 -1
  348. package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +1 -1
  349. package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  350. package/mobile/dist/components/Footer/Footer.js +2 -2
  351. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  352. package/mobile/dist/components/GrantSupport/GrantSupport.js +2 -8
  353. package/mobile/dist/components/GrantSupport/GrantSupport.js.map +1 -1
  354. package/mobile/dist/components/OfficesAtmsMap/FiltrationForm.js +1 -1
  355. package/mobile/dist/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
  356. package/mobile/dist/components/OfficesAtmsMap/FoldableCardContent.js +1 -1
  357. package/mobile/dist/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -1
  358. package/mobile/dist/components/ProductBlock/renderBackwardButton.js +1 -0
  359. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  360. package/mobile/dist/components/RollupItem/RollupItem.js +1 -1
  361. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  362. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  363. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  364. package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -1
  365. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  366. package/mobile/dist/hooks/useInterval.d.ts +4 -1
  367. package/mobile/dist/hooks/useInterval.js +9 -5
  368. package/mobile/dist/hooks/useInterval.js.map +1 -1
  369. package/mobile/dist/hooks/useLink.d.ts +1 -2
  370. package/mobile/dist/hooks/useLink.js +12 -25
  371. package/mobile/dist/hooks/useLink.js.map +1 -1
  372. package/mobile/dist/ui-kit/BaseFiltration/GridBlocks.js +1 -1
  373. package/mobile/dist/ui-kit/BaseFiltration/GridBlocks.js.map +1 -1
  374. package/mobile/dist/ui-kit/Button/Button.d.ts +3 -1
  375. package/mobile/dist/ui-kit/Button/Button.js +20 -13
  376. package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
  377. package/mobile/dist/ui-kit/Button/ButtonTitle.js +1 -1
  378. package/mobile/dist/ui-kit/Button/ButtonTitle.js.map +1 -1
  379. package/mobile/dist/ui-kit/Button/IconButton.d.ts +6 -0
  380. package/mobile/dist/ui-kit/Button/IconButton.js +9 -0
  381. package/mobile/dist/ui-kit/Button/IconButton.js.map +1 -0
  382. package/mobile/dist/ui-kit/Checkbox/CheckboxWithDoc.js +3 -4
  383. package/mobile/dist/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
  384. package/mobile/dist/ui-kit/DatePicker/Calendar.d.ts +0 -1
  385. package/mobile/dist/ui-kit/DatePicker/Calendar.js +2 -6
  386. package/mobile/dist/ui-kit/DatePicker/Calendar.js.map +1 -1
  387. package/mobile/dist/ui-kit/DatePicker/DatePicker.js +9 -5
  388. package/mobile/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
  389. package/mobile/dist/ui-kit/DialogManager/Dialog.js +1 -1
  390. package/mobile/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
  391. package/mobile/dist/ui-kit/DialogManager/DialogManager.js +1 -1
  392. package/mobile/dist/ui-kit/DialogManager/DialogManager.js.map +1 -1
  393. package/mobile/dist/ui-kit/DocumentDialog/DocumentDialog.d.ts +0 -1
  394. package/mobile/dist/ui-kit/DocumentDialog/DocumentDialog.js +8 -4
  395. package/mobile/dist/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -1
  396. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -0
  397. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +1 -1
  398. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  399. package/mobile/dist/ui-kit/Foldable/Foldable.js +1 -1
  400. package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  401. package/mobile/dist/ui-kit/Foldable/FoldableSection.js +5 -2
  402. package/mobile/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
  403. package/mobile/dist/ui-kit/Icon/RoundedIcon.d.ts +0 -1
  404. package/mobile/dist/ui-kit/Icon/RoundedIcon.js +5 -7
  405. package/mobile/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
  406. package/mobile/dist/ui-kit/InfoCard/InfoCard.d.ts +0 -2
  407. package/mobile/dist/ui-kit/InfoCard/InfoCard.js +1 -2
  408. package/mobile/dist/ui-kit/InfoCard/InfoCard.js.map +1 -1
  409. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js +2 -3
  410. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  411. package/mobile/dist/ui-kit/Input/Input.js +4 -3
  412. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  413. package/mobile/dist/ui-kit/Link/Link.d.ts +12 -0
  414. package/mobile/dist/ui-kit/Link/Link.js +29 -0
  415. package/mobile/dist/ui-kit/Link/Link.js.map +1 -0
  416. package/mobile/dist/ui-kit/LinkButton/ArrowButton.d.ts +3 -5
  417. package/mobile/dist/ui-kit/LinkButton/ArrowButton.js +4 -10
  418. package/mobile/dist/ui-kit/LinkButton/ArrowButton.js.map +1 -1
  419. package/mobile/dist/ui-kit/LinkButton/renderArrows.d.ts +1 -1
  420. package/mobile/dist/ui-kit/LinkButton/renderArrows.js +1 -7
  421. package/mobile/dist/ui-kit/LinkButton/renderArrows.js.map +1 -1
  422. package/mobile/dist/ui-kit/LinkButton/useFormSubmit.d.ts +0 -1
  423. package/mobile/dist/ui-kit/LinkButton/useFormSubmit.js +1 -2
  424. package/mobile/dist/ui-kit/LinkButton/useFormSubmit.js.map +1 -1
  425. package/mobile/dist/ui-kit/PopupManager/PopupManager.js +1 -1
  426. package/mobile/dist/ui-kit/PopupManager/PopupManager.js.map +1 -1
  427. package/mobile/dist/ui-kit/ReportDialog/ReportDialog.js +2 -8
  428. package/mobile/dist/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
  429. package/mobile/dist/ui-kit/Select/Select.js +2 -2
  430. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  431. package/mobile/dist/ui-kit/Sitemap/Sitemap.js +1 -1
  432. package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
  433. package/mobile/dist/ui-kit/SwipeListControl/SwipeListScrollButtons.js +1 -1
  434. package/mobile/dist/ui-kit/SwipeListControl/SwipeListScrollButtons.js.map +1 -1
  435. package/mobile/dist/ui-kit/TabsControl/ScrollableTabsControl.js +1 -1
  436. package/mobile/dist/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
  437. package/mobile/dist/ui-kit/TabsControl/TabItemInner.js +1 -1
  438. package/mobile/dist/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  439. package/mobile/dist/ui-kit/TimerCircle/Timer.d.ts +1 -3
  440. package/mobile/dist/ui-kit/TimerCircle/Timer.js +4 -19
  441. package/mobile/dist/ui-kit/TimerCircle/Timer.js.map +1 -1
  442. package/mobile/dist/ui-kit/TimerCircle/TimerCircle.d.ts +2 -3
  443. package/mobile/dist/ui-kit/TimerCircle/TimerCircle.js +7 -12
  444. package/mobile/dist/ui-kit/TimerCircle/TimerCircle.js.map +1 -1
  445. package/mobile/dist/ui-kit/TimerCircle/useCountDownTimer.d.ts +8 -0
  446. package/mobile/dist/ui-kit/TimerCircle/useCountDownTimer.js +28 -0
  447. package/mobile/dist/ui-kit/TimerCircle/useCountDownTimer.js.map +1 -0
  448. package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +8 -4
  449. package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  450. package/mobile/dist/utils/adjustHref.d.ts +0 -2
  451. package/mobile/dist/utils/adjustHref.js +8 -11
  452. package/mobile/dist/utils/adjustHref.js.map +1 -1
  453. package/mobile/dist/utils/url.d.ts +4 -4
  454. package/mobile/dist/utils/url.js +6 -11
  455. package/mobile/dist/utils/url.js.map +1 -1
  456. package/mobile/lib/common.css +1 -1
  457. package/mobile/lib/components/ApplicationForm/Footnote.js +2 -2
  458. package/mobile/lib/components/ApplicationForm/Footnote.js.map +1 -1
  459. package/mobile/lib/components/ApplicationLeadForm/Footnote.js +2 -2
  460. package/mobile/lib/components/ApplicationLeadForm/Footnote.js.map +1 -1
  461. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js +1 -1
  462. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  463. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
  464. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  465. package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.d.ts +1 -3
  466. package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.js +3 -7
  467. package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.js.map +1 -1
  468. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +5 -5
  469. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  470. package/mobile/lib/components/CreditCardForm/PendingStatusContent.d.ts +1 -1
  471. package/mobile/lib/components/CreditCardForm/PendingStatusContent.js +3 -3
  472. package/mobile/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -1
  473. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js +1 -1
  474. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
  475. package/mobile/lib/components/CreditForm/CreditFormStatus.d.ts +1 -3
  476. package/mobile/lib/components/CreditForm/CreditFormStatus.js +4 -8
  477. package/mobile/lib/components/CreditForm/CreditFormStatus.js.map +1 -1
  478. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +6 -6
  479. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  480. package/mobile/lib/components/CreditForm/PendingStatusContent.d.ts +1 -1
  481. package/mobile/lib/components/CreditForm/PendingStatusContent.js +3 -3
  482. package/mobile/lib/components/CreditForm/PendingStatusContent.js.map +1 -1
  483. package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +1 -1
  484. package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  485. package/mobile/lib/components/Footer/Footer.js +2 -2
  486. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  487. package/mobile/lib/components/GrantSupport/GrantSupport.js +2 -8
  488. package/mobile/lib/components/GrantSupport/GrantSupport.js.map +1 -1
  489. package/mobile/lib/components/OfficesAtmsMap/FiltrationForm.js +1 -1
  490. package/mobile/lib/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
  491. package/mobile/lib/components/OfficesAtmsMap/FoldableCardContent.js +1 -1
  492. package/mobile/lib/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -1
  493. package/mobile/lib/components/ProductBlock/renderBackwardButton.js +1 -0
  494. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  495. package/mobile/lib/components/RollupItem/RollupItem.js +1 -1
  496. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  497. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  498. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  499. package/mobile/lib/components/TariffsTable/TariffsTable.js +1 -1
  500. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  501. package/mobile/lib/hooks/useInterval.d.ts +4 -1
  502. package/mobile/lib/hooks/useInterval.js +9 -5
  503. package/mobile/lib/hooks/useInterval.js.map +1 -1
  504. package/mobile/lib/hooks/useLink.d.ts +1 -2
  505. package/mobile/lib/hooks/useLink.js +12 -25
  506. package/mobile/lib/hooks/useLink.js.map +1 -1
  507. package/mobile/lib/ui-kit/BaseFiltration/GridBlocks.js +1 -1
  508. package/mobile/lib/ui-kit/BaseFiltration/GridBlocks.js.map +1 -1
  509. package/mobile/lib/ui-kit/Button/Button.d.ts +3 -1
  510. package/mobile/lib/ui-kit/Button/Button.js +19 -12
  511. package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
  512. package/mobile/lib/ui-kit/Button/ButtonTitle.js +1 -1
  513. package/mobile/lib/ui-kit/Button/ButtonTitle.js.map +1 -1
  514. package/mobile/lib/ui-kit/Button/IconButton.d.ts +6 -0
  515. package/mobile/lib/ui-kit/Button/IconButton.js +7 -0
  516. package/mobile/lib/ui-kit/Button/IconButton.js.map +1 -0
  517. package/mobile/lib/ui-kit/Checkbox/CheckboxWithDoc.js +3 -4
  518. package/mobile/lib/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
  519. package/mobile/lib/ui-kit/DatePicker/Calendar.d.ts +0 -1
  520. package/mobile/lib/ui-kit/DatePicker/Calendar.js +3 -7
  521. package/mobile/lib/ui-kit/DatePicker/Calendar.js.map +1 -1
  522. package/mobile/lib/ui-kit/DatePicker/DatePicker.js +10 -6
  523. package/mobile/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
  524. package/mobile/lib/ui-kit/DialogManager/Dialog.js +1 -1
  525. package/mobile/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
  526. package/mobile/lib/ui-kit/DialogManager/DialogManager.js +1 -1
  527. package/mobile/lib/ui-kit/DialogManager/DialogManager.js.map +1 -1
  528. package/mobile/lib/ui-kit/DocumentDialog/DocumentDialog.d.ts +0 -1
  529. package/mobile/lib/ui-kit/DocumentDialog/DocumentDialog.js +8 -4
  530. package/mobile/lib/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -1
  531. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -0
  532. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +1 -1
  533. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  534. package/mobile/lib/ui-kit/Foldable/Foldable.js +1 -1
  535. package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  536. package/mobile/lib/ui-kit/Foldable/FoldableSection.js +5 -2
  537. package/mobile/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
  538. package/mobile/lib/ui-kit/Icon/RoundedIcon.d.ts +0 -1
  539. package/mobile/lib/ui-kit/Icon/RoundedIcon.js +5 -7
  540. package/mobile/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
  541. package/mobile/lib/ui-kit/InfoCard/InfoCard.d.ts +0 -2
  542. package/mobile/lib/ui-kit/InfoCard/InfoCard.js +1 -2
  543. package/mobile/lib/ui-kit/InfoCard/InfoCard.js.map +1 -1
  544. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js +2 -3
  545. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  546. package/mobile/lib/ui-kit/Input/Input.js +4 -3
  547. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  548. package/mobile/lib/ui-kit/Link/Link.d.ts +12 -0
  549. package/mobile/lib/ui-kit/Link/Link.js +27 -0
  550. package/mobile/lib/ui-kit/Link/Link.js.map +1 -0
  551. package/mobile/lib/ui-kit/LinkButton/ArrowButton.d.ts +3 -5
  552. package/mobile/lib/ui-kit/LinkButton/ArrowButton.js +3 -9
  553. package/mobile/lib/ui-kit/LinkButton/ArrowButton.js.map +1 -1
  554. package/mobile/lib/ui-kit/LinkButton/renderArrows.d.ts +1 -1
  555. package/mobile/lib/ui-kit/LinkButton/renderArrows.js +2 -8
  556. package/mobile/lib/ui-kit/LinkButton/renderArrows.js.map +1 -1
  557. package/mobile/lib/ui-kit/LinkButton/useFormSubmit.d.ts +0 -1
  558. package/mobile/lib/ui-kit/LinkButton/useFormSubmit.js +1 -2
  559. package/mobile/lib/ui-kit/LinkButton/useFormSubmit.js.map +1 -1
  560. package/mobile/lib/ui-kit/PopupManager/PopupManager.js +1 -1
  561. package/mobile/lib/ui-kit/PopupManager/PopupManager.js.map +1 -1
  562. package/mobile/lib/ui-kit/ReportDialog/ReportDialog.js +2 -8
  563. package/mobile/lib/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
  564. package/mobile/lib/ui-kit/Select/Select.js +2 -2
  565. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  566. package/mobile/lib/ui-kit/Sitemap/Sitemap.js +1 -1
  567. package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
  568. package/mobile/lib/ui-kit/SwipeListControl/SwipeListScrollButtons.js +2 -2
  569. package/mobile/lib/ui-kit/SwipeListControl/SwipeListScrollButtons.js.map +1 -1
  570. package/mobile/lib/ui-kit/TabsControl/ScrollableTabsControl.js +2 -2
  571. package/mobile/lib/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
  572. package/mobile/lib/ui-kit/TabsControl/TabItemInner.js +1 -1
  573. package/mobile/lib/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  574. package/mobile/lib/ui-kit/TimerCircle/Timer.d.ts +1 -3
  575. package/mobile/lib/ui-kit/TimerCircle/Timer.js +4 -19
  576. package/mobile/lib/ui-kit/TimerCircle/Timer.js.map +1 -1
  577. package/mobile/lib/ui-kit/TimerCircle/TimerCircle.d.ts +2 -3
  578. package/mobile/lib/ui-kit/TimerCircle/TimerCircle.js +7 -12
  579. package/mobile/lib/ui-kit/TimerCircle/TimerCircle.js.map +1 -1
  580. package/mobile/lib/ui-kit/TimerCircle/useCountDownTimer.d.ts +8 -0
  581. package/mobile/lib/ui-kit/TimerCircle/useCountDownTimer.js +25 -0
  582. package/mobile/lib/ui-kit/TimerCircle/useCountDownTimer.js.map +1 -0
  583. package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +8 -4
  584. package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  585. package/mobile/lib/utils/adjustHref.d.ts +0 -2
  586. package/mobile/lib/utils/adjustHref.js +6 -9
  587. package/mobile/lib/utils/adjustHref.js.map +1 -1
  588. package/mobile/lib/utils/url.d.ts +4 -4
  589. package/mobile/lib/utils/url.js +6 -11
  590. package/mobile/lib/utils/url.js.map +1 -1
  591. package/mobile/src/components/ApplicationForm/Footnote.tsx +4 -9
  592. package/mobile/src/components/ApplicationLeadForm/Footnote.tsx +4 -9
  593. package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +1 -1
  594. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +1 -1
  595. package/mobile/src/components/CreditCardForm/CreditCardFormStatus.tsx +6 -21
  596. package/mobile/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +5 -5
  597. package/mobile/src/components/CreditCardForm/PendingStatusContent.tsx +22 -24
  598. package/mobile/src/components/CreditCardForm/StepsNavigationButtons.tsx +1 -1
  599. package/mobile/src/components/CreditForm/CreditFormStatus.tsx +6 -26
  600. package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +6 -6
  601. package/mobile/src/components/CreditForm/PendingStatusContent.tsx +34 -36
  602. package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +1 -1
  603. package/mobile/src/components/Footer/Footer.tsx +2 -5
  604. package/mobile/src/components/GrantSupport/GrantSupport.tsx +6 -11
  605. package/mobile/src/components/OfficesAtmsMap/FiltrationForm.tsx +1 -0
  606. package/mobile/src/components/OfficesAtmsMap/FoldableCardContent.tsx +1 -1
  607. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +1 -0
  608. package/mobile/src/components/RollupItem/RollupItem.tsx +1 -1
  609. package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +4 -2
  610. package/mobile/src/components/TariffsTable/TariffsTable.tsx +1 -1
  611. package/mobile/src/hooks/useInterval.ts +9 -5
  612. package/mobile/src/hooks/useLink.ts +15 -34
  613. package/mobile/src/ui-kit/BaseFiltration/GridBlocks.tsx +1 -1
  614. package/mobile/src/ui-kit/Button/Button.tsx +27 -17
  615. package/mobile/src/ui-kit/Button/ButtonTitle.tsx +1 -1
  616. package/mobile/src/ui-kit/Button/IconButton.tsx +15 -0
  617. package/mobile/src/ui-kit/Checkbox/CheckboxWithDoc.tsx +5 -7
  618. package/mobile/src/ui-kit/DatePicker/Calendar.tsx +3 -9
  619. package/mobile/src/ui-kit/DatePicker/DatePicker.tsx +14 -7
  620. package/mobile/src/ui-kit/DialogManager/Dialog.tsx +6 -1
  621. package/mobile/src/ui-kit/DialogManager/DialogManager.tsx +1 -1
  622. package/mobile/src/ui-kit/DocumentDialog/DocumentDialog.tsx +8 -6
  623. package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +13 -3
  624. package/mobile/src/ui-kit/Foldable/Foldable.tsx +1 -1
  625. package/mobile/src/ui-kit/Foldable/FoldableSection.tsx +27 -26
  626. package/mobile/src/ui-kit/Icon/RoundedIcon.tsx +9 -10
  627. package/mobile/src/ui-kit/InfoCard/InfoCard.tsx +1 -5
  628. package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +6 -8
  629. package/mobile/src/ui-kit/Input/Input.tsx +19 -15
  630. package/mobile/src/ui-kit/Link/Link.tsx +82 -0
  631. package/mobile/src/ui-kit/LinkButton/ArrowButton.tsx +6 -37
  632. package/mobile/src/ui-kit/LinkButton/renderArrows.tsx +12 -28
  633. package/mobile/src/ui-kit/LinkButton/useFormSubmit.ts +23 -21
  634. package/mobile/src/ui-kit/PopupManager/PopupManager.tsx +1 -0
  635. package/mobile/src/ui-kit/ReportDialog/ReportDialog.tsx +24 -29
  636. package/mobile/src/ui-kit/Select/Select.tsx +3 -3
  637. package/mobile/src/ui-kit/Sitemap/Sitemap.tsx +1 -1
  638. package/mobile/src/ui-kit/SwipeListControl/SwipeListScrollButtons.tsx +3 -3
  639. package/mobile/src/ui-kit/TabsControl/ScrollableTabsControl.tsx +3 -3
  640. package/mobile/src/ui-kit/TabsControl/TabItemInner.tsx +0 -1
  641. package/mobile/src/ui-kit/TimerCircle/Timer.tsx +7 -25
  642. package/mobile/src/ui-kit/TimerCircle/TimerCircle.tsx +23 -39
  643. package/mobile/src/ui-kit/TimerCircle/useCountDownTimer.ts +38 -0
  644. package/mobile/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +13 -12
  645. package/mobile/src/utils/adjustHref.ts +9 -11
  646. package/mobile/src/utils/url.ts +14 -16
  647. package/package.json +1 -1
  648. package/src/components/ApplicationForm/Footnote.tsx +4 -9
  649. package/src/components/ApplicationLeadForm/Footnote.tsx +4 -9
  650. package/src/components/ApplicationLeadForm/GroupedConsents.tsx +1 -1
  651. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +1 -1
  652. package/src/components/CreditCardForm/CreditCardFormStatus.tsx +6 -21
  653. package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +5 -5
  654. package/src/components/CreditCardForm/PendingStatusContent.tsx +22 -24
  655. package/src/components/CreditCardForm/StepsNavigationButtons.tsx +1 -1
  656. package/src/components/CreditForm/CreditFormStatus.tsx +6 -26
  657. package/src/components/CreditForm/CreditFormStatusTracker.tsx +6 -6
  658. package/src/components/CreditForm/PendingStatusContent.tsx +34 -36
  659. package/src/components/CreditForm/StepsNavigationButtons.tsx +1 -1
  660. package/src/components/Footer/Footer.tsx +2 -5
  661. package/src/components/GrantSupport/GrantSupport.tsx +6 -11
  662. package/src/components/OfficesAtmsMap/FiltrationForm.tsx +1 -0
  663. package/src/components/OfficesAtmsMap/FoldableCardContent.tsx +1 -1
  664. package/src/components/ProductBlock/renderBackwardButton.tsx +1 -0
  665. package/src/components/ProductGallery/ProductGallery.tsx +3 -3
  666. package/src/components/RollupItem/RollupItem.tsx +1 -1
  667. package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +4 -2
  668. package/src/components/TariffsTable/TariffsTable.tsx +1 -1
  669. package/src/hooks/useInterval.ts +9 -5
  670. package/src/hooks/useLink.ts +15 -34
  671. package/src/ui-kit/BaseFiltration/GridBlocks.tsx +1 -1
  672. package/src/ui-kit/Button/Button.tsx +27 -17
  673. package/src/ui-kit/Button/ButtonTitle.tsx +1 -1
  674. package/src/ui-kit/Button/IconButton.tsx +15 -0
  675. package/src/ui-kit/Checkbox/CheckboxWithDoc.tsx +5 -7
  676. package/src/ui-kit/DatePicker/Calendar.tsx +3 -9
  677. package/src/ui-kit/DatePicker/DatePicker.tsx +14 -7
  678. package/src/ui-kit/DialogManager/Dialog.tsx +6 -1
  679. package/src/ui-kit/DialogManager/DialogManager.tsx +1 -1
  680. package/src/ui-kit/DocumentDialog/DocumentDialog.tsx +8 -6
  681. package/src/ui-kit/Foldable/DefaultFoldButton.tsx +13 -3
  682. package/src/ui-kit/Foldable/Foldable.tsx +1 -1
  683. package/src/ui-kit/Foldable/FoldableSection.tsx +27 -26
  684. package/src/ui-kit/Icon/RoundedIcon.tsx +9 -10
  685. package/src/ui-kit/InfoCard/InfoCard.tsx +1 -5
  686. package/src/ui-kit/InnerTable/InnerTableButton.tsx +6 -8
  687. package/src/ui-kit/Input/Input.tsx +19 -15
  688. package/src/ui-kit/Link/Link.tsx +82 -0
  689. package/src/ui-kit/LinkButton/ArrowButton.tsx +6 -37
  690. package/src/ui-kit/LinkButton/renderArrows.tsx +12 -28
  691. package/src/ui-kit/LinkButton/useFormSubmit.ts +23 -21
  692. package/src/ui-kit/PopupManager/PopupManager.tsx +1 -0
  693. package/src/ui-kit/ReportDialog/ReportDialog.tsx +24 -29
  694. package/src/ui-kit/Select/Select.tsx +3 -3
  695. package/src/ui-kit/Sitemap/Sitemap.mobile.tsx +1 -1
  696. package/src/ui-kit/SwipeListControl/SwipeListScrollButtons.tsx +3 -3
  697. package/src/ui-kit/TabsControl/ScrollableTabsControl.tsx +3 -3
  698. package/src/ui-kit/TabsControl/TabItemInner.tsx +0 -1
  699. package/src/ui-kit/TimerCircle/Timer.tsx +7 -25
  700. package/src/ui-kit/TimerCircle/TimerCircle.fixture.tsx +1 -6
  701. package/src/ui-kit/TimerCircle/TimerCircle.tsx +23 -39
  702. package/src/ui-kit/TimerCircle/useCountDownTimer.ts +38 -0
  703. package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +13 -12
  704. package/src/utils/adjustHref.ts +9 -11
  705. package/src/utils/url.ts +14 -16
  706. package/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +0 -2
  707. package/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +0 -9
  708. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +0 -2
  709. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +0 -17
  710. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +0 -1
  711. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +0 -9
  712. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js +0 -2
  713. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js.map +0 -1
  714. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +0 -2
  715. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +0 -15
  716. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +0 -1
  717. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +0 -9
  718. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js +0 -2
  719. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js.map +0 -1
  720. package/mobile/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +0 -2
  721. package/mobile/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +0 -9
  722. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +0 -2
  723. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +0 -17
  724. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +0 -1
  725. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +0 -9
  726. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js +0 -2
  727. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js.map +0 -1
  728. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +0 -2
  729. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +0 -15
  730. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +0 -1
  731. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +0 -9
  732. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js +0 -2
  733. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js.map +0 -1
  734. package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +0 -21
  735. package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +0 -9
  736. package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +0 -21
  737. package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +0 -9
@@ -234,25 +234,20 @@
234
234
  const isURL = (href) => Boolean(href?.includes(':'));
235
235
  const isLocalURL = (href, target) => Boolean(href && !isURL(href) && (!target || target === '_self'));
236
236
  const isHash = (href) => Boolean(href?.startsWith('#'));
237
- const withoutQuery = (href) => (href || '').replace(/\?.*/, '').replace(/\/$/, '');
237
+ const withoutQuery = (href) => (href ?? '').replace(/\?.*/, '').replace(/\/$/, '');
238
238
  const joinPath = (...path) => path
239
239
  .filter(Boolean)
240
240
  .join('/')
241
241
  .replace(/\/+/g, '/')
242
- .replace(/^(.+):\//, '$1://')
242
+ .replace(/^(.+):\//, '$1://') // TODO Череда очень странных преобрвзований
243
243
  .replace(/^file:/, 'file:/')
244
244
  .replace(/\/(\?|&|#[^!])/g, '$1')
245
245
  .replace(/\?/g, '&')
246
246
  .replace('&', '?');
247
- const hasPrefix = (href, prefix) => {
248
- if (!href || !prefix) {
249
- return false;
250
- }
251
- if (href.startsWith(prefix)) {
252
- return [prefix === '/', href === prefix, href[prefix.length] === '/'].some(Boolean);
253
- }
254
- return false;
255
- };
247
+ const hasPrefix = (href) => (prefix) => Boolean(href &&
248
+ prefix &&
249
+ href.startsWith(prefix) &&
250
+ (prefix === '/' || href === prefix || href[prefix.length] === '/'));
256
251
 
257
252
  var url = /*#__PURE__*/Object.freeze({
258
253
  __proto__: null,
@@ -264,23 +259,20 @@
264
259
  hasPrefix: hasPrefix
265
260
  });
266
261
 
267
- const PREFIX_API = '/api/';
268
- const FILE_STORAGE_API = `${PREFIX_API}v1/storage`;
262
+ const API_PREFIX = '/api/';
263
+ const FILE_STORAGE_API = `${API_PREFIX}v1/storage`;
264
+ const DIRECT_HREF_PREFIXES = [projectSettings.CDN, API_PREFIX];
269
265
  const adjustHref = (router) => (href, basePath) => {
270
- if ([
271
- !href,
272
- isURL(href),
273
- isHash(href),
274
- [projectSettings.CDN, PREFIX_API].some((_) => hasPrefix(href, _)),
275
- ].some(Boolean)) {
266
+ if (isDirectHref(href)) {
276
267
  return href;
277
268
  }
278
269
  if (isUUID(href)) {
279
270
  return `${FILE_STORAGE_API}/${href}/attachment`;
280
271
  }
281
272
  const isRelativeToBase = href?.startsWith('/');
282
- return joinPath(hasPrefix(href, basePath) ? '' : basePath, isRelativeToBase ? '/' : dirname(router.pathname), href);
273
+ return joinPath(hasPrefix(href)(basePath) ? '' : basePath, isRelativeToBase ? '/' : dirname(router.pathname), href);
283
274
  };
275
+ const isDirectHref = (href) => !href || isURL(href) || isHash(href) || DIRECT_HREF_PREFIXES.some(hasPrefix(href));
284
276
 
285
277
  const isOnlyDigits = (str) => str && !/\D/.test(str);
286
278
 
@@ -369,7 +361,7 @@
369
361
  });
370
362
 
371
363
  /** @deprecated */
372
- const buttonStyleMap$1 = {
364
+ const buttonStyleMap = {
373
365
  primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
374
366
  secondary: 'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
375
367
  white: 'text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main',
@@ -392,7 +384,7 @@
392
384
  /** @deprecated */
393
385
  const buttonStyle$2 = 'text-center font-sans select-none';
394
386
  /** @deprecated */
395
- const iconStyleMap = {
387
+ const iconStyleMap$1 = {
396
388
  primary: 'group-hover/btn:brightness-0 group-hover/btn:invert',
397
389
  secondary: 'group-hover/btn:brightness-0 group-hover/btn:invert',
398
390
  white: 'group-hover/btn:brightness-0 group-hover/btn:invert',
@@ -406,7 +398,7 @@
406
398
  const getRegularButtonClasses = ({ className, rounded, version, }) => [
407
399
  buttonStyle$2,
408
400
  'border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit',
409
- version ? buttonStyleMap$1[version] : '',
401
+ version ? buttonStyleMap[version] : '',
410
402
  rounded ? 'rounded-full' : 'rounded-md',
411
403
  className,
412
404
  ].join(' ');
@@ -487,7 +479,6 @@
487
479
  const adjustBase = (href, basePath = '') => href?.replace(basePath, '') || '/';
488
480
 
489
481
  function useLink() {
490
- const basePath = getBasePath(env.SITE_URL);
491
482
  const router = useRouter();
492
483
  const { closeAll } = useDialogManager();
493
484
  return (props) => {
@@ -496,33 +487,21 @@
496
487
  ...props,
497
488
  href,
498
489
  'aria-label': props.text,
499
- onClick: handlerDecorator(handleHref({ ...props, href })),
490
+ onClick: handlerDecorator((ev) => {
491
+ props.onClick?.(ev);
492
+ const basePath = getBasePath(env.SITE_URL);
493
+ if (isClientRouting(href, props.target, basePath)) {
494
+ closeAll();
495
+ ev?.preventDefault();
496
+ router.push(adjustBase(href, basePath));
497
+ }
498
+ }),
500
499
  };
501
500
  };
502
- function handleHref({ href, target, onClick }) {
503
- return (ev) => {
504
- onClick?.(ev);
505
- if (checkIsRemote(href, target, basePath)) {
506
- //? Native routing
507
- return;
508
- }
509
- closeAll();
510
- //? Client routing
511
- ev?.preventDefault();
512
- router.push(adjustBase(href, basePath));
513
- };
514
- }
515
501
  }
516
- const checkIsRemote = (href, target, basePath) => {
517
- if (!isLocalURL(href, target)) {
518
- return true;
519
- }
520
- const subPortals = env.SUB_PORTALS?.split(',');
521
- if (subPortals?.some((_) => hasPrefix(href, _))) {
522
- return true;
523
- }
524
- return !hasPrefix(href, basePath || '/');
525
- };
502
+ const isClientRouting = (href, target, basePath) => isLocalURL(href, target) &&
503
+ !env.SUB_PORTALS?.split(',')?.some(hasPrefix(href)) &&
504
+ hasPrefix(href)(basePath || '/');
526
505
 
527
506
  const getAspectsAttributes = (data) => {
528
507
  try {
@@ -537,7 +516,7 @@
537
516
  const ButtonInner = JSX((props) => {
538
517
  const { text, aboveText, appendLeft, appendRight, version = 'primary' } = props;
539
518
  const iconHideStyle = isWithText(props) && 'hidden lg:block';
540
- return (jsxs("div", { className: style(buttonStyle$1(props), 'flex gap-xs'), children: [appendLeft ? (jsx("div", { className: style(iconHideStyle, iconStyleMap[version]), children: appendLeft })) : null, isWithText(props) ? (jsxs("div", { className: "whitespace-pre", children: [aboveText ? jsx("div", { className: "text-xs font-light text-left", children: aboveText }) : null, jsx("div", { className: `text-left ${aboveText ? 'text-s -mt-3xs' : 'text-l'}`, children: text })] })) : null, appendRight ? (jsx("div", { className: style(iconHideStyle, iconStyleMap[version]), children: appendRight })) : null] }));
519
+ return (jsxs("div", { className: style(buttonStyle$1(props), 'flex gap-xs'), children: [appendLeft ? (jsx("div", { className: style(iconHideStyle, iconStyleMap$1[version]), children: appendLeft })) : null, isWithText(props) ? (jsxs("div", { className: "whitespace-pre", children: [aboveText ? jsx("div", { className: "text-xs font-light text-left", children: aboveText }) : null, jsx("div", { className: `text-left ${aboveText ? 'text-s -mt-3xs' : 'text-l'}`, children: text })] })) : null, appendRight ? (jsx("div", { className: style(iconHideStyle, iconStyleMap$1[version]), children: appendRight })) : null] }));
541
520
  });
542
521
  const buttonStyle$1 = (props) => {
543
522
  const { version, aboveText, rounded } = props;
@@ -560,7 +539,6 @@
560
539
  className,
561
540
  ].join(' ');
562
541
 
563
- /** @deprecated */
564
542
  const useFormSubmit = ({ method, href }) => useCallback((ev) => {
565
543
  if (method !== 'POST' || !href) {
566
544
  return;
@@ -580,7 +558,7 @@
580
558
  }
581
559
  document.body.appendChild(form);
582
560
  form.submit();
583
- }, []);
561
+ }, [method, href]);
584
562
 
585
563
  /** @deprecated */
586
564
  const LinkButton = JSX(({ disabled, children, method = 'LINK', href, ...rest }) => {
@@ -593,6 +571,7 @@
593
571
  const RegularButton = JSX(({ className = '', href, rel, target, ariaLabel, version, rounded, onClick, type, data, children, text, }) => (jsx("a", { className: getRegularButtonClasses({ className, version, rounded }), href: href, rel: rel, target: target, "aria-label": ariaLabel || `Ссылка на ${text}`, role: href ? 'link' : 'button', onClick: onClick, type: type, ...getAspectsAttributes(data), children: children })));
594
572
  const DisabledButton = JSX(({ className, ariaLabel, version, rounded, children }) => (jsx("button", { type: "button", "aria-disabled": "true", "aria-label": ariaLabel, tabIndex: -1, className: getDisabledButtonClasses({ className, rounded, version }), children: children })));
595
573
 
574
+ // TODO Заменить LinkButton на Button и применить RoundedIcon
596
575
  function renderBackwardButton({ version, handleClick, text = 'Вернуться назад', alwaysVisible = false, }) {
597
576
  if (!text) {
598
577
  return null;
@@ -1293,10 +1272,10 @@
1293
1272
 
1294
1273
  const Input = JSX(
1295
1274
  // eslint-disable-next-line max-lines-per-function
1296
- ({ key, className = '', id, name, type = 'text', label, placeholder, value = '', valid = true, children, onChange, onFocus, onBlur, pattern, autoFocus = false, isTextarea = false, disabled = false, }) => {
1275
+ ({ key, className, id, name, type = 'text', label, placeholder, value = '', valid = true, pattern, autoFocus = false, isTextarea = false, disabled = false, children, onChange, onFocus, onBlur, }) => {
1297
1276
  const inputRef = useRef(null);
1298
1277
  const handleChange = useCallback((e) => {
1299
- const valueWithoutSpace = (e.target?.value || '').trimStart();
1278
+ const valueWithoutSpace = (e.target?.value ?? '').trimStart();
1300
1279
  onChange && onChange(valueWithoutSpace);
1301
1280
  }, [onChange]);
1302
1281
  useEffect(() => {
@@ -1306,7 +1285,8 @@
1306
1285
  }, [autoFocus, inputRef]);
1307
1286
  const paddingStyle = children ? 'pr-3xl' : '';
1308
1287
  const validStyle = getValidStyle(valid);
1309
- return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { className: "space-y-xs", children: [renderLabel(label), isTextarea ? (jsx("textarea", { className: style('block resize-y min-h-24', defaultStyle$1, validStyle), id: style('textarea', id), name: name || id, placeholder: placeholder, value: value, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, disabled: disabled }, key)) : (jsx("input", { type: type, className: style('h-14', defaultStyle$1, paddingStyle, validStyle), ref: inputRef, id: id, name: name || id, placeholder: placeholder, value: value, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, pattern: pattern, disabled: disabled }, key))] }), children] }));
1288
+ const ariaLabel = label ?? name ?? id;
1289
+ return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { className: "space-y-xs", children: [renderLabel(label), isTextarea ? (jsx("textarea", { className: style('block resize-y min-h-24', defaultStyle$1, validStyle), id: style('textarea', id), value: value, name: name || id, placeholder: placeholder, disabled: disabled, "aria-label": ariaLabel, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }, key)) : (jsx("input", { ref: inputRef, className: style('h-14', defaultStyle$1, paddingStyle, validStyle), id: id, type: type, value: value, name: name || id, placeholder: placeholder, pattern: pattern, disabled: disabled, "aria-label": ariaLabel, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }, key))] }), children] }));
1310
1290
  });
1311
1291
  const defaultStyle$1 = 'w-full border rounded-md text-primary-text outline-none p-m';
1312
1292
 
@@ -1574,7 +1554,7 @@
1574
1554
  return inputRef;
1575
1555
  }
1576
1556
 
1577
- const Select = JSX(({ className, label, options = [], value, valid = true, isBorder = true, placeholder = '', isSearch = false, iconVersion = 'black', onChange, disabled = false, }) => {
1557
+ const Select = JSX(({ className, label, options = [], value, valid = true, isBorder = true, placeholder = '', isSearch = false, disabled = false, iconVersion = 'black', onChange, }) => {
1578
1558
  const [isOpen, { setFalse: close, setTrue: open }] = useBool();
1579
1559
  const [query, setQuery] = useState('');
1580
1560
  const isDisabled = getDisabled(disabled, options.length);
@@ -1598,7 +1578,7 @@
1598
1578
  onClose: handleClose,
1599
1579
  iconVersion,
1600
1580
  });
1601
- return (jsxs("div", { className: style('space-y-xs', className), children: [renderLabel(label), jsxs("div", { className: style('relative', hasOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 [&>*]:p-m pr-6 text-l flex items-center justify-between text-primary-text relative z-10 overflow-hidden', getStyle(isBorder, valid, isDisabled)), onClick: hasOpen ? handleClose : handleOpen, children: [jsx("p", { className: "line-clamp-2 text-ellipsis", children: formatOption(value) || placeholder }), renderIcon$1(hasOpen, iconVersion)] }), isSearch && hasOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", autoFocus: true, value: query, onChange: setQuery, disabled: isDisabled }) })) : null] })] }));
1581
+ return (jsxs("div", { className: style('space-y-xs', className), children: [renderLabel(label), jsxs("div", { className: style('relative', hasOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 [&>*]:p-m pr-6 text-l flex items-center justify-between text-primary-text relative z-10 overflow-hidden', getStyle(isBorder, valid, isDisabled)), onClick: hasOpen ? handleClose : handleOpen, children: [jsx("p", { className: "line-clamp-2 text-ellipsis", children: formatOption(value) || placeholder }), renderIcon$1(hasOpen, iconVersion)] }), isSearch && hasOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", value: query, autoFocus: true, disabled: isDisabled, onChange: setQuery }) })) : null] })] }));
1602
1582
  });
1603
1583
  const renderIcon$1 = (isOpen, iconVersion) => (jsx(Icon, { className: style('absolute right-0 flex self-center', { 'rotate-180': !isOpen }), iconVersion: iconVersion, name: "ArrowUpIcon", width: "16", height: "16" }));
1604
1584
  const getStyle = (isBorder, valid, disabled) => style(isBorder ? 'border rounded-md ' : '', isBorder && !disabled ? 'hover:border-primary-hover' : '', disabled ? 'bg-main-divider' : 'cursor-pointer ', valid ? 'border-gray' : 'border-error');
@@ -1861,11 +1841,7 @@
1861
1841
  }, isDisabled ? 'text-gray hover:bg-transparent' : 'cursor-pointer');
1862
1842
 
1863
1843
  const WEEK_DAYS = ['Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб', 'Вс'];
1864
- const Calendar = JSX(({ today, currentMonth, currentYear, min, max, onDateSelect = noop, setValue = noop }) => {
1865
- const handleDateClick = useCallback((date) => {
1866
- onDateSelect(date);
1867
- setValue(false);
1868
- }, []);
1844
+ const Calendar = JSX(({ today, currentMonth, currentYear, min, max, onDateSelect = noop }) => {
1869
1845
  const { firstDayOfWeek, totalDays } = useMemo(() => ({
1870
1846
  firstDayOfWeek: new Date(currentYear, currentMonth, 1).getDay() - 1,
1871
1847
  totalDays: new Date(currentYear, currentMonth + 1, 0).getDate(),
@@ -1878,7 +1854,7 @@
1878
1854
  currentMonth,
1879
1855
  min,
1880
1856
  max,
1881
- onDateClick: handleDateClick,
1857
+ onDateClick: onDateSelect,
1882
1858
  }) })] }));
1883
1859
  });
1884
1860
 
@@ -2073,16 +2049,20 @@
2073
2049
  const DatePicker = JSX(
2074
2050
  // eslint-disable-next-line max-lines-per-function
2075
2051
  ({ className = '', label = '', value, valid = true, minDate, maxDate, disabled, onChange }) => {
2076
- const [showCalendar, { setValue }] = useBool(false);
2052
+ const [isCalendarVisible, { setValue, setFalse: hideCalendar }] = useBool(false);
2077
2053
  const [selectedMonth, setSelectedMonth] = useState(value?.getMonth() || new Date().getMonth());
2078
- const [selectedYear, setSelectedYear] = useState(value?.getFullYear() || new Date().getFullYear());
2054
+ const [selectedYear, setSelectedYear] = useState(value?.getFullYear() ?? new Date().getFullYear());
2055
+ const handleDateSelect = useCallback((date) => {
2056
+ onChange?.(date);
2057
+ hideCalendar();
2058
+ }, [onChange]);
2079
2059
  const { handlePrevMonth, handleNextMonth, handleSelectMonth, handleSelectYear, monthsOptions, yearsOptions, handleChangeVisibleCalendar, ref, } = useDatePickerManager({
2080
2060
  onYearSelect: setSelectedYear,
2081
2061
  onMonthSelect: setSelectedMonth,
2082
2062
  onShowCalendar: setValue,
2083
2063
  selectedYear,
2084
2064
  selectedMonth,
2085
- showCalendar,
2065
+ showCalendar: isCalendarVisible,
2086
2066
  onChange,
2087
2067
  value,
2088
2068
  });
@@ -2095,9 +2075,9 @@
2095
2075
  disabled,
2096
2076
  setSelectedMonth,
2097
2077
  setSelectedYear,
2098
- }), showCalendar && !disabled ? (jsxs("div", { className: style('absolute bg-white z-20 select-none', {
2078
+ }), isCalendarVisible && !disabled ? (jsxs("div", { className: style('absolute bg-white z-20 select-none', {
2099
2079
  'bottom-full': spaceAbove,
2100
- }), children: [jsxs("div", { className: "flex gap-s", children: [jsx("div", { className: "my-auto", onClick: handlePrevMonth, children: jsx(Icon, { ...ICON_PROPS, className: "-rotate-90 cursor-pointer" }) }), jsx(Select, { onChange: handleSelectMonth, value: { key: months[selectedMonth] }, options: monthsOptions, ...SELECT_PROPS }), jsx(Select, { onChange: handleSelectYear, value: { key: String(selectedYear) }, options: yearsOptions, ...SELECT_PROPS }), jsx("div", { className: "my-auto", onClick: handleNextMonth, children: jsx(Icon, { ...ICON_PROPS, className: "rotate-90 cursor-pointer" }) })] }), jsx(Calendar, { today: value, currentMonth: selectedMonth, currentYear: selectedYear, onDateSelect: onChange, min: minDate, max: maxDate, setValue: setValue })] })) : null] })] }));
2080
+ }), children: [jsxs("div", { className: "flex gap-s", children: [jsx("div", { className: "my-auto", onClick: handlePrevMonth, children: jsx(Icon, { ...ICON_PROPS, className: "-rotate-90 cursor-pointer" }) }), jsx(Select, { onChange: handleSelectMonth, value: { key: months[selectedMonth] }, options: monthsOptions, ...SELECT_PROPS }), jsx(Select, { onChange: handleSelectYear, value: { key: String(selectedYear) }, options: yearsOptions, ...SELECT_PROPS }), jsx("div", { className: "my-auto", onClick: handleNextMonth, children: jsx(Icon, { ...ICON_PROPS, className: "rotate-90 cursor-pointer" }) })] }), jsx(Calendar, { today: value, currentMonth: selectedMonth, currentYear: selectedYear, min: minDate, max: maxDate, onDateSelect: handleDateSelect })] })) : null] })] }));
2101
2081
  });
2102
2082
 
2103
2083
  const DatePickerControl = JSX(({ className, label, error, errors, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(DatePicker, { label: getRequiredLabel({ label, errors }), valid: Boolean(!error), ...rest }), renderErrorText(error)] })));
@@ -2134,9 +2114,9 @@
2134
2114
  onChange && onChange(!value);
2135
2115
  }, [onChange, disabled, value]);
2136
2116
  const icon = isRadio ? (jsx("div", { className: "absolute left-1 w-3 h-3 rounded-full bg-primary-main" })) : (jsx(SVG, { paths: CHECK_PATHS, className: "absolute left-1 ml-px block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" }));
2137
- return (jsx("div", { className: className, children: jsxs("label", { className: style('flex items-center relative group/box', getCursorStyle(disabled)), onClick: handleChange, children: [jsx("div", { className: style(defaultCheckStyle, 'm-0', isRadio ? 'rounded-full border-2' : checkboxStyle(value), !disabled && value ? 'border-primary-main' : 'border-gray', disabled ? 'bg-main-disabled' : 'group-hover/box:border-primary-hover'), role: role(isRadio), "aria-checked": Boolean(value), "aria-disabled": Boolean(disabled), "aria-label": text }), value ? icon : null, renderText$2(text)] }) }));
2117
+ return (jsx("div", { className: className, children: jsxs("label", { className: style('flex items-center relative group/box', getCursorStyle(disabled)), onClick: handleChange, children: [jsx("div", { className: style(defaultCheckStyle, 'm-0', isRadio ? 'rounded-full border-2' : checkboxStyle(value), !disabled && value ? 'border-primary-main' : 'border-gray', disabled ? 'bg-main-disabled' : 'group-hover/box:border-primary-hover'), role: role(isRadio), "aria-checked": Boolean(value), "aria-disabled": Boolean(disabled), "aria-label": text }), value ? icon : null, renderText$3(text)] }) }));
2138
2118
  });
2139
- const renderText$2 = (text) => text ? (jsx("div", { className: "ml-s", children: jsx(Text, { size: "text-l", font: "font-light", children: text }) })) : null;
2119
+ const renderText$3 = (text) => text ? (jsx("div", { className: "ml-s", children: jsx(Text, { size: "text-l", font: "font-light", children: text }) })) : null;
2140
2120
  const getCursorStyle = (disabled = false) => (disabled ? 'cursor-not-allowed' : 'cursor-pointer');
2141
2121
  const role = (isRadio = false) => (isRadio ? 'radio' : 'checkbox');
2142
2122
  const checkboxStyle = (value = false) => style('rounded border', { 'bg-primary-main': value });
@@ -2893,26 +2873,32 @@
2893
2873
 
2894
2874
  const renderTitle = (title) => title ? (jsx("div", { className: "@xl:text-center @xl:col-span-2 mb-m", children: jsx(Text, { size: "text-h6", children: title }) })) : null;
2895
2875
 
2896
- const buttonStyleMap = {
2897
- primary: style('justify-center px-9 py-4', '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'),
2898
- secondary: style('justify-center px-9 py-4', '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'),
2899
- };
2900
- const embeddedStyle = style('group/btn-embedded', 'justify-between p-0', 'bg-transparent border border-transparent outline-none');
2901
- const Button = JSX(({ className, type = 'button', version = 'primary', embedded, rounded = true, disabled, role, data, dataTheme, children, onClick, }) => {
2902
- const handleClick = useCallback(handlerDecorator((ev) => {
2903
- !disabled && onClick?.(ev);
2904
- }), [disabled, onClick]);
2876
+ const themeStyle$1 = {
2877
+ primary: style('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'),
2878
+ secondary: style('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'),
2879
+ };
2880
+ const embeddedStyle = style('group/btn-embedded', 'bg-transparent border border-transparent outline-none');
2881
+ const disabledStyle = style('bg-main-gray text-main-disabled cursor-not-allowed');
2882
+ const Button = JSX(({ className, type = 'button', version = 'primary', shape = 'default', embedded, disabled, role, ariaLabel, data, dataTheme, children, onClick = noop, }) => {
2883
+ const handleClick = useCallback(role !== 'tab' ? handlerDecorator(onClick) : onClick, [
2884
+ role,
2885
+ onClick,
2886
+ ]);
2905
2887
  const aspectsAttrs = useMemo(() => getAspectsAttributes(data), [data]);
2906
- return (jsx("button", { className: style('font-sans flex items-center gap-xs relative', !disabled && !embedded && buttonStyleMap[version], {
2888
+ const isRound = shape === 'round';
2889
+ return (jsx("button", { className: style('font-sans flex items-center gap-xs', {
2890
+ [themeStyle$1[version]]: !disabled && !embedded,
2907
2891
  [embeddedStyle]: embedded,
2908
- 'rounded-md': rounded,
2909
- 'bg-main-gray text-main-disabled cursor-not-allowed': disabled,
2910
- }, className), type: type, role: role, "data-theme": dataTheme, ...aspectsAttrs, onClick: handleClick, children: children }));
2892
+ [disabledStyle]: disabled,
2893
+ }, embedded ? 'justify-between' : 'justify-center', embedded || isRound ? 'p-0' : 'px-9 py-4', {
2894
+ 'rounded-md': shape === 'default',
2895
+ 'rounded-full': isRound,
2896
+ }, className), type: type, role: role, "aria-label": ariaLabel, disabled: disabled, "aria-disabled": disabled ? 'true' : undefined, "data-theme": dataTheme, ...aspectsAttrs, onClick: handleClick, children: children }));
2911
2897
  });
2912
2898
 
2913
2899
  const CloseButton = JSX(({ className, onClose }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none', className), onClick: onClose, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", type: "button", children: jsx(Icon, { name: "CloseIcon", width: "20", height: "20", iconVersion: "gray" }) })));
2914
2900
 
2915
- const Dialog = JSX(({ className, head, children, onClose, onClick }) => (jsxs("div", { className: style('relative bg-white pt-0 p-lg', className), role: "dialog", onClick: onClick, children: [jsxs("div", { className: "sticky py-xl top-0 bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-0 right-0", onClose: onClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] })));
2901
+ const Dialog = JSX(({ className, head, children, onClose, onClick }) => (jsxs("div", { className: style('relative bg-white pt-0 p-lg', className), role: "dialog", title: "\u0414\u0438\u0430\u043B\u043E\u0433", onClick: onClick, children: [jsxs("div", { className: "sticky py-xl top-0 bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-0 right-0", onClose: onClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] })));
2916
2902
 
2917
2903
  const ResponseTypeDialog = JSX(({ ok, typeForm, onClose }) => {
2918
2904
  const statusIcon = ok ? 'ResponseOKIcon' : 'ResponseFailIcon';
@@ -3002,7 +2988,28 @@
3002
2988
 
3003
2989
  const SubmitButton$1 = JSX(({ isLoading, disabled, children, ...rest }) => (jsxs(Button, { type: "submit", disabled: isLoading || disabled, ...rest, children: [isLoading ? jsx(Loader, { blur: true, size: "small" }) : null, children] })));
3004
2990
 
3005
- const Footnote = JSX(({ text, link }) => (jsxs(Paragraph, { size: "text-l", font: "font-light", color: "text-secondary-text", children: [text ? jsx(Text, { children: text }) : null, link ? (jsx(LinkButton, { href: link.href, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", target: link.target || '', className: "!text-left text-primary-main", children: jsx(Text, { children: link.text }) })) : null] })));
2991
+ const themeStyle = {
2992
+ primary: themeStyle$1.primary,
2993
+ secondary: themeStyle$1.secondary,
2994
+ white: 'text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main',
2995
+ link: 'text-primary-main',
2996
+ gray: themeStyle$1.secondary,
2997
+ transparent: '',
2998
+ '': '',
2999
+ };
3000
+ const Link = JSX((props) => {
3001
+ const link = useLink();
3002
+ const { className, href, target, text, aboveText, version = 'link', rel, ariaLabel, data, children, onClick, } = link(props);
3003
+ const buttonLike = version !== 'link';
3004
+ return (jsx("a", { className: style('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', {
3005
+ [themeStyle[version]]: Boolean(version),
3006
+ [aboveText ? 'px-9 py-2.5' : 'px-9 py-4']: buttonLike,
3007
+ 'rounded-md': buttonLike,
3008
+ }, className), href: href, target: target, rel: rel, "aria-label": ariaLabel ?? `Ссылка на ${text}`, role: href ? 'link' : 'button', onClick: onClick, ...getAspectsAttributes(data), children: children ?? renderText$2(text, aboveText) }));
3009
+ });
3010
+ const renderText$2 = (text, aboveText) => text || aboveText ? (jsxs("div", { className: "whitespace-pre", children: [aboveText ? jsx("div", { className: "font-light text-left text-xs", children: aboveText }) : null, jsx("div", { className: style('text-left', { 'text-s -mt-3xs': Boolean(aboveText) }), children: text })] })) : null;
3011
+
3012
+ const Footnote = JSX(({ text, link }) => (jsxs(Paragraph, { size: "text-l", font: "font-light", color: "text-secondary-text", children: [text ? jsx(Text, { children: text }) : null, link ? (jsx(Link, { ...link, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", children: link.text })) : null] })));
3006
3013
 
3007
3014
  const agreementText = 'Нажимая кнопку, вы подтверждаете согласие с ';
3008
3015
  const renderAgreementSubmit = (consentDataProcessing, link, button) => (jsxs("div", { className: "flex col-span-2 gap-xs flex-col w-full items-baseline", children: [consentDataProcessing ? (jsxs("div", { children: [jsxs("div", { className: "flex gap-3 items-center", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, { link: link })] }), renderErrorText(withValidator(consentDataProcessing, agreementValidator).error)] })) : (jsx(Footnote, { text: agreementText, link: link })), jsx(SubmitButton$1, { className: "w-full @xl:w-auto", children: button?.text ? button.text : 'Отправить заявку' })] }));
@@ -3399,14 +3406,14 @@
3399
3406
 
3400
3407
  const CardRow = JSX(({ className, children }) => (jsx("div", { className: style('flex flex-col sm:flex-row sm:border-t sm:border-solid sm:border-main-divider py-xl gap-x-6xl gap-y-xl', className), children: children })));
3401
3408
 
3402
- const ButtonTitle = JSX(({ className, children }) => (jsx("span", { className: style('inline-flex items-center text-start gap-s group-hover/btn-embedded:text-primary-main', className), children: children })));
3409
+ const ButtonTitle = JSX(({ className, children }) => (jsx("span", { className: style('inline-flex items-center text-start gap-s group-[]/btn-embedded:text-primary-main', className), children: children })));
3403
3410
 
3404
3411
  const ToggleIcon = JSX(({ isUnfolded, ...rest }) => (jsx(Icon, { name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', size: "small", iconVersion: "", ...rest })));
3405
3412
 
3406
- const DefaultFoldButton = JSX(({ className, isUnfolded, label = isUnfolded ? 'Скрыть' : 'Развернуть', embedded, ...rest }) => (jsxs(Button, { className: style({ 'text-h4': !embedded }, className), rounded: false, embedded: embedded, ...rest, children: [jsx(ButtonTitle, { children: label }), jsx(ToggleIcon, { isUnfolded: isUnfolded, iconVersion: embedded ? 'color' : '' })] })));
3413
+ const DefaultFoldButton = JSX(({ className, isUnfolded, short, label = isUnfolded ? 'Скрыть' : 'Развернуть', embedded, ...rest }) => (jsxs(Button, { className: style({ 'w-full': !short }, className), embedded: embedded, shape: short ? 'default' : 'square', role: "tab", "aria-label": "\u041A\u043D\u043E\u043F\u043A\u0430 \u0441\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u044E\u0449\u0435\u0439\u0441\u044F \u0441\u0435\u043A\u0446\u0438\u0438", ...rest, children: [jsx(ButtonTitle, { children: label }), jsx(ToggleIcon, { isUnfolded: isUnfolded, iconVersion: embedded ? 'color' : '' })] })));
3407
3414
 
3408
3415
  // TODO Не особо полезно, в итоге
3409
- const Foldable = JSX(({ className, role = 'group', children }) => (jsx("div", { className: style(className), role: role, children: children })));
3416
+ const Foldable = JSX(({ className, role = 'tablist', children }) => (jsx("div", { className: style(className), role: role, children: children })));
3410
3417
 
3411
3418
  function useResizeObserver(callback, deps) {
3412
3419
  const ref = useRef(null);
@@ -3426,7 +3433,7 @@
3426
3433
  return ref;
3427
3434
  }
3428
3435
 
3429
- const FoldableSection = JSX(({ className = '', isUnfolded, children }) => {
3436
+ const FoldableSection = JSX(({ className, isUnfolded, children }) => {
3430
3437
  const containerRef = useRef(null);
3431
3438
  const childrenWrapperRef = useResizeObserver((childrenWrapperEl) => {
3432
3439
  if (containerRef.current) {
@@ -3435,12 +3442,14 @@
3435
3442
  : '';
3436
3443
  }
3437
3444
  }, [isUnfolded]);
3438
- return (jsx("div", { ref: containerRef, className: `transition-max-h duration-300 overflow-hidden ${containerRef.current || !isUnfolded ? 'max-h-0' : ''} `, children: jsx("div", { className: className, ref: childrenWrapperRef, children: children }) }));
3445
+ return (jsx("div", { ref: containerRef, className: style('transition-max-h duration-300 overflow-hidden', {
3446
+ 'max-h-0': Boolean(containerRef.current || !isUnfolded),
3447
+ }), role: "tabpanel", "aria-label": "\u0421\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u044E\u0449\u0430\u044F\u0441\u044F \u0441\u0435\u043A\u0446\u0438\u044F", children: jsx("div", { className: className, ref: childrenWrapperRef, children: children }) }));
3439
3448
  });
3440
3449
 
3441
3450
  const FoldableCardContent = JSX(({ children }) => {
3442
3451
  const [isUnfolded, { toggle }] = useBool(false);
3443
- return (jsxs("div", { children: [jsx("div", { className: "hidden sm:block", children: children }), jsxs(Foldable, { className: "block sm:hidden", children: [jsx(FoldableSection, { isUnfolded: isUnfolded, children: children }), jsx(DefaultFoldButton, { className: "w-full my-m mr-m border-b border-solid border-main-divider", label: isUnfolded ? 'Скрыть' : 'Подробнее', isUnfolded: isUnfolded, embedded: true, onClick: toggle })] })] }));
3452
+ return (jsxs("div", { children: [jsx("div", { className: "hidden sm:block", children: children }), jsxs(Foldable, { className: "block sm:hidden", children: [jsx(FoldableSection, { isUnfolded: isUnfolded, children: children }), jsx(DefaultFoldButton, { className: "my-m mr-m border-b border-solid border-main-divider", label: isUnfolded ? 'Скрыть' : 'Подробнее', isUnfolded: isUnfolded, embedded: true, onClick: toggle })] })] }));
3444
3453
  });
3445
3454
 
3446
3455
  const getScheduleDescription = (workScheduleWeek) => {
@@ -3774,7 +3783,7 @@
3774
3783
  return [storedValue, setValue];
3775
3784
  }
3776
3785
 
3777
- const InfoCard = JSX(({ __html, icon = 'InfoCircleIcon', iconVersion = 'black', link }) => (jsxs("div", { className: "flex flex-row items-center w-full min-h-14 bg-main-gray rounded-lg gap-m p-m", children: [jsx("div", { className: "rounded-full bg-white p-xs", children: jsx(Icon, { name: icon, width: "24", height: "24", iconVersion: iconVersion }) }), jsxs("div", { className: "", children: [jsx(RichText, { __html: __html }), link?.text ? jsx(LinkButton, { className: "text-primary-main", children: link.text }) : null] })] })));
3786
+ const InfoCard = JSX(({ __html, icon = 'InfoCircleIcon', iconVersion = 'black' }) => (jsxs("div", { className: "flex flex-row items-center w-full min-h-14 bg-main-gray rounded-lg gap-m p-m", children: [jsx("div", { className: "rounded-full bg-white p-xs", children: jsx(Icon, { name: icon, width: "24", height: "24", iconVersion: iconVersion }) }), jsx("div", { className: "", children: jsx(RichText, { __html: __html }) })] })));
3778
3787
 
3779
3788
  const CardCategoryField = JSX(({ field, input }) => {
3780
3789
  const [cardTypes, setCardTypes] = useState([]);
@@ -3840,10 +3849,13 @@
3840
3849
  };
3841
3850
 
3842
3851
  // TODO Перенесено как есть из openDocument. Требует рефакторинга
3843
- const DocumentDialog = JSX(({ src, convertToPng, onClose, onDocumentRead }) => (jsxs(Dialog, { className: "my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0", onClose: onClose, children: [convertToPng ? (jsx("img", { src: src })) : (jsx("iframe", { src: `${src}#toolbar=0`, className: "w-full h-[80vh]", id: "iframe-dialog" })), jsx(Button, { className: "mx-auto mt-m", type: "button", onClick: () => {
3844
- onDocumentRead?.();
3845
- onClose?.();
3846
- }, children: "\u041E\u0437\u043D\u0430\u043A\u043E\u043C\u0438\u0442\u044C\u0441\u044F" })] })));
3852
+ const DocumentDialog = JSX(({ src, onClose, onDocumentRead }) => {
3853
+ const isMobileMode = useMobileMode();
3854
+ return (jsxs(Dialog, { className: "my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0", onClose: onClose, children: [isMobileMode ? (jsx("img", { src: src })) : (jsx("iframe", { src: `${src}#toolbar=0`, className: "w-full h-[80vh]", id: "iframe-dialog" })), jsx(Button, { className: "mx-auto mt-m", type: "button", onClick: () => {
3855
+ onDocumentRead?.();
3856
+ onClose?.();
3857
+ }, children: "\u041E\u0437\u043D\u0430\u043A\u043E\u043C\u0438\u0442\u044C\u0441\u044F" })] }));
3858
+ });
3847
3859
 
3848
3860
  const useDocumentDialog = (docId, onDocumentRead) => {
3849
3861
  const { open } = useDialog(DocumentDialog);
@@ -3856,10 +3868,9 @@
3856
3868
  }, [open, docId, isMobileMode]);
3857
3869
  };
3858
3870
 
3859
- const OPEN_DOC_BUTTON_TEXT = 'Ознакомиться';
3860
3871
  const CheckboxWithDoc = JSX(({ className, error, docId, ...props }) => {
3861
3872
  const openDocument = useDocumentDialog(docId, () => props.onChange?.(true));
3862
- return (jsxs("div", { className: className, children: [jsxs("div", { className: "flex flex-wrap gap-x-m", children: [jsx(Checkbox, { ...props }), docId ? (jsx(LinkButton, { className: "text-primary-main", onClick: openDocument, children: jsx(Text, { children: OPEN_DOC_BUTTON_TEXT }) })) : null] }), renderErrorText(error)] }));
3873
+ return (jsxs("div", { className: className, children: [jsxs("div", { className: "flex flex-wrap gap-x-m", children: [jsx(Checkbox, { ...props }), docId ? (jsx(Button, { embedded: true, onClick: openDocument, children: jsx(ButtonTitle, { children: "\u041E\u0437\u043D\u0430\u043A\u043E\u043C\u0438\u0442\u044C\u0441\u044F" }) })) : null] }), renderErrorText(error)] }));
3863
3874
  });
3864
3875
 
3865
3876
  const ConsentField = JSX(({ field, input }) => input && input.name ? (jsx(CheckboxWithDoc, { text: CONSENTS[input.name]?.text, docId: CONSENTS[input.name]?.docId, ...field(input.name) })) : null);
@@ -4523,7 +4534,7 @@
4523
4534
  ?.filter((_) => _.required)
4524
4535
  ?.some((_) => Boolean(withValidator(field(_?.name), validatorObj[_?.name]).error)), [inputs]);
4525
4536
  const [isUnfolded, { toggle }] = useBool(true);
4526
- return (jsx("div", { className: "w-fit", children: jsxs(Foldable, { children: [jsxs("div", { className: "flex items-start", children: [jsxs("div", { children: [jsx(Checkbox, { text: CONSENT_ALL_DOCS_TEXT, value: isChecked, onChange: handleGeneralToggle }, key), renderErrorText(hasValidationErrors ? CONSENT_REQUIRED : '')] }), jsx(Button, { embedded: true, onClick: toggle, children: jsx(ToggleIcon, { className: "p-2xs", iconVersion: "color", isUnfolded: isUnfolded }) })] }), jsx(FoldableSection, { className: "flex flex-col pl-2xl", isUnfolded: isUnfolded, children: inputs.map(getField(field, {}, InputsConsentsMap)) })] }) }));
4537
+ return (jsx("div", { className: "w-fit", children: jsxs(Foldable, { children: [jsxs("div", { className: "flex items-start", children: [jsxs("div", { children: [jsx(Checkbox, { text: CONSENT_ALL_DOCS_TEXT, value: isChecked, onChange: handleGeneralToggle }, key), renderErrorText(hasValidationErrors ? CONSENT_REQUIRED : '')] }), jsx(Button, { embedded: true, ariaLabel: CONSENT_ALL_DOCS_TEXT, onClick: toggle, children: jsx(ToggleIcon, { className: "p-2xs", iconVersion: "color", isUnfolded: isUnfolded }) })] }), jsx(FoldableSection, { className: "flex flex-col pl-2xl", isUnfolded: isUnfolded, children: inputs.map(getField(field, {}, InputsConsentsMap)) })] }) }));
4527
4538
  });
4528
4539
 
4529
4540
  const renderInputs$2 = ({ field, inputs }) => {
@@ -4645,26 +4656,49 @@
4645
4656
  return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", head: jsx(Logo, {}), onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [jsxs("div", { className: "flex h-36 w-72", children: [jsx("img", { className: "grow", src: captcha }), jsx(Button, { className: "w-8", embedded: true, onClick: handleCreateCaptcha, children: jsx(Icon, { iconVersion: "normal", name: "RefreshIcon" }) })] }), jsx(Input, { className: "w-[300px]", onChange: setCode, value: code, placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0434 \u0441 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438" }), hasError ? jsx("div", { className: "text-error", children: "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434" }) : null, jsxs("div", { className: "flex w-[310px] justify-between", children: [jsx(Button, { version: "secondary", onClick: close, children: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F" }), jsx(SubmitButton$1, { version: "secondary", disabled: !code, onClick: handleCheckCaptcha, children: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C" })] }), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
4646
4657
  });
4647
4658
 
4648
- const Timer = JSX(({ time, setTime, className }) => {
4659
+ const Timer = JSX(({ className, seconds }) => (jsx("span", { className: className, children: formatTimer(seconds) })));
4660
+ const formatTimer = (seconds) => {
4661
+ const minutes = Math.floor(seconds / 60);
4662
+ return [minutes, seconds % 60].map((_) => String(_).padStart(2, '0')).join(':');
4663
+ };
4664
+
4665
+ const useInterval = (handler, period) => {
4666
+ const timer = useRef(null);
4667
+ const stop = useCallback(() => clearInterval(timer.current), []);
4668
+ const start = useCallback(() => {
4669
+ stop();
4670
+ timer.current = setInterval(() => handler(stop), period);
4671
+ }, [handler, period, stop]);
4649
4672
  useEffect(() => {
4650
- const timer = setInterval(() => {
4651
- setTime(time - 1);
4652
- }, 1000);
4653
- if (time === 0) {
4654
- clearInterval(timer);
4655
- }
4656
- return () => {
4657
- clearInterval(timer);
4658
- };
4659
- }, [time]);
4660
- return jsx("span", { className: className, children: secondsToMinSecPadded(time) });
4661
- });
4662
- const secondsToMinSecPadded = (time) => {
4663
- const minutes = `${Math.floor(time / 60)}`.padStart(2, '0');
4664
- const seconds = `${time % 60}`.padStart(2, '0');
4665
- return `${minutes}:${seconds}`;
4673
+ start();
4674
+ return stop;
4675
+ }, [start, stop]);
4676
+ return { start, stop };
4666
4677
  };
4667
4678
 
4679
+ function useCountDownTimer({ seconds, period = 1000, onTick, onEnd }) {
4680
+ const counter = useRef(seconds);
4681
+ const handleTick = useCallback((stop) => {
4682
+ counter.current ||= 0;
4683
+ counter.current = Math.max(0, counter.current - 1);
4684
+ try {
4685
+ onTick?.(counter.current);
4686
+ }
4687
+ finally {
4688
+ if (counter.current <= 0) {
4689
+ stop();
4690
+ onEnd?.();
4691
+ }
4692
+ }
4693
+ }, [onTick, onEnd]);
4694
+ const { start } = useInterval(handleTick, period);
4695
+ const restart = useCallback((_) => {
4696
+ counter.current = _;
4697
+ start();
4698
+ }, []);
4699
+ return restart;
4700
+ }
4701
+
4668
4702
  const InputCode = JSX(({ values, setValues, hasError, errorText }) => {
4669
4703
  const [activeIndex, setActiveIndex] = useState(0);
4670
4704
  const inputRefs = useRef([]);
@@ -4767,6 +4801,7 @@
4767
4801
  const { handleSubmit, hasError, errorText, isLoading, timeNextReq, isSubmitButtonDisabled, setTimeNextReq, setIsTimerStarted, setAttempts, } = useVerifyPhoneDialogSubmit({ values, onSuccess });
4768
4802
  const captchaDialog = useDialog(CaptchaDialog);
4769
4803
  const phoneNumber = formatPhone(phone);
4804
+ const restartTimer = useCountDownTimer({ seconds: timeNextReq, onTick: setTimeNextReq });
4770
4805
  const handleSendCode = useCallback(async () => {
4771
4806
  const isSuccessSendCode = await sendCode({
4772
4807
  phoneNumber,
@@ -4775,19 +4810,20 @@
4775
4810
  if (isSuccessSendCode) {
4776
4811
  setAttempts(0);
4777
4812
  setTimeNextReq(180);
4813
+ restartTimer(180);
4778
4814
  setIsTimerStarted(true);
4779
4815
  }
4780
4816
  else {
4781
4817
  captchaDialog.open({ phoneNumber, sendCode: handleSendCode });
4782
4818
  }
4783
- }, [phoneNumber, onClose]);
4819
+ }, [phoneNumber, restartTimer, onClose]);
4784
4820
  useEffect(() => {
4785
4821
  handleSendCode();
4786
4822
  }, []);
4787
- return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl p-m", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [jsx(Headline, { className: "w-full", title: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430", description: `Мы отправили код на ${phone}`, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText$1(timeNextReq, setTimeNextReq, handleSendCode), withDescription ? (jsxs(RichText, { itemSize: "list-s", children: [jsx("span", { children: "\u0412\u0432\u043E\u0434\u044F \u043A\u043E\u0434, \u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E, \u0447\u0442\u043E \u043E\u0437\u043D\u0430\u043A\u043E\u043C\u043B\u0435\u043D \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u044B\u0432\u0430\u044E: " }), jsx("ul", { children: consents?.map((_, i) => (jsx("li", { children: _ }, `${_}-${i}`))) })] })) : null, renderNextButton(isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
4823
+ return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl p-m", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [jsx(Headline, { className: "w-full", title: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430", description: `Мы отправили код на ${phone}`, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText$1(timeNextReq, handleSendCode), withDescription ? (jsxs(RichText, { itemSize: "list-s", children: [jsx("span", { children: "\u0412\u0432\u043E\u0434\u044F \u043A\u043E\u0434, \u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E, \u0447\u0442\u043E \u043E\u0437\u043D\u0430\u043A\u043E\u043C\u043B\u0435\u043D \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u044B\u0432\u0430\u044E: " }), jsx("ul", { children: consents?.map((_, i) => (jsx("li", { children: _ }, `${_}-${i}`))) })] })) : null, renderNextButton(isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
4788
4824
  });
4789
4825
  const renderNextButton = (isDisabled, onClick) => (jsx(SubmitButton, { text: "\u0414\u0430\u043B\u0435\u0435", isDisabled: isDisabled, onClick: onClick }));
4790
- const renderText$1 = (timeNextReq, setTimeNextReq, handleSendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-base", children: ["\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437", jsx(Timer, { className: "text-base ml-1", time: timeNextReq, setTime: setTimeNextReq })] })) : (jsx(LinkButton, { onClick: handleSendCode, className: "text-primary-main", children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }));
4826
+ const renderText$1 = (timeNextReq, handleSendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-base", children: ["\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437", jsx(Timer, { className: "ml-1", seconds: timeNextReq })] })) : (jsx(Button, { embedded: true, onClick: handleSendCode, children: jsx(ButtonTitle, { children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }) }));
4791
4827
 
4792
4828
  const defaultConsentText = {
4793
4829
  title: 'Подпишите согласие на запрос в БКИ',
@@ -5487,7 +5523,7 @@
5487
5523
  ? [blocksToRender.slice(0, topItemsCount), blocksToRender.slice(topItemsCount)]
5488
5524
  : [blocksToRender, []];
5489
5525
  const [isUnfolded, { toggle }] = useBool(false);
5490
- return (jsxs("div", { className: style('space-y-2xs', { hidden: !blocksToRender.length }), children: [jsxs("div", { className: style(resultsGridStyle), children: [renderBlocksList(visibleBlocks, { ...rest.options, parent: block }), isOdd(visibleBlocks.length) ? jsx(AdTile, { className: "col-span-6", ...rest }) : null] }), jsxs(Foldable, { children: [jsxs(FoldableSection, { className: style(resultsGridStyle), isUnfolded: isUnfolded, children: [renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }), isOdd(hiddenBlocks.length) ? jsx(AdTile, { className: "col-span-6", ...rest }) : null] }), jsx(DefaultFoldButton, { className: style('w-full', { hidden: topItemsCount < 1 }), label: label, isUnfolded: isUnfolded, disabled: !hiddenBlocks?.length, dataTheme: rest.options?.page?.colorPalette, onClick: toggle })] })] }));
5526
+ return (jsxs("div", { className: style('space-y-2xs', { hidden: !blocksToRender.length }), children: [jsxs("div", { className: style(resultsGridStyle), children: [renderBlocksList(visibleBlocks, { ...rest.options, parent: block }), isOdd(visibleBlocks.length) ? jsx(AdTile, { className: "col-span-6", ...rest }) : null] }), jsxs(Foldable, { children: [jsxs(FoldableSection, { className: style(resultsGridStyle), isUnfolded: isUnfolded, children: [renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }), isOdd(hiddenBlocks.length) ? jsx(AdTile, { className: "col-span-6", ...rest }) : null] }), jsx(DefaultFoldButton, { className: style('text-h4', { hidden: topItemsCount < 1 }), label: label, isUnfolded: isUnfolded, disabled: !hiddenBlocks?.length, dataTheme: rest.options?.page?.colorPalette, onClick: toggle })] })] }));
5491
5527
  });
5492
5528
 
5493
5529
  const getBorderStyle = (showBorder = false) => showBorder
@@ -5709,20 +5745,18 @@
5709
5745
  behavior: isAuto ? 'auto' : 'smooth',
5710
5746
  });
5711
5747
 
5748
+ const IconButton = JSX(({ className, name, ...props }) => (jsx(Button, { className: style('w-12 h-12 min-w-12 min-h-12', className), shape: "round", ...props, children: jsx(Icon, { name: name, iconVersion: "", size: "small" }) })));
5749
+
5712
5750
  /** @deprecated */
5713
- const ArrowButton = JSX(({ className, disabled, ...rest }) => (jsx(LinkButton, { rounded: true, className: style('group/btn w-12 h-12 min-h-12 max-h-12 flex items-center justify-center shadow-main-black', disabled
5714
- ? 'bg-secondary-light text-secondary-text'
5715
- : 'bg-white text-primary-text hover:text-primary-main', className), disabled: disabled, ...rest, children: jsx(Img, { className: "w-4 h-4 min-w-4 min-h-4 rounded-full box-border", image: { icon: 'ArrowLeftIcon', iconVersion: 'black' }, imageClassName: "group-hover/btn:text-primary-main", width: "16", height: "16" }) })));
5716
- /** @deprecated */
5717
- const ScrollLeftButton = JSX((props) => (jsx(ArrowButton, { ...props, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left" })));
5751
+ const ArrowLeftButton = JSX((props) => (jsx(IconButton, { name: "ArrowLeftIcon", version: "secondary", ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", ...props })));
5718
5752
  /** @deprecated */
5719
- const ScrollRightButton = JSX((props) => (jsx(ArrowButton, { ...props, className: `${props.className || ''} rotate-180`, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right" })));
5753
+ const ArrowRightButton = JSX((props) => (jsx(IconButton, { name: "ArrowRightIcon", version: "secondary", ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", ...props })));
5720
5754
 
5721
5755
  const blurBaseStyle = 'absolute top-0 bottom-0 z-40 hidden @lg:block w-20 pointer-events-none';
5722
5756
  const SwipeListScrollButtons = JSX(({ className, scroll, hasBlur, arrowsPadded, isBottom }) => {
5723
5757
  const { canScrollLeft, canScrollRight, scrollLeft, scrollRight } = scroll;
5724
5758
  const isArrowPadded = arrowsPadded && !isBottom;
5725
- return (jsxs("div", { className: className, children: [hasBlur ? renderBlur(scroll) : null, canScrollLeft ? (jsx(ScrollLeftButton, { className: style(buttonStyle(isBottom), isArrowPadded ? 'left-1' : 'left-0'), onClick: scrollLeft })) : null, canScrollRight ? (jsx(ScrollRightButton, { className: style(buttonStyle(isBottom), isArrowPadded ? 'right-1' : 'right-0'), onClick: scrollRight })) : null] }));
5759
+ return (jsxs("div", { className: className, children: [hasBlur ? renderBlur(scroll) : null, canScrollLeft ? (jsx(ArrowLeftButton, { className: style(buttonStyle(isBottom), isArrowPadded ? 'left-1' : 'left-0'), onClick: scrollLeft })) : null, canScrollRight ? (jsx(ArrowRightButton, { className: style(buttonStyle(isBottom), isArrowPadded ? 'right-1' : 'right-0'), onClick: scrollRight })) : null] }));
5726
5760
  });
5727
5761
  const renderBlur = (scroll) => (jsxs("div", { children: [scroll.canScrollLeft ? (jsx("div", { className: style(blurBaseStyle, 'left-0 bg-opacity-from-white group-data-secondary:bg-none') })) : null, scroll.canScrollRight ? (jsx("div", { className: style(blurBaseStyle, 'right-0 bg-opacity-to-white group-data-secondary:bg-none') })) : null] }));
5728
5762
  const buttonStyle = (isBottom = false) => style('absolute z-40', isBottom ? 'bottom-[56px]' : 'top-[calc(50%-24px)]');
@@ -5877,18 +5911,16 @@
5877
5911
 
5878
5912
  const getAlignStyles = (isMobile = false) => (isMobile ? 'text-left' : 'text-center');
5879
5913
 
5880
- const iconBgStyles = {
5914
+ const DEFAULT_ICON_SIZE = 44;
5915
+ const iconStyleMap = {
5881
5916
  '': 'bg-main-divider group-data-secondary:bg-white/30',
5882
5917
  primary: 'bg-main-divider',
5883
5918
  secondary: 'bg-secondary-light',
5884
5919
  opacity: 'bg-white/30',
5885
5920
  };
5886
- const RoundedIcon = JSX(({ className, defaultIconSize = 44, iconBgVersion = 'primary', size, icon, ...rest }) => {
5887
- const widthAndHeight = String(size?.width || defaultIconSize);
5888
- return icon ? (jsx("div", { style: {
5889
- width: `${widthAndHeight}px`,
5890
- height: `${widthAndHeight}px`,
5891
- }, className: style('rounded-icon object-fit flex justify-center items-center', iconBgStyles[iconBgVersion], className), children: jsx(Icon, { ...rest, width: "54%", name: icon }) })) : null;
5921
+ const RoundedIcon = JSX(({ className, iconBgVersion = 'primary', size, icon, ...rest }) => {
5922
+ const width = `${size?.width ?? DEFAULT_ICON_SIZE}px`;
5923
+ return icon ? (jsx("div", { className: style('rounded-icon object-fit flex justify-center items-center', iconStyleMap[iconBgVersion], className), style: { width, height: width }, role: "figure", children: jsx(Icon, { name: icon, width: "54%", ...rest }) })) : null;
5892
5924
  });
5893
5925
 
5894
5926
  const BenefitsBlock = JSX(({ className = '', title, benefitList, ...rest }) => {
@@ -6872,7 +6904,7 @@
6872
6904
  parent: options?.parent,
6873
6905
  });
6874
6906
  }, [isVisible, options?.parent]);
6875
- return (jsxs(BlockWrapper, { className: style('flex flex-col', className), defaultPadding: "p-2xl", ...rest, children: [jsx(Img, { className: "self-center", image: icon }), title ? (jsx(Heading, { className: style('pt-xs', align), headingType: "h5", title: title })) : null, button?.text ? jsx(LinkButton, { className: "w-full mt-m mb-lg", ...button }) : null, hiddenCells.length ? (jsxs(Foldable, { children: [jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isVisible, children: hiddenCells })] }), cardCells.length >= visibleCellsCount ? (jsx(DefaultFoldButton, { className: "w-full mt-m", label: isVisible ? 'Скрыть' : 'Подробнее о тарифе', isUnfolded: isVisible, embedded: true, data: data, onClick: handleFold })) : null] })) : (jsx("div", { children: visibleCells }))] }));
6907
+ return (jsxs(BlockWrapper, { className: style('flex flex-col', className), defaultPadding: "p-2xl", ...rest, children: [jsx(Img, { className: "self-center", image: icon }), title ? (jsx(Heading, { className: style('pt-xs', align), headingType: "h5", title: title })) : null, button?.text ? jsx(LinkButton, { className: "w-full mt-m mb-lg", ...button }) : null, hiddenCells.length ? (jsxs(Foldable, { children: [jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isVisible, children: hiddenCells })] }), cardCells.length >= visibleCellsCount ? (jsx(DefaultFoldButton, { className: "mt-m", label: isVisible ? 'Скрыть' : 'Подробнее о тарифе', isUnfolded: isVisible, embedded: true, data: data, onClick: handleFold })) : null] })) : (jsx("div", { children: visibleCells }))] }));
6876
6908
  });
6877
6909
 
6878
6910
  const ContactsBlock = JSX(({ className, contacts, info, version = 'secondary', ...rest }) => (jsxs(BlockWrapper, { className: style('flex', className), defaultPadding: "p-6xl", version: version, ...rest, children: [info?.length ? renderBlocks(info) : null, contacts?.length ? renderBlocks(contacts) : null] })));
@@ -6936,35 +6968,16 @@
6936
6968
 
6937
6969
  const sendSignalToProcess = (body) => doRequest('/user-data/sendSignalToProcess', 'POST', body);
6938
6970
 
6939
- const useInterval = (handler, period) => {
6940
- const timer = useRef(null);
6941
- const clearTimer = useCallback(() => timer.current && clearInterval(timer.current), []);
6942
- useEffect(() => {
6943
- timer.current = setInterval(() => handler(clearTimer), period);
6944
- return clearTimer;
6945
- }, [handler, period]);
6946
- return clearTimer;
6947
- };
6948
-
6949
- const TimerCircle = JSX(({ interval = 0, intervalExpireAction = () => null, title, __html }) => {
6971
+ const TimerCircle = JSX(({ title, interval = 0, onEnd = noop }) => {
6950
6972
  const [time, setTime] = useState(interval);
6951
- const setTimeWithHandleExpire = (value) => {
6952
- if (value === 0) {
6953
- intervalExpireAction();
6954
- }
6955
- setTime(value);
6956
- };
6973
+ useCountDownTimer({ seconds: interval, onTick: setTime, onEnd });
6957
6974
  const gradientPercentage = 100 - ((interval - time) / interval) * 100;
6958
- return (jsxs("div", { children: [title ? jsx(Headline, { title: title, headlineVersion: "S" }) : null, jsxs("div", { className: "flex justify-center items-center flex-col", children: [jsxs("div", { className: style(`relative flex items-center justify-center w-24 h-24 rounded-full bg-gray text-transparent mb-5`), children: [jsx("div", { className: "absolute inset-0 rounded-full", style: {
6959
- background: `conic-gradient(rgb(66, 171, 68) ${gradientPercentage}%, rgb(125, 126, 127) 0deg)`,
6960
- } }), jsx("div", { className: "z-10 flex items-center justify-center px-4 py-2 rounded-full w-20 h-20 bg-white text-primary-text text-m", children: jsx(Timer, { interval: interval, time: time, setTime: setTimeWithHandleExpire }) })] }), __html ? jsx(RichText, { __html: __html }) : null] })] }));
6975
+ return (jsxs("div", { children: [title ? jsx(Headline, { title: title, headlineVersion: "S" }) : null, jsxs("div", { className: "relative flex items-center justify-center w-24 h-24 rounded-full bg-gray text-transparent mb-5", children: [jsx("div", { className: "absolute inset-0 rounded-full", style: {
6976
+ background: `conic-gradient(rgb(66, 171, 68) ${gradientPercentage}%, rgb(125, 126, 127) 0deg)`,
6977
+ } }), jsx("div", { className: "z-10 flex items-center justify-center w-20 h-20 rounded-full bg-white text-primary-text text-m", children: jsx(Timer, { seconds: time }) })] })] }));
6961
6978
  });
6962
6979
 
6963
- const CreditCardFormStatus = JSX(({ title, description: dsc, infoCard, sectionInfoTitle, sectionInfo, sectionAdditionalTitle, sectionInfoAdditional, buttonText, interval, intervalExpireAction = () => {
6964
- return;
6965
- }, ...props }) => (jsxs(BlockWrapper, { ...props, children: [jsxs("div", { className: "flex flex-col md:flex-row items-center", children: [jsx(Headline, { headlineVersion: "M", title: title, description: dsc, align: "text-left", padding: "p-xl", className: "w-full" }), interval ? (jsx(TimerCircle, { interval: interval, intervalExpireAction: intervalExpireAction })) : null] }), jsx(SectionInfo$1, { title: sectionInfoTitle, items: sectionInfo }), jsx(SectionInfo$1, { title: sectionAdditionalTitle, items: sectionInfoAdditional, countColumns: true }), infoCard?.__html ? (jsx(InfoCard, { __html: infoCard?.__html, icon: infoCard?.icon, link: {
6966
- text: infoCard?.link?.text,
6967
- } })) : null, buttonText ? (jsx(LinkButton, { href: "/natural", text: buttonText, version: "primary", className: "w-full mt-lg" })) : null] })));
6980
+ const CreditCardFormStatus = JSX(({ title, description: dsc, sectionInfoTitle, sectionInfo, sectionAdditionalTitle, sectionInfoAdditional, buttonText, interval, onExpire = noop, ...props }) => (jsxs(BlockWrapper, { ...props, children: [jsxs("div", { className: "flex flex-col md:flex-row items-center", children: [jsx(Headline, { headlineVersion: "M", title: title, description: dsc, align: "text-left", padding: "p-xl", className: "w-full" }), interval ? jsx(TimerCircle, { interval: interval, onEnd: onExpire }) : null] }), jsx(SectionInfo$1, { title: sectionInfoTitle, items: sectionInfo }), jsx(SectionInfo$1, { title: sectionAdditionalTitle, items: sectionInfoAdditional, countColumns: true }), buttonText ? (jsx(Link, { href: "/natural", text: buttonText, version: "primary", className: "w-full mt-lg" })) : null] })));
6968
6981
  const SectionInfo$1 = ({ title, items, countColumns = false, }) => {
6969
6982
  const isMobile = useMobileMode();
6970
6983
  if (!items) {
@@ -6976,9 +6989,9 @@
6976
6989
 
6977
6990
  const FailedStatusContent$1 = JSX(() => (jsx(CreditCardFormStatus, { title: "\u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u0438\u043C \u0412\u0430\u0441 \u0437\u0430 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0435", description: "\u0412 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u0439 \u043C\u043E\u043C\u0435\u043D\u0442 \u0411\u0430\u043D\u043A \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u043E\u0434\u043E\u0431\u0440\u0438\u0442\u044C \u0412\u0430\u0448\u0443 \u0437\u0430\u044F\u0432\u043A\u0443 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0434\u0430\u0442\u044C \u0437\u0430\u044F\u0432\u043A\u0443 \u043F\u043E\u0437\u0436\u0435. \u0421\u043F\u0430\u0441\u0438\u0431\u043E \u0437\u0430 \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0435 \u0432 \u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB.", buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" })));
6978
6991
 
6979
- const PendingStatusContent$1 = JSX(({ handleExpireTimer }) => {
6992
+ const PendingStatusContent$1 = JSX(({ onExpire }) => {
6980
6993
  const { statusInfo } = useRetailFormStore();
6981
- return (jsx(CreditCardFormStatus, { interval: 300, intervalExpireAction: handleExpireTimer, title: "\u0417\u0430\u044F\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0430", description: "\u041D\u0435 \u0437\u0430\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435 \u043E\u043A\u043D\u043E, \u0441\u043A\u043E\u0440\u043E \u0441\u043E\u043E\u0431\u0449\u0438\u043C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442", sectionInfoTitle: "\u0417\u0430\u044F\u0432\u043B\u0435\u043D\u043D\u044B\u0435 \u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u043E \u043A\u0440\u0435\u0434\u0438\u0442\u0443", sectionInfo: [
6994
+ return (jsx(CreditCardFormStatus, { interval: 300, title: "\u0417\u0430\u044F\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0430", description: "\u041D\u0435 \u0437\u0430\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435 \u043E\u043A\u043D\u043E, \u0441\u043A\u043E\u0440\u043E \u0441\u043E\u043E\u0431\u0449\u0438\u043C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442", sectionInfoTitle: "\u0417\u0430\u044F\u0432\u043B\u0435\u043D\u043D\u044B\u0435 \u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u043E \u043A\u0440\u0435\u0434\u0438\u0442\u0443", sectionInfo: [
6982
6995
  {
6983
6996
  label: 'Название продукта',
6984
6997
  description: 'Кредитная карта',
@@ -6987,7 +7000,7 @@
6987
7000
  label: 'Категория',
6988
7001
  description: statusInfo?.cardCategory,
6989
7002
  },
6990
- ] }));
7003
+ ], onExpire: onExpire }));
6991
7004
  });
6992
7005
 
6993
7006
  const ReworkStatusContent$1 = JSX(() => {
@@ -7063,20 +7076,20 @@
7063
7076
  }
7064
7077
  })();
7065
7078
  }, [taskId]);
7066
- const trackStatus = useCallback(async (stopInterval) => {
7079
+ const trackStatus = useCallback(async (stop) => {
7067
7080
  const res = await getTaskStatus({ taskId });
7068
7081
  if (res && res?.statusCd !== STATUS_TYPE.process) {
7069
- stopInterval();
7082
+ stop();
7070
7083
  setStatus(res.statusCd);
7071
7084
  }
7072
7085
  }, [taskId]);
7073
- useInterval(trackStatus, 30000);
7074
- const handleExpire = () => setStatus(STATUS_TYPE.rework);
7086
+ useInterval(trackStatus, 30_000);
7087
+ const handleExpire = useCallback(() => setStatus(STATUS_TYPE.rework), []);
7075
7088
  return renderStatus$1(status, handleExpire);
7076
7089
  });
7077
7090
  const renderStatus$1 = (status, handleExpire) => {
7078
7091
  const statusesMap = {
7079
- IN_PROCESS: jsx(PendingStatusContent$1, { handleExpireTimer: handleExpire }),
7092
+ IN_PROCESS: jsx(PendingStatusContent$1, { onExpire: handleExpire }),
7080
7093
  CANCELLED: jsx(FailedStatusContent$1, {}),
7081
7094
  FAILED: jsx(FailedStatusContent$1, {}),
7082
7095
  DRAFT: jsx(FailedStatusContent$1, {}),
@@ -7126,7 +7139,7 @@
7126
7139
  const StepsNavigationButtons$1 = JSX(({ step, isSending, onPrevStep }) => {
7127
7140
  const isFirstStep = step === 0;
7128
7141
  const isFinalStep = step === 5;
7129
- return (jsxs("div", { className: "flex justify-between gap-m", children: [jsx(Button, { onClick: onPrevStep, type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(SubmitButton$1, { isLoading: isSending, children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
7142
+ return (jsxs("div", { className: "flex justify-between gap-m", children: [jsx(Button, { version: "secondary", disabled: isFirstStep, onClick: onPrevStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(SubmitButton$1, { isLoading: isSending, children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
7130
7143
  });
7131
7144
 
7132
7145
  const getAdditionalInfoData = (formData) => {
@@ -7866,12 +7879,8 @@
7866
7879
  return (jsx("div", { className: "py-lg px-5xl bg-white col-span-12", children: jsxs("div", { children: [jsxs("span", { className: "font-bold mr-s", children: ["\u0428\u0430\u0433 ", step, " \u0438\u0437 ", totalSteps, "."] }), stepsTitles[step] || null, jsx(ProgressBar, { step: progress, showPercentage: false })] }) }));
7867
7880
  });
7868
7881
 
7869
- const CreditFormStatus = JSX(({ title, description: dsc, infoCard, sectionInfoTitle, sectionInfo, sectionAdditionalTitle, sectionInfoAdditional, buttonText, interval, intervalExpireAction = () => {
7870
- return;
7871
- }, ...props }) => {
7872
- return (jsxs(BlockWrapper, { ...props, children: [jsxs("div", { className: "flex flex-col md:flex-row items-center", children: [jsx(Headline, { headlineVersion: "M", title: title, description: dsc, align: "text-left", padding: "p-xl", className: "w-full" }), interval ? (jsx(TimerCircle, { interval: interval, intervalExpireAction: intervalExpireAction })) : null] }), jsx(SectionInfo, { title: sectionInfoTitle, items: sectionInfo }), jsx(SectionInfo, { title: sectionAdditionalTitle, items: sectionInfoAdditional, countColumns: true }), infoCard?.__html ? (jsx(InfoCard, { __html: infoCard?.__html, icon: infoCard?.icon, link: {
7873
- text: infoCard?.link?.text,
7874
- } })) : null, buttonText ? (jsx(LinkButton, { href: "/natural", text: buttonText, version: "primary", className: "w-full mt-lg" })) : null] }));
7882
+ const CreditFormStatus = JSX(({ title, description: dsc, sectionInfoTitle, sectionInfo, sectionAdditionalTitle, sectionInfoAdditional, buttonText, interval, onExpire = noop, ...props }) => {
7883
+ return (jsxs(BlockWrapper, { ...props, children: [jsxs("div", { className: "flex flex-col md:flex-row items-center", children: [jsx(Headline, { headlineVersion: "M", title: title, description: dsc, align: "text-left", padding: "p-xl", className: "w-full" }), interval ? jsx(TimerCircle, { interval: interval, onEnd: onExpire }) : null] }), jsx(SectionInfo, { title: sectionInfoTitle, items: sectionInfo }), jsx(SectionInfo, { title: sectionAdditionalTitle, items: sectionInfoAdditional, countColumns: true }), buttonText ? (jsx(Link, { href: "/natural", text: buttonText, version: "primary", className: "w-full mt-lg" })) : null] }));
7875
7884
  });
7876
7885
  const SectionInfo = ({ title, items, countColumns = false, }) => {
7877
7886
  const isMobile = useMobileMode();
@@ -7884,9 +7893,9 @@
7884
7893
 
7885
7894
  const FailedStatusContent = JSX(() => (jsx(CreditFormStatus, { title: "\u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u0438\u043C \u0412\u0430\u0441 \u0437\u0430 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0435", description: "\u0412 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u0439 \u043C\u043E\u043C\u0435\u043D\u0442 \u0411\u0430\u043D\u043A \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u043E\u0434\u043E\u0431\u0440\u0438\u0442\u044C \u0412\u0430\u0448\u0443 \u0437\u0430\u044F\u0432\u043A\u0443 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0434\u0430\u0442\u044C \u0437\u0430\u044F\u0432\u043A\u0443 \u043F\u043E\u0437\u0436\u0435. \u0421\u043F\u0430\u0441\u0438\u0431\u043E \u0437\u0430 \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0435 \u0432 \u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB.", buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" })));
7886
7895
 
7887
- const PendingStatusContent = JSX(({ handleExpireTimer }) => {
7896
+ const PendingStatusContent = JSX(({ onExpire }) => {
7888
7897
  const { statusInfo } = useRetailFormStore();
7889
- return (jsx(CreditFormStatus, { interval: 300, intervalExpireAction: handleExpireTimer, title: "\u0417\u0430\u044F\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0430", description: "\u041D\u0435 \u0437\u0430\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435 \u043E\u043A\u043D\u043E, \u0441\u043A\u043E\u0440\u043E \u0441\u043E\u043E\u0431\u0449\u0438\u043C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442", sectionInfoTitle: "\u0417\u0430\u044F\u0432\u043B\u0435\u043D\u043D\u044B\u0435 \u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u043E \u043A\u0440\u0435\u0434\u0438\u0442\u0443", sectionInfo: [
7898
+ return (jsx(CreditFormStatus, { interval: 300, title: "\u0417\u0430\u044F\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0430", description: "\u041D\u0435 \u0437\u0430\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435 \u043E\u043A\u043D\u043E, \u0441\u043A\u043E\u0440\u043E \u0441\u043E\u043E\u0431\u0449\u0438\u043C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442", sectionInfoTitle: "\u0417\u0430\u044F\u0432\u043B\u0435\u043D\u043D\u044B\u0435 \u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u043E \u043A\u0440\u0435\u0434\u0438\u0442\u0443", sectionInfo: [
7890
7899
  {
7891
7900
  label: 'Название продукта',
7892
7901
  description: 'Кредит на любые цели',
@@ -7907,7 +7916,7 @@
7907
7916
  label: 'Тип платежа',
7908
7917
  description: statusInfo?.calculator?.isAnnuity ? 'Аннуитетный' : 'Дифференцированный',
7909
7918
  },
7910
- ] }));
7919
+ ], onExpire: onExpire }));
7911
7920
  });
7912
7921
 
7913
7922
  const ReworkStatusContent = JSX(() => {
@@ -7969,20 +7978,20 @@
7969
7978
  }
7970
7979
  })();
7971
7980
  }, [taskId]);
7972
- const trackStatus = useCallback(async (stopInterval) => {
7981
+ const trackStatus = useCallback(async (stop) => {
7973
7982
  const res = await getTaskStatus({ taskId });
7974
7983
  if (res && res?.statusCd !== STATUS_TYPE.process) {
7975
- stopInterval();
7984
+ stop();
7976
7985
  setStatus(res.statusCd);
7977
7986
  }
7978
7987
  }, [taskId]);
7979
- useInterval(trackStatus, 30000);
7980
- const handleExpire = () => setStatus(STATUS_TYPE.rework);
7988
+ useInterval(trackStatus, 30_000);
7989
+ const handleExpire = useCallback(() => setStatus(STATUS_TYPE.rework), []);
7981
7990
  return renderStatus(status, handleExpire);
7982
7991
  });
7983
- const renderStatus = (status, handleExpire) => {
7992
+ const renderStatus = (status, onExpire) => {
7984
7993
  const statusesMap = {
7985
- IN_PROCESS: jsx(PendingStatusContent, { handleExpireTimer: handleExpire }),
7994
+ IN_PROCESS: jsx(PendingStatusContent, { onExpire: onExpire }),
7986
7995
  CANCELLED: jsx(FailedStatusContent, {}),
7987
7996
  FAILED: jsx(FailedStatusContent, {}),
7988
7997
  DRAFT: jsx(FailedStatusContent, {}),
@@ -8004,7 +8013,7 @@
8004
8013
  const StepsNavigationButtons = JSX(({ step, onPrevStep, isSending }) => {
8005
8014
  const isFirstStep = step === 0;
8006
8015
  const isFinalStep = step === 5;
8007
- return (jsxs("div", { className: 'flex justify-between gap-m', children: [jsx(Button, { onClick: onPrevStep, type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(SubmitButton$1, { isLoading: isSending, children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
8016
+ return (jsxs("div", { className: 'flex justify-between gap-m', children: [jsx(Button, { version: "secondary", disabled: isFirstStep, onClick: onPrevStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(SubmitButton$1, { isLoading: isSending, children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
8008
8017
  });
8009
8018
 
8010
8019
  const PAYMENT_TYPE_DATA = {
@@ -8904,8 +8913,7 @@
8904
8913
  const { navigationItems } = rest.options?.page?.navigation ?? {};
8905
8914
  const common = rest.options?.page?.common ?? {};
8906
8915
  const { documents, relatedEnterprises, contacts, mediaLinks = [], horizontalNavigationTitle, feedbackButton, license, otherLinks = [], } = footer ?? {};
8907
- const linkStyle = '!text-left text-s font-light';
8908
- return (jsxs(BlockWrapper, { tag: "footer", className: style('grid gap-y-xl p-4xl pb-24 lg:p-xl', className), ...rest, children: [renderLogoSearchBar(common, navigationItems), jsxs("div", { className: "flex flex-col lg:flex-row items-center @lg:items-stretch gap-lg lg:gap-6xl ", children: [jsx(Sitemap, { navigationItems: navigationItems }), jsx("div", { className: "border-t border-main-divider lg:hidden w-full" }), jsxs("div", { className: style(LEFT_COLUMN_STYLE, 'flex flex-col shrink-0 overflow-hidden space-y-xl'), children: [jsx(Contacts, { items: contacts }), feedbackButton ? (jsx(LinkButton, { className: "w-full", version: "primary", ...feedbackButton })) : null, mediaLinks.map((_, i) => (jsx(SocialMedia, { media: _?.links ?? [], showButtonText: false, stretched: true, children: _?.title }, String(i)))), otherLinks.map((_, i) => (jsx(LinkButton, { className: linkStyle, version: "link", ..._, children: _?.text }, String(i))))] })] }), jsx(HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises }), jsx(TextInformation, { links: documents, license: license })] }));
8916
+ return (jsxs(BlockWrapper, { tag: "footer", className: style('grid gap-y-xl p-4xl pb-24 lg:p-xl', className), ...rest, children: [renderLogoSearchBar(common, navigationItems), jsxs("div", { className: "flex flex-col lg:flex-row items-center @lg:items-stretch gap-lg lg:gap-6xl ", children: [jsx(Sitemap, { navigationItems: navigationItems }), jsx("div", { className: "border-t border-main-divider lg:hidden w-full" }), jsxs("div", { className: style(LEFT_COLUMN_STYLE, 'flex flex-col shrink-0 overflow-hidden space-y-xl'), children: [jsx(Contacts, { items: contacts }), feedbackButton ? (jsx(LinkButton, { className: "w-full", version: "primary", ...feedbackButton })) : null, mediaLinks.map((_, i) => (jsx(SocialMedia, { media: _?.links ?? [], showButtonText: false, stretched: true, children: _?.title }, String(i)))), otherLinks.map((_, i) => (jsx(Link, { className: "text-s font-light", ..._ }, `${_.href}_${i}`)))] })] }), jsx(HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises }), jsx(TextInformation, { links: documents, license: license })] }));
8909
8917
  });
8910
8918
 
8911
8919
  const GracePeriod = JSX(({ className = '', title, description, calendar, ...rest }) => (jsxs(BlockWrapper, { className: style('space-y-m', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true }), calendar ? renderCalendar(calendar) : null] })));
@@ -8927,13 +8935,8 @@
8927
8935
  const GrantSupport = UniBlock(({ className, title, button, regionSource, data, ...rest }) => {
8928
8936
  const [region, setRegion] = useState({ key: '' });
8929
8937
  const regions = regionSource?.regions ?? [];
8930
- const buttonStyle = getRegularButtonClasses({
8931
- className: 'text-white',
8932
- version: button?.version || 'primary',
8933
- });
8934
8938
  const regionHref = regions?.find((_) => _.name === region.key)?.href;
8935
- const buttonText = button?.text ? button.text : 'Перейти';
8936
- return (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container space-y-m", children: [title ? jsx(Heading, { headingType: "h3", title: title, className: "@xl:text-center" }) : null, regions ? (jsx(SelectControl, { label: "\u0412\u0430\u0448 \u0440\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", isSearch: true, options: regions.map(({ name = '' }) => ({ key: name, text: name })), value: region, onChange: setRegion })) : null, regionHref ? (jsx("div", { className: "text-center", children: jsx(LinkButton, { href: regionHref, target: "_blank", className: style('p-m w-full @xl:w-auto', buttonStyle), data: getAspectsWithInclude(data, region?.key), children: buttonText }) })) : null] }) }));
8939
+ return (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container space-y-m", children: [title ? jsx(Heading, { headingType: "h3", title: title, className: "@xl:text-center" }) : null, regions ? (jsx(SelectControl, { label: "\u0412\u0430\u0448 \u0440\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", isSearch: true, options: regions.map(({ name = '' }) => ({ key: name, text: name })), value: region, onChange: setRegion })) : null, regionHref ? (jsx("div", { className: "text-center", children: jsx(Link, { className: style('w-full @xl:w-auto'), href: regionHref, target: "_blank", version: button?.version ?? 'primary', data: getAspectsWithInclude(data, region?.key), children: button?.text ? button.text : 'Перейти' }) })) : null] }) }));
8937
8940
  });
8938
8941
 
8939
8942
  function useActiveRoute(items = []) {
@@ -9273,13 +9276,7 @@
9273
9276
  };
9274
9277
 
9275
9278
  /** @deprecated */
9276
- function renderArrows({ dec, inc, canDec, canInc, btnClass, className = '', }) {
9277
- const isVisible = canDec || canInc;
9278
- if (!isVisible) {
9279
- return null;
9280
- }
9281
- return (jsxs("div", { children: [canDec ? (jsx(ArrowButton, { className: style('absolute z-40', btnClass[0], className), onClick: dec, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !canDec })) : null, canInc ? (jsx(ArrowButton, { className: style('absolute z-40 rotate-180', btnClass[1], className), onClick: inc, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !canInc })) : null] }));
9282
- }
9279
+ const renderArrows = ({ className, btnClass, canDec, canInc, dec, inc, }) => canDec || canInc ? (jsxs("div", { children: [canDec ? (jsx(ArrowLeftButton, { className: style('absolute z-40', btnClass[0], className), onClick: dec })) : null, canInc ? (jsx(ArrowRightButton, { className: style('absolute z-40', btnClass[1], className), onClick: inc })) : null] })) : null;
9283
9280
 
9284
9281
  const InsuranceAmountBlockInner = JSX(({ className = '', cards = [], button }) => {
9285
9282
  const [selectedCardIndex, setSelectedCardIndex] = useState(0);
@@ -9430,11 +9427,7 @@
9430
9427
  return docFormat.includes('/') ? docFormat.replace(regexp, '') : docFormat;
9431
9428
  };
9432
9429
 
9433
- const ReportDialog = JSX(({ href, __html, target, onClose }) => {
9434
- const router = useRouter();
9435
- const adjustedHref = adjustHref(router)(href);
9436
- return (jsxs(Dialog, { className: "my-6xl min-h-fit w-fit mx-auto", onClose: onClose, children: [__html ? jsx(RichText, { __html: __html }) : null, jsxs("div", { className: "flex flex-row mx-auto w-fit gap-lg py-lg", children: [jsx(LinkButton, { text: "\u042F \u0441\u043E\u0433\u043B\u0430\u0441\u0435\u043D", version: "primary", target: target, href: adjustedHref, onClick: onClose }), jsx(Button, { type: "button", version: "secondary", onClick: onClose, children: "\u042F \u043D\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0435\u043D" })] }), jsx("div", { children: "\u041D\u0430\u0436\u0438\u043C\u0430\u044F \u043A\u043D\u043E\u043F\u043A\u0443 \u00AB\u042F \u0421\u041E\u0413\u041B\u0410\u0421\u0415\u041D\u00BB \u043D\u0438\u0436\u0435 \u0412\u044B \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0435\u0442\u0435 \u0434\u0430\u043D\u043D\u044B\u0435 \u0443\u0441\u043B\u043E\u0432\u0438\u044F. \u0420\u0430\u0441\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u0440\u0430\u0441\u043A\u0440\u044B\u0442\u0438\u0435 \u043B\u044E\u0431\u043E\u0439 \u0447\u0430\u0441\u0442\u0438 \u0434\u0430\u043D\u043D\u043E\u0433\u043E \u0417\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0438\u043B\u0438 \u043B\u044E\u0431\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438, \u0438\u043B\u0438 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0438\u0438 \u0432 \u043D\u0435\u043C \u0437\u0430\u043F\u0440\u0435\u0449\u0435\u043D\u043E.\u00BB" })] }));
9437
- });
9430
+ const ReportDialog = JSX(({ href, __html, target, onClose }) => (jsxs(Dialog, { className: "my-6xl min-h-fit w-fit mx-auto", onClose: onClose, children: [__html ? jsx(RichText, { __html: __html }) : null, jsxs("div", { className: "flex flex-row mx-auto w-fit gap-lg py-lg", children: [jsx(Link, { href: href, target: target, version: "primary", ariaLabel: "\u0421\u0441\u044B\u043B\u043A\u0430 \u043D\u0430 \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u0435", onClick: onClose, children: "\u042F \u0441\u043E\u0433\u043B\u0430\u0441\u0435\u043D" }), jsx(Button, { type: "button", version: "secondary", onClick: onClose, children: "\u042F \u043D\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0435\u043D" })] }), jsx("div", { children: "\u041D\u0430\u0436\u0438\u043C\u0430\u044F \u043A\u043D\u043E\u043F\u043A\u0443 \u00AB\u042F \u0421\u041E\u0413\u041B\u0410\u0421\u0415\u041D\u00BB \u043D\u0438\u0436\u0435 \u0412\u044B \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0435\u0442\u0435 \u0434\u0430\u043D\u043D\u044B\u0435 \u0443\u0441\u043B\u043E\u0432\u0438\u044F. \u0420\u0430\u0441\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u0440\u0430\u0441\u043A\u0440\u044B\u0442\u0438\u0435 \u043B\u044E\u0431\u043E\u0439 \u0447\u0430\u0441\u0442\u0438 \u0434\u0430\u043D\u043D\u043E\u0433\u043E \u0417\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0438\u043B\u0438 \u043B\u044E\u0431\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438, \u0438\u043B\u0438 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0438\u0438 \u0432 \u043D\u0435\u043C \u0437\u0430\u043F\u0440\u0435\u0449\u0435\u043D\u043E.\u00BB" })] })));
9438
9431
 
9439
9432
  const ReportDialogButton = JSX(({ text, href, target, __html, icon }) => {
9440
9433
  const { open } = useDialog(ReportDialog);
@@ -9569,7 +9562,7 @@
9569
9562
  const Tag = tag;
9570
9563
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
9571
9564
  const { text, description, icon, count, tabName, ...link } = item;
9572
- return (jsx(Tag, { className: style('h-12', 'block flex-1', 'cursor-pointer', tabPaddingStyleMap[type], isActive ? activeTabBgStyleMap[type] : tabBgStyleMap[type]), role: "tablist", "aria-label": "\u0421\u043F\u0438\u0441\u043E\u043A \u0442\u0430\u0431\u043E\u0432", onClick: onClick, ...link, children: jsxs("div", { className: style('h-full', 'flex justify-center items-center', 'text-center whitespace-nowrap', isActive ? activeTabTextStyleMap[type] : tabTextStyle), role: "tab", "aria-label": `Таб ${text}`, children: [renderTabItemInner({
9565
+ return (jsx(Tag, { className: style('h-12', 'block flex-1', 'cursor-pointer', tabPaddingStyleMap[type], isActive ? activeTabBgStyleMap[type] : tabBgStyleMap[type]), "aria-label": "\u0421\u043F\u0438\u0441\u043E\u043A \u0442\u0430\u0431\u043E\u0432", onClick: onClick, ...link, children: jsxs("div", { className: style('h-full', 'flex justify-center items-center', 'text-center whitespace-nowrap', isActive ? activeTabTextStyleMap[type] : tabTextStyle), role: "tab", "aria-label": `Таб ${text}`, children: [renderTabItemInner({
9573
9566
  text,
9574
9567
  description,
9575
9568
  icon,
@@ -9631,7 +9624,7 @@
9631
9624
  ? [filtersCheckbox.slice(0, visibleFiltersNum), filtersCheckbox.slice(visibleFiltersNum)]
9632
9625
  : [filtersCheckbox, []];
9633
9626
  const [isUnfolded, { toggle }] = useBool(false);
9634
- return (jsx("div", { children: filters?.length ? (jsx("div", { children: jsxs(Foldable, { children: [jsxs("div", { children: [jsx("div", { className: COMMON_FILTERS_STYLES, children: visibleFilters }), jsx(FoldableSection, { className: COMMON_FILTERS_STYLES, isUnfolded: isUnfolded, children: hiddenFilters })] }), jsxs("div", { className: "flex space-x-lg", children: [onlyOffice ? (jsx(DefaultFoldButton, { label: isUnfolded ? 'Меньше фильтров' : 'Больше фильтров', isUnfolded: isUnfolded, embedded: true, onClick: toggle })) : null, jsxs(Button, { embedded: true, onClick: reset, children: [jsx(ButtonTitle, { children: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440" }), jsx(Icon, { name: "CloseIcon", size: "small" })] })] })] }) })) : null }));
9627
+ return (jsx("div", { children: filters?.length ? (jsx("div", { children: jsxs(Foldable, { children: [jsxs("div", { children: [jsx("div", { className: COMMON_FILTERS_STYLES, children: visibleFilters }), jsx(FoldableSection, { className: COMMON_FILTERS_STYLES, isUnfolded: isUnfolded, children: hiddenFilters })] }), jsxs("div", { className: "flex space-x-lg", children: [onlyOffice ? (jsx(DefaultFoldButton, { label: isUnfolded ? 'Меньше фильтров' : 'Больше фильтров', isUnfolded: isUnfolded, embedded: true, short: true, onClick: toggle })) : null, jsxs(Button, { embedded: true, onClick: reset, children: [jsx(ButtonTitle, { children: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440" }), jsx(Icon, { name: "CloseIcon", size: "small" })] })] })] }) })) : null }));
9635
9628
  });
9636
9629
 
9637
9630
  const renderButtonsGroup = (data, activeButton, onButtonClick) => {
@@ -9790,7 +9783,7 @@
9790
9783
  const [containerRef, scroll] = useSwipeListScroll({
9791
9784
  itemCount: slides?.length || 0,
9792
9785
  });
9793
- return (jsxs(BlockWrapper, { className: style('box-border overflow-hidden', className), defaultPadding: "pt-6xl", padding: padding, ...rest, children: [jsx("div", { className: "flex duration-1000", style: { transform: `translateX(-${activeSlideIndex * 100}%)` }, role: "list", children: slides.map(({ productBlock }, i) => (jsx("div", { className: "box-border grow-0 shrink-0 basis-full", role: "listitem", children: jsx(BaseProductTile, { className: "pl-6xl h-full", headlineVersion: "M", isFullWidthTitle: false, ...productBlock, ...rest }) }, String(i)))) }), jsxs("div", { className: "relative pr-xs mt-m -mb-m flex gap-xs box-border", children: [jsx(SwipeListContainer, { containerRef: containerRef, snapAlign: "snap-start", onVisibleIndicesChange: scroll.handleVisibleIndicesChange, itemClassName: 'h-40 flex items-stretch w-screen', gap: 8, children: slides.map(renderNavButton({ activeSlideIndex, onClick: setActiveSlideIndex })) }), scroll.canScrollLeft ? (jsx(ScrollLeftButton, { className: style('left-6', scrollButtonStyle$1), onClick: scroll.scrollLeft })) : null, scroll.canScrollRight ? (jsx(ScrollRightButton, { className: style('right-6', scrollButtonStyle$1), onClick: scroll.scrollRight })) : null] })] }));
9786
+ return (jsxs(BlockWrapper, { className: style('box-border overflow-hidden', className), defaultPadding: "pt-6xl", padding: padding, ...rest, children: [jsx("div", { className: "flex duration-1000", style: { transform: `translateX(-${activeSlideIndex * 100}%)` }, role: "list", children: slides.map(({ productBlock }, i) => (jsx("div", { className: "box-border grow-0 shrink-0 basis-full", role: "listitem", children: jsx(BaseProductTile, { className: "pl-6xl h-full", headlineVersion: "M", isFullWidthTitle: false, ...productBlock, ...rest }) }, String(i)))) }), jsxs("div", { className: "relative pr-xs mt-m -mb-m flex gap-xs box-border", children: [jsx(SwipeListContainer, { containerRef: containerRef, snapAlign: "snap-start", onVisibleIndicesChange: scroll.handleVisibleIndicesChange, itemClassName: 'h-40 flex items-stretch w-screen', gap: 8, children: slides.map(renderNavButton({ activeSlideIndex, onClick: setActiveSlideIndex })) }), scroll.canScrollLeft ? (jsx(ArrowLeftButton, { className: style('left-6', scrollButtonStyle$1), onClick: scroll.scrollLeft })) : null, scroll.canScrollRight ? (jsx(ArrowRightButton, { className: style('right-6', scrollButtonStyle$1), onClick: scroll.scrollRight })) : null] })] }));
9794
9787
  });
9795
9788
  const renderNavButton = ({ activeSlideIndex, onClick }) => ({ nav }, i) => {
9796
9789
  const isActive = i === activeSlideIndex;
@@ -9836,7 +9829,7 @@
9836
9829
  extraProps: { className: 'w-full', padding: 'p-0' },
9837
9830
  }) }));
9838
9831
  const isAccordion = foldButtonVersion === 'accordion';
9839
- const foldButton = (jsx(DefaultFoldButton, { className: style('w-full', { 'text-h6 my-lg': isAccordion }), label: label, isUnfolded: isUnfolded, embedded: isAccordion, onClick: toggle }));
9832
+ const foldButton = (jsx(DefaultFoldButton, { className: style(isAccordion ? 'text-h6 my-lg' : 'text-h4'), label: label, isUnfolded: isUnfolded, embedded: isAccordion, onClick: toggle }));
9840
9833
  return (jsx(BlockWrapper, { className: style('w-full border-0 border-b border-solid border-main-divider last:border-b-0', className), defaultPadding: "p-0", tag: "div", version: "transparent", role: role, ...rest, children: jsxs(Foldable, { children: [isFoldButtonOnTop ? foldButton : foldableSection, isFoldButtonOnTop ? foldableSection : foldButton] }) }));
9841
9834
  }, { childrenTypes: { exclude: ['RollupItem'] } });
9842
9835
 
@@ -9865,7 +9858,7 @@
9865
9858
 
9866
9859
  const SafeBoxCases = JSX(({ caseVolumes = [], selectedCaseVolume, onSelectedCaseVolume, safeBoxCases = [], selectedBoxSize, onSelectedBoxSize, }) => (jsxs("div", { className: "flex flex-col @xl:flex-row gap-m order-1", children: [jsx("div", { className: "flex-1 min-w-0", children: jsx(WrapperSelect, { data: caseVolumes, fieldLabel: "volume", selected: selectedCaseVolume, setSelected: onSelectedCaseVolume, label: "\u0420\u0430\u0437\u043C\u0435\u0440", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0430\u0437\u043C\u0435\u0440" }) }), jsx("div", { className: "flex-1 min-w-0", children: jsx(WrapperSelect, { data: safeBoxCases, fieldLabel: "safeBoxCasesSize", selected: selectedBoxSize, setSelected: onSelectedBoxSize, label: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u044F\u0447\u0435\u0439\u043A\u0438, \u043C\u043C (\u0412\u0445\u0428\u0445\u0414)", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 \u044F\u0447\u0435\u0439\u043A\u0438" }) })] })));
9867
9860
 
9868
- const SafeDepositRentalFields = JSX(({ regions, selectedRegion, branches, selectedBranch, days, selectedCaseVolume, selectedBoxSize, safeBoxCases, caseVolumes, onChange, onClick, }) => (jsxs("div", { className: "contents @xl:block flex-1 space-y-xl", children: [jsx(RegionsAndBranches, { regions: regions, selectedRegion: selectedRegion, onSelectedRegion: (value) => onChange({ selectedRegion: value }), branches: branches, selectedBranch: selectedBranch, onSelectedBranch: onSelectedBranch(onChange) }), jsx(RentalPeriod, { days: days, setDays: (value) => onChange({ days: value }) }), jsx(SafeBoxCases, { caseVolumes: caseVolumes, selectedCaseVolume: selectedCaseVolume, onSelectedCaseVolume: onSelectedCaseVolume(onChange), safeBoxCases: safeBoxCases, selectedBoxSize: selectedBoxSize, onSelectedBoxSize: (value) => onChange({ selectedBoxSize: value }) }), jsx("div", { className: "order-4", children: jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: "\u0422\u0438\u043F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u0430" }) }), jsxs("div", { className: "contents @md:flex justify-between items-center gap-m", children: [jsx(RadioButtons, {}), jsx(LinkButton, { text: "\u041E\u0444\u0438\u0441\u044B \u043D\u0430 \u043A\u0430\u0440\u0442\u0435", version: "primary", onClick: onClick, className: "order-6" })] })] })));
9861
+ const SafeDepositRentalFields = JSX(({ regions, selectedRegion, branches, selectedBranch, days, selectedCaseVolume, selectedBoxSize, safeBoxCases, caseVolumes, onChange, onClick, }) => (jsxs("div", { className: "contents @xl:block flex-1 space-y-xl", children: [jsx(RegionsAndBranches, { regions: regions, selectedRegion: selectedRegion, onSelectedRegion: (value) => onChange({ selectedRegion: value }), branches: branches, selectedBranch: selectedBranch, onSelectedBranch: onSelectedBranch(onChange) }), jsx(RentalPeriod, { days: days, setDays: (value) => onChange({ days: value }) }), jsx(SafeBoxCases, { caseVolumes: caseVolumes, selectedCaseVolume: selectedCaseVolume, onSelectedCaseVolume: onSelectedCaseVolume(onChange), safeBoxCases: safeBoxCases, selectedBoxSize: selectedBoxSize, onSelectedBoxSize: (value) => onChange({ selectedBoxSize: value }) }), jsx("div", { className: "order-4", children: jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: "\u0422\u0438\u043F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u0430" }) }), jsxs("div", { className: "contents @md:flex justify-between items-center gap-m", children: [jsx(RadioButtons, {}), jsx(Button, { className: "order-6", version: "primary", onClick: onClick, children: "\u041E\u0444\u0438\u0441\u044B \u043D\u0430 \u043A\u0430\u0440\u0442\u0435" })] })] })));
9869
9862
  const onSelectedBranch = (onChange) => (value) => {
9870
9863
  onChange({ selectedBranch: value, selectedCaseVolume: '', selectedBoxSize: '' });
9871
9864
  };
@@ -10030,7 +10023,7 @@
10030
10023
  itemCount: items?.length || 0,
10031
10024
  });
10032
10025
  useEffect(() => scrollToSelected(containerRef.current, items, activeItem), []);
10033
- return (jsxs("div", { className: style('relative overflow-x-auto no-scrollbar', className), children: [jsx(SwipeListContainer, { containerRef: containerRef, snapAlign: "snap-start", onVisibleIndicesChange: scroll.handleVisibleIndicesChange, itemClassName: scrollStyle[tabsType].item, gap: scrollStyle[tabsType].gap, children: items.map(renderTab(activeItem, onChange, tabsType)) }), scroll.canScrollLeft ? (jsx(ScrollLeftButton, { className: style('left-6', scrollButtonStyle, scrollStyle[tabsType].buttonTop), onClick: scroll.scrollLeft })) : null, scroll.canScrollRight ? (jsx(ScrollRightButton, { className: style('right-6', scrollButtonStyle, scrollStyle[tabsType].buttonTop), onClick: scroll.scrollRight })) : null] }));
10026
+ return (jsxs("div", { className: style('relative overflow-x-auto no-scrollbar', className), children: [jsx(SwipeListContainer, { containerRef: containerRef, snapAlign: "snap-start", onVisibleIndicesChange: scroll.handleVisibleIndicesChange, itemClassName: scrollStyle[tabsType].item, gap: scrollStyle[tabsType].gap, children: items.map(renderTab(activeItem, onChange, tabsType)) }), scroll.canScrollLeft ? (jsx(ArrowLeftButton, { className: style('left-6', scrollButtonStyle, scrollStyle[tabsType].buttonTop), onClick: scroll.scrollLeft })) : null, scroll.canScrollRight ? (jsx(ArrowRightButton, { className: style('right-6', scrollButtonStyle, scrollStyle[tabsType].buttonTop), onClick: scroll.scrollRight })) : null] }));
10034
10027
  });
10035
10028
  const scrollToSelected = (container, items, activeItem) => {
10036
10029
  const selectedIndex = items.findIndex((_) => _ === activeItem);
@@ -10136,7 +10129,7 @@
10136
10129
  };
10137
10130
  const TableCarouselContainer = JSX(({ children, activeIndex, columnWidth, version = 'comparison' }) => (jsx("div", { className: "flex flex-1 overflow-hidden", children: jsx("div", { className: carouselContainerClassesMap[version], style: { transform: `translateX(-${activeIndex * columnWidth}px)` }, children: children }) })));
10138
10131
 
10139
- const TableInnerButton = JSX(({ className = '', isOpen, onClick }) => (jsx(LinkButton, { className: className, appendRight: jsx(Img, { image: { icon: isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon' }, width: "24", height: "24" }), text: isOpen ? 'Скрыть' : 'Показать', version: "gray", onClick: onClick })));
10132
+ const TableInnerButton = JSX(({ className = '', isOpen, onClick }) => (jsx(DefaultFoldButton, { className: className, label: isOpen ? 'Скрыть' : 'Показать', isUnfolded: isOpen, version: "secondary", short: true, onClick: onClick })));
10140
10133
 
10141
10134
  const renderButtonsCellData = ({ buttons }) => renderButtonsSection(buttons, {
10142
10135
  buttonClassName: 'basis-0',
@@ -10281,7 +10274,7 @@
10281
10274
  const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, activeIndex: activeIndex, rowIdx: i, ...rest }, String(i))));
10282
10275
  const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
10283
10276
  const [isUnfolded, { toggle }] = useBool(false);
10284
- return (jsxs(BlockWrapper, { className: style('relative space-y-6xl @4xl:space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), jsx("div", { className: "space-y-m overflow-hidden", children: hiddenRowsNum > 0 ? (jsxs(Foldable, { children: [jsxs(TariffsTableWrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] }), jsx(DefaultFoldButton, { className: "w-full", isUnfolded: isUnfolded, onClick: toggle })] })) : (jsx(TariffsTableWrapper, { controls: controls, children: rows })) })] }));
10277
+ return (jsxs(BlockWrapper, { className: style('relative space-y-6xl @4xl:space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), jsx("div", { className: "space-y-m overflow-hidden", children: hiddenRowsNum > 0 ? (jsxs(Foldable, { children: [jsxs(TariffsTableWrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] }), jsx(DefaultFoldButton, { className: "text-h4", isUnfolded: isUnfolded, onClick: toggle })] })) : (jsx(TariffsTableWrapper, { controls: controls, children: rows })) })] }));
10285
10278
  });
10286
10279
 
10287
10280
  const TextBlock = JSX(({ className = '', title, description, iconVersion, __html, richVersion, ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, jsxs("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? (jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, __html ? jsx(RichText, { richVersion: richVersion, __html: __html }) : null] })] })));
@@ -10468,7 +10461,7 @@
10468
10461
  globalThis.document?.body.classList.remove('no-scrollbar', 'overflow-hidden');
10469
10462
  }
10470
10463
  }, [hasDialogs]);
10471
- return hasDialogs ? (jsx("div", { className: "fixed inset-0 z-50", role: "dialog", children: dialogs.map(({ dialog, id }, i) => (jsx("div", { className: style('absolute inset-0 overflow-x-hidden overflow-y-scroll no-scrollbar bg-black/50', {
10464
+ return hasDialogs ? (jsx("div", { className: "fixed inset-0 z-50", children: dialogs.map(({ dialog, id }, i) => (jsx("div", { className: style('absolute inset-0 overflow-x-hidden overflow-y-scroll no-scrollbar bg-black/50', {
10472
10465
  hidden: i !== dialogs.length - 1, // TODO Чего?)
10473
10466
  }), children: dialog }, String(id || i)))) })) : null;
10474
10467
  });
@@ -10487,7 +10480,7 @@
10487
10480
  left: `${popup.left}px`,
10488
10481
  top: `${popup.top}px`,
10489
10482
  ...(popup.width ? { width: `${popup.width}px` } : {}),
10490
- }, role: "dialog", children: popup.popup })) : null;
10483
+ }, role: "dialog", title: "\u0412\u0441\u043F\u043B\u044B\u0432\u0430\u044E\u0449\u0435\u0435 \u043E\u043A\u043D\u043E", children: popup.popup })) : null;
10491
10484
  });
10492
10485
 
10493
10486
  const HEADER_SLOT = 'header';
@@ -10520,7 +10513,7 @@
10520
10513
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
10521
10514
  });
10522
10515
 
10523
- const packageVersion = "0.14.760";
10516
+ const packageVersion = "0.14.762";
10524
10517
 
10525
10518
  exports.Blocks = Blocks;
10526
10519
  exports.ContentPage = ContentPage;