@redneckz/wildless-cms-uni-blocks 0.9.5 → 0.9.7

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 (222) hide show
  1. package/bundle/BlockRenderer/BlockRendererOptions.d.ts +0 -2
  2. package/bundle/BlockRenderer/renderBlock.d.ts +5 -1
  3. package/bundle/blocks.schema.json +1 -1
  4. package/bundle/bundle.umd.js +89 -52
  5. package/bundle/bundle.umd.min.js +1 -1
  6. package/bundle/components/Calculator/CalculatorContent.d.ts +15 -1
  7. package/bundle/components/Calculator/CreditCalculatorForm.d.ts +2 -2
  8. package/bundle/components/Calculator/DepositCalculatorForm.d.ts +2 -2
  9. package/bundle/components/Calculator/useCreditCalculatorParams.d.ts +3 -1
  10. package/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
  11. package/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
  12. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  13. package/bundle/ui-kit/BlockWrapper.d.ts +0 -1
  14. package/bundle/ui-kit/LinkWrapper/LinkWrapper.d.ts +8 -0
  15. package/dist/BlockRenderer/BlockRendererOptions.d.ts +0 -2
  16. package/dist/BlockRenderer/renderBlock.d.ts +5 -1
  17. package/dist/BlockRenderer/renderBlock.js +2 -2
  18. package/dist/BlockRenderer/renderBlock.js.map +1 -1
  19. package/dist/components/Calculator/CalculatorContent.d.ts +15 -1
  20. package/dist/components/Calculator/CreditCalculatorForm.d.ts +2 -2
  21. package/dist/components/Calculator/CreditCalculatorForm.js +19 -4
  22. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  23. package/dist/components/Calculator/DepositCalculatorForm.d.ts +2 -2
  24. package/dist/components/Calculator/constants.js +1 -0
  25. package/dist/components/Calculator/constants.js.map +1 -1
  26. package/dist/components/Calculator/useCreditCalculatorParams.d.ts +3 -1
  27. package/dist/components/Calculator/useCreditCalculatorParams.js +34 -8
  28. package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  29. package/dist/components/Carousel/Carousel.js +11 -13
  30. package/dist/components/Carousel/Carousel.js.map +1 -1
  31. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  32. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  33. package/dist/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
  34. package/dist/components/CarouselEventCard/CarouselEventCard.js +4 -7
  35. package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  36. package/dist/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
  37. package/dist/components/CarouselProductCard/CarouselProductCard.js +6 -9
  38. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  39. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -5
  40. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  41. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  42. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -7
  43. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  44. package/dist/components/VerticalLayout/VerticalLayout.js +6 -2
  45. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  46. package/dist/content-page-repository/transformImg.js +1 -1
  47. package/dist/content-page-repository/transformImg.js.map +1 -1
  48. package/dist/ui-kit/BlockWrapper.d.ts +0 -1
  49. package/dist/ui-kit/BlockWrapper.js +2 -2
  50. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  51. package/dist/ui-kit/LinkWrapper/LinkWrapper.d.ts +8 -0
  52. package/dist/ui-kit/LinkWrapper/LinkWrapper.js +12 -0
  53. package/dist/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -0
  54. package/lib/BlockRenderer/BlockRendererOptions.d.ts +0 -2
  55. package/lib/BlockRenderer/renderBlock.d.ts +5 -1
  56. package/lib/BlockRenderer/renderBlock.js +2 -2
  57. package/lib/BlockRenderer/renderBlock.js.map +1 -1
  58. package/lib/common.css +1 -1
  59. package/lib/components/Calculator/CalculatorContent.d.ts +15 -1
  60. package/lib/components/Calculator/CreditCalculatorForm.d.ts +2 -2
  61. package/lib/components/Calculator/CreditCalculatorForm.js +19 -4
  62. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  63. package/lib/components/Calculator/DepositCalculatorForm.d.ts +2 -2
  64. package/lib/components/Calculator/constants.js +1 -0
  65. package/lib/components/Calculator/constants.js.map +1 -1
  66. package/lib/components/Calculator/useCreditCalculatorParams.d.ts +3 -1
  67. package/lib/components/Calculator/useCreditCalculatorParams.js +34 -8
  68. package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  69. package/lib/components/Carousel/Carousel.js +11 -13
  70. package/lib/components/Carousel/Carousel.js.map +1 -1
  71. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  72. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  73. package/lib/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
  74. package/lib/components/CarouselEventCard/CarouselEventCard.js +4 -7
  75. package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  76. package/lib/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
  77. package/lib/components/CarouselProductCard/CarouselProductCard.js +6 -9
  78. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  79. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -5
  80. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  81. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  82. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -7
  83. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  84. package/lib/components/VerticalLayout/VerticalLayout.js +6 -2
  85. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  86. package/lib/content-page-repository/transformImg.js +1 -1
  87. package/lib/content-page-repository/transformImg.js.map +1 -1
  88. package/lib/ui-kit/BlockWrapper.d.ts +0 -1
  89. package/lib/ui-kit/BlockWrapper.js +2 -2
  90. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  91. package/lib/ui-kit/LinkWrapper/LinkWrapper.d.ts +8 -0
  92. package/lib/ui-kit/LinkWrapper/LinkWrapper.js +10 -0
  93. package/lib/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -0
  94. package/mobile/bundle/BlockRenderer/BlockRendererOptions.d.ts +0 -2
  95. package/mobile/bundle/BlockRenderer/renderBlock.d.ts +5 -1
  96. package/mobile/bundle/bundle.umd.js +10 -7
  97. package/mobile/bundle/bundle.umd.min.js +1 -1
  98. package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +15 -1
  99. package/mobile/bundle/components/Calculator/CreditCalculatorForm.d.ts +2 -2
  100. package/mobile/bundle/components/Calculator/DepositCalculatorForm.d.ts +2 -2
  101. package/mobile/bundle/components/Calculator/useCreditCalculatorParams.d.ts +3 -1
  102. package/mobile/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
  103. package/mobile/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
  104. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  105. package/mobile/bundle/ui-kit/BlockWrapper.d.ts +0 -1
  106. package/mobile/bundle/ui-kit/LinkWrapper/LinkWrapper.d.ts +8 -0
  107. package/mobile/dist/BlockRenderer/BlockRendererOptions.d.ts +0 -2
  108. package/mobile/dist/BlockRenderer/renderBlock.d.ts +5 -1
  109. package/mobile/dist/BlockRenderer/renderBlock.js +2 -2
  110. package/mobile/dist/BlockRenderer/renderBlock.js.map +1 -1
  111. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +15 -1
  112. package/mobile/dist/components/Calculator/CreditCalculatorForm.d.ts +2 -2
  113. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +19 -4
  114. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  115. package/mobile/dist/components/Calculator/DepositCalculatorForm.d.ts +2 -2
  116. package/mobile/dist/components/Calculator/constants.js +1 -0
  117. package/mobile/dist/components/Calculator/constants.js.map +1 -1
  118. package/mobile/dist/components/Calculator/useCreditCalculatorParams.d.ts +3 -1
  119. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +34 -8
  120. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  121. package/mobile/dist/components/Carousel/Carousel.js +11 -13
  122. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  123. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  124. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  125. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
  126. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +4 -7
  127. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  128. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
  129. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +6 -9
  130. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  131. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -5
  132. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  133. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  134. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -7
  135. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  136. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +6 -2
  137. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  138. package/mobile/dist/content-page-repository/transformImg.js +1 -1
  139. package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
  140. package/mobile/dist/ui-kit/BlockWrapper.d.ts +0 -1
  141. package/mobile/dist/ui-kit/BlockWrapper.js +2 -2
  142. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  143. package/mobile/dist/ui-kit/LinkWrapper/LinkWrapper.d.ts +8 -0
  144. package/mobile/dist/ui-kit/LinkWrapper/LinkWrapper.js +12 -0
  145. package/mobile/dist/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -0
  146. package/mobile/lib/BlockRenderer/BlockRendererOptions.d.ts +0 -2
  147. package/mobile/lib/BlockRenderer/renderBlock.d.ts +5 -1
  148. package/mobile/lib/BlockRenderer/renderBlock.js +2 -2
  149. package/mobile/lib/BlockRenderer/renderBlock.js.map +1 -1
  150. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +15 -1
  151. package/mobile/lib/components/Calculator/CreditCalculatorForm.d.ts +2 -2
  152. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +19 -4
  153. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  154. package/mobile/lib/components/Calculator/DepositCalculatorForm.d.ts +2 -2
  155. package/mobile/lib/components/Calculator/constants.js +1 -0
  156. package/mobile/lib/components/Calculator/constants.js.map +1 -1
  157. package/mobile/lib/components/Calculator/useCreditCalculatorParams.d.ts +3 -1
  158. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +34 -8
  159. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  160. package/mobile/lib/components/Carousel/Carousel.js +11 -13
  161. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  162. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  163. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  164. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
  165. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +4 -7
  166. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  167. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
  168. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +6 -9
  169. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  170. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -5
  171. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  172. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  173. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -7
  174. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  175. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +6 -2
  176. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  177. package/mobile/lib/content-page-repository/transformImg.js +1 -1
  178. package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
  179. package/mobile/lib/ui-kit/BlockWrapper.d.ts +0 -1
  180. package/mobile/lib/ui-kit/BlockWrapper.js +2 -2
  181. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  182. package/mobile/lib/ui-kit/LinkWrapper/LinkWrapper.d.ts +8 -0
  183. package/mobile/lib/ui-kit/LinkWrapper/LinkWrapper.js +10 -0
  184. package/mobile/lib/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -0
  185. package/mobile/src/BlockRenderer/BlockRendererOptions.ts +0 -2
  186. package/mobile/src/BlockRenderer/renderBlock.tsx +7 -3
  187. package/mobile/src/components/Calculator/Calculator.example.json +6 -0
  188. package/mobile/src/components/Calculator/CalculatorContent.ts +16 -1
  189. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +89 -29
  190. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +2 -2
  191. package/mobile/src/components/Calculator/constants.ts +1 -0
  192. package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +46 -8
  193. package/mobile/src/components/Carousel/Carousel.tsx +9 -11
  194. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +2 -1
  195. package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +19 -26
  196. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +16 -18
  197. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +15 -20
  198. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +28 -28
  199. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +6 -2
  200. package/mobile/src/content-page-repository/transformImg.ts +1 -1
  201. package/mobile/src/ui-kit/BlockWrapper.tsx +3 -6
  202. package/mobile/src/ui-kit/LinkWrapper/LinkWrapper.tsx +21 -0
  203. package/package.json +1 -1
  204. package/src/BlockRenderer/BlockRendererOptions.ts +0 -2
  205. package/src/BlockRenderer/renderBlock.tsx +7 -3
  206. package/src/components/Calculator/Calculator.example.json +6 -0
  207. package/src/components/Calculator/Calculator.fixture.tsx +6 -0
  208. package/src/components/Calculator/CalculatorContent.ts +16 -1
  209. package/src/components/Calculator/CreditCalculatorForm.tsx +89 -29
  210. package/src/components/Calculator/DepositCalculatorForm.tsx +2 -2
  211. package/src/components/Calculator/constants.ts +1 -0
  212. package/src/components/Calculator/useCreditCalculatorParams.ts +46 -8
  213. package/src/components/Carousel/Carousel.tsx +9 -11
  214. package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +2 -1
  215. package/src/components/CarouselEventCard/CarouselEventCard.tsx +19 -26
  216. package/src/components/CarouselProductCard/CarouselProductCard.tsx +16 -18
  217. package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +15 -20
  218. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +28 -28
  219. package/src/components/VerticalLayout/VerticalLayout.tsx +6 -2
  220. package/src/content-page-repository/transformImg.ts +1 -1
  221. package/src/ui-kit/BlockWrapper.tsx +3 -6
  222. package/src/ui-kit/LinkWrapper/LinkWrapper.tsx +21 -0
@@ -336,14 +336,14 @@
336
336
  transparent: 'bg-transparent text-primary-text',
337
337
  '': '',
338
338
  };
339
- const BlockWrapper = JSX(({ className = '', version = 'primary', block, tag = 'section', role, isTheme = true, extraProps = {}, children, }) => {
339
+ const BlockWrapper = JSX(({ className = '', version = 'primary', isTheme = true, block, tag = 'section', role, children, }) => {
340
340
  const Tag = tag;
341
341
  const ref = useBlockIntersectionObserver(block);
342
342
  const [isHidden, setHidden] = useState(false);
343
343
  useEffect(() => defaultEventBus.subscribe('tab', (event) => {
344
344
  setHidden(Boolean(event.label && block?.labels?.length && !block.labels.includes(event.label)));
345
345
  }), [block]);
346
- return (jsx(Tag, { className: style(groupStyle(Boolean(version && isTheme)), blockStyles[version], isHidden ? 'hidden' : '', className), ...(version && isTheme ? { 'data-ver': version } : {}), ...(block?.anchor ? { id: block.anchor, ref } : {}), role: role, ...extraProps, children: children }));
346
+ return (jsx(Tag, { className: style(groupStyle(Boolean(version && isTheme)), blockStyles[version], isHidden ? 'hidden' : '', className), ...(version && isTheme ? { 'data-ver': version } : {}), ...(block?.anchor ? { id: block.anchor, ref } : {}), role: role, children: children }));
347
347
  });
348
348
  const groupStyle = (isGroup) => (isGroup ? 'group' : '');
349
349
 
@@ -1264,6 +1264,7 @@
1264
1264
  maxMonths: DEFAULT_MAX_MONTHS,
1265
1265
  rate: 0,
1266
1266
  isSalaryClient: true,
1267
+ isPensionClient: false,
1267
1268
  isStateEmployee: true,
1268
1269
  isInsurance: true,
1269
1270
  };
@@ -1554,15 +1555,40 @@
1554
1555
  }
1555
1556
  };
1556
1557
 
1557
- const useCreditCalculatorParams = (userInputParams, sourceBookDir) => {
1558
- const { isInsurance, isSalaryClient, isStateEmployee, moneyValue, monthsValue } = userInputParams;
1558
+ const useCreditCalculatorParams = (userInputParams, sourceBookDir, paramsViewSettings) => {
1559
+ const { moneyValue, monthsValue } = userInputParams;
1559
1560
  const data = useCalculatorParams(sourceBookDir || CREDIT_CALC_DEFAULT_DIR);
1560
- const creditCalculatorSourceBookParams = data?.rows?.find((_) => {
1561
- return (isInsurance === _.isInsurance &&
1562
- isSalaryClient === _.isSalaryClient &&
1563
- isStateEmployee === _.isStateEmployee &&
1564
- checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], _) &&
1565
- checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], _));
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({
1567
+ row,
1568
+ userInputParams,
1569
+ paramKey: 'isSalaryClient',
1570
+ isExclude: isExcludeSalaryClient,
1571
+ }) &&
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));
1566
1592
  }) || DEFAULT_CREDIT_CALCULATOR_PARAMS;
1567
1593
  const { rate } = creditCalculatorSourceBookParams;
1568
1594
  const monthlyPayment = getMonthlyPayment(rate, userInputParams);
@@ -1575,12 +1601,18 @@
1575
1601
  monthlyPayment,
1576
1602
  };
1577
1603
  };
1604
+ const checkRowByParam = ({ row, userInputParams, paramKey, isExclude }) => isExclude || userInputParams[paramKey] === row[paramKey];
1578
1605
 
1579
- const CreditCalculatorForm = JSX(({ className = '', sourceBookDir, buttons, footnote }) => {
1606
+ const CreditCalculatorForm = JSX(({ className = '', sourceBookDir, buttons, footnote, paramsViewSettings }) => {
1580
1607
  const [isAnnuity, toggleIsAnnuity] = useState(false);
1581
- const [isInsurance, toggleIsInsurance] = useState(true);
1582
1608
  const [isSalaryClient, toggleIsSalaryClient] = useState(false);
1609
+ const handleIsSalaryClient = useCallback((_) => toggleIsSalaryClient(_), []);
1583
1610
  const [isStateEmployee, toggleIsStateEmployee] = useState(false);
1611
+ const handleIsStateEmployee = useCallback((_) => toggleIsStateEmployee(_), []);
1612
+ const [isPensionClient, toggleIsPensionClient] = useState(false);
1613
+ const handleIsPensionClient = useCallback((_) => toggleIsPensionClient(_), []);
1614
+ const [isInsurance, toggleIsInsurance] = useState(true);
1615
+ const handleIsInsurance = useCallback((_) => toggleIsInsurance(_), []);
1584
1616
  const [moneyValue, setMoneyValue] = useState(DEFAULT_SUM);
1585
1617
  const handleMoneyValue = useCallback((_) => setMoneyValue(_), []);
1586
1618
  const [monthsValue, setMonthsValue] = useState(DEFAULT_MONTHS);
@@ -1589,17 +1621,27 @@
1589
1621
  isAnnuity,
1590
1622
  isInsurance,
1591
1623
  isSalaryClient,
1624
+ isPensionClient,
1592
1625
  isStateEmployee,
1593
1626
  moneyValue,
1594
1627
  monthsValue,
1595
1628
  };
1596
- const calculatorParams = useCreditCalculatorParams(userInputParams, sourceBookDir);
1597
- return (jsxs("section", { className: style('flex justify-between', className), children: [jsxs("div", { className: "w-[468px]", children: [renderWantedSumInput('Сумма кредита, ₽', { ...calculatorParams, step: 500 }, handleMoneyValue), renderMonthsInput('Срок кредита, месяцев', calculatorParams, handleMonthsValue), jsxs("div", { className: "mt-7", children: [jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0443 \u043D\u0430 \u0441\u0447\u0451\u0442 \u0432 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0435", checked: isSalaryClient, onChange: toggleIsSalaryClient }), jsx(Checkbox, { className: "mt-3", text: "\u0420\u0430\u0431\u043E\u0442\u0430\u044E \u0432 \u0431\u044E\u0434\u0436\u0435\u0442\u043D\u043E\u0439 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", checked: isStateEmployee, onChange: toggleIsStateEmployee }), jsx(Checkbox, { className: "mt-3", text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", checked: isInsurance, onChange: toggleIsInsurance })] })] }), jsx(Rate, { title: "\u0421\u0442\u0430\u0432\u043A\u0430", rate: calculatorParams.rate, rateBlockClassName: "tracking-[-25px]", unit: "%" }), jsxs("div", { className: "w-full max-w-[350px]", children: [jsx(CalculatorValueBlock, { title: 'Ежемесячный платеж', value: calculatorParams.monthlyPayment, postfix: "\u20BD" }), renderPaymentType({
1629
+ const calculatorParams = useCreditCalculatorParams(userInputParams, sourceBookDir, paramsViewSettings);
1630
+ return (jsxs("section", { className: style('flex justify-between', className), children: [jsxs("div", { className: "w-[468px]", children: [renderWantedSumInput('Сумма кредита, ₽', { ...calculatorParams, step: 500 }, handleMoneyValue), renderMonthsInput('Срок кредита, месяцев', calculatorParams, handleMonthsValue), jsx("div", { className: "mt-7", children: renderCreditParamsForm({
1631
+ ...calculatorParams,
1632
+ ...paramsViewSettings,
1633
+ handleIsSalaryClient,
1634
+ handleIsStateEmployee,
1635
+ handleIsPensionClient,
1636
+ handleIsInsurance,
1637
+ }) })] }), renderRate(calculatorParams.rate), jsxs("div", { className: "w-full max-w-[350px]", children: [jsx(CalculatorValueBlock, { title: 'Ежемесячный платеж', value: calculatorParams.monthlyPayment, postfix: "\u20BD" }), renderPaymentType({
1598
1638
  isAnnuity,
1599
1639
  orientation: 'vertical',
1600
1640
  callback: toggleIsAnnuity,
1601
1641
  }), renderButtonsSection(buttons, { className: 'mt-7', isVertical: true }), renderFootnote(footnote)] })] }));
1602
1642
  });
1643
+ const renderRate = (rate) => (jsx(Rate, { title: "\u0421\u0442\u0430\u0432\u043A\u0430", rate: rate, rateBlockClassName: "tracking-[-25px]", unit: "%" }));
1644
+ const renderCreditParamsForm = ({ isSalaryClient, isStateEmployee, isPensionClient, isInsurance, isShowSalaryClient, isShowStateEmployee, isShowPensionClient, isShowInsurance, handleIsSalaryClient, handleIsStateEmployee, handleIsPensionClient, handleIsInsurance, }) => (jsxs("div", { children: [isShowSalaryClient ? (jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0443 \u043D\u0430 \u0441\u0447\u0451\u0442 \u0432 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0435", checked: isSalaryClient, onChange: handleIsSalaryClient })) : null, isShowStateEmployee ? (jsx(Checkbox, { className: "mt-3", text: "\u0420\u0430\u0431\u043E\u0442\u0430\u044E \u0432 \u0431\u044E\u0434\u0436\u0435\u0442\u043D\u043E\u0439 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", checked: isStateEmployee, onChange: handleIsStateEmployee })) : null, isShowPensionClient ? (jsx(Checkbox, { className: "mt-3", text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u043F\u0435\u043D\u0441\u0438\u044E \u043D\u0430 \u043A\u0430\u0440\u0442\u0443 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0430", checked: isPensionClient, onChange: handleIsPensionClient })) : null, isShowInsurance ? (jsx(Checkbox, { className: "mt-3", text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", checked: isInsurance, onChange: handleIsInsurance })) : null] }));
1603
1645
 
1604
1646
  const REMOTE_REGISTRATION = 'remote';
1605
1647
  const OFFICE_REGISTRATION = 'office';
@@ -1796,14 +1838,12 @@
1796
1838
  return (jsxs(BlockWrapper, { className: `p-12 flex flex-col items-center ${className}`, ...rest, children: [title ? jsx(Heading, { className: "max-w-[684px] pb-9", headingType: "h2", title: title }) : null, jsxs("form", { className: "w-[468px]", method: "POST", action: FORM_URL, children: [jsx(CurrencyInput, { name: AMOUNT_KEY, value: value, onChange: handleChange, valid: value === '' || !isDisabled, placeholder: placeholder, label: label }), button?.text ? (jsx("button", { type: "submit", className: `w-full p-4 mt-6 ${buttonStyle} `, disabled: isDisabled, ...link(button), children: button.text })) : null] })] }));
1797
1839
  });
1798
1840
 
1799
- const DEFAULT_SLOT_NAME = null;
1800
-
1801
1841
  const defaultBlockDecorator = ({ blockClassName, block, render }) => render({ blockClassName, block });
1802
1842
 
1803
1843
  const DEFAULT_ANCESTORS = [];
1804
1844
  const defaultStyle = 'col-span-12';
1805
- function renderBlock(block, options) {
1806
- const { key, blockDecorator = defaultBlockDecorator, blocksRegistry = {}, ancestors = DEFAULT_ANCESTORS, className = '', extraProps = {}, } = options;
1845
+ function renderBlock(block, options, { className, ...extraProps } = {}) {
1846
+ const { key, blockDecorator = defaultBlockDecorator, blocksRegistry = {}, ancestors = DEFAULT_ANCESTORS, } = options;
1807
1847
  const { type } = block;
1808
1848
  if (!(type && type in blocksRegistry)) {
1809
1849
  console.warn(`No block with "${type}" is registered`);
@@ -1822,6 +1862,8 @@
1822
1862
  }, key);
1823
1863
  }
1824
1864
 
1865
+ const DEFAULT_SLOT_NAME = null;
1866
+
1825
1867
  const EMPTY_ANCESTORS = [];
1826
1868
  const renderBlocksList = (blocks, { key, ancestors = EMPTY_ANCESTORS, slotName = DEFAULT_SLOT_NAME, renderProps = renderBlock, ...options }) => (blocks || []).map((_, j) => renderProps(_, {
1827
1869
  ...options,
@@ -1994,7 +2036,7 @@
1994
2036
  const renderBlur = (isBlur, scroll) => (scroll.canScrollLeft || scroll.canScrollRight) && isBlur ? (jsxs("div", { children: [jsx("div", { className: style(blurBaseStyle, 'left-0 bg-opacity-from-white') }), jsx("div", { className: style(blurBaseStyle, 'right-0 bg-opacity-to-white') })] })) : null;
1995
2037
 
1996
2038
  const ITEMS_GAP = 4;
1997
- const Carousel = JSX(({ className = '', itemCount, visibleItemCount, isBlur = true, isCyclic = false, arrowsPadded = true, isPadding = true, options, ...rest }) => {
2039
+ const Carousel = JSX(({ className = '', itemCount, visibleItemCount, isBlur = true, isCyclic = false, arrowsPadded = true, isPadding = true, ...rest }) => {
1998
2040
  const { blocks: childBlocks } = rest.block || {};
1999
2041
  const count = itemCount || childBlocks?.length || 0;
2000
2042
  const [activeIndex, setActiveIndex] = useState(Math.floor((visibleItemCount || 0) / 2));
@@ -2005,18 +2047,15 @@
2005
2047
  isCyclic,
2006
2048
  });
2007
2049
  const isBankHistoryCarousel = childBlocks && childBlocks[0]?.type === 'CarouselBankHistoryCard';
2008
- return (jsx(BlockWrapper, { className: style(getPaddingStyle(isPadding), 'group-data-secondary:bg-primary-main group-data-secondary:text-white', className), ...rest, children: jsxs("div", { className: "relative max-w-full", children: [jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: ITEMS_GAP, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: isBankHistoryCarousel
2009
- ? renderChildren({
2010
- ...rest,
2011
- options: {
2012
- ...options,
2013
- extraProps: {
2014
- blocksLength: childBlocks?.length,
2015
- activeIndex: activeIndex,
2016
- },
2017
- },
2018
- })
2019
- : renderChildren({ ...rest, options }) }), jsx(CarouselScrollButtons, { scroll: scroll, isBlur: isBlur, arrowsPadded: arrowsPadded, onScrollLeft: decreaseActiveIndex, onScrollRight: increaseActiveIndex, hasEdgeBlocks: isBankHistoryCarousel, activeIndex: activeIndex, itemCount: count })] }) }));
2050
+ return (jsx(BlockWrapper, { className: style(getPaddingStyle(isPadding), 'group-data-secondary:bg-primary-main group-data-secondary:text-white', className), ...rest, children: jsxs("div", { className: "relative max-w-full", children: [jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: ITEMS_GAP, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: renderChildren({
2051
+ ...rest,
2052
+ renderProps: isBankHistoryCarousel
2053
+ ? (block, options) => renderBlock(block, options, {
2054
+ blocksLength: childBlocks?.length,
2055
+ activeIndex: activeIndex,
2056
+ })
2057
+ : renderBlock,
2058
+ }) }), jsx(CarouselScrollButtons, { scroll: scroll, isBlur: isBlur, arrowsPadded: arrowsPadded, onScrollLeft: decreaseActiveIndex, onScrollRight: increaseActiveIndex, hasEdgeBlocks: isBankHistoryCarousel, activeIndex: activeIndex, itemCount: count })] }) }));
2020
2059
  });
2021
2060
  Carousel.childrenTypes = [
2022
2061
  'CarouselCard',
@@ -2085,7 +2124,14 @@
2085
2124
  white: 'bg-white',
2086
2125
  };
2087
2126
  const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors, ...rest }) => (jsxs(BlockWrapper, { className: `border box-border border-gray p-7 min-w-[392px] h-full flex flex-col justify-left ${className}`, ...rest, children: [image?.src ? jsx(ImgInner, { className: "mb-5 flex justify-center", image: image }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Paragraph, { size: "text-m", align: "text-left", font: "font-light", children: description }) })) : null, colors?.length ? (jsxs("div", { className: "flex mb-4 text-s-light text-secondary-text", children: [jsx("div", { className: "mr-1.5", children: jsx(Text, { children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430: " }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null, renderButtonsSection([button], { buttonClassName: 'mt-5 w-full' })] })));
2088
- const renderColorOption = (color, i) => (jsx("span", { className: `w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
2127
+ const renderColorOption = (color, i) => (jsx("div", { role: "figure", className: `w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
2128
+
2129
+ const LinkWrapper = JSX(({ className = '', href, target, children }) => {
2130
+ const link = useLink();
2131
+ const linkProps = link({ href, target });
2132
+ const Tag = href ? 'a' : 'div';
2133
+ return (jsx(Tag, { className: className, ...(href ? linkProps : {}), children: children }));
2134
+ });
2089
2135
 
2090
2136
  const getIconWithVersion = (icon, version = 'primary') => ({
2091
2137
  ...icon,
@@ -2093,10 +2139,7 @@
2093
2139
  });
2094
2140
 
2095
2141
  const CarouselEventCard = JSX(({ className = '', icon, title, description, href, target, ...rest }) => {
2096
- const link = useLink();
2097
- const adjustedProps = link({ href, target });
2098
- const tagName = href ? 'a' : 'section';
2099
- return (jsxs(BlockWrapper, { className: style('flex flex-col w-[365px]', className), extraProps: adjustedProps, tag: tagName, ...rest, children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-2", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Text, { font: "font-light", size: "text-s", color: "text-secondary-text", children: description }) })) : null] }));
2142
+ return (jsx(BlockWrapper, { className: style('w-[365px]', className), ...rest, children: jsxs(LinkWrapper, { className: "flex flex-col", href: href, target: target, children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-2", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Text, { font: "font-light", size: "text-s", color: "text-secondary-text", children: description }) })) : null] }) }));
2100
2143
  });
2101
2144
 
2102
2145
  const BaseTile = JSX(({ className = '', title = '', buttons, image, children }) => (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, jsxs("div", { className: "flex grow w-full justify-between", children: [jsxs("div", { className: "flex flex-col justify-between w-full", children: [jsx("div", { className: "h-full", children: children }), buttons ? jsx("div", { className: "mt-auto pt-8", children: buttons }) : null] }), image] })] })));
@@ -2162,22 +2205,16 @@
2162
2205
  const List = JSX(({ className = '', hasIndent, isDotted, itemClassName = '', items, listItemSize = 'M' }) => items?.length ? (jsx("section", { className: `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, { className: itemClassName, isDotted: isDotted, size: listItemSize, children: item }, String(i)))) })) : null);
2163
2206
 
2164
2207
  const CarouselProductCard = JSX(({ additionalDescription, align = 'text-center', button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, items = [], target, title, version = 'primary', ...rest }) => {
2165
- const link = useLink();
2166
- const adjustedProps = link({ href, target });
2167
- const tagName = href ? 'a' : 'section';
2168
- return (jsxs(BlockWrapper, { className: style('flex flex-col justify-between items-stretch min-w-[260px] h-full w-full p-6', 'box-border border-solid border border-gray', align, className), extraProps: adjustedProps, tag: tagName, version: version, ...rest, children: [jsxs("div", { className: "flex flex-col h-full", children: [renderImage$3(icon), renderCardTitle(headlineSmallVersion, title), renderDescription$3(description, title), renderItems(items, isDotted, version), renderAdditionalDescription$1(additionalDescription)] }), renderButtonsSection([button], { buttonClassName: 'mt-6 w-full' })] }));
2208
+ return (jsxs(BlockWrapper, { className: style('justify-between min-w-[260px]', 'box-border border-solid border border-gray', align, className), version: version, ...rest, children: [jsxs(LinkWrapper, { className: "p-6", href: href, target: target, children: [renderImage$3(icon), renderCardTitle(headlineSmallVersion, title), renderDescription$3(description, title), renderItems(items, isDotted, version), renderAdditionalDescription$1(additionalDescription)] }), renderButtonsSection([button], { className: 'p-6 pt-0', isVertical: true })] }));
2169
2209
  });
2170
2210
  const renderImage$3 = (image) => (jsxs("div", { className: "flex justify-center", children: [image?.src ? jsx(ImgInner, { className: "mb-5", image: image }) : null, image?.icon ? (jsx(ImgInner, { className: `w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`, image: image, asSVG: true })) : null] }));
2171
- const renderCardTitle = (headlineSmallVersion, title) => title ? jsx(Text, { size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
2211
+ const renderCardTitle = (headlineSmallVersion, title) => title ? (jsx("div", { children: jsx(Text, { size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) })) : null;
2172
2212
  const renderDescription$3 = (description, title) => description ? (jsx("div", { className: title ? 'mt-2' : '', children: jsx(Paragraph, { size: "text-l", children: description }) })) : null;
2173
2213
  const renderAdditionalDescription$1 = (additionalDescription) => additionalDescription ? (jsx("div", { className: "mt-auto", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", children: additionalDescription }) })) : null;
2174
2214
  const renderItems = (items, isDotted, version = 'primary') => items?.length ? (jsx(List, { className: `max-w-[308px] mt-2 text-s ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "text-left", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted })) : null;
2175
2215
 
2176
2216
  const CarouselProgramsCard = JSX(({ className = '', title, icon, list = [], href, target, ...rest }) => {
2177
- const link = useLink();
2178
- const adjustedProps = link({ href, target });
2179
- const tagName = href ? 'a' : 'section';
2180
- return (jsxs(BlockWrapper, { tag: tagName, className: style('border border-gray flex min-w-[536px]', className), extraProps: adjustedProps, ...rest, children: [jsxs("div", { className: "w-[200px] min-w-[200px] self-center", children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null] }), jsxs("div", { className: "p-8 pl-3 w-full", children: [title ? jsx(Heading, { className: " mb-3.5", headingType: "h5", title: title }) : null, list.length ? jsx("div", { className: "flex flex-col gap-3", children: list?.map(renderList$1) }) : null] })] }));
2217
+ return (jsx(BlockWrapper, { className: style('border border-gray min-w-[536px]', className), ...rest, children: jsxs(LinkWrapper, { className: "flex", href: href, target: target, children: [jsxs("div", { className: "w-[200px] min-w-[200px] self-center", children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null] }), jsxs("div", { className: "p-8 pl-3 w-full", children: [title ? jsx(Heading, { className: " mb-3.5", headingType: "h5", title: title }) : null, list.length ? (jsx("div", { className: "flex flex-col gap-3", children: list?.map(renderList$1) })) : null] })] }) }));
2181
2218
  });
2182
2219
  const renderList$1 = (_, i) => (jsxs("div", { className: "break-words", children: [_.title ? jsx("div", { className: `text-h6`, children: _.title }) : null, _.description ? jsx("span", { className: "text-l-light mt-1", children: _.description }) : null] }, String(i)));
2183
2220
 
@@ -2235,10 +2272,7 @@
2235
2272
  const BORDER_STYLE = 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider';
2236
2273
  const setAdditionalIconStyles = (items) => items.length ? 'w-1/2 flex-1 justify-center' : 'w-full justify-end';
2237
2274
  const CarouselRecommendationCard = JSX(({ className = '', description, href, icon, items = [], socialMedia = [], target, title, version = 'primary', ...rest }) => {
2238
- const link = useLink();
2239
- const adjustedProps = link({ href, target });
2240
- const tagName = href ? 'a' : 'section';
2241
- return (jsxs(BlockWrapper, { className: style('relative p-12 min-w-[524px] h-full flex flex-col box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), extraProps: adjustedProps, tag: tagName, version: version, ...rest, children: [jsx("div", { className: "self-center", children: title ? jsx(Heading, { headingType: "h3", as: "h3", className: "mb-8", title: title }) : null }), jsx("div", { className: "mb-5", children: description ? (jsx(Paragraph, { size: "text-xl", font: "font-light", color: "group-data-gray:text-secondary-text", children: description })) : null }), jsxs("div", { className: "flex align-center w-full", children: [jsxs("div", { className: "w-1/2 h-full flex flex-col flex-1 justify-end", children: [items.length ? (jsx(List, { className: "text-xl-light flex flex-col gap-2 pb-16 mb-3", items: items })) : null, socialMedia.length ? jsx(SocialMedia, { className: "pb-0", media: socialMedia }) : null] }), renderIconBlock$1(icon, items)] })] }));
2275
+ return (jsx(BlockWrapper, { className: style('relative p-12 min-w-[524px] h-full flex flex-col box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: jsxs(LinkWrapper, { className: "flex flex-col", href: href, target: target, children: [jsx("div", { className: "self-center", children: title ? jsx(Heading, { headingType: "h3", as: "h3", className: "mb-8", title: title }) : null }), jsx("div", { className: "mb-5", children: description ? (jsx(Paragraph, { size: "text-xl", font: "font-light", color: "group-data-gray:text-secondary-text", children: description })) : null }), jsxs("div", { className: "flex align-center w-full", children: [jsxs("div", { className: "w-1/2 h-full flex flex-col flex-1 justify-end", children: [items.length ? (jsx(List, { className: "text-xl-light flex flex-col gap-2 pb-16 mb-3", items: items })) : null, socialMedia.length ? jsx(SocialMedia, { className: "pb-0", media: socialMedia }) : null] }), renderIconBlock$1(icon, items)] })] }) }));
2242
2276
  });
2243
2277
  const renderIconBlock$1 = (icon, items) => (jsxs("div", { className: style('flex', setAdditionalIconStyles(items)), children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null] }));
2244
2278
 
@@ -4669,9 +4703,12 @@
4669
4703
  center: 'items-center',
4670
4704
  right: 'items-end',
4671
4705
  };
4672
- const VerticalLayout = JSX(({ className = '', gap = '', align = 'stretch', isPadding = false, isInnerPadding = true, version = 'transparent', isTheme = false, options, ...rest }) => {
4706
+ const VerticalLayout = JSX(({ className = '', gap = '', align = 'stretch', isPadding = false, isInnerPadding = true, version = 'transparent', isTheme = false, ...rest }) => {
4673
4707
  const innerPaddingStyle = isInnerPadding ? '' : '!p-0';
4674
- return (jsx(BlockWrapper, { className: style('flex flex-col [&>*]:max-w-full', isPadding ? 'p-12' : '', gapStyles[gap], align && alignStyle[align], className), version: version, isTheme: isTheme, ...rest, children: renderChildren({ ...rest, options: { ...options, className: innerPaddingStyle } }) }));
4708
+ return (jsx(BlockWrapper, { className: style('flex flex-col [&>*]:max-w-full', isPadding ? 'p-12' : '', gapStyles[gap], align && alignStyle[align], className), version: version, isTheme: isTheme, ...rest, children: renderChildren({
4709
+ ...rest,
4710
+ renderProps: (block, options) => renderBlock(block, options, { className: innerPaddingStyle }),
4711
+ }) }));
4675
4712
  });
4676
4713
  VerticalLayout.childrenTypes = [];
4677
4714
 
@@ -4869,7 +4906,7 @@
4869
4906
  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" }) }));
4870
4907
  }
4871
4908
 
4872
- const packageVersion = "0.9.5";
4909
+ const packageVersion = "0.9.7";
4873
4910
 
4874
4911
  exports.Blocks = Blocks;
4875
4912
  exports.ContentPage = ContentPage;