@redneckz/wildless-cms-uni-blocks 0.14.4 → 0.14.5

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 (252) hide show
  1. package/bin/migration-scripts/0.13.5.js +33 -0
  2. package/bin/migration-scripts/0.14.1.js +29 -0
  3. package/bundle/blocks.schema.json +1 -1
  4. package/bundle/bundle.umd.js +45 -53
  5. package/bundle/bundle.umd.min.js +1 -1
  6. package/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  7. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  8. package/bundle/components/Footer/FooterContent.d.ts +1 -4
  9. package/bundle/components/Footer/FooterDataProps.d.ts +4 -3
  10. package/bundle/components/Footer/SocialMedia.d.ts +2 -2
  11. package/dist/components/Blocks.js +0 -2
  12. package/dist/components/Blocks.js.map +1 -1
  13. package/dist/components/Calculator/BusinessDepositCalculatorForm.js +8 -8
  14. package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  15. package/dist/components/Calculator/constants.js +0 -1
  16. package/dist/components/Calculator/constants.js.map +1 -1
  17. package/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  18. package/dist/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
  19. package/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  20. package/dist/components/Carousel/Carousel.js +0 -1
  21. package/dist/components/Carousel/Carousel.js.map +1 -1
  22. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  23. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  24. package/dist/components/CarouselProductCard/CarouselProductCard.js +5 -5
  25. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  26. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  27. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  28. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
  29. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
  30. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  31. package/dist/components/Footer/Footer.mobile.js +1 -1
  32. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  33. package/dist/components/Footer/FooterContent.d.ts +1 -4
  34. package/dist/components/Footer/FooterDataProps.d.ts +4 -3
  35. package/dist/components/Footer/SocialMedia.d.ts +2 -2
  36. package/dist/components/Footer/SocialMedia.js +26 -2
  37. package/dist/components/Footer/SocialMedia.js.map +1 -1
  38. package/dist/components/Footer/iconsMap.js +0 -7
  39. package/dist/components/Footer/iconsMap.js.map +1 -1
  40. package/dist/ui-kit/Button/ButtonInner.js +1 -1
  41. package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  42. package/lib/common.css +1 -1
  43. package/lib/components/Blocks.js +0 -2
  44. package/lib/components/Blocks.js.map +1 -1
  45. package/lib/components/Calculator/BusinessDepositCalculatorForm.js +8 -8
  46. package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  47. package/lib/components/Calculator/constants.js +0 -1
  48. package/lib/components/Calculator/constants.js.map +1 -1
  49. package/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  50. package/lib/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
  51. package/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  52. package/lib/components/Carousel/Carousel.fixture.d.ts +0 -1
  53. package/lib/components/Carousel/Carousel.js +0 -1
  54. package/lib/components/Carousel/Carousel.js.map +1 -1
  55. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  56. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  57. package/lib/components/CarouselProductCard/CarouselProductCard.fixture.d.ts +2 -0
  58. package/lib/components/CarouselProductCard/CarouselProductCard.fixture.mobile.d.ts +13 -0
  59. package/lib/components/CarouselProductCard/CarouselProductCard.js +5 -5
  60. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  61. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  62. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  63. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
  64. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
  65. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  66. package/lib/components/Footer/Footer.mobile.js +1 -1
  67. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  68. package/lib/components/Footer/FooterContent.d.ts +1 -4
  69. package/lib/components/Footer/FooterDataProps.d.ts +4 -3
  70. package/lib/components/Footer/SocialMedia.d.ts +2 -2
  71. package/lib/components/Footer/SocialMedia.js +26 -2
  72. package/lib/components/Footer/SocialMedia.js.map +1 -1
  73. package/lib/components/Footer/iconsMap.js +0 -7
  74. package/lib/components/Footer/iconsMap.js.map +1 -1
  75. package/lib/ui-kit/Button/ButtonInner.js +1 -1
  76. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  77. package/mobile/bundle/bundle.umd.js +38 -41
  78. package/mobile/bundle/bundle.umd.min.js +1 -1
  79. package/mobile/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  80. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  81. package/mobile/bundle/components/Footer/FooterContent.d.ts +1 -4
  82. package/mobile/bundle/components/Footer/FooterDataProps.d.ts +4 -3
  83. package/mobile/bundle/components/Footer/SocialMedia.d.ts +2 -2
  84. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +8 -8
  85. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  86. package/mobile/dist/components/Calculator/constants.js +0 -1
  87. package/mobile/dist/components/Calculator/constants.js.map +1 -1
  88. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  89. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
  90. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  91. package/mobile/dist/components/Carousel/Carousel.js +0 -1
  92. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  93. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  94. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  95. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +5 -5
  96. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  97. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  98. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  99. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  100. package/mobile/dist/components/Footer/Footer.js +1 -1
  101. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  102. package/mobile/dist/components/Footer/FooterContent.d.ts +1 -4
  103. package/mobile/dist/components/Footer/FooterDataProps.d.ts +4 -3
  104. package/mobile/dist/components/Footer/SocialMedia.d.ts +2 -2
  105. package/mobile/dist/components/Footer/SocialMedia.js +26 -2
  106. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  107. package/mobile/dist/components/Footer/iconsMap.js +0 -7
  108. package/mobile/dist/components/Footer/iconsMap.js.map +1 -1
  109. package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
  110. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  111. package/mobile/lib/common.css +1 -1
  112. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +8 -8
  113. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  114. package/mobile/lib/components/Calculator/constants.js +0 -1
  115. package/mobile/lib/components/Calculator/constants.js.map +1 -1
  116. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  117. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
  118. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  119. package/mobile/lib/components/Carousel/Carousel.js +0 -1
  120. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  121. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  122. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  123. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +5 -5
  124. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  125. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  126. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  127. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  128. package/mobile/lib/components/Footer/Footer.js +1 -1
  129. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  130. package/mobile/lib/components/Footer/FooterContent.d.ts +1 -4
  131. package/mobile/lib/components/Footer/FooterDataProps.d.ts +4 -3
  132. package/mobile/lib/components/Footer/SocialMedia.d.ts +2 -2
  133. package/mobile/lib/components/Footer/SocialMedia.js +26 -2
  134. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  135. package/mobile/lib/components/Footer/iconsMap.js +0 -7
  136. package/mobile/lib/components/Footer/iconsMap.js.map +1 -1
  137. package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
  138. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  139. package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +28 -26
  140. package/mobile/src/components/Calculator/constants.ts +0 -1
  141. package/mobile/src/components/Calculator/useBusinessDepositCalculatorParams.ts +2 -10
  142. package/mobile/src/components/Carousel/Carousel.tsx +0 -1
  143. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +1 -1
  144. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +5 -1
  145. package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +1 -3
  146. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +23 -13
  147. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -2
  148. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
  149. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -2
  150. package/mobile/src/components/Footer/Footer.tsx +1 -1
  151. package/mobile/src/components/Footer/FooterContent.ts +1 -5
  152. package/mobile/src/components/Footer/FooterDataProps.ts +4 -3
  153. package/mobile/src/components/Footer/SocialMedia.tsx +48 -16
  154. package/mobile/src/components/Footer/iconsMap.ts +0 -7
  155. package/mobile/src/components/ProductGallery/ProductGallery.example.json +10 -4
  156. package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
  157. package/package.json +1 -1
  158. package/src/components/Blocks.ts +0 -2
  159. package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +28 -26
  160. package/src/components/Calculator/constants.ts +0 -1
  161. package/src/components/Calculator/useBusinessDepositCalculatorParams.ts +2 -10
  162. package/src/components/Carousel/Carousel.fixture.tsx +0 -18
  163. package/src/components/Carousel/Carousel.tsx +0 -1
  164. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +1 -1
  165. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +5 -1
  166. package/src/components/CarouselProductCard/CarouselProductCard.example.json +1 -3
  167. package/src/components/CarouselProductCard/CarouselProductCard.fixture.mobile.tsx +92 -0
  168. package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +18 -0
  169. package/src/components/CarouselProductCard/CarouselProductCard.tsx +23 -13
  170. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -2
  171. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +4 -4
  172. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +7 -7
  173. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx +1 -1
  174. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -1
  175. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -2
  176. package/src/components/Footer/Footer.mobile.tsx +1 -1
  177. package/src/components/Footer/FooterContent.ts +1 -5
  178. package/src/components/Footer/FooterDataProps.ts +4 -3
  179. package/src/components/Footer/SocialMedia.tsx +48 -16
  180. package/src/components/Footer/iconsMap.ts +0 -7
  181. package/src/components/ProductGallery/ProductGallery.example.json +10 -4
  182. package/src/ui-kit/Button/ButtonInner.tsx +1 -1
  183. package/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  184. package/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  185. package/bundle/components/Footer/MediaButton.d.ts +0 -7
  186. package/bundle/components/Footer/buttonSizeStyle.d.ts +0 -4
  187. package/dist/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  188. package/dist/components/CarouselEventCard/CarouselEventCard.js +0 -12
  189. package/dist/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
  190. package/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  191. package/dist/components/CarouselEventCard/CarouselEventCardContent.js +0 -2
  192. package/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
  193. package/dist/components/Footer/MediaButton.d.ts +0 -7
  194. package/dist/components/Footer/MediaButton.js +0 -18
  195. package/dist/components/Footer/MediaButton.js.map +0 -1
  196. package/dist/components/Footer/buttonSizeStyle.d.ts +0 -4
  197. package/dist/components/Footer/buttonSizeStyle.js +0 -7
  198. package/dist/components/Footer/buttonSizeStyle.js.map +0 -1
  199. package/lib/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  200. package/lib/components/CarouselEventCard/CarouselEventCard.fixture.d.ts +0 -8
  201. package/lib/components/CarouselEventCard/CarouselEventCard.js +0 -10
  202. package/lib/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
  203. package/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  204. package/lib/components/CarouselEventCard/CarouselEventCardContent.js +0 -2
  205. package/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
  206. package/lib/components/Footer/MediaButton.d.ts +0 -7
  207. package/lib/components/Footer/MediaButton.js +0 -16
  208. package/lib/components/Footer/MediaButton.js.map +0 -1
  209. package/lib/components/Footer/buttonSizeStyle.d.ts +0 -4
  210. package/lib/components/Footer/buttonSizeStyle.js +0 -5
  211. package/lib/components/Footer/buttonSizeStyle.js.map +0 -1
  212. package/mobile/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  213. package/mobile/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  214. package/mobile/bundle/components/Footer/MediaButton.d.ts +0 -7
  215. package/mobile/bundle/components/Footer/buttonSizeStyle.d.ts +0 -4
  216. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  217. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +0 -12
  218. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
  219. package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  220. package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js +0 -2
  221. package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
  222. package/mobile/dist/components/Footer/MediaButton.d.ts +0 -7
  223. package/mobile/dist/components/Footer/MediaButton.js +0 -18
  224. package/mobile/dist/components/Footer/MediaButton.js.map +0 -1
  225. package/mobile/dist/components/Footer/buttonSizeStyle.d.ts +0 -4
  226. package/mobile/dist/components/Footer/buttonSizeStyle.js +0 -7
  227. package/mobile/dist/components/Footer/buttonSizeStyle.js.map +0 -1
  228. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  229. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +0 -10
  230. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
  231. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  232. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js +0 -2
  233. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
  234. package/mobile/lib/components/Footer/MediaButton.d.ts +0 -7
  235. package/mobile/lib/components/Footer/MediaButton.js +0 -16
  236. package/mobile/lib/components/Footer/MediaButton.js.map +0 -1
  237. package/mobile/lib/components/Footer/buttonSizeStyle.d.ts +0 -4
  238. package/mobile/lib/components/Footer/buttonSizeStyle.js +0 -5
  239. package/mobile/lib/components/Footer/buttonSizeStyle.js.map +0 -1
  240. package/mobile/src/components/CarouselEventCard/CarouselEventCard.example.json +0 -12
  241. package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +0 -31
  242. package/mobile/src/components/CarouselEventCard/CarouselEventCard.ui.json +0 -1
  243. package/mobile/src/components/CarouselEventCard/CarouselEventCardContent.ts +0 -13
  244. package/mobile/src/components/Footer/MediaButton.tsx +0 -50
  245. package/mobile/src/components/Footer/buttonSizeStyle.ts +0 -6
  246. package/src/components/CarouselEventCard/CarouselEventCard.example.json +0 -12
  247. package/src/components/CarouselEventCard/CarouselEventCard.fixture.tsx +0 -25
  248. package/src/components/CarouselEventCard/CarouselEventCard.tsx +0 -31
  249. package/src/components/CarouselEventCard/CarouselEventCard.ui.json +0 -1
  250. package/src/components/CarouselEventCard/CarouselEventCardContent.ts +0 -13
  251. package/src/components/Footer/MediaButton.tsx +0 -50
  252. package/src/components/Footer/buttonSizeStyle.ts +0 -6
@@ -646,7 +646,7 @@
646
646
  return '';
647
647
  }
648
648
  const withTextStyle = `${aboveText ? 'py-2.5 px-9' : 'py-4 px-9'}`;
649
- return style('group/btn items-center justify-center', isWithText(props) ? withTextStyle : 'h-12 w-12', rounded ? 'rounded-full' : '');
649
+ return style('group/btn items-center justify-center', isWithText(props) ? withTextStyle : 'h-12 w-12 m-auto', rounded ? 'rounded-full' : '');
650
650
  };
651
651
  const isWithText = ({ text, aboveText, appendLeft }) => Boolean(text || aboveText || !appendLeft);
652
652
 
@@ -1635,7 +1635,6 @@
1635
1635
  isMonthlyInterestPayment: true,
1636
1636
  isReplenished: false,
1637
1637
  isPartialWithdrawal: false,
1638
- isSmallBusiness: false,
1639
1638
  depositeName: "Депозит 'Стабильный'",
1640
1639
  };
1641
1640
  const CREDIT_CALC_DEFAULT_DIR = 'credit-calculator-data';
@@ -1807,7 +1806,7 @@
1807
1806
  const checkRangeByKeys = (value, [minKey, maxKey], sourceBookRow) => value >= sourceBookRow[minKey] && value <= sourceBookRow[maxKey];
1808
1807
 
1809
1808
  const useBusinessDepositCalculatorParams = (userInputParams, sourceBookDir) => {
1810
- const { daysValue, moneyValue, isPartialWithdrawal, isReplenished, isSmallBusiness, isMonthlyInterestPayment, } = userInputParams;
1809
+ const { daysValue, moneyValue, isPartialWithdrawal, isReplenished, isMonthlyInterestPayment } = userInputParams;
1811
1810
  const data = useCalculatorParams(sourceBookDir || BUSINESS_DEPOSIT_CALC_DEFAULT_DIR);
1812
1811
  const isOperatingDeposit = isReplenished || isPartialWithdrawal;
1813
1812
  const isDisabledOperatingDeposit = daysValue < BUSINESS_OPERATING_MIN_DAYS || daysValue > BUSINESS_OPERATING_MAX_DAYS;
@@ -1821,7 +1820,6 @@
1821
1820
  }
1822
1821
  const businessDepositCalculatorSourceBookParams = data?.rateRows?.find((_) => {
1823
1822
  return (isMonthlyInterestPayment === _.isMonthlyInterestPayment &&
1824
- isSmallBusiness === _.isSmallBusiness &&
1825
1823
  checkIsOperatingDeposit(isOperatingDeposit, _) &&
1826
1824
  checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], _) &&
1827
1825
  checkRangeByKeys(daysValue, ['minDays', 'maxDays'], _));
@@ -1862,7 +1860,6 @@
1862
1860
  daysValue: BUSINESS_DEFAULT_DAYS,
1863
1861
  isReplenished: false,
1864
1862
  isPartialWithdrawal: false,
1865
- isSmallBusiness: false,
1866
1863
  isMonthlyInterestPayment: false,
1867
1864
  });
1868
1865
  const calculatorParams = useBusinessDepositCalculatorParams(userInputParams, rateParams?.sourceBookDir);
@@ -1879,19 +1876,19 @@
1879
1876
  max: calculatorParams.maxDays,
1880
1877
  ...field('daysValue'),
1881
1878
  value: calculatorParams.daysValue,
1882
- }), renderBusinessDepositParamsForm(calculatorParams, field), renderInterestPayment({
1883
- title: 'Выплата процентов',
1884
- orientation: 'vertical',
1885
- ...field('isMonthlyInterestPayment'),
1886
- radioGroupClassName: 'sm:flex-col',
1887
- })] }), jsx("div", { className: "border-b border-main-divider md:hidden" }), renderRate({
1879
+ }), jsxs("div", { className: "flex flex-col sm:flex-row gap-y-4 gap-x-14", children: [renderBusinessDepositParamsForm(calculatorParams, field), renderInterestPayment({
1880
+ title: 'Выплата процентов',
1881
+ orientation: 'vertical',
1882
+ ...field('isMonthlyInterestPayment'),
1883
+ radioGroupClassName: 'sm:flex-col',
1884
+ })] })] }), jsx("div", { className: "border-b border-main-divider md:hidden" }), renderRate({
1888
1885
  rate,
1889
1886
  depositeName,
1890
1887
  isShowDepositeName,
1891
1888
  isUnavailableByTerm,
1892
1889
  }), jsxs("div", { className: "flex flex-col gap-2xl sm:w-96", children: [renderDepositResults(finalSum, income), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote), renderFootnote(bottomFootnote)] })] }));
1893
1890
  });
1894
- const renderBusinessDepositParamsForm = (calculatorParams, field) => (jsxs("div", { className: "flex flex-col gap-y-xl sm:gap-y-s", children: [jsx(Checkbox, { text: "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435", disabled: calculatorParams.isDisabledOperatingDeposit, ...field('isReplenished'), value: calculatorParams.isReplenished }), jsx(Checkbox, { disabled: calculatorParams.isDisabledOperatingDeposit, text: "\u0427\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0435 \u0441\u043D\u044F\u0442\u0438\u0435", ...field('isPartialWithdrawal'), value: calculatorParams.isPartialWithdrawal }), jsx(Checkbox, { text: "\u0418\u041F / \u043C\u0430\u043B\u043E\u0435 \u043F\u0440\u0435\u0434\u043F\u0440\u0438\u044F\u0442\u0438\u0435", ...field('isSmallBusiness'), value: calculatorParams.isSmallBusiness })] }));
1891
+ const renderBusinessDepositParamsForm = (calculatorParams, field) => (jsxs("div", { className: "space-y-s", children: [jsx(Text, { color: "text-secondary-text", font: "font-light", children: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B" }), jsxs("div", { className: "flex flex-col gap-y-xl sm:gap-y-s", children: [jsx(Checkbox, { text: "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435", disabled: calculatorParams.isDisabledOperatingDeposit, ...field('isReplenished'), value: calculatorParams.isReplenished }), jsx(Checkbox, { disabled: calculatorParams.isDisabledOperatingDeposit, text: "\u0427\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0435 \u0441\u043D\u044F\u0442\u0438\u0435", ...field('isPartialWithdrawal'), value: calculatorParams.isPartialWithdrawal })] })] }));
1895
1892
  const renderDepositResults = (finalSum, income) => (jsxs("div", { className: "flex flex-col gap-2xl sm:gap-0", children: [jsx(CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", 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" })] }));
1896
1893
 
1897
1894
  const STEP_MONTHS = 1;
@@ -2665,7 +2662,6 @@
2665
2662
  'CarouselTariffsCard',
2666
2663
  'CarouselRichTextCard',
2667
2664
  'CarouselInvestmentCard',
2668
- 'CarouselEventCard',
2669
2665
  'ProductBlock',
2670
2666
  ];
2671
2667
  Carousel.childSchema = () => ({
@@ -2710,23 +2706,12 @@
2710
2706
  const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors = [], align = 'text-left', padding, ...rest }) => (jsx(BlockWrapper, { className: style('flex flex-col justify-left', className), defaultPadding: "p-2xl", ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, title: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align })) : null, rightImage: image?.src ? (jsx(Img, { className: "flex justify-center align-center mb-xl", image: image })) : null, buttons: renderButtonsSection([button], { buttonClassName: 'w-full mt-lg' }), children: [colors?.length ? (jsxs("div", { className: "flex text-secondary-text mb-m", children: [jsx("div", { className: "mr-xs", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0426\u0432\u0435\u0442\u0430:" }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null] }) })));
2711
2707
  const renderColorOption = (color, i) => (jsx("div", { role: "figure", className: `w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
2712
2708
 
2713
- const LinkWrapper = JSX(({ className = '', href, target, isRemote = false, children }) => {
2714
- const link = useLink({ isRemote });
2715
- const linkProps = link({ href, target });
2716
- const Tag = href ? 'a' : 'div';
2717
- return (jsx(Tag, { className: style('block', className), ...(href ? linkProps : {}), children: children }));
2718
- });
2719
-
2720
- const CarouselEventCard = JSX(({ className = '', icon, title, description, href, target, ...rest }) => {
2721
- return (jsx(BlockWrapper, { className: className, defaultPadding: "p-0", ...rest, children: jsxs(LinkWrapper, { className: "flex flex-col", href: href, target: target, children: [icon?.icon ? jsx(Img, { image: icon }) : null, icon?.src ? jsx(Img, { image: icon }) : null, jsx("div", { className: "p-s", children: jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: "text-left" }) })] }) }));
2722
- });
2723
-
2724
2709
  const cardColumnsModeStyleMap = {
2725
2710
  1: 'grid-cols-1',
2726
2711
  2: 'grid-cols-2',
2727
2712
  };
2728
2713
  const CarouselInvestmentCard = JSX(({ className, padding, additionalDescription, cardsList = [], columnsMode = 1, description, image, title, ...rest }) => (jsx(BlockWrapper, { className: style('text-left', className), padding: "p-0", ...rest, children: jsxs(BaseTile, { className: "h-full", defaultPadding: "p-xl", padding: padding, title: title ? jsx(Heading, { headingType: "h4", as: "h3", className: "mb-m z-10", title: title }) : null, backImage: image?.src ? jsx(Img, { image: image }) : null, children: [jsxs("div", { className: "flex justify-between mb-m", children: [description ? (jsx("div", { className: "w-1/3", children: jsx(Text, { size: "text-h6", children: description }) })) : null, additionalDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: additionalDescription })) : null] }), cardsList.length ? (jsx("ul", { className: style('list-none m-0 p-0 grid gap-xs', cardColumnsModeStyleMap[columnsMode]), children: renderCardList(cardsList) })) : null] }) })));
2729
- const renderCardList = (cardsList) => cardsList.map((item, i) => (jsxs("li", { children: [item?.parameter ? jsx(Text, { size: "text-h6", children: item.parameter }) : null, item?.parameterDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: item.parameterDescription })) : null] }, String(i))));
2714
+ const renderCardList = (cardsList) => cardsList.map((item, i) => (jsxs("li", { children: [item?.parameter ? (jsx("div", { className: "inline pr-xs", children: jsx(Text, { size: "text-h6", children: item.parameter }) })) : null, item?.parameterDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: item.parameterDescription })) : null] }, String(i))));
2730
2715
 
2731
2716
  const LINK_CLASS_NAME = `absolute border
2732
2717
  bg-white flex justify-between group-hover/link:text-primary-main`;
@@ -2747,6 +2732,13 @@
2747
2732
  .map((link, index) => (jsx(CarouselLinkButton, { ...link }, String(index)))) }, String(groupIndex)))) }));
2748
2733
  };
2749
2734
 
2735
+ const LinkWrapper = JSX(({ className = '', href, target, isRemote = false, children }) => {
2736
+ const link = useLink({ isRemote });
2737
+ const linkProps = link({ href, target });
2738
+ const Tag = href ? 'a' : 'div';
2739
+ return (jsx(Tag, { className: style('block', className), ...(href ? linkProps : {}), children: children }));
2740
+ });
2741
+
2750
2742
  const DOT_SIZE_MAP = {
2751
2743
  L: 'w-1.5 h-1.5 mr-m',
2752
2744
  M: 'w-1.5 h-1.5 mr-s',
@@ -2770,15 +2762,15 @@
2770
2762
  const List = JSX(({ className, hasIndent, isDotted, items, listItemSize = 'M' }) => items?.length ? (jsx("section", { className: style('flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text', TEXT_SIZE_MAP[listItemSize], hasIndent ? ITEM_INDENT_MAP[listItemSize] : '', className), role: "list", children: items.map((item, i) => (jsx(ListItem, { isDotted: isDotted, size: listItemSize, children: item }, String(i)))) })) : null);
2771
2763
 
2772
2764
  const CarouselProductCard = JSX(({ additionalDescription, align = AlignStyles, button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, isButtonFullWidth = true, isImageFullWidth = false, isTopPosition = false, items = [], target, title, version = 'primary', ...rest }) => {
2773
- return (jsxs(BlockWrapper, { className: style('flex flex-col justify-between', align, className), defaultPadding: "p-0", version: version, ...rest, children: [jsxs(LinkWrapper, { className: "p-m flex flex-col gap-xs", href: href, target: target, children: [renderCardTitle(headlineSmallVersion, title), renderDescription$2(description), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription), renderImage$2(icon, isImageFullWidth, isTopPosition)] }), renderButtonsSection([button], {
2765
+ return (jsxs(BlockWrapper, { className: style('flex flex-col justify-between', className), defaultPadding: "p-0", version: version, ...rest, children: [jsxs(LinkWrapper, { className: "p-m flex flex-col gap-xs", href: href, target: target, children: [renderCardTitle(headlineSmallVersion, title, align), renderDescription$2(description, align), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription, align), renderImage$2(icon, isImageFullWidth, isTopPosition)] }), renderButtonsSection([button], {
2774
2766
  className: style('p-m pt-0', isButtonFullWidth ? '' : 'self-center'),
2775
2767
  isVertical: isButtonFullWidth,
2776
2768
  })] }));
2777
2769
  });
2778
- const renderImage$2 = (image, isImageFullWidth, isTopPosition) => (jsxs("div", { className: style('flex gap-lg', isTopPosition ? 'order-first' : 'order-last', !isImageFullWidth ? 'justify-center' : ''), children: [image?.src ? jsx(Img, { className: "shrink-0", image: image }) : null, image?.icon ? (jsx(Img, { className: style('shrink-0', !isImageFullWidth ? 'w-8 h-8 min-w-8' : ''), image: image })) : null] }));
2779
- const renderCardTitle = (headlineSmallVersion, title) => title ? jsx(Text, { size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
2780
- const renderDescription$2 = (description) => description ? jsx(Paragraph, { size: "text-l", children: description }) : null;
2781
- const renderAdditionalDescription = (additionalDescription) => additionalDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", children: additionalDescription })) : null;
2770
+ const renderImage$2 = (image, isImageFullWidth, isTopPosition) => (jsxs("div", { className: style('flex gap-y-lg justify-center', isImageFullWidth ? 'min-w-full h-full' : '', isTopPosition ? 'order-first' : 'order-last'), children: [image?.src ? jsx(Img, { image: image }) : null, image?.icon ? (jsx(Img, { className: style(!isImageFullWidth ? 'w-8 h-8 min-w-8' : 'w-full h-full'), image: image })) : null] }));
2771
+ const renderCardTitle = (headlineSmallVersion, title, align) => title ? (jsx(Text, { align: align, size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title })) : null;
2772
+ const renderDescription$2 = (description, align) => description ? (jsx(Paragraph, { align: align, size: "text-l", children: description })) : null;
2773
+ const renderAdditionalDescription = (additionalDescription, align) => additionalDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", align: align, children: additionalDescription })) : null;
2782
2774
  const renderItems = (items, isDotted, version = 'primary') => items?.length ? (jsx(List, { className: style('text-s', version === 'primary' ? '!text-secondary-text' : ''), items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, listItemSize: "S" })) : null;
2783
2775
 
2784
2776
  const sum = (list = []) => list.reduce((a, b) => a + b, 0);
@@ -2841,65 +2833,66 @@
2841
2833
  description: _.description,
2842
2834
  })) }) }) })));
2843
2835
 
2844
- const buttonSizeStyle = {
2845
- default: 'w-14 h-14',
2846
- stretched: 'flex-1 h-14',
2847
- };
2848
-
2849
2836
  const ICONS_MAP = [
2850
2837
  {
2851
2838
  origins: ['t.me', 'telegram.org'],
2852
2839
  iconMapped: { icon: 'TelegramIcon' },
2853
- label: 'Телеграм',
2854
2840
  },
2855
2841
  {
2856
2842
  origins: ['vk.com'],
2857
2843
  iconMapped: { icon: 'VKIcon' },
2858
- label: 'ВКонтакте',
2859
2844
  },
2860
2845
  {
2861
2846
  origins: ['ok.ru'],
2862
2847
  iconMapped: { icon: 'OkIcon' },
2863
- label: 'Одноклассники',
2864
2848
  },
2865
2849
  {
2866
2850
  origins: ['apps.apple.com'],
2867
2851
  iconMapped: { icon: 'AppleIcon' },
2868
- label: 'App Store',
2869
2852
  },
2870
2853
  {
2871
2854
  origins: ['play.google.com'],
2872
2855
  iconMapped: { icon: 'PlayMarketIcon' },
2873
- label: 'Google Play',
2874
2856
  },
2875
2857
  {
2876
2858
  origins: ['youtube.com'],
2877
2859
  iconMapped: { icon: 'YoutubeIcon' },
2878
- label: 'Youtube',
2879
2860
  },
2880
2861
  {
2881
2862
  origins: ['rutube.ru'],
2882
2863
  iconMapped: { icon: 'RutubeIcon' },
2883
- label: 'Rutube',
2884
2864
  },
2885
2865
  ];
2886
2866
 
2887
2867
  const findIconByHref = (href) => ICONS_MAP.find(({ origins }) => origins?.some((_) => href?.includes(_))) || {};
2888
2868
 
2889
- //TODO: Refactor this.
2890
- const MediaButton = JSX(({ buttonSize = 'default', icon, ...rest }) => {
2891
- const { href } = rest;
2892
- const { iconMapped, label } = findIconByHref(href);
2893
- const iconCustom = getFilteredIcon(icon) ?? iconMapped;
2894
- return (jsx(Button, { className: style('border border-solid hover:border-transparent', 'group-data-primary:border-main-divider', 'hover:bg-primary-main hover:text-black', 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover', 'group-data-gray:border-green', 'p-m min-h-14 group/media flex items-center justify-center box-border', buttonSizeStyle[buttonSize]), "aria-label": label, rel: "noopener noreferrer", target: "_blank", ...rest, children: jsx(Img, { image: iconCustom, imageClassName: "group-hover/media:text-white", width: "24", height: "24" }) }));
2869
+ const SocialMedia = JSX(({ className = '', media, showButtonText, stretched, children }) => {
2870
+ const [hasText, setHasText] = useState();
2871
+ const buttons = media?.map((_) => {
2872
+ const { href, icon, text } = _;
2873
+ const { iconMapped } = findIconByHref(href);
2874
+ const iconCustom = getFilteredIcon(icon) ?? iconMapped;
2875
+ const buttonText = showButtonText ? { text } : {};
2876
+ if (!hasText && text) {
2877
+ setHasText(true);
2878
+ }
2879
+ return {
2880
+ ...buttonText,
2881
+ icon: { ...iconCustom, iconVersion: 'color' },
2882
+ version: 'white',
2883
+ };
2884
+ });
2885
+ const buttonClassName = style('border border-solid hover:border-transparent group-data-primary:border-main-divider border-main-divider group-data-gray:border-green group/media', showButtonText && hasText ? '' : ' basis-auto', stretched ? 'flex-1 justify-center' : '');
2886
+ return (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: renderButtonsSection(buttons, {
2887
+ className: stretched ? 'w-full' : '',
2888
+ buttonClassName,
2889
+ }) })] }));
2895
2890
  });
2896
2891
  const getFilteredIcon = (icon) => (icon?.src || icon?.icon ? icon : undefined);
2897
2892
 
2898
- 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)))) })] })));
2899
-
2900
2893
  //TODO: replace SocialMedia with renderButtonSection
2901
2894
  const CarouselRecommendationCard = JSX(({ className, padding, description, href, icon, items = [], listItemSize = 'S', socialMedia = [], target, title, align = 'text-left', ...rest }) => {
2902
- return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsx(BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, title: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, backImage: icon?.icon || icon?.src ? jsx(Img, { image: icon }) : null, buttons: socialMedia.length ? jsx(SocialMedia, { media: socialMedia }) : null, children: items.length ? jsx(List, { items: items, listItemSize: listItemSize }) : null }) }) }));
2895
+ return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsx(BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, title: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, backImage: icon?.icon || icon?.src ? jsx(Img, { image: icon }) : null, buttons: socialMedia.length ? jsx(SocialMedia, { media: socialMedia, showButtonText: true }) : null, children: items.length ? jsx(List, { items: items, listItemSize: listItemSize }) : null }) }) }));
2903
2896
  });
2904
2897
 
2905
2898
  const CarouselRichTextCard = JSX(({ className = '', __html, richVersion = 'striped', ...rest }) => (jsx(BlockWrapper, { className: className, ...rest, children: jsx(RichText, { __html: __html, richVersion: richVersion }) })));
@@ -5097,7 +5090,6 @@
5097
5090
  CarouselBankHistoryCard,
5098
5091
  CarouselCard,
5099
5092
  CarouselCatalogCard,
5100
- CarouselEventCard,
5101
5093
  CarouselInvestmentCard,
5102
5094
  CarouselLinks,
5103
5095
  CarouselProductCard,
@@ -5379,7 +5371,7 @@
5379
5371
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
5380
5372
  }
5381
5373
 
5382
- const packageVersion = "0.14.4";
5374
+ const packageVersion = "0.14.5";
5383
5375
 
5384
5376
  exports.Blocks = Blocks;
5385
5377
  exports.ContentPage = ContentPage;