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

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 (226) hide show
  1. package/bin/migration-scripts/0.14.4.js +37 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +55 -42
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/Calculator/CalculatorContent.d.ts +27 -1
  6. package/bundle/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
  7. package/bundle/model/EmptyOptionType.d.ts +1 -1
  8. package/bundle/ui-kit/ClientOnly.d.ts +1 -0
  9. package/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
  10. package/bundle/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
  11. package/bundle/ui-kit/SwipeListControl/isShowDots.mobile.d.ts +1 -0
  12. package/dist/components/Calculator/BonusCalculatorForm.js +1 -1
  13. package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  14. package/dist/components/Calculator/BusinessDepositCalculatorForm.js +2 -2
  15. package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  16. package/dist/components/Calculator/Calculator.js +16 -4
  17. package/dist/components/Calculator/Calculator.js.map +1 -1
  18. package/dist/components/Calculator/CalculatorContent.d.ts +27 -1
  19. package/dist/components/Calculator/CreditCalculatorForm.js +6 -6
  20. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  21. package/dist/components/Calculator/DepositCalculatorForm.js +8 -8
  22. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  23. package/dist/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
  24. package/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -1
  25. package/dist/components/Carousel/Carousel.js +1 -1
  26. package/dist/components/Carousel/Carousel.js.map +1 -1
  27. package/dist/components/ContentPage/ContentPage.js +1 -1
  28. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  29. package/dist/components/Footer/Contacts.js +1 -1
  30. package/dist/components/OfficesAtmsMap/OfficesAtmsMap.js +4 -9
  31. package/dist/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
  32. package/dist/components/StickyBottomMenu/RenderMenuItems.js +1 -2
  33. package/dist/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
  34. package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js +2 -2
  35. package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
  36. package/dist/content-page-repository/transformHTML.js +32 -2
  37. package/dist/content-page-repository/transformHTML.js.map +1 -1
  38. package/dist/model/EmptyOptionType.d.ts +1 -1
  39. package/dist/ui-kit/ClientOnly.d.ts +1 -0
  40. package/dist/ui-kit/ClientOnly.js +7 -0
  41. package/dist/ui-kit/ClientOnly.js.map +1 -0
  42. package/dist/ui-kit/SwipeListControl/SwipeListControl.js +2 -1
  43. package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  44. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
  45. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -2
  46. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  47. package/dist/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
  48. package/dist/ui-kit/SwipeListControl/isShowDots.js +4 -0
  49. package/dist/ui-kit/SwipeListControl/isShowDots.js.map +1 -0
  50. package/dist/ui-kit/SwipeListControl/isShowDots.mobile.d.ts +1 -0
  51. package/dist/ui-kit/SwipeListControl/isShowDots.mobile.js +4 -0
  52. package/dist/ui-kit/SwipeListControl/isShowDots.mobile.js.map +1 -0
  53. package/lib/components/Calculator/BonusCalculatorForm.js +1 -1
  54. package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  55. package/lib/components/Calculator/BusinessDepositCalculatorForm.js +2 -2
  56. package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  57. package/lib/components/Calculator/Calculator.js +16 -4
  58. package/lib/components/Calculator/Calculator.js.map +1 -1
  59. package/lib/components/Calculator/CalculatorContent.d.ts +27 -1
  60. package/lib/components/Calculator/CreditCalculatorForm.js +6 -6
  61. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  62. package/lib/components/Calculator/DepositCalculatorForm.js +8 -8
  63. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  64. package/lib/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
  65. package/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -1
  66. package/lib/components/Carousel/Carousel.js +1 -1
  67. package/lib/components/Carousel/Carousel.js.map +1 -1
  68. package/lib/components/ContentPage/ContentPage.js +1 -1
  69. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  70. package/lib/components/Footer/Contacts.js +1 -1
  71. package/lib/components/OfficesAtmsMap/OfficesAtmsMap.js +4 -9
  72. package/lib/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
  73. package/lib/components/StickyBottomMenu/RenderMenuItems.js +1 -2
  74. package/lib/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
  75. package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js +3 -3
  76. package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
  77. package/lib/components/SwipeListControlBlock/SwipeListControlBlock.fixture.d.ts +1 -0
  78. package/lib/components/SwipeListControlBlock/SwipeListControlBlock.fixture.mobile.d.ts +8 -0
  79. package/lib/content-page-repository/transformHTML.js +9 -2
  80. package/lib/content-page-repository/transformHTML.js.map +1 -1
  81. package/lib/model/EmptyOptionType.d.ts +1 -1
  82. package/lib/ui-kit/ClientOnly.d.ts +1 -0
  83. package/lib/ui-kit/ClientOnly.js +5 -0
  84. package/lib/ui-kit/ClientOnly.js.map +1 -0
  85. package/lib/ui-kit/SwipeListControl/SwipeListControl.js +2 -1
  86. package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  87. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
  88. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -2
  89. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  90. package/lib/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
  91. package/lib/ui-kit/SwipeListControl/isShowDots.js +2 -0
  92. package/lib/ui-kit/SwipeListControl/isShowDots.js.map +1 -0
  93. package/lib/ui-kit/SwipeListControl/isShowDots.mobile.d.ts +1 -0
  94. package/lib/ui-kit/SwipeListControl/isShowDots.mobile.js +2 -0
  95. package/lib/ui-kit/SwipeListControl/isShowDots.mobile.js.map +1 -0
  96. package/mobile/bundle/bundle.umd.js +52 -50
  97. package/mobile/bundle/bundle.umd.min.js +1 -1
  98. package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +27 -1
  99. package/mobile/bundle/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
  100. package/mobile/bundle/model/EmptyOptionType.d.ts +1 -1
  101. package/mobile/bundle/ui-kit/ClientOnly.d.ts +1 -0
  102. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
  103. package/mobile/bundle/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
  104. package/mobile/dist/components/Calculator/BonusCalculatorForm.js +1 -1
  105. package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  106. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +2 -2
  107. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  108. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +27 -1
  109. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +6 -6
  110. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  111. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +8 -8
  112. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  113. package/mobile/dist/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
  114. package/mobile/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -1
  115. package/mobile/dist/components/Carousel/Carousel.js +1 -1
  116. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  117. package/mobile/dist/components/ContentPage/ContentPage.js +1 -1
  118. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  119. package/mobile/dist/components/Footer/Contacts.js +1 -1
  120. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMap.js +4 -9
  121. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
  122. package/mobile/dist/components/StickyBottomMenu/RenderMenuItems.js +1 -2
  123. package/mobile/dist/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
  124. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js +2 -2
  125. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
  126. package/mobile/dist/content-page-repository/transformHTML.js +32 -2
  127. package/mobile/dist/content-page-repository/transformHTML.js.map +1 -1
  128. package/mobile/dist/model/EmptyOptionType.d.ts +1 -1
  129. package/mobile/dist/ui-kit/ClientOnly.d.ts +1 -0
  130. package/mobile/dist/ui-kit/ClientOnly.js +7 -0
  131. package/mobile/dist/ui-kit/ClientOnly.js.map +1 -0
  132. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +2 -1
  133. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  134. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
  135. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -2
  136. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  137. package/mobile/dist/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
  138. package/mobile/dist/ui-kit/SwipeListControl/isShowDots.js +4 -0
  139. package/mobile/dist/ui-kit/SwipeListControl/isShowDots.js.map +1 -0
  140. package/mobile/lib/components/Calculator/BonusCalculatorForm.js +1 -1
  141. package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  142. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +2 -2
  143. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  144. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +27 -1
  145. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +6 -6
  146. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  147. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +8 -8
  148. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  149. package/mobile/lib/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
  150. package/mobile/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -1
  151. package/mobile/lib/components/Carousel/Carousel.js +1 -1
  152. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  153. package/mobile/lib/components/ContentPage/ContentPage.js +1 -1
  154. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  155. package/mobile/lib/components/Footer/Contacts.js +1 -1
  156. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMap.js +4 -9
  157. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
  158. package/mobile/lib/components/StickyBottomMenu/RenderMenuItems.js +1 -2
  159. package/mobile/lib/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
  160. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js +3 -3
  161. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
  162. package/mobile/lib/content-page-repository/transformHTML.js +9 -2
  163. package/mobile/lib/content-page-repository/transformHTML.js.map +1 -1
  164. package/mobile/lib/model/EmptyOptionType.d.ts +1 -1
  165. package/mobile/lib/ui-kit/ClientOnly.d.ts +1 -0
  166. package/mobile/lib/ui-kit/ClientOnly.js +5 -0
  167. package/mobile/lib/ui-kit/ClientOnly.js.map +1 -0
  168. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +2 -1
  169. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  170. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -0
  171. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -2
  172. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  173. package/mobile/lib/ui-kit/SwipeListControl/isShowDots.d.ts +1 -0
  174. package/mobile/lib/ui-kit/SwipeListControl/isShowDots.js +2 -0
  175. package/mobile/lib/ui-kit/SwipeListControl/isShowDots.js.map +1 -0
  176. package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +1 -1
  177. package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +5 -2
  178. package/mobile/src/components/Calculator/Calculator.example.json +1 -0
  179. package/mobile/src/components/Calculator/Calculator.ui.json +8 -0
  180. package/mobile/src/components/Calculator/CalculatorContent.ts +31 -1
  181. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +6 -6
  182. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +8 -8
  183. package/mobile/src/components/Calculator/useBonusCalculatorParams.ts +1 -1
  184. package/mobile/src/components/Carousel/Carousel.tsx +1 -0
  185. package/mobile/src/components/ContentPage/ContentPage.tsx +2 -2
  186. package/mobile/src/components/Footer/Contacts.tsx +1 -1
  187. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMap.tsx +8 -14
  188. package/mobile/src/components/StickyBottomMenu/RenderMenuItems.tsx +5 -11
  189. package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.tsx +6 -4
  190. package/mobile/src/content-page-repository/transformHTML.ts +10 -2
  191. package/mobile/src/model/EmptyOptionType.ts +1 -1
  192. package/mobile/src/ui-kit/ClientOnly.tsx +6 -0
  193. package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +2 -1
  194. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +11 -2
  195. package/mobile/src/ui-kit/SwipeListControl/isShowDots.tsx +1 -0
  196. package/package.json +1 -1
  197. package/src/components/Calculator/BonusCalculatorForm.tsx +1 -1
  198. package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +5 -2
  199. package/src/components/Calculator/Calculator.example.json +1 -0
  200. package/src/components/Calculator/Calculator.tsx +19 -4
  201. package/src/components/Calculator/Calculator.ui.json +8 -0
  202. package/src/components/Calculator/CalculatorContent.ts +31 -1
  203. package/src/components/Calculator/CreditCalculatorForm.tsx +6 -6
  204. package/src/components/Calculator/DepositCalculatorForm.tsx +8 -8
  205. package/src/components/Calculator/useBonusCalculatorParams.ts +1 -1
  206. package/src/components/Carousel/Carousel.tsx +1 -0
  207. package/src/components/ContentPage/ContentPage.tsx +2 -2
  208. package/src/components/Footer/Contacts.tsx +1 -1
  209. package/src/components/OfficesAtmsMap/OfficesAtmsMap.tsx +8 -14
  210. package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +1 -1
  211. package/src/components/StepsBlock/StepsBlock.fixture.tsx +1 -1
  212. package/src/components/StickyBottomMenu/RenderMenuItems.tsx +5 -11
  213. package/src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx +6 -4
  214. package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.mobile.tsx +66 -0
  215. package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.tsx +19 -0
  216. package/src/content-page-repository/transformHTML.ts +10 -2
  217. package/src/model/EmptyOptionType.ts +1 -1
  218. package/src/ui-kit/Button/Button.fixture.tsx +22 -22
  219. package/src/ui-kit/ClientOnly.tsx +6 -0
  220. package/src/ui-kit/HeaderItem/HeaderItem.fixture.tsx +2 -2
  221. package/src/ui-kit/Logo/Logo.fixture.tsx +1 -1
  222. package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +2 -1
  223. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +11 -2
  224. package/src/ui-kit/SwipeListControl/isShowDots.mobile.tsx +1 -0
  225. package/src/ui-kit/SwipeListControl/isShowDots.tsx +1 -0
  226. package/src/ui-kit/TopItem/TopItem.fixture.tsx +2 -2
@@ -1507,13 +1507,13 @@
1507
1507
 
1508
1508
  const BusinessBlock = JSX(({ className, title, cards, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl space-y-3xl", ...rest, children: [jsx(Heading, { headingType: "h3", title: title, className: "text-center" }), jsx("div", { className: "flex gap-lg", children: cards?.length ? cards.map((_, i) => jsx(BusinessCard, { ..._ }, String(i))) : null })] })));
1509
1509
 
1510
- const alignStyleMap = {
1510
+ const alignStyleMap$1 = {
1511
1511
  start: 'justify-start',
1512
1512
  center: 'justify-center',
1513
1513
  end: 'justify-end',
1514
1514
  };
1515
1515
  const ButtonsBlock = JSX(({ buttons, className = '', align, ...rest }) => {
1516
- const alignStyle = align ? style('flex', alignStyleMap[align]) : '';
1516
+ const alignStyle = align ? style('flex', alignStyleMap$1[align]) : '';
1517
1517
  return (jsx(BlockWrapper, { className: style('!bg-transparent', alignStyle, className), defaultPadding: "p-0", ...rest, children: renderButtonsSection(buttons) }));
1518
1518
  });
1519
1519
 
@@ -1687,7 +1687,7 @@
1687
1687
  };
1688
1688
  };
1689
1689
 
1690
- const BonusCalculatorForm = JSX(({ className = '', sourceBookDir = '', buttons, footnote }) => {
1690
+ const BonusCalculatorForm = JSX(({ className = '', sourceBookDir, buttons, footnote }) => {
1691
1691
  const [userInputParams, { field }] = useForm({
1692
1692
  travelExpenseValue: DEFAULT_TRAVEL_MIN_SUM,
1693
1693
  restExpenseValue: DEFAULT_REST_MIN_SUM,
@@ -1856,7 +1856,7 @@
1856
1856
  }
1857
1857
  };
1858
1858
 
1859
- const BusinessDepositCalculatorForm = JSX(({ className = '', sourceBookDir, buttons, footnote, bottomFootnote, isShowDepositeName }) => {
1859
+ const BusinessDepositCalculatorForm = JSX(({ className = '', rateParams, buttons, footnote, bottomFootnote, isShowDepositeName }) => {
1860
1860
  const [userInputParams, { field }] = useForm({
1861
1861
  moneyValue: BUSINESS_DEFAULT_SUM,
1862
1862
  daysValue: BUSINESS_DEFAULT_DAYS,
@@ -1865,7 +1865,7 @@
1865
1865
  isSmallBusiness: false,
1866
1866
  isMonthlyInterestPayment: false,
1867
1867
  });
1868
- const calculatorParams = useBusinessDepositCalculatorParams(userInputParams, sourceBookDir);
1868
+ const calculatorParams = useBusinessDepositCalculatorParams(userInputParams, rateParams?.sourceBookDir);
1869
1869
  const { income, finalSum, rate, isUnavailableByTerm, depositeName } = calculatorParams;
1870
1870
  return (jsxs("section", { className: style('flex flex-col justify-between @5xl:flex-row gap-m', className), children: [jsxs("div", { className: "flex flex-col gap-y-m sm:max-w-md gap-2xl", children: [renderWantedSumInput({
1871
1871
  title: 'Сумма, ₽',
@@ -1898,6 +1898,15 @@
1898
1898
  const renderMonthsInput = ({ min = 0, max = 0, availableMonths, ...rest }) => (jsx(InputRange, { items: [`От ${monthText(min)}`, `До ${monthText(max)}`], step: STEP_MONTHS, ...(availableMonths?.length ? { list: availableMonths } : { min, max }), ...rest }));
1899
1899
  const monthText = (month) => `${month} ${Number(month) % 10 === 1 ? 'месяца' : 'месяцев'}`;
1900
1900
 
1901
+ const renderPaymentType = (props) => renderBinaryRadioButtonGroup({
1902
+ ...props,
1903
+ radioGroupClassName: 'sm:flex-col',
1904
+ items: [
1905
+ { id: 'annuity', text: 'Аннуитетный' },
1906
+ { id: 'differential', text: 'Дифференцированный' },
1907
+ ],
1908
+ });
1909
+
1901
1910
  const checkCreditSourceBookRowCommonParams = (props) => checkRowParam$1({
1902
1911
  ...props,
1903
1912
  fieldKey: 'isSalaryClient',
@@ -1994,15 +2003,6 @@
1994
2003
  }), [userInputParams, data]);
1995
2004
  };
1996
2005
 
1997
- const renderPaymentType = (props) => renderBinaryRadioButtonGroup({
1998
- ...props,
1999
- radioGroupClassName: 'sm:flex-col',
2000
- items: [
2001
- { id: 'annuity', text: 'Аннуитетный' },
2002
- { id: 'differential', text: 'Дифференцированный' },
2003
- ],
2004
- });
2005
-
2006
2006
  const CreditCalculatorForm = JSX(({ className, sourceBookDir, buttons, footnote, paramsViewSettings, isMobile }) => {
2007
2007
  const [userInputParams, { field }] = useForm({
2008
2008
  isAnnuity: true,
@@ -2038,6 +2038,14 @@
2038
2038
  });
2039
2039
  const renderCreditParamsForm$1 = (params, field) => (jsxs("div", { className: "flex flex-col gap-y-2xl", children: [params.isShowSalaryClient ? (jsx(Checkbox, { text: `Получаю зарплату на счёт\nв Россельхозбанке`, ...field('isSalaryClient'), value: params.isSalaryClient, className: "whitespace-pre-line sm:whitespace-normal" })) : null, params.isShowStateEmployee ? (jsx(Checkbox, { 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", ...field('isStateEmployee'), value: params.isStateEmployee })) : null, params.isShowPensionClient ? (jsx(Checkbox, { 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", ...field('isPensionClient'), value: params.isPensionClient })) : null, params.isShowInsurance ? (jsx(Checkbox, { 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", ...field('isInsurance'), value: params.isInsurance })) : null] }));
2040
2040
 
2041
+ const renderRegistrationType = (props) => renderBinaryRadioButtonGroup({
2042
+ ...props,
2043
+ items: [
2044
+ { id: 'remote', text: 'Дистанционно' },
2045
+ { id: 'office', text: 'Офис Банка' },
2046
+ ],
2047
+ });
2048
+
2041
2049
  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);
2042
2050
 
2043
2051
  const useDepositCalculatorParams = (userInputParams, sourceBookDir, paramsViewSettings) => {
@@ -2092,14 +2100,6 @@
2092
2100
  const checkRowByParam = ({ row, userInputParams, paramKey, isExclude }) => isExclude || userInputParams[paramKey] === row[paramKey];
2093
2101
  const getMiddleMonth = (minMonths, maxMonths) => minMonths + Math.round((maxMonths - minMonths) / 2);
2094
2102
 
2095
- const renderRegistrationType = (props) => renderBinaryRadioButtonGroup({
2096
- ...props,
2097
- items: [
2098
- { id: 'remote', text: 'Дистанционно' },
2099
- { id: 'office', text: 'Офис Банка' },
2100
- ],
2101
- });
2102
-
2103
2103
  const DepositCalculatorForm = JSX(({ className, sourceBookDir, buttons, footnote, paramsViewSettings }) => {
2104
2104
  const [userInputParams, { field }] = useForm({
2105
2105
  moneyValue: DEPOSIT_DEFAULT_SUM,
@@ -2280,7 +2280,12 @@
2280
2280
  return (jsx("section", { className: "box-border relative bg-white flex shrink-0 self-start basis-full", role: "listitem", children: jsxs("div", { className: "box-border p-4xl w-full space-y-xl", children: [block?.title ? jsx(Heading, { className: "text-center", title: block.title }) : null, jsx(EmbeddedBlock, { ...block })] }) }, String(i)));
2281
2281
  };
2282
2282
 
2283
- const Calculator = JSX(({ className = '', calculatorTabs = [], ...rest }) => {
2283
+ const alignStyleMap = {
2284
+ start: 'justify-start',
2285
+ center: 'justify-center',
2286
+ end: 'justify-end',
2287
+ };
2288
+ const Calculator = JSX(({ className = '', tabAlign, calculatorTabs = [], ...rest }) => {
2284
2289
  const tabsNav = calculatorTabs.map((_) => _.nav || {});
2285
2290
  const calculatorBlocks = calculatorTabs.map(({ calculatorBlock }) => calculatorBlock || {});
2286
2291
  const [slideIndexShift, setSlideIndexShift] = useState(0);
@@ -2291,7 +2296,13 @@
2291
2296
  visibleItemCount: COLUMNS_FOR_SCROLL,
2292
2297
  });
2293
2298
  return (jsxs(BlockWrapper, { className: style('box-border overflow-hidden relative', className), defaultPadding: "p-0", ...rest, children: [jsxs("div", { className: "bg-white", children: [tabsNav.length > 1
2294
- ? renderTabs$1({ activeIndex, tabsNav, slideIndexShift, onClick: handleSlideIndexShift })
2299
+ ? renderTabs$1({
2300
+ activeIndex,
2301
+ tabsNav,
2302
+ tabAlign,
2303
+ slideIndexShift,
2304
+ onClick: handleSlideIndexShift,
2305
+ })
2295
2306
  : null, renderArrows({
2296
2307
  ...controls,
2297
2308
  btnClass: ['left-3', 'right-3'],
@@ -2314,9 +2325,10 @@
2314
2325
  iconVersion: iconVersion ?? activeIconStyle,
2315
2326
  }, width: "24", height: "24" }), jsxs("div", { className: "border-0", children: [jsx("div", { className: btnTitleClassName, children: tab?.title }), jsx("div", { className: btnDescClassName, children: tab.description })] })] }, String(i)));
2316
2327
  }
2317
- function renderTabs$1({ activeIndex, tabsNav, slideIndexShift, onClick }) {
2328
+ function renderTabs$1({ activeIndex, tabsNav, tabAlign, slideIndexShift, onClick }) {
2318
2329
  const CARD_SHIFT = 388;
2319
- return (jsxs("div", { children: [jsx("div", { style: { transform: `translateX(-${activeIndex * CARD_SHIFT}px)` }, className: "flex flex-col justify-end items-center h-32 pt-4xl box-border duration-1000", children: jsx("div", { className: "w-full flex flex-nowrap items-end gap-xs", children: tabsNav.map((tab, i) => renderNavButton$3({
2330
+ const alignStyle = tabAlign ? alignStyleMap[tabAlign] : '';
2331
+ return (jsxs("div", { children: [jsx("div", { style: { transform: `translateX(-${activeIndex * CARD_SHIFT}px)` }, className: "flex flex-col justify-end items-center h-32 pt-4xl box-border duration-1000", children: jsx("div", { className: style('w-full flex flex-nowrap items-end gap-xs', alignStyle), children: tabsNav.map((tab, i) => renderNavButton$3({
2320
2332
  tab,
2321
2333
  i,
2322
2334
  isActive: Boolean(i === slideIndexShift),
@@ -2433,7 +2445,7 @@
2433
2445
  };
2434
2446
  const dotStyle = 'cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white';
2435
2447
  const inactiveDotStyle = 'w-2 h-2 opacity-30';
2436
- const SwipeListControlDots = JSX(({ containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list', version }) => {
2448
+ const SwipeListControlDots = JSX(({ className = '', containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list', version, }) => {
2437
2449
  const handleClick = (idx) => {
2438
2450
  if (idx !== activeIndex && containerRef?.current) {
2439
2451
  containerRef.current.children[idx]?.scrollIntoView({
@@ -2442,7 +2454,7 @@
2442
2454
  });
2443
2455
  }
2444
2456
  };
2445
- return dotCount ? (jsx("div", { className: style('flex gap-xs @lg:hidden', containerStyles[listType], version ? 'group' : ''), ...(version ? { 'data-ver': version } : {}), children: new Array(dotCount).fill(null).map((_, idx) => (jsx("div", { className: `${dotStyle} ${idx === activeIndex ? activeDotStyles[listType] : inactiveDotStyle}`, role: "button", "aria-hidden": true, onClick: () => handleClick(idx) }, String(idx)))) })) : null;
2457
+ return dotCount ? (jsx("div", { className: style('flex gap-xs', containerStyles[listType], version ? 'group' : '', className), ...(version ? { 'data-ver': version } : {}), children: new Array(dotCount).fill(null).map((_, idx) => (jsx("div", { className: `${dotStyle} ${idx === activeIndex ? activeDotStyles[listType] : inactiveDotStyle}`, role: "button", "aria-hidden": true, onClick: () => handleClick(idx) }, String(idx)))) })) : null;
2446
2458
  });
2447
2459
 
2448
2460
  const areArraysEqual = (as, bs) => as === bs || Boolean(as && bs && as?.length === bs?.length && as.every((_, i) => _ === bs[i]));
@@ -2640,7 +2652,7 @@
2640
2652
  const [dotsActiveIndex] = scroll.visibleIndicesRange;
2641
2653
  // TODO Remove
2642
2654
  const isBankHistoryCarousel = childBlocks && childBlocks[0]?.type === 'CarouselBankHistoryCard';
2643
- return (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [jsxs("div", { className: style(isAlignCenter ? 'flex justify-center' : '', 'relative max-w-full'), children: [jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: isGap ? ITEMS_GAP : undefined, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: renderCarouselCards({ noCardBorder, activeIndex, cardSize, ...rest }) }), jsx(CarouselScrollButtons, { scroll: scroll, arrowsPadded: arrowsPadded, onScrollLeft: decreaseActiveIndex, onScrollRight: increaseActiveIndex, hasEdgeBlocks: isBankHistoryCarousel, activeIndex: activeIndex, itemCount: count })] }), jsx(SwipeListControlDots, { containerRef: containerRef, activeIndex: dotsActiveIndex, dotCount: count, listType: "horizontal-list" })] }));
2655
+ return (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [jsxs("div", { className: style(isAlignCenter ? 'flex justify-center' : '', 'relative max-w-full'), children: [jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: isGap ? ITEMS_GAP : undefined, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: renderCarouselCards({ noCardBorder, activeIndex, cardSize, ...rest }) }), jsx(CarouselScrollButtons, { scroll: scroll, arrowsPadded: arrowsPadded, onScrollLeft: decreaseActiveIndex, onScrollRight: increaseActiveIndex, hasEdgeBlocks: isBankHistoryCarousel, activeIndex: activeIndex, itemCount: count })] }), jsx(SwipeListControlDots, { className: "@lg:hidden", containerRef: containerRef, activeIndex: dotsActiveIndex, dotCount: count, listType: "horizontal-list" })] }));
2644
2656
  });
2645
2657
  Carousel.childrenTypes = [
2646
2658
  'CarouselCard',
@@ -3537,7 +3549,7 @@
3537
3549
  });
3538
3550
  const isQueryLongEnough = (_) => _ && _.length >= MIN_QUERY_LEN;
3539
3551
 
3540
- const Contacts = JSX(({ className = '', items }) => (jsxs("div", { className: className, children: [items?.length ? items.map(renderContactsGroup) : null, jsx(Button, { version: "primary", className: "w-full", href: "https://www.rshb.ru/feedback/question/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })] })));
3552
+ const Contacts = JSX(({ className = '', items }) => (jsxs("div", { className: className, children: [items?.length ? items.map(renderContactsGroup) : null, jsx(Button, { version: "primary", className: "w-full", href: "https://old.rshb.ru/feedback/question/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })] })));
3541
3553
  const renderContactsGroup = (item, i) => (jsxs("div", { className: "mb-m", children: [jsx("div", { className: "mb-m", children: jsx(Text, { size: "text-l", font: "font-medium", children: item?.title }) }), jsx("div", { children: item.items?.map(renderContact) })] }, String(i)));
3542
3554
  const renderContact = (item, index) => (jsxs("div", { className: "mb-m", children: [jsx("div", { children: renderText(item.type, item.text) }), jsx("div", { className: "mt-2xs text-s font-light text-secondary-text", children: item.description })] }, String(index)));
3543
3555
  const renderText = (type, text = '') => {
@@ -4189,6 +4201,11 @@
4189
4201
  MortgageFiltration.childrenTypes = ['ProductTile'];
4190
4202
  MortgageFiltration.childSchema = (content) => content?.filtrationSchema || {};
4191
4203
 
4204
+ const isSSR = () => Boolean(typeof globalThis.process === 'object' && globalThis.process && globalThis.process.version);
4205
+
4206
+ const isClient = !isSSR();
4207
+ const ClientOnly = JSX(({ children }) => (isClient ? children : null));
4208
+
4192
4209
  const styles$2 = {
4193
4210
  focus: 'focus:border-primary-text focus:border',
4194
4211
  hover: 'hover:bg-primary-hover',
@@ -4458,11 +4475,9 @@
4458
4475
  workAllTime: 'Круглосуточно',
4459
4476
  billAcceptorEnable: 'Прием наличных',
4460
4477
  };
4461
- const FILTRATION_BRANCHES_PREDICATES = {
4478
+ const FILTRATION_PREDICATES = {
4462
4479
  safeBoxCaseVolumes: (item) => Boolean(item.safeBoxCaseVolumes),
4463
4480
  workingSaturday: (item) => Boolean(item.workSchedule?.workingSaturday),
4464
- };
4465
- const FILTRATION_ATMS_PREDICATES = {
4466
4481
  terminalTypeAtms: (item) => item.terminalType?.toLowerCase() === 'банкомат',
4467
4482
  terminalTypeTerm: (item) => item.terminalType?.toLowerCase() === 'терминал',
4468
4483
  workAllTime: (item) => item.workTime?.toLowerCase() === 'круглосуточно',
@@ -4480,16 +4495,12 @@
4480
4495
  const points = filteredOfficesAtmsData
4481
4496
  .map((_) => [_.gpsLatitude, _.gpsLongitude].filter(Boolean))
4482
4497
  .filter((_) => _ && _.length === 2);
4483
- return (jsxs(BlockWrapper, { version: "transparent", className: style('grid grid-cols-12 gap-1', className), defaultPadding: "p-0", ...rest, children: [jsxs("div", { className: "col-span-12 bg-white", children: [jsxs("div", { className: "pt-6xl px-6xl", children: [jsxs("div", { className: "flex gap-2 pb-2xl", children: [jsx(Heading, { headingType: "h2", children: title }), lengthOfficesAtms ? (jsx(Text, { size: "text-h2", color: "text-secondary-text", children: `(${lengthOfficesAtms})` })) : null] }), data && 'description' in data ? renderDescriptionBlock$1(data) : null, renderFiltrationForm(Object.keys(initialState), { field, reset })] }), jsx("div", { className: "h-[600px]", children: jsx(YandexMap, { points: points, className: "h-full" }) })] }), filteredOfficesAtmsData.map(dataType === 'offices' ? renderOfficeCard : renderAtmCard)] }));
4498
+ return (jsxs(BlockWrapper, { version: "transparent", className: style('grid grid-cols-12 gap-1', className), defaultPadding: "p-0", ...rest, children: [jsxs("div", { className: "col-span-12 bg-white", children: [jsxs("div", { className: "pt-6xl px-6xl", children: [jsxs("div", { className: "flex gap-2 pb-2xl", children: [jsx(Heading, { headingType: "h2", children: title }), lengthOfficesAtms ? (jsx(Text, { size: "text-h2", color: "text-secondary-text", children: `(${lengthOfficesAtms})` })) : null] }), data && 'description' in data ? renderDescriptionBlock$1(data) : null, renderFiltrationForm(Object.keys(initialState), { field, reset })] }), jsx("div", { className: "h-[600px]", children: jsx(ClientOnly, { children: jsx(YandexMap, { points: points, className: "h-full" }) }) })] }), filteredOfficesAtmsData.map(dataType === 'offices' ? renderOfficeCard : renderAtmCard)] }));
4484
4499
  });
4485
4500
  const filterOfficesAtms = (data, filtrationState) => {
4486
4501
  const truthyFilters = Object.keys(filtrationState).filter((key) => filtrationState[key]);
4487
- return 'name' in data
4488
- ? data.filter(filterOffices(truthyFilters))
4489
- : data.filter(filterAtms(truthyFilters));
4502
+ return data.filter((item) => truthyFilters.every((filterName) => FILTRATION_PREDICATES[filterName](item)));
4490
4503
  };
4491
- const filterOffices = (filters) => (item) => filters.every((filterName) => FILTRATION_BRANCHES_PREDICATES[filterName](item));
4492
- const filterAtms = (filters) => (item) => filters.every((filterName) => FILTRATION_ATMS_PREDICATES[filterName](item));
4493
4504
  const getTitle = (name = '', dataType = 'offices') => dataType === 'offices' ? `Офисы филиала ${name}` : `Банкоматы филиала ${name}`;
4494
4505
  const renderFiltrationForm = (filters, { field, reset }) => (jsxs("div", { className: "pb-2xl", children: [filters?.length ? (jsx("div", { className: "flex flex-wrap gap-3xl pb-2xl", children: filters.map((key) => (jsx(Checkbox, { text: FILTRATION_LABELS[key], ...field(key) }, key))) })) : null, jsx(Button, { version: "transparent", className: "text-secondary-text [&>*]:p-0", onClick: reset, text: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440", appendRight: jsx(Icon, { name: "CloseIcon", width: "16", height: "16" }) })] }));
4495
4506
  const renderDescriptionBlock$1 = ({ description, list }) => (jsxs("div", { className: "p-xl mb-2xl border border-gray rounded-md", children: [jsx(Paragraph, { size: "text-l", font: "font-light", children: description }), list?.length ? (jsx("div", { className: "flex gap-2xl flex-wrap pt-xs", children: list.map((item, i) => (jsxs("div", { className: "flex gap-xs items-center", children: [item?.image ? jsx(Img, { image: item.image }) : null, item?.text ? (jsx(Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] }));
@@ -4788,6 +4799,8 @@
4788
4799
 
4789
4800
  const StickyBottomMenu = JSX(() => jsx("div", {})); // DO not remove "<div></div>". Required to pass tests. With "null" it's falling.
4790
4801
 
4802
+ const isShowDots = false;
4803
+
4791
4804
  const DEFAULT_GAP = 14;
4792
4805
  /*
4793
4806
  Horizontal padding used on a container above SwipeListControl.
@@ -4795,7 +4808,7 @@
4795
4808
  and get rid of a clipping effect caused by overflow: hidden.
4796
4809
  */
4797
4810
  const DEFAULT_PADDING = 16;
4798
- const SwipeListControl = JSX(({ className, version, gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots = true, minHeight, children, onVisibleIndicesChange, listType = 'horizontal-list', }) => {
4811
+ const SwipeListControl = JSX(({ className, version, gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots = isShowDots, minHeight, children, onVisibleIndicesChange, listType = 'horizontal-list', }) => {
4799
4812
  const itemCount = Array.isArray(children) ? children.length : 0;
4800
4813
  const [containerRef, scroll] = useSwipeListScroll({
4801
4814
  itemCount,
@@ -5358,7 +5371,7 @@
5358
5371
  parent: data,
5359
5372
  };
5360
5373
  useBlockRouterProvider();
5361
- return (jsxs("div", { "data-theme": colorPalette, children: [jsxs("section", { className: style('relative @container', pageStyle, className), children: [slots?.header ? (jsx("div", { className: "relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.header, { ...options, slotName: 'header' }) })) : null, jsxs("div", { className: "container space-y-px @lg:space-y-0 @lg:grid @lg:grid-cols-12 @lg:gap-2xs", children: [renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } }), renderBlocksList(slots?.footer, { ...options, slotName: 'footer' })] }), likeControl ? renderLikeControl() : null] }), jsx(StickyBottomMenu, {}), jsx(DialogManager, {}), jsx(PopupManager, {}), jsx(CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
5374
+ return (jsxs("div", { className: "@container", "data-theme": colorPalette, children: [jsxs("section", { className: style('relative', pageStyle, className), children: [slots?.header ? (jsx("div", { className: "relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.header, { ...options, slotName: 'header' }) })) : null, jsxs("div", { className: "container space-y-px @lg:space-y-0 @lg:grid @lg:grid-cols-12 @lg:gap-2xs", children: [renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } }), renderBlocksList(slots?.footer, { ...options, slotName: 'footer' })] }), likeControl ? renderLikeControl() : null] }), jsx(StickyBottomMenu, {}), jsx(DialogManager, {}), jsx(PopupManager, {}), jsx(CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
5362
5375
  });
5363
5376
  ContentPage.childrenTypes = [];
5364
5377
  ContentPage.slots = () => ['header', 'footer', 'StickyBottomMenu'];
@@ -5366,7 +5379,7 @@
5366
5379
  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" }) }));
5367
5380
  }
5368
5381
 
5369
- const packageVersion = "0.14.2";
5382
+ const packageVersion = "0.14.4";
5370
5383
 
5371
5384
  exports.Blocks = Blocks;
5372
5385
  exports.ContentPage = ContentPage;