@redneckz/wildless-cms-uni-blocks 0.8.2 → 0.8.3

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 (255) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +106 -29
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/Carousel/CarouselContent.d.ts +6 -1
  5. package/bundle/components/Carousel/CarouselScrollButtons.d.ts +13 -0
  6. package/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +9 -0
  7. package/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +9 -0
  8. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +0 -1
  9. package/bundle/components/Footer/MediaButton.d.ts +2 -2
  10. package/bundle/components/Footer/SocialMedia.d.ts +2 -2
  11. package/bundle/hooks/useLink.d.ts +1 -1
  12. package/bundle/services/sitemap/isHrefActive.d.ts +2 -1
  13. package/bundle/services/sitemap/isTopItemActive.d.ts +2 -3
  14. package/dist/components/Blocks.js +2 -0
  15. package/dist/components/Blocks.js.map +1 -1
  16. package/dist/components/Carousel/Carousel.js +27 -6
  17. package/dist/components/Carousel/Carousel.js.map +1 -1
  18. package/dist/components/Carousel/CarouselContent.d.ts +6 -1
  19. package/dist/components/Carousel/CarouselScrollButtons.d.ts +13 -0
  20. package/dist/components/Carousel/CarouselScrollButtons.js +35 -0
  21. package/dist/components/Carousel/CarouselScrollButtons.js.map +1 -0
  22. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +9 -0
  23. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +46 -0
  24. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -0
  25. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +9 -0
  26. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.js +2 -0
  27. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.js.map +1 -0
  28. package/dist/components/CarouselCard/CarouselCard.js +1 -1
  29. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  30. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  31. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  32. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  33. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  34. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +0 -1
  35. package/dist/components/Footer/MediaButton.d.ts +2 -2
  36. package/dist/components/Footer/SocialMedia.d.ts +2 -2
  37. package/dist/components/Footer/SocialMedia.js +2 -1
  38. package/dist/components/Footer/SocialMedia.js.map +1 -1
  39. package/dist/hooks/useLink.d.ts +1 -1
  40. package/dist/hooks/useLink.js +2 -2
  41. package/dist/hooks/useLink.js.map +1 -1
  42. package/dist/services/sitemap/findActiveSubItem.js +2 -2
  43. package/dist/services/sitemap/findActiveSubItem.js.map +1 -1
  44. package/dist/services/sitemap/isHrefActive.d.ts +2 -1
  45. package/dist/services/sitemap/isHrefActive.js +1 -2
  46. package/dist/services/sitemap/isHrefActive.js.map +1 -1
  47. package/dist/services/sitemap/isTopItemActive.d.ts +2 -3
  48. package/dist/services/sitemap/isTopItemActive.js +1 -2
  49. package/dist/services/sitemap/isTopItemActive.js.map +1 -1
  50. package/dist/ui-kit/TopItem/TopItem.js +1 -1
  51. package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  52. package/dist/utils/url.js +1 -7
  53. package/dist/utils/url.js.map +1 -1
  54. package/lib/common.css +1 -1
  55. package/lib/components/Blocks.js +2 -0
  56. package/lib/components/Blocks.js.map +1 -1
  57. package/lib/components/Carousel/Carousel.fixture.d.ts +1 -0
  58. package/lib/components/Carousel/Carousel.js +28 -7
  59. package/lib/components/Carousel/Carousel.js.map +1 -1
  60. package/lib/components/Carousel/CarouselContent.d.ts +6 -1
  61. package/lib/components/Carousel/CarouselScrollButtons.d.ts +13 -0
  62. package/lib/components/Carousel/CarouselScrollButtons.js +33 -0
  63. package/lib/components/Carousel/CarouselScrollButtons.js.map +1 -0
  64. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +9 -0
  65. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.fixture.d.ts +15 -0
  66. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +44 -0
  67. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -0
  68. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +9 -0
  69. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.js +2 -0
  70. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.js.map +1 -0
  71. package/lib/components/CarouselCard/CarouselCard.js +1 -1
  72. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  73. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  74. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  75. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  76. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  77. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +0 -1
  78. package/lib/components/Footer/MediaButton.d.ts +2 -2
  79. package/lib/components/Footer/SocialMedia.d.ts +2 -2
  80. package/lib/components/Footer/SocialMedia.js +2 -1
  81. package/lib/components/Footer/SocialMedia.js.map +1 -1
  82. package/lib/hooks/useLink.d.ts +1 -1
  83. package/lib/hooks/useLink.js +2 -2
  84. package/lib/hooks/useLink.js.map +1 -1
  85. package/lib/services/sitemap/findActiveSubItem.js +2 -2
  86. package/lib/services/sitemap/findActiveSubItem.js.map +1 -1
  87. package/lib/services/sitemap/isHrefActive.d.ts +2 -1
  88. package/lib/services/sitemap/isHrefActive.js +2 -3
  89. package/lib/services/sitemap/isHrefActive.js.map +1 -1
  90. package/lib/services/sitemap/isTopItemActive.d.ts +2 -3
  91. package/lib/services/sitemap/isTopItemActive.js +1 -2
  92. package/lib/services/sitemap/isTopItemActive.js.map +1 -1
  93. package/lib/ui-kit/TopItem/TopItem.js +1 -1
  94. package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  95. package/lib/utils/url.js +1 -7
  96. package/lib/utils/url.js.map +1 -1
  97. package/mobile/bundle/bundle.umd.js +8 -19
  98. package/mobile/bundle/bundle.umd.min.js +1 -1
  99. package/mobile/bundle/components/Carousel/CarouselContent.d.ts +6 -1
  100. package/mobile/bundle/components/Carousel/CarouselScrollButtons.d.ts +13 -0
  101. package/mobile/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +9 -0
  102. package/mobile/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +9 -0
  103. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +0 -1
  104. package/mobile/bundle/components/Footer/MediaButton.d.ts +2 -2
  105. package/mobile/bundle/hooks/useLink.d.ts +1 -1
  106. package/mobile/bundle/services/sitemap/isHrefActive.d.ts +2 -1
  107. package/mobile/bundle/services/sitemap/isTopItemActive.d.ts +2 -3
  108. package/mobile/dist/components/Carousel/Carousel.js +27 -6
  109. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  110. package/mobile/dist/components/Carousel/CarouselContent.d.ts +6 -1
  111. package/mobile/dist/components/Carousel/CarouselScrollButtons.d.ts +13 -0
  112. package/mobile/dist/components/Carousel/CarouselScrollButtons.js +35 -0
  113. package/mobile/dist/components/Carousel/CarouselScrollButtons.js.map +1 -0
  114. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +9 -0
  115. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +46 -0
  116. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -0
  117. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +9 -0
  118. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.js +2 -0
  119. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.js.map +1 -0
  120. package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
  121. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  122. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  123. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  124. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  125. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  126. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +0 -1
  127. package/mobile/dist/components/Footer/MediaButton.d.ts +2 -2
  128. package/mobile/dist/hooks/useLink.d.ts +1 -1
  129. package/mobile/dist/hooks/useLink.js +2 -2
  130. package/mobile/dist/hooks/useLink.js.map +1 -1
  131. package/mobile/dist/services/sitemap/findActiveSubItem.js +2 -2
  132. package/mobile/dist/services/sitemap/findActiveSubItem.js.map +1 -1
  133. package/mobile/dist/services/sitemap/isHrefActive.d.ts +2 -1
  134. package/mobile/dist/services/sitemap/isHrefActive.js +1 -2
  135. package/mobile/dist/services/sitemap/isHrefActive.js.map +1 -1
  136. package/mobile/dist/services/sitemap/isTopItemActive.d.ts +2 -3
  137. package/mobile/dist/services/sitemap/isTopItemActive.js +1 -2
  138. package/mobile/dist/services/sitemap/isTopItemActive.js.map +1 -1
  139. package/mobile/dist/ui-kit/TopItem/TopItem.js +1 -1
  140. package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  141. package/mobile/dist/utils/url.js +1 -7
  142. package/mobile/dist/utils/url.js.map +1 -1
  143. package/mobile/lib/components/Carousel/Carousel.js +28 -7
  144. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  145. package/mobile/lib/components/Carousel/CarouselContent.d.ts +6 -1
  146. package/mobile/lib/components/Carousel/CarouselScrollButtons.d.ts +13 -0
  147. package/mobile/lib/components/Carousel/CarouselScrollButtons.js +33 -0
  148. package/mobile/lib/components/Carousel/CarouselScrollButtons.js.map +1 -0
  149. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +9 -0
  150. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +44 -0
  151. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -0
  152. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +9 -0
  153. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.js +2 -0
  154. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.js.map +1 -0
  155. package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
  156. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  157. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  158. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  159. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  160. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  161. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +0 -1
  162. package/mobile/lib/components/Footer/MediaButton.d.ts +2 -2
  163. package/mobile/lib/hooks/useLink.d.ts +1 -1
  164. package/mobile/lib/hooks/useLink.js +2 -2
  165. package/mobile/lib/hooks/useLink.js.map +1 -1
  166. package/mobile/lib/services/sitemap/findActiveSubItem.js +2 -2
  167. package/mobile/lib/services/sitemap/findActiveSubItem.js.map +1 -1
  168. package/mobile/lib/services/sitemap/isHrefActive.d.ts +2 -1
  169. package/mobile/lib/services/sitemap/isHrefActive.js +2 -3
  170. package/mobile/lib/services/sitemap/isHrefActive.js.map +1 -1
  171. package/mobile/lib/services/sitemap/isTopItemActive.d.ts +2 -3
  172. package/mobile/lib/services/sitemap/isTopItemActive.js +1 -2
  173. package/mobile/lib/services/sitemap/isTopItemActive.js.map +1 -1
  174. package/mobile/lib/ui-kit/TopItem/TopItem.js +1 -1
  175. package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  176. package/mobile/lib/utils/url.js +1 -7
  177. package/mobile/lib/utils/url.js.map +1 -1
  178. package/mobile/src/common.css +17 -0
  179. package/mobile/src/components/Carousel/Carousel.tsx +43 -32
  180. package/mobile/src/components/Carousel/CarouselContent.ts +6 -1
  181. package/mobile/src/components/Carousel/CarouselScrollButtons.tsx +81 -0
  182. package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.example.json +4 -0
  183. package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +85 -0
  184. package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.ui.json +1 -0
  185. package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.ts +9 -0
  186. package/mobile/src/components/CarouselCard/CarouselCard.tsx +2 -2
  187. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -1
  188. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
  189. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +10 -9
  190. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +0 -1
  191. package/mobile/src/components/Footer/MediaButton.tsx +2 -2
  192. package/mobile/src/hooks/useLink.ts +4 -4
  193. package/mobile/src/services/sitemap/findActiveSubItem.ts +2 -2
  194. package/mobile/src/services/sitemap/isHrefActive.ts +6 -6
  195. package/mobile/src/services/sitemap/isTopItemActive.ts +3 -3
  196. package/mobile/src/ui-kit/TopItem/TopItem.tsx +1 -1
  197. package/mobile/src/utils/url.ts +1 -9
  198. package/package.json +3 -3
  199. package/src/common.css +17 -0
  200. package/src/components/Blocks.ts +2 -0
  201. package/src/components/Carousel/Carousel.fixture.tsx +20 -0
  202. package/src/components/Carousel/Carousel.tsx +43 -32
  203. package/src/components/Carousel/CarouselContent.ts +6 -1
  204. package/src/components/Carousel/CarouselScrollButtons.tsx +81 -0
  205. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.example.json +4 -0
  206. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.fixture.tsx +19 -0
  207. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +85 -0
  208. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.ui.json +1 -0
  209. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.ts +9 -0
  210. package/src/components/CarouselCard/CarouselCard.tsx +2 -2
  211. package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -1
  212. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
  213. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +10 -9
  214. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +0 -1
  215. package/src/components/Footer/MediaButton.tsx +2 -2
  216. package/src/components/Footer/SocialMedia.tsx +6 -3
  217. package/src/hooks/useLink.ts +4 -4
  218. package/src/services/sitemap/findActiveSubItem.ts +2 -2
  219. package/src/services/sitemap/isHrefActive.ts +6 -6
  220. package/src/services/sitemap/isTopItemActive.ts +3 -3
  221. package/src/ui-kit/TopItem/TopItem.tsx +1 -1
  222. package/src/utils/url.ts +1 -9
  223. package/tailwind.config.cjs +2 -0
  224. package/bundle/services/sitemap/isSubItemActive.d.ts +0 -4
  225. package/bundle/utils/adjustHref.d.ts +0 -1
  226. package/dist/services/sitemap/isSubItemActive.d.ts +0 -4
  227. package/dist/services/sitemap/isSubItemActive.js +0 -6
  228. package/dist/services/sitemap/isSubItemActive.js.map +0 -1
  229. package/dist/utils/adjustHref.d.ts +0 -1
  230. package/dist/utils/adjustHref.js +0 -9
  231. package/dist/utils/adjustHref.js.map +0 -1
  232. package/lib/services/sitemap/isSubItemActive.d.ts +0 -4
  233. package/lib/services/sitemap/isSubItemActive.js +0 -3
  234. package/lib/services/sitemap/isSubItemActive.js.map +0 -1
  235. package/lib/utils/adjustHref.d.ts +0 -1
  236. package/lib/utils/adjustHref.js +0 -6
  237. package/lib/utils/adjustHref.js.map +0 -1
  238. package/mobile/bundle/services/sitemap/isSubItemActive.d.ts +0 -4
  239. package/mobile/bundle/utils/adjustHref.d.ts +0 -1
  240. package/mobile/dist/services/sitemap/isSubItemActive.d.ts +0 -4
  241. package/mobile/dist/services/sitemap/isSubItemActive.js +0 -6
  242. package/mobile/dist/services/sitemap/isSubItemActive.js.map +0 -1
  243. package/mobile/dist/utils/adjustHref.d.ts +0 -1
  244. package/mobile/dist/utils/adjustHref.js +0 -9
  245. package/mobile/dist/utils/adjustHref.js.map +0 -1
  246. package/mobile/lib/services/sitemap/isSubItemActive.d.ts +0 -4
  247. package/mobile/lib/services/sitemap/isSubItemActive.js +0 -3
  248. package/mobile/lib/services/sitemap/isSubItemActive.js.map +0 -1
  249. package/mobile/lib/utils/adjustHref.d.ts +0 -1
  250. package/mobile/lib/utils/adjustHref.js +0 -6
  251. package/mobile/lib/utils/adjustHref.js.map +0 -1
  252. package/mobile/src/services/sitemap/isSubItemActive.ts +0 -7
  253. package/mobile/src/utils/adjustHref.ts +0 -7
  254. package/src/services/sitemap/isSubItemActive.ts +0 -7
  255. package/src/utils/adjustHref.ts +0 -7
@@ -12,6 +12,6 @@ export const CarouselRecommendationCard = JSX(({ button, className = '', descrip
12
12
  const tileTitle = title ? (_jsx(Heading, { headingType: "h5", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
13
13
  const tileImage = image?.src ? (_jsx(Img, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
14
14
  const BORDER_STYLE = 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider';
15
- return (_jsx(BlockWrapper, { className: style('relative p-7 min-w-[524px] text-left box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: _jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: _jsxs("div", { className: "h-full flex flex-col justify-between", children: [description ? (_jsx("span", { className: "mb-2 group-data-gray:text-secondary-text group-data-gray:max-w-[265px]", children: description })) : null, items.length ? (_jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items })) : null, socialMedia.length ? _jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia }) : null, renderButtonsSection([button], { className: 'pt-2 mt-16' })] }) }) }));
15
+ return (_jsx(BlockWrapper, { className: style('relative p-7 min-w-[524px] h-full text-left box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: _jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: _jsxs("div", { className: "h-full flex flex-col justify-between", children: [description ? (_jsx("span", { className: "mb-2 group-data-gray:text-secondary-text group-data-gray:max-w-[265px]", children: description })) : null, items.length ? (_jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items })) : null, socialMedia.length ? _jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia }) : null, renderButtonsSection([button], { className: 'pt-2 mt-16' })] }) }) }));
16
16
  });
17
17
  //# sourceMappingURL=CarouselRecommendationCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CarouselRecommendationCard.js","sourceRoot":"","sources":["../../../src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAI1C,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAC3C,CAAC,EACC,MAAM,EACN,SAAS,GAAG,EAAE,EACd,WAAW,EACX,KAAK,EACL,KAAK,GAAG,EAAE,EACV,WAAW,GAAG,EAAE,EAChB,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CACxB,KAAC,OAAO,IAAC,WAAW,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,GAAI,CAC3E,CAAC,CAAC,CAAC,IAAI,CAAC;IACT,MAAM,SAAS,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAC7B,KAAC,GAAG,IAAC,SAAS,EAAC,+BAA+B,EAAC,KAAK,EAAE,KAAK,GAAI,CAChE,CAAC,CAAC,CAAC,IAAI,CAAC;IACT,MAAM,YAAY,GAChB,0GAA0G,CAAC;IAE7G,OAAO,CACL,KAAC,YAAY,IACX,SAAS,EAAE,KAAK,CACd,oFAAoF,EACpF,YAAY,EACZ,SAAS,CACV,EACD,OAAO,EAAE,OAAO,KACZ,IAAI,YAER,KAAC,QAAQ,IAAC,SAAS,EAAC,sBAAsB,EAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,YAC3E,eAAK,SAAS,EAAC,sCAAsC,aAClD,WAAW,CAAC,CAAC,CAAC,CACb,eAAM,SAAS,EAAC,wEAAwE,YACrF,WAAW,GACP,CACR,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CACd,KAAC,IAAI,IACH,SAAS,EAAC,wDAAwD,EAClE,KAAK,EAAE,KAAK,GACZ,CACH,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,KAAC,WAAW,IAAC,SAAS,EAAC,YAAY,EAAC,KAAK,EAAE,WAAW,GAAI,CAAC,CAAC,CAAC,IAAI,EACtF,oBAAoB,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC,IACxD,GACG,GACE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"CarouselRecommendationCard.js","sourceRoot":"","sources":["../../../src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAI1C,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAC3C,CAAC,EACC,MAAM,EACN,SAAS,GAAG,EAAE,EACd,WAAW,EACX,KAAK,EACL,KAAK,GAAG,EAAE,EACV,WAAW,GAAG,EAAE,EAChB,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CACxB,KAAC,OAAO,IAAC,WAAW,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,GAAI,CAC3E,CAAC,CAAC,CAAC,IAAI,CAAC;IACT,MAAM,SAAS,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAC7B,KAAC,GAAG,IAAC,SAAS,EAAC,+BAA+B,EAAC,KAAK,EAAE,KAAK,GAAI,CAChE,CAAC,CAAC,CAAC,IAAI,CAAC;IACT,MAAM,YAAY,GAChB,0GAA0G,CAAC;IAE7G,OAAO,CACL,KAAC,YAAY,IACX,SAAS,EAAE,KAAK,CACd,2FAA2F,EAC3F,YAAY,EACZ,SAAS,CACV,EACD,OAAO,EAAE,OAAO,KACZ,IAAI,YAER,KAAC,QAAQ,IAAC,SAAS,EAAC,sBAAsB,EAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,YAC3E,eAAK,SAAS,EAAC,sCAAsC,aAClD,WAAW,CAAC,CAAC,CAAC,CACb,eAAM,SAAS,EAAC,wEAAwE,YACrF,WAAW,GACP,CACR,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CACd,KAAC,IAAI,IACH,SAAS,EAAC,wDAAwD,EAClE,KAAK,EAAE,KAAK,GACZ,CACH,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,KAAC,WAAW,IAAC,SAAS,EAAC,YAAY,EAAC,KAAK,EAAE,WAAW,GAAI,CAAC,CAAC,CAAC,IAAI,EACtF,oBAAoB,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC,IACxD,GACG,GACE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -9,7 +9,6 @@ import type { ListContent } from '../../ui-kit/List/ListContent';
9
9
  export interface CarouselRecommendationCardContent extends HeadlineCommonProps, ListContent {
10
10
  /**
11
11
  * @title Соц сети
12
- * @minItems 1
13
12
  */
14
13
  socialMedia?: ButtonWithIconProps[];
15
14
  /**
@@ -1,7 +1,7 @@
1
1
  import type { IconVersion } from '../../model/IconVersion';
2
- import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
2
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
3
3
  export declare type ButtonSize = 'default' | 'small';
4
- interface MediaButtonProps extends ButtonProps {
4
+ interface MediaButtonProps extends ButtonWithIconProps {
5
5
  iconVersion?: IconVersion;
6
6
  buttonSize?: ButtonSize;
7
7
  }
@@ -1,8 +1,8 @@
1
- import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
1
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
2
2
  import { type ButtonSize } from './MediaButton';
3
3
  export interface SocialMediaProps {
4
4
  className?: string;
5
- media?: ButtonProps[];
5
+ media?: ButtonWithIconProps[];
6
6
  buttonSize?: ButtonSize;
7
7
  }
8
8
  export declare const SocialMedia: import("@redneckz/uni-jsx").UNIComponent<SocialMediaProps, any, any>;
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  import { MediaButton } from './MediaButton.js';
4
- export const SocialMedia = JSX(({ className = '', media, children, buttonSize }) => (_jsxs("div", { className: "font-sans", children: [_jsx("div", { className: `flex gap-2.5 ${className}`, children: media?.map((_, index) => (_jsx(MediaButton, { buttonSize: buttonSize, version: _.version, ..._ }, String(index)))) }), _jsx("span", { className: "text-s-light text-secondary-text", children: children })] })));
4
+ import { Text } from '../../ui-kit/Text/Text.js';
5
+ export const SocialMedia = JSX(({ className = '', media, children, buttonSize }) => (_jsxs("div", { className: "font-sans", children: [_jsx("div", { className: `flex gap-2.5 ${className}`, children: media?.map((_, index) => (_jsx(MediaButton, { buttonSize: buttonSize, version: _.version, ..._ }, String(index)))) }), _jsx(Text, { size: "text-s-light", color: "text-secondary-text", children: children })] })));
5
6
  //# sourceMappingURL=SocialMedia.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SocialMedia.js","sourceRoot":"","sources":["../../../src/components/Footer/SocialMedia.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,WAAW,EAAmB,MAAM,eAAe,CAAC;AAQ7D,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAC5B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACnD,eAAK,SAAS,EAAC,WAAW,aACxB,cAAK,SAAS,EAAE,gBAAgB,SAAS,EAAE,YACxC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,KAAC,WAAW,IAAqB,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,KAAM,CAAC,IAAhE,MAAM,CAAC,KAAK,CAAC,CAAuD,CACvF,CAAC,GACE,EACN,eAAM,SAAS,EAAC,kCAAkC,YAAE,QAAQ,GAAQ,IAChE,CACP,CACF,CAAC"}
1
+ {"version":3,"file":"SocialMedia.js","sourceRoot":"","sources":["../../../src/components/Footer/SocialMedia.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,WAAW,EAAmB,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAQ9C,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAC5B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACnD,eAAK,SAAS,EAAC,WAAW,aACxB,cAAK,SAAS,EAAE,gBAAgB,SAAS,EAAE,YACxC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,KAAC,WAAW,IAAqB,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,KAAM,CAAC,IAAhE,MAAM,CAAC,KAAK,CAAC,CAAuD,CACvF,CAAC,GACE,EACN,KAAC,IAAI,IAAC,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,qBAAqB,YAClD,QAAQ,GACJ,IACH,CACP,CACF,CAAC"}
@@ -4,5 +4,5 @@ interface ClickHandler {
4
4
  preventDefault: () => void;
5
5
  }): void;
6
6
  }
7
- export declare function useLink(): <L extends Partial<LinkProps & ClickHandler>>(props: L) => L & ClickHandler;
7
+ export declare function useLink(isRemote?: boolean): <L extends Partial<LinkProps & ClickHandler>>(props: L) => L & ClickHandler;
8
8
  export {};
@@ -2,11 +2,11 @@ import { useBlockRouter } from '../services/BlockRouter/useBlockRouter.js';
2
2
  import { isHash, isLocalURL } from '../utils/url.js';
3
3
  import { handlerDecorator } from './handlerDecorator.js';
4
4
  import { useRouter } from './useRouter.js';
5
- export function useLink() {
5
+ export function useLink(isRemote) {
6
6
  const router = useRouter();
7
7
  const blockRouter = useBlockRouter();
8
8
  const handleLocalURL = (href, target) => (ev) => {
9
- if (!isLocalURL(href, target)) {
9
+ if (isRemote || !isLocalURL(href, target)) {
10
10
  // Proceed with native handle
11
11
  return;
12
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"useLink.js","sourceRoot":"","sources":["../../src/hooks/useLink.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAMxC,MAAM,UAAU,OAAO;IAGrB,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,MAAM,cAAc,GAClB,CAAC,IAAwB,EAAE,MAAe,EAAE,EAAE,CAAC,CAAC,EAAmC,EAAE,EAAE;QACrF,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE;YAC7B,6BAA6B;YAC7B,OAAO;SACR;QAED,iBAAiB;QACjB,EAAE,EAAE,cAAc,EAAE,CAAC;QACrB,IAAI,MAAM,CAAC,IAAI,CAAC,EAAE;YAChB,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACxB;aAAM,IAAI,IAAI,EAAE;YACf,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACnB;IACH,CAAC,CAAC;IAEJ,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACjB,GAAG,KAAK;QACR,YAAY,EAAE,KAAK,CAAC,IAAI;QACxB,OAAO,EAAE,gBAAgB,CAAC,CAAC,EAAmC,EAAE,EAAE;YAChE,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;YAEnC,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC;QAC/C,CAAC,EAAE,KAAK,CAAC;KACV,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"useLink.js","sourceRoot":"","sources":["../../src/hooks/useLink.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAMxC,MAAM,UAAU,OAAO,CACrB,QAAkB;IAElB,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,MAAM,cAAc,GAClB,CAAC,IAAwB,EAAE,MAAe,EAAE,EAAE,CAAC,CAAC,EAAmC,EAAE,EAAE;QACrF,IAAI,QAAQ,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE;YACzC,6BAA6B;YAC7B,OAAO;SACR;QAED,iBAAiB;QACjB,EAAE,EAAE,cAAc,EAAE,CAAC;QACrB,IAAI,MAAM,CAAC,IAAI,CAAC,EAAE;YAChB,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACxB;aAAM,IAAI,IAAI,EAAE;YACf,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACnB;IACH,CAAC,CAAC;IAEJ,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACjB,GAAG,KAAK;QACR,YAAY,EAAE,KAAK,CAAC,IAAI;QACxB,OAAO,EAAE,gBAAgB,CAAC,CAAC,EAAmC,EAAE,EAAE;YAChE,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;YAEnC,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC;QAC/C,CAAC,EAAE,KAAK,CAAC;KACV,CAAC,CAAC;AACL,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { maxBy } from '../../utils/maxBy.js';
2
- import { isSubItemActive } from './isSubItemActive.js';
2
+ import { isHrefActive } from './isHrefActive.js';
3
3
  export const findActiveSubItem = (router) => (items = []) => {
4
- const possibleActiveSubItems = items?.filter(isSubItemActive(router));
4
+ const possibleActiveSubItems = items?.filter(isHrefActive(router));
5
5
  return possibleActiveSubItems?.length
6
6
  ? maxBy((_) => _.href?.length || 0)(possibleActiveSubItems) // More specific item with max length
7
7
  : undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"findActiveSubItem.js","sourceRoot":"","sources":["../../../src/services/sitemap/findActiveSubItem.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,CAAC,MAAM,iBAAiB,GAC5B,CAAC,MAAc,EAAE,EAAE,CACnB,CAAsB,QAAa,EAAE,EAAiB,EAAE;IACtD,MAAM,sBAAsB,GAAG,KAAK,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;IAEtE,OAAO,sBAAsB,EAAE,MAAM;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAI,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,qCAAqC;QACpG,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC,CAAC"}
1
+ {"version":3,"file":"findActiveSubItem.js","sourceRoot":"","sources":["../../../src/services/sitemap/findActiveSubItem.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,CAAC,MAAM,iBAAiB,GAC5B,CAAC,MAAc,EAAE,EAAE,CACnB,CAAsB,QAAa,EAAE,EAAiB,EAAE;IACtD,MAAM,sBAAsB,GAAG,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IAEnE,OAAO,sBAAsB,EAAE,MAAM;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAI,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,qCAAqC;QACpG,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
- export declare const isHrefActive: (href: string | undefined, router: {
1
+ import type { Router } from '../../hooks/useRouter';
2
+ export declare const isHrefActive: (router: Router) => ({ href }: {
2
3
  href?: string | undefined;
3
4
  }) => boolean;
@@ -1,4 +1,3 @@
1
- import { adjustHref } from '../../utils/adjustHref.js';
2
- import { getPathname, isURL, withoutQuery } from '../../utils/url.js';
3
- export const isHrefActive = (href, router) => withoutQuery(isURL(href) ? router.href : getPathname(router.href)).startsWith(withoutQuery(adjustHref(href)));
1
+ import { isURL, withoutQuery } from '../../utils/url.js';
2
+ export const isHrefActive = (router) => ({ href }) => withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
4
3
  //# sourceMappingURL=isHrefActive.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isHrefActive.js","sourceRoot":"","sources":["../../../src/services/sitemap/isHrefActive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEnE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAwB,EAAE,MAAyB,EAAE,EAAE,CAClF,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAC3E,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAC/B,CAAC"}
1
+ {"version":3,"file":"isHrefActive.js","sourceRoot":"","sources":["../../../src/services/sitemap/isHrefActive.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEtD,MAAM,CAAC,MAAM,YAAY,GACvB,CAAC,MAAc,EAAE,EAAE,CACnB,CAAC,EAAE,IAAI,EAAqB,EAAW,EAAE,CACvC,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC"}
@@ -1,4 +1,3 @@
1
+ import type { Router } from '../../hooks/useRouter';
1
2
  import { TopMenuItem } from './SitemapProps';
2
- export declare const isTopItemActive: (router: {
3
- href?: string;
4
- }) => (topItem: TopMenuItem) => boolean;
3
+ export declare const isTopItemActive: (router: Router) => (topItem: TopMenuItem) => boolean;
@@ -1,4 +1,3 @@
1
1
  import { isHrefActive } from './isHrefActive.js';
2
- import { isSubItemActive } from './isSubItemActive.js';
3
- export const isTopItemActive = (router) => (topItem) => topItem.items?.some(isSubItemActive(router)) || isHrefActive(topItem.href, router);
2
+ export const isTopItemActive = (router) => (topItem) => topItem.items?.some(isHrefActive(router)) || isHrefActive(router)(topItem);
4
3
  //# sourceMappingURL=isTopItemActive.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isTopItemActive.js","sourceRoot":"","sources":["../../../src/services/sitemap/isTopItemActive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,MAAM,CAAC,MAAM,eAAe,GAC1B,CAAC,MAAyB,EAAE,EAAE,CAC9B,CAAC,OAAoB,EAAW,EAAE,CAChC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,IAAI,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"isTopItemActive.js","sourceRoot":"","sources":["../../../src/services/sitemap/isTopItemActive.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,MAAM,CAAC,MAAM,eAAe,GAC1B,CAAC,MAAc,EAAE,EAAE,CACnB,CAAC,OAAoB,EAAW,EAAE,CAChC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,IAAI,YAAY,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC"}
@@ -3,7 +3,7 @@ import { JSX } from '@redneckz/uni-jsx';
3
3
  import { useLink } from '../../hooks/useLink.js';
4
4
  import { style } from '../../utils/style.js';
5
5
  export const TopItem = JSX(({ className = '', active, flat, children, ...rest }) => {
6
- const link = useLink();
6
+ const link = useLink(true);
7
7
  const { href, target, text, onClick } = link(rest);
8
8
  return (_jsx("a", { className: style(getLinkStyle(active, flat), className), href: href, target: target, onClick: onClick, rel: "noopener noreferrer", "aria-label": text, children: _jsx("span", { className: getTextStyle(active, flat), children: text || children }) }));
9
9
  });
@@ -1 +1 @@
1
- {"version":3,"file":"TopItem.js","sourceRoot":"","sources":["../../../src/ui-kit/TopItem/TopItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAa1C,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAe,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC/F,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAEnD,OAAO,CACL,YACE,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,CAAC,EACvD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,GAAG,EAAC,qBAAqB,gBACb,IAAI,YAEhB,eAAM,SAAS,EAAE,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,YAAG,IAAI,IAAI,QAAQ,GAAQ,GACpE,CACL,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,CAAC,MAAM,GAAG,KAAK,EAAE,IAAI,GAAG,KAAK,EAAE,EAAE,CACpD,KAAK,CACH,0EAA0E,EAC1E,MAAM;IACJ,CAAC,CAAC,oEAAoE;IACtE,CAAC,CAAC,oBAAoB,EACxB,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CACxB,CAAC;AAEJ,MAAM,YAAY,GAAG,CAAC,MAAM,GAAG,KAAK,EAAE,IAAI,GAAG,KAAK,EAAE,EAAE,CACpD,KAAK,CACH,wBAAwB,EACxB,MAAM;IACJ,CAAC,CAAC,mBAAmB;IACrB,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,qBAAqB,EAAE,yBAAyB,CAAC,EACxF,mFAAmF,CACpF,CAAC"}
1
+ {"version":3,"file":"TopItem.js","sourceRoot":"","sources":["../../../src/ui-kit/TopItem/TopItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAa1C,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAe,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC/F,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAEnD,OAAO,CACL,YACE,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,CAAC,EACvD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,GAAG,EAAC,qBAAqB,gBACb,IAAI,YAEhB,eAAM,SAAS,EAAE,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,YAAG,IAAI,IAAI,QAAQ,GAAQ,GACpE,CACL,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,CAAC,MAAM,GAAG,KAAK,EAAE,IAAI,GAAG,KAAK,EAAE,EAAE,CACpD,KAAK,CACH,0EAA0E,EAC1E,MAAM;IACJ,CAAC,CAAC,oEAAoE;IACtE,CAAC,CAAC,oBAAoB,EACxB,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CACxB,CAAC;AAEJ,MAAM,YAAY,GAAG,CAAC,MAAM,GAAG,KAAK,EAAE,IAAI,GAAG,KAAK,EAAE,EAAE,CACpD,KAAK,CACH,wBAAwB,EACxB,MAAM;IACJ,CAAC,CAAC,mBAAmB;IACrB,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,qBAAqB,EAAE,yBAAyB,CAAC,EACxF,mFAAmF,CACpF,CAAC"}
package/lib/utils/url.js CHANGED
@@ -1,11 +1,5 @@
1
- import { projectSettings } from '../ProjectSettings.js';
2
1
  export const isURL = (href) => Boolean(href?.includes('//'));
3
- export const isLocalURL = (href, target) => Boolean(href &&
4
- !isURL(href) &&
5
- (projectSettings.BASE_PATH
6
- ? href.startsWith(projectSettings.BASE_PATH)
7
- : !href.startsWith('/')) &&
8
- (!target || target === '_self'));
2
+ export const isLocalURL = (href, target) => Boolean(href && !isURL(href) && (!target || target === '_self'));
9
3
  export const isHash = (href) => Boolean(href?.startsWith('#'));
10
4
  export const withoutQuery = (href) => (href || '').replace(/\/?\?.*/, '');
11
5
  export const getOrigin = (href) => (isURL(href) ? new URL(href).origin : undefined);
@@ -1 +1 @@
1
- {"version":3,"file":"url.js","sourceRoot":"","sources":["../../src/utils/url.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,IAAa,EAAkC,EAAE,CACrE,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;AAEhC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAwB,EAAE,MAAe,EAAE,EAAE,CACtE,OAAO,CACL,IAAI;IACF,CAAC,KAAK,CAAC,IAAI,CAAC;IACZ,CAAC,eAAe,CAAC,SAAS;QACxB,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,SAAS,CAAC;QAC5C,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC,CAAC,MAAM,IAAI,MAAM,KAAK,OAAO,CAAC,CAClC,CAAC;AAEJ,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,IAAa,EAAwB,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;AAE9F,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAa,EAAU,EAAE,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;AAE3F,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AAC7F,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AACjG,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC"}
1
+ {"version":3,"file":"url.js","sourceRoot":"","sources":["../../src/utils/url.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,IAAa,EAAkC,EAAE,CACrE,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;AAEhC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAwB,EAAE,MAAe,EAAE,EAAE,CACtE,OAAO,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,IAAI,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC;AAEnE,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,IAAa,EAAwB,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;AAE9F,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAa,EAAU,EAAE,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;AAE3F,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AAC7F,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AACjG,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC"}
@@ -708,12 +708,7 @@
708
708
  }
709
709
 
710
710
  const isURL = (href) => Boolean(href?.includes('//'));
711
- const isLocalURL = (href, target) => Boolean(href &&
712
- !isURL(href) &&
713
- (projectSettings.BASE_PATH
714
- ? href.startsWith(projectSettings.BASE_PATH)
715
- : !href.startsWith('/')) &&
716
- (!target || target === '_self'));
711
+ const isLocalURL = (href, target) => Boolean(href && !isURL(href) && (!target || target === '_self'));
717
712
  const isHash = (href) => Boolean(href?.startsWith('#'));
718
713
  const withoutQuery = (href) => (href || '').replace(/\/?\?.*/, '');
719
714
  const getOrigin = (href) => (isURL(href) ? new URL(href).origin : undefined);
@@ -758,11 +753,11 @@
758
753
  useRouter._impl = impl;
759
754
  };
760
755
 
761
- function useLink() {
756
+ function useLink(isRemote) {
762
757
  const router = useRouter();
763
758
  const blockRouter = useBlockRouter();
764
759
  const handleLocalURL = (href, target) => (ev) => {
765
- if (!isLocalURL(href, target)) {
760
+ if (isRemote || !isLocalURL(href, target)) {
766
761
  // Proceed with native handle
767
762
  return;
768
763
  }
@@ -937,7 +932,7 @@
937
932
  const simpleKey = args[0];
938
933
  const fallbackData = fallback && typeof simpleKey === 'string' && fallback[simpleKey];
939
934
  return {
940
- data: !data && !error && fallbackData ? fallbackData : data,
935
+ data: !data && fallbackData ? fallbackData : data,
941
936
  error,
942
937
  mutate: () => Promise.resolve(undefined),
943
938
  isValidating: false
@@ -1158,22 +1153,16 @@
1158
1153
  return (jsx("section", { className: "mt-3", children: items.map((item, i) => (jsxs("div", { children: [isDotted ? (jsx("div", { className: `rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${LIST_DOT_STYLE_MAP[version]}` })) : null, jsx("span", { className: "text-m font-medium", children: item.title }), jsx("span", { className: `text-s pl-2 ${version === 'primary' ? 'text-secondary-text' : ''}`, children: item.text })] }, String(i)))) }));
1159
1154
  }
1160
1155
 
1161
- const adjustHref = (href) => href && projectSettings.BASE_PATH && !(isURL(href) || href.startsWith('/'))
1162
- ? `${projectSettings.BASE_PATH}${href}`
1163
- : href;
1164
-
1165
- const isHrefActive = (href, router) => withoutQuery(isURL(href) ? router.href : getPathname(router.href)).startsWith(withoutQuery(adjustHref(href)));
1166
-
1167
- const isSubItemActive = (router) => (subItem) => isHrefActive(subItem.href, router);
1156
+ const isHrefActive = (router) => ({ href }) => withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
1168
1157
 
1169
1158
  const findActiveSubItem = (router) => (items = []) => {
1170
- const possibleActiveSubItems = items?.filter(isSubItemActive(router));
1159
+ const possibleActiveSubItems = items?.filter(isHrefActive(router));
1171
1160
  return possibleActiveSubItems?.length
1172
1161
  ? maxBy((_) => _.href?.length || 0)(possibleActiveSubItems) // More specific item with max length
1173
1162
  : undefined;
1174
1163
  };
1175
1164
 
1176
- const isTopItemActive = (router) => (topItem) => topItem.items?.some(isSubItemActive(router)) || isHrefActive(topItem.href, router);
1165
+ const isTopItemActive = (router) => (topItem) => topItem.items?.some(isHrefActive(router)) || isHrefActive(router)(topItem);
1177
1166
 
1178
1167
  const HeaderItem = JSX(({ className = '', active, dataItemName, children, ...rest }) => {
1179
1168
  const link = useLink();
@@ -1732,7 +1721,7 @@
1732
1721
  return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
1733
1722
  }
1734
1723
 
1735
- const packageVersion = "0.8.2";
1724
+ const packageVersion = "0.8.3";
1736
1725
 
1737
1726
  exports.Blocks = Blocks;
1738
1727
  exports.ContentPage = ContentPage;
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),i=n("useState"),r=n("useEffect"),a=n("useCallback"),l=n("useMemo"),s=n("useRef");const o={PROD_BRANCH:"master"},c=new class{_=o;setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH||o.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CDN(){return this._.CDN}get BASE_PATH(){return this._.BASE_PATH&&!this._.BASE_PATH.endsWith("/")?`${this._.BASE_PATH}/`:this._.BASE_PATH}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:g(e)),t._tmpl},g=e=>{function t(t,n){const{children:i,...r}=t||{},a=n?.slots?.default,l=i||a&&a();return e(Object.assign(r,l&&{children:l}),n)}return t.inheritAttrs=!1,t},b=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),x=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),f=[];function N(e,t){const{key:n,blockDecorator:i=x,blocksRegistry:r={},ancestors:a=f,className:l=""}=t,{type:s}=e;s&&s in r||console.warn(`No block with "${s}" is registered`);const o=s&&r[s];return i({blockClassName:b("scroll-mt-12",l,e.style||"col-span-12"),block:e,ancestors:a,render:({block:i,blockClassName:r})=>{const{content:a}=i;return o?h(o,{className:r,block:e,options:t,...a},n):null}},n)}const y=[],v=(e,{key:t,ancestors:n=y,slotName:i=null,renderChild:r=N,...a})=>(e||[]).map(((e,l)=>r(e,{...a,key:`${t||e.type}-${l}`,ancestors:a.parent?[...n||y,[a.parent,i]]:n})));function w({children:e,block:t,options:n,renderChild:i}){return e||(t&&n?v(t.blocks,{...n,parent:t,renderChild:i}):null)}class k{static inst=new k;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}function S(e,{sensitivity:t,rootRef:n}={}){const i=s(null),a=l((()=>({threshold:C(t),root:n?.current})),[t,n?.current]);return r((()=>{if(!i.current)return;const t=new IntersectionObserver(e,a);return t.observe(i.current),()=>{t.disconnect()}}),[e,a]),i}function C(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const T=e=>e?.replace("#",""),$=e=>`${globalThis.location?.pathname}#${T(e)}`;class _{static inst=new _;eventBus=new k;constructor(){const e=T(globalThis.location?.hash);e&&this.eventBus.subject("goto",{anchor:e})}goto(e){const t=T(e);t&&(this.push(t),this.eventBus.fire("goto",{anchor:t}))}push(e){globalThis.history?.pushState(null,"",$(e))}replace(e){globalThis.history?.replaceState(null,"",$(e))}reset(){globalThis.history?.replaceState(null,"",$())}}const I={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},A=p((({className:e="",version:t="primary",block:n,tag:l="section",role:s,children:o})=>{const c=l,d=function(e,t=_.inst){const n=S(a((n=>{if(!e||!n?.length)return;const i=n[n.length-1];t.eventBus.fire("intersection",{block:e,intersection:i})}),[e,t]),{sensitivity:1});return r((()=>{if(n.current)return t.eventBus.subscribe("goto",(({anchor:t})=>{n.current&&e?.anchor===t&&n.current.scrollIntoView({behavior:"smooth",block:"start"})}))}),[e,t]),n}(n),[m,u]=i(!0);return r((()=>k.inst.subscribe("tab",(e=>{if("group"===e.type){const t=n?.labels?.length||n?.anchor;u(!e.label||(!t||Boolean(n?.labels?.includes(e.label))))}else u(!0)}))),[n]),m?h(c,{className:b("group",I[t],e),...t?{"data-ver":t}:{},...n?.anchor?{id:n.anchor,ref:d}:{},role:s,children:o}):null})),R={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"},j=p((e=>{const{className:t,headingType:n="h3",title:i,as:r="h3"}=e;return h(r,{className:`font-sans font-medium m-0 ${R[n]} ${t||""}`,children:i})})),B=p((({children:e,...t})=>h("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),D=p((({children:e})=>h("ul",{className:"list-none m-0 p-0",children:e}))),V=p((({title:e,description:t,className:n="",...i})=>u(A,{className:`py-6 px-4 ${n}`,...i,children:[e?h(j,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?h("div",{className:"mb-5",children:h(B,{size:"text-m",font:"font-light",align:"text-center",children:t})}):null,h(D,{children:w(i)})]})));V.childrenTypes=["AccordionItem"];const L=p((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:n=!1,renderFoldableSection:r,renderFoldButton:l})=>{const[s,o]=i(n),c=a((()=>{o((e=>!e))}),[]),d=r({isUnfolded:s,onToggle:c}),m=l?l({isUnfolded:s,onToggle:c}):null;return u("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),M=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 ${i.current||!t?"max-h-0":""} ${e}`,children:n})})),O={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},P=p((({className:e="",imageClassName:t="",name:n="",alt:i=`Иконка ${n}`,title:r=i,iconVersion:a="color",asSVG:l,...s})=>{const o=`${c.CDN||""}icons/${n}.svg`;return l&&"normal"!==a?h(E,{className:e,children:u("svg",{className:b(z(s.width),O[a],"white"===a?"invert":"",t),...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"})})),z=e=>e?"":"w-full h-full",E=p((({className:e,children:t})=>e?h("div",{className:e,children:t}):t)),H=(e,t)=>e.media&&t.media?e.media-t.media:0,F=p((({className:e="",image:t,imageClassName:n="",isMobile:i=!1,pathPrefix:r})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${i?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(H).map((({src:e,format:n,media:i},a)=>h("source",{srcSet:U(e,r),type:W(n),media:i?`(max-width: ${i}px)`:"",...t.size},`${a}_${e}`))):null,G({...t,src:J(t.src,r)},n,i)]})})),G=(e,t="",n=!1)=>{const i={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",a=e.alt||e.title,l=n?"m-auto":"m-0";return h("img",{src:e.src,className:`${l} ${t}`,alt:a,title:r,style:i,...e.size})},J=(e,t)=>!e||e?.startsWith("data:image")?e:`${((e="")=>e&&!e.endsWith("/")?`${e}/`:e)(t)}${e}`,U=(e,t)=>e?.split(",").map((e=>J(e.trim(),t))).join(", ");function W(e){return e?`image/${String(e)}`:void 0}const Y=p((({className:e="",image:t,imageClassName:n="",isMobile:i,pathPrefix:r,...a})=>t?.src||t?.icon?t.icon?h(P,{className:e,imageClassName:n,iconVersion:t?.iconVersion||"normal",name:t.icon,...a}):h(F,{className:e,imageClassName:n,image:t,isMobile:i,pathPrefix:r}):null)),X=p((e=>h(Y,{...e,isMobile:!0}))),K=p((({children:e,...t})=>h("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),q=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),Q=["PlusIcon","MinusIcon"],Z=p((({className:e="",label:t="",labelIcon:n,isExpanded:i,...r})=>{const{bordered:a}=function(e,t){const{content:n}=function(e){return e?.parent||{}}(e);return n||t}(r.options,{});return 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(L,{isFoldButtonOnTop:!0,unfoldedByDefault:i,renderFoldableSection:({isUnfolded:e})=>h(M,{className:"flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0",isUnfolded:e,children:w(r)}),renderFoldButton:({isUnfolded:e,onToggle:i})=>h(ee,{className:a?"":"py-3.5 px-0",label:t,icon:Q[Number(e)],primaryIcon:n,onClick:i})})})}));Z.childrenTypes=[];const ee=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(X,{image:q(i),className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,h(K,{size:"text-m-title-xs",font:"font-medium",children:n})]}),h(X,{className:"flex-shrink-0",image:q({icon:t}),width:"24",height:"24",asSVG:!0})]}))),te=p((({className:e="",style:t,idx:n,activeIndex:i,observerOptions:r,children:l,onIntersection:s})=>{const o=S(a((e=>{e.length&&s&&s(n||0,e[e.length-1])}),[s,n]),r);return h("div",{className:`inline-block snap-always box-border ${e}`,style:t,role:"listitem","aria-current":Boolean(n===i),ref:o,children:l})})),ne=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],ie="866px",re=p((({className:e="",containerRef:t,activeIndex:n,visibleItemCount:i=0,gap:r=0,padding:l=0,listType:o="horizontal-list",snapAlign:c="snap-center",children:d,onVisibleItemsChange:m,onVisibleIndicesChange:u})=>{const p={sensitivity:1,rootRef:t},g=s([]),x=a(((e,t)=>{const n=[...g.current||[]];n[e]=t,g.current=n,m&&m(n),u&&u(le(n))}),[m,u]),f=i>0?r*Number(i)-1:0,N="vertical-list"===o,y="horizontal-list"===o,v={...y?ae(l,f):{},...N?{height:ie}:{},gap:`${r}px`},w={...y?ae(l/4):{},maxHeight:ie};return h("div",{className:b("box-border overflow-auto no-scrollbar",o,e),style:v,role:"list",ref:t,children:(k=(e,t)=>h(te,{className:b(c,i?ne[i-1]:"",N?"h-full":""),style:w,activeIndex:n,idx:t,observerOptions:p,onIntersection:x,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(k):k(e,0))(d)});var k})),ae=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),le=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),se={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},oe={"horizontal-list":"w-6","vertical-list":"h-6"},ce=p((({containerRef:e,activeIndex:t,dotCount:n=0,listType:i="horizontal-list"})=>n?h("div",{className:`flex gap-2 ${se[i]}`,children:new Array(n).fill(null).map(((n,r)=>h("div",{className:`cursor-pointer bg-primary-main rounded-full transition-width duration-300 group-data-secondary:bg-white group-data-transparent:bg-white ${r===t?oe[i]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(n=>{n!==t&&e?.current&&e.current.children[n]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(r)},String(r))))}):null)),de=e=>e,me=(e=de)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),he=(e=de)=>me((t=>-e(t))),ue=e=>t=>e.scrollWidth/t,pe=e=>(t,n)=>{e.scrollBy({left:n*ue(e)(t),behavior:"smooth"})},ge=({itemCount:e,isCyclic:t,onVisibleIndicesChange:n})=>{const r=s(null),[l,o]=i([]),c=a((e=>{o((t=>{return(n=t)===(i=e)||Boolean(n&&i&&n?.length===i?.length&&n.every(((e,t)=>e===i[t])))?t:e;var n,i})),n&&n(e)}),[e]),[d,m]=l.length?[he()(l),me()(l)]:[-1,-1],h=d>0,u=m<e-1,p=a((()=>{var n;r.current&&(t&&!h?(n=r.current).scrollTo({left:n.scrollWidth,behavior:"smooth"}):pe(r.current)(e,-1))}),[t,e,h]),g=a((()=>{r.current&&(t&&!u?r.current.scrollTo({left:0,behavior:"smooth"}):pe(r.current)(e,1))}),[e,t,u]);return[r,{scrollLeft:p,scrollRight:g,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},be=p((({className:e="",gap:t=14,padding:n=16,showDots:i=!0,children:r,onVisibleIndicesChange:a,listType:l="horizontal-list"})=>{const s=Array.isArray(r)?r.length:0,[o,c]=ge({itemCount:s,onVisibleIndicesChange:a}),[d]=c.visibleIndicesRange;return u("div",{className:b(e,"vertical-list"===l?"relative h-full":""),children:[h(re,{containerRef:o,activeIndex:d,visibleItemCount:1,gap:t,padding:n,onVisibleIndicesChange:c.handleVisibleIndicesChange,listType:l,children:r}),i?h(ce,{containerRef:o,activeIndex:d,dotCount:s,listType:l}):null]})}));const xe=e=>Boolean(e?.includes("//")),fe=(e,t)=>Boolean(e&&!xe(e)&&(c.BASE_PATH?e.startsWith(c.BASE_PATH):!e.startsWith("/"))&&(!t||"_self"===t)),Ne=e=>Boolean(e?.startsWith("#")),ye=e=>(e||"").replace(/\/?\?.*/,""),ve=e=>xe(e)?new URL(e).pathname:void 0;var we=Object.freeze({__proto__:null,isURL:xe,isLocalURL:fe,isHash:Ne,withoutQuery:ye,getOrigin:e=>xe(e)?new URL(e).origin:void 0,getPathname:ve,getHash:e=>xe(e)?new URL(e).hash:void 0});const ke=(e,t)=>ke._impl(e,t);function Se(){return Se._impl()}function Ce(){const e=Se(),t=_.inst;return n=>({...n,"aria-label":n.text,onClick:ke((i=>{var r,a;n.onClick&&n.onClick(i),(r=n.href,a=n.target,n=>{fe(r,a)&&(n?.preventDefault(),Ne(r)?t.goto(r):r&&e.push(r))})(i)}),n)})}ke._impl=e=>e,ke.setup=e=>{ke._impl=e},Se._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),Se.setup=e=>{Se._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:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},$e="bg-main-divider text-main-disabled",_e={primary:$e,secondary:$e,white:$e,link:"",transparent:"",gray:$e,"":""},Ie="text-center font-sans select-none",Ae={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},Re=p((e=>{const{text:t,aboveText:n,appendLeft:i,appendRight:r,version:a="primary"}=e;return u("div",{className:je(e),children:[i?h("div",{className:Ae[a],children:i}):null,Be(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:Ae[a],children:r}):null]})})),je=e=>{const{version:t,aboveText:n,rounded:i}=e;if("link"===t)return"";const r="gap-2 "+(n?"py-2.5 px-7":"py-4 px-4");return["group/btn flex items-center justify-center",Be(e)?r:"h-12 w-12",i?"rounded-full":""].join(" ")},Be=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),De=({className:e,rounded:t,version:n})=>["inline-block",Ie,n?_e[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Ve=({className:e,rounded:t,version:n})=>[Ie,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border",n?Te[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Le=p((({disabled:e,children:t,...n})=>{const i=Ce()(n),r=t??h(Re,{...i});return h(e?Oe:Me,{...i,children:r})})),Me=p((({className:e="",href:t,rel:n,target:i,ariaLabel:r,version:a,rounded:l,onClick:s,children:o})=>h("a",{className:Ve({className:e,version:a,rounded:l}),href:t,rel:n,target:i,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),Oe=p((({className:e,ariaLabel:t,version:n,rounded:i,children:r})=>h("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:De({className:e,rounded:i,version:n}),children:r}))),Pe=(e=!1)=>e?"text-white":"",ze=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),Ee=p((({icon:e,image:t,title:n,subtitle:i,isFillGradient:r})=>u("div",{role:"columnheader",children:[e?h(X,{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(X,{image:t})}),n?h(j,{headingType:"h4",className:Pe(r),title:n}):null,i?h("div",{className:ze(r),children:i}):null]}))),He=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)),Ge=p((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:i,showRow:r,onToggleColumn:a})=>{const l=t?.slice(0,r?t.length:n),s=i?"secondary":"primary";return u("div",{className:`border border-gray rounded-md p-4 mb-3.5 ${i?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[h(Ee,{...e,isFillGradient:i}),l?.length?l.map((({rowHeader:e,cell:t},n)=>h(He,{cell:t,rowHeader:e,isFillGradient:i},String(n)))):null,r&&e?.link?h(Le,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,Je({onToggleColumn:a,isFillGradient:i,showRow:r})]})})),Je=({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?"Скрыть":"Показать описание"})}),Ue=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(j,{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:l,...s})=>{const[o,c]=i(new Array(e.length).fill(!r)),d=a((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),m=a((()=>c((e=>new Array(e.length).fill(!1)))),[]),u=e?.map((({data:e,header:i},a)=>{return h(Ge,{visibleRowLength:r,showRow:o[a],header:i,columnData:(l=e,l?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===a&&n,onToggleColumn:()=>d(a),...s},String(a));var l}));return"horizontal"===l?h(be,{onVisibleIndicesChange:m,children:u}):u})),Ye=new Map;function Xe(e,t,{fallback:n}={}){const a=l((()=>Ke(e)),[e]),[s,o]=i(),[c,d]=i(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!a.every((e=>null===e)))try{const e=t(...a);"then"in e?(e=>{e.then((e=>Ye.get(a)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...a]);const u=a[0],p=n&&"string"==typeof u&&n[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function Ke(e){return e?Array.isArray(e)?e:e instanceof Function?Ke(e()):[e]:[e]}async function qe(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function Qe(e,t={}){const{data:n}=Xe(`/wcms-resources/${e}.json`,qe,{fallback:t});return n||{}}const Ze=p((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:r}=(()=>{const[e,t]=i("");return{term:e,setTerm:e=>t(e)}})(),a=t?"text-s":"text-l-light",l=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return 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(X,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),n?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${a}`,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-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text ${l}`,value:n,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?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(X,{image:{icon:"CloseIcon"},width:"24",height:"24"})}):h(Le,{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:"Найти"})})]})})),et=p((e=>h(Ze,{...e,isMobile:!0}))),tt=p((({className:e="",documents:t,...n})=>h(A,{className:`mt-2.5 ${e}`,...n,children:h("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?nt(t):null})}))),nt=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)}`)})),it={"bg-white":"color",transparent:"white"},rt={"bg-white":"text-primary-main",transparent:"text-white"},at=(e,t,n)=>h(X,t?.src?{image:t,className:rt[e],width:n?.width,height:n?.height,pathPrefix:"/wcms-resources/",asSVG:!0}:{image:{icon:t?.icon||"LogoIcon",iconVersion:it[e]},className:rt[e],width:n?.width,height:n?.height,asSVG:!0}),lt={"bg-white":"text-primary-text",transparent:"text-white"},st=(e,t,n)=>h("span",{className:`${lt[t]} ml-2.5 font-medium ${n||""}`,children:e||"Россельхозбанк"}),ot=p((({bgColor:e="bg-white",children:t,className:n="",href:i,logo:r,showTitle:a=!0,targetBlank:l})=>u("a",{className:`inline-flex items-center font-sans no-underline ${n}`,href:i||"https://rshb.ru/",target:l?"_blank":"_self","aria-label":r?.title||"Россельхозбанк",children:[at(e,r?.image,{width:"34",height:"34"}),a?st(t||r?.title,e,"text-s"):null]}))),ct=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-12 h-12",children:h(ot,{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}))),dt=p((({className:e="",items:t,hasButton:n})=>u("div",{className:e,children:[t?.length?t.map(mt):null,n?h(Le,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),mt=(e,t)=>{const{type:n,text:i,description:r}=e;return u("div",{className:"mb-4",children:[h("div",{children:ht(n,i)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},ht=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${ut(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})}},ut=e=>e.replaceAll(/\D/g,""),pt=p((({className:e="",index:t,text:n,...i})=>{const r=Ce(),{href:a,target:l,onClick:s}=r(i);return h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:l,onClick:s,children:n||`Документ ${t}`})})),gt=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(pt,{index:t,className:"text-s",...e},String(t))))}):null]}))),bt=[{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"},{origins:["youtube.com"],icon:{icon:"YoutubeIcon"},label:"Youtube"}],xt={default:"w-14 h-14",small:"w-12 h-12"},ft=p((({iconVersion:e="color",buttonSize:t="default",rounded:n=!1,...i})=>{const{href:r,version:a}=i,{icon:l,label:s}=bt.find((({origins:e})=>e.some((e=>r?.includes(e)))))||{},o=l?{...q(l),iconVersion:e}:null;return h(Le,{className:b("group/media flex items-center justify-center box-border",xt[t],n?"rounded-full":"rounded-md","border border-solid hover:border-transparent","group-data-primary:border-main-divider","hover:bg-primary-main hover:text-black","group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover","group-data-gray:border-green",xt[t]),"aria-label":s,target:"_blank",rel:"noopener noreferrer",version:a,...i,children:o?h(X,{image:o,imageClassName:"group-hover/media:text-white",width:"24",height:"24",asSVG:!0}):null})})),Nt=p((({className:e="",media:t})=>h("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e}`,children:t?.map(((e,t)=>h(ft,{...e},String(t))))}))),yt=p((({className:e="",index:t,...n})=>{const i=Ce(),{href:r,target:a,text:l,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:a,onClick:s,children:l||`Документ ${t}`})})),vt=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(yt,{index:t,...e},String(t))))}):null]}))),wt=p((({className:e="",...t})=>{const n=t.options?.page?.fallback,i=Qe(c.SITEMAP||"sitemap",n),{documents:r,relatedEnterprises:a,contacts:l,socialMedia:s,horizontalNavigationTitle:o}=Qe(c.FOOTER||"footer",n);return u("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[h(dt,{className:"overflow-hidden",items:l,hasButton:!0}),h(D,{children:i.topItems?.map(((e,t)=>h(Z,{label:e.text,children:h(tt,{documents:e.items})},String(t))))}),h("div",{children:i?.dispositions?.map(kt)}),h(ct,{title:"Мобильное приложение",description:"Загрузить для IOS и Android",...t}),h(et,{className:"grow"}),h(Nt,{className:"pb-4",media:s}),h(gt,{title:o,links:a}),h(vt,{links:r})]})})),kt=(e,t)=>{const{icon:n,href:i,text:r}=e;return u(Le,{version:"link",href:i,className:"flex text-s mb-4 w-6",children:[n?h(X,{className:"pr-1",image:q(n),width:"24",height:"24",asSVG:!0}):null,h("span",{className:"pl-2.5 font-medium text-primary-text",children:r})]},`footer-${t}`)},St=p((({className:e="",title:t,description:n,cards:i=[],orientation:r="horizontal",...a})=>u(A,{className:`relative px-4 py-6 overflow-hidden ${e}`,...a,children:[u("div",{className:"flex flex-col items-center mb-5",children:[t?h(j,{headingType:"h3",className:"text-center "+(n?"mb-2":"mb-5"),title:t}):null,n?h("div",{className:"text-m max-w-[600px] text-center mb-5",children:n}):null]}),Ct(r,i)]})));function Ct(e,t){return"horizontal"===e?h(be,{children:t?.map(Tt)}):h("div",{className:"grid gap-3.5",children:t?.map(Tt)})}function Tt(e,t){return u("div",{className:`w-full h-full flex flex-col justify-between shrink-0 box-border snap-start snap-always border-solid border rounded-md border-gray p-4\n ${I[e.version??"primary"]}`,children:[u("div",{children:[$t(e.icon),e.title?h("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?_t(e):null,e.items?.length?At(e.items,e.isDotted,e.version):null]}),e?.button?.text?(n=e.button,h(Le,{className:"mt-3",...n})):null]},t);var n}const $t=e=>e?.src||e?.icon?h("div",{className:"flex justify-center",children:h(X,{className:"mb-3.5",image:e})}):null;function _t(e){return h("div",{className:"text-secondary-text mt-1 text-s "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const It={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-primary-text",transparent:"","":""};function At(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 ${It[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)=>ye(xe(e)?t.href:ve(t.href)).startsWith(ye((e=>e&&c.BASE_PATH&&!xe(e)&&!e.startsWith("/")?`${c.BASE_PATH}${e}`:e)(e))),jt=e=>t=>Rt(t.href,e),Bt=p((({className:e="",active:t,dataItemName:n,children:i,...r})=>{const a=Ce(),{href:l,target:s,text:o,onClick:c}=a(r);return u("a",{className:b("relative inline-block bg-transparent text-center no-underline",e),href:l,target:s,"data-item-name":n,onClick:c,children:[h("span",{className:Dt(t),children:o||i}),t?h("div",{className:"absolute left-0 -bottom-3 w-full h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),Dt=(e=!1)=>b("font-sans text-s",e?"text-primary-main":"text-secondary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),Vt=864e5;function Lt(e,t,n=globalThis?.localStorage){const i=a((async(...i)=>{const r=`async:${e}`,a=function(e){const{data:t=null,timestamp:n=null}=e?JSON.parse(e):{};return t&&Date.now()-n<Vt?t:void 0}(n.getItem(r));if(a)return a;const l=await t(...i);return n.setItem(r,JSON.stringify({data:l,timestamp:Date.now()})),l}),[e,t]);return Xe(e,i)}const Mt=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}},Ot=p((({burgerSubMenu:e,onClick:t,defaultLocation:n="",children:l})=>{const[s]=function(e){const t=Mt(),[n,l]=i(t?.region??{name:e}),{data:s}=Lt("/api/v1/region",qe);return r((()=>{l(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[n,a((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),l(e)}),[l])]}(n);return 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(X,{image:{icon:"CloseIcon"},width:"24",height:"24",asSVG:!0})}),u("button",{className:"flex items-center text-s p-0 mb-4 bg-transparent cursor-pointer",children:[h(X,{image:{icon:"GeolocationIcon"},width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),h(K,{color:"text-secondary-text",children:s.name})]}),l,h("div",{className:"mb-7",children:e?.map(Pt)}),h(et,{className:"grow"})]})})),Pt=(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(X,{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}`)},zt=p((({onClick:e,bgColor:t,logo:n})=>u("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-12",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(X,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),h(ot,{className:"mr-8",bgColor:t,logo:n})]}),h("button",{className:"text-primary-main group-data-transparent:text-white group-data-transparent:hover:text-primary-hover text-s border-0 bg-transparent",children:"Войти"})]}))),Et={"bg-white":"primary",transparent:"transparent"},Ht=p((({bgColor:e="bg-white",version:t=Et[e],...n})=>{const r=Se(),l=n.options?.page?.fallback,{topItems:s,dispositions:o,defaultLocation:d,logo:m}=Qe(c.SITEMAP||"sitemap",l),p=s?.find((e=>t=>t.items?.some(jt(e))||Rt(t.href,e))(r)),g=p?.items,b=(e=>(t=[])=>{const n=t?.filter(jt(e));return n?.length?me((e=>e.href?.length||0))(n):void 0})(r)(g),[x,f]=i(!1),N=a((()=>f((e=>!e))),[]);return u(A,{tag:"header",version:t,...n,children:[u("div",{className:"container px-4 py-0 box-border",children:[h(zt,{onClick:N,bgColor:e,logo:m}),h("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-12",children:h("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:g?.map(((e,t)=>h(Bt,{className:"mr-8 whitespace-nowrap text-s",active:e===b,...e},String(t))))})})]}),x?h(Ot,{onClick:N,burgerSubMenu:o,defaultLocation:d,children:h(D,{children:s?.map(((e,t)=>h(Z,{label:e.text,children:h(tt,{documents:e.items})},String(t))))})}):null]})})),Ft={XXL:{wrapper:"gap-[18px]",title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5"},XL:{wrapper:"gap-4",title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl-light"},L:{wrapper:"gap-4",title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl-light"},M:{wrapper:"gap-3",title:{headingType:"h3",as:"h3"},descriptionSize:"text-xl-light"},S:{wrapper:"gap-2",title:{headingType:"h4",as:"h4"},descriptionSize:"text-xl-light"},XS:{wrapper:"gap-2",title:{headingType:"h5",as:"h5"},descriptionSize:"text-l-light"}},Gt=p((({className:e,title:t,description:n,headlineVersion:i="XL",align:r="text-center",as:a,version:l="",...s})=>{const o=Ft[i];return u(A,{className:b("flex flex-col p-12",o.wrapper,e),version:l,...s,children:[t?h(j,{className:b("whitespace-pre-wrap",r),...o?.title,as:a||o?.title.as,title:t}):null,n?h(B,{color:"group-data-secondary:text-white/80",size:o.descriptionSize,align:r,children:n}):null]})})),Jt=p((({className:e,iconClassName:t,textClassName:n,suffixClassName:i,doc:r,icon:a})=>{const{text:l,fileSize:s,...o}=r;return u("a",{className:e,role:"link",...o,children:[a?h(X,{className:t,image:q(a),width:"24px",height:"24px",asSVG:!0}):null,l?u("span",{className:n,children:[l,h("span",{className:i,children:o?.href&&Ut(Wt(o.href),s)})]}):null]})})),Ut=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Wt=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Yt=p((({className:e="",doc:t,icon:n})=>h(Jt,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),Xt=p((({hasBorder:e=!0,documents:t,icon:n})=>h(be,{className:"text-s text-primary-main mt-5",children:t?.length?t.map(((t,i)=>h(Yt,{className:e?"rounded-md border-gray border border-solid p-4":"",doc:t,icon:n},String(i)))):null}))),Kt=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(Yt,{className:e?"rounded-md border-gray border border-solid p-4":"",doc:t,icon:n})},String(i)))):null}))),qt=p((({className:e="",title:t,description:n,icon:i={icon:"DocIconMonoColor"},documents:r,orientation:a="vertical",hasBorder:l=!0,align:s,...o})=>u(A,{className:b("py-6 px-4 overflow-x-hidden",e),...o,children:[h(Gt,{className:"!p-0 "+(n?"gap-2":"gap-5"),title:t,description:n,align:s,headlineVersion:"M",as:"h2"}),h("vertical"===a?Kt:Xt,{hasBorder:l,documents:r,icon:i})]}))),Qt=e=>{const t="col-span-",n=e?.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Zt(e=""){const t=Qt(e);return t<=4?"S":t<=8?"M":"L"}function en(e=""){const t=Qt(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function tn(e=""){const t=Qt(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const nn=p((({className:e,title:t,description:n="Блок в разработке...",...i})=>u(A,{className:b("p-9 box-border",e,tn(e),en(e)),...i,children:[h(Gt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:Zt(e)}),h("figure",{className:"m-0 min-w-[80%]",children:rn()})]}))),rn=(e=3)=>ln(100,e).map((e=>Math.floor(e))).map(an),an=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),ln=(e,t)=>[e].concat(t>0?ln(e/1.618,t-1):[]),sn=(e,{className:t="",buttonClassName:n,isVertical:i}={})=>e?.length&&e.some((e=>e?.text))?h("div",{className:b("flex",i?"flex-col gap-2":"gap-4",t),children:e.map(on(n))}):null,on=(e="")=>(t,n)=>{const{text:i,icon:r,iconRight:a,version:l,...s}=t||{},o="secondary"===l?"color":"white";return i?h(Le,{className:e,appendLeft:cn({...r,iconVersion:o}),appendRight:cn({...a,iconVersion:o}),version:l,text:i,...s},n?String(n):""):null},cn=e=>e?.icon||e?.src?h(X,{image:e,width:String(e?.size?.width||24),height:String(24),asSVG:!0}):null,dn={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"},mn=p((({className:e="",isDotted:t=!0,children:n,size:i="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 bg-primary-text group-data-secondary:bg-white ${dn[i]}`})}):null,h("span",{children:n})]}))),hn={S:"text-l-light",M:"text-h6",L:"text-h5"},un={S:"ml-2",M:"ml-3",L:"ml-4"},pn=p((({className:e="",hasIndent:t,isDotted:n,itemClassName:i="",items:r,listItemSize:a="M"})=>r?.length?h("section",{className:`text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text ${hn[a]} ${t?un[a]:""} ${e}`,role:"list",children:r.map(((e,t)=>h(mn,{className:`${i} mb-1.5`,isDotted:n,size:a,children:e},String(t))))}):null)),gn=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]})]}))),bn=p((e=>{const{className:t="",icon:n,label:i,description:r,version:a="primary",benefitsVersion:l="normal"}=e,s="white"===l?"secondary":"primary";return u("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[n?h("div",{className:xn(a,l),children:h(X,{className:"w-6 h-6",image:q(n,s),asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[i?h("div",{className:"text-h6 text-primary-text group-data-secondary:text-white",children:i}):null,r?h("div",{className:"text-m-light text-secondary-text group-data-secondary:text-white",children:r}):null]})]})}));function xn(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const fn=(e="primary",t="normal")=>({icon:n,label:i,description:r},a)=>h(bn,{icon:n,label:i,description:r,version:e,benefitsVersion:t},String(a)),Nn=p((({className:e="",headlineVersion:t="L",benefits:n,benefitsVersion:i="normal",buttons:r,image:a,items:l,version:s="primary",isDotted:o=!0,label:c,title:d,description:m,...p})=>u(A,{className:`w-full ${e}`,version:s,...p,children:[u("div",{children:[c?vn(c):null,h(Gt,{className:"!p-0 max-w-[600px]",title:d,description:m,headlineVersion:t,align:"text-left"}),u(gn,{buttons:sn(r,{className:"mt-5",isVertical:!0}),children:[n?.filter((e=>e.label))?.length?h("div",{className:"mt-3",children:n.map(fn(s,i))}):null,l?.length?h(pn,{className:"mt-3 text-m",items:l,isDotted:o}):null]})]}),yn(a)]})));function yn(e){return e?.src?h(X,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const vn=e=>h("div",{className:"w-fit px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid border-secondary-hover",children:h(K,{color:"text-primary-main group-data-secondary:text-white/80",children:e})}),wn=p((e=>{const{className:t="",...n}=e;return h(A,{className:`px-4 py-6 ${t}`,...n,children:h(Nn,{...e})})})),kn={primary:{description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"},gray:{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"},transparent:{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"},"":{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},Sn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-12 w-12 min-w-12 min-h-12"},Cn={normal:"min-h-[70px]",small:"min-h-12"},Tn=p((({className:e="",title:t,description:n,showLines:i=!0,steps:r,size:a="normal",version:l="primary",...s})=>{const o=kn[l];return u(A,{className:`box-border px-4 py-6 flex flex-col ${e}`,version:l,...s,children:[t?h(j,{headingType:"h3",className:"text-center",title:t}):null,n?h("p",{className:`text-m-light text-center ${o.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($n(a,l,i))})}):null]})})),$n=(e,t,n)=>(i,r,a)=>{const l=a.length-1===r,s="normal"===e?"ml-[34px]":"ml-6",o=kn[t];return h("div",{children:u("div",{className:"flex flex-row text-center relative",children:[u("div",{className:"overflow-hidden flex-shrink-0",children:[_n(e,t)(i,r),l?null:h("div",{className:`min-h-8 h-full w-0.5 ${n?o.iconConnector:""} ${s}`})]}),u("div",{className:`flex flex-col justify-center h-fit ${Cn[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))},_n=(e,t)=>(n,i)=>{const r="normal"===e?"38":"27",a="normal"===e?"text-m-title":"text-m-title-xs";return h("div",{className:`${Sn[e]} ${kn[t].iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:h("span",{className:`font-medium flex self-center ${a}`,children:(l=n?.icon,Boolean(l?.icon||l?.src)?h(X,{image:q({...n.icon},t),width:r,height:r,asSVG:!0}):h("span",{children:i+1}))})});var l},In={Buttons:({buttons:e})=>sn(e,{className:"mt-3",buttonClassName:"w-12 h-12"}),Img:({image:e})=>e?.src?h(X,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>h(pn,{className:"flex flex-col justify-between items-start text-m",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]})},An=p((({title:e,icon:t})=>u("div",{className:"flex gap-2.5 mb-2",children:[e?h(j,{headingType:"h3",className:"font-medium",title:e}):null,t?h(X,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),Rn=p((({tile:e,...t})=>u("div",{className:"rounded-md border-gray h-full box-border border p-4",children:[h(An,{...e?.header}),e?.data?.length?e.data.map(((e,n)=>u("div",{children:[n>0?h("div",{className:"h-5"}):null,jn(e,t)]},String(n)))):null]})));function jn(e,t){if(!e||!e.tableCellType||!(e.tableCellType in In))return null;const n=In[e.tableCellType];return h(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const Bn=p((({tiles:e,...t})=>e?.length?h(be,{...t,children:e.map(((e,n)=>h(Rn,{tile:e,...t},String(n))))}):null)),Dn=p((({tiles:e,...t})=>e?.length?h("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>h(Rn,{tile:e,...t},String(n))))}):null)),Vn=p((({className:e,title:t,description:n,tariffsColumns:i,rowHeaders:r,orientation:a="vertical",...l})=>{const s=Ln(i),o=Mn(r,s);return u("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[t?h(j,{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"===a?Dn:Bn,{tiles:o,...l})]})})),Ln=e=>e?.[0]?.data?e[0].data:[],Mn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),On={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"}},Pn=p((({title:e,description:t,blockVersion:n="primary",iconVersion:i,image:r,className:a="",items:l,isDotted:s=!0})=>{const o=On[n];return u("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${a}`,children:["small"===i?zn(o.icon):null,"big"===i?En(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,l?.length?h(pn,{className:"mt-1 text-m",items:l,isDotted:s}):null]})]})}));function zn(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 En(e){return e?.src?h(X,{className:"pb-3 mr-auto",image:e}):null}const Hn={Accordion:V,AccordionItem:Z,ComparisonTable:Ue,Footer:wt,Gallery:St,Header:Ht,Headline:Gt,LinkDocs:qt,LinkList:tt,MobileAppTile:ct,ProductBlock:wn,StepsBlock:Tn,TariffsTable:Vn,TextBlock:Pn,Placeholder:nn},Fn=["Header","Footer"],Gn=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function Jn(e=_.inst,t=globalThis){const n=s(new Map);r((()=>e.eventBus.subscribe("intersection",(({block:e,intersection:t})=>{n.current&&n.current.set(e,t)}))),[e]),r((()=>{const i=((e,t=600)=>{let n;const i=(...r)=>{i.dispose(),n=setTimeout((()=>{e(...r)}),t)};return i.dispose=()=>{n&&clearTimeout(n)},i})((()=>{if(!(globalThis.scrollY>3*globalThis.innerHeight/4))return void e.reset();const t=function(e){const t=e.filter((([e])=>!Fn.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[n]=t.length>0?he(Gn)(t):[];return n}([...n.current||[]]);t?.anchor?e.replace(t.anchor):t||e.reset()}),100);return t.addEventListener("scroll",i),()=>{i.dispose(),t.removeEventListener("scroll",i)}}),[e,t])}const Un=m();const Wn=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:Yn()}))),Yn=()=>{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"})]})},Xn=p((({className:e=""})=>{const t=function(e){const[t,n]=i(0);return r((()=>{(async()=>{const[t]=await Un.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:a((async()=>{n(await Un.like(e))}),[e]),dislike:a((async()=>{n(await Un.dislike(e))}),[e])}}(Se().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(Wn,{onClick:ke(t.like),ariaLabel:"Поставить отметку «лайк»"}),h(Wn,{onClick:ke(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:t.likeCount})]})})),Kn=p((e=>{const{className:t="",blocksRegistry:n,blockDecorator:i,data:r={}}=e,{style:a,blocks:l,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:n,blockDecorator:i,parent:r};return Jn(),u("section",{className:b("relative",a,t),"data-theme":c,children:[s?.header?h("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:v(s?.header,{...d,slotName:"header"})}):null,u("div",{className:"container grid grid-cols-12 gap-1",children:[v(l,d),s?.footer?v(s?.footer,{...d,slotName:"footer"}):null]}),o?h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(Xn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));Kn.childrenTypes=[],Kn.slots=()=>["header","footer"];e.Blocks=Hn,e.ContentPage=Kn,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=m,e.handlerDecorator=ke,e.joinList=function(e){return t=>t.reduce(((t,n,i)=>t.length?t.concat({...e,key:i},n):[n]),[])},e.packageVersion="0.8.2",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=we,e.useRouter=Se,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),i=n("useState"),r=n("useEffect"),a=n("useCallback"),l=n("useMemo"),s=n("useRef");const o={PROD_BRANCH:"master"},c=new class{_=o;setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH||o.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CDN(){return this._.CDN}get BASE_PATH(){return this._.BASE_PATH&&!this._.BASE_PATH.endsWith("/")?`${this._.BASE_PATH}/`:this._.BASE_PATH}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:g(e)),t._tmpl},g=e=>{function t(t,n){const{children:i,...r}=t||{},a=n?.slots?.default,l=i||a&&a();return e(Object.assign(r,l&&{children:l}),n)}return t.inheritAttrs=!1,t},b=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),x=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),f=[];function N(e,t){const{key:n,blockDecorator:i=x,blocksRegistry:r={},ancestors:a=f,className:l=""}=t,{type:s}=e;s&&s in r||console.warn(`No block with "${s}" is registered`);const o=s&&r[s];return i({blockClassName:b("scroll-mt-12",l,e.style||"col-span-12"),block:e,ancestors:a,render:({block:i,blockClassName:r})=>{const{content:a}=i;return o?h(o,{className:r,block:e,options:t,...a},n):null}},n)}const y=[],v=(e,{key:t,ancestors:n=y,slotName:i=null,renderChild:r=N,...a})=>(e||[]).map(((e,l)=>r(e,{...a,key:`${t||e.type}-${l}`,ancestors:a.parent?[...n||y,[a.parent,i]]:n})));function w({children:e,block:t,options:n,renderChild:i}){return e||(t&&n?v(t.blocks,{...n,parent:t,renderChild:i}):null)}class k{static inst=new k;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}function C(e,{sensitivity:t,rootRef:n}={}){const i=s(null),a=l((()=>({threshold:S(t),root:n?.current})),[t,n?.current]);return r((()=>{if(!i.current)return;const t=new IntersectionObserver(e,a);return t.observe(i.current),()=>{t.disconnect()}}),[e,a]),i}function S(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const T=e=>e?.replace("#",""),$=e=>`${globalThis.location?.pathname}#${T(e)}`;class _{static inst=new _;eventBus=new k;constructor(){const e=T(globalThis.location?.hash);e&&this.eventBus.subject("goto",{anchor:e})}goto(e){const t=T(e);t&&(this.push(t),this.eventBus.fire("goto",{anchor:t}))}push(e){globalThis.history?.pushState(null,"",$(e))}replace(e){globalThis.history?.replaceState(null,"",$(e))}reset(){globalThis.history?.replaceState(null,"",$())}}const I={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},A=p((({className:e="",version:t="primary",block:n,tag:l="section",role:s,children:o})=>{const c=l,d=function(e,t=_.inst){const n=C(a((n=>{if(!e||!n?.length)return;const i=n[n.length-1];t.eventBus.fire("intersection",{block:e,intersection:i})}),[e,t]),{sensitivity:1});return r((()=>{if(n.current)return t.eventBus.subscribe("goto",(({anchor:t})=>{n.current&&e?.anchor===t&&n.current.scrollIntoView({behavior:"smooth",block:"start"})}))}),[e,t]),n}(n),[m,u]=i(!0);return r((()=>k.inst.subscribe("tab",(e=>{if("group"===e.type){const t=n?.labels?.length||n?.anchor;u(!e.label||(!t||Boolean(n?.labels?.includes(e.label))))}else u(!0)}))),[n]),m?h(c,{className:b("group",I[t],e),...t?{"data-ver":t}:{},...n?.anchor?{id:n.anchor,ref:d}:{},role:s,children:o}):null})),R={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"},j=p((e=>{const{className:t,headingType:n="h3",title:i,as:r="h3"}=e;return h(r,{className:`font-sans font-medium m-0 ${R[n]} ${t||""}`,children:i})})),B=p((({children:e,...t})=>h("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),D=p((({children:e})=>h("ul",{className:"list-none m-0 p-0",children:e}))),V=p((({title:e,description:t,className:n="",...i})=>u(A,{className:`py-6 px-4 ${n}`,...i,children:[e?h(j,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?h("div",{className:"mb-5",children:h(B,{size:"text-m",font:"font-light",align:"text-center",children:t})}):null,h(D,{children:w(i)})]})));V.childrenTypes=["AccordionItem"];const L=p((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:n=!1,renderFoldableSection:r,renderFoldButton:l})=>{const[s,o]=i(n),c=a((()=>{o((e=>!e))}),[]),d=r({isUnfolded:s,onToggle:c}),m=l?l({isUnfolded:s,onToggle:c}):null;return u("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),M=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 ${i.current||!t?"max-h-0":""} ${e}`,children:n})})),O={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},P=p((({className:e="",imageClassName:t="",name:n="",alt:i=`Иконка ${n}`,title:r=i,iconVersion:a="color",asSVG:l,...s})=>{const o=`${c.CDN||""}icons/${n}.svg`;return l&&"normal"!==a?h(E,{className:e,children:u("svg",{className:b(z(s.width),O[a],"white"===a?"invert":"",t),...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"})})),z=e=>e?"":"w-full h-full",E=p((({className:e,children:t})=>e?h("div",{className:e,children:t}):t)),F=(e,t)=>e.media&&t.media?e.media-t.media:0,H=p((({className:e="",image:t,imageClassName:n="",isMobile:i=!1,pathPrefix:r})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${i?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(F).map((({src:e,format:n,media:i},a)=>h("source",{srcSet:U(e,r),type:W(n),media:i?`(max-width: ${i}px)`:"",...t.size},`${a}_${e}`))):null,G({...t,src:J(t.src,r)},n,i)]})})),G=(e,t="",n=!1)=>{const i={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",a=e.alt||e.title,l=n?"m-auto":"m-0";return h("img",{src:e.src,className:`${l} ${t}`,alt:a,title:r,style:i,...e.size})},J=(e,t)=>!e||e?.startsWith("data:image")?e:`${((e="")=>e&&!e.endsWith("/")?`${e}/`:e)(t)}${e}`,U=(e,t)=>e?.split(",").map((e=>J(e.trim(),t))).join(", ");function W(e){return e?`image/${String(e)}`:void 0}const Y=p((({className:e="",image:t,imageClassName:n="",isMobile:i,pathPrefix:r,...a})=>t?.src||t?.icon?t.icon?h(P,{className:e,imageClassName:n,iconVersion:t?.iconVersion||"normal",name:t.icon,...a}):h(H,{className:e,imageClassName:n,image:t,isMobile:i,pathPrefix:r}):null)),X=p((e=>h(Y,{...e,isMobile:!0}))),K=p((({children:e,...t})=>h("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),q=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),Q=["PlusIcon","MinusIcon"],Z=p((({className:e="",label:t="",labelIcon:n,isExpanded:i,...r})=>{const{bordered:a}=function(e,t){const{content:n}=function(e){return e?.parent||{}}(e);return n||t}(r.options,{});return 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(L,{isFoldButtonOnTop:!0,unfoldedByDefault:i,renderFoldableSection:({isUnfolded:e})=>h(M,{className:"flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0",isUnfolded:e,children:w(r)}),renderFoldButton:({isUnfolded:e,onToggle:i})=>h(ee,{className:a?"":"py-3.5 px-0",label:t,icon:Q[Number(e)],primaryIcon:n,onClick:i})})})}));Z.childrenTypes=[];const ee=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(X,{image:q(i),className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,h(K,{size:"text-m-title-xs",font:"font-medium",children:n})]}),h(X,{className:"flex-shrink-0",image:q({icon:t}),width:"24",height:"24",asSVG:!0})]}))),te=p((({className:e="",style:t,idx:n,activeIndex:i,observerOptions:r,children:l,onIntersection:s})=>{const o=C(a((e=>{e.length&&s&&s(n||0,e[e.length-1])}),[s,n]),r);return h("div",{className:`inline-block snap-always box-border ${e}`,style:t,role:"listitem","aria-current":Boolean(n===i),ref:o,children:l})})),ne=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],ie="866px",re=p((({className:e="",containerRef:t,activeIndex:n,visibleItemCount:i=0,gap:r=0,padding:l=0,listType:o="horizontal-list",snapAlign:c="snap-center",children:d,onVisibleItemsChange:m,onVisibleIndicesChange:u})=>{const p={sensitivity:1,rootRef:t},g=s([]),x=a(((e,t)=>{const n=[...g.current||[]];n[e]=t,g.current=n,m&&m(n),u&&u(le(n))}),[m,u]),f=i>0?r*Number(i)-1:0,N="vertical-list"===o,y="horizontal-list"===o,v={...y?ae(l,f):{},...N?{height:ie}:{},gap:`${r}px`},w={...y?ae(l/4):{},maxHeight:ie};return h("div",{className:b("box-border overflow-auto no-scrollbar",o,e),style:v,role:"list",ref:t,children:(k=(e,t)=>h(te,{className:b(c,i?ne[i-1]:"",N?"h-full":""),style:w,activeIndex:n,idx:t,observerOptions:p,onIntersection:x,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(k):k(e,0))(d)});var k})),ae=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),le=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),se={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},oe={"horizontal-list":"w-6","vertical-list":"h-6"},ce=p((({containerRef:e,activeIndex:t,dotCount:n=0,listType:i="horizontal-list"})=>n?h("div",{className:`flex gap-2 ${se[i]}`,children:new Array(n).fill(null).map(((n,r)=>h("div",{className:`cursor-pointer bg-primary-main rounded-full transition-width duration-300 group-data-secondary:bg-white group-data-transparent:bg-white ${r===t?oe[i]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(n=>{n!==t&&e?.current&&e.current.children[n]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(r)},String(r))))}):null)),de=e=>e,me=(e=de)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),he=(e=de)=>me((t=>-e(t))),ue=e=>t=>e.scrollWidth/t,pe=e=>(t,n)=>{e.scrollBy({left:n*ue(e)(t),behavior:"smooth"})},ge=({itemCount:e,isCyclic:t,onVisibleIndicesChange:n})=>{const r=s(null),[l,o]=i([]),c=a((e=>{o((t=>{return(n=t)===(i=e)||Boolean(n&&i&&n?.length===i?.length&&n.every(((e,t)=>e===i[t])))?t:e;var n,i})),n&&n(e)}),[e]),[d,m]=l.length?[he()(l),me()(l)]:[-1,-1],h=d>0,u=m<e-1,p=a((()=>{var n;r.current&&(t&&!h?(n=r.current).scrollTo({left:n.scrollWidth,behavior:"smooth"}):pe(r.current)(e,-1))}),[t,e,h]),g=a((()=>{r.current&&(t&&!u?r.current.scrollTo({left:0,behavior:"smooth"}):pe(r.current)(e,1))}),[e,t,u]);return[r,{scrollLeft:p,scrollRight:g,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},be=p((({className:e="",gap:t=14,padding:n=16,showDots:i=!0,children:r,onVisibleIndicesChange:a,listType:l="horizontal-list"})=>{const s=Array.isArray(r)?r.length:0,[o,c]=ge({itemCount:s,onVisibleIndicesChange:a}),[d]=c.visibleIndicesRange;return u("div",{className:b(e,"vertical-list"===l?"relative h-full":""),children:[h(re,{containerRef:o,activeIndex:d,visibleItemCount:1,gap:t,padding:n,onVisibleIndicesChange:c.handleVisibleIndicesChange,listType:l,children:r}),i?h(ce,{containerRef:o,activeIndex:d,dotCount:s,listType:l}):null]})}));const xe=e=>Boolean(e?.includes("//")),fe=(e,t)=>Boolean(e&&!xe(e)&&(!t||"_self"===t)),Ne=e=>Boolean(e?.startsWith("#")),ye=e=>(e||"").replace(/\/?\?.*/,"");var ve=Object.freeze({__proto__:null,isURL:xe,isLocalURL:fe,isHash:Ne,withoutQuery:ye,getOrigin:e=>xe(e)?new URL(e).origin:void 0,getPathname:e=>xe(e)?new URL(e).pathname:void 0,getHash:e=>xe(e)?new URL(e).hash:void 0});const we=(e,t)=>we._impl(e,t);function ke(){return ke._impl()}function Ce(e){const t=ke(),n=_.inst;return i=>({...i,"aria-label":i.text,onClick:we((r=>{var a,l;i.onClick&&i.onClick(r),(a=i.href,l=i.target,i=>{!e&&fe(a,l)&&(i?.preventDefault(),Ne(a)?n.goto(a):a&&t.push(a))})(r)}),i)})}we._impl=e=>e,we.setup=e=>{we._impl=e},ke._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),ke.setup=e=>{ke._impl=e};const Se={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},Te="bg-main-divider text-main-disabled",$e={primary:Te,secondary:Te,white:Te,link:"",transparent:"",gray:Te,"":""},_e="text-center font-sans select-none",Ie={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},Ae=p((e=>{const{text:t,aboveText:n,appendLeft:i,appendRight:r,version:a="primary"}=e;return u("div",{className:Re(e),children:[i?h("div",{className:Ie[a],children:i}):null,je(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:Ie[a],children:r}):null]})})),Re=e=>{const{version:t,aboveText:n,rounded:i}=e;if("link"===t)return"";const r="gap-2 "+(n?"py-2.5 px-7":"py-4 px-4");return["group/btn flex items-center justify-center",je(e)?r:"h-12 w-12",i?"rounded-full":""].join(" ")},je=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),Be=({className:e,rounded:t,version:n})=>["inline-block",_e,n?$e[n]:"",t?"rounded-full":"rounded-md",e].join(" "),De=({className:e,rounded:t,version:n})=>[_e,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border",n?Se[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Ve=p((({disabled:e,children:t,...n})=>{const i=Ce()(n),r=t??h(Ae,{...i});return h(e?Me:Le,{...i,children:r})})),Le=p((({className:e="",href:t,rel:n,target:i,ariaLabel:r,version:a,rounded:l,onClick:s,children:o})=>h("a",{className:De({className:e,version:a,rounded:l}),href:t,rel:n,target:i,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),Me=p((({className:e,ariaLabel:t,version:n,rounded:i,children:r})=>h("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:Be({className:e,rounded:i,version:n}),children:r}))),Oe=(e=!1)=>e?"text-white":"",Pe=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),ze=p((({icon:e,image:t,title:n,subtitle:i,isFillGradient:r})=>u("div",{role:"columnheader",children:[e?h(X,{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(X,{image:t})}),n?h(j,{headingType:"h4",className:Oe(r),title:n}):null,i?h("div",{className:Pe(r),children:i}):null]}))),Ee=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)),He=p((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:i,showRow:r,onToggleColumn:a})=>{const l=t?.slice(0,r?t.length:n),s=i?"secondary":"primary";return u("div",{className:`border border-gray rounded-md p-4 mb-3.5 ${i?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[h(ze,{...e,isFillGradient:i}),l?.length?l.map((({rowHeader:e,cell:t},n)=>h(Ee,{cell:t,rowHeader:e,isFillGradient:i},String(n)))):null,r&&e?.link?h(Ve,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,Ge({onToggleColumn:a,isFillGradient:i,showRow:r})]})})),Ge=({onToggleColumn:e,isFillGradient:t,showRow:n})=>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?"Скрыть":"Показать описание"})}),Je=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(j,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,h("div",{role:"table",children:h(Ue,{...e})})]})})),Ue=p((({columns:e=[],rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:r,orientation:l,...s})=>{const[o,c]=i(new Array(e.length).fill(!r)),d=a((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),m=a((()=>c((e=>new Array(e.length).fill(!1)))),[]),u=e?.map((({data:e,header:i},a)=>{return h(He,{visibleRowLength:r,showRow:o[a],header:i,columnData:(l=e,l?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===a&&n,onToggleColumn:()=>d(a),...s},String(a));var l}));return"horizontal"===l?h(be,{onVisibleIndicesChange:m,children:u}):u})),We=new Map;function Ye(e,t,{fallback:n}={}){const a=l((()=>Xe(e)),[e]),[s,o]=i(),[c,d]=i(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!a.every((e=>null===e)))try{const e=t(...a);"then"in e?(e=>{e.then((e=>We.get(a)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...a]);const u=a[0],p=n&&"string"==typeof u&&n[u];return{data:!s&&p?p:s,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function Xe(e){return e?Array.isArray(e)?e:e instanceof Function?Xe(e()):[e]:[e]}async function Ke(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function qe(e,t={}){const{data:n}=Ye(`/wcms-resources/${e}.json`,Ke,{fallback:t});return n||{}}const Qe=p((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:r}=(()=>{const[e,t]=i("");return{term:e,setTerm:e=>t(e)}})(),a=t?"text-s":"text-l-light",l=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return 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(X,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),n?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${a}`,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-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text ${l}`,value:n,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?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(X,{image:{icon:"CloseIcon"},width:"24",height:"24"})}):h(Ve,{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:"Найти"})})]})})),Ze=p((e=>h(Qe,{...e,isMobile:!0}))),et=p((({className:e="",documents:t,...n})=>h(A,{className:`mt-2.5 ${e}`,...n,children:h("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?tt(t):null})}))),tt=e=>e.map(((e,t)=>{const{text:n,...i}=e;return 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)}`)})),nt={"bg-white":"color",transparent:"white"},it={"bg-white":"text-primary-main",transparent:"text-white"},rt=(e,t,n)=>h(X,t?.src?{image:t,className:it[e],width:n?.width,height:n?.height,pathPrefix:"/wcms-resources/",asSVG:!0}:{image:{icon:t?.icon||"LogoIcon",iconVersion:nt[e]},className:it[e],width:n?.width,height:n?.height,asSVG:!0}),at={"bg-white":"text-primary-text",transparent:"text-white"},lt=(e,t,n)=>h("span",{className:`${at[t]} ml-2.5 font-medium ${n||""}`,children:e||"Россельхозбанк"}),st=p((({bgColor:e="bg-white",children:t,className:n="",href:i,logo:r,showTitle:a=!0,targetBlank:l})=>u("a",{className:`inline-flex items-center font-sans no-underline ${n}`,href:i||"https://rshb.ru/",target:l?"_blank":"_self","aria-label":r?.title||"Россельхозбанк",children:[rt(e,r?.image,{width:"34",height:"34"}),a?lt(t||r?.title,e,"text-s"):null]}))),ot=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-12 h-12",children:h(st,{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}))),ct=p((({className:e="",items:t,hasButton:n})=>u("div",{className:e,children:[t?.length?t.map(dt):null,n?h(Ve,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),dt=(e,t)=>{const{type:n,text:i,description:r}=e;return u("div",{className:"mb-4",children:[h("div",{children:mt(n,i)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},mt=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${ht(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})}},ht=e=>e.replaceAll(/\D/g,""),ut=p((({className:e="",index:t,text:n,...i})=>{const r=Ce(),{href:a,target:l,onClick:s}=r(i);return h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:l,onClick:s,children:n||`Документ ${t}`})})),pt=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(ut,{index:t,className:"text-s",...e},String(t))))}):null]}))),gt=[{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"},{origins:["youtube.com"],icon:{icon:"YoutubeIcon"},label:"Youtube"}],bt={default:"w-14 h-14",small:"w-12 h-12"},xt=p((({iconVersion:e="color",buttonSize:t="default",rounded:n=!1,...i})=>{const{href:r,version:a}=i,{icon:l,label:s}=gt.find((({origins:e})=>e.some((e=>r?.includes(e)))))||{},o=l?{...q(l),iconVersion:e}:null;return h(Ve,{className:b("group/media flex items-center justify-center box-border",bt[t],n?"rounded-full":"rounded-md","border border-solid hover:border-transparent","group-data-primary:border-main-divider","hover:bg-primary-main hover:text-black","group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover","group-data-gray:border-green",bt[t]),"aria-label":s,target:"_blank",rel:"noopener noreferrer",version:a,...i,children:o?h(X,{image:o,imageClassName:"group-hover/media:text-white",width:"24",height:"24",asSVG:!0}):null})})),ft=p((({className:e="",media:t})=>h("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e}`,children:t?.map(((e,t)=>h(xt,{...e},String(t))))}))),Nt=p((({className:e="",index:t,...n})=>{const i=Ce(),{href:r,target:a,text:l,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:a,onClick:s,children:l||`Документ ${t}`})})),yt=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(Nt,{index:t,...e},String(t))))}):null]}))),vt=p((({className:e="",...t})=>{const n=t.options?.page?.fallback,i=qe(c.SITEMAP||"sitemap",n),{documents:r,relatedEnterprises:a,contacts:l,socialMedia:s,horizontalNavigationTitle:o}=qe(c.FOOTER||"footer",n);return u("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[h(ct,{className:"overflow-hidden",items:l,hasButton:!0}),h(D,{children:i.topItems?.map(((e,t)=>h(Z,{label:e.text,children:h(et,{documents:e.items})},String(t))))}),h("div",{children:i?.dispositions?.map(wt)}),h(ot,{title:"Мобильное приложение",description:"Загрузить для IOS и Android",...t}),h(Ze,{className:"grow"}),h(ft,{className:"pb-4",media:s}),h(pt,{title:o,links:a}),h(yt,{links:r})]})})),wt=(e,t)=>{const{icon:n,href:i,text:r}=e;return u(Ve,{version:"link",href:i,className:"flex text-s mb-4 w-6",children:[n?h(X,{className:"pr-1",image:q(n),width:"24",height:"24",asSVG:!0}):null,h("span",{className:"pl-2.5 font-medium text-primary-text",children:r})]},`footer-${t}`)},kt=p((({className:e="",title:t,description:n,cards:i=[],orientation:r="horizontal",...a})=>u(A,{className:`relative px-4 py-6 overflow-hidden ${e}`,...a,children:[u("div",{className:"flex flex-col items-center mb-5",children:[t?h(j,{headingType:"h3",className:"text-center "+(n?"mb-2":"mb-5"),title:t}):null,n?h("div",{className:"text-m max-w-[600px] text-center mb-5",children:n}):null]}),Ct(r,i)]})));function Ct(e,t){return"horizontal"===e?h(be,{children:t?.map(St)}):h("div",{className:"grid gap-3.5",children:t?.map(St)})}function St(e,t){return u("div",{className:`w-full h-full flex flex-col justify-between shrink-0 box-border snap-start snap-always border-solid border rounded-md border-gray p-4\n ${I[e.version??"primary"]}`,children:[u("div",{children:[Tt(e.icon),e.title?h("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?$t(e):null,e.items?.length?It(e.items,e.isDotted,e.version):null]}),e?.button?.text?(n=e.button,h(Ve,{className:"mt-3",...n})):null]},t);var n}const Tt=e=>e?.src||e?.icon?h("div",{className:"flex justify-center",children:h(X,{className:"mb-3.5",image:e})}):null;function $t(e){return h("div",{className:"text-secondary-text mt-1 text-s "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const _t={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-primary-text",transparent:"","":""};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 ${_t[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=>({href:t})=>ye(xe(t)?e.href:e.pathname).startsWith(ye(t)),Rt=p((({className:e="",active:t,dataItemName:n,children:i,...r})=>{const a=Ce(),{href:l,target:s,text:o,onClick:c}=a(r);return u("a",{className:b("relative inline-block bg-transparent text-center no-underline",e),href:l,target:s,"data-item-name":n,onClick:c,children:[h("span",{className:jt(t),children:o||i}),t?h("div",{className:"absolute left-0 -bottom-3 w-full h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),jt=(e=!1)=>b("font-sans text-s",e?"text-primary-main":"text-secondary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),Bt=864e5;function Dt(e,t,n=globalThis?.localStorage){const i=a((async(...i)=>{const r=`async:${e}`,a=function(e){const{data:t=null,timestamp:n=null}=e?JSON.parse(e):{};return t&&Date.now()-n<Bt?t:void 0}(n.getItem(r));if(a)return a;const l=await t(...i);return n.setItem(r,JSON.stringify({data:l,timestamp:Date.now()})),l}),[e,t]);return Ye(e,i)}const Vt=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}},Lt=p((({burgerSubMenu:e,onClick:t,defaultLocation:n="",children:l})=>{const[s]=function(e){const t=Vt(),[n,l]=i(t?.region??{name:e}),{data:s}=Dt("/api/v1/region",Ke);return r((()=>{l(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[n,a((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),l(e)}),[l])]}(n);return 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(X,{image:{icon:"CloseIcon"},width:"24",height:"24",asSVG:!0})}),u("button",{className:"flex items-center text-s p-0 mb-4 bg-transparent cursor-pointer",children:[h(X,{image:{icon:"GeolocationIcon"},width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),h(K,{color:"text-secondary-text",children:s.name})]}),l,h("div",{className:"mb-7",children:e?.map(Mt)}),h(Ze,{className:"grow"})]})})),Mt=(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(X,{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}`)},Ot=p((({onClick:e,bgColor:t,logo:n})=>u("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-12",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(X,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),h(st,{className:"mr-8",bgColor:t,logo:n})]}),h("button",{className:"text-primary-main group-data-transparent:text-white group-data-transparent:hover:text-primary-hover text-s border-0 bg-transparent",children:"Войти"})]}))),Pt={"bg-white":"primary",transparent:"transparent"},zt=p((({bgColor:e="bg-white",version:t=Pt[e],...n})=>{const r=ke(),l=n.options?.page?.fallback,{topItems:s,dispositions:o,defaultLocation:d,logo:m}=qe(c.SITEMAP||"sitemap",l),p=s?.find((e=>t=>t.items?.some(At(e))||At(e)(t))(r)),g=p?.items,b=(e=>(t=[])=>{const n=t?.filter(At(e));return n?.length?me((e=>e.href?.length||0))(n):void 0})(r)(g),[x,f]=i(!1),N=a((()=>f((e=>!e))),[]);return u(A,{tag:"header",version:t,...n,children:[u("div",{className:"container px-4 py-0 box-border",children:[h(Ot,{onClick:N,bgColor:e,logo:m}),h("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-12",children:h("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:g?.map(((e,t)=>h(Rt,{className:"mr-8 whitespace-nowrap text-s",active:e===b,...e},String(t))))})})]}),x?h(Lt,{onClick:N,burgerSubMenu:o,defaultLocation:d,children:h(D,{children:s?.map(((e,t)=>h(Z,{label:e.text,children:h(et,{documents:e.items})},String(t))))})}):null]})})),Et={XXL:{wrapper:"gap-[18px]",title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5"},XL:{wrapper:"gap-4",title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl-light"},L:{wrapper:"gap-4",title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl-light"},M:{wrapper:"gap-3",title:{headingType:"h3",as:"h3"},descriptionSize:"text-xl-light"},S:{wrapper:"gap-2",title:{headingType:"h4",as:"h4"},descriptionSize:"text-xl-light"},XS:{wrapper:"gap-2",title:{headingType:"h5",as:"h5"},descriptionSize:"text-l-light"}},Ft=p((({className:e,title:t,description:n,headlineVersion:i="XL",align:r="text-center",as:a,version:l="",...s})=>{const o=Et[i];return u(A,{className:b("flex flex-col p-12",o.wrapper,e),version:l,...s,children:[t?h(j,{className:b("whitespace-pre-wrap",r),...o?.title,as:a||o?.title.as,title:t}):null,n?h(B,{color:"group-data-secondary:text-white/80",size:o.descriptionSize,align:r,children:n}):null]})})),Ht=p((({className:e,iconClassName:t,textClassName:n,suffixClassName:i,doc:r,icon:a})=>{const{text:l,fileSize:s,...o}=r;return u("a",{className:e,role:"link",...o,children:[a?h(X,{className:t,image:q(a),width:"24px",height:"24px",asSVG:!0}):null,l?u("span",{className:n,children:[l,h("span",{className:i,children:o?.href&&Gt(Jt(o.href),s)})]}):null]})})),Gt=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Jt=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Ut=p((({className:e="",doc:t,icon:n})=>h(Ht,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),Wt=p((({hasBorder:e=!0,documents:t,icon:n})=>h(be,{className:"text-s text-primary-main mt-5",children:t?.length?t.map(((t,i)=>h(Ut,{className:e?"rounded-md border-gray border border-solid p-4":"",doc:t,icon:n},String(i)))):null}))),Yt=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(Ut,{className:e?"rounded-md border-gray border border-solid p-4":"",doc:t,icon:n})},String(i)))):null}))),Xt=p((({className:e="",title:t,description:n,icon:i={icon:"DocIconMonoColor"},documents:r,orientation:a="vertical",hasBorder:l=!0,align:s,...o})=>u(A,{className:b("py-6 px-4 overflow-x-hidden",e),...o,children:[h(Ft,{className:"!p-0 "+(n?"gap-2":"gap-5"),title:t,description:n,align:s,headlineVersion:"M",as:"h2"}),h("vertical"===a?Yt:Wt,{hasBorder:l,documents:r,icon:i})]}))),Kt=e=>{const t="col-span-",n=e?.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function qt(e=""){const t=Kt(e);return t<=4?"S":t<=8?"M":"L"}function Qt(e=""){const t=Kt(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Zt(e=""){const t=Kt(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const en=p((({className:e,title:t,description:n="Блок в разработке...",...i})=>u(A,{className:b("p-9 box-border",e,Zt(e),Qt(e)),...i,children:[h(Ft,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:qt(e)}),h("figure",{className:"m-0 min-w-[80%]",children:tn()})]}))),tn=(e=3)=>rn(100,e).map((e=>Math.floor(e))).map(nn),nn=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),rn=(e,t)=>[e].concat(t>0?rn(e/1.618,t-1):[]),an=(e,{className:t="",buttonClassName:n,isVertical:i}={})=>e?.length&&e.some((e=>e?.text))?h("div",{className:b("flex",i?"flex-col gap-2":"gap-4",t),children:e.map(ln(n))}):null,ln=(e="")=>(t,n)=>{const{text:i,icon:r,iconRight:a,version:l,...s}=t||{},o="secondary"===l?"color":"white";return i?h(Ve,{className:e,appendLeft:sn({...r,iconVersion:o}),appendRight:sn({...a,iconVersion:o}),version:l,text:i,...s},n?String(n):""):null},sn=e=>e?.icon||e?.src?h(X,{image:e,width:String(e?.size?.width||24),height:String(24),asSVG:!0}):null,on={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"},cn=p((({className:e="",isDotted:t=!0,children:n,size:i="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 bg-primary-text group-data-secondary:bg-white ${on[i]}`})}):null,h("span",{children:n})]}))),dn={S:"text-l-light",M:"text-h6",L:"text-h5"},mn={S:"ml-2",M:"ml-3",L:"ml-4"},hn=p((({className:e="",hasIndent:t,isDotted:n,itemClassName:i="",items:r,listItemSize:a="M"})=>r?.length?h("section",{className:`text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text ${dn[a]} ${t?mn[a]:""} ${e}`,role:"list",children:r.map(((e,t)=>h(cn,{className:`${i} mb-1.5`,isDotted:n,size:a,children:e},String(t))))}):null)),un=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]})]}))),pn=p((e=>{const{className:t="",icon:n,label:i,description:r,version:a="primary",benefitsVersion:l="normal"}=e,s="white"===l?"secondary":"primary";return u("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[n?h("div",{className:gn(a,l),children:h(X,{className:"w-6 h-6",image:q(n,s),asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[i?h("div",{className:"text-h6 text-primary-text group-data-secondary:text-white",children:i}):null,r?h("div",{className:"text-m-light text-secondary-text group-data-secondary:text-white",children:r}):null]})]})}));function gn(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const bn=(e="primary",t="normal")=>({icon:n,label:i,description:r},a)=>h(pn,{icon:n,label:i,description:r,version:e,benefitsVersion:t},String(a)),xn=p((({className:e="",headlineVersion:t="L",benefits:n,benefitsVersion:i="normal",buttons:r,image:a,items:l,version:s="primary",isDotted:o=!0,label:c,title:d,description:m,...p})=>u(A,{className:`w-full ${e}`,version:s,...p,children:[u("div",{children:[c?Nn(c):null,h(Ft,{className:"!p-0 max-w-[600px]",title:d,description:m,headlineVersion:t,align:"text-left"}),u(un,{buttons:an(r,{className:"mt-5",isVertical:!0}),children:[n?.filter((e=>e.label))?.length?h("div",{className:"mt-3",children:n.map(bn(s,i))}):null,l?.length?h(hn,{className:"mt-3 text-m",items:l,isDotted:o}):null]})]}),fn(a)]})));function fn(e){return e?.src?h(X,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const Nn=e=>h("div",{className:"w-fit px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid border-secondary-hover",children:h(K,{color:"text-primary-main group-data-secondary:text-white/80",children:e})}),yn=p((e=>{const{className:t="",...n}=e;return h(A,{className:`px-4 py-6 ${t}`,...n,children:h(xn,{...e})})})),vn={primary:{description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"},gray:{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"},transparent:{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"},"":{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},wn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-12 w-12 min-w-12 min-h-12"},kn={normal:"min-h-[70px]",small:"min-h-12"},Cn=p((({className:e="",title:t,description:n,showLines:i=!0,steps:r,size:a="normal",version:l="primary",...s})=>{const o=vn[l];return u(A,{className:`box-border px-4 py-6 flex flex-col ${e}`,version:l,...s,children:[t?h(j,{headingType:"h3",className:"text-center",title:t}):null,n?h("p",{className:`text-m-light text-center ${o.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(Sn(a,l,i))})}):null]})})),Sn=(e,t,n)=>(i,r,a)=>{const l=a.length-1===r,s="normal"===e?"ml-[34px]":"ml-6",o=vn[t];return h("div",{children:u("div",{className:"flex flex-row text-center relative",children:[u("div",{className:"overflow-hidden flex-shrink-0",children:[Tn(e,t)(i,r),l?null:h("div",{className:`min-h-8 h-full w-0.5 ${n?o.iconConnector:""} ${s}`})]}),u("div",{className:`flex flex-col justify-center h-fit ${kn[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))},Tn=(e,t)=>(n,i)=>{const r="normal"===e?"38":"27",a="normal"===e?"text-m-title":"text-m-title-xs";return h("div",{className:`${wn[e]} ${vn[t].iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:h("span",{className:`font-medium flex self-center ${a}`,children:(l=n?.icon,Boolean(l?.icon||l?.src)?h(X,{image:q({...n.icon},t),width:r,height:r,asSVG:!0}):h("span",{children:i+1}))})});var l},$n={Buttons:({buttons:e})=>an(e,{className:"mt-3",buttonClassName:"w-12 h-12"}),Img:({image:e})=>e?.src?h(X,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>h(hn,{className:"flex flex-col justify-between items-start text-m",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]})},_n=p((({title:e,icon:t})=>u("div",{className:"flex gap-2.5 mb-2",children:[e?h(j,{headingType:"h3",className:"font-medium",title:e}):null,t?h(X,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),In=p((({tile:e,...t})=>u("div",{className:"rounded-md border-gray h-full box-border border p-4",children:[h(_n,{...e?.header}),e?.data?.length?e.data.map(((e,n)=>u("div",{children:[n>0?h("div",{className:"h-5"}):null,An(e,t)]},String(n)))):null]})));function An(e,t){if(!e||!e.tableCellType||!(e.tableCellType in $n))return null;const n=$n[e.tableCellType];return h(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const Rn=p((({tiles:e,...t})=>e?.length?h(be,{...t,children:e.map(((e,n)=>h(In,{tile:e,...t},String(n))))}):null)),jn=p((({tiles:e,...t})=>e?.length?h("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>h(In,{tile:e,...t},String(n))))}):null)),Bn=p((({className:e,title:t,description:n,tariffsColumns:i,rowHeaders:r,orientation:a="vertical",...l})=>{const s=Dn(i),o=Vn(r,s);return u("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[t?h(j,{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"===a?jn:Rn,{tiles:o,...l})]})})),Dn=e=>e?.[0]?.data?e[0].data:[],Vn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Ln={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"}},Mn=p((({title:e,description:t,blockVersion:n="primary",iconVersion:i,image:r,className:a="",items:l,isDotted:s=!0})=>{const o=Ln[n];return u("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${a}`,children:["small"===i?On(o.icon):null,"big"===i?Pn(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,l?.length?h(hn,{className:"mt-1 text-m",items:l,isDotted:s}):null]})]})}));function On(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 Pn(e){return e?.src?h(X,{className:"pb-3 mr-auto",image:e}):null}const zn={Accordion:V,AccordionItem:Z,ComparisonTable:Je,Footer:vt,Gallery:kt,Header:zt,Headline:Ft,LinkDocs:Xt,LinkList:et,MobileAppTile:ot,ProductBlock:yn,StepsBlock:Cn,TariffsTable:Bn,TextBlock:Mn,Placeholder:en},En=["Header","Footer"],Fn=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function Hn(e=_.inst,t=globalThis){const n=s(new Map);r((()=>e.eventBus.subscribe("intersection",(({block:e,intersection:t})=>{n.current&&n.current.set(e,t)}))),[e]),r((()=>{const i=((e,t=600)=>{let n;const i=(...r)=>{i.dispose(),n=setTimeout((()=>{e(...r)}),t)};return i.dispose=()=>{n&&clearTimeout(n)},i})((()=>{if(!(globalThis.scrollY>3*globalThis.innerHeight/4))return void e.reset();const t=function(e){const t=e.filter((([e])=>!En.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[n]=t.length>0?he(Fn)(t):[];return n}([...n.current||[]]);t?.anchor?e.replace(t.anchor):t||e.reset()}),100);return t.addEventListener("scroll",i),()=>{i.dispose(),t.removeEventListener("scroll",i)}}),[e,t])}const Gn=m();const Jn=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:Un()}))),Un=()=>{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"})]})},Wn=p((({className:e=""})=>{const t=function(e){const[t,n]=i(0);return r((()=>{(async()=>{const[t]=await Gn.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:a((async()=>{n(await Gn.like(e))}),[e]),dislike:a((async()=>{n(await Gn.dislike(e))}),[e])}}(ke().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(Jn,{onClick:we(t.like),ariaLabel:"Поставить отметку «лайк»"}),h(Jn,{onClick:we(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:t.likeCount})]})})),Yn=p((e=>{const{className:t="",blocksRegistry:n,blockDecorator:i,data:r={}}=e,{style:a,blocks:l,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:n,blockDecorator:i,parent:r};return Hn(),u("section",{className:b("relative",a,t),"data-theme":c,children:[s?.header?h("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:v(s?.header,{...d,slotName:"header"})}):null,u("div",{className:"container grid grid-cols-12 gap-1",children:[v(l,d),s?.footer?v(s?.footer,{...d,slotName:"footer"}):null]}),o?h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(Wn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));Yn.childrenTypes=[],Yn.slots=()=>["header","footer"];e.Blocks=zn,e.ContentPage=Yn,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=m,e.handlerDecorator=we,e.joinList=function(e){return t=>t.reduce(((t,n,i)=>t.length?t.concat({...e,key:i},n):[n]),[])},e.packageVersion="0.8.3",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=ve,e.useRouter=ke,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -7,8 +7,13 @@ export interface CarouselContent {
7
7
  * @enumNames ["auto", "1", "2", "3"]
8
8
  */
9
9
  visibleItemCount?: 0 | 1 | 2 | 3 | 4;
10
- /** @title Добавление блюра */
10
+ /** @title Добавление блюра на стрелках*/
11
11
  isBlur?: boolean;
12
+ /**
13
+ * @title Добавление отступа на стрелках
14
+ * @default true
15
+ * */
16
+ arrowsPadded?: boolean;
12
17
  /** @title Цикличность */
13
18
  isCyclic?: boolean;
14
19
  /** @title Внутренний отступ */