@redneckz/wildless-cms-uni-blocks 0.6.31 → 0.6.33

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 (278) hide show
  1. package/bin/migration-scripts/0.6.32.js +26 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +152 -110
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/CarouselLinks/CarouselLinks.d.ts +5 -0
  6. package/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
  7. package/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
  8. package/bundle/components/StepsBlock/renderStepContent.d.ts +1 -1
  9. package/bundle/icons/IconName.d.ts +6 -4
  10. package/bundle/model/HeadlineType.d.ts +2 -2
  11. package/bundle/ui-kit/LinkButton/LinkButton.d.ts +5 -0
  12. package/bundle/ui-kit/Paragraph/Paragraph.d.ts +9 -0
  13. package/bundle/ui-kit/Text/Text.d.ts +34 -0
  14. package/bundle/utils/sliceArray.d.ts +1 -0
  15. package/cosmos-static/icons/ArrowRightIcon.svg +1 -0
  16. package/dist/components/Accordion/Accordion.js +2 -1
  17. package/dist/components/Accordion/Accordion.js.map +1 -1
  18. package/dist/components/Accordion/Accordion.mobile.js +2 -1
  19. package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
  20. package/dist/components/AccordionItem/AccordionItem.js +2 -1
  21. package/dist/components/AccordionItem/AccordionItem.js.map +1 -1
  22. package/dist/components/AccordionItem/AccordionItem.mobile.js +2 -1
  23. package/dist/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
  24. package/dist/components/Blocks.js +2 -0
  25. package/dist/components/Blocks.js.map +1 -1
  26. package/dist/components/CarouselLinks/CarouselLinks.d.ts +5 -0
  27. package/dist/components/CarouselLinks/CarouselLinks.js +20 -0
  28. package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -0
  29. package/dist/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
  30. package/dist/components/CarouselLinks/CarouselLinksContent.js +2 -0
  31. package/dist/components/CarouselLinks/CarouselLinksContent.js.map +1 -0
  32. package/dist/components/ContactsBlock/ContactsBlock.js +6 -10
  33. package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  34. package/dist/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
  35. package/dist/components/Headline/Headline.js +1 -2
  36. package/dist/components/Headline/Headline.js.map +1 -1
  37. package/dist/components/Headline/constants.js +6 -0
  38. package/dist/components/Headline/constants.js.map +1 -1
  39. package/dist/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
  40. package/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
  41. package/dist/components/Recommendation/RecommendationCard.js +1 -2
  42. package/dist/components/Recommendation/RecommendationCard.js.map +1 -1
  43. package/dist/components/StepsBlock/renderStepContent.d.ts +1 -1
  44. package/dist/components/TariffsTable/TariffsTable.mobile.js +1 -1
  45. package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  46. package/dist/components/Tile/Tile.js +2 -2
  47. package/dist/components/Tile/Tile.js.map +1 -1
  48. package/dist/icons/IconName.d.ts +6 -4
  49. package/dist/icons/IconName.js +4 -2
  50. package/dist/icons/IconName.js.map +1 -1
  51. package/dist/model/HeadlineType.d.ts +2 -2
  52. package/dist/ui-kit/LinkButton/LinkButton.d.ts +5 -0
  53. package/dist/ui-kit/LinkButton/LinkButton.js +16 -0
  54. package/dist/ui-kit/LinkButton/LinkButton.js.map +1 -0
  55. package/dist/ui-kit/Paragraph/Paragraph.d.ts +9 -0
  56. package/dist/ui-kit/Paragraph/Paragraph.js +10 -0
  57. package/dist/ui-kit/Paragraph/Paragraph.js.map +1 -0
  58. package/dist/ui-kit/Text/Text.d.ts +34 -0
  59. package/dist/ui-kit/Text/Text.js +10 -0
  60. package/dist/ui-kit/Text/Text.js.map +1 -0
  61. package/dist/utils/sliceArray.d.ts +1 -0
  62. package/dist/utils/sliceArray.js +15 -0
  63. package/dist/utils/sliceArray.js.map +1 -0
  64. package/lib/common.css +1 -1
  65. package/lib/components/Accordion/Accordion.js +2 -1
  66. package/lib/components/Accordion/Accordion.js.map +1 -1
  67. package/lib/components/Accordion/Accordion.mobile.js +2 -1
  68. package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
  69. package/lib/components/AccordionItem/AccordionItem.js +2 -1
  70. package/lib/components/AccordionItem/AccordionItem.js.map +1 -1
  71. package/lib/components/AccordionItem/AccordionItem.mobile.js +2 -1
  72. package/lib/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
  73. package/lib/components/Blocks.js +2 -0
  74. package/lib/components/Blocks.js.map +1 -1
  75. package/lib/components/CarouselLinks/CarouselLinks.d.ts +5 -0
  76. package/lib/components/CarouselLinks/CarouselLinks.fixture.d.ts +5 -0
  77. package/lib/components/CarouselLinks/CarouselLinks.js +18 -0
  78. package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -0
  79. package/lib/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
  80. package/lib/components/CarouselLinks/CarouselLinksContent.js +2 -0
  81. package/lib/components/CarouselLinks/CarouselLinksContent.js.map +1 -0
  82. package/lib/components/ContactsBlock/ContactsBlock.js +6 -10
  83. package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  84. package/lib/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
  85. package/lib/components/Headline/Headline.js +1 -2
  86. package/lib/components/Headline/Headline.js.map +1 -1
  87. package/lib/components/Headline/constants.js +6 -0
  88. package/lib/components/Headline/constants.js.map +1 -1
  89. package/lib/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
  90. package/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
  91. package/lib/components/Recommendation/RecommendationCard.js +1 -2
  92. package/lib/components/Recommendation/RecommendationCard.js.map +1 -1
  93. package/lib/components/StepsBlock/renderStepContent.d.ts +1 -1
  94. package/lib/components/TariffsTable/TariffsTable.mobile.js +1 -1
  95. package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  96. package/lib/components/Tile/Tile.js +2 -2
  97. package/lib/components/Tile/Tile.js.map +1 -1
  98. package/lib/icons/IconName.d.ts +6 -4
  99. package/lib/icons/IconName.js +4 -2
  100. package/lib/icons/IconName.js.map +1 -1
  101. package/lib/model/HeadlineType.d.ts +2 -2
  102. package/lib/ui-kit/LinkButton/LinkButton.d.ts +5 -0
  103. package/lib/ui-kit/LinkButton/LinkButton.fixture.d.ts +5 -0
  104. package/lib/ui-kit/LinkButton/LinkButton.js +14 -0
  105. package/lib/ui-kit/LinkButton/LinkButton.js.map +1 -0
  106. package/lib/ui-kit/Paragraph/Paragraph.d.ts +9 -0
  107. package/lib/ui-kit/Paragraph/Paragraph.js +8 -0
  108. package/lib/ui-kit/Paragraph/Paragraph.js.map +1 -0
  109. package/lib/ui-kit/Text/Text.d.ts +34 -0
  110. package/lib/ui-kit/Text/Text.js +8 -0
  111. package/lib/ui-kit/Text/Text.js.map +1 -0
  112. package/lib/utils/sliceArray.d.ts +1 -0
  113. package/lib/utils/sliceArray.js +12 -0
  114. package/lib/utils/sliceArray.js.map +1 -0
  115. package/mobile/bundle/bundle.umd.js +16 -4
  116. package/mobile/bundle/bundle.umd.min.js +1 -1
  117. package/mobile/bundle/components/CarouselLinks/CarouselLinks.d.ts +5 -0
  118. package/mobile/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
  119. package/mobile/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
  120. package/mobile/bundle/components/StepsBlock/renderStepContent.d.ts +1 -1
  121. package/mobile/bundle/icons/IconName.d.ts +6 -4
  122. package/mobile/bundle/model/HeadlineType.d.ts +2 -2
  123. package/mobile/bundle/ui-kit/LinkButton/LinkButton.d.ts +5 -0
  124. package/mobile/bundle/ui-kit/Paragraph/Paragraph.d.ts +9 -0
  125. package/mobile/bundle/ui-kit/Text/Text.d.ts +34 -0
  126. package/mobile/bundle/utils/sliceArray.d.ts +1 -0
  127. package/mobile/dist/components/Accordion/Accordion.js +2 -1
  128. package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
  129. package/mobile/dist/components/AccordionItem/AccordionItem.js +2 -1
  130. package/mobile/dist/components/AccordionItem/AccordionItem.js.map +1 -1
  131. package/mobile/dist/components/CarouselLinks/CarouselLinks.d.ts +5 -0
  132. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +20 -0
  133. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -0
  134. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
  135. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.js +2 -0
  136. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.js.map +1 -0
  137. package/mobile/dist/components/ContactsBlock/ContactsBlock.js +6 -10
  138. package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  139. package/mobile/dist/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
  140. package/mobile/dist/components/Headline/constants.js +6 -0
  141. package/mobile/dist/components/Headline/constants.js.map +1 -1
  142. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
  143. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
  144. package/mobile/dist/components/Recommendation/RecommendationCard.js +1 -2
  145. package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -1
  146. package/mobile/dist/components/StepsBlock/renderStepContent.d.ts +1 -1
  147. package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -1
  148. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  149. package/mobile/dist/components/Tile/Tile.js +2 -2
  150. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  151. package/mobile/dist/icons/IconName.d.ts +6 -4
  152. package/mobile/dist/icons/IconName.js +4 -2
  153. package/mobile/dist/icons/IconName.js.map +1 -1
  154. package/mobile/dist/model/HeadlineType.d.ts +2 -2
  155. package/mobile/dist/ui-kit/LinkButton/LinkButton.d.ts +5 -0
  156. package/mobile/dist/ui-kit/LinkButton/LinkButton.js +16 -0
  157. package/mobile/dist/ui-kit/LinkButton/LinkButton.js.map +1 -0
  158. package/mobile/dist/ui-kit/Paragraph/Paragraph.d.ts +9 -0
  159. package/mobile/dist/ui-kit/Paragraph/Paragraph.js +10 -0
  160. package/mobile/dist/ui-kit/Paragraph/Paragraph.js.map +1 -0
  161. package/mobile/dist/ui-kit/Text/Text.d.ts +34 -0
  162. package/mobile/dist/ui-kit/Text/Text.js +10 -0
  163. package/mobile/dist/ui-kit/Text/Text.js.map +1 -0
  164. package/mobile/dist/utils/sliceArray.d.ts +1 -0
  165. package/mobile/dist/utils/sliceArray.js +15 -0
  166. package/mobile/dist/utils/sliceArray.js.map +1 -0
  167. package/mobile/lib/components/Accordion/Accordion.js +2 -1
  168. package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
  169. package/mobile/lib/components/AccordionItem/AccordionItem.js +2 -1
  170. package/mobile/lib/components/AccordionItem/AccordionItem.js.map +1 -1
  171. package/mobile/lib/components/CarouselLinks/CarouselLinks.d.ts +5 -0
  172. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +18 -0
  173. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -0
  174. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
  175. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.js +2 -0
  176. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.js.map +1 -0
  177. package/mobile/lib/components/ContactsBlock/ContactsBlock.js +6 -10
  178. package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  179. package/mobile/lib/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
  180. package/mobile/lib/components/Headline/constants.js +6 -0
  181. package/mobile/lib/components/Headline/constants.js.map +1 -1
  182. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
  183. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
  184. package/mobile/lib/components/Recommendation/RecommendationCard.js +1 -2
  185. package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -1
  186. package/mobile/lib/components/StepsBlock/renderStepContent.d.ts +1 -1
  187. package/mobile/lib/components/TariffsTable/TariffsTable.js +1 -1
  188. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  189. package/mobile/lib/components/Tile/Tile.js +2 -2
  190. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  191. package/mobile/lib/icons/IconName.d.ts +6 -4
  192. package/mobile/lib/icons/IconName.js +4 -2
  193. package/mobile/lib/icons/IconName.js.map +1 -1
  194. package/mobile/lib/model/HeadlineType.d.ts +2 -2
  195. package/mobile/lib/ui-kit/LinkButton/LinkButton.d.ts +5 -0
  196. package/mobile/lib/ui-kit/LinkButton/LinkButton.js +14 -0
  197. package/mobile/lib/ui-kit/LinkButton/LinkButton.js.map +1 -0
  198. package/mobile/lib/ui-kit/Paragraph/Paragraph.d.ts +9 -0
  199. package/mobile/lib/ui-kit/Paragraph/Paragraph.js +8 -0
  200. package/mobile/lib/ui-kit/Paragraph/Paragraph.js.map +1 -0
  201. package/mobile/lib/ui-kit/Text/Text.d.ts +34 -0
  202. package/mobile/lib/ui-kit/Text/Text.js +8 -0
  203. package/mobile/lib/ui-kit/Text/Text.js.map +1 -0
  204. package/mobile/lib/utils/sliceArray.d.ts +1 -0
  205. package/mobile/lib/utils/sliceArray.js +12 -0
  206. package/mobile/lib/utils/sliceArray.js.map +1 -0
  207. package/mobile/src/components/Accordion/Accordion.tsx +9 -5
  208. package/mobile/src/components/AccordionItem/AccordionItem.tsx +7 -4
  209. package/mobile/src/components/CarouselLinks/CarouselLinks.example.json +55 -0
  210. package/mobile/src/components/CarouselLinks/CarouselLinks.json +8 -0
  211. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +67 -0
  212. package/mobile/src/components/CarouselLinks/CarouselLinksContent.ts +10 -0
  213. package/mobile/src/components/ContactsBlock/ContactsBlock.example.json +22 -18
  214. package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +29 -40
  215. package/mobile/src/components/ContactsBlock/ContactsBlockContent.ts +12 -22
  216. package/mobile/src/components/Headline/constants.ts +6 -0
  217. package/mobile/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +2 -3
  218. package/mobile/src/components/Recommendation/RecommendationCard.tsx +1 -2
  219. package/mobile/src/components/StepsBlock/renderStepContent.tsx +1 -1
  220. package/mobile/src/components/TariffsTable/TariffsTable.tsx +1 -1
  221. package/mobile/src/components/Tile/Tile.tsx +4 -2
  222. package/mobile/src/icons/ArrowLeftIcon.svg +1 -1
  223. package/mobile/src/icons/ArrowRightIcon.svg +1 -0
  224. package/mobile/src/icons/ArrowUpIcon.svg +1 -1
  225. package/mobile/src/icons/IconName.ts +4 -4
  226. package/mobile/src/model/HeadlineType.ts +2 -2
  227. package/mobile/src/ui-kit/LinkButton/LinkButton.tsx +42 -0
  228. package/mobile/src/ui-kit/Paragraph/Paragraph.tsx +17 -0
  229. package/mobile/src/ui-kit/Text/Text.tsx +79 -0
  230. package/mobile/src/utils/sliceArray.ts +15 -0
  231. package/package.json +2 -2
  232. package/src/components/Accordion/Accordion.mobile.tsx +9 -5
  233. package/src/components/Accordion/Accordion.tsx +7 -2
  234. package/src/components/AccordionItem/AccordionItem.mobile.tsx +7 -4
  235. package/src/components/AccordionItem/AccordionItem.tsx +4 -1
  236. package/src/components/Blocks.ts +2 -0
  237. package/src/components/CarouselLinks/CarouselLinks.example.json +55 -0
  238. package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +28 -0
  239. package/src/components/CarouselLinks/CarouselLinks.json +8 -0
  240. package/src/components/CarouselLinks/CarouselLinks.tsx +67 -0
  241. package/src/components/CarouselLinks/CarouselLinksContent.ts +10 -0
  242. package/src/components/ContactsBlock/ContactsBlock.example.json +22 -18
  243. package/src/components/ContactsBlock/ContactsBlock.fixture.tsx +21 -15
  244. package/src/components/ContactsBlock/ContactsBlock.tsx +29 -40
  245. package/src/components/ContactsBlock/ContactsBlockContent.ts +12 -22
  246. package/src/components/Headline/Headline.tsx +3 -5
  247. package/src/components/Headline/constants.ts +6 -0
  248. package/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +2 -3
  249. package/src/components/Recommendation/RecommendationCard.tsx +1 -2
  250. package/src/components/StepsBlock/renderStepContent.tsx +1 -1
  251. package/src/components/TariffsTable/TariffsTable.mobile.tsx +1 -1
  252. package/src/components/Tile/Tile.tsx +4 -2
  253. package/src/icons/ArrowLeftIcon.svg +1 -1
  254. package/src/icons/ArrowRightIcon.svg +1 -0
  255. package/src/icons/ArrowUpIcon.svg +1 -1
  256. package/src/icons/IconName.ts +6 -327
  257. package/src/model/HeadlineType.ts +2 -2
  258. package/src/ui-kit/LinkButton/LinkButton.fixture.tsx +9 -0
  259. package/src/ui-kit/LinkButton/LinkButton.tsx +42 -0
  260. package/src/ui-kit/Paragraph/Paragraph.tsx +17 -0
  261. package/src/ui-kit/Text/Text.tsx +79 -0
  262. package/src/utils/sliceArray.ts +15 -0
  263. package/bundle/ui-kit/Description/Description.d.ts +0 -5
  264. package/dist/ui-kit/Description/Description.d.ts +0 -5
  265. package/dist/ui-kit/Description/Description.js +0 -9
  266. package/dist/ui-kit/Description/Description.js.map +0 -1
  267. package/lib/ui-kit/Description/Description.d.ts +0 -5
  268. package/lib/ui-kit/Description/Description.js +0 -7
  269. package/lib/ui-kit/Description/Description.js.map +0 -1
  270. package/mobile/bundle/ui-kit/Description/Description.d.ts +0 -5
  271. package/mobile/dist/ui-kit/Description/Description.d.ts +0 -5
  272. package/mobile/dist/ui-kit/Description/Description.js +0 -9
  273. package/mobile/dist/ui-kit/Description/Description.js.map +0 -1
  274. package/mobile/lib/ui-kit/Description/Description.d.ts +0 -5
  275. package/mobile/lib/ui-kit/Description/Description.js +0 -7
  276. package/mobile/lib/ui-kit/Description/Description.js.map +0 -1
  277. package/mobile/src/ui-kit/Description/Description.tsx +0 -12
  278. package/src/ui-kit/Description/Description.tsx +0 -12
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @title Размер текста
3
+ */
4
+ export declare type TextSize = '' | 'text-xs-light' | 'text-s-light' | 'text-s' | 'text-m-light' | 'text-m' | 'text-l-light' | 'text-l' | 'text-xl-light' | 'text-xl';
5
+ /**
6
+ * @title Размер текста
7
+ */
8
+ export declare type TitleSize = '' | 'text-h6' | 'text-h5' | 'text-h5-light' | 'text-h4' | 'text-h3' | 'text-h2' | 'text-h1' | 'text-h0' | 'text-m-title' | 'text-m-title-xs' | 'title-extra' | 'title-huge';
9
+ /**
10
+ * @title Цвет текста
11
+ */
12
+ export declare type TextColor = '' | 'text-main' | 'text-primary-text' | 'text-primary-main' | 'text-secondary-text' | 'text-secondary-light' | 'text-error' | 'text-white' | 'text-green';
13
+ /**
14
+ * @title Выравнивание
15
+ * @enumNames [
16
+ * "По умолчанию",
17
+ * "По левому краю",
18
+ * "По центру",
19
+ * "По правому краю"
20
+ * ]
21
+ */
22
+ export declare type TextAlign = '' | 'text-left' | 'text-center' | 'text-right';
23
+ /**
24
+ * @title Насыщенность шрифта
25
+ */
26
+ export declare type FontWeight = '' | 'font-light' | 'font-normal' | 'font-medium';
27
+ interface TextProps {
28
+ size?: TextSize | TitleSize;
29
+ color?: TextColor;
30
+ align?: TextAlign;
31
+ font?: FontWeight;
32
+ }
33
+ export declare const Text: import("@redneckz/uni-jsx").UNIComponent<TextProps, any, any>;
34
+ export {};
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { JSX } from '@redneckz/uni-jsx';
3
+ export const Text = JSX((props) => {
4
+ const { size = '', color = '', align = '', font = '', children } = props;
5
+ const textClasses = `font-sans ${size} ${color} ${align} ${font}`;
6
+ return _jsx("span", { className: textClasses, children: children });
7
+ });
8
+ //# sourceMappingURL=Text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../src/ui-kit/Text/Text.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAwExC,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAY,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,EAAE,IAAI,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,IAAI,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEzE,MAAM,WAAW,GAAG,aAAa,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;IAElE,OAAO,eAAM,SAAS,EAAE,WAAW,YAAG,QAAQ,GAAQ,CAAC;AACzD,CAAC,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const sliceArray: <T>(items: T[], size: number) => T[][];
@@ -0,0 +1,12 @@
1
+ export const sliceArray = (items, size) => {
2
+ const result = items.reduce((resultArray, item, index) => {
3
+ const chunkIndex = Math.floor(index / (size - 1));
4
+ if (!resultArray[chunkIndex]) {
5
+ resultArray[chunkIndex] = [item];
6
+ }
7
+ resultArray[chunkIndex].push(item);
8
+ return resultArray;
9
+ }, []);
10
+ return result;
11
+ };
12
+ //# sourceMappingURL=sliceArray.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sliceArray.js","sourceRoot":"","sources":["../../src/utils/sliceArray.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAI,KAAU,EAAE,IAAY,EAAE,EAAE;IACxD,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,WAAkB,EAAE,IAAO,EAAE,KAAa,EAAE,EAAE;QACzE,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;QAElD,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE;YAC5B,WAAW,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;SAClC;QAED,WAAW,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEnC,OAAO,WAAW,CAAC;IACrB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
@@ -343,9 +343,15 @@
343
343
  return (jsx(Tag, { className: `font-sans font-medium m-0 ${HeadingClass[headingType]} ${className || ''}`, children: title }));
344
344
  });
345
345
 
346
+ const Paragraph = JSX((props) => {
347
+ const { size = '', color = '', align = '', font = '', children } = props;
348
+ const textClasses = `font-sans ${size} ${color} ${align} ${font}`;
349
+ return jsx("p", { className: textClasses, children: children });
350
+ });
351
+
346
352
  const AccordionItemsList = JSX(({ children }) => (jsx("ul", { className: "list-none m-0 p-0", children: children })));
347
353
 
348
- const Accordion = JSX(({ title, description, className = '', children, ...rest }) => (jsxs(BlockWrapper, { className: `py-6 px-4 font-sans bg-white text-primary-text ${className}`, ...rest, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-2 text-center", title: title }) : null, description ? jsx("div", { className: "mb-5 text-m-light text-center", children: description }) : null, jsx(AccordionItemsList, { children: children })] })));
354
+ const Accordion = JSX(({ title, description, className = '', children, ...rest }) => (jsxs(BlockWrapper, { className: `py-6 px-4 bg-white text-primary-text ${className}`, ...rest, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-2 text-center", title: title }) : null, description ? (jsx("div", { className: "mb-5", children: jsx(Paragraph, { size: "text-m", font: "font-light", align: "text-center", children: description }) })) : null, jsx(AccordionItemsList, { children: children })] })));
349
355
  Accordion.childrenTypes = ['AccordionItem'];
350
356
 
351
357
  function getParentBlockDef(ancestors, type) {
@@ -454,6 +460,12 @@
454
460
 
455
461
  const Img = JSX((props) => jsx(ImgInner, { ...props, isMobile: true }));
456
462
 
463
+ const Text = JSX((props) => {
464
+ const { size = '', color = '', align = '', font = '', children } = props;
465
+ const textClasses = `font-sans ${size} ${color} ${align} ${font}`;
466
+ return jsx("span", { className: textClasses, children: children });
467
+ });
468
+
457
469
  const getIconWithVersion = (icon, version = 'primary') => ({
458
470
  ...icon,
459
471
  iconVersion: icon?.iconVersion ?? (version === 'secondary' ? 'white' : 'color'),
@@ -465,7 +477,7 @@
465
477
  return (jsx("li", { className: `${bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0'} border-solid border-main-divider ${className}`, children: jsx(Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: "flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0", isUnfolded: isUnfolded, children: children })), renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(FoldButton, { className: bordered ? '' : 'py-[14px] px-0', label: label, icon: icons[Number(isUnfolded)], primaryIcon: labelIcon, onClick: onToggle })) }) }));
466
478
  });
467
479
  AccordionItem.childrenTypes = [];
468
- const FoldButton = JSX(({ className, icon, label, primaryIcon, onClick }) => (jsxs("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${className}`, onClick: onClick, children: [jsxs("span", { className: "text-m-title-xs font-medium pr-2.5 flex group-hover:text-primary-main", children: [primaryIcon ? (jsx(Img, { image: getIconWithVersion(primaryIcon), className: "mr-3 flex-shrink-0", width: "24", height: "24", asSVG: true })) : null, label] }), jsx(Img, { className: "flex-shrink-0", image: getIconWithVersion({ icon: icon }), width: "24", height: "24", asSVG: true })] })));
480
+ const FoldButton = JSX(({ className, icon, label, primaryIcon, onClick }) => (jsxs("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${className}`, onClick: onClick, children: [jsxs("div", { className: "flex group-hover:text-primary-main", children: [primaryIcon ? (jsx(Img, { image: getIconWithVersion(primaryIcon), className: "mr-3 flex-shrink-0", width: "24", height: "24", asSVG: true })) : null, jsx(Text, { size: "text-m-title-xs", font: "font-medium", children: label })] }), jsx(Img, { className: "flex-shrink-0", image: getIconWithVersion({ icon: icon }), width: "24", height: "24", asSVG: true })] })));
469
481
 
470
482
  // column-gap between children of SwipeListControl container
471
483
  const DEFAULT_GAP = 14;
@@ -1438,7 +1450,7 @@
1438
1450
  const headingMargin = description ? 'mb-2' : 'mb-5';
1439
1451
  return (jsxs("section", { className: `px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${className}`, children: [title ? (jsx(Heading, { headingType: "h2", className: `text-center ${headingMargin}`, title: title })) : null, description ? jsx("div", { className: "mb-5 text-center text-m", children: description }) : null, orientation === 'vertical' ? (jsx(TariffsTableVertical, { tiles: tiles, ...rest })) : (jsx(TariffsTableHorizontal, { tiles: tiles, ...rest }))] }));
1440
1452
  });
1441
- const getColData = (columns) => columns?.[0].data ? columns[0].data : [];
1453
+ const getColData = (columns) => columns?.[0]?.data ? columns[0].data : [];
1442
1454
  const getTiles = (rowHeaders, colData) => rowHeaders?.map((header, i) => ({
1443
1455
  header,
1444
1456
  data: colData?.[i] || [{}],
@@ -1603,7 +1615,7 @@
1603
1615
  return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
1604
1616
  }
1605
1617
 
1606
- const packageVersion = "0.6.31";
1618
+ const packageVersion = "0.6.33";
1607
1619
 
1608
1620
  exports.Blocks = Blocks;
1609
1621
  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"),l=n("useCallback"),a=n("useMemo"),s=n("useRef");function o(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}}}}const c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};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}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 CDN(){return this._.CDN}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d="likesToken";function m(){async function e(){try{const e=JSON.parse(globalThis.localStorage.getItem(d)||"");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(d,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 h=(...e)=>globalThis._uni._jsx(...e),u=(...e)=>globalThis._uni._jsxs(...e),p=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:x(e)),t._tmpl},x=e=>{function t(t,n){const{children:i,...r}=t||{},l=n?.slots?.default,a=i||l&&l();return e(Object.assign(r,a&&{children:a}),n)}return t.inheritAttrs=!1,t};class g{static inst=new g;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]||=[],this.subscribers[e]?.push(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){this.subjectsStateMap[e]=t,this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const b=100,f={threshold:new Array(18).fill(0).map((function(e,t){const n=(t+1)/b+.82;return Math.round(n*b)/b}))},N=p((({className:e,block:t,tag:n="section",role:l,children:o})=>{const c=n,{anchor:d,labels:m}=t||{},[u,p]=i(!0),x=s({}),b=a((()=>(({anchor:e,anchorClickRef:t})=>n=>{if(!n?.length)return;const[i]=n;!i.isIntersecting||i.boundingClientRect.top>150||(t?.current?.isScrolling&&t.current.label===`#${e}`?(g.inst.fire("anchorClick",{isScrolling:!1,label:void 0}),g.inst.fire("tab",{type:"link",label:e})):t?.current?.isScrolling||g.inst.fire("tab",{type:"link",label:e}))})({anchor:d,anchorClickRef:x})),[d]),N=function(e,t){const n=s(null);return r((()=>{if(!n.current)return;const i=new IntersectionObserver(e,t);return i.observe(n.current),()=>{i.disconnect()}}),[e,t]),n}(b,f);return r((()=>g.inst.subscribe("anchorClick",(e=>{p(!0),x.current=e}))),[]),r((()=>g.inst.subscribe("tab",(e=>{if("group"===e.type){const n=m?.length||t?.anchor;p(!e.label||(!n||Boolean(m?.includes(e.label))))}else(n=e.label)&&(globalThis.document.location.hash=n),p(!0);var n}))),[]),u?h(c,{className:e,role:l,...d?{id:d,ref:N}:{},children:o}):null}));const y={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"},v=p((e=>{const{className:t,headingType:n="h3",title:i,as:r="h3"}=e;return h(r,{className:`font-sans font-medium m-0 ${y[n]} ${t||""}`,children:i})})),w=p((({children:e})=>h("ul",{className:"list-none m-0 p-0",children:e}))),k=p((({title:e,description:t,className:n="",children:i,...r})=>u(N,{className:`py-6 px-4 font-sans bg-white text-primary-text ${n}`,...r,children:[e?h(v,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?h("div",{className:"mb-5 text-m-light text-center",children:t}):null,h(w,{children:i})]})));k.childrenTypes=["AccordionItem"];const $=p((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:n,renderFoldButton:r})=>{const[a,s]=i(t),o=l((()=>{s((e=>!e))}),[]),c=n({isUnfolded:a,onToggle:o}),d=r?r({isUnfolded:a,onToggle:o}):null;return u("div",e?{children:[d,c]}:{children:[c,d]})})),C=p((({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]),h("div",{ref:i,className:`transition-max-h duration-300 overflow-hidden max-h-0 ${e}`,children:n})})),S={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},T=p((({className:e="",imageClassName:t="",name:n="",alt:i=`Иконка ${n}`,title:r=i,iconVersion:l="color",asSVG:a,...s})=>{const o=`${c.CDN||""}icons/${n}.svg`;return a&&"normal"!==l?h(j,{className:e,children:u("svg",{className:[I(e,s.width),S[l],t,_(l)].join(" "),...s,"aria-hidden":"true",children:[r?h("title",{children:r}):null,i?h("desc",{children:i}):null,h("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):h("img",{className:e,src:o,alt:i,title:r,...s,"aria-hidden":"true"})})),_=e=>"white"===e?"invert":"",I=(e,t)=>t?`width: ${t}px `:"w-full h-full",j=p((({className:e,children:t})=>e?h("div",{className:e,children:t}):t));function D(e){return"string"==typeof e?"normal":e?.iconVersion||"normal"}const A=(e,t)=>e.media&&t.media?e.media-t.media:0,R=p((({className:e="",image:t,imageClassName:n="",isMobile:i=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${i?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(A).map((({src:e,format:n,media:i},r)=>h("source",{srcSet:e,type:M(n),media:i?`(max-width: ${i}px)`:"",...t.size},`${r}_${e}`))):null,O(t,n,i)]})})),O=(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||"",l=e.alt||e.title,a=n?"m-auto":"m-0";return h("img",{src:e.src,className:`${a} ${t}`,alt:l,title:r,style:i,...e.size})};function M(e){return e?`image/${String(e)}`:void 0}const L=p((({className:e="",image:t,imageClassName:n="",isMobile:i,...r})=>{if(!t)return null;const l="string"==typeof t?t:t.icon;return l||""===l?l.length?h(T,{className:e,imageClassName:n,iconVersion:D(t),name:l,...r}):null:h(R,{className:e,imageClassName:n,image:t,isMobile:i})})),B=p((e=>h(L,{...e,isMobile:!0}))),V=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),E=["PlusIcon","MinusIcon"],F=p((({className:e="",ancestors:t,label:n="",labelIcon:i,isExpanded:r,children:l})=>{const{bordered:a}=function(e,t){const{content:n}=function(e,t){const[n]=(e||[]).map((e=>e)).reverse().find((([e])=>e&&"type"in e&&(!t||t===e.type)))||[];return n||{}}(e);return n||t}(t,{});return h("li",{className:`${a?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"} border-solid border-main-divider ${e}`,children:h($,{isFoldButtonOnTop:!0,unfoldedByDefault:r,renderFoldableSection:({isUnfolded:e})=>h(C,{className:"flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0",isUnfolded:e,children:l}),renderFoldButton:({isUnfolded:e,onToggle:t})=>h(P,{className:a?"":"py-[14px] px-0",label:n,icon:E[Number(e)],primaryIcon:i,onClick:t})})})}));F.childrenTypes=[];const P=p((({className:e,icon:t,label:n,primaryIcon:i,onClick:r})=>u("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:[u("span",{className:"text-m-title-xs font-medium pr-2.5 flex group-hover:text-primary-main",children:[i?h(B,{image:V(i),className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,n]}),h(B,{className:"flex-shrink-0",image:V({icon:t}),width:"24",height:"24",asSVG:!0})]}))),z=p((({children:e,activeIndex:t,indexFraction:n,showDots:i})=>{const r=e=>n=>{if(e===t)return;const i=n.currentTarget.parentElement?.previousElementSibling;i?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return i&&e?.length?h("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,i)=>h("div",{onClick:r(i),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:G(i,t,n),"aria-hidden":!0},String(i))))}):null})),G=(e,t,n)=>{if(e<t||e>t+1)return;const i=1-n;return e===t?{opacity:""+(.3+.7*i),width:6+16*i+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},H=p((({className:e="",children:t,...n})=>h("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...n,children:t}))),W=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),J=p((({className:e="",children:t,activeIndex:n,onScroll:i,gap:r=14,padding:l=16})=>h("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...W(l),gap:`${r}px`},role:"list",onScroll:i,children:t?.length?t?.map(((e,t)=>h(H,{style:W(l/4),"aria-current":Boolean(n===t),children:e},String(t)))):h(H,{children:t})}))),U=p((({className:e,gap:t=14,padding:n=16,showDots:r=!0,onSlideChange:l,children:a})=>{const[s,o]=i(0),[c,d]=i(0),m={activeIndex:s,indexFraction:c,showDots:r,children:a};return u("div",{className:e,children:[h(J,{gap:t,padding:n,activeIndex:s,onScroll:e=>{const{scrollLeft:i,clientWidth:r,childElementCount:a,scrollWidth:c,children:m}=e?.currentTarget,h=m[0].offsetWidth-n/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:i,childElementCount:r,itemWidth:l})=>{const a=i-n;if(2===r)return[[0,a],[a,i]];const s=l+e,o=n-e-t,c=r-2,d=new Array(r).fill(0).map(((e,t)=>0===t||t===c?[t>0?a-o:0,t>0?a:o]:[(t-1)*s+o,t*s+o]));return d[r-1]=[a,i],d})({gap:t,padding:n,clientWidth:r,scrollWidth:c,childElementCount:a,itemWidth:h}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[i,r]=t[n];return{index:n,fraction:(e-i)/(r-i)}})(i,u);p!==s&&l&&l(),o(p),d(x)},children:a}),h(z,{...m})]})})),Y=e=>e?.includes("//"),K=e=>(e||"").replace(/\/?\?.*/,""),X=e=>{if(!e||!Y(e))return;const t=e,n=t.indexOf("//"),i=t.indexOf("/",n+"//".length);return-1!==i?t.substring(0,i):t};var q=Object.freeze({__proto__:null,isURL:Y,withoutQuery:K,getOrigin:X,getHash:e=>{if(!e||!Y(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:e=>e?.startsWith("#")});const Q=(e,t)=>Q._impl(e,t);function Z(){return Z._impl()}function ee(){const e=Z();return t=>{const n=((e,t)=>{if(!e)return e;const n=X(t?.href);return n?e.replace(n,"")||"/":e})(t.href,e);return{...t,href:n,"aria-label":t.text,onClick:Q((i=>{t.onClick&&t.onClick(i);const r=n&&!Y(n),l=!t.target||"_self"===t.target;r&&l&&(i?.preventDefault(),e.push(n))}),t)}}}Q._impl=e=>e,Q.setup=e=>{Q._impl=e},Z._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),Z.setup=e=>{Z._impl=e};const te={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:""},ne="bg-main-divider text-main-disabled",ie={primary:ne,secondary:ne,white:ne,link:""},re="text-center font-sans select-none",le={primary:"group-hover:brightness-0 group-hover:invert",secondary:"group-hover:brightness-0 group-hover:invert",white:"group-hover:brightness-0 group-hover:invert",link:""},ae=p((e=>{const{text:t,aboveText:n,appendLeft:i,appendRight:r,version:l="primary"}=e;return u("div",{className:se(e),children:[i?h("div",{className:le[l],children:i}):null,oe(e)?u("div",{children:[n?h("div",{className:"text-xs-light text-left",children:n}):null,h("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?h("div",{className:le[l],children:r}):null]})})),se=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 flex items-center justify-center",oe(e)?r:"h-12 w-12",i?"rounded-full":""].join(" ")},oe=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),ce=({className:e,rounded:t,version:n})=>["inline-block",re,n?ie[n]:"",t?"rounded-full":"rounded-md",e].join(" "),de=({className:e,rounded:t,version:n})=>[re,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border",n?te[n]:"",t?"rounded-full":"rounded-md",e].join(" "),me=p((({disabled:e,children:t,...n})=>{const i=ee()(n),r=t??h(ae,{...i});return h(e?ue:he,{...i,children:r})})),he=p((({className:e="",href:t,rel:n,target:i,ariaLabel:r,version:l,rounded:a,onClick:s,children:o})=>h("a",{className:de({className:e,version:l,rounded:a}),href:t,rel:n,target:i,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),ue=p((({className:e,ariaLabel:t,version:n,rounded:i,children:r})=>h("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:ce({className:e,rounded:i,version:n}),children:r}))),pe=(e=!1)=>e?"text-white":"",xe=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),ge=p((({icon:e,image:t,title:n,subtitle:i,isFillGradient:r})=>u("div",{role:"columnheader",children:[e?h(B,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&h("div",{className:"mb-3.5",children:h(B,{image:t})}),n?h(v,{headingType:"h4",className:pe(r),title:n}):null,i?h("div",{className:xe(r),children:i}):null]}))),be=p((({cell:e,rowHeader:t,isFillGradient:n=!1})=>h("div",{className:"box-border flex flex-col",role:"cell",children:h("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(fe(n,t))})}))),fe=(e,t)=>({label:n,description:i},r)=>u("div",{className:"flex justify-between text-s py-3.5",children:[h("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),u("div",{className:"basis-1/2",children:[n?h("div",{className:"text-right "+(e?"text-white":""),children:n}):null,i?h("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:i}):null]})]},String(r)),Ne=p((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:i,showRow:r,onToggleColumn:l})=>{const a=t?.slice(0,r?t.length:n),s=i?"secondary":"primary";return u("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${i?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[h(ge,{...e,isFillGradient:i}),a?.length?a.map((({rowHeader:e,cell:t},n)=>h(be,{cell:t,rowHeader:e,isFillGradient:i},String(n)))):null,r&&e?.link?h(me,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,ye({onToggleColumn:l,isFillGradient:i,showRow:r})]})})),ye=({onToggleColumn:e,isFillGradient:t,showRow:n})=>h("div",{className:"mt-5",role:"cell",children:h("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),ve=p((e=>{const{className:t,title:n}=e;return u("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[n?h(v,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,h("div",{role:"table",children:h(we,{...e})})]})})),we=p((({columns:e,rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:r,orientation:a,...s})=>{const[o,c]=i(new Array(e?.length||0).fill(!r)),d=l((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),m=l((()=>c((e=>new Array(e.length).fill(!1)))),[]),u=e?.map((({data:e,header:i},l)=>{return h(Ne,{visibleRowLength:r,showRow:o[l],header:i,columnData:(a=e,a?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===l&&n,onToggleColumn:()=>d(l),...s},String(l));var a}));return"horizontal"===a?h(U,{onSlideChange:m,children:u}):u})),ke=new Map;function $e(e,t,{fallback:n}={}){const l=a((()=>Ce(e)),[e]),[s,o]=i(),[c,d]=i(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!l.every((e=>null===e)))try{const e=t(...l);"then"in e?(e=>{e.then((e=>ke.get(l)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...l]);const u=l[0],p=n&&"string"==typeof u&&n[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function Ce(e){return e?Array.isArray(e)?e:e instanceof Function?Ce(e()):[e]:[e]}async function Se(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function Te(e,t={}){const{data:n}=$e(`/wcms-resources/${e}.json`,Se,{fallback:t});return n||{}}const _e=p((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:r}=(()=>{const[e,t]=i("");return{term:e,setTerm:e=>t(e)}})(),l=t?"text-s":"text-l-light",a=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return u("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[h("div",{className:t?"w-5 h-5":"w-6 h-6",children:h(B,{image:"LoupeIcon",width:"24",height:"24"})}),n?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${l}`,children:"Поиск по сайту"})]}),h("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-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${a}`,value:n,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?h("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:h(B,{image:"CloseIcon",width:"24",height:"24"})}):h(me,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:h("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),Ie=p((e=>h(_e,{...e,isMobile:!0}))),je=p((({className:e="",documents:t,...n})=>h(N,{className:`font-sans bg-white mt-[10px] ${e}`,...n,children:h("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?De(t):null})}))),De=e=>e.map(((e,t)=>{const{text:n,...i}=e;return h("li",{className:"mb-4 list-none",children:h("a",{className:"hover:text-primary-main",role:"link",...i,children:n||null})},`list_item_${String(t)}`)})),Ae={"bg-white":"color",transparent:"white"},Re={"bg-white":"text-primary-main",transparent:"text-white"},Oe={"bg-white":"text-black",transparent:"text-white"},Me=p((({className:e="",href:t,children:n,targetBlank:i,bgColor:r="bg-white",showTitle:l=!0})=>u("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:i?"_blank":"_self","aria-label":"Россельхозбанк",children:[h(B,{image:{icon:"LogoIcon",iconVersion:Ae[r]},className:`${Re[r]}`,width:"34",height:"34",asSVG:!0}),l?h("span",{className:`${Oe[r]} text-s font-medium ml-2.5`,children:n||"Россельхозбанк"}):null]}))),Le=p((({className:e="",title:t="Мобильное приложение",description:n,href:i="#"})=>h("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:i?u("div",{className:"flex",children:[h("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:h(Me,{className:"w-8",bgColor:"transparent",showTitle:!0})}),u("a",{href:i,target:"_blank",className:"flex flex-col justify-center pl-3",children:[h("div",{className:"text-s font-medium mb-[3px]",children:t}),h("div",{className:"text-s text-secondary-text",children:n})]})]}):null}))),Be=p((({className:e="",items:t,hasButton:n})=>u("div",{className:e,children:[t?.length?t.map(Ve):null,n?h(me,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),Ve=(e,t)=>{const{type:n,text:i,description:r}=e;return u("div",{className:"mb-4",children:[h("div",{children:Ee(n,i)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},Ee=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Fe(t)}`,children:t});case"email":return h("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return h("span",{children:t})}},Fe=e=>e.replaceAll(/\D/g,""),Pe=p((({className:e="",index:t,text:n,...i})=>{const r=ee(),{href:l,target:a,onClick:s}=r(i);return h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:a,onClick:s,children:n||`Документ ${t}`})})),ze=p((({title:e,links:t,className:n=""})=>u("div",{className:n,children:[h("span",{className:"text-primary-text text-s font-medium",children:e}),t?.length?h("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>h(Pe,{index:t,className:"text-s",...e},String(t))))}):null]}))),Ge=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],He=p((({version:e="primary",...t})=>{const n=ee(),{href:i,onClick:r}=n(t),{icon:l,label:a}=Ge.find((({origins:e})=>e.some((e=>i?.includes(e)))))||{};if(!l)return null;return h("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===e?"bg-white hover:bg-secondary-hover":"border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===e?"hover:text-black":""}`,href:i,"aria-label":a,target:"_blank",rel:"noopener noreferrer",onClick:r,children:l?h(B,{image:V(l),imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),We=p((({className:e="",media:t,version:n})=>h("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e}`,children:t?.map(((e,t)=>h(He,{version:n,...e},String(t))))}))),Je=p((({className:e="",index:t,...n})=>{const i=ee(),{href:r,target:l,text:a,onClick:s}=i(n);return h("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:l,onClick:s,children:a||`Документ ${t}`})})),Ue=p((({className:e="",links:t})=>u("div",{className:e,children:[h("div",{className:"py-6",children:h("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?h("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>h(Je,{index:t,...e},String(t))))}):null]}))),Ye=p((({className:e="",...t})=>{const n=t.page?.fallback,i=Te(c.SITEMAP||"sitemap",n),{documents:r,relatedEnterprises:l,contacts:a,socialMedia:s,horizontalNavigationTitle:o}=Te(c.FOOTER||"footer",n);return u("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[h(Be,{className:"overflow-hidden",items:a,hasButton:!0}),h(w,{children:i.topItems?.map(((e,n)=>h(F,{label:e.text,...t,children:h(je,{documents:e.items,...t})},String(n))))}),h("div",{children:i?.dispositions?.map(Ke)}),h(Le,{title:"Мобильное приложение",description:"Загрузить для IOS и Android",...t}),h(Ie,{className:"grow"}),h(We,{className:"pb-4",media:s}),h(ze,{title:o,links:l}),h(Ue,{links:r})]})})),Ke=(e,t)=>{const{icon:n,href:i,text:r}=e;return u(me,{version:"link",href:i,className:"flex text-s mb-4 w-6",children:[n?h(B,{className:"pr-1",image:V(n),width:"24",height:"24",asSVG:!0}):null,h("span",{className:"pl-2.5 font-medium text-primary-text",children:r})]},`footer-${t}`)},Xe={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},qe=p((({title:e,description:t,cards:n=[],className:i,orientation:r="horizontal"})=>u("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${i}`,children:[u("div",{className:"flex flex-col items-center mb-5",children:[e?h(v,{headingType:"h3",className:`text-center ${t?"mb-2":"mb-5"}`,title:e}):null,t?h("div",{className:"text-m max-w-[600px] text-center mb-5",children:t}):null]}),Qe(r,n)]})));function Qe(e,t){return"horizontal"===e?h(U,{children:t?.map(Ze)}):h("div",{className:"grid gap-[14px]",children:t?.map(Ze)})}function Ze(e,t){return u("div",{className:`h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${Xe[e.version??"primary"]}`,children:[u("div",{children:[et(e.icon),e.title?h("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?tt(e):null,e.items?.length?it(e.items,e.isDotted,e.version):null]}),e?.button?.text?(n=e.button,h(me,{className:"mt-3",...n})):null]},t);var n}const et=e=>e?.src||e?.icon?h("div",{className:"flex justify-center",children:h(B,{className:"mb-3.5",image:e})}):null;function tt(e){return h("div",{className:"text-secondary-text mt-1 text-s "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const nt={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"};function it(e,t,n="primary"){return h("section",{className:"mt-3",children:e.map(((e,i)=>u("div",{children:[t?h("div",{className:`rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${nt[n]}`}):null,h("span",{className:"text-m font-medium",children:e.title}),h("span",{className:"text-s pl-2 "+("primary"===n?"text-secondary-text":""),children:e.text})]},String(i))))})}const rt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(K(e),K(Y(e)?t.href:t.pathname)),lt=e=>t=>rt(t.href,e),at=e=>t=>t.items?.some(lt(e))||rt(t.href,e)||((e,t)=>X(e)===X(t.href))(t.href,e),st="absolute left-0 -bottom-3 w-full h-[2px]",ot=p((({className:e="",text:t,href:n,target:i,active:r,onClick:l,children:a,bgColor:s="bg-white"})=>u("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:n,target:i,onClick:l,children:[h("span",{className:ct(s,r),children:t||a}),r?h("div",{className:dt(s,r)}):null]}))),ct=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans text-s`},dt=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${st}`:st,mt=o("https://10.80.4.9");const ht=p((({burgerSubMenu:e,onClick:t,defaultLocation:n="",children:a})=>{const[s,o]=function(e){const[t,n]=i(e);return r((()=>{n(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,l((()=>{mt.getFetcherAddress().then((t=>{const i=t||e;globalThis?.localStorage.setItem("location",i),n(i)}))}),[e])]}(n);return u("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[h("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:t,children:h(B,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),u("button",{onClick:o,className:"flex items-center text-s text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[h(B,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),s]}),a,h("div",{className:"mb-7",children:e?.map(ut)}),h(Ie,{className:"grow"})]})})),ut=(e,t)=>{const{icon:n,href:i,text:r}=e;return u("a",{href:i,className:"flex text-s mb-4 hover:text-primary-main",children:[n?h(B,{className:"text-primary-main pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,h("span",{className:"font-medium pl-0.5",children:r})]},`headerSubMenu-${t}`)},pt=p((({onClick:e,bgColor:t})=>u("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[u("div",{className:"flex items-center",children:[h("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:h(B,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),h(Me,{className:"mr-8",bgColor:t})]}),h("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-s border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),xt=p((({className:e="",bgColor:t="bg-white",...n})=>{const r=Z(),{page:l}=n,a=l?.fallback,{topItems:s,dispositions:o,defaultLocation:d}=Te(c.SITEMAP||"sitemap",a),m=s?.find(at(r)),p=m?.items,x=(e=>(t=[])=>{const n=t?.filter(lt(e));return n?.length?(i=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>i(e)>i(t)?e:t)))(n):void 0;var i})(r)(p),[g,b]=i(!1),f=()=>b(!g);return u("header",{className:`${t} ${e}`,children:[u("div",{className:"container px-4 py-0 box-border",children:[h(pt,{onClick:f,bgColor:t}),h("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:h("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:p?.map(((e,n)=>h(ot,{className:"mr-8 whitespace-nowrap text-s",active:e===x,bgColor:t,...e},String(n))))})})]}),g?h(ht,{onClick:f,burgerSubMenu:o,defaultLocation:d,children:h(w,{children:s?.map(((e,t)=>h(F,{label:e.text,...n,children:h(je,{documents:e.items,...n})},String(t))))})}):null]})})),gt={left:"text-left",center:"text-center",right:"text-right"},bt={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},ft=p((({bgColorHeadline:e="transparent",className:t="",title:n,description:i,image:r,align:l="left"})=>{const a=bt[e];return u("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${a.background} ${t}`,children:[n?h(v,{headingType:"h2",className:`${a.text} ${gt[l]}`,title:n}):null,i?h("p",{className:`text-m ${a.description} ${gt[l]}`,children:i}):null,r?.src&&h("div",{className:"mt-2.5 mx-auto flex justify-center",children:h(B,{image:r})})]})})),Nt=p((({className:e,iconClassName:t,textClassName:n,suffixClassName:i,doc:r,icon:l})=>{const{text:a,fileSize:s,...o}=r;return u("a",{className:e,role:"link",...o,children:[l?h(B,{className:t,image:V(l),width:"24px",height:"24px",asSVG:!0}):null,a?u("span",{className:n,children:[a,h("span",{className:i,children:o?.href&&yt(vt(o.href),s)})]}):null]})})),yt=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),vt=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},wt=p((({className:e="",doc:t,icon:n})=>h(Nt,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),kt=p((({hasBorder:e=!0,documents:t,icon:n})=>h(U,{className:"text-s text-primary-main mt-5",children:t?.length?t.map(((t,i)=>h(wt,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n},String(i)))):null}))),$t=p((({hasBorder:e=!0,documents:t,icon:n})=>h("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)=>h("div",{role:"listitem",children:h(wt,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n})},String(i)))):null}))),Ct=p((({className:e="",title:t,description:n,icon:i={icon:"DocIconMonoColor"},documents:r,orientation:l="vertical",hasBorder:a=!0,...s})=>u("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[h(ft,{className:"!p-0 "+(n?"gap-2":"gap-5"),title:t,description:n,align:"center",...s}),h("vertical"===l?$t:kt,{hasBorder:a,documents:r,icon:i})]}))),St=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Tt(e=""){const t=St(e);return t<=4?"S":t<=8?"M":"L"}function _t(e=""){const t=St(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function It(e=""){const t=St(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const jt=p((({className:e,title:t,description:n="Блок в разработке...",...i})=>u(N,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${It(e)} ${_t(e)} `,...i,children:[h(ft,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:Tt(e),...i}),h("figure",{className:"m-0 min-w-[80%]",children:Dt()})]}))),Dt=(e=3)=>Rt(100,e).map((e=>Math.floor(e))).map(At),At=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Rt=(e,t)=>[e].concat(t>0?Rt(e/1.618,t-1):[]),Ot=p((({className:e="",buttons:t})=>t&&t?.length?h("div",{className:e,children:t.map(((e,t)=>Mt({button:e,index:t})))}):null));function Mt({button:e,buttonClassName:t,index:n}){const{icon:i,iconRight:r,version:l,...a}=e,s="secondary"===l?"color":"white",o=Lt({...i,iconVersion:s}),c=Lt({...r,iconVersion:s});return h(me,{className:t,appendLeft:o,appendRight:c,version:l,...a},n?String(n):"")}const Lt=e=>{if(!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return h(B,{image:{...e},width:t,height:"24",asSVG:!0})},Bt={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},Vt={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"},Et=p((({className:e="",isDotted:t=!0,children:n,version:i="primary",size:r="M"})=>u("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?h("div",{children:h("div",{className:`rounded-full align-middle inline-block ${Bt[i]} ${Vt[r]}`})}):null,h("span",{children:n})]}))),Ft={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},Pt={S:"text-l-light",M:"text-h6",L:"text-h5"},zt={S:"ml-2",M:"ml-3",L:"ml-4"},Gt=p((e=>{const{className:t="",hasIndent:n,isDotted:i,itemClassName:r="",items:l,listItemSize:a="M",version:s="primary"}=e;return l?.length?h("section",{className:`${Ft[s]} ${Pt[a]} ${t} ${n?zt[a]:""}`,role:"list",children:l.map(((e,t)=>h(Et,{className:`${r} mb-1.5`,isDotted:i,version:s,size:a,children:e},String(t))))}):null})),Ht=p((({className:e="",title:t="",buttons:n,image:i,children:r})=>u("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,u("div",{className:"flex grow w-full justify-between",children:[u("div",{className:"flex flex-col justify-between w-full",children:[h("div",{className:"h-full",children:r}),n?h("div",{className:"mt-auto pt-8",children:n}):null]}),i]})]}))),Wt={primary:"text-primary-text",secondary:"text-white"},Jt={primary:"text-secondary-text",secondary:"text-white"},Ut=p((e=>{const{className:t="",icon:n,label:i,description:r,version:l="primary",benefitsVersion:a="normal"}=e,s="white"===a?"secondary":"primary";return u("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[n?h("div",{className:Yt(l,a),children:h(B,{className:"w-6 h-6",image:V(n,s),asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[i?h("div",{className:`text-h6 ${Wt[l]}`,children:i}):null,r?h("div",{className:`text-m-light ${Jt[l]}`,children:r}):null]})]})}));function Yt(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-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const Kt=(e="primary",t="normal")=>({icon:n,label:i,description:r},l)=>h(Ut,{icon:n,label:i,description:r,version:e,benefitsVersion:t},String(l)),Xt=p((({className:e="",headlineVersion:t="L",benefits:n,benefitsVersion:i="normal",buttons:r,image:l,items:a,version:s="primary",isDotted:o=!0,label:c,...d})=>u("div",{className:`w-full ${e}`,children:[u("div",{children:[c?Zt(c,s):null,h(ft,{className:"!p-0 max-w-[600px]",bgColorHeadline:s,headlineVersion:t,...d}),u(Ht,{buttons:r?.length?h(Ot,{buttons:r,className:"flex flex-col mt-5 gap-2.5"}):null,children:[n?.filter((e=>e.label))?.length?h("div",{className:"mt-3",children:n.map(Kt(s,i))}):null,a?.length?h(Gt,{className:"mt-3 text-m",items:a,version:s,isDotted:o}):null]})]}),qt(l)]})));function qt(e){return e?.src?h(B,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const Qt={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},Zt=(e,t)=>h("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${Qt[t]}`,children:e}),en=p((e=>{const{className:t="",version:n="primary"}=e;return h("section",{className:`font-sans bg-white px-4 py-6 ${Xe[n]} ${t}`,children:h(Xt,{...e})})})),tn={primary:{background:"bg-white",title:"text-primary-text",description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{background:"bg-primary-main",title:"text-white",description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},nn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},rn={normal:"min-h-[70px]",small:"min-h-[50px]"},ln=p((({className:e,title:t,description:n,showLines:i=!0,steps:r,size:l="normal",version:a="primary"})=>{const s=tn[a];return u("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${s.background} ${s.title} ${e||""}`,children:[t?h(v,{headingType:"h3",className:`text-center ${s.title}`,title:t}):null,n?h("p",{className:`text-m-light text-center ${s.description} ${t?"mt-2":""}`,children:n}):null,r?.length?h("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:h("div",{className:"flex flex-col justify-between gap-x-[101px]",children:r.map(an(l,a,i))})}):null]})})),an=(e,t,n)=>(i,r,l)=>{const a=l.length-1===r,s="normal"===e?"ml-[34px]":"ml-6",o=tn[t];return h("div",{children:u("div",{className:"flex flex-row text-center relative",children:[u("div",{className:"overflow-hidden flex-shrink-0",children:[sn(e,t)(i,r),a?null:h("div",{className:`min-h-8 h-full w-[2px] ${n?o.iconConnector:""} ${s}`})]}),u("div",{className:`flex flex-col justify-center h-fit ${rn[e]}`,children:[i.label?h("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:i.label}):null,i.description?h("div",{className:`text-s ${o.description} text-left`,children:i.description}):null]})]})},String(r))},sn=(e,t)=>(n,i)=>{const r=tn[t],l="normal"===e?"38":"27",a="normal"===e?"text-m-title":"text-m-title-xs";return h("div",{className:`${nn[e]} ${r.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:h("span",{className:`font-medium flex self-center ${r.title} ${a}`,children:(s=n?.icon,Boolean(s?.icon||s?.src)?h(B,{image:V({...n.icon},t),width:l,height:l,asSVG:!0}):h("span",{children:i+1}))})});var s},on={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({rounded:e,icon:t,...n},i)=>Mt({button:{rounded:e,icon:t,...n},buttonClassName:`mt-3 ${i>0&&e?"ml-2.5":""} ${t?"w-12 h-12":""}`,index:i})))}):null,Img:({image:e})=>e?.src?h(B,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>h(Gt,{className:"flex flex-col justify-between items-start text-m",version:"gray",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>u("div",{children:[e?h("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?h("div",{className:"text-s text-secondary-text",children:t}):null]})},cn=p((({title:e,icon:t})=>u("div",{className:"flex gap-2.5 mb-2",children:[e?h(v,{headingType:"h3",className:"font-medium",title:e}):null,t?h(B,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),dn=p((({tile:e,...t})=>u("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[h(cn,{...e?.header}),e?.data?.length?e.data.map(((e,n)=>u("div",{children:[n>0?h("div",{className:"h-5"}):null,mn(e,t)]},String(n)))):null]})));function mn(e,t){if(!e||!e.tableCellType||!(e.tableCellType in on))return null;const n=on[e.tableCellType];return h(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const hn=p((({tiles:e,...t})=>e?.length?h(U,{...t,children:e.map(((e,n)=>h(dn,{tile:e,...t},String(n))))}):null)),un=p((({tiles:e,...t})=>e?.length?h("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>h(dn,{tile:e,...t},String(n))))}):null)),pn=p((({className:e,title:t,description:n,tariffsColumns:i,rowHeaders:r,orientation:l="vertical",...a})=>{const s=xn(i),o=gn(r,s);return u("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[t?h(v,{headingType:"h2",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?h("div",{className:"mb-5 text-center text-m",children:n}):null,h("vertical"===l?un:hn,{tiles:o,...a})]})})),xn=e=>e?.[0].data?e[0].data:[],gn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),bn={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"}},fn=p((({title:e,description:t,blockVersion:n="primary",iconVersion:i,image:r,className:l="",items:a,isDotted:s=!0})=>{const o=bn[n],c="secondary"===n?"secondary":"gray";return u("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${l}`,children:["small"===i?Nn(o.icon):null,"big"===i?yn(r):null,u("div",{className:"py-0.5",children:[e?h("div",{className:`text-l font-medium mb-1 ${o.title}`,children:e}):null,t?h("div",{className:`text-s ${o.description}`,children:t}):null,a?.length?h(Gt,{className:"mt-1 text-m",items:a,isDotted:s,version:c}):null]})]})}));function Nn(e){return h("div",{className:"mb-3",children:h("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function yn(e){return e?.src?h(B,{className:"pb-3 mr-auto",image:e}):null}const vn={Accordion:k,AccordionItem:F,ComparisonTable:ve,Footer:Ye,Gallery:qe,Header:xt,Headline:ft,LinkDocs:Ct,LinkList:je,MobileAppTile:Le,ProductBlock:en,StepsBlock:ln,TariffsTable:pn,TextBlock:fn,Placeholder:jt};function wn(e){return e?e.filter(Boolean).join(" "):""}const kn=m();const $n=p((({className:e,onClick:t,ariaLabel:n})=>h("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:Cn()}))),Cn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[h("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"}),h("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"})]})},Sn=p((({className:e=""})=>{const t=function(e){const[t,n]=i(0);return r((()=>{(async()=>{const[t]=await kn.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:l((async()=>{n(await kn.like(e))}),[e]),dislike:l((async()=>{n(await kn.dislike(e))}),[e])}}(Z().pathname);return u("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:[h($n,{onClick:Q(t.like),ariaLabel:"Поставить отметку «лайк»"}),h($n,{onClick:Q(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:t.likeCount})]})})),Tn=({slots:e,parent:t,options:n,ancestors:i=[]})=>Object.entries(e||{}).reduce(((e,[r,l])=>({...e,[r]:_n({blocks:l,parent:t,slotName:r,options:n,ancestors:i})})),{});const _n=({blocks:e,parent:t,slotName:n=null,options:i,ancestors:r=[]})=>(e||[]).map(((e,l)=>function({block:e={},options:t,ancestors:n=[]}){const{key:i,page:r,blockDecorator:l,blocksRegistry:a={}}=t,{type:s,slots:o,blocks:c}=e;s&&s in a||console.warn(`No block with "${s}" is registered`);const d=s&&a[s],m={parent:e,options:t,ancestors:n},u=_n({...m,blocks:c}),p=o?Tn({...m,slots:o}):{};return l({blockClassName:`scroll-mt-12 ${wn(e.style)}`,block:e,ancestors:n,render:({block:e,blockClassName:t})=>{const{content:l}=e;return d?h(d,{page:r,block:e,className:t,ancestors:n,slots:p,...l,children:u},i):null}},i)}({block:e,options:{...i,key:`${i.key?i.key:e.type}-${l}`},ancestors:[...r,[t,n]]}))),In=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),jn=p((e=>{const{className:t="",blocksRegistry:n,blockDecorator:i,data:r={}}=e,{style:l,blocks:a,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",blocksRegistry:n,page:r,blockDecorator:i||In},m=Tn({slots:s,parent:r,options:d});return u("section",{className:`relative ${wn(l)} ${t}`,"data-theme":c,children:[m?.header?h("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:m.header}):null,a?.length?u("div",{className:"container grid grid-cols-12 gap-1",children:[_n({blocks:a,parent:r,options:d}),m?.footer?m.footer:null]}):null,o?h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(Sn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));jn.childrenTypes=[],jn.slots=()=>["header","footer"];e.Blocks=vn,e.ContentPage=jn,e.DaDataAPI=o,e.LikeAPI=m,e.handlerDecorator=Q,e.joinList=function(e){return t=>t.reduce(((t,n,i)=>t.length?t.concat({...e,key:i},n):[n]),[])},e.packageVersion="0.6.31",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=q,e.useRouter=Z,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"),l=n("useCallback"),a=n("useMemo"),s=n("useRef");function o(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}}}}const c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};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}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 CDN(){return this._.CDN}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d="likesToken";function m(){async function e(){try{const e=JSON.parse(globalThis.localStorage.getItem(d)||"");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(d,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 h=(...e)=>globalThis._uni._jsx(...e),u=(...e)=>globalThis._uni._jsxs(...e),p=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:x(e)),t._tmpl},x=e=>{function t(t,n){const{children:i,...r}=t||{},l=n?.slots?.default,a=i||l&&l();return e(Object.assign(r,a&&{children:a}),n)}return t.inheritAttrs=!1,t};class g{static inst=new g;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]||=[],this.subscribers[e]?.push(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){this.subjectsStateMap[e]=t,this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const b=100,f={threshold:new Array(18).fill(0).map((function(e,t){const n=(t+1)/b+.82;return Math.round(n*b)/b}))},N=p((({className:e,block:t,tag:n="section",role:l,children:o})=>{const c=n,{anchor:d,labels:m}=t||{},[u,p]=i(!0),x=s({}),b=a((()=>(({anchor:e,anchorClickRef:t})=>n=>{if(!n?.length)return;const[i]=n;!i.isIntersecting||i.boundingClientRect.top>150||(t?.current?.isScrolling&&t.current.label===`#${e}`?(g.inst.fire("anchorClick",{isScrolling:!1,label:void 0}),g.inst.fire("tab",{type:"link",label:e})):t?.current?.isScrolling||g.inst.fire("tab",{type:"link",label:e}))})({anchor:d,anchorClickRef:x})),[d]),N=function(e,t){const n=s(null);return r((()=>{if(!n.current)return;const i=new IntersectionObserver(e,t);return i.observe(n.current),()=>{i.disconnect()}}),[e,t]),n}(b,f);return r((()=>g.inst.subscribe("anchorClick",(e=>{p(!0),x.current=e}))),[]),r((()=>g.inst.subscribe("tab",(e=>{if("group"===e.type){const n=m?.length||t?.anchor;p(!e.label||(!n||Boolean(m?.includes(e.label))))}else(n=e.label)&&(globalThis.document.location.hash=n),p(!0);var n}))),[]),u?h(c,{className:e,role:l,...d?{id:d,ref:N}:{},children:o}):null}));const y={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"},v=p((e=>{const{className:t,headingType:n="h3",title:i,as:r="h3"}=e;return h(r,{className:`font-sans font-medium m-0 ${y[n]} ${t||""}`,children:i})})),w=p((e=>{const{size:t="",color:n="",align:i="",font:r="",children:l}=e;return h("p",{className:`font-sans ${t} ${n} ${i} ${r}`,children:l})})),k=p((({children:e})=>h("ul",{className:"list-none m-0 p-0",children:e}))),$=p((({title:e,description:t,className:n="",children:i,...r})=>u(N,{className:`py-6 px-4 bg-white text-primary-text ${n}`,...r,children:[e?h(v,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?h("div",{className:"mb-5",children:h(w,{size:"text-m",font:"font-light",align:"text-center",children:t})}):null,h(k,{children:i})]})));$.childrenTypes=["AccordionItem"];const C=p((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:n,renderFoldButton:r})=>{const[a,s]=i(t),o=l((()=>{s((e=>!e))}),[]),c=n({isUnfolded:a,onToggle:o}),d=r?r({isUnfolded:a,onToggle:o}):null;return u("div",e?{children:[d,c]}:{children:[c,d]})})),S=p((({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]),h("div",{ref:i,className:`transition-max-h duration-300 overflow-hidden max-h-0 ${e}`,children:n})})),T={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},_=p((({className:e="",imageClassName:t="",name:n="",alt:i=`Иконка ${n}`,title:r=i,iconVersion:l="color",asSVG:a,...s})=>{const o=`${c.CDN||""}icons/${n}.svg`;return a&&"normal"!==l?h(D,{className:e,children:u("svg",{className:[j(e,s.width),T[l],t,I(l)].join(" "),...s,"aria-hidden":"true",children:[r?h("title",{children:r}):null,i?h("desc",{children:i}):null,h("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):h("img",{className:e,src:o,alt:i,title:r,...s,"aria-hidden":"true"})})),I=e=>"white"===e?"invert":"",j=(e,t)=>t?`width: ${t}px `:"w-full h-full",D=p((({className:e,children:t})=>e?h("div",{className:e,children:t}):t));function A(e){return"string"==typeof e?"normal":e?.iconVersion||"normal"}const R=(e,t)=>e.media&&t.media?e.media-t.media:0,O=p((({className:e="",image:t,imageClassName:n="",isMobile:i=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${i?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(R).map((({src:e,format:n,media:i},r)=>h("source",{srcSet:e,type:L(n),media:i?`(max-width: ${i}px)`:"",...t.size},`${r}_${e}`))):null,M(t,n,i)]})})),M=(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||"",l=e.alt||e.title,a=n?"m-auto":"m-0";return h("img",{src:e.src,className:`${a} ${t}`,alt:l,title:r,style:i,...e.size})};function L(e){return e?`image/${String(e)}`:void 0}const B=p((({className:e="",image:t,imageClassName:n="",isMobile:i,...r})=>{if(!t)return null;const l="string"==typeof t?t:t.icon;return l||""===l?l.length?h(_,{className:e,imageClassName:n,iconVersion:A(t),name:l,...r}):null:h(O,{className:e,imageClassName:n,image:t,isMobile:i})})),V=p((e=>h(B,{...e,isMobile:!0}))),E=p((e=>{const{size:t="",color:n="",align:i="",font:r="",children:l}=e;return h("span",{className:`font-sans ${t} ${n} ${i} ${r}`,children:l})})),F=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),P=["PlusIcon","MinusIcon"],z=p((({className:e="",ancestors:t,label:n="",labelIcon:i,isExpanded:r,children:l})=>{const{bordered:a}=function(e,t){const{content:n}=function(e,t){const[n]=(e||[]).map((e=>e)).reverse().find((([e])=>e&&"type"in e&&(!t||t===e.type)))||[];return n||{}}(e);return n||t}(t,{});return h("li",{className:`${a?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"} border-solid border-main-divider ${e}`,children:h(C,{isFoldButtonOnTop:!0,unfoldedByDefault:r,renderFoldableSection:({isUnfolded:e})=>h(S,{className:"flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0",isUnfolded:e,children:l}),renderFoldButton:({isUnfolded:e,onToggle:t})=>h(G,{className:a?"":"py-[14px] px-0",label:n,icon:P[Number(e)],primaryIcon:i,onClick:t})})})}));z.childrenTypes=[];const G=p((({className:e,icon:t,label:n,primaryIcon:i,onClick:r})=>u("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:[u("div",{className:"flex group-hover:text-primary-main",children:[i?h(V,{image:F(i),className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,h(E,{size:"text-m-title-xs",font:"font-medium",children:n})]}),h(V,{className:"flex-shrink-0",image:F({icon:t}),width:"24",height:"24",asSVG:!0})]}))),H=p((({children:e,activeIndex:t,indexFraction:n,showDots:i})=>{const r=e=>n=>{if(e===t)return;const i=n.currentTarget.parentElement?.previousElementSibling;i?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return i&&e?.length?h("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,i)=>h("div",{onClick:r(i),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:W(i,t,n),"aria-hidden":!0},String(i))))}):null})),W=(e,t,n)=>{if(e<t||e>t+1)return;const i=1-n;return e===t?{opacity:""+(.3+.7*i),width:6+16*i+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},J=p((({className:e="",children:t,...n})=>h("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...n,children:t}))),U=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),Y=p((({className:e="",children:t,activeIndex:n,onScroll:i,gap:r=14,padding:l=16})=>h("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...U(l),gap:`${r}px`},role:"list",onScroll:i,children:t?.length?t?.map(((e,t)=>h(J,{style:U(l/4),"aria-current":Boolean(n===t),children:e},String(t)))):h(J,{children:t})}))),K=p((({className:e,gap:t=14,padding:n=16,showDots:r=!0,onSlideChange:l,children:a})=>{const[s,o]=i(0),[c,d]=i(0),m={activeIndex:s,indexFraction:c,showDots:r,children:a};return u("div",{className:e,children:[h(Y,{gap:t,padding:n,activeIndex:s,onScroll:e=>{const{scrollLeft:i,clientWidth:r,childElementCount:a,scrollWidth:c,children:m}=e?.currentTarget,h=m[0].offsetWidth-n/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:i,childElementCount:r,itemWidth:l})=>{const a=i-n;if(2===r)return[[0,a],[a,i]];const s=l+e,o=n-e-t,c=r-2,d=new Array(r).fill(0).map(((e,t)=>0===t||t===c?[t>0?a-o:0,t>0?a:o]:[(t-1)*s+o,t*s+o]));return d[r-1]=[a,i],d})({gap:t,padding:n,clientWidth:r,scrollWidth:c,childElementCount:a,itemWidth:h}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[i,r]=t[n];return{index:n,fraction:(e-i)/(r-i)}})(i,u);p!==s&&l&&l(),o(p),d(x)},children:a}),h(H,{...m})]})})),X=e=>e?.includes("//"),q=e=>(e||"").replace(/\/?\?.*/,""),Q=e=>{if(!e||!X(e))return;const t=e,n=t.indexOf("//"),i=t.indexOf("/",n+"//".length);return-1!==i?t.substring(0,i):t};var Z=Object.freeze({__proto__:null,isURL:X,withoutQuery:q,getOrigin:Q,getHash:e=>{if(!e||!X(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:e=>e?.startsWith("#")});const ee=(e,t)=>ee._impl(e,t);function te(){return te._impl()}function ne(){const e=te();return t=>{const n=((e,t)=>{if(!e)return e;const n=Q(t?.href);return n?e.replace(n,"")||"/":e})(t.href,e);return{...t,href:n,"aria-label":t.text,onClick:ee((i=>{t.onClick&&t.onClick(i);const r=n&&!X(n),l=!t.target||"_self"===t.target;r&&l&&(i?.preventDefault(),e.push(n))}),t)}}}ee._impl=e=>e,ee.setup=e=>{ee._impl=e},te._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),te.setup=e=>{te._impl=e};const ie={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:""},re="bg-main-divider text-main-disabled",le={primary:re,secondary:re,white:re,link:""},ae="text-center font-sans select-none",se={primary:"group-hover:brightness-0 group-hover:invert",secondary:"group-hover:brightness-0 group-hover:invert",white:"group-hover:brightness-0 group-hover:invert",link:""},oe=p((e=>{const{text:t,aboveText:n,appendLeft:i,appendRight:r,version:l="primary"}=e;return u("div",{className:ce(e),children:[i?h("div",{className:se[l],children:i}):null,de(e)?u("div",{children:[n?h("div",{className:"text-xs-light text-left",children:n}):null,h("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?h("div",{className:se[l],children:r}):null]})})),ce=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 flex items-center justify-center",de(e)?r:"h-12 w-12",i?"rounded-full":""].join(" ")},de=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),me=({className:e,rounded:t,version:n})=>["inline-block",ae,n?le[n]:"",t?"rounded-full":"rounded-md",e].join(" "),he=({className:e,rounded:t,version:n})=>[ae,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border",n?ie[n]:"",t?"rounded-full":"rounded-md",e].join(" "),ue=p((({disabled:e,children:t,...n})=>{const i=ne()(n),r=t??h(oe,{...i});return h(e?xe:pe,{...i,children:r})})),pe=p((({className:e="",href:t,rel:n,target:i,ariaLabel:r,version:l,rounded:a,onClick:s,children:o})=>h("a",{className:he({className:e,version:l,rounded:a}),href:t,rel:n,target:i,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),xe=p((({className:e,ariaLabel:t,version:n,rounded:i,children:r})=>h("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:me({className:e,rounded:i,version:n}),children:r}))),ge=(e=!1)=>e?"text-white":"",be=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),fe=p((({icon:e,image:t,title:n,subtitle:i,isFillGradient:r})=>u("div",{role:"columnheader",children:[e?h(V,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&h("div",{className:"mb-3.5",children:h(V,{image:t})}),n?h(v,{headingType:"h4",className:ge(r),title:n}):null,i?h("div",{className:be(r),children:i}):null]}))),Ne=p((({cell:e,rowHeader:t,isFillGradient:n=!1})=>h("div",{className:"box-border flex flex-col",role:"cell",children:h("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(ye(n,t))})}))),ye=(e,t)=>({label:n,description:i},r)=>u("div",{className:"flex justify-between text-s py-3.5",children:[h("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),u("div",{className:"basis-1/2",children:[n?h("div",{className:"text-right "+(e?"text-white":""),children:n}):null,i?h("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:i}):null]})]},String(r)),ve=p((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:i,showRow:r,onToggleColumn:l})=>{const a=t?.slice(0,r?t.length:n),s=i?"secondary":"primary";return u("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${i?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[h(fe,{...e,isFillGradient:i}),a?.length?a.map((({rowHeader:e,cell:t},n)=>h(Ne,{cell:t,rowHeader:e,isFillGradient:i},String(n)))):null,r&&e?.link?h(ue,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,we({onToggleColumn:l,isFillGradient:i,showRow:r})]})})),we=({onToggleColumn:e,isFillGradient:t,showRow:n})=>h("div",{className:"mt-5",role:"cell",children:h("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),ke=p((e=>{const{className:t,title:n}=e;return u("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[n?h(v,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,h("div",{role:"table",children:h($e,{...e})})]})})),$e=p((({columns:e,rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:r,orientation:a,...s})=>{const[o,c]=i(new Array(e?.length||0).fill(!r)),d=l((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),m=l((()=>c((e=>new Array(e.length).fill(!1)))),[]),u=e?.map((({data:e,header:i},l)=>{return h(ve,{visibleRowLength:r,showRow:o[l],header:i,columnData:(a=e,a?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===l&&n,onToggleColumn:()=>d(l),...s},String(l));var a}));return"horizontal"===a?h(K,{onSlideChange:m,children:u}):u})),Ce=new Map;function Se(e,t,{fallback:n}={}){const l=a((()=>Te(e)),[e]),[s,o]=i(),[c,d]=i(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!l.every((e=>null===e)))try{const e=t(...l);"then"in e?(e=>{e.then((e=>Ce.get(l)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...l]);const u=l[0],p=n&&"string"==typeof u&&n[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function Te(e){return e?Array.isArray(e)?e:e instanceof Function?Te(e()):[e]:[e]}async function _e(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function Ie(e,t={}){const{data:n}=Se(`/wcms-resources/${e}.json`,_e,{fallback:t});return n||{}}const je=p((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:r}=(()=>{const[e,t]=i("");return{term:e,setTerm:e=>t(e)}})(),l=t?"text-s":"text-l-light",a=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return u("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[h("div",{className:t?"w-5 h-5":"w-6 h-6",children:h(V,{image:"LoupeIcon",width:"24",height:"24"})}),n?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${l}`,children:"Поиск по сайту"})]}),h("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-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${a}`,value:n,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?h("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:h(V,{image:"CloseIcon",width:"24",height:"24"})}):h(ue,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:h("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),De=p((e=>h(je,{...e,isMobile:!0}))),Ae=p((({className:e="",documents:t,...n})=>h(N,{className:`font-sans bg-white mt-[10px] ${e}`,...n,children:h("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?Re(t):null})}))),Re=e=>e.map(((e,t)=>{const{text:n,...i}=e;return h("li",{className:"mb-4 list-none",children:h("a",{className:"hover:text-primary-main",role:"link",...i,children:n||null})},`list_item_${String(t)}`)})),Oe={"bg-white":"color",transparent:"white"},Me={"bg-white":"text-primary-main",transparent:"text-white"},Le={"bg-white":"text-black",transparent:"text-white"},Be=p((({className:e="",href:t,children:n,targetBlank:i,bgColor:r="bg-white",showTitle:l=!0})=>u("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:i?"_blank":"_self","aria-label":"Россельхозбанк",children:[h(V,{image:{icon:"LogoIcon",iconVersion:Oe[r]},className:`${Me[r]}`,width:"34",height:"34",asSVG:!0}),l?h("span",{className:`${Le[r]} text-s font-medium ml-2.5`,children:n||"Россельхозбанк"}):null]}))),Ve=p((({className:e="",title:t="Мобильное приложение",description:n,href:i="#"})=>h("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:i?u("div",{className:"flex",children:[h("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:h(Be,{className:"w-8",bgColor:"transparent",showTitle:!0})}),u("a",{href:i,target:"_blank",className:"flex flex-col justify-center pl-3",children:[h("div",{className:"text-s font-medium mb-[3px]",children:t}),h("div",{className:"text-s text-secondary-text",children:n})]})]}):null}))),Ee=p((({className:e="",items:t,hasButton:n})=>u("div",{className:e,children:[t?.length?t.map(Fe):null,n?h(ue,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),Fe=(e,t)=>{const{type:n,text:i,description:r}=e;return u("div",{className:"mb-4",children:[h("div",{children:Pe(n,i)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},Pe=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${ze(t)}`,children:t});case"email":return h("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return h("span",{children:t})}},ze=e=>e.replaceAll(/\D/g,""),Ge=p((({className:e="",index:t,text:n,...i})=>{const r=ne(),{href:l,target:a,onClick:s}=r(i);return h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:a,onClick:s,children:n||`Документ ${t}`})})),He=p((({title:e,links:t,className:n=""})=>u("div",{className:n,children:[h("span",{className:"text-primary-text text-s font-medium",children:e}),t?.length?h("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>h(Ge,{index:t,className:"text-s",...e},String(t))))}):null]}))),We=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],Je=p((({version:e="primary",...t})=>{const n=ne(),{href:i,onClick:r}=n(t),{icon:l,label:a}=We.find((({origins:e})=>e.some((e=>i?.includes(e)))))||{};if(!l)return null;return h("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===e?"bg-white hover:bg-secondary-hover":"border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===e?"hover:text-black":""}`,href:i,"aria-label":a,target:"_blank",rel:"noopener noreferrer",onClick:r,children:l?h(V,{image:F(l),imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),Ue=p((({className:e="",media:t,version:n})=>h("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e}`,children:t?.map(((e,t)=>h(Je,{version:n,...e},String(t))))}))),Ye=p((({className:e="",index:t,...n})=>{const i=ne(),{href:r,target:l,text:a,onClick:s}=i(n);return h("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:l,onClick:s,children:a||`Документ ${t}`})})),Ke=p((({className:e="",links:t})=>u("div",{className:e,children:[h("div",{className:"py-6",children:h("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?h("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>h(Ye,{index:t,...e},String(t))))}):null]}))),Xe=p((({className:e="",...t})=>{const n=t.page?.fallback,i=Ie(c.SITEMAP||"sitemap",n),{documents:r,relatedEnterprises:l,contacts:a,socialMedia:s,horizontalNavigationTitle:o}=Ie(c.FOOTER||"footer",n);return u("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[h(Ee,{className:"overflow-hidden",items:a,hasButton:!0}),h(k,{children:i.topItems?.map(((e,n)=>h(z,{label:e.text,...t,children:h(Ae,{documents:e.items,...t})},String(n))))}),h("div",{children:i?.dispositions?.map(qe)}),h(Ve,{title:"Мобильное приложение",description:"Загрузить для IOS и Android",...t}),h(De,{className:"grow"}),h(Ue,{className:"pb-4",media:s}),h(He,{title:o,links:l}),h(Ke,{links:r})]})})),qe=(e,t)=>{const{icon:n,href:i,text:r}=e;return u(ue,{version:"link",href:i,className:"flex text-s mb-4 w-6",children:[n?h(V,{className:"pr-1",image:F(n),width:"24",height:"24",asSVG:!0}):null,h("span",{className:"pl-2.5 font-medium text-primary-text",children:r})]},`footer-${t}`)},Qe={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Ze=p((({title:e,description:t,cards:n=[],className:i,orientation:r="horizontal"})=>u("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${i}`,children:[u("div",{className:"flex flex-col items-center mb-5",children:[e?h(v,{headingType:"h3",className:`text-center ${t?"mb-2":"mb-5"}`,title:e}):null,t?h("div",{className:"text-m max-w-[600px] text-center mb-5",children:t}):null]}),et(r,n)]})));function et(e,t){return"horizontal"===e?h(K,{children:t?.map(tt)}):h("div",{className:"grid gap-[14px]",children:t?.map(tt)})}function tt(e,t){return u("div",{className:`h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${Qe[e.version??"primary"]}`,children:[u("div",{children:[nt(e.icon),e.title?h("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?it(e):null,e.items?.length?lt(e.items,e.isDotted,e.version):null]}),e?.button?.text?(n=e.button,h(ue,{className:"mt-3",...n})):null]},t);var n}const nt=e=>e?.src||e?.icon?h("div",{className:"flex justify-center",children:h(V,{className:"mb-3.5",image:e})}):null;function it(e){return h("div",{className:"text-secondary-text mt-1 text-s "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const rt={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"};function lt(e,t,n="primary"){return h("section",{className:"mt-3",children:e.map(((e,i)=>u("div",{children:[t?h("div",{className:`rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${rt[n]}`}):null,h("span",{className:"text-m font-medium",children:e.title}),h("span",{className:"text-s pl-2 "+("primary"===n?"text-secondary-text":""),children:e.text})]},String(i))))})}const at=(e,t,n=((e,t)=>t.startsWith(e)))=>n(q(e),q(X(e)?t.href:t.pathname)),st=e=>t=>at(t.href,e),ot=e=>t=>t.items?.some(st(e))||at(t.href,e)||((e,t)=>Q(e)===Q(t.href))(t.href,e),ct="absolute left-0 -bottom-3 w-full h-[2px]",dt=p((({className:e="",text:t,href:n,target:i,active:r,onClick:l,children:a,bgColor:s="bg-white"})=>u("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:n,target:i,onClick:l,children:[h("span",{className:mt(s,r),children:t||a}),r?h("div",{className:ht(s,r)}):null]}))),mt=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans text-s`},ht=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${ct}`:ct,ut=o("https://10.80.4.9");const pt=p((({burgerSubMenu:e,onClick:t,defaultLocation:n="",children:a})=>{const[s,o]=function(e){const[t,n]=i(e);return r((()=>{n(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,l((()=>{ut.getFetcherAddress().then((t=>{const i=t||e;globalThis?.localStorage.setItem("location",i),n(i)}))}),[e])]}(n);return u("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[h("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:t,children:h(V,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),u("button",{onClick:o,className:"flex items-center text-s text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[h(V,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),s]}),a,h("div",{className:"mb-7",children:e?.map(xt)}),h(De,{className:"grow"})]})})),xt=(e,t)=>{const{icon:n,href:i,text:r}=e;return u("a",{href:i,className:"flex text-s mb-4 hover:text-primary-main",children:[n?h(V,{className:"text-primary-main pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,h("span",{className:"font-medium pl-0.5",children:r})]},`headerSubMenu-${t}`)},gt=p((({onClick:e,bgColor:t})=>u("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[u("div",{className:"flex items-center",children:[h("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:h(V,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),h(Be,{className:"mr-8",bgColor:t})]}),h("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-s border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),bt=p((({className:e="",bgColor:t="bg-white",...n})=>{const r=te(),{page:l}=n,a=l?.fallback,{topItems:s,dispositions:o,defaultLocation:d}=Ie(c.SITEMAP||"sitemap",a),m=s?.find(ot(r)),p=m?.items,x=(e=>(t=[])=>{const n=t?.filter(st(e));return n?.length?(i=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>i(e)>i(t)?e:t)))(n):void 0;var i})(r)(p),[g,b]=i(!1),f=()=>b(!g);return u("header",{className:`${t} ${e}`,children:[u("div",{className:"container px-4 py-0 box-border",children:[h(gt,{onClick:f,bgColor:t}),h("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:h("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:p?.map(((e,n)=>h(dt,{className:"mr-8 whitespace-nowrap text-s",active:e===x,bgColor:t,...e},String(n))))})})]}),g?h(pt,{onClick:f,burgerSubMenu:o,defaultLocation:d,children:h(k,{children:s?.map(((e,t)=>h(z,{label:e.text,...n,children:h(Ae,{documents:e.items,...n})},String(t))))})}):null]})})),ft={left:"text-left",center:"text-center",right:"text-right"},Nt={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},yt=p((({bgColorHeadline:e="transparent",className:t="",title:n,description:i,image:r,align:l="left"})=>{const a=Nt[e];return u("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${a.background} ${t}`,children:[n?h(v,{headingType:"h2",className:`${a.text} ${ft[l]}`,title:n}):null,i?h("p",{className:`text-m ${a.description} ${ft[l]}`,children:i}):null,r?.src&&h("div",{className:"mt-2.5 mx-auto flex justify-center",children:h(V,{image:r})})]})})),vt=p((({className:e,iconClassName:t,textClassName:n,suffixClassName:i,doc:r,icon:l})=>{const{text:a,fileSize:s,...o}=r;return u("a",{className:e,role:"link",...o,children:[l?h(V,{className:t,image:F(l),width:"24px",height:"24px",asSVG:!0}):null,a?u("span",{className:n,children:[a,h("span",{className:i,children:o?.href&&wt(kt(o.href),s)})]}):null]})})),wt=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),kt=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},$t=p((({className:e="",doc:t,icon:n})=>h(vt,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),Ct=p((({hasBorder:e=!0,documents:t,icon:n})=>h(K,{className:"text-s text-primary-main mt-5",children:t?.length?t.map(((t,i)=>h($t,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n},String(i)))):null}))),St=p((({hasBorder:e=!0,documents:t,icon:n})=>h("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)=>h("div",{role:"listitem",children:h($t,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n})},String(i)))):null}))),Tt=p((({className:e="",title:t,description:n,icon:i={icon:"DocIconMonoColor"},documents:r,orientation:l="vertical",hasBorder:a=!0,...s})=>u("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[h(yt,{className:"!p-0 "+(n?"gap-2":"gap-5"),title:t,description:n,align:"center",...s}),h("vertical"===l?St:Ct,{hasBorder:a,documents:r,icon:i})]}))),_t=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function It(e=""){const t=_t(e);return t<=4?"S":t<=8?"M":"L"}function jt(e=""){const t=_t(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Dt(e=""){const t=_t(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const At=p((({className:e,title:t,description:n="Блок в разработке...",...i})=>u(N,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Dt(e)} ${jt(e)} `,...i,children:[h(yt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:It(e),...i}),h("figure",{className:"m-0 min-w-[80%]",children:Rt()})]}))),Rt=(e=3)=>Mt(100,e).map((e=>Math.floor(e))).map(Ot),Ot=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Mt=(e,t)=>[e].concat(t>0?Mt(e/1.618,t-1):[]),Lt=p((({className:e="",buttons:t})=>t&&t?.length?h("div",{className:e,children:t.map(((e,t)=>Bt({button:e,index:t})))}):null));function Bt({button:e,buttonClassName:t,index:n}){const{icon:i,iconRight:r,version:l,...a}=e,s="secondary"===l?"color":"white",o=Vt({...i,iconVersion:s}),c=Vt({...r,iconVersion:s});return h(ue,{className:t,appendLeft:o,appendRight:c,version:l,...a},n?String(n):"")}const Vt=e=>{if(!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return h(V,{image:{...e},width:t,height:"24",asSVG:!0})},Et={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},Ft={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"},Pt=p((({className:e="",isDotted:t=!0,children:n,version:i="primary",size:r="M"})=>u("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?h("div",{children:h("div",{className:`rounded-full align-middle inline-block ${Et[i]} ${Ft[r]}`})}):null,h("span",{children:n})]}))),zt={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},Gt={S:"text-l-light",M:"text-h6",L:"text-h5"},Ht={S:"ml-2",M:"ml-3",L:"ml-4"},Wt=p((e=>{const{className:t="",hasIndent:n,isDotted:i,itemClassName:r="",items:l,listItemSize:a="M",version:s="primary"}=e;return l?.length?h("section",{className:`${zt[s]} ${Gt[a]} ${t} ${n?Ht[a]:""}`,role:"list",children:l.map(((e,t)=>h(Pt,{className:`${r} mb-1.5`,isDotted:i,version:s,size:a,children:e},String(t))))}):null})),Jt=p((({className:e="",title:t="",buttons:n,image:i,children:r})=>u("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,u("div",{className:"flex grow w-full justify-between",children:[u("div",{className:"flex flex-col justify-between w-full",children:[h("div",{className:"h-full",children:r}),n?h("div",{className:"mt-auto pt-8",children:n}):null]}),i]})]}))),Ut={primary:"text-primary-text",secondary:"text-white"},Yt={primary:"text-secondary-text",secondary:"text-white"},Kt=p((e=>{const{className:t="",icon:n,label:i,description:r,version:l="primary",benefitsVersion:a="normal"}=e,s="white"===a?"secondary":"primary";return u("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[n?h("div",{className:Xt(l,a),children:h(V,{className:"w-6 h-6",image:F(n,s),asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[i?h("div",{className:`text-h6 ${Ut[l]}`,children:i}):null,r?h("div",{className:`text-m-light ${Yt[l]}`,children:r}):null]})]})}));function Xt(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-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const qt=(e="primary",t="normal")=>({icon:n,label:i,description:r},l)=>h(Kt,{icon:n,label:i,description:r,version:e,benefitsVersion:t},String(l)),Qt=p((({className:e="",headlineVersion:t="L",benefits:n,benefitsVersion:i="normal",buttons:r,image:l,items:a,version:s="primary",isDotted:o=!0,label:c,...d})=>u("div",{className:`w-full ${e}`,children:[u("div",{children:[c?tn(c,s):null,h(yt,{className:"!p-0 max-w-[600px]",bgColorHeadline:s,headlineVersion:t,...d}),u(Jt,{buttons:r?.length?h(Lt,{buttons:r,className:"flex flex-col mt-5 gap-2.5"}):null,children:[n?.filter((e=>e.label))?.length?h("div",{className:"mt-3",children:n.map(qt(s,i))}):null,a?.length?h(Wt,{className:"mt-3 text-m",items:a,version:s,isDotted:o}):null]})]}),Zt(l)]})));function Zt(e){return e?.src?h(V,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const en={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},tn=(e,t)=>h("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${en[t]}`,children:e}),nn=p((e=>{const{className:t="",version:n="primary"}=e;return h("section",{className:`font-sans bg-white px-4 py-6 ${Qe[n]} ${t}`,children:h(Qt,{...e})})})),rn={primary:{background:"bg-white",title:"text-primary-text",description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{background:"bg-primary-main",title:"text-white",description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},ln={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},an={normal:"min-h-[70px]",small:"min-h-[50px]"},sn=p((({className:e,title:t,description:n,showLines:i=!0,steps:r,size:l="normal",version:a="primary"})=>{const s=rn[a];return u("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${s.background} ${s.title} ${e||""}`,children:[t?h(v,{headingType:"h3",className:`text-center ${s.title}`,title:t}):null,n?h("p",{className:`text-m-light text-center ${s.description} ${t?"mt-2":""}`,children:n}):null,r?.length?h("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:h("div",{className:"flex flex-col justify-between gap-x-[101px]",children:r.map(on(l,a,i))})}):null]})})),on=(e,t,n)=>(i,r,l)=>{const a=l.length-1===r,s="normal"===e?"ml-[34px]":"ml-6",o=rn[t];return h("div",{children:u("div",{className:"flex flex-row text-center relative",children:[u("div",{className:"overflow-hidden flex-shrink-0",children:[cn(e,t)(i,r),a?null:h("div",{className:`min-h-8 h-full w-[2px] ${n?o.iconConnector:""} ${s}`})]}),u("div",{className:`flex flex-col justify-center h-fit ${an[e]}`,children:[i.label?h("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:i.label}):null,i.description?h("div",{className:`text-s ${o.description} text-left`,children:i.description}):null]})]})},String(r))},cn=(e,t)=>(n,i)=>{const r=rn[t],l="normal"===e?"38":"27",a="normal"===e?"text-m-title":"text-m-title-xs";return h("div",{className:`${ln[e]} ${r.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:h("span",{className:`font-medium flex self-center ${r.title} ${a}`,children:(s=n?.icon,Boolean(s?.icon||s?.src)?h(V,{image:F({...n.icon},t),width:l,height:l,asSVG:!0}):h("span",{children:i+1}))})});var s},dn={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({rounded:e,icon:t,...n},i)=>Bt({button:{rounded:e,icon:t,...n},buttonClassName:`mt-3 ${i>0&&e?"ml-2.5":""} ${t?"w-12 h-12":""}`,index:i})))}):null,Img:({image:e})=>e?.src?h(V,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>h(Wt,{className:"flex flex-col justify-between items-start text-m",version:"gray",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>u("div",{children:[e?h("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?h("div",{className:"text-s text-secondary-text",children:t}):null]})},mn=p((({title:e,icon:t})=>u("div",{className:"flex gap-2.5 mb-2",children:[e?h(v,{headingType:"h3",className:"font-medium",title:e}):null,t?h(V,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),hn=p((({tile:e,...t})=>u("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[h(mn,{...e?.header}),e?.data?.length?e.data.map(((e,n)=>u("div",{children:[n>0?h("div",{className:"h-5"}):null,un(e,t)]},String(n)))):null]})));function un(e,t){if(!e||!e.tableCellType||!(e.tableCellType in dn))return null;const n=dn[e.tableCellType];return h(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const pn=p((({tiles:e,...t})=>e?.length?h(K,{...t,children:e.map(((e,n)=>h(hn,{tile:e,...t},String(n))))}):null)),xn=p((({tiles:e,...t})=>e?.length?h("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>h(hn,{tile:e,...t},String(n))))}):null)),gn=p((({className:e,title:t,description:n,tariffsColumns:i,rowHeaders:r,orientation:l="vertical",...a})=>{const s=bn(i),o=fn(r,s);return u("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[t?h(v,{headingType:"h2",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?h("div",{className:"mb-5 text-center text-m",children:n}):null,h("vertical"===l?xn:pn,{tiles:o,...a})]})})),bn=e=>e?.[0]?.data?e[0].data:[],fn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Nn={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"}},yn=p((({title:e,description:t,blockVersion:n="primary",iconVersion:i,image:r,className:l="",items:a,isDotted:s=!0})=>{const o=Nn[n],c="secondary"===n?"secondary":"gray";return u("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${l}`,children:["small"===i?vn(o.icon):null,"big"===i?wn(r):null,u("div",{className:"py-0.5",children:[e?h("div",{className:`text-l font-medium mb-1 ${o.title}`,children:e}):null,t?h("div",{className:`text-s ${o.description}`,children:t}):null,a?.length?h(Wt,{className:"mt-1 text-m",items:a,isDotted:s,version:c}):null]})]})}));function vn(e){return h("div",{className:"mb-3",children:h("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function wn(e){return e?.src?h(V,{className:"pb-3 mr-auto",image:e}):null}const kn={Accordion:$,AccordionItem:z,ComparisonTable:ke,Footer:Xe,Gallery:Ze,Header:bt,Headline:yt,LinkDocs:Tt,LinkList:Ae,MobileAppTile:Ve,ProductBlock:nn,StepsBlock:sn,TariffsTable:gn,TextBlock:yn,Placeholder:At};function $n(e){return e?e.filter(Boolean).join(" "):""}const Cn=m();const Sn=p((({className:e,onClick:t,ariaLabel:n})=>h("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:Tn()}))),Tn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[h("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"}),h("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"})]})},_n=p((({className:e=""})=>{const t=function(e){const[t,n]=i(0);return r((()=>{(async()=>{const[t]=await Cn.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:l((async()=>{n(await Cn.like(e))}),[e]),dislike:l((async()=>{n(await Cn.dislike(e))}),[e])}}(te().pathname);return u("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:[h(Sn,{onClick:ee(t.like),ariaLabel:"Поставить отметку «лайк»"}),h(Sn,{onClick:ee(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:t.likeCount})]})})),In=({slots:e,parent:t,options:n,ancestors:i=[]})=>Object.entries(e||{}).reduce(((e,[r,l])=>({...e,[r]:jn({blocks:l,parent:t,slotName:r,options:n,ancestors:i})})),{});const jn=({blocks:e,parent:t,slotName:n=null,options:i,ancestors:r=[]})=>(e||[]).map(((e,l)=>function({block:e={},options:t,ancestors:n=[]}){const{key:i,page:r,blockDecorator:l,blocksRegistry:a={}}=t,{type:s,slots:o,blocks:c}=e;s&&s in a||console.warn(`No block with "${s}" is registered`);const d=s&&a[s],m={parent:e,options:t,ancestors:n},u=jn({...m,blocks:c}),p=o?In({...m,slots:o}):{};return l({blockClassName:`scroll-mt-12 ${$n(e.style)}`,block:e,ancestors:n,render:({block:e,blockClassName:t})=>{const{content:l}=e;return d?h(d,{page:r,block:e,className:t,ancestors:n,slots:p,...l,children:u},i):null}},i)}({block:e,options:{...i,key:`${i.key?i.key:e.type}-${l}`},ancestors:[...r,[t,n]]}))),Dn=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),An=p((e=>{const{className:t="",blocksRegistry:n,blockDecorator:i,data:r={}}=e,{style:l,blocks:a,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",blocksRegistry:n,page:r,blockDecorator:i||Dn},m=In({slots:s,parent:r,options:d});return u("section",{className:`relative ${$n(l)} ${t}`,"data-theme":c,children:[m?.header?h("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:m.header}):null,a?.length?u("div",{className:"container grid grid-cols-12 gap-1",children:[jn({blocks:a,parent:r,options:d}),m?.footer?m.footer:null]}):null,o?h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(_n,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));An.childrenTypes=[],An.slots=()=>["header","footer"];e.Blocks=kn,e.ContentPage=An,e.DaDataAPI=o,e.LikeAPI=m,e.handlerDecorator=ee,e.joinList=function(e){return t=>t.reduce(((t,n,i)=>t.length?t.concat({...e,key:i},n):[n]),[])},e.packageVersion="0.6.33",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=Z,e.useRouter=te,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1,5 @@
1
+ import type { UniBlockProps } from '../../model/JSXBlock';
2
+ import type { CarouselLinksContent } from './CarouselLinksContent';
3
+ export interface CarouselLinksProps extends CarouselLinksContent, UniBlockProps {
4
+ }
5
+ export declare const CarouselLinks: import("@redneckz/uni-jsx").UNIComponent<CarouselLinksProps, any, any>;
@@ -0,0 +1,9 @@
1
+ import type { HeadlineCommonProps } from '../../model/HeadlineType';
2
+ import type { LinkProps } from '../../model/LinkProps';
3
+ /** @title Карусель с ссылками */
4
+ export interface CarouselLinksContent extends HeadlineCommonProps {
5
+ /** @title Дополнительное описание */
6
+ additionalDescription?: string;
7
+ /** @title Ссылки */
8
+ links?: LinkProps[];
9
+ }
@@ -1,6 +1,15 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { HeadlineCommonProps } from '../../model/HeadlineType';
3
3
  import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
4
+ /**
5
+ * @title Элемент плитки
6
+ */
7
+ export interface ContactBlockProps extends HeadlineCommonProps {
8
+ /** @title Дополнительное описание */
9
+ additionalDescription?: string;
10
+ /** @title Кнопка */
11
+ button?: ButtonProps;
12
+ }
4
13
  /**
5
14
  * @title Контакты
6
15
  */
@@ -9,29 +18,11 @@ export interface ContactsBlockContent {
9
18
  * @title Данные
10
19
  * @maxItems 2
11
20
  * */
12
- info?: InfoItemProps[];
21
+ info?: ContactBlockProps[][];
13
22
  /**
14
23
  * @title Контакты
15
24
  * @maxItems 2
16
25
  * */
17
- contacts?: ContactItemProps[][];
26
+ contacts?: ContactBlockProps[][];
18
27
  version?: BlockVersion;
19
28
  }
20
- /**
21
- * @title Элемент плитки
22
- */
23
- export interface ContactItemProps {
24
- /** @title Дополнительное описание */
25
- additionalDescription?: string;
26
- /** @title Описание */
27
- description?: string;
28
- /** @title Заголовок */
29
- title?: string;
30
- }
31
- /**
32
- * @title Элемент плитки
33
- */
34
- export interface InfoItemProps extends HeadlineCommonProps {
35
- /** @title Кнопка */
36
- button?: ButtonProps;
37
- }
@@ -5,7 +5,7 @@ import type { StyleType } from './StepsBlockStyleMaps';
5
5
  export declare const renderStepContent: ({ styleMap, isMainButton, version, }: {
6
6
  styleMap: StyleType;
7
7
  isMainButton: boolean;
8
- version: BlockVersion;
8
+ version?: BlockVersion | undefined;
9
9
  }) => (step: Step, i: number, { length }: {
10
10
  length: number;
11
11
  }) => VNode;
@@ -5,6 +5,7 @@ export declare enum IconMap {
5
5
  AppleIcon = "AppleIcon",
6
6
  ArrowDownIcon = "ArrowDownIcon",
7
7
  ArrowLeftIcon = "ArrowLeftIcon",
8
+ ArrowRightIcon = "ArrowRightIcon",
8
9
  ArrowUpIcon = "ArrowUpIcon",
9
10
  AtmIcon = "AtmIcon",
10
11
  BankIcon = "BankIcon",
@@ -102,8 +103,9 @@ export declare enum IconTitleMap {
102
103
  AirPlaneIcon = "\u0421\u0430\u043C\u043E\u043B\u0451\u0442",
103
104
  AppleIcon = "\u041B\u043E\u0433\u043E \u00ABApple\u00BB",
104
105
  ArrowDownIcon = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430 '\u0412\u043D\u0438\u0437'",
105
- ArrowLeftIcon = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430",
106
- ArrowUpIcon = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",
106
+ ArrowLeftIcon = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430 '\u0412\u043B\u0435\u0432\u043E'",
107
+ ArrowRightIcon = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430 '\u0412\u043F\u0440\u0430\u0432\u043E'",
108
+ ArrowUpIcon = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430 '\u0412\u0432\u0435\u0440\u0445'",
107
109
  AtmIcon = "\u0411\u0430\u043D\u043A\u043E\u043C\u0430\u0442",
108
110
  BankIcon = "\u0411\u0430\u043D\u043A",
109
111
  BuildingIcon = "\u0417\u0434\u0430\u043D\u0438\u0435 \u0441 \u0434\u0435\u0440\u0435\u0432\u043E\u043C",
@@ -200,7 +202,7 @@ export declare enum IconTitleMap {
200
202
  * @title Иконка
201
203
  * @enumNames [
202
204
  * "",
203
- * 'Деньги', 'Самолёт', 'Лого «Apple»', 'Стрелка \'Вниз\'', 'Стрелка', 'Стрелка вверх', 'Банкомат', 'Банк', 'Здание с деревом', 'Бургер', 'Календарь 2', 'Скруглённый календарь', 'Календарь', 'Календарь с галочкой', 'Машина2', 'Кред. карта', 'Кред. карта под наклоном', 'Кред. карта с галочкой', 'Карта с драгоценностями', 'Машина', 'Деньги внутри кошелька', 'Кинотеатр', 'Часы', 'Крестик', 'Кресло', 'Кредитные карты', 'Скидка', 'Скачать документ', 'Документ', 'Документ (одноцветный)', 'Документы', 'Документы-2', 'Документ с текстом', 'Доллар', 'Зелёная \'галочка\' в круге', 'Зелёная \'галочка\'', 'Земля', 'Пустой кошелёк с возвратом', 'Пустой кошелёк', 'Евро', 'FullScreenIcon', 'Геолокация', 'Зеркало', 'Глобус', 'Gps', 'Сетка (белая)', 'Сердце', 'Лого «Huawei»', 'Диаграмма роста', 'Скидка', 'JCB', 'Logo', 'Лупа', 'Маркер карты', 'Маркер карты РСХБ', 'MasterCard', 'Лого Метро', 'Минус', 'МИР', 'Деньги', 'Денежное страхование', 'Купюры', 'Монитор и мобильный', 'Новый документ', 'Офис', 'Лого «Одноклассники»', 'Пачка бумаги А4', 'Бизнес', 'Проценты (круг.)', 'Проценты', 'Персональная карта', 'Лого «PlayMarket»', 'Плюс', 'Щит', 'Профиль, 2 персоны', 'Профиль', 'Тыква', 'Рубль (круг.)', 'Сейф', 'Безопасность', 'Подписанные документы', 'Маленькие часы', 'Звук', 'Ящик с замочной скважиной', 'Лого «Telegram»', 'UnionPay', 'UserGeoLocationIcon', 'Пользователь в рамке', 'Пользователь', 'Visa', 'Лого «VK»', 'Пополнение карты', 'Кошелёк с плюсом', 'Кошелёк', 'Кошелёк с деньгами', 'Добавить продукт'
205
+ * 'Деньги', 'Самолёт', 'Лого «Apple»', 'Стрелка \'Вниз\'', 'Стрелка \'Влево\'', 'Стрелка \'Вправо\'', 'Стрелка \'Вверх\'', 'Банкомат', 'Банк', 'Здание с деревом', 'Бургер', 'Календарь 2', 'Скруглённый календарь', 'Календарь', 'Календарь с галочкой', 'Машина2', 'Кред. карта', 'Кред. карта под наклоном', 'Кред. карта с галочкой', 'Карта с драгоценностями', 'Машина', 'Деньги внутри кошелька', 'Кинотеатр', 'Часы', 'Крестик', 'Кресло', 'Кредитные карты', 'Скидка', 'Скачать документ', 'Документ', 'Документ (одноцветный)', 'Документы', 'Документы-2', 'Документ с текстом', 'Доллар', 'Зелёная \'галочка\' в круге', 'Зелёная \'галочка\'', 'Земля', 'Пустой кошелёк с возвратом', 'Пустой кошелёк', 'Евро', 'FullScreenIcon', 'Геолокация', 'Зеркало', 'Глобус', 'Gps', 'Сетка (белая)', 'Сердце', 'Лого «Huawei»', 'Диаграмма роста', 'Скидка', 'JCB', 'Logo', 'Лупа', 'Маркер карты', 'Маркер карты РСХБ', 'MasterCard', 'Лого Метро', 'Минус', 'МИР', 'Деньги', 'Денежное страхование', 'Купюры', 'Монитор и мобильный', 'Новый документ', 'Офис', 'Лого «Одноклассники»', 'Пачка бумаги А4', 'Бизнес', 'Проценты (круг.)', 'Проценты', 'Персональная карта', 'Лого «PlayMarket»', 'Плюс', 'Щит', 'Профиль, 2 персоны', 'Профиль', 'Тыква', 'Рубль (круг.)', 'Сейф', 'Безопасность', 'Подписанные документы', 'Маленькие часы', 'Звук', 'Ящик с замочной скважиной', 'Лого «Telegram»', 'UnionPay', 'UserGeoLocationIcon', 'Пользователь в рамке', 'Пользователь', 'Visa', 'Лого «VK»', 'Пополнение карты', 'Кошелёк с плюсом', 'Кошелёк', 'Кошелёк с деньгами', 'Добавить продукт'
204
206
  * ]
205
207
  */
206
- export declare type IconName = '' | 'ActualBalanceIcon' | 'AirPlaneIcon' | 'AppleIcon' | 'ArrowDownIcon' | 'ArrowLeftIcon' | 'ArrowUpIcon' | 'AtmIcon' | 'BankIcon' | 'BuildingIcon' | 'BurgerIcon' | 'Calendar2Icon' | 'CalendarCircleIcon' | 'CalendarIcon' | 'CalendarTickIcon' | 'Car2Icon' | 'CardIcon' | 'CardPosIcon' | 'CardTickIcon' | 'CardWithGemIcon' | 'CarIcon' | 'ChartSquareIcon' | 'CinemaIcon' | 'ClockIcon' | 'CloseIcon' | 'ComfortableCompIcon' | 'CreditCardsIcon' | 'DiscountShapeIcon' | 'DocDownloadIcon' | 'DocIcon' | 'DocIconMonoColor' | 'DocsIcon' | 'DocumentText2Icon' | 'DocumentTextIcon' | 'DollarIcon' | 'DoneIcon' | 'DoneSimpleIcon' | 'EarthIcon' | 'EmptyWalletChangeIcon' | 'EmptyWalletIcon' | 'EuroIcon' | 'FullScreenIcon' | 'GeolocationIcon' | 'GlassIcon' | 'GlobalIcon' | 'GpsIcon' | 'GridIcon' | 'HeartIcon' | 'HuaweiIcon' | 'InterestGrowthIcon' | 'InterestIcon' | 'JCBIcon' | 'LogoIcon' | 'LoupeIcon' | 'MapMarkerClusterIcon' | 'MapMarkerSingleIcon' | 'MasterCardIcon' | 'MetroIcon' | 'MinusIcon' | 'MirIcon' | 'MoneyIcon' | 'MoneyInsuranceIcon' | 'MoneysIcon' | 'MonitorMobileIcon' | 'NewDocIcon' | 'OfficeIcon' | 'OkIcon' | 'PackA4Icon' | 'PassSendIcon' | 'PercentageRoundIcon' | 'PercentageSquareIcon' | 'PersonalCardIcon' | 'PlayMarketIcon' | 'PlusIcon' | 'PowerIcon' | 'Profile2UserIcon' | 'ProfileIcon' | 'PumpkinIcon' | 'RoundRubleIcon' | 'SafeIcon' | 'ShieldTickIcon' | 'SignDocsIcon' | 'SmallClockIcon' | 'SoundIcon' | 'StrongBoxIcon' | 'TelegramIcon' | 'UnionPayIcon' | 'UserGeoLocationIcon' | 'UserSquareIcon' | 'UserTickIcon' | 'VisaIcon' | 'VKIcon' | 'WalletAdd2Icon' | 'WalletAddIcon' | 'WalletIcon' | 'WalletWithMoneyIcon' | 'WateringCanIcon';
208
+ export declare type IconName = '' | 'ActualBalanceIcon' | 'AirPlaneIcon' | 'AppleIcon' | 'ArrowDownIcon' | 'ArrowLeftIcon' | 'ArrowRightIcon' | 'ArrowUpIcon' | 'AtmIcon' | 'BankIcon' | 'BuildingIcon' | 'BurgerIcon' | 'Calendar2Icon' | 'CalendarCircleIcon' | 'CalendarIcon' | 'CalendarTickIcon' | 'Car2Icon' | 'CardIcon' | 'CardPosIcon' | 'CardTickIcon' | 'CardWithGemIcon' | 'CarIcon' | 'ChartSquareIcon' | 'CinemaIcon' | 'ClockIcon' | 'CloseIcon' | 'ComfortableCompIcon' | 'CreditCardsIcon' | 'DiscountShapeIcon' | 'DocDownloadIcon' | 'DocIcon' | 'DocIconMonoColor' | 'DocsIcon' | 'DocumentText2Icon' | 'DocumentTextIcon' | 'DollarIcon' | 'DoneIcon' | 'DoneSimpleIcon' | 'EarthIcon' | 'EmptyWalletChangeIcon' | 'EmptyWalletIcon' | 'EuroIcon' | 'FullScreenIcon' | 'GeolocationIcon' | 'GlassIcon' | 'GlobalIcon' | 'GpsIcon' | 'GridIcon' | 'HeartIcon' | 'HuaweiIcon' | 'InterestGrowthIcon' | 'InterestIcon' | 'JCBIcon' | 'LogoIcon' | 'LoupeIcon' | 'MapMarkerClusterIcon' | 'MapMarkerSingleIcon' | 'MasterCardIcon' | 'MetroIcon' | 'MinusIcon' | 'MirIcon' | 'MoneyIcon' | 'MoneyInsuranceIcon' | 'MoneysIcon' | 'MonitorMobileIcon' | 'NewDocIcon' | 'OfficeIcon' | 'OkIcon' | 'PackA4Icon' | 'PassSendIcon' | 'PercentageRoundIcon' | 'PercentageSquareIcon' | 'PersonalCardIcon' | 'PlayMarketIcon' | 'PlusIcon' | 'PowerIcon' | 'Profile2UserIcon' | 'ProfileIcon' | 'PumpkinIcon' | 'RoundRubleIcon' | 'SafeIcon' | 'ShieldTickIcon' | 'SignDocsIcon' | 'SmallClockIcon' | 'SoundIcon' | 'StrongBoxIcon' | 'TelegramIcon' | 'UnionPayIcon' | 'UserGeoLocationIcon' | 'UserSquareIcon' | 'UserTickIcon' | 'VisaIcon' | 'VKIcon' | 'WalletAdd2Icon' | 'WalletAddIcon' | 'WalletIcon' | 'WalletWithMoneyIcon' | 'WateringCanIcon';
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @title Размер заголовка
3
- * @enumNames ["Самый большой", "Очень большой", "Большой", "Средний", "Маленький"]
3
+ * @enumNames ["Самый большой", "Очень большой", "Большой", "Средний", "Маленький", "Самый маленький"]
4
4
  */
5
- export declare type HeadlineVersion = 'XXL' | 'XL' | 'L' | 'M' | 'S';
5
+ export declare type HeadlineVersion = 'XXL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
6
6
  /**
7
7
  * @title Размер заголовка
8
8
  * @enumNames ["Заголовок", "Самый большой тонкий", "Самый большой", "Очень большой тонкий", "Очень большой", "Большой", "Средний", "Маленький"]
@@ -0,0 +1,5 @@
1
+ import type { LinkProps } from '../../model/LinkProps';
2
+ export declare type LinkButtonProps = LinkProps & {
3
+ className?: string;
4
+ };
5
+ export declare const LinkButton: import("@redneckz/uni-jsx").UNIComponent<LinkButtonProps, any, any>;
@@ -0,0 +1,9 @@
1
+ import type { FontWeight, TextAlign, TextColor, TextSize } from '../Text/Text';
2
+ interface ParagraphProps {
3
+ size?: TextSize;
4
+ color?: TextColor;
5
+ align?: TextAlign;
6
+ font?: FontWeight;
7
+ }
8
+ export declare const Paragraph: import("@redneckz/uni-jsx").UNIComponent<ParagraphProps, any, any>;
9
+ export {};
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @title Размер текста
3
+ */
4
+ export declare type TextSize = '' | 'text-xs-light' | 'text-s-light' | 'text-s' | 'text-m-light' | 'text-m' | 'text-l-light' | 'text-l' | 'text-xl-light' | 'text-xl';
5
+ /**
6
+ * @title Размер текста
7
+ */
8
+ export declare type TitleSize = '' | 'text-h6' | 'text-h5' | 'text-h5-light' | 'text-h4' | 'text-h3' | 'text-h2' | 'text-h1' | 'text-h0' | 'text-m-title' | 'text-m-title-xs' | 'title-extra' | 'title-huge';
9
+ /**
10
+ * @title Цвет текста
11
+ */
12
+ export declare type TextColor = '' | 'text-main' | 'text-primary-text' | 'text-primary-main' | 'text-secondary-text' | 'text-secondary-light' | 'text-error' | 'text-white' | 'text-green';
13
+ /**
14
+ * @title Выравнивание
15
+ * @enumNames [
16
+ * "По умолчанию",
17
+ * "По левому краю",
18
+ * "По центру",
19
+ * "По правому краю"
20
+ * ]
21
+ */
22
+ export declare type TextAlign = '' | 'text-left' | 'text-center' | 'text-right';
23
+ /**
24
+ * @title Насыщенность шрифта
25
+ */
26
+ export declare type FontWeight = '' | 'font-light' | 'font-normal' | 'font-medium';
27
+ interface TextProps {
28
+ size?: TextSize | TitleSize;
29
+ color?: TextColor;
30
+ align?: TextAlign;
31
+ font?: FontWeight;
32
+ }
33
+ export declare const Text: import("@redneckz/uni-jsx").UNIComponent<TextProps, any, any>;
34
+ export {};
@@ -0,0 +1 @@
1
+ export declare const sliceArray: <T>(items: T[], size: number) => T[][];