@redneckz/wildless-cms-uni-blocks 0.12.12 → 0.12.13

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 (374) hide show
  1. package/bin/migration-scripts/0.12.10.js +59 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +90 -66
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
  6. package/bundle/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
  7. package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
  8. package/bundle/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
  9. package/bundle/components/Carousel/Carousel.d.ts +1 -1
  10. package/bundle/components/CarouselLinks/CarouselLinks.d.ts +1 -0
  11. package/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
  12. package/bundle/components/Footer/Contacts.d.ts +0 -1
  13. package/bundle/components/Footer/MediaButton.d.ts +1 -1
  14. package/bundle/components/Footer/buttonSizeStyles.d.ts +4 -0
  15. package/bundle/components/Footer/buttonSizeStyles.mobile.d.ts +4 -0
  16. package/bundle/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
  17. package/dist/components/ApplicationForm/ApplicationForm.js +16 -14
  18. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  19. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
  20. package/dist/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
  21. package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +22 -0
  22. package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -0
  23. package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
  24. package/dist/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
  25. package/dist/components/ApplicationForm/EmbeddableForms.js +17 -0
  26. package/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -0
  27. package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  28. package/dist/components/Bonus/Bonus.js +10 -13
  29. package/dist/components/Bonus/Bonus.js.map +1 -1
  30. package/dist/components/Calculator/BusinessDepositCalculatorForm.js +4 -4
  31. package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  32. package/dist/components/Calculator/CreditCalculatorForm.js +1 -1
  33. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  34. package/dist/components/Calculator/DepositCalculatorForm.js +3 -3
  35. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  36. package/dist/components/Carousel/Carousel.d.ts +1 -1
  37. package/dist/components/Carousel/Carousel.js.map +1 -1
  38. package/dist/components/Carousel/CarouselScrollButtons.js +2 -2
  39. package/dist/components/Carousel/CarouselScrollButtons.js.map +1 -1
  40. package/dist/components/CarouselLinks/CarouselLinks.d.ts +1 -0
  41. package/dist/components/CarouselLinks/CarouselLinks.js +7 -8
  42. package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  43. package/dist/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
  44. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  45. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  46. package/dist/components/ContentPage/ContentPage.js +2 -2
  47. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  48. package/dist/components/Footer/Contacts.d.ts +0 -1
  49. package/dist/components/Footer/Contacts.js +3 -4
  50. package/dist/components/Footer/Contacts.js.map +1 -1
  51. package/dist/components/Footer/Footer.js +2 -2
  52. package/dist/components/Footer/Footer.js.map +1 -1
  53. package/dist/components/Footer/Footer.mobile.js +4 -3
  54. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  55. package/dist/components/Footer/HorizontalNavigation.js +1 -1
  56. package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  57. package/dist/components/Footer/HorizontalNavigation.mobile.js +1 -1
  58. package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  59. package/dist/components/Footer/MediaButton.d.ts +1 -1
  60. package/dist/components/Footer/SocialMedia.js +2 -1
  61. package/dist/components/Footer/SocialMedia.js.map +1 -1
  62. package/dist/components/Footer/TextInformation.js +1 -1
  63. package/dist/components/Footer/TextInformation.js.map +1 -1
  64. package/dist/components/Footer/buttonSizeStyles.d.ts +4 -0
  65. package/dist/components/Footer/buttonSizeStyles.js +7 -0
  66. package/dist/components/Footer/buttonSizeStyles.js.map +1 -0
  67. package/dist/components/Footer/buttonSizeStyles.mobile.d.ts +4 -0
  68. package/dist/components/Footer/buttonSizeStyles.mobile.js +7 -0
  69. package/dist/components/Footer/buttonSizeStyles.mobile.js.map +1 -0
  70. package/dist/components/Footer/buttonStylesWithText.js +2 -5
  71. package/dist/components/Footer/buttonStylesWithText.js.map +1 -1
  72. package/dist/components/MobileAppTile/renderDescription.js +1 -1
  73. package/dist/components/MobileAppTile/renderDescription.js.map +1 -1
  74. package/dist/components/RollupItem/RollupItem.js +1 -1
  75. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  76. package/dist/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
  77. package/dist/services/regionsGrantSupport/RegionsGrantSupportData.js +2 -0
  78. package/dist/services/regionsGrantSupport/RegionsGrantSupportData.js.map +1 -0
  79. package/dist/ui-kit/LinkButton/LinkButton.js +4 -3
  80. package/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
  81. package/dist/ui-kit/LinkList/LinkList.js +2 -2
  82. package/dist/ui-kit/LinkList/LinkList.js.map +1 -1
  83. package/lib/common.css +1 -1
  84. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
  85. package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +1 -0
  86. package/lib/components/ApplicationForm/ApplicationForm.js +16 -14
  87. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  88. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
  89. package/lib/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
  90. package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +20 -0
  91. package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -0
  92. package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
  93. package/lib/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
  94. package/lib/components/ApplicationForm/EmbeddableForms.js +15 -0
  95. package/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -0
  96. package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  97. package/lib/components/Bonus/Bonus.fixture.mobile.d.ts +8 -0
  98. package/lib/components/Bonus/Bonus.js +10 -13
  99. package/lib/components/Bonus/Bonus.js.map +1 -1
  100. package/lib/components/Calculator/BusinessDepositCalculatorForm.js +4 -4
  101. package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  102. package/lib/components/Calculator/CreditCalculatorForm.js +1 -1
  103. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  104. package/lib/components/Calculator/DepositCalculatorForm.js +3 -3
  105. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  106. package/lib/components/Carousel/Carousel.d.ts +1 -1
  107. package/lib/components/Carousel/Carousel.js.map +1 -1
  108. package/lib/components/Carousel/CarouselScrollButtons.js +2 -2
  109. package/lib/components/Carousel/CarouselScrollButtons.js.map +1 -1
  110. package/lib/components/CarouselLinks/CarouselLinks.d.ts +1 -0
  111. package/lib/components/CarouselLinks/CarouselLinks.fixture.mobile.d.ts +6 -0
  112. package/lib/components/CarouselLinks/CarouselLinks.js +7 -8
  113. package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  114. package/lib/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
  115. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  116. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  117. package/lib/components/ContentPage/ContentPage.js +2 -2
  118. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  119. package/lib/components/Footer/Contacts.d.ts +0 -1
  120. package/lib/components/Footer/Contacts.js +3 -4
  121. package/lib/components/Footer/Contacts.js.map +1 -1
  122. package/lib/components/Footer/Footer.js +2 -2
  123. package/lib/components/Footer/Footer.js.map +1 -1
  124. package/lib/components/Footer/Footer.mobile.js +4 -3
  125. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  126. package/lib/components/Footer/HorizontalNavigation.js +1 -1
  127. package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  128. package/lib/components/Footer/HorizontalNavigation.mobile.js +1 -1
  129. package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  130. package/lib/components/Footer/MediaButton.d.ts +1 -1
  131. package/lib/components/Footer/SocialMedia.js +2 -1
  132. package/lib/components/Footer/SocialMedia.js.map +1 -1
  133. package/lib/components/Footer/TextInformation.js +1 -1
  134. package/lib/components/Footer/TextInformation.js.map +1 -1
  135. package/lib/components/Footer/buttonSizeStyles.d.ts +4 -0
  136. package/lib/components/Footer/buttonSizeStyles.js +5 -0
  137. package/lib/components/Footer/buttonSizeStyles.js.map +1 -0
  138. package/lib/components/Footer/buttonSizeStyles.mobile.d.ts +4 -0
  139. package/lib/components/Footer/buttonSizeStyles.mobile.js +5 -0
  140. package/lib/components/Footer/buttonSizeStyles.mobile.js.map +1 -0
  141. package/lib/components/Footer/buttonStylesWithText.js +1 -4
  142. package/lib/components/Footer/buttonStylesWithText.js.map +1 -1
  143. package/lib/components/MobileAppTile/renderDescription.js +1 -1
  144. package/lib/components/MobileAppTile/renderDescription.js.map +1 -1
  145. package/lib/components/RollupItem/RollupItem.js +1 -1
  146. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  147. package/lib/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
  148. package/lib/services/regionsGrantSupport/RegionsGrantSupportData.js +2 -0
  149. package/lib/services/regionsGrantSupport/RegionsGrantSupportData.js.map +1 -0
  150. package/lib/ui-kit/LinkButton/LinkButton.fixture.mobile.d.ts +6 -0
  151. package/lib/ui-kit/LinkButton/LinkButton.js +4 -3
  152. package/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
  153. package/lib/ui-kit/LinkList/LinkList.js +2 -2
  154. package/lib/ui-kit/LinkList/LinkList.js.map +1 -1
  155. package/mobile/bundle/bundle.umd.js +65 -37
  156. package/mobile/bundle/bundle.umd.min.js +1 -1
  157. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
  158. package/mobile/bundle/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
  159. package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
  160. package/mobile/bundle/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
  161. package/mobile/bundle/components/Carousel/Carousel.d.ts +1 -1
  162. package/mobile/bundle/components/CarouselLinks/CarouselLinks.d.ts +1 -0
  163. package/mobile/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
  164. package/mobile/bundle/components/Footer/Contacts.d.ts +0 -1
  165. package/mobile/bundle/components/Footer/MediaButton.d.ts +1 -1
  166. package/mobile/bundle/components/Footer/SocialMedia.d.ts +4 -2
  167. package/mobile/bundle/components/Footer/buttonSizeStyles.d.ts +4 -0
  168. package/mobile/bundle/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
  169. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +16 -14
  170. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  171. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
  172. package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
  173. package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +22 -0
  174. package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -0
  175. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
  176. package/mobile/dist/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
  177. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js +17 -0
  178. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -0
  179. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  180. package/mobile/dist/components/Bonus/Bonus.js +10 -13
  181. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  182. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +4 -4
  183. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  184. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +1 -1
  185. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  186. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +3 -3
  187. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  188. package/mobile/dist/components/Carousel/Carousel.d.ts +1 -1
  189. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  190. package/mobile/dist/components/Carousel/CarouselScrollButtons.js +2 -2
  191. package/mobile/dist/components/Carousel/CarouselScrollButtons.js.map +1 -1
  192. package/mobile/dist/components/CarouselLinks/CarouselLinks.d.ts +1 -0
  193. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +7 -8
  194. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  195. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
  196. package/mobile/dist/components/ContentPage/ContentPage.js +2 -2
  197. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  198. package/mobile/dist/components/Footer/Contacts.d.ts +0 -1
  199. package/mobile/dist/components/Footer/Contacts.js +3 -4
  200. package/mobile/dist/components/Footer/Contacts.js.map +1 -1
  201. package/mobile/dist/components/Footer/Footer.js +4 -3
  202. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  203. package/mobile/dist/components/Footer/HorizontalNavigation.js +1 -1
  204. package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  205. package/mobile/dist/components/Footer/MediaButton.d.ts +1 -1
  206. package/mobile/dist/components/Footer/SocialMedia.d.ts +4 -2
  207. package/mobile/dist/components/Footer/SocialMedia.js +3 -1
  208. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  209. package/mobile/dist/components/Footer/TextInformation.js +1 -1
  210. package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
  211. package/mobile/dist/components/Footer/buttonSizeStyles.d.ts +4 -0
  212. package/mobile/dist/components/Footer/buttonSizeStyles.js +7 -0
  213. package/mobile/dist/components/Footer/buttonSizeStyles.js.map +1 -0
  214. package/mobile/dist/components/Footer/buttonStylesWithText.js +2 -5
  215. package/mobile/dist/components/Footer/buttonStylesWithText.js.map +1 -1
  216. package/mobile/dist/components/MobileAppTile/renderDescription.js +1 -1
  217. package/mobile/dist/components/MobileAppTile/renderDescription.js.map +1 -1
  218. package/mobile/dist/components/RollupItem/RollupItem.js +1 -1
  219. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  220. package/mobile/dist/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
  221. package/mobile/dist/services/regionsGrantSupport/RegionsGrantSupportData.js +2 -0
  222. package/mobile/dist/services/regionsGrantSupport/RegionsGrantSupportData.js.map +1 -0
  223. package/mobile/dist/ui-kit/LinkButton/LinkButton.js +4 -3
  224. package/mobile/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
  225. package/mobile/dist/ui-kit/LinkList/LinkList.js +2 -2
  226. package/mobile/dist/ui-kit/LinkList/LinkList.js.map +1 -1
  227. package/mobile/lib/common.css +1 -1
  228. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +16 -14
  229. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  230. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
  231. package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
  232. package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +20 -0
  233. package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -0
  234. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
  235. package/mobile/lib/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
  236. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js +15 -0
  237. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -0
  238. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  239. package/mobile/lib/components/Bonus/Bonus.js +10 -13
  240. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  241. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +4 -4
  242. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  243. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +1 -1
  244. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  245. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +3 -3
  246. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  247. package/mobile/lib/components/Carousel/Carousel.d.ts +1 -1
  248. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  249. package/mobile/lib/components/Carousel/CarouselScrollButtons.js +2 -2
  250. package/mobile/lib/components/Carousel/CarouselScrollButtons.js.map +1 -1
  251. package/mobile/lib/components/CarouselLinks/CarouselLinks.d.ts +1 -0
  252. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +7 -8
  253. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  254. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
  255. package/mobile/lib/components/ContentPage/ContentPage.js +2 -2
  256. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  257. package/mobile/lib/components/Footer/Contacts.d.ts +0 -1
  258. package/mobile/lib/components/Footer/Contacts.js +3 -4
  259. package/mobile/lib/components/Footer/Contacts.js.map +1 -1
  260. package/mobile/lib/components/Footer/Footer.js +4 -3
  261. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  262. package/mobile/lib/components/Footer/HorizontalNavigation.js +1 -1
  263. package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  264. package/mobile/lib/components/Footer/MediaButton.d.ts +1 -1
  265. package/mobile/lib/components/Footer/SocialMedia.d.ts +4 -2
  266. package/mobile/lib/components/Footer/SocialMedia.js +4 -2
  267. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  268. package/mobile/lib/components/Footer/TextInformation.js +1 -1
  269. package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
  270. package/mobile/lib/components/Footer/buttonSizeStyles.d.ts +4 -0
  271. package/mobile/lib/components/Footer/buttonSizeStyles.js +5 -0
  272. package/mobile/lib/components/Footer/buttonSizeStyles.js.map +1 -0
  273. package/mobile/lib/components/Footer/buttonStylesWithText.js +1 -4
  274. package/mobile/lib/components/Footer/buttonStylesWithText.js.map +1 -1
  275. package/mobile/lib/components/MobileAppTile/renderDescription.js +1 -1
  276. package/mobile/lib/components/MobileAppTile/renderDescription.js.map +1 -1
  277. package/mobile/lib/components/RollupItem/RollupItem.js +1 -1
  278. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  279. package/mobile/lib/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
  280. package/mobile/lib/services/regionsGrantSupport/RegionsGrantSupportData.js +2 -0
  281. package/mobile/lib/services/regionsGrantSupport/RegionsGrantSupportData.js.map +1 -0
  282. package/mobile/lib/ui-kit/LinkButton/LinkButton.js +4 -3
  283. package/mobile/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
  284. package/mobile/lib/ui-kit/LinkList/LinkList.js +2 -2
  285. package/mobile/lib/ui-kit/LinkList/LinkList.js.map +1 -1
  286. package/mobile/src/common.css +1 -1
  287. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +31 -19
  288. package/mobile/src/components/ApplicationForm/ApplicationForm.ui.json +12 -0
  289. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +70 -11
  290. package/mobile/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +51 -0
  291. package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +1 -0
  292. package/mobile/src/components/ApplicationForm/EmbeddableForms.tsx +15 -0
  293. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  294. package/mobile/src/components/Bonus/Bonus.tsx +33 -28
  295. package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +11 -6
  296. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +1 -1
  297. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +3 -3
  298. package/mobile/src/components/Carousel/Carousel.tsx +5 -3
  299. package/mobile/src/components/Carousel/CarouselScrollButtons.tsx +10 -3
  300. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +25 -14
  301. package/mobile/src/components/CarouselLinks/CarouselLinksContent.ts +2 -0
  302. package/mobile/src/components/ContentPage/ContentPage.tsx +3 -3
  303. package/mobile/src/components/Footer/Contacts.tsx +15 -19
  304. package/mobile/src/components/Footer/Footer.tsx +27 -13
  305. package/mobile/src/components/Footer/HorizontalNavigation.tsx +10 -3
  306. package/mobile/src/components/Footer/MediaButton.tsx +1 -1
  307. package/mobile/src/components/Footer/SocialMedia.tsx +22 -9
  308. package/mobile/src/components/Footer/TextInformation.tsx +2 -2
  309. package/mobile/src/components/Footer/buttonSizeStyles.ts +6 -0
  310. package/mobile/src/components/Footer/buttonStylesWithText.ts +1 -5
  311. package/mobile/src/components/MobileAppTile/renderDescription.tsx +1 -1
  312. package/mobile/src/components/RollupItem/RollupItem.tsx +1 -1
  313. package/mobile/src/services/regionsGrantSupport/RegionsGrantSupportData.ts +8 -0
  314. package/mobile/src/ui-kit/LinkButton/LinkButton.tsx +22 -9
  315. package/mobile/src/ui-kit/LinkList/LinkList.tsx +3 -3
  316. package/package.json +1 -1
  317. package/src/common.css +1 -1
  318. package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +41 -7
  319. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +41 -7
  320. package/src/components/ApplicationForm/ApplicationForm.tsx +31 -19
  321. package/src/components/ApplicationForm/ApplicationForm.ui.json +12 -0
  322. package/src/components/ApplicationForm/ApplicationFormContent.ts +70 -11
  323. package/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +51 -0
  324. package/src/components/ApplicationForm/ApplicationFormsProps.ts +1 -0
  325. package/src/components/ApplicationForm/EmbeddableForms.tsx +15 -0
  326. package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  327. package/src/components/Bonus/Bonus.fixture.mobile.tsx +72 -0
  328. package/src/components/Bonus/Bonus.tsx +33 -28
  329. package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +11 -6
  330. package/src/components/Calculator/CreditCalculatorForm.tsx +1 -1
  331. package/src/components/Calculator/DepositCalculatorForm.tsx +3 -3
  332. package/src/components/Carousel/Carousel.tsx +5 -3
  333. package/src/components/Carousel/CarouselScrollButtons.tsx +10 -3
  334. package/src/components/CarouselLinks/CarouselLinks.fixture.mobile.tsx +34 -0
  335. package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +3 -0
  336. package/src/components/CarouselLinks/CarouselLinks.tsx +25 -14
  337. package/src/components/CarouselLinks/CarouselLinksContent.ts +2 -0
  338. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
  339. package/src/components/ContentPage/ContentPage.tsx +3 -3
  340. package/src/components/Footer/Contacts.tsx +15 -19
  341. package/src/components/Footer/Footer.mobile.tsx +27 -13
  342. package/src/components/Footer/Footer.tsx +6 -8
  343. package/src/components/Footer/HorizontalNavigation.mobile.tsx +10 -3
  344. package/src/components/Footer/HorizontalNavigation.tsx +1 -1
  345. package/src/components/Footer/MediaButton.tsx +1 -1
  346. package/src/components/Footer/SocialMedia.tsx +9 -6
  347. package/src/components/Footer/TextInformation.tsx +2 -2
  348. package/src/components/Footer/buttonSizeStyles.mobile.ts +6 -0
  349. package/src/components/Footer/buttonSizeStyles.ts +6 -0
  350. package/src/components/Footer/buttonStylesWithText.ts +1 -5
  351. package/src/components/MobileAppTile/renderDescription.tsx +1 -1
  352. package/src/components/RollupItem/RollupItem.tsx +1 -1
  353. package/src/services/regionsGrantSupport/RegionsGrantSupportData.ts +8 -0
  354. package/src/ui-kit/LinkButton/LinkButton.fixture.mobile.tsx +11 -0
  355. package/src/ui-kit/LinkButton/LinkButton.fixture.tsx +1 -1
  356. package/src/ui-kit/LinkButton/LinkButton.tsx +22 -9
  357. package/src/ui-kit/LinkList/LinkList.tsx +3 -3
  358. package/tailwind.config.cjs +5 -5
  359. package/bundle/components/Footer/SocialMedia.mobile.d.ts +0 -6
  360. package/bundle/components/Footer/buttonStylesWithText.mobile.d.ts +0 -2
  361. package/dist/components/Footer/SocialMedia.mobile.d.ts +0 -6
  362. package/dist/components/Footer/SocialMedia.mobile.js +0 -7
  363. package/dist/components/Footer/SocialMedia.mobile.js.map +0 -1
  364. package/dist/components/Footer/buttonStylesWithText.mobile.d.ts +0 -2
  365. package/dist/components/Footer/buttonStylesWithText.mobile.js +0 -12
  366. package/dist/components/Footer/buttonStylesWithText.mobile.js.map +0 -1
  367. package/lib/components/Footer/SocialMedia.mobile.d.ts +0 -6
  368. package/lib/components/Footer/SocialMedia.mobile.js +0 -5
  369. package/lib/components/Footer/SocialMedia.mobile.js.map +0 -1
  370. package/lib/components/Footer/buttonStylesWithText.mobile.d.ts +0 -2
  371. package/lib/components/Footer/buttonStylesWithText.mobile.js +0 -9
  372. package/lib/components/Footer/buttonStylesWithText.mobile.js.map +0 -1
  373. package/src/components/Footer/SocialMedia.mobile.tsx +0 -16
  374. package/src/components/Footer/buttonStylesWithText.mobile.ts +0 -15
@@ -2,9 +2,9 @@ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  import { style } from '../../utils/style.js';
4
4
  import { linkListStyles } from './linkListStyles.js';
5
- export const LinkList = JSX(({ className = '', items }) => items?.length ? (_jsx("ul", { className: style('flex flex-col p-0 gap-m sm:gap-xl', linkListStyles, className), children: items.map(renderLinkListItem) })) : null);
5
+ export const LinkList = JSX(({ className = '', items }) => items?.length ? (_jsx("ul", { className: style('flex flex-col', linkListStyles, className), children: items.map(renderLinkListItem) })) : null);
6
6
  const renderLinkListItem = (item, i) => {
7
7
  const { text, ...linkProps } = item;
8
- return (_jsx("li", { className: "list-none", children: _jsx("a", { className: "hover:text-primary-main sm:font-light", role: "link", ...linkProps, children: text ? text : null }) }, `list_item_${String(i)}`));
8
+ return (_jsx("li", { className: "list-none my-xs", children: _jsx("a", { className: "hover:text-primary-main font-light", role: "link", ...linkProps, children: text ? text : null }) }, `list_item_${String(i)}`));
9
9
  };
10
10
  //# sourceMappingURL=LinkList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LinkList.js","sourceRoot":"","sources":["../../../src/ui-kit/LinkList/LinkList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAgB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CACvE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,aAAI,SAAS,EAAE,KAAK,CAAC,mCAAmC,EAAE,cAAc,EAAE,SAAS,CAAC,YACjF,KAAK,CAAC,GAAG,CAAC,kBAAkB,CAAC,GAC3B,CACN,CAAC,CAAC,CAAC,IAAI,CACT,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,IAAe,EAAE,CAAS,EAAE,EAAE;IACxD,MAAM,EAAE,IAAI,EAAE,GAAG,SAAS,EAAE,GAAG,IAAI,CAAC;IAEpC,OAAO,CACL,aAAmC,SAAS,EAAC,WAAW,YACtD,YAAG,SAAS,EAAC,uCAAuC,EAAC,IAAI,EAAC,MAAM,KAAK,SAAS,YAC3E,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,GACjB,IAHG,aAAa,MAAM,CAAC,CAAC,CAAC,EAAE,CAI5B,CACN,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"LinkList.js","sourceRoot":"","sources":["../../../src/ui-kit/LinkList/LinkList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAgB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CACvE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,aAAI,SAAS,EAAE,KAAK,CAAC,eAAe,EAAE,cAAc,EAAE,SAAS,CAAC,YAC7D,KAAK,CAAC,GAAG,CAAC,kBAAkB,CAAC,GAC3B,CACN,CAAC,CAAC,CAAC,IAAI,CACT,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,IAAe,EAAE,CAAS,EAAE,EAAE;IACxD,MAAM,EAAE,IAAI,EAAE,GAAG,SAAS,EAAE,GAAG,IAAI,CAAC;IAEpC,OAAO,CACL,aAAmC,SAAS,EAAC,iBAAiB,YAC5D,YAAG,SAAS,EAAC,oCAAoC,EAAC,IAAI,EAAC,MAAM,KAAK,SAAS,YACxE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,GACjB,IAHG,aAAa,MAAM,CAAC,CAAC,CAAC,EAAE,CAI5B,CACN,CAAC;AACJ,CAAC,CAAC"}
@@ -1054,6 +1054,26 @@
1054
1054
  return (jsxs("form", { className: "container", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u041E\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u0437\u0430\u044F\u0432\u043A\u0443 \u0438 \u043C\u044B \u043E\u0442\u0432\u0435\u0442\u0438\u043C \u043D\u0430 \u043B\u044E\u0431\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u0434\u0435\u043F\u043E\u0437\u0438\u0442\u0430\u043C", className: "sm:text-center mb-4" }), jsxs("div", { className: "max-w-[560px] m-auto", children: [jsx(InputControl, { className: "shrink-0 w-full mb-3", label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(PhoneInputControl, { className: "shrink-0 w-full mb-3", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: "flex justify-between flex-col-reverse sm:items-center sm:flex-row max-w-[560px] m-auto", children: [jsx("div", { className: "flex-1 mt-4 sm:mt-0", children: jsx(Footnote, { link: link }) }), renderSubmitButton(button)] })] }));
1055
1055
  });
1056
1056
 
1057
+ const EMPTY_VALUE$1 = {};
1058
+ function useSWRResource(filename, fallback = {}) {
1059
+ const { data } = useAsyncData(`/wcms-resources/${filename}.json`, fetchJSONUnsafe, {
1060
+ fallback,
1061
+ });
1062
+ return data || EMPTY_VALUE$1;
1063
+ }
1064
+
1065
+ const ApplicationFormGrantSupport = JSX((props) => {
1066
+ const { button, sourceBookDir } = props;
1067
+ const { regions } = useSWRResource(sourceBookDir || 'regions-grant-support');
1068
+ const [region, setRegion] = useState({ key: '' });
1069
+ const buttonStyle = getRegularButtonClasses({
1070
+ className: 'text-white',
1071
+ version: button?.version,
1072
+ });
1073
+ const regionHref = regions?.find((_) => _.name === region.key)?.href;
1074
+ return (jsxs("div", { className: "container space-y-s sm:space-y-lg", children: [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", options: regions.map(({ name = '' }) => ({ key: name })), value: region, onChange: setRegion })) : null, regionHref ? (jsx("div", { className: "text-center", children: jsx(Button, { href: regionHref, target: "_blank", className: style('p-4 w-full sm:w-auto', buttonStyle), children: button?.text ? button.text : 'Перейти' }) })) : null] }));
1075
+ });
1076
+
1057
1077
  const sourcesComparator = (a, b) => a?.media && b?.media ? a.media - b.media : 0;
1058
1078
  const ImgAsPicture = JSX(({ className = '', image, imageClassName = '', pathPrefix }) => {
1059
1079
  const router = useRouter();
@@ -1148,30 +1168,45 @@
1148
1168
  return (jsxs("form", { className: "container", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "sm:text-center mb-m" }), renderWedDataOrganization(field), jsx(Heading, { headingType: "h6", title: "\u0418\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0432\u043E\u043F\u0440\u043E\u0441", className: "sm:text-center mb-m" }), renderQuestionsInterested(field), jsxs("div", { className: "flex flex-col border-b border-main-divider mb-5 pb-5 sm:items-center sm:flex-row sm:mb-9 sm:pb-9", children: [renderSubmitButton(button, 'mb-m sm:mr-lg sm:mb-0'), jsx(Footnote, { link: link })] }), jsx(Heading, { headingType: "h6", title: "\u0418\u043B\u0438 \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u043D\u0430\u043C\u0438 \u0443\u0434\u043E\u0431\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C", className: "sm:text-center mb-m" }), renderContacts()] }));
1149
1169
  });
1150
1170
 
1171
+ const EmbeddableForms = {
1172
+ ApplicationFormBusinessCard,
1173
+ ApplicationFormWed,
1174
+ ApplicationFormDeposit,
1175
+ ApplicationFormCredit,
1176
+ ApplicationFormAcquiring,
1177
+ ApplicationFormGrantSupport,
1178
+ };
1179
+
1151
1180
  const ResponseNotification = JSX(({ responseType }) => {
1152
1181
  const responseOK = responseType === 'OK';
1153
1182
  const backgroundColor = responseOK ? 'bg-ok' : 'bg-fail';
1154
1183
  return (jsxs("div", { className: `flex items-center mt-lg p-lg rounded-md space-x-m ${backgroundColor}`, children: [responseOK ? (jsx(Img, { image: { icon: 'ResponceOKIcon' }, width: "42", height: "42" })) : (jsx(Img, { image: { icon: 'ResponceFailIcon' }, width: "37", height: "34" })), jsxs("div", { children: [jsx(Heading, { headingType: "h6", title: responseOK ? 'Ваша заявка отправлена' : 'Не удалось отправить заявку', className: "mb-1" }), jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: responseOK ? 'Совсем скоро мы с вами свяжемся' : 'Пожалуйста, повторите позднее' })] })] }));
1155
1184
  });
1156
1185
 
1157
- const COMPONENTS_MAP = {
1158
- credit: (props) => jsx(ApplicationFormCredit, { ...props }),
1159
- acquiring: (props) => jsx(ApplicationFormAcquiring, { ...props }),
1160
- 'business-card': (props) => jsx(ApplicationFormBusinessCard, { ...props }),
1161
- deposit: (props) => jsx(ApplicationFormDeposit, { ...props }),
1162
- wed: (props) => jsx(ApplicationFormWed, { ...props }),
1163
- };
1164
1186
  const API = CorporateLeadAPI();
1165
1187
  const ApplicationForm = JSX((props) => {
1166
- const { className, title, typeForm = 'credit', button, link, ...rest } = props;
1188
+ const { className, formBlock, ...rest } = props;
1189
+ // const type = formBlock?.formType;
1190
+ // if (!type || !(type in EmbeddableForms)) {
1191
+ // return null;
1192
+ // }
1193
+ // const EmbeddedForm = EmbeddableForms[type];
1167
1194
  const [responseType, setResponseType] = useState('');
1168
1195
  const handleSubmit = useCallback(async (data) => {
1169
1196
  const status = (await API.send(data)) ? 'OK' : 'Fail';
1170
1197
  setResponseType(status);
1171
1198
  return status;
1172
1199
  }, []);
1173
- return (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container max-w-[978px]", children: [title ? (jsx(Heading, { headingType: "h3", title: title, className: "mb-4 sm:mb-8 sm:text-center" })) : null, COMPONENTS_MAP[typeForm]({ button, link, onSubmit: handleSubmit }), responseType ? jsx(ResponseNotification, { responseType: responseType }) : null] }) }));
1200
+ return (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container max-w-[978px]", children: [formBlock?.title ? (jsx(Heading, { headingType: "h3", title: formBlock.title, className: "mb-4 sm:mb-8 sm:text-center" })) : null, formBlock ? renderEmbeddedForm(formBlock, handleSubmit) : null, responseType ? jsx(ResponseNotification, { responseType: responseType }) : null] }) }));
1174
1201
  });
1202
+ const renderEmbeddedForm = (formBlock, handleSubmit) => {
1203
+ const type = formBlock?.formType;
1204
+ if (!type || !(type in EmbeddableForms)) {
1205
+ return null;
1206
+ }
1207
+ const EmbeddedForm = EmbeddableForms[type];
1208
+ return jsx(EmbeddedForm, { ...formBlock, onSubmit: handleSubmit });
1209
+ };
1175
1210
 
1176
1211
  const iconBgStyles = {
1177
1212
  '': 'bg-main-divider group-data-secondary:bg-white/30',
@@ -1190,7 +1225,7 @@
1190
1225
  const defaultIconSize = 56;
1191
1226
 
1192
1227
  const BenefitsBlock = JSX(({ className = '', title, benefitList, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [title ? jsx(Heading, { headingType: "h3", as: "h2", className: "text-center", title: title }) : null, benefitList?.length ? (jsx("div", { className: "flex flex-wrap w-full sm:justify-center mt-xl gap-5xl", role: "list", children: benefitList.map(renderBenefit) })) : null] })));
1193
- const renderBenefit = (benefit, i) => (jsxs("div", { className: "flex gap-m items-center md:basis-1/2 md:max-w-[400px]", role: "listitem", children: [benefit?.icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", defaultIconSize: defaultIconSize, iconBgVersion: benefit?.iconBgVersion || '', ...benefit?.icon })) : null, benefit?.icon?.src ? jsx(Img, { className: "shrink-0", image: benefit.icon }) : null, benefit?.label ? (jsxs("div", { className: "sm:h-full", children: [jsx(Heading, { headingType: "h6", children: benefit.label }), renderDescription$3(benefit.description)] })) : null] }, String(i)));
1228
+ const renderBenefit = (benefit, i) => (jsxs("div", { className: "flex gap-m items-center md:basis-1/2 md:max-w-[500px]", role: "listitem", children: [benefit?.icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", defaultIconSize: defaultIconSize, iconBgVersion: benefit?.iconBgVersion || '', ...benefit?.icon })) : null, benefit?.icon?.src ? jsx(Img, { className: "shrink-0", image: benefit.icon }) : null, benefit?.label ? (jsxs("div", { className: "sm:h-full", children: [jsx(Heading, { headingType: "h6", children: benefit.label }), renderDescription$3(benefit.description)] })) : null] }, String(i)));
1194
1229
  const renderDescription$3 = (description) => {
1195
1230
  const benefitType = description?.benefitType || null;
1196
1231
  return description && benefitType ? (jsx("div", { className: "mt-xs text-l font-light text-secondary-text group-data-secondary:text-white/80", children: benefitType === 'list'
@@ -1586,9 +1621,9 @@
1586
1621
  onScrollRight();
1587
1622
  }
1588
1623
  }, [scrollRight, onScrollRight, hasEdgeBlocks, canScrollLeft, activeIndex, itemCount]);
1589
- return (jsxs("div", { children: [renderBlur(scroll), canMoveLeft ? (jsx(ScrollLeftButton, { className: style(scrollButtonStyle$1, arrowsPadded ? 'left-1 @lg:left-8' : 'left-0'), onClick: handleScrollLeft })) : null, canMoveRight ? (jsx(ScrollRightButton, { className: style(scrollButtonStyle$1, arrowsPadded ? 'right-1 @lg:right-8' : 'right-0'), onClick: handleScrollRight })) : null] }));
1624
+ return (jsxs("div", { className: "hidden @lg:block", children: [renderBlur(scroll), canMoveLeft ? (jsx(ScrollLeftButton, { className: style(scrollButtonStyle$1, arrowsPadded ? 'left-1 @lg:left-8' : 'left-0'), onClick: handleScrollLeft })) : null, canMoveRight ? (jsx(ScrollRightButton, { className: style(scrollButtonStyle$1, arrowsPadded ? 'right-1 @lg:right-8' : 'right-0'), onClick: handleScrollRight })) : null] }));
1590
1625
  });
1591
- const renderBlur = (scroll) => (jsxs("div", { children: [scroll.canScrollLeft ? (jsx("div", { className: style(blurBaseStyle, 'left-0 bg-opacity-from-white') })) : null, scroll.canScrollRight ? (jsx("div", { className: style(blurBaseStyle, 'right-0 bg-opacity-to-white') })) : null] }));
1626
+ 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] }));
1592
1627
 
1593
1628
  const ITEMS_GAP = 16;
1594
1629
 
@@ -1664,8 +1699,9 @@
1664
1699
 
1665
1700
  const buttonSizeStyles = {
1666
1701
  default: 'w-24 h-14',
1667
- small: 'w-12 h-12',
1702
+ stretched: 'flex-1 h-14',
1668
1703
  };
1704
+
1669
1705
  const buttonStylesWithText = (text, buttonSize) => text
1670
1706
  ? ''
1671
1707
  : style('group/media flex items-center justify-center box-border', buttonSizeStyles[buttonSize]);
@@ -1713,7 +1749,7 @@
1713
1749
  });
1714
1750
  const getFilteredIcon = (icon) => (icon?.src || icon?.icon ? icon : undefined);
1715
1751
 
1716
- const SocialMedia = JSX(({ className = '', media }) => (jsx("div", { className: `flex gap-2 items-start justify-start ${className}`, children: media?.map((_, index) => (jsx(MediaButton, { ..._ }, String(index)))) })));
1752
+ const SocialMedia = JSX(({ className = '', media, children, buttonSize }) => (jsxs("div", { className: "flex flex-col sm:flex-col-reverse gap-xs", children: [children ? (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null, jsx("div", { className: style('flex gap-xs', className), children: media?.map((_, index) => (jsx(MediaButton, { buttonSize: buttonSize, ..._ }, String(index)))) })] })));
1717
1753
 
1718
1754
  const CarouselRecommendationCard = JSX(({ className = '', description, href, icon, items = [], socialMedia = [], target, title, align = 'text-left', ...rest }) => {
1719
1755
  return (jsx(BlockWrapper, { className: style('relative group-data-gray:bg-main-divider/50', className), defaultPadding: "p-6xl", ...rest, children: jsxs(LinkWrapper, { href: href, target: target, children: [jsx(Headline, { className: "mb-xs", title: title, description: description, headlineVersion: "S", isPadding: false, align: align }), items.length ? (jsx(List, { className: "flex flex-col gap-2", items: items, listItemSize: "S" })) : null, renderIcon$1(icon), socialMedia.length ? jsx(SocialMedia, { className: "mt-5", media: socialMedia }) : null] }) }));
@@ -2013,20 +2049,12 @@
2013
2049
  return currencies?.filter((_) => _?.currency?.id === 1 || _?.currency?.id === 2) || [];
2014
2050
  };
2015
2051
 
2016
- const EMPTY_VALUE$1 = {};
2017
- function useSWRResource(filename, fallback = {}) {
2018
- const { data } = useAsyncData(`/wcms-resources/${filename}.json`, fetchJSONUnsafe, {
2019
- fallback,
2020
- });
2021
- return data || EMPTY_VALUE$1;
2022
- }
2023
-
2024
2052
  const linkListStyles = '';
2025
2053
 
2026
- const LinkList = JSX(({ className = '', items }) => items?.length ? (jsx("ul", { className: style('flex flex-col p-0 gap-m sm:gap-xl', linkListStyles, className), children: items.map(renderLinkListItem) })) : null);
2054
+ const LinkList = JSX(({ className = '', items }) => items?.length ? (jsx("ul", { className: style('flex flex-col', linkListStyles, className), children: items.map(renderLinkListItem) })) : null);
2027
2055
  const renderLinkListItem = (item, i) => {
2028
2056
  const { text, ...linkProps } = item;
2029
- return (jsx("li", { className: "list-none", children: jsx("a", { className: "hover:text-primary-main sm:font-light", role: "link", ...linkProps, children: text ? text : null }) }, `list_item_${String(i)}`));
2057
+ return (jsx("li", { className: "list-none my-xs", children: jsx("a", { className: "hover:text-primary-main font-light", role: "link", ...linkProps, children: text ? text : null }) }, `list_item_${String(i)}`));
2030
2058
  };
2031
2059
 
2032
2060
  const DefaultFoldButton = JSX(({ className = '', label, icon, dataTheme = '', disabled = false, onClick }) => {
@@ -2075,12 +2103,12 @@
2075
2103
  })) : (jsx(DefaultFoldButton, { label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: onToggle }));
2076
2104
  };
2077
2105
  const renderPrimaryFoldButton = ({ label, labelIconBgVersion, icon, onToggle, labelIcon, }) => {
2078
- return (jsxs("button", { className: style('border-none bg-transparent px-0 flex justify-between items-center w-full group/button', labelIcon?.icon ? 'py-xs' : 'py-lg'), onClick: onToggle, children: [jsxs("div", { className: "flex items-center group-hover/button:text-primary-main gap-s", children: [renderRoundedIcon(labelIcon, labelIconBgVersion), label ? (jsx(Text, { size: "text-h6", font: "font-normal", children: label })) : null] }), icon ? jsx(Icon, { name: icon, iconVersion: rollupIconVersion, width: "24", height: "24" }) : null] }));
2106
+ return (jsxs("button", { className: style('border-none bg-transparent flex justify-between items-center w-full group/button', labelIcon?.icon ? 'py-xs' : 'py-lg'), onClick: onToggle, children: [jsxs("div", { className: "flex items-center group-hover/button:text-primary-main gap-s", children: [renderRoundedIcon(labelIcon, labelIconBgVersion), label ? (jsx(Text, { size: "text-h6", font: "font-normal", children: label })) : null] }), icon ? jsx(Icon, { name: icon, iconVersion: rollupIconVersion, width: "24", height: "24" }) : null] }));
2079
2107
  };
2080
2108
 
2081
- const Contacts = JSX(({ className = '', items, hasButton }) => (jsxs("div", { className: style('space-y-xl', className), children: [items?.length ? items.map(renderContactsGroup) : null, hasButton ? (jsx(Button, { version: "primary", className: "mb-6 w-full", href: "https://www.rshb.ru/feedback/question/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })) : null] })));
2082
- const renderContactsGroup = (item, i) => (jsxs("div", { className: "space-y-m", children: [jsx("div", { className: "", children: jsx(Text, { size: "text-l", font: "font-medium", children: item?.title }) }), jsx("div", { className: "space-y-m", children: item.items?.map(renderContact) })] }, String(i)));
2083
- const renderContact = (item, index) => (jsxs("div", { className: "space-y-2xs", children: [jsx("div", { children: renderText(item.type, item.text) }), jsx("div", { className: "text-s font-light text-secondary-text", children: item.description })] }, String(index)));
2109
+ const Contacts = JSX(({ className = '', items }) => (jsxs("div", { className: className, children: [items?.length ? items.map(renderContactsGroup) : null, jsx(Button, { version: "primary", className: "w-full", href: "https://www.rshb.ru/feedback/question/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })] })));
2110
+ const renderContactsGroup = (item, i) => (jsxs("div", { className: "mb-m", children: [jsx("div", { className: "mb-m", children: jsx(Text, { size: "text-l", font: "font-medium", children: item?.title }) }), jsx("div", { children: item.items?.map(renderContact) })] }, String(i)));
2111
+ const renderContact = (item, index) => (jsxs("div", { className: "mb-m", children: [jsx("div", { children: renderText(item.type, item.text) }), jsx("div", { className: "mt-2xs text-s font-light text-secondary-text", children: item.description })] }, String(index)));
2084
2112
  const renderText = (type, text = '') => {
2085
2113
  switch (type) {
2086
2114
  case 'tel':
@@ -2101,7 +2129,7 @@
2101
2129
  return (jsx("a", { className: style(horizontalNavigationLinkStyles, className), href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
2102
2130
  });
2103
2131
 
2104
- const HorizontalNavigation = JSX(({ title, links, className = '' }) => (jsxs("div", { className: className, children: [jsx(Text, { size: "text-h6", children: title }), links?.length ? (jsx("div", { className: "flex flex-col gap-6 mt-7", children: links.map((_, i) => (jsx(HorizontalNavigationLink, { index: i, ..._ }, String(i)))) })) : null] })));
2132
+ const HorizontalNavigation = JSX(({ title, links, className = '' }) => (jsxs("div", { className: className, children: [jsx(Text, { size: "text-l", font: "font-normal", children: title }), links?.length ? (jsx("div", { className: "flex flex-col gap-lg mt-lg", children: links.map((_, i) => (jsx(HorizontalNavigationLink, { className: "text-l font-light", index: i, ..._ }, String(i)))) })) : null] })));
2105
2133
 
2106
2134
  const TextInformationLink = JSX(({ className = '', index, ...rest }) => {
2107
2135
  const link = useLink({ isRemote: true });
@@ -2109,15 +2137,15 @@
2109
2137
  return (jsx("a", { className: `text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${className}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
2110
2138
  });
2111
2139
 
2112
- const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: className, children: [jsx("div", { className: "pt-4 xl:pt-5", children: jsx(Text, { size: "text-xs", font: "font-light", color: "text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? (jsx("div", { className: "flex justify-start items-start gap-5 pt-4", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
2140
+ const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: className, children: [jsx("div", { className: "pt-lg", children: jsx(Text, { size: "text-xs", font: "font-light", color: "text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? (jsx("div", { className: "flex flex-col sm:flex-row justify-start items-start gap-x-lg gap-y-xs pt-lg", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
2113
2141
 
2114
2142
  const Footer = JSX(({ className, sitemap, ...rest }) => {
2115
- const { relatedEnterprises, contacts, socialMedia, mobileApps, horizontalNavigationTitle } = useSWRResource(projectSettings.FOOTER || 'footer', rest.options?.page?.fallback);
2116
- return (jsxs(BlockWrapper, { tag: "footer", className: className, defaultPadding: "px-4 py-6", ...rest, children: [jsx("div", { className: "mb-4 pb-5 border-b border-main-divider", children: sitemap?.topItems?.map((item, i) => (jsx(RollupItem, { label: item?.text, labelIcon: item?.icon, children: jsx(LinkList, { items: item.items, className: "my-3" }) }, String(i)))) }), jsx(Contacts, { className: "overflow-hidden", items: contacts }), jsx(SocialMedia, { className: "mb-4", media: socialMedia }), mobileApps?.map(renderButton), jsx(HorizontalNavigation, { className: "pt-m pb-2xl border-y border-main-divider", title: horizontalNavigationTitle, links: relatedEnterprises }), jsx(TextInformation, {})] }));
2143
+ const { relatedEnterprises, contacts, socialMedia, mobileApps, horizontalNavigationTitle, documents, } = useSWRResource(projectSettings.FOOTER || 'footer', rest.options?.page?.fallback);
2144
+ return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsx("div", { className: "mb-lg pb-xs border-b border-main-divider", children: sitemap?.topItems?.map((item, i) => (jsx(RollupItem, { label: item?.text, labelIcon: item?.icon, children: jsx(LinkList, { items: item.items }) }, String(i)))) }), jsx(Contacts, { className: "overflow-hidden", items: contacts }), jsxs("div", { className: "mt-xl", children: [jsx(SocialMedia, { className: "mb-xl", media: socialMedia, buttonSize: "stretched", children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), jsx("div", { className: "mt-xs", children: mobileApps?.map(renderButton) })] }), jsx(HorizontalNavigation, { className: "py-lg border-y border-main-divider", title: horizontalNavigationTitle, links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
2117
2145
  });
2118
2146
  const renderButton = ({ href = '/' }, i) => {
2119
2147
  const { label } = findIconByHref(href);
2120
- return (jsx(Button, { className: "w-full mb-4", text: label, version: "secondary", href: href, target: "_blank" }, String(i)));
2148
+ return (jsx(Button, { className: "w-full mb-lg", text: label, version: "secondary", href: href, target: "_blank" }, String(i)));
2121
2149
  };
2122
2150
 
2123
2151
  const ICON_VERSION_MAP = {
@@ -2250,7 +2278,7 @@
2250
2278
  right: 'text-right',
2251
2279
  };
2252
2280
 
2253
- const renderDescription$1 = (description) => description ? (jsx("div", { className: "mb-5 pt-3xs sm:mb-0 sm:pt-0", children: jsx(Text, { size: "text-xl", "font-weight": "light", children: description }) })) : null;
2281
+ const renderDescription$1 = (description) => description ? (jsx("div", { className: "mb-lg pt-3xs", children: jsx(Text, { size: "text-xl", "font-weight": "light", children: description }) })) : null;
2254
2282
 
2255
2283
  const renderList$1 = (items) => {
2256
2284
  return items?.length ? (jsx(List, { items: items, className: "text-l font-light mb-xs last:mb-0" })) : (jsx("span", { className: "text-m font-light text-secondary-text", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }));
@@ -3497,11 +3525,11 @@
3497
3525
  onOpen: setSomeDialogOpened,
3498
3526
  onClose: resetSomeDialogOpened,
3499
3527
  });
3500
- return (jsxs("section", { className: style('relative', pageStyle, className, isSomeDialogOpened ? 'overflow-hidden h-screen' : ''), "data-theme": colorPalette, children: [slots?.header ? (jsx("div", { className: "mb-5 shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.header, {
3528
+ return (jsxs("section", { className: style('relative @container', pageStyle, className, isSomeDialogOpened ? 'overflow-hidden h-screen' : ''), "data-theme": colorPalette, children: [slots?.header ? (jsx("div", { className: "relative z-10 mb-5 shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.header, {
3501
3529
  ...options,
3502
3530
  slotName: 'header',
3503
3531
  extraProps: { sitemap, location },
3504
- }) })) : null, jsxs("div", { className: "container grid grid-cols-12 gap-1", children: [renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } }), renderBlocksList(slots?.footer, {
3532
+ }) })) : null, jsxs("div", { className: "container @lg:grid @lg:grid-cols-12 @lg:gap-1", children: [renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } }), renderBlocksList(slots?.footer, {
3505
3533
  ...options,
3506
3534
  slotName: 'footer',
3507
3535
  extraProps: { sitemap, location },
@@ -3515,7 +3543,7 @@
3515
3543
 
3516
3544
  const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
3517
3545
 
3518
- const packageVersion = "0.12.12";
3546
+ const packageVersion = "0.12.13";
3519
3547
 
3520
3548
  exports.Blocks = Blocks;
3521
3549
  exports.ContentPage = ContentPage;