@redneckz/wildless-cms-uni-blocks 0.8.19 → 0.8.21

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 (266) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +87 -44
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  5. package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  6. package/bundle/components/ApplicationForm/renderSubmitButton.d.ts +2 -2
  7. package/bundle/components/Calculator/CreditCalculatorForm.d.ts +0 -2
  8. package/bundle/components/Calculator/constants.d.ts +2 -2
  9. package/bundle/components/Calculator/renderInterestPayment.d.ts +9 -1
  10. package/bundle/components/Calculator/renderPaymentType.d.ts +12 -0
  11. package/bundle/components/Calculator/renderRegistrationType.d.ts +10 -0
  12. package/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
  13. package/bundle/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
  14. package/bundle/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
  15. package/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
  16. package/dist/api/CorporateLeadAPI.js +1 -1
  17. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +2 -2
  18. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  19. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  20. package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  21. package/dist/components/ApplicationForm/renderBankOffices.js +1 -1
  22. package/dist/components/ApplicationForm/renderBankOffices.js.map +1 -1
  23. package/dist/components/ApplicationForm/renderSelects.js +2 -2
  24. package/dist/components/ApplicationForm/renderSelects.js.map +1 -1
  25. package/dist/components/ApplicationForm/renderSubmitButton.d.ts +2 -2
  26. package/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
  27. package/dist/components/Calculator/BusinessDepositCalculatorForm.js +7 -2
  28. package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  29. package/dist/components/Calculator/CreditCalculatorForm.d.ts +0 -2
  30. package/dist/components/Calculator/CreditCalculatorForm.js +7 -15
  31. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  32. package/dist/components/Calculator/DepositCalculatorForm.js +13 -1
  33. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  34. package/dist/components/Calculator/constants.d.ts +2 -2
  35. package/dist/components/Calculator/constants.js +6 -7
  36. package/dist/components/Calculator/constants.js.map +1 -1
  37. package/dist/components/Calculator/rangeHelpers.js +1 -1
  38. package/dist/components/Calculator/rangeHelpers.js.map +1 -1
  39. package/dist/components/Calculator/renderInterestPayment.d.ts +9 -1
  40. package/dist/components/Calculator/renderInterestPayment.js +2 -2
  41. package/dist/components/Calculator/renderInterestPayment.js.map +1 -1
  42. package/dist/components/Calculator/renderPaymentType.d.ts +12 -0
  43. package/dist/components/Calculator/renderPaymentType.js +22 -0
  44. package/dist/components/Calculator/renderPaymentType.js.map +1 -0
  45. package/dist/components/Calculator/renderRegistrationType.d.ts +10 -0
  46. package/dist/components/Calculator/renderRegistrationType.js +22 -0
  47. package/dist/components/Calculator/renderRegistrationType.js.map +1 -0
  48. package/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
  49. package/dist/components/Calculator/useBusinessDepositCalculatorParams.js +1 -1
  50. package/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  51. package/dist/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
  52. package/dist/components/Calculator/useCreditCalculatorParams.js +2 -4
  53. package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  54. package/dist/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
  55. package/dist/components/Calculator/useDepositCalculatorParams.js +2 -1
  56. package/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  57. package/dist/components/Footer/Contacts.js +1 -1
  58. package/dist/components/Footer/Contacts.js.map +1 -1
  59. package/dist/components/Footer/Sitemap.js +7 -5
  60. package/dist/components/Footer/Sitemap.js.map +1 -1
  61. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
  62. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +5 -1
  63. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
  64. package/lib/api/CorporateLeadAPI.js +1 -1
  65. package/lib/common.css +1 -1
  66. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +2 -2
  67. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  68. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  69. package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  70. package/lib/components/ApplicationForm/renderBankOffices.js +1 -1
  71. package/lib/components/ApplicationForm/renderBankOffices.js.map +1 -1
  72. package/lib/components/ApplicationForm/renderSelects.js +2 -2
  73. package/lib/components/ApplicationForm/renderSelects.js.map +1 -1
  74. package/lib/components/ApplicationForm/renderSubmitButton.d.ts +2 -2
  75. package/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
  76. package/lib/components/Calculator/BusinessDepositCalculatorForm.js +7 -2
  77. package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  78. package/lib/components/Calculator/CreditCalculatorForm.d.ts +0 -2
  79. package/lib/components/Calculator/CreditCalculatorForm.js +6 -14
  80. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  81. package/lib/components/Calculator/DepositCalculatorForm.js +13 -1
  82. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  83. package/lib/components/Calculator/constants.d.ts +2 -2
  84. package/lib/components/Calculator/constants.js +6 -7
  85. package/lib/components/Calculator/constants.js.map +1 -1
  86. package/lib/components/Calculator/rangeHelpers.js +1 -1
  87. package/lib/components/Calculator/rangeHelpers.js.map +1 -1
  88. package/lib/components/Calculator/renderInterestPayment.d.ts +9 -1
  89. package/lib/components/Calculator/renderInterestPayment.js +2 -2
  90. package/lib/components/Calculator/renderInterestPayment.js.map +1 -1
  91. package/lib/components/Calculator/renderPaymentType.d.ts +12 -0
  92. package/lib/components/Calculator/renderPaymentType.js +19 -0
  93. package/lib/components/Calculator/renderPaymentType.js.map +1 -0
  94. package/lib/components/Calculator/renderRegistrationType.d.ts +10 -0
  95. package/lib/components/Calculator/renderRegistrationType.js +19 -0
  96. package/lib/components/Calculator/renderRegistrationType.js.map +1 -0
  97. package/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
  98. package/lib/components/Calculator/useBusinessDepositCalculatorParams.js +1 -1
  99. package/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  100. package/lib/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
  101. package/lib/components/Calculator/useCreditCalculatorParams.js +2 -4
  102. package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  103. package/lib/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
  104. package/lib/components/Calculator/useDepositCalculatorParams.js +2 -1
  105. package/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  106. package/lib/components/Footer/Contacts.js +1 -1
  107. package/lib/components/Footer/Contacts.js.map +1 -1
  108. package/lib/components/Footer/Sitemap.js +7 -5
  109. package/lib/components/Footer/Sitemap.js.map +1 -1
  110. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
  111. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +5 -1
  112. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
  113. package/mobile/bundle/bundle.umd.js +2 -2
  114. package/mobile/bundle/bundle.umd.min.js +1 -1
  115. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  116. package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  117. package/mobile/bundle/components/ApplicationForm/renderSubmitButton.d.ts +2 -2
  118. package/mobile/bundle/components/Calculator/CreditCalculatorForm.d.ts +0 -2
  119. package/mobile/bundle/components/Calculator/constants.d.ts +2 -2
  120. package/mobile/bundle/components/Calculator/renderInterestPayment.d.ts +9 -1
  121. package/mobile/bundle/components/Calculator/renderPaymentType.d.ts +12 -0
  122. package/mobile/bundle/components/Calculator/renderRegistrationType.d.ts +10 -0
  123. package/mobile/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
  124. package/mobile/bundle/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
  125. package/mobile/bundle/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
  126. package/mobile/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
  127. package/mobile/dist/api/CorporateLeadAPI.js +1 -1
  128. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +2 -2
  129. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  130. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  131. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  132. package/mobile/dist/components/ApplicationForm/renderBankOffices.js +1 -1
  133. package/mobile/dist/components/ApplicationForm/renderBankOffices.js.map +1 -1
  134. package/mobile/dist/components/ApplicationForm/renderSelects.js +2 -2
  135. package/mobile/dist/components/ApplicationForm/renderSelects.js.map +1 -1
  136. package/mobile/dist/components/ApplicationForm/renderSubmitButton.d.ts +2 -2
  137. package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
  138. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +7 -2
  139. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  140. package/mobile/dist/components/Calculator/CreditCalculatorForm.d.ts +0 -2
  141. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +7 -15
  142. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  143. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +13 -1
  144. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  145. package/mobile/dist/components/Calculator/constants.d.ts +2 -2
  146. package/mobile/dist/components/Calculator/constants.js +6 -7
  147. package/mobile/dist/components/Calculator/constants.js.map +1 -1
  148. package/mobile/dist/components/Calculator/rangeHelpers.js +1 -1
  149. package/mobile/dist/components/Calculator/rangeHelpers.js.map +1 -1
  150. package/mobile/dist/components/Calculator/renderInterestPayment.d.ts +9 -1
  151. package/mobile/dist/components/Calculator/renderInterestPayment.js +2 -2
  152. package/mobile/dist/components/Calculator/renderInterestPayment.js.map +1 -1
  153. package/mobile/dist/components/Calculator/renderPaymentType.d.ts +12 -0
  154. package/mobile/dist/components/Calculator/renderPaymentType.js +22 -0
  155. package/mobile/dist/components/Calculator/renderPaymentType.js.map +1 -0
  156. package/mobile/dist/components/Calculator/renderRegistrationType.d.ts +10 -0
  157. package/mobile/dist/components/Calculator/renderRegistrationType.js +22 -0
  158. package/mobile/dist/components/Calculator/renderRegistrationType.js.map +1 -0
  159. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
  160. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js +1 -1
  161. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  162. package/mobile/dist/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
  163. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +2 -4
  164. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  165. package/mobile/dist/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
  166. package/mobile/dist/components/Calculator/useDepositCalculatorParams.js +2 -1
  167. package/mobile/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  168. package/mobile/dist/components/Footer/Contacts.js +1 -1
  169. package/mobile/dist/components/Footer/Contacts.js.map +1 -1
  170. package/mobile/dist/components/Footer/Sitemap.js +7 -5
  171. package/mobile/dist/components/Footer/Sitemap.js.map +1 -1
  172. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
  173. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +5 -1
  174. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
  175. package/mobile/lib/api/CorporateLeadAPI.js +1 -1
  176. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +2 -2
  177. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  178. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  179. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  180. package/mobile/lib/components/ApplicationForm/renderBankOffices.js +1 -1
  181. package/mobile/lib/components/ApplicationForm/renderBankOffices.js.map +1 -1
  182. package/mobile/lib/components/ApplicationForm/renderSelects.js +2 -2
  183. package/mobile/lib/components/ApplicationForm/renderSelects.js.map +1 -1
  184. package/mobile/lib/components/ApplicationForm/renderSubmitButton.d.ts +2 -2
  185. package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
  186. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +7 -2
  187. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  188. package/mobile/lib/components/Calculator/CreditCalculatorForm.d.ts +0 -2
  189. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +6 -14
  190. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  191. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +13 -1
  192. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  193. package/mobile/lib/components/Calculator/constants.d.ts +2 -2
  194. package/mobile/lib/components/Calculator/constants.js +6 -7
  195. package/mobile/lib/components/Calculator/constants.js.map +1 -1
  196. package/mobile/lib/components/Calculator/rangeHelpers.js +1 -1
  197. package/mobile/lib/components/Calculator/rangeHelpers.js.map +1 -1
  198. package/mobile/lib/components/Calculator/renderInterestPayment.d.ts +9 -1
  199. package/mobile/lib/components/Calculator/renderInterestPayment.js +2 -2
  200. package/mobile/lib/components/Calculator/renderInterestPayment.js.map +1 -1
  201. package/mobile/lib/components/Calculator/renderPaymentType.d.ts +12 -0
  202. package/mobile/lib/components/Calculator/renderPaymentType.js +19 -0
  203. package/mobile/lib/components/Calculator/renderPaymentType.js.map +1 -0
  204. package/mobile/lib/components/Calculator/renderRegistrationType.d.ts +10 -0
  205. package/mobile/lib/components/Calculator/renderRegistrationType.js +19 -0
  206. package/mobile/lib/components/Calculator/renderRegistrationType.js.map +1 -0
  207. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
  208. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js +1 -1
  209. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  210. package/mobile/lib/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
  211. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +2 -4
  212. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  213. package/mobile/lib/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
  214. package/mobile/lib/components/Calculator/useDepositCalculatorParams.js +2 -1
  215. package/mobile/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  216. package/mobile/lib/components/Footer/Contacts.js +1 -1
  217. package/mobile/lib/components/Footer/Contacts.js.map +1 -1
  218. package/mobile/lib/components/Footer/Sitemap.js +7 -5
  219. package/mobile/lib/components/Footer/Sitemap.js.map +1 -1
  220. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
  221. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +5 -1
  222. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
  223. package/mobile/src/api/CorporateLeadAPI.ts +1 -1
  224. package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +2 -2
  225. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +2 -2
  226. package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -2
  227. package/mobile/src/components/ApplicationForm/renderBankOffices.tsx +2 -2
  228. package/mobile/src/components/ApplicationForm/renderSelects.tsx +3 -3
  229. package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +2 -2
  230. package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +9 -8
  231. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +8 -22
  232. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +22 -8
  233. package/mobile/src/components/Calculator/constants.ts +6 -7
  234. package/mobile/src/components/Calculator/rangeHelpers.ts +1 -1
  235. package/mobile/src/components/Calculator/renderInterestPayment.tsx +21 -9
  236. package/mobile/src/components/Calculator/renderPaymentType.tsx +49 -0
  237. package/mobile/src/components/Calculator/renderRegistrationType.tsx +51 -0
  238. package/mobile/src/components/Calculator/useBusinessDepositCalculatorParams.ts +4 -3
  239. package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +3 -8
  240. package/mobile/src/components/Calculator/useDepositCalculatorParams.ts +4 -2
  241. package/mobile/src/components/Footer/Contacts.tsx +1 -1
  242. package/mobile/src/components/Footer/Sitemap.tsx +10 -5
  243. package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +9 -2
  244. package/package.json +1 -1
  245. package/src/api/CorporateLeadAPI.ts +1 -1
  246. package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +2 -2
  247. package/src/components/ApplicationForm/ApplicationFormContent.ts +2 -2
  248. package/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -2
  249. package/src/components/ApplicationForm/renderBankOffices.tsx +2 -2
  250. package/src/components/ApplicationForm/renderSelects.tsx +3 -3
  251. package/src/components/ApplicationForm/renderSubmitButton.tsx +2 -2
  252. package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +9 -8
  253. package/src/components/Calculator/CreditCalculatorForm.tsx +8 -22
  254. package/src/components/Calculator/DepositCalculatorForm.tsx +22 -8
  255. package/src/components/Calculator/constants.ts +6 -7
  256. package/src/components/Calculator/rangeHelpers.ts +1 -1
  257. package/src/components/Calculator/renderInterestPayment.tsx +21 -9
  258. package/src/components/Calculator/renderPaymentType.tsx +49 -0
  259. package/src/components/Calculator/renderRegistrationType.tsx +51 -0
  260. package/src/components/Calculator/useBusinessDepositCalculatorParams.ts +4 -3
  261. package/src/components/Calculator/useCreditCalculatorParams.ts +3 -8
  262. package/src/components/Calculator/useDepositCalculatorParams.ts +4 -2
  263. package/src/components/Footer/Contacts.tsx +1 -1
  264. package/src/components/Footer/Sitemap.tsx +10 -5
  265. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.tsx +22 -5
  266. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +9 -2
@@ -3,18 +3,20 @@ import { JSX } from '@redneckz/uni-jsx';
3
3
  import { useLink } from '../../hooks/useLink.js';
4
4
  import { projectSettings } from '../../ProjectSettings.js';
5
5
  import { useSWRResource } from '../../services/sitemap/useSWRResource.js';
6
+ import { joinPath } from '../../utils/url.js';
6
7
  export const Sitemap = JSX(({ className = '', fallback }) => {
7
- const link = useLink();
8
+ const link = useLink(true);
8
9
  const sitemap = useSWRResource(projectSettings.SITEMAP || 'sitemap', fallback);
9
10
  return (_jsx("div", { className: `flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${className}`, children: sitemap.topItems?.map((_, i) => renderColumn(link(_), i)) }));
10
11
  });
11
12
  const renderColumn = (menuItem, index) => {
12
13
  const { text, items, href, target, onClick } = menuItem;
13
- return (_jsxs("div", { className: "flex flex-col w-1/5 last:w-1/4 gap-3.5", children: [_jsx("a", { className: "block leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }), items?.map((_, i) => (_jsx(ColumnItem, { ..._, index: i }, String(i))))] }, String(index)));
14
+ return (_jsxs("div", { className: "flex flex-col w-1/5 last:w-1/4 gap-3.5", children: [_jsx("a", { className: "block leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }), items?.map((_, i) => (_jsx(ColumnItem, { ..._, basePath: href, index: i }, String(i))))] }, String(index)));
14
15
  };
15
- const ColumnItem = JSX(({ text, index, ...rest }) => {
16
- const link = useLink();
16
+ const ColumnItem = JSX(({ text, index, basePath, ...rest }) => {
17
+ const isAnotherPortal = projectSettings.BASE_PATH && basePath ? !projectSettings.BASE_PATH.startsWith(basePath) : false;
18
+ const link = useLink(isAnotherPortal);
17
19
  const { href, target, onClick } = link(rest);
18
- return (_jsx("a", { className: "block text-l-light text-secondary-text hover:text-primary-main no-underline", href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }));
20
+ return (_jsx("a", { className: "block text-l-light text-secondary-text hover:text-primary-main no-underline", href: isAnotherPortal ? joinPath(basePath, href) : href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }));
19
21
  });
20
22
  //# sourceMappingURL=Sitemap.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Sitemap.js","sourceRoot":"","sources":["../../../src/components/Footer/Sitemap.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAOvE,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAe,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;IACxE,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,OAAO,GAAG,cAAc,CAAmB,eAAe,CAAC,OAAO,IAAI,SAAS,EAAE,QAAQ,CAAC,CAAC;IAEjG,OAAO,CACL,cAAK,SAAS,EAAE,kEAAkE,SAAS,EAAE,YAC1F,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GACtD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,CAAC,QAA+C,EAAE,KAAa,EAAE,EAAE;IACtF,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,QAAQ,CAAC;IAExD,OAAO,CACL,eAAyB,SAAS,EAAC,wCAAwC,aACzE,YACE,SAAS,EAAC,+EAA+E,EACzF,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,IAAI,OAAO,EACzB,OAAO,EAAE,OAAO,YAEf,IAAI,IAAI,UAAU,KAAK,EAAE,GACxB,EACH,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACpB,KAAC,UAAU,OAAqB,CAAC,EAAE,KAAK,EAAE,CAAC,IAA1B,MAAM,CAAC,CAAC,CAAC,CAAqB,CAChD,CAAC,KAXM,MAAM,CAAC,KAAK,CAAC,CAYjB,CACP,CAAC;AACJ,CAAC,CAAC;AAMF,MAAM,UAAU,GAAG,GAAG,CAAkB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACnE,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAE7C,OAAO,CACL,YACE,SAAS,EAAC,6EAA6E,EACvF,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,IAAI,OAAO,EACzB,OAAO,EAAE,OAAO,YAEf,IAAI,IAAI,UAAU,KAAK,EAAE,GACxB,CACL,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"Sitemap.js","sourceRoot":"","sources":["../../../src/components/Footer/Sitemap.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAO3C,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAe,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;IACxE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,MAAM,OAAO,GAAG,cAAc,CAAmB,eAAe,CAAC,OAAO,IAAI,SAAS,EAAE,QAAQ,CAAC,CAAC;IAEjG,OAAO,CACL,cAAK,SAAS,EAAE,kEAAkE,SAAS,EAAE,YAC1F,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GACtD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,CAAC,QAA+C,EAAE,KAAa,EAAE,EAAE;IACtF,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,QAAQ,CAAC;IAExD,OAAO,CACL,eAAyB,SAAS,EAAC,wCAAwC,aACzE,YACE,SAAS,EAAC,+EAA+E,EACzF,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,IAAI,OAAO,EACzB,OAAO,EAAE,OAAO,YAEf,IAAI,IAAI,UAAU,KAAK,EAAE,GACxB,EACH,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACpB,KAAC,UAAU,OAAqB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,IAA1C,MAAM,CAAC,CAAC,CAAC,CAAqC,CAChE,CAAC,KAXM,MAAM,CAAC,KAAK,CAAC,CAYjB,CACP,CAAC;AACJ,CAAC,CAAC;AAOF,MAAM,UAAU,GAAG,GAAG,CAAkB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC7E,MAAM,eAAe,GACnB,eAAe,CAAC,SAAS,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAElG,MAAM,IAAI,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IACtC,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAE7C,OAAO,CACL,YACE,SAAS,EAAC,6EAA6E,EACvF,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,EACvD,MAAM,EAAE,MAAM,IAAI,OAAO,EACzB,OAAO,EAAE,OAAO,YAEf,IAAI,IAAI,UAAU,KAAK,EAAE,GACxB,CACL,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { ListOrientation } from '../../model/ListOrientation';
1
2
  export interface RadioButtonItem {
2
3
  id: string;
3
4
  text?: string;
@@ -6,6 +7,7 @@ interface RadioButtonGroupProps {
6
7
  items?: RadioButtonItem[];
7
8
  checkedItem?: string;
8
9
  onChange?: (id: string) => void;
10
+ orientation?: ListOrientation;
9
11
  }
10
12
  export declare const RadioButtonGroup: import("@redneckz/uni-jsx").UNIComponent<RadioButtonGroupProps, any, any>;
11
13
  export {};
@@ -1,5 +1,9 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  import { Checkbox } from '../Checkbox/Checkbox.js';
4
- export const RadioButtonGroup = JSX(({ items, checkedItem, onChange: onChangeCheckedItem }) => (_jsx("div", { className: "flex flex-col gap-3", children: items?.map(({ id, text }) => (_jsx(Checkbox, { isRadio: true, text: text, checked: checkedItem === id, onChange: () => onChangeCheckedItem && onChangeCheckedItem(id) }, String(id)))) })));
4
+ const orientationStyleMap = {
5
+ horizontal: 'gap-10',
6
+ vertical: 'flex-col gap-3',
7
+ };
8
+ export const RadioButtonGroup = JSX(({ items, checkedItem, onChange: onChangeCheckedItem, orientation = 'horizontal' }) => (_jsx("div", { className: `flex ${orientationStyleMap[orientation]}`, children: items?.map(({ id, text }) => (_jsx(Checkbox, { isRadio: true, text: text, checked: checkedItem === id, onChange: () => onChangeCheckedItem && onChangeCheckedItem(id) }, String(id)))) })));
5
9
  //# sourceMappingURL=RadioButtonGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioButtonGroup.js","sourceRoot":"","sources":["../../../src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAahD,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CACjC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,mBAAmB,EAAE,EAAE,EAAE,CAAC,CACzD,cAAK,SAAS,EAAC,qBAAqB,YACjC,KAAK,EAAE,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC5B,KAAC,QAAQ,IAEP,OAAO,QACP,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,WAAW,KAAK,EAAE,EAC3B,QAAQ,EAAE,GAAG,EAAE,CAAC,mBAAmB,IAAI,mBAAmB,CAAC,EAAE,CAAC,IAJzD,MAAM,CAAC,EAAE,CAAC,CAKf,CACH,CAAC,GACE,CACP,CACF,CAAC"}
1
+ {"version":3,"file":"RadioButtonGroup.js","sourceRoot":"","sources":["../../../src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAchD,MAAM,mBAAmB,GAAoC;IAC3D,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,gBAAgB;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CACjC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,mBAAmB,EAAE,WAAW,GAAG,YAAY,EAAE,EAAE,EAAE,CAAC,CACrF,cAAK,SAAS,EAAE,QAAQ,mBAAmB,CAAC,WAAW,CAAC,EAAE,YACvD,KAAK,EAAE,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC5B,KAAC,QAAQ,IAEP,OAAO,QACP,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,WAAW,KAAK,EAAE,EAC3B,QAAQ,EAAE,GAAG,EAAE,CAAC,mBAAmB,IAAI,mBAAmB,CAAC,EAAE,CAAC,IAJzD,MAAM,CAAC,EAAE,CAAC,CAKf,CACH,CAAC,GACE,CACP,CACF,CAAC"}
@@ -990,7 +990,7 @@
990
990
  return (jsx("div", { className: `col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${className}`, children: href ? (jsxs("div", { className: "flex", children: [jsx("div", { className: "flex justify-center align-middle rounded-md bg-primary-main w-12 h-12", children: jsx(Logo, { className: "w-8", bgColor: "transparent", showTitle: true }) }), jsxs("a", { href: href, target: "_blank", className: "flex flex-col justify-center pl-3", children: [jsx("div", { className: "text-s font-medium mb-[3px]", children: title }), jsx("div", { className: "text-s text-secondary-text", children: description })] })] })) : null }));
991
991
  });
992
992
 
993
- const Contacts = JSX(({ className = '', items, hasButton }) => (jsxs("div", { className: className, children: [items?.length ? items.map(renderContact) : null, hasButton ? (jsx(Button, { version: "primary", className: "mb-6 w-full", href: "/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })) : null] })));
993
+ const Contacts = JSX(({ className = '', items, hasButton }) => (jsxs("div", { className: className, children: [items?.length ? items.map(renderContact) : null, hasButton ? (jsx(Button, { version: "primary", className: "mb-6 w-full", href: "https://www.rshb.ru/feedback/question/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })) : null] })));
994
994
  const renderContact = (item, index) => {
995
995
  const { type, text, description } = item;
996
996
  return (jsxs("div", { className: "mb-4", children: [jsx("div", { children: renderText(type, text) }), jsx("div", { className: "mt-1 text-s-light text-secondary-text", children: description })] }, String(index)));
@@ -1676,7 +1676,7 @@
1676
1676
  return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
1677
1677
  }
1678
1678
 
1679
- const packageVersion = "0.8.19";
1679
+ const packageVersion = "0.8.21";
1680
1680
 
1681
1681
  exports.Blocks = Blocks;
1682
1682
  exports.ContentPage = ContentPage;
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),i=n("useState"),r=n("useEffect"),a=n("useCallback"),l=n("useMemo"),s=n("useRef");const o={PROD_BRANCH:"master"},c=new class{_=o;setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH||o.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return d(this._.CDN)}get BASE_PATH(){return d(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d=e=>e&&!e.endsWith("/")?`${e}/`:e,m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage?.setItem(m,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:i}=await e.json();return i||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:i},body:JSON.stringify({node_id:t,user_name:i})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:i},body:JSON.stringify({node_id:t,user_name:i})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),p=(...e)=>globalThis._uni._jsxs(...e),g=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:b(e)),t._tmpl},b=e=>{function t(t,n){const{children:i,...r}=t||{},a=n?.slots?.default,l=i||a&&a();return e(Object.assign(r,l&&{children:l}),n)}return t.inheritAttrs=!1,t},x=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),f=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),N=[];function y(e,t){const{key:n,blockDecorator:i=f,blocksRegistry:r={},ancestors:a=N,className:l="",extraProps:s={}}=t,{type:o}=e;o&&o in r||console.warn(`No block with "${o}" is registered`);const c=o&&r[o];return i({blockClassName:x("scroll-mt-12",l,e.style||"col-span-12"),block:e,ancestors:a,render:({block:i,blockClassName:r})=>{const{content:a}=i;return c?u(c,{className:r,block:e,options:t,...a,...s},n):null}},n)}const v=[],w=(e,{key:t,ancestors:n=v,slotName:i=null,renderProps:r=y,...a})=>(e||[]).map(((e,l)=>r(e,{...a,key:`${t||e.type}-${l}`,ancestors:a.parent?[...n||v,[a.parent,i]]:n})));function k({children:e,block:t,options:n,renderProps:i}){return e||(t&&n?w(t.blocks,{...n,parent:t,renderProps:i}):null)}class C{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const S=new C;function T(e,{sensitivity:t,rootRef:n}={}){const i=s(null),a=l((()=>({threshold:_(t),root:n?.current})),[t,n?.current]);return r((()=>{if(!i.current)return;const t=new IntersectionObserver(e,a);return t.observe(i.current),()=>{t.disconnect()}}),[e,a]),i}function _(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const $=new C;const I={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},A=g((({className:e="",version:t="primary",block:n,tag:l="section",role:s,children:o})=>{const c=l,d=function(e){return T(a((t=>{if(!e||!t?.length)return;const n=t[t.length-1];$.fire("intersection",{block:e,intersection:n})}),[e]),{sensitivity:1})}(n),[m,h]=i(!1);return r((()=>S.subscribe("tab",(e=>{h(Boolean("group"===e.type&&e.label&&n?.labels?.length&&!n.labels.includes(e.label)))}))),[n]),u(c,{className:x("group",I[t],m?"hidden":"",e),...t?{"data-ver":t}:{},...n?.anchor?{id:n.anchor,ref:d}:{},role:s,children:o})})),j={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},R=g((e=>{const{className:t,headingType:n="h3",title:i,as:r="h3"}=e;return u(r,{className:`font-sans font-medium m-0 ${j[n]} ${t||""}`,children:i})})),D=g((({children:e,...t})=>u("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),M=g((({children:e})=>u("ul",{className:"list-none m-0 p-0",children:e}))),B=g((({title:e,description:t,className:n="",...i})=>p(A,{className:`py-6 px-4 ${n}`,...i,children:[e?u(R,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?u("div",{className:"mb-5",children:u(D,{size:"text-m",font:"font-light",align:"text-center",children:t})}):null,u(M,{children:k(i)})]})));B.childrenTypes=["AccordionItem"];const V=g((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:n=!1,renderFoldableSection:r,renderFoldButton:l})=>{const[s,o]=i(n),c=a((()=>{o((e=>!e))}),[]),d=r({isUnfolded:s,onToggle:c}),m=l?l({isUnfolded:s,onToggle:c}):null;return p("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),L=g((({className:e="",isUnfolded:t,children:n})=>{const i=s(null);return r((()=>{i.current&&(i.current.style.maxHeight=t?`${i.current.scrollHeight}px`:"")}),[t,n?.length]),u("div",{ref:i,className:`transition-max-h duration-300 overflow-hidden ${i.current||!t?"max-h-0":""} ${e}`,children:n})}));function O(){return O._impl()}O._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),O.setup=e=>{O._impl=e};const P=e=>Boolean(e?.includes(":")),z=(e,t)=>Boolean(e&&!P(e)&&(!t||"_self"===t)),E=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),H=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var F=Object.freeze({__proto__:null,isURL:P,isLocalURL:z,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:E,joinPath:H});const G=e=>t=>{if(!t||P(t)||c.CDN&&t.startsWith(c.CDN))return t;const n=t.startsWith("/");return H(c.BASE_PATH,n?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},J={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},U=g((({className:e="",imageClassName:t="",name:n="",alt:i=`Иконка ${n}`,title:r=i,iconVersion:a="color",asSVG:l,...s})=>{const o=O(),d=G(o)(H(c.CDN,"/icons",`${n}.svg`));return l&&"normal"!==a?u(Y,{className:e,children:p("svg",{className:x(W(s.width),J[a],"white"===a?"invert":"",t),...s,"aria-hidden":"true",children:[r?u("title",{children:r}):null,i?u("desc",{children:i}):null,u("use",{href:`${d}#icon`,xlinkHref:`${d}#icon`})]})}):u("img",{className:e,src:d,alt:i,title:r,...s,"aria-hidden":"true"})})),W=e=>e?"":"w-full h-full",Y=g((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),X=(e,t)=>e?.media&&t?.media?e.media-t.media:0,K=g((({className:e="",image:t,imageClassName:n="",isMobile:i=!1,pathPrefix:r})=>{const a=O();return p("picture",{className:`${i?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(X).map((({src:e,format:n,media:i},l)=>u("source",{srcSet:Q(a,r)(e),type:Z(n),media:i?`(max-width: ${i}px)`:"",...t.size},`${l}_${e}`))):null,t?.src?q({...t,src:Q(a,r)(t.src)},n,i):null]})})),q=(e,t="",n=!1)=>{const i={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",a=e.alt||e.title,l=n?"m-auto":"m-0";return u("img",{src:e.src,className:`${l} ${t}`,alt:a,title:r,style:i,...e.size})},Q=(e,t)=>n=>n&&!P(n)?G(e)(H(t,n)):n,Z=e=>e?`image/${String(e)}`:void 0,ee=g((({className:e="",image:t,imageClassName:n="",isMobile:i,pathPrefix:r,...a})=>t?.src||t?.icon?t.icon?u(U,{className:e,imageClassName:n,iconVersion:t?.iconVersion||"normal",name:t.icon,...a}):u(K,{className:e,imageClassName:n,image:t,isMobile:i,pathPrefix:r}):null)),te=g((e=>u(ee,{...e,isMobile:!0}))),ne=g((({children:e,...t})=>u("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),ie=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),re=["PlusIcon","MinusIcon"],ae=g((({className:e="",label:t="",labelIcon:n,isExpanded:i,...r})=>{const{bordered:a}=function(e,t){const{content:n}=function(e){return e?.parent||{}}(e);return n||t}(r.options,{});return u("li",{className:`${a?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"} border-solid border-main-divider ${e}`,children:u(V,{isFoldButtonOnTop:!0,unfoldedByDefault:i,renderFoldableSection:({isUnfolded:e})=>u(L,{className:"flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0",isUnfolded:e,children:k(r)}),renderFoldButton:({isUnfolded:e,onToggle:i})=>u(le,{className:a?"":"py-3.5 px-0",label:t,icon:re[Number(e)],primaryIcon:n,onClick:i})})})}));ae.childrenTypes=[];const le=g((({className:e,icon:t,label:n,primaryIcon:i,onClick:r})=>p("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${e}`,onClick:r,children:[p("div",{className:"flex group-hover:text-primary-main",children:[i?u(te,{image:ie(i),className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,u(ne,{size:"text-m-title-xs",font:"font-medium",children:n})]}),u(te,{className:"flex-shrink-0",image:ie({icon:t}),width:"24",height:"24",asSVG:!0})]}))),se=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),oe=g((({className:e="",style:t,idx:n,activeIndex:i,observerOptions:r,children:l,onIntersection:s})=>{const o=T(a((e=>{e.length&&s&&s(n||0,e[e.length-1])}),[s,n]),r);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,role:"listitem","aria-current":Boolean(n===i),ref:o,children:l})})),ce=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],de=g((({className:e="",containerRef:t,activeIndex:n,visibleItemCount:i=0,gap:r=0,padding:l=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:m,onVisibleItemsChange:h,onVisibleIndicesChange:p})=>{const g={sensitivity:1,rootRef:t},b=s([]),f=a(((e,t)=>{const n=[...b.current||[]];n[e]=t,b.current=n,h&&h(n),p&&p(he(n))}),[h,p]),N=i>0?r*Number(i)-1:0,y="vertical-list"===o,v="horizontal-list"===o,w={...v?me(l,N):{},...y?se(d):{},gap:`${r}px`};return u("div",{className:x("box-border overflow-auto no-scrollbar",o,e),style:w,role:"list",ref:t,children:(k=(e,t)=>u(oe,{className:x(c,i?ce[i-1]:"",y?"h-full":""),style:v?me(l/4):{},activeIndex:n,idx:t,observerOptions:g,onIntersection:f,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(k):k(e,0))(m)});var k})),me=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),he=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),ue={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},pe={"horizontal-list":"w-6","vertical-list":"h-6"},ge=g((({containerRef:e,activeIndex:t,dotCount:n=0,listType:i="horizontal-list"})=>n?u("div",{className:`flex gap-2 ${ue[i]}`,children:new Array(n).fill(null).map(((n,r)=>u("div",{className:`cursor-pointer bg-primary-main rounded-full transition-width duration-300 group-data-secondary:bg-white group-data-transparent:bg-white ${r===t?pe[i]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(n=>{n!==t&&e?.current&&e.current.children[n]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(r)},String(r))))}):null)),be=e=>e,xe=(e=be)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),fe=(e=be)=>xe((t=>-e(t))),Ne=e=>t=>e.scrollWidth/t,ye=e=>(t,n)=>{e.scrollBy({left:n*Ne(e)(t),behavior:"smooth"})},ve=({itemCount:e,isCyclic:t,onVisibleIndicesChange:n})=>{const r=s(null),[l,o]=i([]),c=a((e=>{o((t=>{return(n=t)===(i=e)||Boolean(n&&i&&n?.length===i?.length&&n.every(((e,t)=>e===i[t])))?t:e;var n,i})),n&&n(e)}),[e]),[d,m]=l.length?[fe()(l),xe()(l)]:[-1,-1],h=d>0,u=m<e-1,p=a((()=>{var n;r.current&&(t&&!h?(n=r.current).scrollTo({left:n.scrollWidth,behavior:"smooth"}):ye(r.current)(e,-1))}),[t,e,h]),g=a((()=>{r.current&&(t&&!u?r.current.scrollTo({left:0,behavior:"smooth"}):ye(r.current)(e,1))}),[e,t,u]);return[r,{scrollLeft:p,scrollRight:g,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},we=g((({className:e="",gap:t=14,padding:n=16,showDots:i=!0,minHeight:r,children:a,onVisibleIndicesChange:l,listType:s="horizontal-list"})=>{const o=Array.isArray(a)?a.length:0,[c,d]=ve({itemCount:o,onVisibleIndicesChange:l}),[m]=d.visibleIndicesRange;return p("div",{className:x(e,"vertical-list"===s?"relative h-full":""),children:[u(de,{containerRef:c,activeIndex:m,visibleItemCount:1,gap:t,padding:n,onVisibleIndicesChange:d.handleVisibleIndicesChange,listType:s,minHeight:r,children:a}),i?u(ge,{containerRef:c,activeIndex:m,dotCount:o,listType:s}):null]})})),ke=(e,t)=>ke._impl(e,t);function Ce(e=!1){const t=O();return i=>({...i,href:e?i.href:G(t)(i.href),"aria-label":i.text,onClick:ke(n(i),i)});function n({href:n,target:i,onClick:r}){return a=>{r&&r(a),n&&!e&&z(n,i)&&(a?.preventDefault(),t.push(n))}}}ke._impl=e=>e,ke.setup=e=>{ke._impl=e};const Se={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},Te="bg-main-divider text-main-disabled",_e={primary:Te,secondary:Te,white:Te,link:"",transparent:"",gray:Te,"":""},$e="text-center font-sans select-none",Ie={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},Ae=g((e=>{const{text:t,aboveText:n,appendLeft:i,appendRight:r,version:a="primary"}=e;return p("div",{className:je(e),children:[i?u("div",{className:Ie[a],children:i}):null,Re(e)?p("div",{children:[n?u("div",{className:"text-xs-light text-left",children:n}):null,u("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?u("div",{className:Ie[a],children:r}):null]})})),je=e=>{const{version:t,aboveText:n,rounded:i}=e;if("link"===t)return"";const r="gap-2 "+(n?"py-2.5 px-7":"py-4 px-4");return["group/btn flex items-center justify-center",Re(e)?r:"h-12 w-12",i?"rounded-full":""].join(" ")},Re=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),De=({className:e,rounded:t,version:n})=>["inline-block",$e,n?_e[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Me=({className:e,rounded:t,version:n})=>[$e,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border",n?Se[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Be=g((({disabled:e,children:t,...n})=>{const i=Ce()(n),r=t??u(Ae,{...i});return u(e?Le:Ve,{...i,children:r})})),Ve=g((({className:e="",href:t,rel:n,target:i,ariaLabel:r,version:a,rounded:l,onClick:s,children:o})=>u("a",{className:Me({className:e,version:a,rounded:l}),href:t,rel:n,target:i,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),Le=g((({className:e,ariaLabel:t,version:n,rounded:i,children:r})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:De({className:e,rounded:i,version:n}),children:r}))),Oe=(e=!1)=>e?"text-white":"",Pe=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),ze=g((({icon:e,image:t,title:n,subtitle:i,isFillGradient:r})=>p("div",{role:"columnheader",children:[e?u(te,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&u("div",{className:"mb-3.5",children:u(te,{image:t})}),n?u(R,{headingType:"h4",className:Oe(r),title:n}):null,i?u("div",{className:Pe(r),children:i}):null]}))),Ee=g((({cell:e,rowHeader:t,isFillGradient:n=!1})=>u("div",{className:"box-border flex flex-col",role:"cell",children:u("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(He(n,t))})}))),He=(e,t)=>({label:n,description:i},r)=>p("div",{className:"flex justify-between text-s py-3.5",children:[u("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),p("div",{className:"basis-1/2",children:[n?u("div",{className:"text-right "+(e?"text-white":""),children:n}):null,i?u("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:i}):null]})]},String(r)),Fe=g((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:i,showRow:r,onToggleColumn:a})=>{const l=t?.slice(0,r?t.length:n),s=i?"secondary":"primary";return p("div",{className:`border border-gray rounded-md p-4 mb-3.5 ${i?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[u(ze,{...e,isFillGradient:i}),l?.length?l.map((({rowHeader:e,cell:t},n)=>u(Ee,{cell:t,rowHeader:e,isFillGradient:i},String(n)))):null,r&&e?.link?u(Be,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,Ge({onToggleColumn:a,isFillGradient:i,showRow:r})]})})),Ge=({onToggleColumn:e,isFillGradient:t,showRow:n})=>u("div",{className:"mt-5",role:"cell",children:u("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),Je=g((e=>{const{className:t,title:n}=e;return p("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[n?u(R,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,u("div",{role:"table",children:u(Ue,{...e})})]})})),Ue=g((({columns:e=[],rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:r,orientation:l,...s})=>{const[o,c]=i(new Array(e.length).fill(!r)),d=a((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),m=a((()=>c((e=>new Array(e.length).fill(!1)))),[]),h=e?.map((({data:e,header:i},a)=>{return u(Fe,{visibleRowLength:r,showRow:o[a],header:i,columnData:(l=e,l?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===a&&n,onToggleColumn:()=>d(a),...s},String(a));var l}));return"horizontal"===l?u(we,{onVisibleIndicesChange:m,children:h}):h})),We=new Map;function Ye(e,t,{fallback:n}={}){const a=l((()=>Xe(e)),[e]),[s,o]=i(),[c,d]=i(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!a.every((e=>null===e)))try{const e=t(...a);"then"in e?(e=>{e.then((e=>We.get(a)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...a]);const u=a[0],p=n&&"string"==typeof u&&n[u];return{data:!s&&p?p:s,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function Xe(e){return e?Array.isArray(e)?e:e instanceof Function?Xe(e()):[e]:[e]}async function Ke(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function qe(e,t={}){const{data:n}=Ye(`/wcms-resources/${e}.json`,Ke,{fallback:t});return n||{}}const Qe=g((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:r}=(()=>{const[e,t]=i("");return{term:e,setTerm:e=>t(e)}})(),a=t?"text-s":"text-l-light",l=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return p("form",{className:`font-sans relative ${e}`,children:[p("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[u("div",{className:t?"w-5 h-5":"w-6 h-6",children:u(te,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),n?null:u("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${a}`,children:"Поиск по сайту"})]}),u("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text ${l}`,value:n,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?u("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),r("")},children:u(te,{image:{icon:"CloseIcon"},width:"24",height:"24"})}):u(Be,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:u("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),Ze=g((e=>u(Qe,{...e,isMobile:!0}))),et=g((({className:e="",documents:t,...n})=>u(A,{className:`mt-2.5 ${e}`,...n,children:u("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?tt(t):null})}))),tt=e=>e.map(((e,t)=>{const{text:n,...i}=e;return u("li",{className:"mb-4 list-none",children:u("a",{className:"hover:text-primary-main",role:"link",...i,children:n||null})},`list_item_${String(t)}`)})),nt={"bg-white":"color",transparent:"white"},it={"bg-white":"text-primary-main",transparent:"text-white"},rt=(e,t,n)=>u(te,t?.src?{image:t,className:it[e],width:n?.width,height:n?.height,pathPrefix:"/wcms-resources/",asSVG:!0}:{image:{icon:t?.icon||"LogoIcon",iconVersion:nt[e]},className:it[e],width:n?.width,height:n?.height,asSVG:!0}),at={"bg-white":"text-primary-text",transparent:"text-white"},lt=(e,t,n)=>u("span",{className:`${at[t]} ml-2.5 font-medium ${n||""}`,children:e||"Россельхозбанк"}),st=g((({bgColor:e="bg-white",children:t,className:n="",href:i,logo:r,showTitle:a=!0,targetBlank:l})=>p("a",{className:`inline-flex items-center font-sans no-underline ${n}`,href:i||"https://rshb.ru/",target:l?"_blank":"_self","aria-label":r?.title||"Россельхозбанк",children:[rt(e,r?.image,{width:"34",height:"34"}),a?lt(t||r?.title,e,"text-s"):null]}))),ot=g((({className:e="",title:t="Мобильное приложение",description:n,href:i="#"})=>u("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:i?p("div",{className:"flex",children:[u("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-12 h-12",children:u(st,{className:"w-8",bgColor:"transparent",showTitle:!0})}),p("a",{href:i,target:"_blank",className:"flex flex-col justify-center pl-3",children:[u("div",{className:"text-s font-medium mb-[3px]",children:t}),u("div",{className:"text-s text-secondary-text",children:n})]})]}):null}))),ct=g((({className:e="",items:t,hasButton:n})=>p("div",{className:e,children:[t?.length?t.map(dt):null,n?u(Be,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),dt=(e,t)=>{const{type:n,text:i,description:r}=e;return p("div",{className:"mb-4",children:[u("div",{children:mt(n,i)}),u("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},mt=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${ht(t)}`,children:t});case"email":return u("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},ht=e=>e.replaceAll(/\D/g,""),ut=g((({className:e="",index:t,text:n,...i})=>{const r=Ce(),{href:a,target:l,onClick:s}=r(i);return u("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:l,onClick:s,children:n||`Документ ${t}`})})),pt=g((({title:e,links:t,className:n=""})=>p("div",{className:n,children:[u("span",{className:"text-primary-text text-s font-medium",children:e}),t?.length?u("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>u(ut,{index:t,className:"text-s",...e},String(t))))}):null]}))),gt=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],iconMapped:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"},label:"Youtube"}],bt={default:"w-14 h-14",small:"w-12 h-12"},xt=g((({iconVersion:e="color",buttonSize:t="default",rounded:n=!1,icon:i,...r})=>{const{href:a,version:l}=r,{iconMapped:s,label:o}=gt.find((({origins:e})=>e.some((e=>a?.includes(e)))))||{},c=i??s,d=c?{...ie(c),iconVersion:e}:void 0;return u(Be,{className:x("group/media flex items-center justify-center box-border",bt[t],n?"rounded-full":"rounded-md","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",bt[t]),"aria-label":o,target:"_blank",rel:"noopener noreferrer",version:l,...r,children:d?u(te,{image:d,imageClassName:"group-hover/media:text-white",width:"24",height:"24",asSVG:!0}):null})})),ft=g((({className:e="",media:t})=>u("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e}`,children:t?.map(((e,t)=>u(xt,{...e},String(t))))}))),Nt=g((({className:e="",index:t,...n})=>{const i=Ce(),{href:r,target:a,text:l,onClick:s}=i(n);return u("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:a,onClick:s,children:l||`Документ ${t}`})})),yt=g((({className:e="",links:t})=>p("div",{className:e,children:[u("div",{className:"py-6",children:u("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>u(Nt,{index:t,...e},String(t))))}):null]}))),vt=g((({className:e="",...t})=>{const n=t.options?.page?.fallback,i=qe(c.SITEMAP||"sitemap",n),{documents:r,relatedEnterprises:a,contacts:l,socialMedia:s,horizontalNavigationTitle:o}=qe(c.FOOTER||"footer",n);return p("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[u(ct,{className:"overflow-hidden",items:l,hasButton:!0}),u(M,{children:i.topItems?.map(((e,t)=>u(ae,{label:e.text,children:u(et,{documents:e.items})},String(t))))}),u("div",{children:i?.dispositions?.map(wt)}),u(ot,{title:"Мобильное приложение",description:"Загрузить для IOS и Android",...t}),u(Ze,{className:"grow"}),u(ft,{className:"pb-4",media:s}),u(pt,{title:o,links:a}),u(yt,{links:r})]})})),wt=(e,t)=>{const{icon:n,href:i,text:r}=e;return p(Be,{version:"link",href:i,className:"flex text-s mb-4 w-6",children:[n?u(te,{className:"pr-1",image:ie(n),width:"24",height:"24",asSVG:!0}):null,u("span",{className:"pl-2.5 font-medium text-primary-text",children:r})]},`footer-${t}`)},kt=e=>({href:t})=>E(P(t)?e.href:e.pathname).startsWith(E(t)),Ct=g((({className:e="",active:t,dataItemName:n,children:i,...r})=>{const a=Ce(),{href:l,target:s,text:o,onClick:c}=a(r);return p("a",{className:x("relative inline-block bg-transparent text-center no-underline",e),href:l,target:s,"data-item-name":n,onClick:c,children:[u("span",{className:St(t),children:o||i}),t?u("div",{className:"absolute left-0 -bottom-3 w-full h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),St=(e=!1)=>x("font-sans text-s",e?"text-primary-main":"text-secondary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),Tt=864e5;function _t(e,t,n=globalThis?.localStorage){const i=a((async(...i)=>{const r=`async:${e}`,a=function(e){const{data:t=null,timestamp:n=null}=e?JSON.parse(e):{};return t&&Date.now()-n<Tt?t:void 0}(n.getItem(r));if(a)return a;const l=await t(...i);return n.setItem(r,JSON.stringify({data:l,timestamp:Date.now()})),l}),[e,t]);return Ye(e,i)}const $t=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}},It=g((({burgerSubMenu:e,onClick:t,defaultLocation:n="",children:l})=>{const[s]=function(e){const t=$t(),[n,l]=i(t?.region??{name:e}),{data:s}=_t("/api/v1/region",Ke);return r((()=>{l(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[n,a((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),l(e)}),[l])]}(n);return p("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[u("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:t,children:u(te,{image:{icon:"CloseIcon"},width:"24",height:"24",asSVG:!0})}),p("button",{className:"flex items-center text-s p-0 mb-4 bg-transparent cursor-pointer",children:[u(te,{image:{icon:"GeolocationIcon"},width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),u(ne,{color:"text-secondary-text",children:s.name})]}),l,u("div",{className:"mb-7",children:e?.map(At)}),u(Ze,{className:"grow"})]})})),At=(e,t)=>{const{icon:n,href:i,text:r}=e;return p("a",{href:i,className:"flex text-s mb-4 hover:text-primary-main",children:[n?u(te,{className:"text-primary-main pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,u("span",{className:"font-medium pl-0.5",children:r})]},`headerSubMenu-${t}`)},jt=g((({onClick:e,bgColor:t,logo:n})=>p("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-12",children:[p("div",{className:"flex items-center",children:[u("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:u(te,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),u(st,{className:"mr-8",bgColor:t,logo:n})]}),u("button",{className:"text-primary-main group-data-transparent:text-white group-data-transparent:hover:text-primary-hover text-s border-0 bg-transparent",children:"Войти"})]}))),Rt={"bg-white":"primary",transparent:"transparent"},Dt=g((({bgColor:e="bg-white",version:t=Rt[e],...n})=>{const r=O(),l=n.options?.page?.fallback,{topItems:s,dispositions:o,defaultLocation:d,logo:m}=qe(c.SITEMAP||"sitemap",l),h=s?.find((e=>kt(c.BASE_PATH?{pathname:c.BASE_PATH}:e))(r)),g=h?.items,b=(e=>(t=[])=>{const n=t?.filter(kt(e));return n?.length?xe((e=>e.href?.length||0))(n):void 0})(r)(g),[x,f]=i(!1),N=a((()=>f((e=>!e))),[]);return p(A,{tag:"header",version:t,...n,children:[p("div",{className:"container px-4 py-0 box-border",children:[u(jt,{onClick:N,bgColor:e,logo:m}),u("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-12",children:u("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:g?.map(((e,t)=>u(Ct,{className:"mr-8 whitespace-nowrap text-s",active:e===b,...e},String(t))))})})]}),x?u(It,{onClick:N,burgerSubMenu:o,defaultLocation:d,children:u(M,{children:s?.map(((e,t)=>u(ae,{label:e.text,children:u(et,{documents:e.items})},String(t))))})}):null]})})),Mt={XXL:{wrapper:"gap-[18px]",title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5"},XL:{wrapper:"gap-4",title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl-light"},L:{wrapper:"gap-4",title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl-light"},M:{wrapper:"gap-3",title:{headingType:"h3",as:"h3"},descriptionSize:"text-xl-light"},S:{wrapper:"gap-2",title:{headingType:"h4",as:"h4"},descriptionSize:"text-xl-light"},XS:{wrapper:"gap-2",title:{headingType:"h5",as:"h5"},descriptionSize:"text-l-light"}},Bt=g((({className:e,title:t,description:n,headlineVersion:i="XL",align:r="text-center",as:a,version:l="",...s})=>{const o=Mt[i];return p(A,{className:x("flex flex-col p-12",o.wrapper,e),version:l,...s,children:[t?u(R,{className:x("whitespace-pre-wrap",r),...o?.title,as:a||o?.title.as,title:t}):null,n?u(D,{color:"group-data-secondary:text-white/80",size:o.descriptionSize,align:r,children:n}):null]})})),Vt=g((({className:e,iconClassName:t,textClassName:n,suffixClassName:i,doc:r,icon:a})=>{const{text:l,fileSize:s,...o}=r;return p("a",{className:e,role:"link",...o,children:[a?u(te,{className:t,image:ie(a),width:"24px",height:"24px",asSVG:!0}):null,l?p("span",{className:n,children:[l,u("span",{className:i,children:o?.href&&Lt(Ot(o.href),s)})]}):null]})})),Lt=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Ot=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Pt=g((({className:e="",doc:t,icon:n})=>u(Vt,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),zt=g((({hasBorder:e=!0,documents:t,icon:n})=>u(we,{className:"text-s text-primary-main mt-5",children:t?.length?t.map(((t,i)=>u(Pt,{className:e?"rounded-md border-gray border border-solid p-4":"",doc:t,icon:n},String(i)))):null}))),Et=g((({hasBorder:e=!0,documents:t,icon:n})=>u("div",{className:"text-s text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,i)=>u("div",{role:"listitem",children:u(Pt,{className:e?"rounded-md border-gray border border-solid p-4":"",doc:t,icon:n})},String(i)))):null}))),Ht=g((({className:e="",title:t,description:n,icon:i={icon:"DocIconMonoColor"},documents:r,orientation:a="vertical",hasBorder:l=!0,align:s,...o})=>p(A,{className:x("py-6 px-4 overflow-x-hidden",e),...o,children:[u(Bt,{className:"!p-0 "+(n?"gap-2":"gap-5"),title:t,description:n,align:s,headlineVersion:"M",as:"h2"}),u("vertical"===a?Et:zt,{hasBorder:l,documents:r,icon:i})]}))),Ft=e=>{const t="col-span-",n=e?.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Gt(e=""){const t=Ft(e);return t<=4?"S":t<=8?"M":"L"}function Jt(e=""){const t=Ft(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Ut(e=""){const t=Ft(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Wt=g((({className:e,title:t,description:n="Блок в разработке...",...i})=>p(A,{className:x("p-9 box-border",e,Ut(e),Jt(e)),...i,children:[u(Bt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:Gt(e)}),u("figure",{className:"m-0 min-w-[80%]",children:Yt()})]}))),Yt=(e=3)=>Kt(100,e).map((e=>Math.floor(e))).map(Xt),Xt=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Kt=(e,t)=>[e].concat(t>0?Kt(e/1.618,t-1):[]),qt=(e,{className:t="",buttonClassName:n,isVertical:i}={})=>e?.length&&e.some((e=>e?.text))?u("div",{className:x("flex",i?"flex-col gap-2":"gap-4",t),children:e.map(Qt(n))}):null,Qt=(e="")=>(t,n)=>{const{text:i,icon:r,iconRight:a,version:l,...s}=t||{},o="secondary"===l?"color":"white";return i?u(Be,{className:e,appendLeft:Zt({...r,iconVersion:o}),appendRight:Zt({...a,iconVersion:o}),version:l,text:i,...s},n?String(n):""):null},Zt=e=>e?.icon||e?.src?u(te,{image:e,width:String(e?.size?.width||24),height:String(24),asSVG:!0}):null,en={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},tn=g((({className:e="",isDotted:t=!0,children:n,size:i="M"})=>p("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?u("div",{children:u("div",{className:`rounded-full align-middle inline-block bg-primary-text group-data-secondary:bg-white ${en[i]}`})}):null,u("span",{children:n})]}))),nn={S:"text-l-light",M:"text-h6",L:"text-h5"},rn={S:"ml-2",M:"ml-3",L:"ml-4"},an=g((({className:e="",hasIndent:t,isDotted:n,itemClassName:i="",items:r,listItemSize:a="M"})=>r?.length?u("section",{className:`text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text ${nn[a]} ${t?rn[a]:""} ${e}`,role:"list",children:r.map(((e,t)=>u(tn,{className:`${i} mb-1.5`,isDotted:n,size:a,children:e},String(t))))}):null)),ln=g((({className:e="",title:t="",buttons:n,image:i,children:r})=>p("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,p("div",{className:"flex grow w-full justify-between",children:[p("div",{className:"flex flex-col justify-between w-full",children:[u("div",{className:"h-full",children:r}),n?u("div",{className:"mt-auto pt-8",children:n}):null]}),i]})]}))),sn=g((e=>{const{className:t="",icon:n,label:i,description:r,version:a="primary",benefitsVersion:l="normal"}=e,s="white"===l?"secondary":"primary";return p("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[n?u("div",{className:on(a,l),children:u(te,{className:"w-6 h-6",image:ie(n,s),asSVG:!0})}):null,p("div",{className:"gap-0.5",children:[i?u("div",{className:"text-h6 text-primary-text group-data-secondary:text-white",children:i}):null,r?u("div",{className:"text-m-light text-secondary-text group-data-secondary:text-white",children:r}):null]})]})}));function on(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const cn=(e="primary",t="normal")=>({icon:n,label:i,description:r},a)=>u(sn,{icon:n,label:i,description:r,version:e,benefitsVersion:t},String(a)),dn=g((({className:e="",headlineVersion:t="L",benefits:n,benefitsVersion:i="normal",buttons:r,image:a,items:l,version:s="primary",isDotted:o=!0,label:c,title:d,description:m,...h})=>p(A,{className:`w-full ${e}`,version:s,...h,children:[p("div",{children:[c?hn(c):null,u(Bt,{className:"!p-0 max-w-[600px]",title:d,description:m,headlineVersion:t,align:"text-left"}),p(ln,{buttons:qt(r,{className:"mt-5",isVertical:!0}),children:[n?.filter((e=>e.label))?.length?u("div",{className:"mt-3",children:n.map(cn(s,i))}):null,l?.length?u(an,{className:"mt-3 text-m",items:l,isDotted:o}):null]})]}),mn(a)]})));function mn(e){return e?.src?u(te,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const hn=e=>u("div",{className:"w-fit px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid border-secondary-hover",children:u(ne,{color:"text-primary-main group-data-secondary:text-white/80",children:e})}),un=g((e=>{const{className:t="",...n}=e;return u(A,{className:`px-4 py-6 ${t}`,...n,children:u(dn,{...e})})})),pn=g((e=>{const{__html:t=""}=e;return u("div",{className:"md-container",dangerouslySetInnerHTML:{__html:t}})}));const gn={primary:{description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"},gray:{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"},transparent:{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"},"":{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},bn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-12 w-12 min-w-12 min-h-12"},xn={normal:"min-h-[70px]",small:"min-h-12"},fn=g((({className:e="",title:t,description:n,showLines:i=!0,steps:r,size:a="normal",version:l="primary",...s})=>{const o=gn[l];return p(A,{className:`box-border px-4 py-6 flex flex-col ${e}`,version:l,...s,children:[t?u(R,{headingType:"h3",className:"text-center",title:t}):null,n?u("p",{className:`text-m-light text-center ${o.description} ${t?"mt-2":""}`,children:n}):null,r?.length?u("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:u("div",{className:"flex flex-col justify-between gap-x-[101px]",children:r.map(Nn(a,l,i))})}):null]})})),Nn=(e,t,n)=>(i,r,a)=>{const{type:l}=i;if("default"!==l&&"rte"!==l)return null;switch(l){case"default":return yn(e,t,n)(i,r,a);case"rte":return u(pn,{__html:i.__html});default:!function(e){throw new Error(e)}(i)}},yn=(e,t,n)=>(i,r,a)=>{const l=a.length-1===r,s="normal"===e?"ml-[34px]":"ml-6",o=gn[t];return u("div",{children:p("div",{className:"flex flex-row text-center relative",children:[p("div",{className:"overflow-hidden flex-shrink-0",children:[vn(e,t)(i,r),l?null:u("div",{className:`min-h-8 h-full w-0.5 ${n?o.iconConnector:""} ${s}`})]}),p("div",{className:`flex flex-col justify-center h-fit ${xn[e]}`,children:[i.label?u("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:i.label}):null,i.description?u("div",{className:`text-s ${o.description} text-left`,children:i.description}):null]})]})},String(r))},vn=(e,t)=>(n,i)=>{const r="normal"===e?"38":"27",a="normal"===e?"text-m-title":"text-m-title-xs";return u("div",{className:`${bn[e]} ${gn[t].iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:u("span",{className:`font-medium flex self-center ${a}`,children:(l=n?.icon,Boolean(l?.icon||l?.src)?u(te,{image:ie({...n.icon},t),width:r,height:r,asSVG:!0}):u("span",{children:i+1}))})});var l},wn={Buttons:({buttons:e})=>qt(e,{className:"mt-3",buttonClassName:"w-12 h-12"}),Img:({image:e})=>e?.src?u(te,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>u(an,{className:"flex flex-col justify-between items-start text-m",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>p("div",{children:[e?u("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?u("div",{className:"text-s text-secondary-text",children:t}):null]})},kn=g((({title:e,icon:t})=>p("div",{className:"flex gap-2.5 mb-2",children:[e?u(R,{headingType:"h3",className:"font-medium",title:e}):null,t?u(te,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),Cn=g((({tile:e,...t})=>p("div",{className:"rounded-md border-gray h-full box-border border p-4",children:[u(kn,{...e?.header}),e?.data?.length?e.data.map(((e,n)=>p("div",{children:[n>0?u("div",{className:"h-5"}):null,Sn(e,t)]},String(n)))):null]})));function Sn(e,t){if(!e||!e.tableCellType||!(e.tableCellType in wn))return null;const n=wn[e.tableCellType];return u(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const Tn=g((({tiles:e,...t})=>e?.length?u(we,{...t,children:e.map(((e,n)=>u(Cn,{tile:e,...t},String(n))))}):null)),_n=g((({tiles:e,...t})=>e?.length?u("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>u(Cn,{tile:e,...t},String(n))))}):null)),$n=g((({className:e,title:t,description:n,tariffsColumns:i,rowHeaders:r,orientation:a="vertical",...l})=>{const s=In(i),o=An(r,s);return p("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[t?u(R,{headingType:"h2",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?u("div",{className:"mb-5 text-center text-m",children:n}):null,u("vertical"===a?_n:Tn,{tiles:o,...l})]})})),In=e=>e?.[0]?.data?e[0].data:[],An=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),jn={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},Rn=g((({title:e,description:t,blockVersion:n="primary",iconVersion:i,image:r,className:a="",items:l,isDotted:s=!0})=>{const o=jn[n];return p("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${a}`,children:["small"===i?Dn(o.icon):null,"big"===i?Mn(r):null,p("div",{className:"py-0.5",children:[e?u("div",{className:`text-l font-medium mb-1 ${o.title}`,children:e}):null,t?u("div",{className:`text-s ${o.description}`,children:t}):null,l?.length?u(an,{className:"mt-1 text-m",items:l,isDotted:s}):null]})]})}));function Dn(e){return u("div",{className:"mb-3",children:u("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function Mn(e){return e?.src?u(te,{className:"pb-3 mr-auto",image:e}):null}const Bn={Accordion:B,AccordionItem:ae,ComparisonTable:Je,Footer:vt,Header:Dt,Headline:Bt,LinkDocs:Ht,LinkList:et,MobileAppTile:ot,ProductBlock:un,StepsBlock:fn,TariffsTable:$n,TextBlock:Rn,Placeholder:Wt};const Vn=["Header","Footer"],Ln=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function On(e=globalThis){const t=s(new Map);r((()=>$.subscribe("intersection",(({block:e,intersection:n})=>{t.current&&t.current.set(e,n)}))),[]),r((()=>{const n=((e,t=600)=>{let n;const i=(...r)=>{i.dispose(),n=setTimeout((()=>{e(...r)}),t)};return i.dispose=()=>{n&&clearTimeout(n)},i})((()=>{!function(e){const t=`#${n=e?.anchor,n?.replace("#","")||""}`;var n;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!Vn.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[n]=t.length>0?fe(Ln)(t):[];return n}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",n),()=>{n.dispose(),e.removeEventListener("scroll",n)}}),[e])}const Pn=h();const zn=g((({className:e,onClick:t,ariaLabel:n})=>u("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:En()}))),En=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return p("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[u("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),u("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Hn=g((({className:e=""})=>{const t=function(e){const[t,n]=i(0);return r((()=>{(async()=>{const[t]=await Pn.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:a((async()=>{n(await Pn.like(e))}),[e]),dislike:a((async()=>{n(await Pn.dislike(e))}),[e])}}(O().pathname);return p("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[u(zn,{onClick:ke(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(zn,{onClick:ke(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),Fn=g((e=>{const{className:t="",blocksRegistry:n,blockDecorator:i,data:r={}}=e,{style:a,blocks:l,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:n,blockDecorator:i,parent:r};return On(),p("section",{className:x("relative",a,t),"data-theme":c,children:[s?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:w(s?.header,{...d,slotName:"header"})}):null,p("div",{className:"container grid grid-cols-12 gap-1",children:[w(l,d),s?.footer?w(s?.footer,{...d,slotName:"footer"}):null]}),o?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(Hn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));Fn.childrenTypes=[],Fn.slots=()=>["header","footer"];e.Blocks=Bn,e.ContentPage=Fn,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=h,e.handlerDecorator=ke,e.joinList=function(e){return t=>t.reduce(((t,n,i)=>t.length?t.concat({...e,key:i},n):[n]),[])},e.packageVersion="0.8.19",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=F,e.useRouter=O,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),i=n("useState"),r=n("useEffect"),a=n("useCallback"),l=n("useMemo"),s=n("useRef");const o={PROD_BRANCH:"master"},c=new class{_=o;setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH||o.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return d(this._.CDN)}get BASE_PATH(){return d(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d=e=>e&&!e.endsWith("/")?`${e}/`:e,m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage?.setItem(m,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:i}=await e.json();return i||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:i},body:JSON.stringify({node_id:t,user_name:i})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:i},body:JSON.stringify({node_id:t,user_name:i})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),p=(...e)=>globalThis._uni._jsxs(...e),g=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:b(e)),t._tmpl},b=e=>{function t(t,n){const{children:i,...r}=t||{},a=n?.slots?.default,l=i||a&&a();return e(Object.assign(r,l&&{children:l}),n)}return t.inheritAttrs=!1,t},x=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),f=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),N=[];function y(e,t){const{key:n,blockDecorator:i=f,blocksRegistry:r={},ancestors:a=N,className:l="",extraProps:s={}}=t,{type:o}=e;o&&o in r||console.warn(`No block with "${o}" is registered`);const c=o&&r[o];return i({blockClassName:x("scroll-mt-12",l,e.style||"col-span-12"),block:e,ancestors:a,render:({block:i,blockClassName:r})=>{const{content:a}=i;return c?u(c,{className:r,block:e,options:t,...a,...s},n):null}},n)}const v=[],w=(e,{key:t,ancestors:n=v,slotName:i=null,renderProps:r=y,...a})=>(e||[]).map(((e,l)=>r(e,{...a,key:`${t||e.type}-${l}`,ancestors:a.parent?[...n||v,[a.parent,i]]:n})));function k({children:e,block:t,options:n,renderProps:i}){return e||(t&&n?w(t.blocks,{...n,parent:t,renderProps:i}):null)}class C{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const S=new C;function T(e,{sensitivity:t,rootRef:n}={}){const i=s(null),a=l((()=>({threshold:_(t),root:n?.current})),[t,n?.current]);return r((()=>{if(!i.current)return;const t=new IntersectionObserver(e,a);return t.observe(i.current),()=>{t.disconnect()}}),[e,a]),i}function _(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const $=new C;const I={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},A=g((({className:e="",version:t="primary",block:n,tag:l="section",role:s,children:o})=>{const c=l,d=function(e){return T(a((t=>{if(!e||!t?.length)return;const n=t[t.length-1];$.fire("intersection",{block:e,intersection:n})}),[e]),{sensitivity:1})}(n),[m,h]=i(!1);return r((()=>S.subscribe("tab",(e=>{h(Boolean("group"===e.type&&e.label&&n?.labels?.length&&!n.labels.includes(e.label)))}))),[n]),u(c,{className:x("group",I[t],m?"hidden":"",e),...t?{"data-ver":t}:{},...n?.anchor?{id:n.anchor,ref:d}:{},role:s,children:o})})),j={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},R=g((e=>{const{className:t,headingType:n="h3",title:i,as:r="h3"}=e;return u(r,{className:`font-sans font-medium m-0 ${j[n]} ${t||""}`,children:i})})),D=g((({children:e,...t})=>u("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),M=g((({children:e})=>u("ul",{className:"list-none m-0 p-0",children:e}))),B=g((({title:e,description:t,className:n="",...i})=>p(A,{className:`py-6 px-4 ${n}`,...i,children:[e?u(R,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?u("div",{className:"mb-5",children:u(D,{size:"text-m",font:"font-light",align:"text-center",children:t})}):null,u(M,{children:k(i)})]})));B.childrenTypes=["AccordionItem"];const V=g((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:n=!1,renderFoldableSection:r,renderFoldButton:l})=>{const[s,o]=i(n),c=a((()=>{o((e=>!e))}),[]),d=r({isUnfolded:s,onToggle:c}),m=l?l({isUnfolded:s,onToggle:c}):null;return p("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),L=g((({className:e="",isUnfolded:t,children:n})=>{const i=s(null);return r((()=>{i.current&&(i.current.style.maxHeight=t?`${i.current.scrollHeight}px`:"")}),[t,n?.length]),u("div",{ref:i,className:`transition-max-h duration-300 overflow-hidden ${i.current||!t?"max-h-0":""} ${e}`,children:n})}));function O(){return O._impl()}O._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),O.setup=e=>{O._impl=e};const P=e=>Boolean(e?.includes(":")),z=(e,t)=>Boolean(e&&!P(e)&&(!t||"_self"===t)),E=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),H=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var F=Object.freeze({__proto__:null,isURL:P,isLocalURL:z,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:E,joinPath:H});const G=e=>t=>{if(!t||P(t)||c.CDN&&t.startsWith(c.CDN))return t;const n=t.startsWith("/");return H(c.BASE_PATH,n?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},J={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},U=g((({className:e="",imageClassName:t="",name:n="",alt:i=`Иконка ${n}`,title:r=i,iconVersion:a="color",asSVG:l,...s})=>{const o=O(),d=G(o)(H(c.CDN,"/icons",`${n}.svg`));return l&&"normal"!==a?u(Y,{className:e,children:p("svg",{className:x(W(s.width),J[a],"white"===a?"invert":"",t),...s,"aria-hidden":"true",children:[r?u("title",{children:r}):null,i?u("desc",{children:i}):null,u("use",{href:`${d}#icon`,xlinkHref:`${d}#icon`})]})}):u("img",{className:e,src:d,alt:i,title:r,...s,"aria-hidden":"true"})})),W=e=>e?"":"w-full h-full",Y=g((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),X=(e,t)=>e?.media&&t?.media?e.media-t.media:0,K=g((({className:e="",image:t,imageClassName:n="",isMobile:i=!1,pathPrefix:r})=>{const a=O();return p("picture",{className:`${i?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(X).map((({src:e,format:n,media:i},l)=>u("source",{srcSet:Q(a,r)(e),type:Z(n),media:i?`(max-width: ${i}px)`:"",...t.size},`${l}_${e}`))):null,t?.src?q({...t,src:Q(a,r)(t.src)},n,i):null]})})),q=(e,t="",n=!1)=>{const i={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",a=e.alt||e.title,l=n?"m-auto":"m-0";return u("img",{src:e.src,className:`${l} ${t}`,alt:a,title:r,style:i,...e.size})},Q=(e,t)=>n=>n&&!P(n)?G(e)(H(t,n)):n,Z=e=>e?`image/${String(e)}`:void 0,ee=g((({className:e="",image:t,imageClassName:n="",isMobile:i,pathPrefix:r,...a})=>t?.src||t?.icon?t.icon?u(U,{className:e,imageClassName:n,iconVersion:t?.iconVersion||"normal",name:t.icon,...a}):u(K,{className:e,imageClassName:n,image:t,isMobile:i,pathPrefix:r}):null)),te=g((e=>u(ee,{...e,isMobile:!0}))),ne=g((({children:e,...t})=>u("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),ie=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),re=["PlusIcon","MinusIcon"],ae=g((({className:e="",label:t="",labelIcon:n,isExpanded:i,...r})=>{const{bordered:a}=function(e,t){const{content:n}=function(e){return e?.parent||{}}(e);return n||t}(r.options,{});return u("li",{className:`${a?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"} border-solid border-main-divider ${e}`,children:u(V,{isFoldButtonOnTop:!0,unfoldedByDefault:i,renderFoldableSection:({isUnfolded:e})=>u(L,{className:"flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0",isUnfolded:e,children:k(r)}),renderFoldButton:({isUnfolded:e,onToggle:i})=>u(le,{className:a?"":"py-3.5 px-0",label:t,icon:re[Number(e)],primaryIcon:n,onClick:i})})})}));ae.childrenTypes=[];const le=g((({className:e,icon:t,label:n,primaryIcon:i,onClick:r})=>p("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${e}`,onClick:r,children:[p("div",{className:"flex group-hover:text-primary-main",children:[i?u(te,{image:ie(i),className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,u(ne,{size:"text-m-title-xs",font:"font-medium",children:n})]}),u(te,{className:"flex-shrink-0",image:ie({icon:t}),width:"24",height:"24",asSVG:!0})]}))),se=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),oe=g((({className:e="",style:t,idx:n,activeIndex:i,observerOptions:r,children:l,onIntersection:s})=>{const o=T(a((e=>{e.length&&s&&s(n||0,e[e.length-1])}),[s,n]),r);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,role:"listitem","aria-current":Boolean(n===i),ref:o,children:l})})),ce=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],de=g((({className:e="",containerRef:t,activeIndex:n,visibleItemCount:i=0,gap:r=0,padding:l=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:m,onVisibleItemsChange:h,onVisibleIndicesChange:p})=>{const g={sensitivity:1,rootRef:t},b=s([]),f=a(((e,t)=>{const n=[...b.current||[]];n[e]=t,b.current=n,h&&h(n),p&&p(he(n))}),[h,p]),N=i>0?r*Number(i)-1:0,y="vertical-list"===o,v="horizontal-list"===o,w={...v?me(l,N):{},...y?se(d):{},gap:`${r}px`};return u("div",{className:x("box-border overflow-auto no-scrollbar",o,e),style:w,role:"list",ref:t,children:(k=(e,t)=>u(oe,{className:x(c,i?ce[i-1]:"",y?"h-full":""),style:v?me(l/4):{},activeIndex:n,idx:t,observerOptions:g,onIntersection:f,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(k):k(e,0))(m)});var k})),me=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),he=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),ue={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},pe={"horizontal-list":"w-6","vertical-list":"h-6"},ge=g((({containerRef:e,activeIndex:t,dotCount:n=0,listType:i="horizontal-list"})=>n?u("div",{className:`flex gap-2 ${ue[i]}`,children:new Array(n).fill(null).map(((n,r)=>u("div",{className:`cursor-pointer bg-primary-main rounded-full transition-width duration-300 group-data-secondary:bg-white group-data-transparent:bg-white ${r===t?pe[i]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(n=>{n!==t&&e?.current&&e.current.children[n]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(r)},String(r))))}):null)),be=e=>e,xe=(e=be)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),fe=(e=be)=>xe((t=>-e(t))),Ne=e=>t=>e.scrollWidth/t,ye=e=>(t,n)=>{e.scrollBy({left:n*Ne(e)(t),behavior:"smooth"})},ve=({itemCount:e,isCyclic:t,onVisibleIndicesChange:n})=>{const r=s(null),[l,o]=i([]),c=a((e=>{o((t=>{return(n=t)===(i=e)||Boolean(n&&i&&n?.length===i?.length&&n.every(((e,t)=>e===i[t])))?t:e;var n,i})),n&&n(e)}),[e]),[d,m]=l.length?[fe()(l),xe()(l)]:[-1,-1],h=d>0,u=m<e-1,p=a((()=>{var n;r.current&&(t&&!h?(n=r.current).scrollTo({left:n.scrollWidth,behavior:"smooth"}):ye(r.current)(e,-1))}),[t,e,h]),g=a((()=>{r.current&&(t&&!u?r.current.scrollTo({left:0,behavior:"smooth"}):ye(r.current)(e,1))}),[e,t,u]);return[r,{scrollLeft:p,scrollRight:g,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},we=g((({className:e="",gap:t=14,padding:n=16,showDots:i=!0,minHeight:r,children:a,onVisibleIndicesChange:l,listType:s="horizontal-list"})=>{const o=Array.isArray(a)?a.length:0,[c,d]=ve({itemCount:o,onVisibleIndicesChange:l}),[m]=d.visibleIndicesRange;return p("div",{className:x(e,"vertical-list"===s?"relative h-full":""),children:[u(de,{containerRef:c,activeIndex:m,visibleItemCount:1,gap:t,padding:n,onVisibleIndicesChange:d.handleVisibleIndicesChange,listType:s,minHeight:r,children:a}),i?u(ge,{containerRef:c,activeIndex:m,dotCount:o,listType:s}):null]})})),ke=(e,t)=>ke._impl(e,t);function Ce(e=!1){const t=O();return i=>({...i,href:e?i.href:G(t)(i.href),"aria-label":i.text,onClick:ke(n(i),i)});function n({href:n,target:i,onClick:r}){return a=>{r&&r(a),n&&!e&&z(n,i)&&(a?.preventDefault(),t.push(n))}}}ke._impl=e=>e,ke.setup=e=>{ke._impl=e};const Se={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},Te="bg-main-divider text-main-disabled",_e={primary:Te,secondary:Te,white:Te,link:"",transparent:"",gray:Te,"":""},$e="text-center font-sans select-none",Ie={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},Ae=g((e=>{const{text:t,aboveText:n,appendLeft:i,appendRight:r,version:a="primary"}=e;return p("div",{className:je(e),children:[i?u("div",{className:Ie[a],children:i}):null,Re(e)?p("div",{children:[n?u("div",{className:"text-xs-light text-left",children:n}):null,u("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?u("div",{className:Ie[a],children:r}):null]})})),je=e=>{const{version:t,aboveText:n,rounded:i}=e;if("link"===t)return"";const r="gap-2 "+(n?"py-2.5 px-7":"py-4 px-4");return["group/btn flex items-center justify-center",Re(e)?r:"h-12 w-12",i?"rounded-full":""].join(" ")},Re=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),De=({className:e,rounded:t,version:n})=>["inline-block",$e,n?_e[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Me=({className:e,rounded:t,version:n})=>[$e,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border",n?Se[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Be=g((({disabled:e,children:t,...n})=>{const i=Ce()(n),r=t??u(Ae,{...i});return u(e?Le:Ve,{...i,children:r})})),Ve=g((({className:e="",href:t,rel:n,target:i,ariaLabel:r,version:a,rounded:l,onClick:s,children:o})=>u("a",{className:Me({className:e,version:a,rounded:l}),href:t,rel:n,target:i,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),Le=g((({className:e,ariaLabel:t,version:n,rounded:i,children:r})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:De({className:e,rounded:i,version:n}),children:r}))),Oe=(e=!1)=>e?"text-white":"",Pe=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),ze=g((({icon:e,image:t,title:n,subtitle:i,isFillGradient:r})=>p("div",{role:"columnheader",children:[e?u(te,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&u("div",{className:"mb-3.5",children:u(te,{image:t})}),n?u(R,{headingType:"h4",className:Oe(r),title:n}):null,i?u("div",{className:Pe(r),children:i}):null]}))),Ee=g((({cell:e,rowHeader:t,isFillGradient:n=!1})=>u("div",{className:"box-border flex flex-col",role:"cell",children:u("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(He(n,t))})}))),He=(e,t)=>({label:n,description:i},r)=>p("div",{className:"flex justify-between text-s py-3.5",children:[u("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),p("div",{className:"basis-1/2",children:[n?u("div",{className:"text-right "+(e?"text-white":""),children:n}):null,i?u("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:i}):null]})]},String(r)),Fe=g((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:i,showRow:r,onToggleColumn:a})=>{const l=t?.slice(0,r?t.length:n),s=i?"secondary":"primary";return p("div",{className:`border border-gray rounded-md p-4 mb-3.5 ${i?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[u(ze,{...e,isFillGradient:i}),l?.length?l.map((({rowHeader:e,cell:t},n)=>u(Ee,{cell:t,rowHeader:e,isFillGradient:i},String(n)))):null,r&&e?.link?u(Be,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,Ge({onToggleColumn:a,isFillGradient:i,showRow:r})]})})),Ge=({onToggleColumn:e,isFillGradient:t,showRow:n})=>u("div",{className:"mt-5",role:"cell",children:u("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),Je=g((e=>{const{className:t,title:n}=e;return p("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[n?u(R,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,u("div",{role:"table",children:u(Ue,{...e})})]})})),Ue=g((({columns:e=[],rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:r,orientation:l,...s})=>{const[o,c]=i(new Array(e.length).fill(!r)),d=a((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),m=a((()=>c((e=>new Array(e.length).fill(!1)))),[]),h=e?.map((({data:e,header:i},a)=>{return u(Fe,{visibleRowLength:r,showRow:o[a],header:i,columnData:(l=e,l?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===a&&n,onToggleColumn:()=>d(a),...s},String(a));var l}));return"horizontal"===l?u(we,{onVisibleIndicesChange:m,children:h}):h})),We=new Map;function Ye(e,t,{fallback:n}={}){const a=l((()=>Xe(e)),[e]),[s,o]=i(),[c,d]=i(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!a.every((e=>null===e)))try{const e=t(...a);"then"in e?(e=>{e.then((e=>We.get(a)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...a]);const u=a[0],p=n&&"string"==typeof u&&n[u];return{data:!s&&p?p:s,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function Xe(e){return e?Array.isArray(e)?e:e instanceof Function?Xe(e()):[e]:[e]}async function Ke(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function qe(e,t={}){const{data:n}=Ye(`/wcms-resources/${e}.json`,Ke,{fallback:t});return n||{}}const Qe=g((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:r}=(()=>{const[e,t]=i("");return{term:e,setTerm:e=>t(e)}})(),a=t?"text-s":"text-l-light",l=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return p("form",{className:`font-sans relative ${e}`,children:[p("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[u("div",{className:t?"w-5 h-5":"w-6 h-6",children:u(te,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),n?null:u("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${a}`,children:"Поиск по сайту"})]}),u("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text ${l}`,value:n,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?u("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),r("")},children:u(te,{image:{icon:"CloseIcon"},width:"24",height:"24"})}):u(Be,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:u("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),Ze=g((e=>u(Qe,{...e,isMobile:!0}))),et=g((({className:e="",documents:t,...n})=>u(A,{className:`mt-2.5 ${e}`,...n,children:u("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?tt(t):null})}))),tt=e=>e.map(((e,t)=>{const{text:n,...i}=e;return u("li",{className:"mb-4 list-none",children:u("a",{className:"hover:text-primary-main",role:"link",...i,children:n||null})},`list_item_${String(t)}`)})),nt={"bg-white":"color",transparent:"white"},it={"bg-white":"text-primary-main",transparent:"text-white"},rt=(e,t,n)=>u(te,t?.src?{image:t,className:it[e],width:n?.width,height:n?.height,pathPrefix:"/wcms-resources/",asSVG:!0}:{image:{icon:t?.icon||"LogoIcon",iconVersion:nt[e]},className:it[e],width:n?.width,height:n?.height,asSVG:!0}),at={"bg-white":"text-primary-text",transparent:"text-white"},lt=(e,t,n)=>u("span",{className:`${at[t]} ml-2.5 font-medium ${n||""}`,children:e||"Россельхозбанк"}),st=g((({bgColor:e="bg-white",children:t,className:n="",href:i,logo:r,showTitle:a=!0,targetBlank:l})=>p("a",{className:`inline-flex items-center font-sans no-underline ${n}`,href:i||"https://rshb.ru/",target:l?"_blank":"_self","aria-label":r?.title||"Россельхозбанк",children:[rt(e,r?.image,{width:"34",height:"34"}),a?lt(t||r?.title,e,"text-s"):null]}))),ot=g((({className:e="",title:t="Мобильное приложение",description:n,href:i="#"})=>u("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:i?p("div",{className:"flex",children:[u("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-12 h-12",children:u(st,{className:"w-8",bgColor:"transparent",showTitle:!0})}),p("a",{href:i,target:"_blank",className:"flex flex-col justify-center pl-3",children:[u("div",{className:"text-s font-medium mb-[3px]",children:t}),u("div",{className:"text-s text-secondary-text",children:n})]})]}):null}))),ct=g((({className:e="",items:t,hasButton:n})=>p("div",{className:e,children:[t?.length?t.map(dt):null,n?u(Be,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),dt=(e,t)=>{const{type:n,text:i,description:r}=e;return p("div",{className:"mb-4",children:[u("div",{children:mt(n,i)}),u("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},mt=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${ht(t)}`,children:t});case"email":return u("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},ht=e=>e.replaceAll(/\D/g,""),ut=g((({className:e="",index:t,text:n,...i})=>{const r=Ce(),{href:a,target:l,onClick:s}=r(i);return u("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:l,onClick:s,children:n||`Документ ${t}`})})),pt=g((({title:e,links:t,className:n=""})=>p("div",{className:n,children:[u("span",{className:"text-primary-text text-s font-medium",children:e}),t?.length?u("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>u(ut,{index:t,className:"text-s",...e},String(t))))}):null]}))),gt=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],iconMapped:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"},label:"Youtube"}],bt={default:"w-14 h-14",small:"w-12 h-12"},xt=g((({iconVersion:e="color",buttonSize:t="default",rounded:n=!1,icon:i,...r})=>{const{href:a,version:l}=r,{iconMapped:s,label:o}=gt.find((({origins:e})=>e.some((e=>a?.includes(e)))))||{},c=i??s,d=c?{...ie(c),iconVersion:e}:void 0;return u(Be,{className:x("group/media flex items-center justify-center box-border",bt[t],n?"rounded-full":"rounded-md","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",bt[t]),"aria-label":o,target:"_blank",rel:"noopener noreferrer",version:l,...r,children:d?u(te,{image:d,imageClassName:"group-hover/media:text-white",width:"24",height:"24",asSVG:!0}):null})})),ft=g((({className:e="",media:t})=>u("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e}`,children:t?.map(((e,t)=>u(xt,{...e},String(t))))}))),Nt=g((({className:e="",index:t,...n})=>{const i=Ce(),{href:r,target:a,text:l,onClick:s}=i(n);return u("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:a,onClick:s,children:l||`Документ ${t}`})})),yt=g((({className:e="",links:t})=>p("div",{className:e,children:[u("div",{className:"py-6",children:u("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>u(Nt,{index:t,...e},String(t))))}):null]}))),vt=g((({className:e="",...t})=>{const n=t.options?.page?.fallback,i=qe(c.SITEMAP||"sitemap",n),{documents:r,relatedEnterprises:a,contacts:l,socialMedia:s,horizontalNavigationTitle:o}=qe(c.FOOTER||"footer",n);return p("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[u(ct,{className:"overflow-hidden",items:l,hasButton:!0}),u(M,{children:i.topItems?.map(((e,t)=>u(ae,{label:e.text,children:u(et,{documents:e.items})},String(t))))}),u("div",{children:i?.dispositions?.map(wt)}),u(ot,{title:"Мобильное приложение",description:"Загрузить для IOS и Android",...t}),u(Ze,{className:"grow"}),u(ft,{className:"pb-4",media:s}),u(pt,{title:o,links:a}),u(yt,{links:r})]})})),wt=(e,t)=>{const{icon:n,href:i,text:r}=e;return p(Be,{version:"link",href:i,className:"flex text-s mb-4 w-6",children:[n?u(te,{className:"pr-1",image:ie(n),width:"24",height:"24",asSVG:!0}):null,u("span",{className:"pl-2.5 font-medium text-primary-text",children:r})]},`footer-${t}`)},kt=e=>({href:t})=>E(P(t)?e.href:e.pathname).startsWith(E(t)),Ct=g((({className:e="",active:t,dataItemName:n,children:i,...r})=>{const a=Ce(),{href:l,target:s,text:o,onClick:c}=a(r);return p("a",{className:x("relative inline-block bg-transparent text-center no-underline",e),href:l,target:s,"data-item-name":n,onClick:c,children:[u("span",{className:St(t),children:o||i}),t?u("div",{className:"absolute left-0 -bottom-3 w-full h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),St=(e=!1)=>x("font-sans text-s",e?"text-primary-main":"text-secondary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),Tt=864e5;function _t(e,t,n=globalThis?.localStorage){const i=a((async(...i)=>{const r=`async:${e}`,a=function(e){const{data:t=null,timestamp:n=null}=e?JSON.parse(e):{};return t&&Date.now()-n<Tt?t:void 0}(n.getItem(r));if(a)return a;const l=await t(...i);return n.setItem(r,JSON.stringify({data:l,timestamp:Date.now()})),l}),[e,t]);return Ye(e,i)}const $t=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}},It=g((({burgerSubMenu:e,onClick:t,defaultLocation:n="",children:l})=>{const[s]=function(e){const t=$t(),[n,l]=i(t?.region??{name:e}),{data:s}=_t("/api/v1/region",Ke);return r((()=>{l(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[n,a((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),l(e)}),[l])]}(n);return p("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[u("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:t,children:u(te,{image:{icon:"CloseIcon"},width:"24",height:"24",asSVG:!0})}),p("button",{className:"flex items-center text-s p-0 mb-4 bg-transparent cursor-pointer",children:[u(te,{image:{icon:"GeolocationIcon"},width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),u(ne,{color:"text-secondary-text",children:s.name})]}),l,u("div",{className:"mb-7",children:e?.map(At)}),u(Ze,{className:"grow"})]})})),At=(e,t)=>{const{icon:n,href:i,text:r}=e;return p("a",{href:i,className:"flex text-s mb-4 hover:text-primary-main",children:[n?u(te,{className:"text-primary-main pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,u("span",{className:"font-medium pl-0.5",children:r})]},`headerSubMenu-${t}`)},jt=g((({onClick:e,bgColor:t,logo:n})=>p("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-12",children:[p("div",{className:"flex items-center",children:[u("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:u(te,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),u(st,{className:"mr-8",bgColor:t,logo:n})]}),u("button",{className:"text-primary-main group-data-transparent:text-white group-data-transparent:hover:text-primary-hover text-s border-0 bg-transparent",children:"Войти"})]}))),Rt={"bg-white":"primary",transparent:"transparent"},Dt=g((({bgColor:e="bg-white",version:t=Rt[e],...n})=>{const r=O(),l=n.options?.page?.fallback,{topItems:s,dispositions:o,defaultLocation:d,logo:m}=qe(c.SITEMAP||"sitemap",l),h=s?.find((e=>kt(c.BASE_PATH?{pathname:c.BASE_PATH}:e))(r)),g=h?.items,b=(e=>(t=[])=>{const n=t?.filter(kt(e));return n?.length?xe((e=>e.href?.length||0))(n):void 0})(r)(g),[x,f]=i(!1),N=a((()=>f((e=>!e))),[]);return p(A,{tag:"header",version:t,...n,children:[p("div",{className:"container px-4 py-0 box-border",children:[u(jt,{onClick:N,bgColor:e,logo:m}),u("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-12",children:u("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:g?.map(((e,t)=>u(Ct,{className:"mr-8 whitespace-nowrap text-s",active:e===b,...e},String(t))))})})]}),x?u(It,{onClick:N,burgerSubMenu:o,defaultLocation:d,children:u(M,{children:s?.map(((e,t)=>u(ae,{label:e.text,children:u(et,{documents:e.items})},String(t))))})}):null]})})),Mt={XXL:{wrapper:"gap-[18px]",title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5"},XL:{wrapper:"gap-4",title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl-light"},L:{wrapper:"gap-4",title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl-light"},M:{wrapper:"gap-3",title:{headingType:"h3",as:"h3"},descriptionSize:"text-xl-light"},S:{wrapper:"gap-2",title:{headingType:"h4",as:"h4"},descriptionSize:"text-xl-light"},XS:{wrapper:"gap-2",title:{headingType:"h5",as:"h5"},descriptionSize:"text-l-light"}},Bt=g((({className:e,title:t,description:n,headlineVersion:i="XL",align:r="text-center",as:a,version:l="",...s})=>{const o=Mt[i];return p(A,{className:x("flex flex-col p-12",o.wrapper,e),version:l,...s,children:[t?u(R,{className:x("whitespace-pre-wrap",r),...o?.title,as:a||o?.title.as,title:t}):null,n?u(D,{color:"group-data-secondary:text-white/80",size:o.descriptionSize,align:r,children:n}):null]})})),Vt=g((({className:e,iconClassName:t,textClassName:n,suffixClassName:i,doc:r,icon:a})=>{const{text:l,fileSize:s,...o}=r;return p("a",{className:e,role:"link",...o,children:[a?u(te,{className:t,image:ie(a),width:"24px",height:"24px",asSVG:!0}):null,l?p("span",{className:n,children:[l,u("span",{className:i,children:o?.href&&Lt(Ot(o.href),s)})]}):null]})})),Lt=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Ot=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Pt=g((({className:e="",doc:t,icon:n})=>u(Vt,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),zt=g((({hasBorder:e=!0,documents:t,icon:n})=>u(we,{className:"text-s text-primary-main mt-5",children:t?.length?t.map(((t,i)=>u(Pt,{className:e?"rounded-md border-gray border border-solid p-4":"",doc:t,icon:n},String(i)))):null}))),Et=g((({hasBorder:e=!0,documents:t,icon:n})=>u("div",{className:"text-s text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,i)=>u("div",{role:"listitem",children:u(Pt,{className:e?"rounded-md border-gray border border-solid p-4":"",doc:t,icon:n})},String(i)))):null}))),Ht=g((({className:e="",title:t,description:n,icon:i={icon:"DocIconMonoColor"},documents:r,orientation:a="vertical",hasBorder:l=!0,align:s,...o})=>p(A,{className:x("py-6 px-4 overflow-x-hidden",e),...o,children:[u(Bt,{className:"!p-0 "+(n?"gap-2":"gap-5"),title:t,description:n,align:s,headlineVersion:"M",as:"h2"}),u("vertical"===a?Et:zt,{hasBorder:l,documents:r,icon:i})]}))),Ft=e=>{const t="col-span-",n=e?.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Gt(e=""){const t=Ft(e);return t<=4?"S":t<=8?"M":"L"}function Jt(e=""){const t=Ft(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Ut(e=""){const t=Ft(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Wt=g((({className:e,title:t,description:n="Блок в разработке...",...i})=>p(A,{className:x("p-9 box-border",e,Ut(e),Jt(e)),...i,children:[u(Bt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:Gt(e)}),u("figure",{className:"m-0 min-w-[80%]",children:Yt()})]}))),Yt=(e=3)=>Kt(100,e).map((e=>Math.floor(e))).map(Xt),Xt=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Kt=(e,t)=>[e].concat(t>0?Kt(e/1.618,t-1):[]),qt=(e,{className:t="",buttonClassName:n,isVertical:i}={})=>e?.length&&e.some((e=>e?.text))?u("div",{className:x("flex",i?"flex-col gap-2":"gap-4",t),children:e.map(Qt(n))}):null,Qt=(e="")=>(t,n)=>{const{text:i,icon:r,iconRight:a,version:l,...s}=t||{},o="secondary"===l?"color":"white";return i?u(Be,{className:e,appendLeft:Zt({...r,iconVersion:o}),appendRight:Zt({...a,iconVersion:o}),version:l,text:i,...s},n?String(n):""):null},Zt=e=>e?.icon||e?.src?u(te,{image:e,width:String(e?.size?.width||24),height:String(24),asSVG:!0}):null,en={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},tn=g((({className:e="",isDotted:t=!0,children:n,size:i="M"})=>p("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?u("div",{children:u("div",{className:`rounded-full align-middle inline-block bg-primary-text group-data-secondary:bg-white ${en[i]}`})}):null,u("span",{children:n})]}))),nn={S:"text-l-light",M:"text-h6",L:"text-h5"},rn={S:"ml-2",M:"ml-3",L:"ml-4"},an=g((({className:e="",hasIndent:t,isDotted:n,itemClassName:i="",items:r,listItemSize:a="M"})=>r?.length?u("section",{className:`text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text ${nn[a]} ${t?rn[a]:""} ${e}`,role:"list",children:r.map(((e,t)=>u(tn,{className:`${i} mb-1.5`,isDotted:n,size:a,children:e},String(t))))}):null)),ln=g((({className:e="",title:t="",buttons:n,image:i,children:r})=>p("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,p("div",{className:"flex grow w-full justify-between",children:[p("div",{className:"flex flex-col justify-between w-full",children:[u("div",{className:"h-full",children:r}),n?u("div",{className:"mt-auto pt-8",children:n}):null]}),i]})]}))),sn=g((e=>{const{className:t="",icon:n,label:i,description:r,version:a="primary",benefitsVersion:l="normal"}=e,s="white"===l?"secondary":"primary";return p("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[n?u("div",{className:on(a,l),children:u(te,{className:"w-6 h-6",image:ie(n,s),asSVG:!0})}):null,p("div",{className:"gap-0.5",children:[i?u("div",{className:"text-h6 text-primary-text group-data-secondary:text-white",children:i}):null,r?u("div",{className:"text-m-light text-secondary-text group-data-secondary:text-white",children:r}):null]})]})}));function on(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const cn=(e="primary",t="normal")=>({icon:n,label:i,description:r},a)=>u(sn,{icon:n,label:i,description:r,version:e,benefitsVersion:t},String(a)),dn=g((({className:e="",headlineVersion:t="L",benefits:n,benefitsVersion:i="normal",buttons:r,image:a,items:l,version:s="primary",isDotted:o=!0,label:c,title:d,description:m,...h})=>p(A,{className:`w-full ${e}`,version:s,...h,children:[p("div",{children:[c?hn(c):null,u(Bt,{className:"!p-0 max-w-[600px]",title:d,description:m,headlineVersion:t,align:"text-left"}),p(ln,{buttons:qt(r,{className:"mt-5",isVertical:!0}),children:[n?.filter((e=>e.label))?.length?u("div",{className:"mt-3",children:n.map(cn(s,i))}):null,l?.length?u(an,{className:"mt-3 text-m",items:l,isDotted:o}):null]})]}),mn(a)]})));function mn(e){return e?.src?u(te,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const hn=e=>u("div",{className:"w-fit px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid border-secondary-hover",children:u(ne,{color:"text-primary-main group-data-secondary:text-white/80",children:e})}),un=g((e=>{const{className:t="",...n}=e;return u(A,{className:`px-4 py-6 ${t}`,...n,children:u(dn,{...e})})})),pn=g((e=>{const{__html:t=""}=e;return u("div",{className:"md-container",dangerouslySetInnerHTML:{__html:t}})}));const gn={primary:{description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"},gray:{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"},transparent:{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"},"":{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},bn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-12 w-12 min-w-12 min-h-12"},xn={normal:"min-h-[70px]",small:"min-h-12"},fn=g((({className:e="",title:t,description:n,showLines:i=!0,steps:r,size:a="normal",version:l="primary",...s})=>{const o=gn[l];return p(A,{className:`box-border px-4 py-6 flex flex-col ${e}`,version:l,...s,children:[t?u(R,{headingType:"h3",className:"text-center",title:t}):null,n?u("p",{className:`text-m-light text-center ${o.description} ${t?"mt-2":""}`,children:n}):null,r?.length?u("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:u("div",{className:"flex flex-col justify-between gap-x-[101px]",children:r.map(Nn(a,l,i))})}):null]})})),Nn=(e,t,n)=>(i,r,a)=>{const{type:l}=i;if("default"!==l&&"rte"!==l)return null;switch(l){case"default":return yn(e,t,n)(i,r,a);case"rte":return u(pn,{__html:i.__html});default:!function(e){throw new Error(e)}(i)}},yn=(e,t,n)=>(i,r,a)=>{const l=a.length-1===r,s="normal"===e?"ml-[34px]":"ml-6",o=gn[t];return u("div",{children:p("div",{className:"flex flex-row text-center relative",children:[p("div",{className:"overflow-hidden flex-shrink-0",children:[vn(e,t)(i,r),l?null:u("div",{className:`min-h-8 h-full w-0.5 ${n?o.iconConnector:""} ${s}`})]}),p("div",{className:`flex flex-col justify-center h-fit ${xn[e]}`,children:[i.label?u("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:i.label}):null,i.description?u("div",{className:`text-s ${o.description} text-left`,children:i.description}):null]})]})},String(r))},vn=(e,t)=>(n,i)=>{const r="normal"===e?"38":"27",a="normal"===e?"text-m-title":"text-m-title-xs";return u("div",{className:`${bn[e]} ${gn[t].iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:u("span",{className:`font-medium flex self-center ${a}`,children:(l=n?.icon,Boolean(l?.icon||l?.src)?u(te,{image:ie({...n.icon},t),width:r,height:r,asSVG:!0}):u("span",{children:i+1}))})});var l},wn={Buttons:({buttons:e})=>qt(e,{className:"mt-3",buttonClassName:"w-12 h-12"}),Img:({image:e})=>e?.src?u(te,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>u(an,{className:"flex flex-col justify-between items-start text-m",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>p("div",{children:[e?u("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?u("div",{className:"text-s text-secondary-text",children:t}):null]})},kn=g((({title:e,icon:t})=>p("div",{className:"flex gap-2.5 mb-2",children:[e?u(R,{headingType:"h3",className:"font-medium",title:e}):null,t?u(te,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),Cn=g((({tile:e,...t})=>p("div",{className:"rounded-md border-gray h-full box-border border p-4",children:[u(kn,{...e?.header}),e?.data?.length?e.data.map(((e,n)=>p("div",{children:[n>0?u("div",{className:"h-5"}):null,Sn(e,t)]},String(n)))):null]})));function Sn(e,t){if(!e||!e.tableCellType||!(e.tableCellType in wn))return null;const n=wn[e.tableCellType];return u(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const Tn=g((({tiles:e,...t})=>e?.length?u(we,{...t,children:e.map(((e,n)=>u(Cn,{tile:e,...t},String(n))))}):null)),_n=g((({tiles:e,...t})=>e?.length?u("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>u(Cn,{tile:e,...t},String(n))))}):null)),$n=g((({className:e,title:t,description:n,tariffsColumns:i,rowHeaders:r,orientation:a="vertical",...l})=>{const s=In(i),o=An(r,s);return p("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[t?u(R,{headingType:"h2",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?u("div",{className:"mb-5 text-center text-m",children:n}):null,u("vertical"===a?_n:Tn,{tiles:o,...l})]})})),In=e=>e?.[0]?.data?e[0].data:[],An=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),jn={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},Rn=g((({title:e,description:t,blockVersion:n="primary",iconVersion:i,image:r,className:a="",items:l,isDotted:s=!0})=>{const o=jn[n];return p("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${a}`,children:["small"===i?Dn(o.icon):null,"big"===i?Mn(r):null,p("div",{className:"py-0.5",children:[e?u("div",{className:`text-l font-medium mb-1 ${o.title}`,children:e}):null,t?u("div",{className:`text-s ${o.description}`,children:t}):null,l?.length?u(an,{className:"mt-1 text-m",items:l,isDotted:s}):null]})]})}));function Dn(e){return u("div",{className:"mb-3",children:u("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function Mn(e){return e?.src?u(te,{className:"pb-3 mr-auto",image:e}):null}const Bn={Accordion:B,AccordionItem:ae,ComparisonTable:Je,Footer:vt,Header:Dt,Headline:Bt,LinkDocs:Ht,LinkList:et,MobileAppTile:ot,ProductBlock:un,StepsBlock:fn,TariffsTable:$n,TextBlock:Rn,Placeholder:Wt};const Vn=["Header","Footer"],Ln=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function On(e=globalThis){const t=s(new Map);r((()=>$.subscribe("intersection",(({block:e,intersection:n})=>{t.current&&t.current.set(e,n)}))),[]),r((()=>{const n=((e,t=600)=>{let n;const i=(...r)=>{i.dispose(),n=setTimeout((()=>{e(...r)}),t)};return i.dispose=()=>{n&&clearTimeout(n)},i})((()=>{!function(e){const t=`#${n=e?.anchor,n?.replace("#","")||""}`;var n;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!Vn.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[n]=t.length>0?fe(Ln)(t):[];return n}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",n),()=>{n.dispose(),e.removeEventListener("scroll",n)}}),[e])}const Pn=h();const zn=g((({className:e,onClick:t,ariaLabel:n})=>u("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:En()}))),En=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return p("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[u("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),u("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Hn=g((({className:e=""})=>{const t=function(e){const[t,n]=i(0);return r((()=>{(async()=>{const[t]=await Pn.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:a((async()=>{n(await Pn.like(e))}),[e]),dislike:a((async()=>{n(await Pn.dislike(e))}),[e])}}(O().pathname);return p("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[u(zn,{onClick:ke(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(zn,{onClick:ke(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),Fn=g((e=>{const{className:t="",blocksRegistry:n,blockDecorator:i,data:r={}}=e,{style:a,blocks:l,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:n,blockDecorator:i,parent:r};return On(),p("section",{className:x("relative",a,t),"data-theme":c,children:[s?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:w(s?.header,{...d,slotName:"header"})}):null,p("div",{className:"container grid grid-cols-12 gap-1",children:[w(l,d),s?.footer?w(s?.footer,{...d,slotName:"footer"}):null]}),o?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(Hn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));Fn.childrenTypes=[],Fn.slots=()=>["header","footer"];e.Blocks=Bn,e.ContentPage=Fn,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=h,e.handlerDecorator=ke,e.joinList=function(e){return t=>t.reduce(((t,n,i)=>t.length?t.concat({...e,key:i},n):[n]),[])},e.packageVersion="0.8.21",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=F,e.useRouter=O,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -5,7 +5,7 @@ import type { ButtonAdditionalProps } from '../../ui-kit/Button/ButtonProps';
5
5
  /**
6
6
  * @title Кнопка
7
7
  */
8
- export interface ButtonProps extends ButtonAdditionalProps {
8
+ export interface SubmitButtonProps extends ButtonAdditionalProps {
9
9
  /**
10
10
  * @title Текст
11
11
  * @default "Отправить заявку"
@@ -23,7 +23,7 @@ export declare type ApplicationFormContent = TitleProps & {
23
23
  * @enumNames ["Бизнес-карта", "ВЭД", "Депозит", "Кредит", "Эквайринг"]
24
24
  */
25
25
  typeForm?: 'business-card' | 'wed' | 'deposit' | 'credit' | 'acquiring';
26
- button?: ButtonProps;
26
+ button?: SubmitButtonProps;
27
27
  /** @title Условия передачи данных */
28
28
  link?: LinkProps;
29
29
  };
@@ -1,7 +1,7 @@
1
1
  import type { LinkProps } from '../../model/LinkProps';
2
- import type { ButtonProps } from './ApplicationFormContent';
2
+ import type { SubmitButtonProps } from './ApplicationFormContent';
3
3
  export interface ApplicationFormsProps {
4
- button?: ButtonProps;
4
+ button?: SubmitButtonProps;
5
5
  link?: LinkProps;
6
6
  handleSubmit: (data: Record<string, string>) => Promise<string>;
7
7
  }
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import type { ButtonProps } from './ApplicationFormContent';
3
- export declare const renderSubmitButton: (button?: ButtonProps, className?: string) => JSX.Element;
2
+ import type { SubmitButtonProps } from './ApplicationFormContent';
3
+ export declare const renderSubmitButton: (button?: SubmitButtonProps, className?: string) => JSX.Element;
@@ -1,6 +1,4 @@
1
1
  import type { CommonCalculatorProps } from './CalculatorContent';
2
- export declare const ANNUITY = "annuity";
3
- export declare const DIFFERENTIAL = "differential";
4
2
  export interface CreditCalculatorProp extends CommonCalculatorProps {
5
3
  className?: string;
6
4
  }
@@ -2,8 +2,8 @@ import { BonusCalculatorSourceBookParams } from './useBonusCalculatorParams';
2
2
  import { BusinessDepositCalculatorSourceBookParams } from './useBusinessDepositCalculatorParams';
3
3
  import { CreditCalculatorSourceBookParams } from './useCreditCalculatorParams';
4
4
  import { DepositCalculatorSourceBookParams } from './useDepositCalculatorParams';
5
- export declare const DEFAULT_MIN_SUM = 60000;
6
- export declare const DEFAULT_MAX_SUM = 2000000;
5
+ export declare const DEFAULT_MIN_SUM = 30000;
6
+ export declare const DEFAULT_MAX_SUM = 5000000;
7
7
  export declare const DEFAULT_SUM: number;
8
8
  export declare const DEFAULT_MIN_MONTHS = 13;
9
9
  export declare const DEFAULT_MAX_MONTHS = 60;
@@ -1,2 +1,10 @@
1
1
  /// <reference types="react" />
2
- export declare function renderInterestPayment(isMonthlyInterestPayment: boolean, callback?: (value: boolean) => void, title?: string): JSX.Element;
2
+ import { ListOrientation } from '../../model/ListOrientation';
3
+ interface InterestPaymentProps {
4
+ isMonthlyInterestPayment: boolean;
5
+ callback?: (value: boolean) => void;
6
+ title?: string;
7
+ orientation?: ListOrientation;
8
+ }
9
+ export declare function renderInterestPayment({ isMonthlyInterestPayment, callback, title, orientation, }: InterestPaymentProps): JSX.Element;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { ListOrientation } from '../../model/ListOrientation';
3
+ export declare const ANNUITY = "annuity";
4
+ export declare const DIFFERENTIAL = "differential";
5
+ interface PaymentTypeProps {
6
+ isAnnuity: boolean;
7
+ callback?: (value: boolean) => void;
8
+ title?: string;
9
+ orientation?: ListOrientation;
10
+ }
11
+ export declare function renderPaymentType({ isAnnuity, callback, title, orientation, }: PaymentTypeProps): JSX.Element;
12
+ export {};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { ListOrientation } from '../../model/ListOrientation';
3
+ interface RegistrationTypeProps {
4
+ isRemoteRegistration: boolean;
5
+ callback?: (value: boolean) => void;
6
+ title?: string;
7
+ orientation?: ListOrientation;
8
+ }
9
+ export declare function renderRegistrationType({ isRemoteRegistration, callback, title, orientation, }: RegistrationTypeProps): JSX.Element;
10
+ export {};
@@ -1,5 +1,5 @@
1
- import type { CommonDepositParams } from './useDepositCalculatorParams';
2
- export interface BusinessCommonDepositParams extends CommonDepositParams {
1
+ export interface BusinessCommonDepositParams {
2
+ isMonthlyInterestPayment: boolean;
3
3
  isReplenished: boolean;
4
4
  isPartialWithdrawal: boolean;
5
5
  isSmallBusiness: boolean;
@@ -20,6 +20,7 @@ export interface BusinessDepositCalculatorParams extends BusinessDepositCalculat
20
20
  income?: number;
21
21
  finalSum?: number;
22
22
  isDisabledOperatingDeposit?: boolean;
23
+ isShowUnknownRate?: boolean;
23
24
  }
24
25
  export declare type BusinessDepositCalculatorData = {
25
26
  rows: BusinessDepositCalculatorSourceBookParams[];
@@ -8,9 +8,7 @@ export interface CreditCalculatorSourceBookParams extends CommonCreditParams {
8
8
  maxSum: number;
9
9
  minMonths: number;
10
10
  maxMonths: number;
11
- rateBottomRange: number;
12
- rateTopRange: number;
13
- sumBorder: number;
11
+ rate: number;
14
12
  }
15
13
  export interface CreditCalculatorUserInputParams extends CommonCreditParams {
16
14
  isAnnuity: boolean;
@@ -19,7 +17,6 @@ export interface CreditCalculatorUserInputParams extends CommonCreditParams {
19
17
  }
20
18
  export interface CreditCalculatorParams extends CreditCalculatorSourceBookParams, CreditCalculatorUserInputParams {
21
19
  monthlyPayment: number;
22
- finalRate: number;
23
20
  }
24
21
  export declare type CreditCalculatorData = {
25
22
  rows: CreditCalculatorSourceBookParams[];
@@ -1,5 +1,6 @@
1
1
  export interface CommonDepositParams {
2
2
  isMonthlyInterestPayment: boolean;
3
+ isRemoteRegistration: boolean;
3
4
  }
4
5
  export interface DepositCalculatorSourceBookParams extends CommonDepositParams {
5
6
  minSum: number;
@@ -1,3 +1,4 @@
1
+ import { ListOrientation } from '../../model/ListOrientation';
1
2
  export interface RadioButtonItem {
2
3
  id: string;
3
4
  text?: string;
@@ -6,6 +7,7 @@ interface RadioButtonGroupProps {
6
7
  items?: RadioButtonItem[];
7
8
  checkedItem?: string;
8
9
  onChange?: (id: string) => void;
10
+ orientation?: ListOrientation;
9
11
  }
10
12
  export declare const RadioButtonGroup: import("@redneckz/uni-jsx").UNIComponent<RadioButtonGroupProps, any, any>;
11
13
  export {};
@@ -3,7 +3,7 @@ exports.CorporateLeadAPI = void 0;
3
3
  function CorporateLeadAPI() {
4
4
  async function send(body) {
5
5
  try {
6
- const response = await fetch('/api/v1/sendCorporateLead', {
6
+ const response = await fetch('/api/v1/sendcorporatelead', {
7
7
  method: 'POST',
8
8
  headers: { 'Content-Type': 'application/json' },
9
9
  mode: 'cors',
@@ -6,10 +6,10 @@ const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
6
  const Input_1 = require("../../ui-kit/Input/Input");
7
7
  const useGetRegions_1 = require("../SafeDepositRental/useGetRegions");
8
8
  const Footnote_1 = require("./Footnote");
9
+ const WrapperSelect_1 = require("./WrapperSelect");
9
10
  const normalizeSelectedRegion_1 = require("./normalizeSelectedRegion");
10
11
  const renderSubmitButton_1 = require("./renderSubmitButton");
11
12
  const useFormHandlers_1 = require("./useFormHandlers");
12
- const WrapperSelect_1 = require("./WrapperSelect");
13
13
  exports.ApplicationFormBusinessCard = (0, uni_jsx_1.JSX)((props) => {
14
14
  const { button, link, handleSubmit } = props;
15
15
  const [formState, setFormState] = (0, hooks_1.useState)({
@@ -44,5 +44,5 @@ exports.ApplicationFormBusinessCard = (0, uni_jsx_1.JSX)((props) => {
44
44
  }), renderDataOrganization({ name, phone, inn, mail, handleChange }), (0, renderSubmitButton_1.renderSubmitButton)(button, 'mb-4'), (0, jsx_runtime_1.jsx)(Footnote_1.Footnote, { link: link })] }));
45
45
  });
46
46
  const renderDataOrganization = ({ name, phone, mail, inn, handleChange, }) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between gap-5", children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-1/2", children: [(0, jsx_runtime_1.jsx)(Input_1.Input, { className: "shrink-0 text-l w-full mb-5", type: "text", "aria-label": "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", value: name, onChange: (value) => handleChange({ name: value }) }), (0, jsx_runtime_1.jsx)(Input_1.Input, { className: "shrink-0 text-l w-full mb-5", type: "text", "aria-label": "\u0418\u041D\u041D", label: "\u0418\u041D\u041D", value: inn, onChange: (value) => handleChange({ inn: value }) })] }), (0, jsx_runtime_1.jsxs)("div", { className: "w-1/2", children: [(0, jsx_runtime_1.jsx)(Input_1.Input, { className: "shrink-0 text-l w-full mb-5", type: "text", "aria-label": "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", value: phone, onChange: (value) => handleChange({ phone: value }) }), (0, jsx_runtime_1.jsx)(Input_1.Input, { className: "shrink-0 text-l w-full ", type: "text", "aria-label": "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", value: mail, onChange: (value) => handleChange({ mail: value }) })] })] }));
47
- const renderRegion = ({ regions, region, handleChange }) => ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-between gap-5 mb-5", children: (0, jsx_runtime_1.jsx)("div", { className: "w-full", children: (0, jsx_runtime_1.jsx)(WrapperSelect_1.WrapperSelect, { data: regions, fieldValue: "name", fieldLabel: "name", selected: region, setSelected: (value) => handleChange({ region: value }), label: "\u0420\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D" }) }) }));
47
+ const renderRegion = ({ regions, region, handleChange }) => ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-between gap-5 mb-5", children: (0, jsx_runtime_1.jsx)("div", { className: "w-full", children: (0, jsx_runtime_1.jsx)(WrapperSelect_1.WrapperSelect, { data: regions, fieldValue: "code", fieldLabel: "name", selected: region, setSelected: (value) => handleChange({ region: value }), label: "\u0420\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D" }) }) }));
48
48
  //# sourceMappingURL=ApplicationFormBusinessCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationFormBusinessCard.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationFormBusinessCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAuD;AAGvD,oDAAiD;AACjD,sEAAmE;AAEnE,yCAAsC;AAEtC,uEAAoE;AACpE,6DAA0D;AAC1D,uDAAoD;AACpD,mDAAgD;AAUnC,QAAA,2BAA2B,GAAG,IAAA,aAAG,EAAwB,CAAC,KAAK,EAAE,EAAE;IAC9E,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IAE7C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAwB;QAChE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,EAAE;QACR,KAAK,EAAE,EAAE;QACT,GAAG,EAAE,EAAE;QACP,IAAI,EAAE,EAAE;KACT,CAAC,CAAC;IAEH,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC;IAErD,MAAM,OAAO,GAAG,IAAA,6BAAa,GAAE,CAAC;IAEhC,MAAM,EAAE,YAAY,EAAE,GAAG,IAAA,iCAAe,EAAwB;QAC9D,YAAY;KACb,CAAC,CAAC;IAEH,MAAM,cAAc,GAAG,IAAA,iDAAuB,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEhE,MAAM,QAAQ,GAAG,KAAK,EAAE,CAAmB,EAAE,EAAE;QAC7C,CAAC,CAAC,cAAc,EAAE,CAAC;QAEnB,YAAY;YACV,CAAC,MAAM,YAAY,CAAC;gBAClB,QAAQ,EAAE,MAAM;gBAChB,MAAM;gBACN,IAAI;gBACJ,KAAK;gBACL,GAAG;gBACH,IAAI;aACL,CAAC,CAAC,CAAC;IACR,CAAC,CAAC;IAEF,OAAO,CACL,kCAAM,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAC,WAAW,aAC5C,YAAY,CAAC;gBACZ,OAAO;gBACP,MAAM,EAAE,cAAc;gBACtB,YAAY;aACb,CAAC,EACD,sBAAsB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EAChE,IAAA,uCAAkB,EAAC,MAAM,EAAE,MAAM,CAAC,EACnC,uBAAC,mBAAQ,IAAC,IAAI,EAAE,IAAI,GAAI,IACnB,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAUH,MAAM,sBAAsB,GAAG,CAAC,EAC9B,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,GAAG,EACH,YAAY,GACgB,EAAE,EAAE,CAAC,CACjC,iCAAK,SAAS,EAAC,4BAA4B,aACzC,iCAAK,SAAS,EAAC,OAAO,aACpB,uBAAC,aAAK,IACJ,SAAS,EAAC,6BAA6B,EACvC,IAAI,EAAC,MAAM,gBACA,uFAAiB,EAC5B,KAAK,EAAC,uFAAiB,EACvB,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GAClD,EACF,uBAAC,aAAK,IACJ,SAAS,EAAC,6BAA6B,EACvC,IAAI,EAAC,MAAM,gBACA,oBAAK,EAChB,KAAK,EAAC,oBAAK,EACX,KAAK,EAAE,GAAG,EACV,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,GACjD,IACE,EACN,iCAAK,SAAS,EAAC,OAAO,aACpB,uBAAC,aAAK,IACJ,SAAS,EAAC,6BAA6B,EACvC,IAAI,EAAC,MAAM,gBACA,4CAAS,EACpB,KAAK,EAAC,4CAAS,EACf,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,GACnD,EACF,uBAAC,aAAK,IACJ,SAAS,EAAC,yBAAyB,EACnC,IAAI,EAAC,MAAM,gBACA,mGAAmB,EAC9B,KAAK,EAAC,mGAAmB,EACzB,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GAClD,IACE,IACF,CACP,CAAC;AAQF,MAAM,YAAY,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAqB,EAAE,EAAE,CAAC,CAC7E,gCAAK,SAAS,EAAC,iCAAiC,YAC9C,gCAAK,SAAS,EAAC,QAAQ,YACrB,uBAAC,6BAAa,IACZ,IAAI,EAAE,OAAO,EACb,UAAU,EAAC,MAAM,EACjB,UAAU,EAAC,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EACvD,KAAK,EAAC,sCAAQ,EACd,WAAW,EAAC,uFAAiB,GAC7B,GACE,GACF,CACP,CAAC"}
1
+ {"version":3,"file":"ApplicationFormBusinessCard.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationFormBusinessCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAuD;AAGvD,oDAAiD;AACjD,sEAAmE;AAEnE,yCAAsC;AACtC,mDAAgD;AAEhD,uEAAoE;AACpE,6DAA0D;AAC1D,uDAAoD;AAUvC,QAAA,2BAA2B,GAAG,IAAA,aAAG,EAAwB,CAAC,KAAK,EAAE,EAAE;IAC9E,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IAE7C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAwB;QAChE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,EAAE;QACR,KAAK,EAAE,EAAE;QACT,GAAG,EAAE,EAAE;QACP,IAAI,EAAE,EAAE;KACT,CAAC,CAAC;IAEH,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC;IAErD,MAAM,OAAO,GAAG,IAAA,6BAAa,GAAE,CAAC;IAEhC,MAAM,EAAE,YAAY,EAAE,GAAG,IAAA,iCAAe,EAAwB;QAC9D,YAAY;KACb,CAAC,CAAC;IAEH,MAAM,cAAc,GAAG,IAAA,iDAAuB,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEhE,MAAM,QAAQ,GAAG,KAAK,EAAE,CAAmB,EAAE,EAAE;QAC7C,CAAC,CAAC,cAAc,EAAE,CAAC;QAEnB,YAAY;YACV,CAAC,MAAM,YAAY,CAAC;gBAClB,QAAQ,EAAE,MAAM;gBAChB,MAAM;gBACN,IAAI;gBACJ,KAAK;gBACL,GAAG;gBACH,IAAI;aACL,CAAC,CAAC,CAAC;IACR,CAAC,CAAC;IAEF,OAAO,CACL,kCAAM,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAC,WAAW,aAC5C,YAAY,CAAC;gBACZ,OAAO;gBACP,MAAM,EAAE,cAAc;gBACtB,YAAY;aACb,CAAC,EACD,sBAAsB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EAChE,IAAA,uCAAkB,EAAC,MAAM,EAAE,MAAM,CAAC,EACnC,uBAAC,mBAAQ,IAAC,IAAI,EAAE,IAAI,GAAI,IACnB,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAUH,MAAM,sBAAsB,GAAG,CAAC,EAC9B,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,GAAG,EACH,YAAY,GACgB,EAAE,EAAE,CAAC,CACjC,iCAAK,SAAS,EAAC,4BAA4B,aACzC,iCAAK,SAAS,EAAC,OAAO,aACpB,uBAAC,aAAK,IACJ,SAAS,EAAC,6BAA6B,EACvC,IAAI,EAAC,MAAM,gBACA,uFAAiB,EAC5B,KAAK,EAAC,uFAAiB,EACvB,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GAClD,EACF,uBAAC,aAAK,IACJ,SAAS,EAAC,6BAA6B,EACvC,IAAI,EAAC,MAAM,gBACA,oBAAK,EAChB,KAAK,EAAC,oBAAK,EACX,KAAK,EAAE,GAAG,EACV,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,GACjD,IACE,EACN,iCAAK,SAAS,EAAC,OAAO,aACpB,uBAAC,aAAK,IACJ,SAAS,EAAC,6BAA6B,EACvC,IAAI,EAAC,MAAM,gBACA,4CAAS,EACpB,KAAK,EAAC,4CAAS,EACf,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,GACnD,EACF,uBAAC,aAAK,IACJ,SAAS,EAAC,yBAAyB,EACnC,IAAI,EAAC,MAAM,gBACA,mGAAmB,EAC9B,KAAK,EAAC,mGAAmB,EACzB,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GAClD,IACE,IACF,CACP,CAAC;AAQF,MAAM,YAAY,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAqB,EAAE,EAAE,CAAC,CAC7E,gCAAK,SAAS,EAAC,iCAAiC,YAC9C,gCAAK,SAAS,EAAC,QAAQ,YACrB,uBAAC,6BAAa,IACZ,IAAI,EAAE,OAAO,EACb,UAAU,EAAC,MAAM,EACjB,UAAU,EAAC,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EACvD,KAAK,EAAC,sCAAQ,EACd,WAAW,EAAC,uFAAiB,GAC7B,GACE,GACF,CACP,CAAC"}