@redneckz/wildless-cms-uni-blocks 0.9.10 → 0.9.12

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 (392) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +145 -66
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/Calculator/CalculatorContent.d.ts +18 -17
  5. package/bundle/components/Calculator/DepositCalculatorForm.d.ts +2 -2
  6. package/bundle/components/Calculator/rangeHelpers.d.ts +1 -0
  7. package/bundle/components/Calculator/renderMonthsInput.d.ts +1 -0
  8. package/bundle/components/Calculator/useDepositCalculatorParams.d.ts +3 -1
  9. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -6
  10. package/bundle/components/Filtration/FiltrationContent.d.ts +18 -8
  11. package/bundle/components/Footer/MediaButton.d.ts +3 -4
  12. package/bundle/content-page-repository/ContentPageRepository.d.ts +1 -5
  13. package/bundle/content-page-repository/alignImg.d.ts +9 -0
  14. package/bundle/content-page-repository/computeImgOutputPath.d.ts +3 -0
  15. package/bundle/content-page-repository/resizeImg.d.ts +3 -0
  16. package/bundle/content-page-repository/transformContentPage.d.ts +1 -0
  17. package/bundle/content-page-repository/transformImg.d.ts +6 -5
  18. package/bundle/content-page-repository/transformPicture.d.ts +1 -1
  19. package/bundle/ui-kit/InputListRange/InputListRange.d.ts +2 -0
  20. package/bundle/ui-kit/InputListRange/InputListRangeProps.d.ts +10 -0
  21. package/bundle/utils/arrayByRange.d.ts +1 -0
  22. package/bundle/utils/isPictureSizeEmpty.d.ts +2 -2
  23. package/bundle/utils/mergeIntervals.d.ts +1 -0
  24. package/dist/components/Calculator/CalculatorContent.d.ts +18 -17
  25. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  26. package/dist/components/Calculator/DepositCalculatorForm.d.ts +2 -2
  27. package/dist/components/Calculator/DepositCalculatorForm.js +21 -11
  28. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  29. package/dist/components/Calculator/constants.js +1 -1
  30. package/dist/components/Calculator/constants.js.map +1 -1
  31. package/dist/components/Calculator/rangeHelpers.d.ts +1 -0
  32. package/dist/components/Calculator/rangeHelpers.js +4 -1
  33. package/dist/components/Calculator/rangeHelpers.js.map +1 -1
  34. package/dist/components/Calculator/renderMonthsInput.d.ts +1 -0
  35. package/dist/components/Calculator/renderMonthsInput.js +3 -2
  36. package/dist/components/Calculator/renderMonthsInput.js.map +1 -1
  37. package/dist/components/Calculator/useCreditCalculatorParams.js +27 -29
  38. package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  39. package/dist/components/Calculator/useDepositCalculatorParams.d.ts +3 -1
  40. package/dist/components/Calculator/useDepositCalculatorParams.js +22 -6
  41. package/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  42. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -6
  43. package/dist/components/Filtration/Filtration.js +1 -1
  44. package/dist/components/Filtration/Filtration.js.map +1 -1
  45. package/dist/components/Filtration/FiltrationContent.d.ts +18 -8
  46. package/dist/components/Filtration/FiltrationInner.js +9 -5
  47. package/dist/components/Filtration/FiltrationInner.js.map +1 -1
  48. package/dist/components/Filtration/renderFormItem.js +6 -5
  49. package/dist/components/Filtration/renderFormItem.js.map +1 -1
  50. package/dist/components/Footer/MediaButton.d.ts +3 -4
  51. package/dist/components/Footer/MediaButton.js.map +1 -1
  52. package/dist/content-page-repository/ContentPageRepository.d.ts +1 -5
  53. package/dist/content-page-repository/ContentPageRepository.js +7 -25
  54. package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  55. package/dist/content-page-repository/alignImg.d.ts +9 -0
  56. package/dist/content-page-repository/alignImg.js +23 -0
  57. package/dist/content-page-repository/alignImg.js.map +1 -0
  58. package/dist/content-page-repository/computeImgOutputPath.d.ts +3 -0
  59. package/dist/content-page-repository/computeImgOutputPath.js +18 -0
  60. package/dist/content-page-repository/computeImgOutputPath.js.map +1 -0
  61. package/dist/content-page-repository/resizeImg.d.ts +3 -0
  62. package/dist/content-page-repository/resizeImg.js +19 -0
  63. package/dist/content-page-repository/resizeImg.js.map +1 -0
  64. package/dist/content-page-repository/transformContentPage.d.ts +1 -0
  65. package/dist/content-page-repository/transformContentPage.js +25 -19
  66. package/dist/content-page-repository/transformContentPage.js.map +1 -1
  67. package/dist/content-page-repository/transformImg.d.ts +6 -5
  68. package/dist/content-page-repository/transformImg.js +26 -76
  69. package/dist/content-page-repository/transformImg.js.map +1 -1
  70. package/dist/content-page-repository/transformPicture.d.ts +1 -1
  71. package/dist/content-page-repository/transformPicture.js +8 -16
  72. package/dist/content-page-repository/transformPicture.js.map +1 -1
  73. package/dist/ui-kit/InputListRange/InputListRange.d.ts +2 -0
  74. package/dist/ui-kit/InputListRange/InputListRange.js +41 -0
  75. package/dist/ui-kit/InputListRange/InputListRange.js.map +1 -0
  76. package/dist/ui-kit/InputListRange/InputListRangeProps.d.ts +10 -0
  77. package/dist/ui-kit/InputListRange/InputListRangeProps.js +2 -0
  78. package/dist/ui-kit/InputListRange/InputListRangeProps.js.map +1 -0
  79. package/dist/ui-kit/Select/Select.js +2 -1
  80. package/dist/ui-kit/Select/Select.js.map +1 -1
  81. package/dist/utils/arrayByRange.d.ts +1 -0
  82. package/dist/utils/arrayByRange.js +5 -0
  83. package/dist/utils/arrayByRange.js.map +1 -0
  84. package/dist/utils/isPictureSizeEmpty.d.ts +2 -2
  85. package/dist/utils/isPictureSizeEmpty.js +1 -1
  86. package/dist/utils/isPictureSizeEmpty.js.map +1 -1
  87. package/dist/utils/mergeIntervals.d.ts +1 -0
  88. package/dist/utils/mergeIntervals.js +20 -0
  89. package/dist/utils/mergeIntervals.js.map +1 -0
  90. package/lib/common.css +1 -1
  91. package/lib/components/Calculator/CalculatorContent.d.ts +18 -17
  92. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  93. package/lib/components/Calculator/DepositCalculatorForm.d.ts +2 -2
  94. package/lib/components/Calculator/DepositCalculatorForm.js +22 -12
  95. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  96. package/lib/components/Calculator/constants.js +1 -1
  97. package/lib/components/Calculator/constants.js.map +1 -1
  98. package/lib/components/Calculator/rangeHelpers.d.ts +1 -0
  99. package/lib/components/Calculator/rangeHelpers.js +2 -0
  100. package/lib/components/Calculator/rangeHelpers.js.map +1 -1
  101. package/lib/components/Calculator/renderMonthsInput.d.ts +1 -0
  102. package/lib/components/Calculator/renderMonthsInput.js +3 -2
  103. package/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  104. package/lib/components/Calculator/useCreditCalculatorParams.js +27 -29
  105. package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  106. package/lib/components/Calculator/useDepositCalculatorParams.d.ts +3 -1
  107. package/lib/components/Calculator/useDepositCalculatorParams.js +22 -6
  108. package/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  109. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -6
  110. package/lib/components/Filtration/Filtration.js +1 -1
  111. package/lib/components/Filtration/Filtration.js.map +1 -1
  112. package/lib/components/Filtration/FiltrationContent.d.ts +18 -8
  113. package/lib/components/Filtration/FiltrationInner.js +9 -5
  114. package/lib/components/Filtration/FiltrationInner.js.map +1 -1
  115. package/lib/components/Filtration/renderFormItem.js +6 -5
  116. package/lib/components/Filtration/renderFormItem.js.map +1 -1
  117. package/lib/components/Footer/MediaButton.d.ts +3 -4
  118. package/lib/components/Footer/MediaButton.js.map +1 -1
  119. package/lib/content-page-repository/ContentPageRepository.d.ts +1 -5
  120. package/lib/content-page-repository/ContentPageRepository.js +8 -26
  121. package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  122. package/lib/content-page-repository/alignImg.d.ts +9 -0
  123. package/lib/content-page-repository/alignImg.js +17 -0
  124. package/lib/content-page-repository/alignImg.js.map +1 -0
  125. package/lib/content-page-repository/computeImgOutputPath.d.ts +3 -0
  126. package/lib/content-page-repository/computeImgOutputPath.js +12 -0
  127. package/lib/content-page-repository/computeImgOutputPath.js.map +1 -0
  128. package/lib/content-page-repository/resizeImg.d.ts +3 -0
  129. package/lib/content-page-repository/resizeImg.js +13 -0
  130. package/lib/content-page-repository/resizeImg.js.map +1 -0
  131. package/lib/content-page-repository/transformContentPage.d.ts +1 -0
  132. package/lib/content-page-repository/transformContentPage.js +23 -18
  133. package/lib/content-page-repository/transformContentPage.js.map +1 -1
  134. package/lib/content-page-repository/transformImg.d.ts +6 -5
  135. package/lib/content-page-repository/transformImg.js +26 -76
  136. package/lib/content-page-repository/transformImg.js.map +1 -1
  137. package/lib/content-page-repository/transformPicture.d.ts +1 -1
  138. package/lib/content-page-repository/transformPicture.js +8 -16
  139. package/lib/content-page-repository/transformPicture.js.map +1 -1
  140. package/lib/ui-kit/InputListRange/InputListRange.d.ts +2 -0
  141. package/lib/ui-kit/InputListRange/InputListRange.js +39 -0
  142. package/lib/ui-kit/InputListRange/InputListRange.js.map +1 -0
  143. package/lib/ui-kit/InputListRange/InputListRangeProps.d.ts +10 -0
  144. package/lib/ui-kit/InputListRange/InputListRangeProps.js +2 -0
  145. package/lib/ui-kit/InputListRange/InputListRangeProps.js.map +1 -0
  146. package/lib/ui-kit/Select/Select.js +2 -1
  147. package/lib/ui-kit/Select/Select.js.map +1 -1
  148. package/lib/utils/arrayByRange.d.ts +1 -0
  149. package/lib/utils/arrayByRange.js +2 -0
  150. package/lib/utils/arrayByRange.js.map +1 -0
  151. package/lib/utils/isPictureSizeEmpty.d.ts +2 -2
  152. package/lib/utils/isPictureSizeEmpty.js +1 -1
  153. package/lib/utils/isPictureSizeEmpty.js.map +1 -1
  154. package/lib/utils/mergeIntervals.d.ts +1 -0
  155. package/lib/utils/mergeIntervals.js +17 -0
  156. package/lib/utils/mergeIntervals.js.map +1 -0
  157. package/mobile/bundle/bundle.umd.js +1 -1
  158. package/mobile/bundle/bundle.umd.min.js +1 -1
  159. package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +18 -17
  160. package/mobile/bundle/components/Calculator/DepositCalculatorForm.d.ts +2 -2
  161. package/mobile/bundle/components/Calculator/rangeHelpers.d.ts +1 -0
  162. package/mobile/bundle/components/Calculator/renderMonthsInput.d.ts +1 -0
  163. package/mobile/bundle/components/Calculator/useDepositCalculatorParams.d.ts +3 -1
  164. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -6
  165. package/mobile/bundle/components/Filtration/FiltrationContent.d.ts +18 -8
  166. package/mobile/bundle/components/Footer/MediaButton.d.ts +3 -4
  167. package/mobile/bundle/content-page-repository/ContentPageRepository.d.ts +1 -5
  168. package/mobile/bundle/content-page-repository/alignImg.d.ts +9 -0
  169. package/mobile/bundle/content-page-repository/computeImgOutputPath.d.ts +3 -0
  170. package/mobile/bundle/content-page-repository/resizeImg.d.ts +3 -0
  171. package/mobile/bundle/content-page-repository/transformContentPage.d.ts +1 -0
  172. package/mobile/bundle/content-page-repository/transformImg.d.ts +6 -5
  173. package/mobile/bundle/content-page-repository/transformPicture.d.ts +1 -1
  174. package/mobile/bundle/ui-kit/InputListRange/InputListRange.d.ts +2 -0
  175. package/mobile/bundle/ui-kit/InputListRange/InputListRangeProps.d.ts +10 -0
  176. package/mobile/bundle/utils/arrayByRange.d.ts +1 -0
  177. package/mobile/bundle/utils/isPictureSizeEmpty.d.ts +2 -2
  178. package/mobile/bundle/utils/mergeIntervals.d.ts +1 -0
  179. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +18 -17
  180. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  181. package/mobile/dist/components/Calculator/DepositCalculatorForm.d.ts +2 -2
  182. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +21 -11
  183. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  184. package/mobile/dist/components/Calculator/constants.js +1 -1
  185. package/mobile/dist/components/Calculator/constants.js.map +1 -1
  186. package/mobile/dist/components/Calculator/rangeHelpers.d.ts +1 -0
  187. package/mobile/dist/components/Calculator/rangeHelpers.js +4 -1
  188. package/mobile/dist/components/Calculator/rangeHelpers.js.map +1 -1
  189. package/mobile/dist/components/Calculator/renderMonthsInput.d.ts +1 -0
  190. package/mobile/dist/components/Calculator/renderMonthsInput.js +3 -2
  191. package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -1
  192. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +27 -29
  193. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  194. package/mobile/dist/components/Calculator/useDepositCalculatorParams.d.ts +3 -1
  195. package/mobile/dist/components/Calculator/useDepositCalculatorParams.js +22 -6
  196. package/mobile/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  197. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -6
  198. package/mobile/dist/components/Filtration/Filtration.js +1 -1
  199. package/mobile/dist/components/Filtration/Filtration.js.map +1 -1
  200. package/mobile/dist/components/Filtration/FiltrationContent.d.ts +18 -8
  201. package/mobile/dist/components/Filtration/FiltrationInner.js +9 -5
  202. package/mobile/dist/components/Filtration/FiltrationInner.js.map +1 -1
  203. package/mobile/dist/components/Filtration/renderFormItem.js +6 -5
  204. package/mobile/dist/components/Filtration/renderFormItem.js.map +1 -1
  205. package/mobile/dist/components/Footer/MediaButton.d.ts +3 -4
  206. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  207. package/mobile/dist/content-page-repository/ContentPageRepository.d.ts +1 -5
  208. package/mobile/dist/content-page-repository/ContentPageRepository.js +7 -25
  209. package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  210. package/mobile/dist/content-page-repository/alignImg.d.ts +9 -0
  211. package/mobile/dist/content-page-repository/alignImg.js +23 -0
  212. package/mobile/dist/content-page-repository/alignImg.js.map +1 -0
  213. package/mobile/dist/content-page-repository/computeImgOutputPath.d.ts +3 -0
  214. package/mobile/dist/content-page-repository/computeImgOutputPath.js +18 -0
  215. package/mobile/dist/content-page-repository/computeImgOutputPath.js.map +1 -0
  216. package/mobile/dist/content-page-repository/resizeImg.d.ts +3 -0
  217. package/mobile/dist/content-page-repository/resizeImg.js +19 -0
  218. package/mobile/dist/content-page-repository/resizeImg.js.map +1 -0
  219. package/mobile/dist/content-page-repository/transformContentPage.d.ts +1 -0
  220. package/mobile/dist/content-page-repository/transformContentPage.js +25 -19
  221. package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
  222. package/mobile/dist/content-page-repository/transformImg.d.ts +6 -5
  223. package/mobile/dist/content-page-repository/transformImg.js +26 -76
  224. package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
  225. package/mobile/dist/content-page-repository/transformPicture.d.ts +1 -1
  226. package/mobile/dist/content-page-repository/transformPicture.js +8 -16
  227. package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
  228. package/mobile/dist/ui-kit/InputListRange/InputListRange.d.ts +2 -0
  229. package/mobile/dist/ui-kit/InputListRange/InputListRange.js +41 -0
  230. package/mobile/dist/ui-kit/InputListRange/InputListRange.js.map +1 -0
  231. package/mobile/dist/ui-kit/InputListRange/InputListRangeProps.d.ts +10 -0
  232. package/mobile/dist/ui-kit/InputListRange/InputListRangeProps.js +2 -0
  233. package/mobile/dist/ui-kit/InputListRange/InputListRangeProps.js.map +1 -0
  234. package/mobile/dist/ui-kit/Select/Select.js +2 -1
  235. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  236. package/mobile/dist/utils/arrayByRange.d.ts +1 -0
  237. package/mobile/dist/utils/arrayByRange.js +5 -0
  238. package/mobile/dist/utils/arrayByRange.js.map +1 -0
  239. package/mobile/dist/utils/isPictureSizeEmpty.d.ts +2 -2
  240. package/mobile/dist/utils/isPictureSizeEmpty.js +1 -1
  241. package/mobile/dist/utils/isPictureSizeEmpty.js.map +1 -1
  242. package/mobile/dist/utils/mergeIntervals.d.ts +1 -0
  243. package/mobile/dist/utils/mergeIntervals.js +20 -0
  244. package/mobile/dist/utils/mergeIntervals.js.map +1 -0
  245. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +18 -17
  246. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  247. package/mobile/lib/components/Calculator/DepositCalculatorForm.d.ts +2 -2
  248. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +22 -12
  249. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  250. package/mobile/lib/components/Calculator/constants.js +1 -1
  251. package/mobile/lib/components/Calculator/constants.js.map +1 -1
  252. package/mobile/lib/components/Calculator/rangeHelpers.d.ts +1 -0
  253. package/mobile/lib/components/Calculator/rangeHelpers.js +2 -0
  254. package/mobile/lib/components/Calculator/rangeHelpers.js.map +1 -1
  255. package/mobile/lib/components/Calculator/renderMonthsInput.d.ts +1 -0
  256. package/mobile/lib/components/Calculator/renderMonthsInput.js +3 -2
  257. package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  258. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +27 -29
  259. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  260. package/mobile/lib/components/Calculator/useDepositCalculatorParams.d.ts +3 -1
  261. package/mobile/lib/components/Calculator/useDepositCalculatorParams.js +22 -6
  262. package/mobile/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  263. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -6
  264. package/mobile/lib/components/Filtration/Filtration.js +1 -1
  265. package/mobile/lib/components/Filtration/Filtration.js.map +1 -1
  266. package/mobile/lib/components/Filtration/FiltrationContent.d.ts +18 -8
  267. package/mobile/lib/components/Filtration/FiltrationInner.js +9 -5
  268. package/mobile/lib/components/Filtration/FiltrationInner.js.map +1 -1
  269. package/mobile/lib/components/Filtration/renderFormItem.js +6 -5
  270. package/mobile/lib/components/Filtration/renderFormItem.js.map +1 -1
  271. package/mobile/lib/components/Footer/MediaButton.d.ts +3 -4
  272. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  273. package/mobile/lib/content-page-repository/ContentPageRepository.d.ts +1 -5
  274. package/mobile/lib/content-page-repository/ContentPageRepository.js +8 -26
  275. package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  276. package/mobile/lib/content-page-repository/alignImg.d.ts +9 -0
  277. package/mobile/lib/content-page-repository/alignImg.js +17 -0
  278. package/mobile/lib/content-page-repository/alignImg.js.map +1 -0
  279. package/mobile/lib/content-page-repository/computeImgOutputPath.d.ts +3 -0
  280. package/mobile/lib/content-page-repository/computeImgOutputPath.js +12 -0
  281. package/mobile/lib/content-page-repository/computeImgOutputPath.js.map +1 -0
  282. package/mobile/lib/content-page-repository/resizeImg.d.ts +3 -0
  283. package/mobile/lib/content-page-repository/resizeImg.js +13 -0
  284. package/mobile/lib/content-page-repository/resizeImg.js.map +1 -0
  285. package/mobile/lib/content-page-repository/transformContentPage.d.ts +1 -0
  286. package/mobile/lib/content-page-repository/transformContentPage.js +23 -18
  287. package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
  288. package/mobile/lib/content-page-repository/transformImg.d.ts +6 -5
  289. package/mobile/lib/content-page-repository/transformImg.js +26 -76
  290. package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
  291. package/mobile/lib/content-page-repository/transformPicture.d.ts +1 -1
  292. package/mobile/lib/content-page-repository/transformPicture.js +8 -16
  293. package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
  294. package/mobile/lib/ui-kit/InputListRange/InputListRange.d.ts +2 -0
  295. package/mobile/lib/ui-kit/InputListRange/InputListRange.js +39 -0
  296. package/mobile/lib/ui-kit/InputListRange/InputListRange.js.map +1 -0
  297. package/mobile/lib/ui-kit/InputListRange/InputListRangeProps.d.ts +10 -0
  298. package/mobile/lib/ui-kit/InputListRange/InputListRangeProps.js +2 -0
  299. package/mobile/lib/ui-kit/InputListRange/InputListRangeProps.js.map +1 -0
  300. package/mobile/lib/ui-kit/Select/Select.js +2 -1
  301. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  302. package/mobile/lib/utils/arrayByRange.d.ts +1 -0
  303. package/mobile/lib/utils/arrayByRange.js +2 -0
  304. package/mobile/lib/utils/arrayByRange.js.map +1 -0
  305. package/mobile/lib/utils/isPictureSizeEmpty.d.ts +2 -2
  306. package/mobile/lib/utils/isPictureSizeEmpty.js +1 -1
  307. package/mobile/lib/utils/isPictureSizeEmpty.js.map +1 -1
  308. package/mobile/lib/utils/mergeIntervals.d.ts +1 -0
  309. package/mobile/lib/utils/mergeIntervals.js +17 -0
  310. package/mobile/lib/utils/mergeIntervals.js.map +1 -0
  311. package/mobile/src/components/Calculator/Calculator.example.json +3 -1
  312. package/mobile/src/components/Calculator/CalculatorContent.ts +20 -19
  313. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +6 -7
  314. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +48 -15
  315. package/mobile/src/components/Calculator/constants.ts +1 -1
  316. package/mobile/src/components/Calculator/rangeHelpers.ts +10 -0
  317. package/mobile/src/components/Calculator/renderMonthsInput.tsx +13 -2
  318. package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +8 -10
  319. package/mobile/src/components/Calculator/useDepositCalculatorParams.ts +36 -9
  320. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -2
  321. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -8
  322. package/mobile/src/components/Filtration/Filtration.example.json +39 -19
  323. package/mobile/src/components/Filtration/Filtration.tsx +3 -8
  324. package/mobile/src/components/Filtration/FiltrationContent.ts +19 -8
  325. package/mobile/src/components/Filtration/FiltrationInner.tsx +31 -12
  326. package/mobile/src/components/Filtration/renderFormItem.tsx +20 -20
  327. package/mobile/src/components/Footer/MediaButton.tsx +3 -5
  328. package/mobile/src/components/RichTextBlock/RichTextBlock.example.json +1 -1
  329. package/mobile/src/content-page-repository/ContentPageRepository.ts +8 -40
  330. package/mobile/src/content-page-repository/alignImg.ts +32 -0
  331. package/mobile/src/content-page-repository/computeImgOutputPath.ts +20 -0
  332. package/mobile/src/content-page-repository/resizeImg.ts +18 -0
  333. package/mobile/src/content-page-repository/transformContentPage.ts +25 -18
  334. package/mobile/src/content-page-repository/transformImg.ts +49 -121
  335. package/mobile/src/content-page-repository/transformPicture.ts +9 -21
  336. package/mobile/src/ui-kit/InputListRange/InputListRange.tsx +99 -0
  337. package/mobile/src/ui-kit/InputListRange/InputListRangeProps.ts +11 -0
  338. package/mobile/src/ui-kit/Select/Select.tsx +8 -1
  339. package/mobile/src/utils/arrayByRange.ts +4 -0
  340. package/mobile/src/utils/isPictureSizeEmpty.ts +3 -3
  341. package/mobile/src/utils/mergeIntervals.ts +19 -0
  342. package/package.json +1 -1
  343. package/src/components/Calculator/Calculator.example.json +3 -1
  344. package/src/components/Calculator/Calculator.fixture.tsx +4 -0
  345. package/src/components/Calculator/CalculatorContent.ts +20 -19
  346. package/src/components/Calculator/CreditCalculatorForm.tsx +6 -7
  347. package/src/components/Calculator/DepositCalculatorForm.tsx +48 -15
  348. package/src/components/Calculator/constants.ts +1 -1
  349. package/src/components/Calculator/rangeHelpers.ts +10 -0
  350. package/src/components/Calculator/renderMonthsInput.tsx +13 -2
  351. package/src/components/Calculator/useCreditCalculatorParams.ts +8 -10
  352. package/src/components/Calculator/useDepositCalculatorParams.ts +36 -9
  353. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -2
  354. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +0 -9
  355. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -8
  356. package/src/components/Filtration/Filtration.example.json +39 -19
  357. package/src/components/Filtration/Filtration.fixture.tsx +36 -20
  358. package/src/components/Filtration/Filtration.tsx +3 -8
  359. package/src/components/Filtration/FiltrationContent.ts +19 -8
  360. package/src/components/Filtration/FiltrationInner.tsx +31 -12
  361. package/src/components/Filtration/renderFormItem.tsx +20 -20
  362. package/src/components/Footer/MediaButton.tsx +3 -5
  363. package/src/components/RichTextBlock/RichTextBlock.example.json +1 -1
  364. package/src/content-page-repository/ContentPageRepository.ts +8 -40
  365. package/src/content-page-repository/alignImg.ts +32 -0
  366. package/src/content-page-repository/computeImgOutputPath.ts +20 -0
  367. package/src/content-page-repository/resizeImg.ts +18 -0
  368. package/src/content-page-repository/transformContentPage.ts +25 -18
  369. package/src/content-page-repository/transformImg.ts +49 -121
  370. package/src/content-page-repository/transformPicture.ts +9 -21
  371. package/src/ui-kit/InputListRange/InputListRange.tsx +99 -0
  372. package/src/ui-kit/InputListRange/InputListRangeProps.ts +11 -0
  373. package/src/ui-kit/Select/Select.tsx +8 -1
  374. package/src/utils/arrayByRange.ts +4 -0
  375. package/src/utils/isPictureSizeEmpty.ts +3 -3
  376. package/src/utils/mergeIntervals.ts +19 -0
  377. package/bundle/content-page-repository/transformImgPath.d.ts +0 -8
  378. package/dist/content-page-repository/transformImgPath.d.ts +0 -8
  379. package/dist/content-page-repository/transformImgPath.js +0 -22
  380. package/dist/content-page-repository/transformImgPath.js.map +0 -1
  381. package/lib/content-page-repository/transformImgPath.d.ts +0 -8
  382. package/lib/content-page-repository/transformImgPath.js +0 -16
  383. package/lib/content-page-repository/transformImgPath.js.map +0 -1
  384. package/mobile/bundle/content-page-repository/transformImgPath.d.ts +0 -8
  385. package/mobile/dist/content-page-repository/transformImgPath.d.ts +0 -8
  386. package/mobile/dist/content-page-repository/transformImgPath.js +0 -22
  387. package/mobile/dist/content-page-repository/transformImgPath.js.map +0 -1
  388. package/mobile/lib/content-page-repository/transformImgPath.d.ts +0 -8
  389. package/mobile/lib/content-page-repository/transformImgPath.js +0 -16
  390. package/mobile/lib/content-page-repository/transformImgPath.js.map +0 -1
  391. package/mobile/src/content-page-repository/transformImgPath.ts +0 -30
  392. package/src/content-page-repository/transformImgPath.ts +0 -30
@@ -696,7 +696,7 @@
696
696
  useEffect(() => {
697
697
  setSelectedItem(value || { key: '', text: '' });
698
698
  }, [value]);
699
- return (jsxs("div", { className: `${className}`, ref: wrapperRef, children: [label ? jsx("span", { className: "mb-2 flex text-primary-text", children: label }) : null, jsxs("div", { className: `relative ${isOpen ? 'z-20' : 'z-10'}`, children: [jsxs("div", { className: `text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer
699
+ return (jsxs("div", { className: `${className}`, ref: wrapperRef, children: [label ? (jsx("div", { className: "mb-2", children: jsx(Text, { size: "text-m", color: "text-primary-text", font: "font-light", children: label }) })) : null, jsxs("div", { className: `relative ${isOpen ? 'z-20' : 'z-10'}`, children: [jsxs("div", { className: `text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer
700
700
  ${getBorderStyle(isBorder)}`, onClick: () => setIsOpen(!isOpen), children: [jsx("p", { className: "p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap", children: selectedItem?.text || placeholder }), jsx(Icon, { name: "ArrowUpIcon", width: "16", height: "16", className: `absolute right-3 ${isOpen ? '' : 'rotate-180'}` })] }), options?.length ? (jsx("div", { className: `h-0 ${renderOptionsStyle(isOpen)}`, children: jsx("div", { className: `bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]`, children: options.map(renderOption(choiceOption, isOpen, isSelected)) }) })) : null] })] }));
701
701
  });
702
702
  const renderOptionsStyle = (isOpen) => (isOpen ? '' : 'overflow-hidden');
@@ -849,7 +849,7 @@
849
849
 
850
850
  const getSanitizedValue = (_) => _.split(/\s+/).join('');
851
851
 
852
- const DISABLED_INPUT_CLASSES = 'disabled:border-gray disabled:bg-main-divider';
852
+ const DISABLED_INPUT_CLASSES$1 = 'disabled:border-gray disabled:bg-main-divider';
853
853
  const InputRange = JSX(({ className, title, items = [], min = 1, max = 100, step = 1, value = min, disabled = false, onChange, }) => {
854
854
  const handleChange = (e) => {
855
855
  if (!onChange) {
@@ -861,9 +861,9 @@
861
861
  backgroundSize: `${(((value - min) * 100) / (max - min)).toFixed(2)}% 100%`,
862
862
  };
863
863
  return (jsxs("div", { className: className, children: [jsxs("label", { className: "block relative", children: [title ? jsx("span", { className: "text-m-light text-primary-text", children: title }) : null, jsx("input", { className: `m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-gray rounded-md
864
- outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-text ${DISABLED_INPUT_CLASSES}`, value: addSpacesBetweenNumbers(value), disabled: disabled, onChange: handleChange, onBlur: handleChange }), jsx("div", { className: "absolute inset-x-0 -bottom-1 px-4 leading-[18px]", children: jsx("input", { className: "box-border w-full m-0 cursor-pointer slider", type: "range", min: min, max: max, step: step, value: value, disabled: disabled, onChange: handleChange, style: inputStyle }) })] }), renderRangeCaption(items)] }));
864
+ outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-text ${DISABLED_INPUT_CLASSES$1}`, value: addSpacesBetweenNumbers(value), disabled: disabled, onChange: handleChange, onBlur: handleChange }), jsx("div", { className: "absolute inset-x-0 -bottom-1 px-4 leading-[18px]", children: jsx("input", { className: "box-border w-full m-0 cursor-pointer slider", type: "range", min: min, max: max, step: step, value: value, disabled: disabled, onChange: handleChange, style: inputStyle }) })] }), renderRangeCaption$1(items)] }));
865
865
  });
866
- function renderRangeCaption(items) {
866
+ function renderRangeCaption$1(items) {
867
867
  return (jsx("div", { className: "flex justify-between my-2", children: items.map((item, i) => (jsx("span", { className: "text-s-light text-secondary-text", children: item }, String(i)))) }));
868
868
  }
869
869
 
@@ -1286,7 +1286,7 @@
1286
1286
  minSum: 50000,
1287
1287
  maxSum: 5000000,
1288
1288
  minMonths: 2,
1289
- maxMonths: 120,
1289
+ maxMonths: 10,
1290
1290
  rate: 0,
1291
1291
  isMonthlyInterestPayment: true,
1292
1292
  isRemoteRegistration: true,
@@ -1416,6 +1416,23 @@
1416
1416
  const maxBy = (discriminator = defaultDiscriminator) => (list) => list.reduceRight((a, b) => (discriminator(a) > discriminator(b) ? a : b));
1417
1417
  const max = maxBy();
1418
1418
 
1419
+ const mergeIntervals = (intervals) => {
1420
+ const result = [...intervals];
1421
+ result.sort(([a], [c]) => a - c);
1422
+ let i = 1;
1423
+ while (i < result.length) {
1424
+ const [a, b] = result[i - 1];
1425
+ const [c, d] = result[i];
1426
+ if (b >= c) {
1427
+ result.splice(i - 1, 2, [a, Math.max(b, d)]);
1428
+ }
1429
+ else {
1430
+ i++;
1431
+ }
1432
+ }
1433
+ return result;
1434
+ };
1435
+
1419
1436
  const minBy = (discriminator = defaultDiscriminator) => maxBy((_) => -discriminator(_));
1420
1437
 
1421
1438
  const getRangeByKeys = ([minKey, maxKey], rows = []) => ({
@@ -1511,14 +1528,48 @@
1511
1528
  });
1512
1529
  const renderBusinessDepositParamsForm = ({ isDisabledOperatingDeposit, isReplenished, isPartialWithdrawal, isSmallBusiness, handleIsReplenished, handleIsPartialWithdrawal, handleIsSmallBusiness, }) => (jsxs("div", { children: [jsx(Checkbox, { text: "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435", disabled: isDisabledOperatingDeposit, checked: isReplenished, onChange: handleIsReplenished }), jsx(Checkbox, { className: "mt-3", disabled: isDisabledOperatingDeposit, text: "\u0427\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0435 \u0441\u043D\u044F\u0442\u0438\u0435", checked: isPartialWithdrawal, onChange: handleIsPartialWithdrawal }), jsx(Checkbox, { className: "mt-3", text: "\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u043C\u0430\u043B\u044B\u043C \u043F\u0440\u0435\u0434\u043F\u0440\u0438\u044F\u0442\u0438\u0435\u043C", checked: isSmallBusiness, onChange: handleIsSmallBusiness })] }));
1513
1530
 
1531
+ const DISABLED_INPUT_CLASSES = 'disabled:border-gray disabled:bg-main-divider';
1532
+ const InputListRange = JSX(({ className, title, items = [], list = [], value = list[0], disabled = false, onChange }) => {
1533
+ const min = 0;
1534
+ const max = list.length - 1;
1535
+ const step = 1;
1536
+ const handleTextChange = (e) => {
1537
+ if (!onChange) {
1538
+ return;
1539
+ }
1540
+ const newValue = parseInt(e.target.value);
1541
+ const closetValue = list.reduce(function (prev, curr) {
1542
+ return Math.abs(curr - newValue) < Math.abs(prev - newValue) ? curr : prev;
1543
+ });
1544
+ onChange(Number(getSanitizedValue(closetValue.toString())));
1545
+ };
1546
+ const handleRangeChange = (e) => {
1547
+ if (!onChange) {
1548
+ return;
1549
+ }
1550
+ const val = list.at(clamp(parseInt(e.target.value), min, max)) || 0;
1551
+ onChange(Number(getSanitizedValue(val.toString())));
1552
+ };
1553
+ const valueIndex = list.findIndex((item) => item === value) || 0;
1554
+ const inputStyle = {
1555
+ backgroundSize: `${(((valueIndex - min) * 100) / (max - min)).toFixed(2)}% 100%`,
1556
+ };
1557
+ return (jsxs("div", { className: className, children: [jsxs("label", { className: "block relative", children: [title ? jsx("span", { className: "text-m-light text-primary-text", children: title }) : null, jsx("input", { className: `m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-gray rounded-md
1558
+ outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-text ${DISABLED_INPUT_CLASSES}`, value: addSpacesBetweenNumbers(value), disabled: disabled, onChange: handleTextChange, onBlur: handleTextChange }), list.length ? (jsx("div", { className: "absolute w-full flex justify-between -bottom-[3px] px-4", children: list.map(renderTick(valueIndex, disabled)) })) : null, jsx("div", { className: "absolute inset-x-0 -bottom-1 px-4 leading-[18px]", children: jsx("input", { className: "box-border w-full m-0 cursor-pointer slider relative z-10", type: "range", min: min, max: max, step: step, value: valueIndex, disabled: disabled, onChange: handleRangeChange, style: inputStyle }) })] }), renderRangeCaption(items)] }));
1559
+ });
1560
+ const renderTick = (valueIndex, disabled) => (value, i) => (jsx("span", { className: `w-2 h-2 rounded-full ${valueIndex <= i || disabled ? 'bg-gray' : 'bg-primary-main'}` }, String(i)));
1561
+ function renderRangeCaption(items) {
1562
+ return (jsx("div", { className: "flex justify-between my-2", children: items.map((item, i) => (jsx("span", { className: "text-s-light text-secondary-text", children: item }, String(i)))) }));
1563
+ }
1564
+
1514
1565
  const STEP_MONTHS = 1;
1515
1566
  function renderMonthsInput(title, params, callback) {
1516
- const { minMonths, maxMonths, monthsValue } = params;
1567
+ const { minMonths, maxMonths, monthsValue, availableMonths } = params;
1517
1568
  const monthText = (month) => {
1518
1569
  const text = Number(month) % 10 === 1 ? 'месяца' : 'месяцев';
1519
1570
  return `${month} ${text}`;
1520
1571
  };
1521
- return (jsx(InputRange, { className: "mt-7", title: title, items: [`От ${monthText(minMonths)}`, `До ${monthText(maxMonths)}`], min: minMonths, max: maxMonths, step: STEP_MONTHS, value: clamp(monthsValue, minMonths, maxMonths), onChange: callback }));
1572
+ return availableMonths?.length ? (jsx(InputListRange, { className: "mt-7", title: title, items: [`От ${monthText(minMonths)}`, `До ${monthText(maxMonths)}`], list: availableMonths, value: clamp(monthsValue, minMonths, maxMonths), onChange: callback })) : (jsx(InputRange, { className: "mt-7", title: title, items: [`От ${monthText(minMonths)}`, `До ${monthText(maxMonths)}`], min: minMonths, max: maxMonths, step: STEP_MONTHS, value: clamp(monthsValue, minMonths, maxMonths), onChange: callback }));
1522
1573
  }
1523
1574
 
1524
1575
  const ANNUITY = 'annuity';
@@ -1558,38 +1609,36 @@
1558
1609
  const useCreditCalculatorParams = (userInputParams, sourceBookDir, paramsViewSettings) => {
1559
1610
  const { moneyValue, monthsValue } = userInputParams;
1560
1611
  const data = useCalculatorParams(sourceBookDir || CREDIT_CALC_DEFAULT_DIR);
1561
- const creditCalculatorSourceBookParams = data?.rows?.find((row) => {
1562
- const isExcludeSalaryClient = !paramsViewSettings?.isShowSalaryClient;
1563
- const isExcludeStateEmployee = !paramsViewSettings?.isShowStateEmployee;
1564
- const isExcludePensionClient = !paramsViewSettings?.isShowPensionClient;
1565
- const isExcludeInsurance = !paramsViewSettings?.isShowInsurance;
1566
- return (checkRowByParam({
1612
+ const isExcludeSalaryClient = !paramsViewSettings?.isShowSalaryClient;
1613
+ const isExcludeStateEmployee = !paramsViewSettings?.isShowStateEmployee;
1614
+ const isExcludePensionClient = !paramsViewSettings?.isShowPensionClient;
1615
+ const isExcludeInsurance = !paramsViewSettings?.isShowInsurance;
1616
+ const creditCalculatorSourceBookParams = data?.rows?.find((row) => checkRowByParam$1({
1617
+ row,
1618
+ userInputParams,
1619
+ paramKey: 'isSalaryClient',
1620
+ isExclude: isExcludeSalaryClient,
1621
+ }) &&
1622
+ checkRowByParam$1({
1623
+ row,
1624
+ userInputParams,
1625
+ paramKey: 'isStateEmployee',
1626
+ isExclude: isExcludeStateEmployee,
1627
+ }) &&
1628
+ checkRowByParam$1({
1629
+ row,
1630
+ userInputParams,
1631
+ paramKey: 'isPensionClient',
1632
+ isExclude: isExcludePensionClient,
1633
+ }) &&
1634
+ checkRowByParam$1({
1567
1635
  row,
1568
1636
  userInputParams,
1569
- paramKey: 'isSalaryClient',
1570
- isExclude: isExcludeSalaryClient,
1637
+ paramKey: 'isInsurance',
1638
+ isExclude: isExcludeInsurance,
1571
1639
  }) &&
1572
- checkRowByParam({
1573
- row,
1574
- userInputParams,
1575
- paramKey: 'isStateEmployee',
1576
- isExclude: isExcludeStateEmployee,
1577
- }) &&
1578
- checkRowByParam({
1579
- row,
1580
- userInputParams,
1581
- paramKey: 'isPensionClient',
1582
- isExclude: isExcludePensionClient,
1583
- }) &&
1584
- checkRowByParam({
1585
- row,
1586
- userInputParams,
1587
- paramKey: 'isInsurance',
1588
- isExclude: isExcludeInsurance,
1589
- }) &&
1590
- checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], row) &&
1591
- checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], row));
1592
- }) || DEFAULT_CREDIT_CALCULATOR_PARAMS;
1640
+ checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], row) &&
1641
+ checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], row)) || DEFAULT_CREDIT_CALCULATOR_PARAMS;
1593
1642
  const { rate } = creditCalculatorSourceBookParams;
1594
1643
  const monthlyPayment = getMonthlyPayment(rate, userInputParams);
1595
1644
  const sourceBookRows = data?.rows || [DEFAULT_CREDIT_CALCULATOR_PARAMS];
@@ -1601,7 +1650,7 @@
1601
1650
  monthlyPayment,
1602
1651
  };
1603
1652
  };
1604
- const checkRowByParam = ({ row, userInputParams, paramKey, isExclude }) => isExclude || userInputParams[paramKey] === row[paramKey];
1653
+ const checkRowByParam$1 = ({ row, userInputParams, paramKey, isExclude }) => isExclude || userInputParams[paramKey] === row[paramKey];
1605
1654
 
1606
1655
  const CreditCalculatorForm = JSX(({ className = '', sourceBookDir, buttons, footnote, paramsViewSettings }) => {
1607
1656
  const [isAnnuity, toggleIsAnnuity] = useState(false);
@@ -1659,13 +1708,27 @@
1659
1708
  return (jsxs("div", { children: [title ? (jsx("div", { className: "mb-3", children: jsx(Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, jsx("div", { children: jsx(RadioButtonGroup, { orientation: orientation, items: registrationTypeItems, checkedItem: isRemoteRegistration ? REMOTE_REGISTRATION : OFFICE_REGISTRATION, onChange: (text) => callback && callback(text === REMOTE_REGISTRATION) }) })] }));
1660
1709
  }
1661
1710
 
1662
- const useDepositCalculatorParams = (userInputParams, sourceBookDir) => {
1663
- const { isMonthlyInterestPayment, isRemoteRegistration, moneyValue, monthsValue } = userInputParams;
1711
+ const arrayByRange = (start, stop, step = 1) => Array.from({ length: Math.abs(stop - start) / step + 1 }, (value, index) => stop >= start ? start + index * step : start - index * step);
1712
+
1713
+ const useDepositCalculatorParams = (userInputParams, sourceBookDir, paramsViewSettings) => {
1714
+ const { moneyValue, monthsValue } = userInputParams;
1664
1715
  const data = useCalculatorParams(sourceBookDir || DEPOSIT_CALC_DEFAULT_DIR);
1665
- const depositCalculatorSourceBookParams = data?.rows?.find((_) => isMonthlyInterestPayment === _.isMonthlyInterestPayment &&
1666
- isRemoteRegistration === _.isRemoteRegistration &&
1667
- checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], _) &&
1668
- checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], _)) || DEFAULT_DEPOSIT_CALCULATOR_PARAMS;
1716
+ const isExcludeMonthlyInterestPayment = !paramsViewSettings?.isShowMonthlyInterestPayment;
1717
+ const isExcludeRemoteRegistration = !paramsViewSettings?.isShowRemoteRegistration;
1718
+ const depositCalculatorSourceBookParams = data?.rows?.find((row) => checkRowByParam({
1719
+ row,
1720
+ userInputParams,
1721
+ paramKey: 'isMonthlyInterestPayment',
1722
+ isExclude: isExcludeMonthlyInterestPayment,
1723
+ }) &&
1724
+ checkRowByParam({
1725
+ row,
1726
+ userInputParams,
1727
+ paramKey: 'isRemoteRegistration',
1728
+ isExclude: isExcludeRemoteRegistration,
1729
+ }) &&
1730
+ checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], row) &&
1731
+ checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], row)) || DEFAULT_DEPOSIT_CALCULATOR_PARAMS;
1669
1732
  const { rate } = depositCalculatorSourceBookParams;
1670
1733
  const income = getDepositIncome(rate, userInputParams);
1671
1734
  const finalSum = moneyValue + income;
@@ -1674,6 +1737,7 @@
1674
1737
  ...depositCalculatorSourceBookParams,
1675
1738
  ...getRangeByKeys(['minSum', 'maxSum'], sourceBookRows),
1676
1739
  ...getRangeByKeys(['minMonths', 'maxMonths'], sourceBookRows),
1740
+ availableMonths: mergeIntervals(sourceBookRows.map((row) => [row['minMonths'], row['maxMonths']])).flatMap(([start, end]) => arrayByRange(start, end)),
1677
1741
  ...userInputParams,
1678
1742
  income,
1679
1743
  finalSum,
@@ -1691,8 +1755,9 @@
1691
1755
  return Math.round((moneyValue * rate * 30 * monthsValue) / 365 / 100);
1692
1756
  }
1693
1757
  };
1758
+ const checkRowByParam = ({ row, userInputParams, paramKey, isExclude }) => isExclude || userInputParams[paramKey] === row[paramKey];
1694
1759
 
1695
- const DepositCalculatorForm = JSX(({ className = '', sourceBookDir, buttons, footnote }) => {
1760
+ const DepositCalculatorForm = JSX(({ className = '', sourceBookDir, buttons, footnote, paramsViewSettings }) => {
1696
1761
  const [moneyValue, setMoneyValue] = useState(DEFAULT_SUM);
1697
1762
  const handleMoneyValue = useCallback((_) => setMoneyValue(_), []);
1698
1763
  const [monthsValue, setMonthsValue] = useState(DEFAULT_MONTHS);
@@ -1707,22 +1772,32 @@
1707
1772
  isRemoteRegistration,
1708
1773
  };
1709
1774
  const handleMonthsValue = useCallback((_) => setMonthsValue(_), []);
1710
- const calculatorParams = useDepositCalculatorParams(userInputParams, sourceBookDir);
1775
+ const calculatorParams = useDepositCalculatorParams(userInputParams, sourceBookDir, paramsViewSettings);
1711
1776
  const { income, finalSum, rate } = calculatorParams;
1712
1777
  return (jsxs("section", { className: style('flex justify-between', className), children: [jsxs("div", { className: "w-[468px]", children: [renderWantedSumInput('Сумма вклада, ₽', {
1713
1778
  ...calculatorParams,
1714
1779
  }, handleMoneyValue), renderMonthsInput('Срок вклада, месяцев', {
1715
1780
  ...calculatorParams,
1716
- }, handleMonthsValue), jsxs("div", { className: "mt-7 flex flex-col gap-y-7", children: [renderInterestPayment({
1717
- isMonthlyInterestPayment,
1718
- callback: handleIsMonthlyInterestPayment,
1719
- title: 'Выплата процентов',
1720
- }), renderRegistrationType({
1721
- isRemoteRegistration,
1722
- callback: handleIsRemoteRegistration,
1723
- title: 'Оформление',
1724
- })] })] }), jsx(Rate, { rate: rate, rateBlockClassName: "tracking-[-25px]", unit: "%" }), jsxs("div", { className: "w-full max-w-[350px]", children: [jsx(CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u043F\u043E \u0432\u043A\u043B\u0430\u0434\u0443", value: income, postfix: "\u20BD", prefix: "+" }), jsx(CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" }), renderButtonsSection(buttons, { className: 'mt-7', isVertical: true }), renderFootnote(footnote)] })] }));
1725
- });
1781
+ }, handleMonthsValue), jsx("div", { className: "mt-7", children: renderDepositParamsForm({
1782
+ ...calculatorParams,
1783
+ ...paramsViewSettings,
1784
+ handleIsMonthlyInterestPayment,
1785
+ handleIsRemoteRegistration,
1786
+ }) })] }), jsx(Rate, { rate: rate, rateBlockClassName: "tracking-[-25px]", unit: "%" }), jsxs("div", { className: "w-full max-w-[350px]", children: [jsx(CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u043F\u043E \u0432\u043A\u043B\u0430\u0434\u0443", value: income, postfix: "\u20BD", prefix: "+" }), jsx(CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" }), renderButtonsSection(buttons, { className: 'mt-7', isVertical: true }), renderFootnote(footnote)] })] }));
1787
+ });
1788
+ const renderDepositParamsForm = ({ isMonthlyInterestPayment, isRemoteRegistration, isShowMonthlyInterestPayment, isShowRemoteRegistration, handleIsMonthlyInterestPayment, handleIsRemoteRegistration, }) => (jsxs("div", { className: "flex flex-col gap-y-7", children: [isShowMonthlyInterestPayment
1789
+ ? renderInterestPayment({
1790
+ isMonthlyInterestPayment,
1791
+ callback: handleIsMonthlyInterestPayment,
1792
+ title: 'Выплата процентов',
1793
+ })
1794
+ : null, isShowRemoteRegistration
1795
+ ? renderRegistrationType({
1796
+ isRemoteRegistration,
1797
+ callback: handleIsRemoteRegistration,
1798
+ title: 'Оформление',
1799
+ })
1800
+ : null] }));
1726
1801
 
1727
1802
  const EmbeddableCalcBlocks = {
1728
1803
  CreditCalculatorForm,
@@ -2612,15 +2687,18 @@
2612
2687
 
2613
2688
  const ICONS = ['ArrowDownIcon', 'ArrowUpIcon'];
2614
2689
  const resultsGridStyle = 'grid grid-cols-12 gap-1 border-box';
2615
- const FiltrationInner = JSX(({ label = '', filtrationState = {}, topItemsCount = 0, block, ...rest }) => {
2690
+ const FiltrationInner = JSX(({ label = '', filtrationState = {}, topItemsCount = 0, block, notFound, ...rest }) => {
2616
2691
  const blocksToRender = block?.blocks?.filter((b) => checkShouldRenderBlock(filtrationState, b.content || {})) || [];
2617
2692
  const [visibleBlocks, hiddenBlocks] = topItemsCount > 0
2618
2693
  ? [blocksToRender.slice(0, topItemsCount), blocksToRender.slice(topItemsCount)]
2619
2694
  : [blocksToRender, []];
2620
- return (jsxs("div", { children: [jsx("div", { className: style(blocksToRender.length ? 'hidden' : ''), children: jsx(ErrorBlock, { error: { errorContentType: 'Image' }, title: "\u041D\u0435\u0442 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0449\u0435\u0439 \u0438\u043F\u043E\u0442\u0435\u0447\u043D\u043E\u0439 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u044B", subtitle: "\u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440\u044B" }) }), jsxs("div", { className: style(blocksToRender.length ? '' : 'hidden'), children: [jsx("div", { className: resultsGridStyle, children: renderBlocksList(visibleBlocks, { ...rest.options, parent: block }) }), jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => {
2621
- return (jsx(FoldableSection, { className: resultsGridStyle, isUnfolded: isUnfolded, children: renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }) }));
2622
- }, renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(DefaultFoldButton, { className: style('mt-11', topItemsCount < 1 ? 'hidden' : ''), disabled: !hiddenBlocks?.length, label: label, icon: ICONS[Number(isUnfolded)], dataTheme: rest.options?.page?.colorPalette, onClick: onToggle })) })] })] }));
2695
+ return (jsxs("div", { children: [jsx("div", { className: style(blocksToRender.length ? 'hidden' : 'block'), children: notFound ? renderNotFound(notFound) : null }), jsxs("div", { className: style(blocksToRender.length ? '' : 'hidden'), children: [jsx("div", { className: style('mb-1', resultsGridStyle), children: renderBlocksList(visibleBlocks, { ...rest.options, parent: block }) }), jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => {
2696
+ return (jsx(FoldableSection, { className: style(resultsGridStyle, isUnfolded ? 'mb-1' : ''), isUnfolded: isUnfolded, children: renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }) }));
2697
+ }, renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(DefaultFoldButton, { className: style(topItemsCount < 1 ? 'hidden' : ''), disabled: !hiddenBlocks?.length, label: label, icon: ICONS[Number(isUnfolded)], dataTheme: rest.options?.page?.colorPalette, onClick: onToggle })) })] })] }));
2623
2698
  });
2699
+ function renderNotFound({ title, description }) {
2700
+ return (jsxs("div", { className: "bg-white py-20", children: [title ? (jsx("div", { className: "mb-2", children: jsx(Paragraph, { align: "text-center", children: jsx(Text, { size: "text-h4", children: title }) }) })) : null, description ? (jsx(Paragraph, { size: "text-xl", font: "font-light", align: "text-center", children: description })) : null] }));
2701
+ }
2624
2702
 
2625
2703
  const SlideCheckboxGroup = JSX(({ value, onChange, items = [], multiple }) => {
2626
2704
  const handleChange = (newValue) => {
@@ -2640,20 +2718,21 @@
2640
2718
  const item = filtrationSchema[key];
2641
2719
  const type = item?.type;
2642
2720
  switch (type) {
2643
- case 'string':
2644
- return renderRadioButtons(key, register)(item);
2721
+ case 'array':
2722
+ return renderCheckboxes(key, register)(item);
2645
2723
  default:
2646
2724
  return null;
2647
2725
  }
2648
2726
  };
2649
- const renderRadioButtons = (key, register) => (item) => {
2650
- const options = item?.enum?.map((e, i) => ({ value: e, title: item?.enumNames?.[i] || '' })) || [];
2651
- return (jsxs("div", { role: "radiogroup", children: [item?.title ? (jsx("div", { className: "mb-4", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: item.title }) })) : null, jsx(SlideCheckboxGroup, { items: options, multiple: false, ...register(key) })] }, key));
2727
+ const renderCheckboxes = (key, register) => (item) => {
2728
+ const options = item?.items?.enum?.map((e, i) => ({ value: e, title: item?.items?.enumNames?.[i] || '' })) ||
2729
+ [];
2730
+ return (jsxs("div", { children: [item?.title ? (jsx("div", { className: "mb-4", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: item.title }) })) : null, jsx(SlideCheckboxGroup, { items: options, multiple: true, ...register(key) })] }, key));
2652
2731
  };
2653
2732
 
2654
2733
  const Filtration = JSX(({ className, filtrationSchema = {}, resetButton, ...rest }) => {
2655
2734
  const { formState, register, resetForm } = useForm();
2656
- return (jsxs(BlockWrapper, { className: style('p-9', className), ...rest, children: [jsxs("form", { className: "flex justify-between", children: [jsx("div", { className: "flex gap-11", children: Object.keys(filtrationSchema).map(renderFormItem(filtrationSchema, register)) }), resetButton ? (jsx("div", { children: jsx(Button, { className: "w-72", text: resetButton.text, version: resetButton.buttonVersion, onClick: resetForm }) })) : null] }), jsx(FiltrationInner, { filtrationState: formState, ...rest })] }));
2735
+ return (jsxs(BlockWrapper, { className: style(className), version: "transparent", ...rest, children: [jsxs("form", { className: "flex justify-between bg-white p-9 mb-1", children: [jsx("div", { className: "flex gap-11", children: Object.keys(filtrationSchema).map(renderFormItem(filtrationSchema, register)) }), resetButton ? (jsx("div", { children: jsx(Button, { className: "w-72", onClick: resetForm, ...resetButton }) })) : null] }), jsx(FiltrationInner, { filtrationState: formState, ...rest })] }));
2657
2736
  });
2658
2737
  Filtration.childrenTypes = ['ProductTile'];
2659
2738
  Filtration.childSchema = (content) => content?.filtrationSchema || {};
@@ -4885,7 +4964,7 @@
4885
4964
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
4886
4965
  }
4887
4966
 
4888
- const packageVersion = "0.9.10";
4967
+ const packageVersion = "0.9.12";
4889
4968
 
4890
4969
  exports.Blocks = Blocks;
4891
4970
  exports.ContentPage = ContentPage;