@redneckz/wildless-cms-uni-blocks 0.6.50 → 0.7.1

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 (188) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +71 -19
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  5. package/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +1 -1
  6. package/bundle/components/LinkDocs/LinkDocsContent.d.ts +4 -0
  7. package/bundle/components/SwipeListControlBlock/SwipeListControlBlock.d.ts +6 -0
  8. package/bundle/components/SwipeListControlBlock/SwipeListControlBlockContent.d.ts +5 -0
  9. package/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +2 -1
  10. package/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +2 -0
  11. package/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +7 -0
  12. package/bundle/utils/style.d.ts +1 -0
  13. package/dist/components/Blocks.js +2 -0
  14. package/dist/components/Blocks.js.map +1 -1
  15. package/dist/components/CarouselCard/CarouselCard.js +2 -2
  16. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  17. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
  18. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  19. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  20. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +12 -9
  21. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  22. package/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +1 -1
  23. package/dist/components/LinkDocs/LinkDocsContent.d.ts +4 -0
  24. package/dist/components/SwipeListControlBlock/SwipeListControlBlock.d.ts +6 -0
  25. package/dist/components/SwipeListControlBlock/SwipeListControlBlock.js +14 -0
  26. package/dist/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -0
  27. package/dist/components/SwipeListControlBlock/SwipeListControlBlockContent.d.ts +5 -0
  28. package/dist/components/SwipeListControlBlock/SwipeListControlBlockContent.js +2 -0
  29. package/dist/components/SwipeListControlBlock/SwipeListControlBlockContent.js.map +1 -0
  30. package/dist/ui-kit/BlockWrapper.js +1 -1
  31. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  32. package/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +2 -1
  33. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js +8 -5
  34. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  35. package/dist/ui-kit/SwipeListControl/SwipeListControl.js +3 -2
  36. package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  37. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +2 -0
  38. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +12 -3
  39. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  40. package/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +7 -0
  41. package/dist/utils/style.d.ts +1 -0
  42. package/dist/utils/style.js +5 -0
  43. package/dist/utils/style.js.map +1 -0
  44. package/lib/common.css +1 -1
  45. package/lib/components/Blocks.js +2 -0
  46. package/lib/components/Blocks.js.map +1 -1
  47. package/lib/components/CarouselCard/CarouselCard.js +2 -2
  48. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  49. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
  50. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  51. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  52. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +12 -9
  53. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  54. package/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +1 -1
  55. package/lib/components/LinkDocs/LinkDocsContent.d.ts +4 -0
  56. package/lib/components/SwipeListControlBlock/SwipeListControlBlock.d.ts +6 -0
  57. package/lib/components/SwipeListControlBlock/SwipeListControlBlock.fixture.d.ts +5 -0
  58. package/lib/components/SwipeListControlBlock/SwipeListControlBlock.js +12 -0
  59. package/lib/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -0
  60. package/lib/components/SwipeListControlBlock/SwipeListControlBlockContent.d.ts +5 -0
  61. package/lib/components/SwipeListControlBlock/SwipeListControlBlockContent.js +2 -0
  62. package/lib/components/SwipeListControlBlock/SwipeListControlBlockContent.js.map +1 -0
  63. package/lib/ui-kit/BlockWrapper.js +1 -1
  64. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  65. package/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +2 -1
  66. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js +8 -5
  67. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  68. package/lib/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.d.ts +1 -0
  69. package/lib/ui-kit/SwipeListControl/SwipeListControl.js +3 -2
  70. package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  71. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +2 -0
  72. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +12 -3
  73. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  74. package/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +7 -0
  75. package/lib/utils/style.d.ts +1 -0
  76. package/lib/utils/style.js +2 -0
  77. package/lib/utils/style.js.map +1 -0
  78. package/mobile/bundle/bundle.umd.js +25 -12
  79. package/mobile/bundle/bundle.umd.min.js +1 -1
  80. package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  81. package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +1 -1
  82. package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +4 -0
  83. package/mobile/bundle/components/SwipeListControlBlock/SwipeListControlBlock.d.ts +6 -0
  84. package/mobile/bundle/components/SwipeListControlBlock/SwipeListControlBlockContent.d.ts +5 -0
  85. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +2 -1
  86. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +2 -0
  87. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +7 -0
  88. package/mobile/bundle/utils/style.d.ts +1 -0
  89. package/mobile/dist/components/CarouselCard/CarouselCard.js +2 -2
  90. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  91. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
  92. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  93. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  94. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +12 -9
  95. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  96. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +1 -1
  97. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +4 -0
  98. package/mobile/dist/components/SwipeListControlBlock/SwipeListControlBlock.d.ts +6 -0
  99. package/mobile/dist/components/SwipeListControlBlock/SwipeListControlBlock.js +14 -0
  100. package/mobile/dist/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -0
  101. package/mobile/dist/components/SwipeListControlBlock/SwipeListControlBlockContent.d.ts +5 -0
  102. package/mobile/dist/components/SwipeListControlBlock/SwipeListControlBlockContent.js +2 -0
  103. package/mobile/dist/components/SwipeListControlBlock/SwipeListControlBlockContent.js.map +1 -0
  104. package/mobile/dist/ui-kit/BlockWrapper.js +1 -1
  105. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  106. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +2 -1
  107. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js +8 -5
  108. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  109. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +3 -2
  110. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  111. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +2 -0
  112. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +12 -3
  113. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  114. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +7 -0
  115. package/mobile/dist/utils/style.d.ts +1 -0
  116. package/mobile/dist/utils/style.js +5 -0
  117. package/mobile/dist/utils/style.js.map +1 -0
  118. package/mobile/lib/components/CarouselCard/CarouselCard.js +2 -2
  119. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  120. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
  121. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  122. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  123. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +12 -9
  124. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  125. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +1 -1
  126. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +4 -0
  127. package/mobile/lib/components/SwipeListControlBlock/SwipeListControlBlock.d.ts +6 -0
  128. package/mobile/lib/components/SwipeListControlBlock/SwipeListControlBlock.js +12 -0
  129. package/mobile/lib/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -0
  130. package/mobile/lib/components/SwipeListControlBlock/SwipeListControlBlockContent.d.ts +5 -0
  131. package/mobile/lib/components/SwipeListControlBlock/SwipeListControlBlockContent.js +2 -0
  132. package/mobile/lib/components/SwipeListControlBlock/SwipeListControlBlockContent.js.map +1 -0
  133. package/mobile/lib/ui-kit/BlockWrapper.js +1 -1
  134. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  135. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +2 -1
  136. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js +8 -5
  137. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  138. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +3 -2
  139. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  140. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +2 -0
  141. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +12 -3
  142. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  143. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +7 -0
  144. package/mobile/lib/utils/style.d.ts +1 -0
  145. package/mobile/lib/utils/style.js +2 -0
  146. package/mobile/lib/utils/style.js.map +1 -0
  147. package/mobile/src/common.css +11 -0
  148. package/mobile/src/components/Carousel/Carousel.ui.json +8 -0
  149. package/mobile/src/components/CarouselCard/CarouselCard.tsx +11 -5
  150. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -1
  151. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +11 -3
  152. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +29 -17
  153. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +1 -1
  154. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +4 -0
  155. package/mobile/src/components/SwipeListControlBlock/SwipeListControlBlock.example.json +18 -0
  156. package/mobile/src/components/SwipeListControlBlock/SwipeListControlBlock.tsx +23 -0
  157. package/mobile/src/components/SwipeListControlBlock/SwipeListControlBlock.ui.json +1 -0
  158. package/mobile/src/components/SwipeListControlBlock/SwipeListControlBlockContent.ts +6 -0
  159. package/mobile/src/ui-kit/BlockWrapper.tsx +1 -1
  160. package/mobile/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +19 -10
  161. package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +6 -2
  162. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +20 -4
  163. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +8 -0
  164. package/mobile/src/utils/style.ts +2 -0
  165. package/package.json +2 -2
  166. package/src/common.css +11 -0
  167. package/src/components/Blocks.ts +2 -0
  168. package/src/components/Carousel/Carousel.ui.json +8 -0
  169. package/src/components/CarouselCard/CarouselCard.tsx +11 -5
  170. package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -1
  171. package/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +11 -3
  172. package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +3 -3
  173. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +29 -17
  174. package/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +1 -1
  175. package/src/components/LinkDocs/LinkDocsContent.ts +4 -0
  176. package/src/components/SwipeListControlBlock/SwipeListControlBlock.example.json +18 -0
  177. package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.tsx +27 -0
  178. package/src/components/SwipeListControlBlock/SwipeListControlBlock.tsx +23 -0
  179. package/src/components/SwipeListControlBlock/SwipeListControlBlock.ui.json +1 -0
  180. package/src/components/SwipeListControlBlock/SwipeListControlBlockContent.ts +6 -0
  181. package/src/icons/IconName.ts +333 -6
  182. package/src/ui-kit/BlockWrapper.tsx +1 -1
  183. package/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +19 -10
  184. package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +6 -1
  185. package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +6 -2
  186. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +20 -4
  187. package/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +8 -0
  188. package/src/utils/style.ts +2 -0
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @title Вид
3
+ * @enumNames ["Горизонтальный", "Вертикальный"]
4
+ */
5
+ export declare type SwipeListControlType = 'horizontal-list' | 'vertical-list';
1
6
  /**
2
7
  * @title Контейнер
3
8
  */
@@ -14,5 +19,7 @@ export interface SwipeListControlProps extends SwipeContainerProps {
14
19
  className?: string;
15
20
  /** @title Точки-индикаторы */
16
21
  showDots?: boolean;
22
+ /** @hidden */
17
23
  onVisibleIndicesChange?: (indices: number[]) => void;
24
+ listType?: SwipeListControlType;
18
25
  }
@@ -0,0 +1 @@
1
+ export declare const style: (...atoms: (string | null | undefined)[]) => string;
@@ -0,0 +1,2 @@
1
+ export const style = (...atoms) => atoms.filter(Boolean).join(' ');
2
+ //# sourceMappingURL=style.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.js","sourceRoot":"","sources":["../../src/utils/style.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,GAAG,KAAoC,EAAU,EAAE,CACvE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}
@@ -387,7 +387,7 @@
387
387
  return ref;
388
388
  }
389
389
 
390
- const BlockWrapper = JSX(({ className, block, tag = 'section', role, children }) => {
390
+ const BlockWrapper = JSX(({ className = '', block, tag = 'section', role, children }) => {
391
391
  const Tag = tag;
392
392
  const ref = useBlockIntersectionObserver(block);
393
393
  const [isVisible, setVisible] = useState(true);
@@ -538,6 +538,8 @@
538
538
  AccordionItem.childrenTypes = [];
539
539
  const FoldButton = JSX(({ className, icon, label, primaryIcon, onClick }) => (jsxs("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${className}`, onClick: onClick, children: [jsxs("div", { className: "flex group-hover:text-primary-main", children: [primaryIcon ? (jsx(Img, { image: getIconWithVersion(primaryIcon), className: "mr-3 flex-shrink-0", width: "24", height: "24", asSVG: true })) : null, jsx(Text, { size: "text-m-title-xs", font: "font-medium", children: label })] }), jsx(Img, { className: "flex-shrink-0", image: getIconWithVersion({ icon: icon }), width: "24", height: "24", asSVG: true })] })));
540
540
 
541
+ const style = (...atoms) => atoms.filter(Boolean).join(' ');
542
+
541
543
  const mapChildren = (mapper) => (children) => {
542
544
  if (children === null || children === undefined) {
543
545
  return children;
@@ -556,7 +558,7 @@
556
558
  });
557
559
 
558
560
  const childStyleMap = ['min-w-[100%]', 'min-w-[50%]', 'min-w-[33.33%]', 'min-w-[25%]'];
559
- const SwipeListContainer = JSX(({ className = '', containerRef, activeIndex, visibleItemCount = 0, gap = 0, padding = 0, snapAlign = 'snap-center', children, onVisibleItemsChange, onVisibleIndicesChange, }) => {
561
+ const SwipeListContainer = JSX(({ className = '', containerRef, activeIndex, visibleItemCount = 0, gap = 0, padding = 0, listType = 'horizontal-list', snapAlign = 'snap-center', children, onVisibleItemsChange, onVisibleIndicesChange, }) => {
560
562
  const observerOptions = {
561
563
  sensitivity: 1,
562
564
  rootRef: containerRef,
@@ -570,10 +572,12 @@
570
572
  onVisibleIndicesChange && onVisibleIndicesChange(getVisibleIndices(itemsVisibilityList));
571
573
  }, [onVisibleItemsChange, onVisibleIndicesChange]);
572
574
  const additionPadding = visibleItemCount > 0 ? gap * Number(visibleItemCount) - 1 : 0;
573
- return (jsx("div", { className: `box-border overflow-auto flex horizontal-list no-scrollbar ${className}`, style: {
574
- ...getContainerStyle(padding, additionPadding),
575
- gap: `${gap}px`,
576
- }, role: "list", ref: containerRef, children: mapChildren((child, idx) => (jsx(SwipeListItem, { className: `${snapAlign} ${visibleItemCount ? childStyleMap[visibleItemCount - 1] : ''}`, style: getContainerStyle(padding / 4), activeIndex: activeIndex, idx: idx, observerOptions: observerOptions, onIntersection: handleIntersection, children: child }, String(idx))))(children) }));
575
+ const isHorizontalList = listType === 'horizontal-list';
576
+ const containerStyle = {
577
+ ...(isHorizontalList ? getContainerStyle(padding, additionPadding) : {}),
578
+ gap: `${gap}px`,
579
+ };
580
+ return (jsx("div", { className: style('box-border overflow-auto no-scrollbar', listType, className), style: containerStyle, role: "list", ref: containerRef, children: mapChildren((child, idx) => (jsx(SwipeListItem, { className: style(snapAlign, visibleItemCount ? childStyleMap[visibleItemCount - 1] : '', listType === 'vertical-list' ? 'h-full' : ''), style: isHorizontalList ? getContainerStyle(padding / 4) : {}, activeIndex: activeIndex, idx: idx, observerOptions: observerOptions, onIntersection: handleIntersection, children: child }, String(idx))))(children) }));
577
581
  });
578
582
  // Styles used to compensate outer container padding to get rid of clipping effect
579
583
  const getContainerStyle = (padding, additionalPadding = 0) => ({
@@ -587,8 +591,17 @@
587
591
  .filter(([_]) => _ && _.intersectionRatio >= 0.9)
588
592
  .map(([, i]) => i);
589
593
 
590
- const dotStyle = 'cursor-pointer bg-primary-main h-2 rounded-full transition-width duration-300';
591
- const SwipeListControlDots = JSX(({ containerRef, activeIndex, dotCount = 0 }) => {
594
+ const containerStyles = {
595
+ 'horizontal-list': 'mx-auto mt-5 w-fit',
596
+ 'vertical-list': 'absolute flex-col justify-center h-full top-0 left-4',
597
+ };
598
+ const activeDotStyles = {
599
+ 'horizontal-list': 'w-6',
600
+ 'vertical-list': 'h-6',
601
+ };
602
+ const dotStyle = 'cursor-pointer bg-primary-main rounded-full transition-width duration-300';
603
+ const inactiveDotStyle = 'w-2 h-2 opacity-30';
604
+ const SwipeListControlDots = JSX(({ containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list' }) => {
592
605
  const handleClick = (idx) => {
593
606
  if (idx !== activeIndex && containerRef?.current) {
594
607
  containerRef.current.children[idx]?.scrollIntoView({
@@ -597,7 +610,7 @@
597
610
  });
598
611
  }
599
612
  };
600
- return dotCount ? (jsx("div", { className: "flex gap-2 mx-auto mt-5 w-fit", children: new Array(dotCount).fill(null).map((_, idx) => (jsx("div", { className: `${dotStyle} ${idx === activeIndex ? 'w-6' : 'w-2 opacity-30'}`, role: "button", "aria-hidden": true, onClick: () => handleClick(idx) }, String(idx)))) })) : null;
613
+ return dotCount ? (jsx("div", { className: `flex gap-2 ${containerStyles[listType]}`, children: new Array(dotCount).fill(null).map((_, idx) => (jsx("div", { className: `${dotStyle} ${idx === activeIndex ? activeDotStyles[listType] : inactiveDotStyle}`, role: "button", "aria-hidden": true, onClick: () => handleClick(idx) }, String(idx)))) })) : null;
601
614
  });
602
615
 
603
616
  const areArraysEqual = (as, bs) => as === bs || Boolean(as && bs && as?.length === bs?.length && as.every((_, i) => _ === bs[i]));
@@ -674,14 +687,14 @@
674
687
  and get rid of a clipping effect caused by overflow: hidden.
675
688
  */
676
689
  const DEFAULT_PADDING = 16;
677
- const SwipeListControl = JSX(({ className, gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots = true, children, onVisibleIndicesChange, }) => {
690
+ const SwipeListControl = JSX(({ className = '', gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots = true, children, onVisibleIndicesChange, listType = 'horizontal-list', }) => {
678
691
  const itemCount = Array.isArray(children) ? children.length : 0;
679
692
  const [containerRef, scroll] = useSwipeListScroll({
680
693
  itemCount,
681
694
  onVisibleIndicesChange,
682
695
  });
683
696
  const [activeIndex] = scroll.visibleIndicesRange;
684
- return (jsxs("div", { className: className, children: [jsx(SwipeListContainer, { containerRef: containerRef, activeIndex: activeIndex, visibleItemCount: 1, gap: gap, padding: padding, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: children }), showDots ? (jsx(SwipeListControlDots, { containerRef: containerRef, activeIndex: activeIndex, dotCount: itemCount })) : null] }));
697
+ return (jsxs("div", { className: style(className, listType === 'vertical-list' ? 'relative h-full' : ''), children: [jsx(SwipeListContainer, { containerRef: containerRef, activeIndex: activeIndex, visibleItemCount: 1, gap: gap, padding: padding, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, listType: listType, children: children }), showDots ? (jsx(SwipeListControlDots, { containerRef: containerRef, activeIndex: activeIndex, dotCount: itemCount, listType: listType })) : null] }));
685
698
  });
686
699
 
687
700
  function useBlockRouter() {
@@ -1758,7 +1771,7 @@
1758
1771
  return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
1759
1772
  }
1760
1773
 
1761
- const packageVersion = "0.6.50";
1774
+ const packageVersion = "0.7.1";
1762
1775
 
1763
1776
  exports.Blocks = Blocks;
1764
1777
  exports.ContentPage = ContentPage;
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),i=n("useState"),r=n("useEffect"),l=n("useCallback"),a=n("useMemo"),s=n("useRef");const o=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CDN(){return this._.CDN}get 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}},c="likesToken";function d(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(c)||"");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(c,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/${o.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/${o.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/${o.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 m=(...e)=>globalThis._uni._jsx(...e),h=(...e)=>globalThis._uni._jsxs(...e),u=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:p(e)),t._tmpl},p=e=>{function t(t,n){const{children:i,...r}=t||{},l=n?.slots?.default,a=i||l&&l();return e(Object.assign(r,a&&{children:a}),n)}return t.inheritAttrs=!1,t};function g(e){return e?e.filter(Boolean).join(" "):""}const b=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),x=[],f=["col-span-12"];function N(e,t){const{key:n,blockDecorator:i=b,blocksRegistry:r={},ancestors:l=x,className:a=""}=t,{type:s}=e;s&&s in r||console.warn(`No block with "${s}" is registered`);const o=s&&r[s];return i({blockClassName:`scroll-mt-12 ${a} ${g(e.style||f)}`,block:e,ancestors:l,render:({block:i,blockClassName:r})=>{const{content:l}=i;return o?m(o,{className:r,block:e,options:t,...l},n):null}},n)}const y=[],v=(e,{key:t,ancestors:n=y,slotName:i=null,renderChild:r=N,...l})=>(e||[]).map(((e,a)=>r(e,{...l,key:`${t||e.type}-${a}`,ancestors:l.parent?[...n||y,[l.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 $(e,{sensitivity:t,rootRef:n}={}){const i=s(null),l=a((()=>({threshold:C(t),root:n?.current})),[t,n?.current]);return r((()=>{if(!i.current)return;const t=new IntersectionObserver(e,l);return t.observe(i.current),()=>{t.disconnect()}}),[e,l]),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 S=e=>e?.replace("#",""),T=e=>`${globalThis.location?.pathname}#${S(e)}`;class _{static inst=new _;eventBus=new k;constructor(){const e=S(globalThis.location?.hash);e&&this.eventBus.subject("goto",{anchor:e})}goto(e){const t=S(e);t&&(this.push(t),this.eventBus.fire("goto",{anchor:t}))}push(e){globalThis.history?.pushState(null,"",T(e))}replace(e){globalThis.history?.replaceState(null,"",T(e))}reset(){globalThis.history?.replaceState(null,"",T())}}const I=u((({className:e,block:t,tag:n="section",role:a,children:s})=>{const o=n,c=function(e,t=_.inst){const n=$(l((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}(t),[d,h]=i(!0);return r((()=>k.inst.subscribe("tab",(e=>{if("group"===e.type){const n=t?.labels?.length||t?.anchor;h(!e.label||(!n||Boolean(t?.labels?.includes(e.label))))}else h(!0)}))),[t]),d?m(o,{className:e,role:a,...t?.anchor?{id:t.anchor,ref:c}:{},children:s}):null})),A={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},R=u((e=>{const{className:t,headingType:n="h3",title:i,as:r="h3"}=e;return m(r,{className:`font-sans font-medium m-0 ${A[n]} ${t||""}`,children:i})})),j=u((({size:e,color:t,align:n,font:i,children:r})=>m("p",{className:["font-sans",e,t,n,i].filter(Boolean).join(" "),children:r}))),D=u((({children:e})=>m("ul",{className:"list-none m-0 p-0",children:e}))),B=u((({title:e,description:t,className:n="",...i})=>h(I,{className:`py-6 px-4 bg-white text-primary-text ${n}`,...i,children:[e?m(R,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?m("div",{className:"mb-5",children:m(j,{size:"text-m",font:"font-light",align:"text-center",children:t})}):null,m(D,{children:w(i)})]})));B.childrenTypes=["AccordionItem"];const O=u((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:n,renderFoldButton:r})=>{const[a,s]=i(t),o=l((()=>{s((e=>!e))}),[]),c=n({isUnfolded:a,onToggle:o}),d=r?r({isUnfolded:a,onToggle:o}):null;return h("div",e?{children:[d,c]}:{children:[c,d]})})),V=u((({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]),m("div",{ref:i,className:`transition-max-h duration-300 overflow-hidden ${i.current||!t?"max-h-0":""} ${e}`,children:n})})),M={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},P=u((({className:e="",imageClassName:t="",name:n="",alt:i=`Иконка ${n}`,title:r=i,iconVersion:l="color",asSVG:a,...s})=>{const c=`${o.CDN||""}icons/${n}.svg`;return a&&"normal"!==l?m(F,{className:e,children:h("svg",{className:[E(e,s.width),M[l],t,L(l)].join(" "),...s,"aria-hidden":"true",children:[r?m("title",{children:r}):null,i?m("desc",{children:i}):null,m("use",{href:`${c}#icon`,xlinkHref:`${c}#icon`})]})}):m("img",{className:e,src:c,alt:i,title:r,...s,"aria-hidden":"true"})})),L=e=>"white"===e?"invert":"",E=(e,t)=>t?`width: ${t}px `:"w-full h-full",F=u((({className:e,children:t})=>e?m("div",{className:e,children:t}):t)),H=(e,t)=>e.media&&t.media?e.media-t.media:0,z=u((({className:e="",image:t,imageClassName:n="",isMobile:i=!1,pathPrefix:r})=>{if(!t||!t?.sources&&!t?.src)return null;return h("picture",{className:`${i?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(H).map((({src:e,format:n,media:i},l)=>m("source",{srcSet:W(e,r),type:U(n),media:i?`(max-width: ${i}px)`:"",...t.size},`${l}_${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||"",l=e.alt||e.title,a=n?"m-auto":"m-0";return m("img",{src:e.src,className:`${a} ${t}`,alt:l,title:r,style:i,...e.size})},J=(e,t)=>!e||e?.startsWith("data:image")?e:`${((e="")=>e&&!e.endsWith("/")?`${e}/`:e)(t)}${e}`,W=(e,t)=>e?.split(",").map((e=>J(e.trim(),t))).join(", ");function U(e){return e?`image/${String(e)}`:void 0}const Y=u((({className:e="",image:t,imageClassName:n="",isMobile:i,pathPrefix:r,...l})=>t?.src||t?.icon?t.icon?m(P,{className:e,imageClassName:n,iconVersion:t?.iconVersion||"normal",name:t.icon,...l}):m(z,{className:e,imageClassName:n,image:t,isMobile:i,pathPrefix:r}):null)),K=u((e=>m(Y,{...e,isMobile:!0}))),X=u((({size:e,color:t,align:n,font:i,children:r})=>m("span",{className:["font-sans",e,t,n,i].filter(Boolean).join(" "),children:r}))),q=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),Q=["PlusIcon","MinusIcon"],Z=u((({className:e="",label:t="",labelIcon:n,isExpanded:i,...r})=>{const{bordered:l}=function(e,t){const{content:n}=function(e){return e?.parent||{}}(e);return n||t}(r.options,{});return m("li",{className:`${l?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"} border-solid border-main-divider ${e}`,children:m(O,{isFoldButtonOnTop:!0,unfoldedByDefault:i,renderFoldableSection:({isUnfolded:e})=>m(V,{className:"flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0",isUnfolded:e,children:w(r)}),renderFoldButton:({isUnfolded:e,onToggle:i})=>m(ee,{className:l?"":"py-3.5 px-0",label:t,icon:Q[Number(e)],primaryIcon:n,onClick:i})})})}));Z.childrenTypes=[];const ee=u((({className:e,icon:t,label:n,primaryIcon:i,onClick:r})=>h("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:[h("div",{className:"flex group-hover:text-primary-main",children:[i?m(K,{image:q(i),className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,m(X,{size:"text-m-title-xs",font:"font-medium",children:n})]}),m(K,{className:"flex-shrink-0",image:q({icon:t}),width:"24",height:"24",asSVG:!0})]}))),te=u((({className:e="",style:t,idx:n,activeIndex:i,observerOptions:r,children:a,onIntersection:s})=>{const o=$(l((e=>{e.length&&s&&s(n||0,e[e.length-1])}),[s,n]),r);return m("div",{className:`inline-block snap-always box-border ${e}`,style:t,role:"listitem","aria-current":Boolean(n===i),ref:o,children:a})})),ne=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],ie=u((({className:e="",containerRef:t,activeIndex:n,visibleItemCount:i=0,gap:r=0,padding:a=0,snapAlign:o="snap-center",children:c,onVisibleItemsChange:d,onVisibleIndicesChange:h})=>{const u={sensitivity:1,rootRef:t},p=s([]),g=l(((e,t)=>{const n=[...p.current||[]];n[e]=t,p.current=n,d&&d(n),h&&h(le(n))}),[d,h]),b=i>0?r*Number(i)-1:0;return m("div",{className:`box-border overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...re(a,b),gap:`${r}px`},role:"list",ref:t,children:(x=(e,t)=>m(te,{className:`${o} ${i?ne[i-1]:""}`,style:re(a/4),activeIndex:n,idx:t,observerOptions:u,onIntersection:g,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(x):x(e,0))(c)});var x})),re=(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)),ae=u((({containerRef:e,activeIndex:t,dotCount:n=0})=>n?m("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:new Array(n).fill(null).map(((n,i)=>m("div",{className:"cursor-pointer bg-primary-main h-2 rounded-full transition-width duration-300 "+(i===t?"w-6":"w-2 opacity-30"),role:"button","aria-hidden":!0,onClick:()=>(n=>{n!==t&&e?.current&&e.current.children[n]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(i)},String(i))))}):null)),se=e=>e,oe=(e=se)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),ce=(e=se)=>oe((t=>-e(t))),de=e=>t=>e.scrollWidth/t,me=e=>(t,n)=>{e.scrollBy({left:n*de(e)(t),behavior:"smooth"})},he=({itemCount:e,isCyclic:t,onVisibleIndicesChange:n})=>{const r=s(null),[a,o]=i([]),c=l((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]=a.length?[ce()(a),oe()(a)]:[-1,-1],h=d>0,u=m<e-1,p=l((()=>{var n;r.current&&(t&&!h?(n=r.current).scrollTo({left:n.scrollWidth,behavior:"smooth"}):me(r.current)(e,-1))}),[t,e,h]),g=l((()=>{r.current&&(t&&!u?r.current.scrollTo({left:0,behavior:"smooth"}):me(r.current)(e,1))}),[e,t,u]);return[r,{scrollLeft:p,scrollRight:g,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},ue=u((({className:e,gap:t=14,padding:n=16,showDots:i=!0,children:r,onVisibleIndicesChange:l})=>{const a=Array.isArray(r)?r.length:0,[s,o]=he({itemCount:a,onVisibleIndicesChange:l}),[c]=o.visibleIndicesRange;return h("div",{className:e,children:[m(ie,{containerRef:s,activeIndex:c,visibleItemCount:1,gap:t,padding:n,onVisibleIndicesChange:o.handleVisibleIndicesChange,children:r}),i?m(ae,{containerRef:s,activeIndex:c,dotCount:a}):null]})}));const pe=e=>e?.includes("//"),ge=e=>(e||"").replace(/\/?\?.*/,""),be=e=>{if(!e||!pe(e))return;const t=e,n=t.indexOf("//"),i=t.indexOf("/",n+"//".length);return-1!==i?t.substring(0,i):t},xe=e=>{if(!e||!pe(e))return;return new URL(e).pathname},fe=e=>e?.startsWith("#");var Ne=Object.freeze({__proto__:null,isURL:pe,withoutQuery:ge,getOrigin:be,getPathname:xe,getHash:e=>{if(!e||!pe(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:fe});const ye=(e,t)=>ye._impl(e,t);function ve(){return ve._impl()}function we(){const e=ve(),t=_.inst;return n=>{const i=((e,t)=>{if(!e)return e;const n=be(t?.href);return n?e.replace(n,"")||"/":e})(n.href,e);return{...n,href:i,"aria-label":n.text,onClick:ye((r=>{n.onClick&&n.onClick(r),ke(i,n.target)||(r?.preventDefault(),fe(i)?t.goto(i):i&&e.push(i))}),n)}}}ye._impl=e=>e,ye.setup=e=>{ye._impl=e},ve._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),ve.setup=e=>{ve._impl=e};const ke=(e,t)=>pe(e)||t&&"_self"!==t||e?.startsWith("/"),$e={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:""},Ce="bg-main-divider text-main-disabled",Se={primary:Ce,secondary:Ce,white:Ce,link:""},Te="text-center font-sans select-none",_e={primary:"group-hover:brightness-0 group-hover:invert",secondary:"group-hover:brightness-0 group-hover:invert",white:"group-hover:brightness-0 group-hover:invert",link:""},Ie=u((e=>{const{text:t,aboveText:n,appendLeft:i,appendRight:r,version:l="primary"}=e;return h("div",{className:Ae(e),children:[i?m("div",{className:_e[l],children:i}):null,Re(e)?h("div",{children:[n?m("div",{className:"text-xs-light text-left",children:n}):null,m("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?m("div",{className:_e[l],children:r}):null]})})),Ae=e=>{const{version:t,aboveText:n,rounded:i}=e;if("link"===t)return"";const r="gap-2 "+(n?"py-2.5 px-7":"py-4 px-4");return["group flex items-center justify-center",Re(e)?r:"h-12 w-12",i?"rounded-full":""].join(" ")},Re=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),je=({className:e,rounded:t,version:n})=>["inline-block",Te,n?Se[n]:"",t?"rounded-full":"rounded-md",e].join(" "),De=({className:e,rounded:t,version:n})=>[Te,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border",n?$e[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Be=u((({disabled:e,children:t,...n})=>{const i=we()(n),r=t??m(Ie,{...i});return m(e?Ve:Oe,{...i,children:r})})),Oe=u((({className:e="",href:t,rel:n,target:i,ariaLabel:r,version:l,rounded:a,onClick:s,children:o})=>m("a",{className:De({className:e,version:l,rounded:a}),href:t,rel:n,target:i,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),Ve=u((({className:e,ariaLabel:t,version:n,rounded:i,children:r})=>m("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:je({className:e,rounded:i,version:n}),children:r}))),Me=(e=!1)=>e?"text-white":"",Pe=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),Le=u((({icon:e,image:t,title:n,subtitle:i,isFillGradient:r})=>h("div",{role:"columnheader",children:[e?m(K,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&m("div",{className:"mb-3.5",children:m(K,{image:t})}),n?m(R,{headingType:"h4",className:Me(r),title:n}):null,i?m("div",{className:Pe(r),children:i}):null]}))),Ee=u((({cell:e,rowHeader:t,isFillGradient:n=!1})=>m("div",{className:"box-border flex flex-col",role:"cell",children:m("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)=>h("div",{className:"flex justify-between text-s py-3.5",children:[m("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),h("div",{className:"basis-1/2",children:[n?m("div",{className:"text-right "+(e?"text-white":""),children:n}):null,i?m("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:i}):null]})]},String(r)),He=u((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:i,showRow:r,onToggleColumn:l})=>{const a=t?.slice(0,r?t.length:n),s=i?"secondary":"primary";return h("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:[m(Le,{...e,isFillGradient:i}),a?.length?a.map((({rowHeader:e,cell:t},n)=>m(Ee,{cell:t,rowHeader:e,isFillGradient:i},String(n)))):null,r&&e?.link?m(Be,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,ze({onToggleColumn:l,isFillGradient:i,showRow:r})]})})),ze=({onToggleColumn:e,isFillGradient:t,showRow:n})=>m("div",{className:"mt-5",role:"cell",children:m("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),Ge=u((e=>{const{className:t,title:n}=e;return h("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[n?m(R,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,m("div",{role:"table",children:m(Je,{...e})})]})})),Je=u((({columns:e=[],rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:r,orientation:a,...s})=>{const[o,c]=i(new Array(e.length).fill(!r)),d=l((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),h=l((()=>c((e=>new Array(e.length).fill(!1)))),[]),u=e?.map((({data:e,header:i},l)=>{return m(He,{visibleRowLength:r,showRow:o[l],header:i,columnData:(a=e,a?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===l&&n,onToggleColumn:()=>d(l),...s},String(l));var a}));return"horizontal"===a?m(ue,{onVisibleIndicesChange:h,children:u}):u})),We=new Map;function Ue(e,t,{fallback:n}={}){const l=a((()=>Ye(e)),[e]),[s,o]=i(),[c,d]=i(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!l.every((e=>null===e)))try{const e=t(...l);"then"in e?(e=>{e.then((e=>We.get(l)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...l]);const u=l[0],p=n&&"string"==typeof u&&n[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function Ye(e){return e?Array.isArray(e)?e:e instanceof Function?Ye(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 Xe(e,t={}){const{data:n}=Ue(`/wcms-resources/${e}.json`,Ke,{fallback:t});return n||{}}const qe=u((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:r}=(()=>{const[e,t]=i("");return{term:e,setTerm:e=>t(e)}})(),l=t?"text-s":"text-l-light",a=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return h("form",{className:`font-sans relative ${e}`,children:[h("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[m("div",{className:t?"w-5 h-5":"w-6 h-6",children:m(K,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),n?null:m("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${l}`,children:"Поиск по сайту"})]}),m("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 ${a}`,value:n,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?m("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:m(K,{image:{icon:"CloseIcon"},width:"24",height:"24"})}):m(Be,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:m("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),Qe=u((e=>m(qe,{...e,isMobile:!0}))),Ze=u((({className:e="",documents:t,...n})=>m(I,{className:`font-sans bg-white mt-2.5 ${e}`,...n,children:m("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?et(t):null})}))),et=e=>e.map(((e,t)=>{const{text:n,...i}=e;return m("li",{className:"mb-4 list-none",children:m("a",{className:"hover:text-primary-main",role:"link",...i,children:n||null})},`list_item_${String(t)}`)})),tt={"bg-white":"color",transparent:"white"},nt={"bg-white":"text-primary-main",transparent:"text-white"},it=(e,t,n)=>m(K,t?.src?{image:t,className:nt[e],width:n?.width,height:n?.height,pathPrefix:"/wcms-resources/",asSVG:!0}:{image:{icon:t?.icon||"LogoIcon",iconVersion:tt[e]},className:nt[e],width:n?.width,height:n?.height,asSVG:!0}),rt={"bg-white":"text-primary-text",transparent:"text-white"},lt=(e,t,n)=>m("span",{className:`${rt[t]} ml-2.5 font-medium ${n||""}`,children:e||"Россельхозбанк"}),at=u((({bgColor:e="bg-white",children:t,className:n="",href:i,logo:r,showTitle:l=!0,targetBlank:a})=>h("a",{className:`inline-flex items-center font-sans no-underline ${n}`,href:i||"https://rshb.ru/",target:a?"_blank":"_self","aria-label":r?.title||"Россельхозбанк",children:[it(e,r?.image,{width:"34",height:"34"}),l?lt(t||r?.title,e,"text-s"):null]}))),st=u((({className:e="",title:t="Мобильное приложение",description:n,href:i="#"})=>m("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:i?h("div",{className:"flex",children:[m("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-12 h-12",children:m(at,{className:"w-8",bgColor:"transparent",showTitle:!0})}),h("a",{href:i,target:"_blank",className:"flex flex-col justify-center pl-3",children:[m("div",{className:"text-s font-medium mb-[3px]",children:t}),m("div",{className:"text-s text-secondary-text",children:n})]})]}):null}))),ot=u((({className:e="",items:t,hasButton:n})=>h("div",{className:e,children:[t?.length?t.map(ct):null,n?m(Be,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),ct=(e,t)=>{const{type:n,text:i,description:r}=e;return h("div",{className:"mb-4",children:[m("div",{children:dt(n,i)}),m("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},dt=(e,t="")=>{switch(e){case"tel":return m("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${mt(t)}`,children:t});case"email":return m("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return m("span",{children:t})}},mt=e=>e.replaceAll(/\D/g,""),ht=u((({className:e="",index:t,text:n,...i})=>{const r=we(),{href:l,target:a,onClick:s}=r(i);return m("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:a,onClick:s,children:n||`Документ ${t}`})})),ut=u((({title:e,links:t,className:n=""})=>h("div",{className:n,children:[m("span",{className:"text-primary-text text-s font-medium",children:e}),t?.length?m("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>m(ht,{index:t,className:"text-s",...e},String(t))))}):null]}))),pt=[{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"}],gt={default:" w-14 h-14",small:" w-12 h-12"},bt=u((({version:e="primary",isRounded:t=!1,buttonSize:n="default",...i})=>{const r=we(),{href:l,onClick:a}=r(i),{icon:s,label:o}=pt.find((({origins:e})=>e.some((e=>l?.includes(e)))))||{};if(!s)return null;return m("a",{className:`flex items-center justify-center group box-border ${"secondary"===e?"bg-white hover:bg-secondary-hover":"border-solid border border-main-divider hover:border-transparent hover:bg-primary-main"} ${t?"rounded-full":"rounded-md"} ${"primary"===e?"hover:text-black":""} ${gt[n]}`,href:l,"aria-label":o,target:"_blank",rel:"noopener noreferrer",onClick:a,children:s?m(K,{image:q(s),imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),xt=u((({className:e="",media:t,version:n})=>m("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e}`,children:t?.map(((e,t)=>m(bt,{version:n,...e},String(t))))}))),ft=u((({className:e="",index:t,...n})=>{const i=we(),{href:r,target:l,text:a,onClick:s}=i(n);return m("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:l,onClick:s,children:a||`Документ ${t}`})})),Nt=u((({className:e="",links:t})=>h("div",{className:e,children:[m("div",{className:"py-6",children:m("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?m("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>m(ft,{index:t,...e},String(t))))}):null]}))),yt=u((({className:e="",...t})=>{const n=t.options?.page?.fallback,i=Xe(o.SITEMAP||"sitemap",n),{documents:r,relatedEnterprises:l,contacts:a,socialMedia:s,horizontalNavigationTitle:c}=Xe(o.FOOTER||"footer",n);return h("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[m(ot,{className:"overflow-hidden",items:a,hasButton:!0}),m(D,{children:i.topItems?.map(((e,t)=>m(Z,{label:e.text,children:m(Ze,{documents:e.items})},String(t))))}),m("div",{children:i?.dispositions?.map(vt)}),m(st,{title:"Мобильное приложение",description:"Загрузить для IOS и Android",...t}),m(Qe,{className:"grow"}),m(xt,{className:"pb-4",media:s}),m(ut,{title:c,links:l}),m(Nt,{links:r})]})})),vt=(e,t)=>{const{icon:n,href:i,text:r}=e;return h(Be,{version:"link",href:i,className:"flex text-s mb-4 w-6",children:[n?m(K,{className:"pr-1",image:q(n),width:"24",height:"24",asSVG:!0}):null,m("span",{className:"pl-2.5 font-medium text-primary-text",children:r})]},`footer-${t}`)},wt={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},kt=u((({title:e,description:t,cards:n=[],className:i,orientation:r="horizontal"})=>h("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${i}`,children:[h("div",{className:"flex flex-col items-center mb-5",children:[e?m(R,{headingType:"h3",className:`text-center ${t?"mb-2":"mb-5"}`,title:e}):null,t?m("div",{className:"text-m max-w-[600px] text-center mb-5",children:t}):null]}),$t(r,n)]})));function $t(e,t){return"horizontal"===e?m(ue,{children:t?.map(Ct)}):m("div",{className:"grid gap-3.5",children:t?.map(Ct)})}function Ct(e,t){return h("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 ${wt[e.version??"primary"]}`,children:[h("div",{children:[St(e.icon),e.title?m("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?Tt(e):null,e.items?.length?It(e.items,e.isDotted,e.version):null]}),e?.button?.text?(n=e.button,m(Be,{className:"mt-3",...n})):null]},t);var n}const St=e=>e?.src||e?.icon?m("div",{className:"flex justify-center",children:m(K,{className:"mb-3.5",image:e})}):null;function Tt(e){return m("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-secondary-text"};function It(e,t,n="primary"){return m("section",{className:"mt-3",children:e.map(((e,i)=>h("div",{children:[t?m("div",{className:`rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${_t[n]}`}):null,m("span",{className:"text-m font-medium",children:e.title}),m("span",{className:"text-s pl-2 "+("primary"===n?"text-secondary-text":""),children:e.text})]},String(i))))})}const At=(e,t,n=((e,t)=>t.startsWith(e)))=>n(ge((e=>pe(e)||e?.startsWith("/")?e:`${o.BASE_PATH||""}${e}`)(e)),ge(pe(e)?t.href:xe(t.href))),Rt=e=>t=>At(t.href,e),jt=e=>t=>t.items?.some(Rt(e))||At(t.href,e)||((e,t)=>[be(e),be(t.href)].every(((e,t,n)=>Boolean(e)&&e===n[0])))(t.href,e)||Boolean(o.BASE_PATH?.startsWith(t.href||"/")),Dt="absolute left-0 -bottom-3 w-full h-0.5",Bt=u((({className:e="",text:t,href:n,target:i,active:r,onClick:l,children:a,bgColor:s="bg-white"})=>h("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:n,target:i,onClick:l,children:[m("span",{className:Ot(s,r),children:t||a}),r?m("div",{className:Vt(s,r)}):null]}))),Ot=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans text-s`},Vt=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Dt}`:Dt,Mt=864e5;function Pt(e,t,n=globalThis?.localStorage){const i=l((async(...i)=>{const r=`async:${e}`,l=function(e){const{data:t=null,timestamp:n=null}=e?JSON.parse(e):{};return t&&Date.now()-n<Mt?t:void 0}(n.getItem(r));if(l)return l;const a=await t(...i);return n.setItem(r,JSON.stringify({data:a,timestamp:Date.now()})),a}),[e,t]);return Ue(e,i)}const Lt=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}},Et=u((({burgerSubMenu:e,onClick:t,defaultLocation:n="",children:a})=>{const[s]=function(e){const t=Lt(),[n,a]=i(t?.region??{name:e}),{data:s}=Pt("/api/v1/region",Ke);return r((()=>{a(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[n,l((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),a(e)}),[a])]}(n);return h("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[m("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:t,children:m(K,{image:{icon:"CloseIcon"},width:"24",height:"24",asSVG:!0})}),h("button",{className:"flex items-center text-s p-0 mb-4 bg-transparent cursor-pointer",children:[m(K,{image:{icon:"GeolocationIcon"},width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),m(X,{color:"text-secondary-text",children:s.name})]}),a,m("div",{className:"mb-7",children:e?.map(Ft)}),m(Qe,{className:"grow"})]})})),Ft=(e,t)=>{const{icon:n,href:i,text:r}=e;return h("a",{href:i,className:"flex text-s mb-4 hover:text-primary-main",children:[n?m(K,{className:"text-primary-main pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,m("span",{className:"font-medium pl-0.5",children:r})]},`headerSubMenu-${t}`)},Ht=u((({onClick:e,bgColor:t,logo:n})=>h("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-12",children:[h("div",{className:"flex items-center",children:[m("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:m(K,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),m(at,{className:"mr-8",bgColor:t,logo:n})]}),m("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-s border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),zt=u((({className:e="",bgColor:t="bg-white",...n})=>{const r=ve(),a=n.options?.page?.fallback,{topItems:s,dispositions:c,defaultLocation:d,logo:u}=Xe(o.SITEMAP||"sitemap",a),p=s?.find(jt(r)),g=p?.items,b=(e=>(t=[])=>{const n=t?.filter(Rt(e));return n?.length?oe((e=>e.href?.length||0))(n):void 0})(r)(g),[x,f]=i(!1),N=l((()=>f((e=>!e))),[]);return h("header",{className:`${t} ${e}`,children:[h("div",{className:"container px-4 py-0 box-border",children:[m(Ht,{onClick:N,bgColor:t,logo:u}),m("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-12",children:m("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:g?.map(((e,n)=>m(Bt,{className:"mr-8 whitespace-nowrap text-s",active:e===b,bgColor:t,...e},String(n))))})})]}),x?m(Et,{onClick:N,burgerSubMenu:c,defaultLocation:d,children:m(D,{children:s?.map(((e,t)=>m(Z,{label:e.text,children:m(Ze,{documents:e.items})},String(t))))})}):null]})})),Gt={transparent:{wrapper:"bg-transparent",titleColor:"text-primary-text"},primary:{wrapper:"bg-white",titleColor:"text-primary-text"},secondary:{wrapper:"bg-primary-main",titleColor:"text-white",descriptionColor:"text-white/80"}},Jt=u((({className:e="",title:t,description:n,image:i,bgColorHeadline:r="transparent",align:l="text-left"})=>{const a=Gt[r];return h("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${a.wrapper} ${e}`,children:[t?m(R,{headingType:"h2",className:`${a.titleColor} ${l}`,title:t}):null,n?m(j,{color:a.descriptionColor||a.titleColor,size:"text-m",align:l,children:n}):null,i?.src&&m("div",{className:"mt-2.5 mx-auto flex justify-center",children:m(K,{image:i})})]})})),Wt=u((({className:e,iconClassName:t,textClassName:n,suffixClassName:i,doc:r,icon:l})=>{const{text:a,fileSize:s,...o}=r;return h("a",{className:e,role:"link",...o,children:[l?m(K,{className:t,image:q(l),width:"24px",height:"24px",asSVG:!0}):null,a?h("span",{className:n,children:[a,m("span",{className:i,children:o?.href&&Ut(Yt(o.href),s)})]}):null]})})),Ut=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Yt=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Kt=u((({className:e="",doc:t,icon:n})=>m(Wt,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),Xt=u((({hasBorder:e=!0,documents:t,icon:n})=>m(ue,{className:"text-s text-primary-main mt-5",children:t?.length?t.map(((t,i)=>m(Kt,{className:e?"rounded-md border-gray border border-solid p-4":"",doc:t,icon:n},String(i)))):null}))),qt=u((({hasBorder:e=!0,documents:t,icon:n})=>m("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)=>m("div",{role:"listitem",children:m(Kt,{className:e?"rounded-md border-gray border border-solid p-4":"",doc:t,icon:n})},String(i)))):null}))),Qt=u((({className:e="",title:t,description:n,icon:i={icon:"DocIconMonoColor"},documents:r,orientation:l="vertical",hasBorder:a=!0,...s})=>h("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[m(Jt,{className:"!p-0 "+(n?"gap-2":"gap-5"),title:t,description:n,...s}),m("vertical"===l?qt:Xt,{hasBorder:a,documents:r,icon:i})]}))),Zt=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function en(e=""){const t=Zt(e);return t<=4?"S":t<=8?"M":"L"}function tn(e=""){const t=Zt(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function nn(e=""){const t=Zt(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const rn=u((({className:e,title:t,description:n="Блок в разработке...",...i})=>h(I,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${nn(e)} ${tn(e)} `,...i,children:[m(Jt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:en(e),...i}),m("figure",{className:"m-0 min-w-[80%]",children:ln()})]}))),ln=(e=3)=>sn(100,e).map((e=>Math.floor(e))).map(an),an=(e,t)=>m("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),sn=(e,t)=>[e].concat(t>0?sn(e/1.618,t-1):[]),on=u((({className:e="",buttons:t})=>t&&t?.length?m("div",{className:e,children:t.map(((e,t)=>cn({button:e,index:t})))}):null));function cn({button:e,buttonClassName:t,index:n}){const{icon:i,iconRight:r,version:l,text:a,...s}=e,o="secondary"===l?"color":"white",c=dn({...i,iconVersion:o}),d=dn({...r,iconVersion:o});return a?m(Be,{className:t,appendLeft:c,appendRight:d,version:l,text:a,...s},n?String(n):""):null}const dn=e=>{if(!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return m(K,{image:e,width:t,height:"24",asSVG:!0})},mn={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},hn={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"},un=u((({className:e="",isDotted:t=!0,children:n,version:i="primary",size:r="M"})=>h("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?m("div",{children:m("div",{className:`rounded-full align-middle inline-block ${mn[i]} ${hn[r]}`})}):null,m("span",{children:n})]}))),pn={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},gn={S:"text-l-light",M:"text-h6",L:"text-h5"},bn={S:"ml-2",M:"ml-3",L:"ml-4"},xn=u((e=>{const{className:t="",hasIndent:n,isDotted:i,itemClassName:r="",items:l,listItemSize:a="M",version:s="primary"}=e;return l?.length?m("section",{className:`${pn[s]} ${gn[a]} ${t} ${n?bn[a]:""}`,role:"list",children:l.map(((e,t)=>m(un,{className:`${r} mb-1.5`,isDotted:i,version:s,size:a,children:e},String(t))))}):null})),fn=u((({className:e="",title:t="",buttons:n,image:i,children:r})=>h("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,h("div",{className:"flex grow w-full justify-between",children:[h("div",{className:"flex flex-col justify-between w-full",children:[m("div",{className:"h-full",children:r}),n?m("div",{className:"mt-auto pt-8",children:n}):null]}),i]})]}))),Nn={primary:"text-primary-text",secondary:"text-white"},yn={primary:"text-secondary-text",secondary:"text-white"},vn=u((e=>{const{className:t="",icon:n,label:i,description:r,version:l="primary",benefitsVersion:a="normal"}=e,s="white"===a?"secondary":"primary";return h("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[n?m("div",{className:wn(l,a),children:m(K,{className:"w-6 h-6",image:q(n,s),asSVG:!0})}):null,h("div",{className:"gap-0.5",children:[i?m("div",{className:`text-h6 ${Nn[l]}`,children:i}):null,r?m("div",{className:`text-m-light ${yn[l]}`,children:r}):null]})]})}));function wn(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 kn=(e="primary",t="normal")=>({icon:n,label:i,description:r},l)=>m(vn,{icon:n,label:i,description:r,version:e,benefitsVersion:t},String(l)),$n=u((({className:e="",headlineVersion:t="L",benefits:n,benefitsVersion:i="normal",buttons:r,image:l,items:a,version:s="primary",isDotted:o=!0,label:c,...d})=>h("div",{className:`w-full ${e}`,children:[h("div",{children:[c?Tn(c,s):null,m(Jt,{className:"!p-0 max-w-[600px]",bgColorHeadline:s,headlineVersion:t,...d}),h(fn,{buttons:r?.length?m(on,{buttons:r,className:"flex flex-col mt-5 gap-2.5"}):null,children:[n?.filter((e=>e.label))?.length?m("div",{className:"mt-3",children:n.map(kn(s,i))}):null,a?.length?m(xn,{className:"mt-3 text-m",items:a,version:s,isDotted:o}):null]})]}),Cn(l)]})));function Cn(e){return e?.src?m(K,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const Sn={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},Tn=(e,t)=>m("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${Sn[t]}`,children:e}),_n=u((e=>{const{className:t="",version:n="primary"}=e;return m("section",{className:`font-sans bg-white px-4 py-6 ${wt[n]} ${t}`,children:m($n,{...e})})})),In={primary:{background:"bg-white",title:"text-primary-text",description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{background:"bg-primary-main",title:"text-white",description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},An={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-12 w-12 min-w-12 min-h-12"},Rn={normal:"min-h-[70px]",small:"min-h-12"},jn=u((({className:e,title:t,description:n,showLines:i=!0,steps:r,size:l="normal",version:a="primary"})=>{const s=In[a];return h("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${s.background} ${s.title} ${e||""}`,children:[t?m(R,{headingType:"h3",className:`text-center ${s.title}`,title:t}):null,n?m("p",{className:`text-m-light text-center ${s.description} ${t?"mt-2":""}`,children:n}):null,r?.length?m("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:m("div",{className:"flex flex-col justify-between gap-x-[101px]",children:r.map(Dn(l,a,i))})}):null]})})),Dn=(e,t,n)=>(i,r,l)=>{const a=l.length-1===r,s="normal"===e?"ml-[34px]":"ml-6",o=In[t];return m("div",{children:h("div",{className:"flex flex-row text-center relative",children:[h("div",{className:"overflow-hidden flex-shrink-0",children:[Bn(e,t)(i,r),a?null:m("div",{className:`min-h-8 h-full w-0.5 ${n?o.iconConnector:""} ${s}`})]}),h("div",{className:`flex flex-col justify-center h-fit ${Rn[e]}`,children:[i.label?m("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:i.label}):null,i.description?m("div",{className:`text-s ${o.description} text-left`,children:i.description}):null]})]})},String(r))},Bn=(e,t)=>(n,i)=>{const r=In[t],l="normal"===e?"38":"27",a="normal"===e?"text-m-title":"text-m-title-xs";return m("div",{className:`${An[e]} ${r.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:m("span",{className:`font-medium flex self-center ${r.title} ${a}`,children:(s=n?.icon,Boolean(s?.icon||s?.src)?m(K,{image:q({...n.icon},t),width:l,height:l,asSVG:!0}):m("span",{children:i+1}))})});var s},On={Buttons:({buttons:e})=>e&&e?.length?m("div",{children:e.map((({rounded:e,icon:t,...n},i)=>cn({button:{rounded:e,icon:t,...n},buttonClassName:`mt-3 ${i>0&&e?"ml-2.5":""} ${t?"w-12 h-12":""}`,index:i})))}):null,Img:({image:e})=>e?.src?m(K,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>m(xn,{className:"flex flex-col justify-between items-start text-m",version:"gray",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>h("div",{children:[e?m("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?m("div",{className:"text-s text-secondary-text",children:t}):null]})},Vn=u((({title:e,icon:t})=>h("div",{className:"flex gap-2.5 mb-2",children:[e?m(R,{headingType:"h3",className:"font-medium",title:e}):null,t?m(K,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),Mn=u((({tile:e,...t})=>h("div",{className:"rounded-md border-gray h-full box-border border p-4",children:[m(Vn,{...e?.header}),e?.data?.length?e.data.map(((e,n)=>h("div",{children:[n>0?m("div",{className:"h-5"}):null,Pn(e,t)]},String(n)))):null]})));function Pn(e,t){if(!e||!e.tableCellType||!(e.tableCellType in On))return null;const n=On[e.tableCellType];return m(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const Ln=u((({tiles:e,...t})=>e?.length?m(ue,{...t,children:e.map(((e,n)=>m(Mn,{tile:e,...t},String(n))))}):null)),En=u((({tiles:e,...t})=>e?.length?m("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>m(Mn,{tile:e,...t},String(n))))}):null)),Fn=u((({className:e,title:t,description:n,tariffsColumns:i,rowHeaders:r,orientation:l="vertical",...a})=>{const s=Hn(i),o=zn(r,s);return h("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[t?m(R,{headingType:"h2",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?m("div",{className:"mb-5 text-center text-m",children:n}):null,m("vertical"===l?En:Ln,{tiles:o,...a})]})})),Hn=e=>e?.[0]?.data?e[0].data:[],zn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Gn={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"}},Jn=u((({title:e,description:t,blockVersion:n="primary",iconVersion:i,image:r,className:l="",items:a,isDotted:s=!0})=>{const o=Gn[n],c="secondary"===n?"secondary":"gray";return h("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${l}`,children:["small"===i?Wn(o.icon):null,"big"===i?Un(r):null,h("div",{className:"py-0.5",children:[e?m("div",{className:`text-l font-medium mb-1 ${o.title}`,children:e}):null,t?m("div",{className:`text-s ${o.description}`,children:t}):null,a?.length?m(xn,{className:"mt-1 text-m",items:a,isDotted:s,version:c}):null]})]})}));function Wn(e){return m("div",{className:"mb-3",children:m("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function Un(e){return e?.src?m(K,{className:"pb-3 mr-auto",image:e}):null}const Yn={Accordion:B,AccordionItem:Z,ComparisonTable:Ge,Footer:yt,Gallery:kt,Header:zt,Headline:Jt,LinkDocs:Qt,LinkList:Ze,MobileAppTile:st,ProductBlock:_n,StepsBlock:jn,TariffsTable:Fn,TextBlock:Jn,Placeholder:rn},Kn=["Header","Footer"],Xn=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function qn(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])=>!Kn.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[n]=t.length>0?ce(Xn)(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 Qn=d();const Zn=u((({className:e,onClick:t,ariaLabel:n})=>m("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:ei()}))),ei=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[m("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"}),m("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"})]})},ti=u((({className:e=""})=>{const t=function(e){const[t,n]=i(0);return r((()=>{(async()=>{const[t]=await Qn.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:l((async()=>{n(await Qn.like(e))}),[e]),dislike:l((async()=>{n(await Qn.dislike(e))}),[e])}}(ve().pathname);return h("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:[m(Zn,{onClick:ye(t.like),ariaLabel:"Поставить отметку «лайк»"}),m(Zn,{onClick:ye(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),m("span",{className:"select-none",children:t.likeCount})]})})),ni=u((e=>{const{className:t="",blocksRegistry:n,blockDecorator:i,data:r={}}=e,{style:l,blocks:a,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:n,blockDecorator:i,parent:r};return qn(),h("section",{className:`relative ${g(l)} ${t}`,"data-theme":c,children:[s?.header?m("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:v(s?.header,{...d,slotName:"header"})}):null,h("div",{className:"container grid grid-cols-12 gap-1",children:[v(a,d),s?.footer?v(s?.footer,{...d,slotName:"footer"}):null]}),o?m("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:m(ti,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));ni.childrenTypes=[],ni.slots=()=>["header","footer"];e.Blocks=Yn,e.ContentPage=ni,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=d,e.handlerDecorator=ye,e.joinList=function(e){return t=>t.reduce(((t,n,i)=>t.length?t.concat({...e,key:i},n):[n]),[])},e.packageVersion="0.6.50",e.projectSettings=o,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=Ne,e.useRouter=ve,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),i=n("useState"),r=n("useEffect"),l=n("useCallback"),s=n("useMemo"),a=n("useRef");const o=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CDN(){return this._.CDN}get 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}},c="likesToken";function d(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(c)||"");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(c,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/${o.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/${o.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/${o.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 m=(...e)=>globalThis._uni._jsx(...e),h=(...e)=>globalThis._uni._jsxs(...e),u=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:p(e)),t._tmpl},p=e=>{function t(t,n){const{children:i,...r}=t||{},l=n?.slots?.default,s=i||l&&l();return e(Object.assign(r,s&&{children:s}),n)}return t.inheritAttrs=!1,t};function g(e){return e?e.filter(Boolean).join(" "):""}const b=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),x=[],f=["col-span-12"];function y(e,t){const{key:n,blockDecorator:i=b,blocksRegistry:r={},ancestors:l=x,className:s=""}=t,{type:a}=e;a&&a in r||console.warn(`No block with "${a}" is registered`);const o=a&&r[a];return i({blockClassName:`scroll-mt-12 ${s} ${g(e.style||f)}`,block:e,ancestors:l,render:({block:i,blockClassName:r})=>{const{content:l}=i;return o?m(o,{className:r,block:e,options:t,...l},n):null}},n)}const N=[],v=(e,{key:t,ancestors:n=N,slotName:i=null,renderChild:r=y,...l})=>(e||[]).map(((e,s)=>r(e,{...l,key:`${t||e.type}-${s}`,ancestors:l.parent?[...n||N,[l.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 $(e,{sensitivity:t,rootRef:n}={}){const i=a(null),l=s((()=>({threshold:C(t),root:n?.current})),[t,n?.current]);return r((()=>{if(!i.current)return;const t=new IntersectionObserver(e,l);return t.observe(i.current),()=>{t.disconnect()}}),[e,l]),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 S=e=>e?.replace("#",""),T=e=>`${globalThis.location?.pathname}#${S(e)}`;class _{static inst=new _;eventBus=new k;constructor(){const e=S(globalThis.location?.hash);e&&this.eventBus.subject("goto",{anchor:e})}goto(e){const t=S(e);t&&(this.push(t),this.eventBus.fire("goto",{anchor:t}))}push(e){globalThis.history?.pushState(null,"",T(e))}replace(e){globalThis.history?.replaceState(null,"",T(e))}reset(){globalThis.history?.replaceState(null,"",T())}}const I=u((({className:e="",block:t,tag:n="section",role:s,children:a})=>{const o=n,c=function(e,t=_.inst){const n=$(l((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}(t),[d,h]=i(!0);return r((()=>k.inst.subscribe("tab",(e=>{if("group"===e.type){const n=t?.labels?.length||t?.anchor;h(!e.label||(!n||Boolean(t?.labels?.includes(e.label))))}else h(!0)}))),[t]),d?m(o,{className:e,role:s,...t?.anchor?{id:t.anchor,ref:c}:{},children:a}):null})),A={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=u((e=>{const{className:t,headingType:n="h3",title:i,as:r="h3"}=e;return m(r,{className:`font-sans font-medium m-0 ${A[n]} ${t||""}`,children:i})})),R=u((({size:e,color:t,align:n,font:i,children:r})=>m("p",{className:["font-sans",e,t,n,i].filter(Boolean).join(" "),children:r}))),B=u((({children:e})=>m("ul",{className:"list-none m-0 p-0",children:e}))),D=u((({title:e,description:t,className:n="",...i})=>h(I,{className:`py-6 px-4 bg-white text-primary-text ${n}`,...i,children:[e?m(j,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?m("div",{className:"mb-5",children:m(R,{size:"text-m",font:"font-light",align:"text-center",children:t})}):null,m(B,{children:w(i)})]})));D.childrenTypes=["AccordionItem"];const O=u((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:n,renderFoldButton:r})=>{const[s,a]=i(t),o=l((()=>{a((e=>!e))}),[]),c=n({isUnfolded:s,onToggle:o}),d=r?r({isUnfolded:s,onToggle:o}):null;return h("div",e?{children:[d,c]}:{children:[c,d]})})),V=u((({className:e="",isUnfolded:t,children:n})=>{const i=a(null);return r((()=>{i.current&&(i.current.style.maxHeight=t?`${i.current.scrollHeight}px`:"")}),[t,n?.length]),m("div",{ref:i,className:`transition-max-h duration-300 overflow-hidden ${i.current||!t?"max-h-0":""} ${e}`,children:n})})),M={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},P=u((({className:e="",imageClassName:t="",name:n="",alt:i=`Иконка ${n}`,title:r=i,iconVersion:l="color",asSVG:s,...a})=>{const c=`${o.CDN||""}icons/${n}.svg`;return s&&"normal"!==l?m(z,{className:e,children:h("svg",{className:[E(e,a.width),M[l],t,L(l)].join(" "),...a,"aria-hidden":"true",children:[r?m("title",{children:r}):null,i?m("desc",{children:i}):null,m("use",{href:`${c}#icon`,xlinkHref:`${c}#icon`})]})}):m("img",{className:e,src:c,alt:i,title:r,...a,"aria-hidden":"true"})})),L=e=>"white"===e?"invert":"",E=(e,t)=>t?`width: ${t}px `:"w-full h-full",z=u((({className:e,children:t})=>e?m("div",{className:e,children:t}):t)),F=(e,t)=>e.media&&t.media?e.media-t.media:0,H=u((({className:e="",image:t,imageClassName:n="",isMobile:i=!1,pathPrefix:r})=>{if(!t||!t?.sources&&!t?.src)return null;return h("picture",{className:`${i?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(F).map((({src:e,format:n,media:i},l)=>m("source",{srcSet:W(e,r),type:U(n),media:i?`(max-width: ${i}px)`:"",...t.size},`${l}_${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||"",l=e.alt||e.title,s=n?"m-auto":"m-0";return m("img",{src:e.src,className:`${s} ${t}`,alt:l,title:r,style:i,...e.size})},J=(e,t)=>!e||e?.startsWith("data:image")?e:`${((e="")=>e&&!e.endsWith("/")?`${e}/`:e)(t)}${e}`,W=(e,t)=>e?.split(",").map((e=>J(e.trim(),t))).join(", ");function U(e){return e?`image/${String(e)}`:void 0}const Y=u((({className:e="",image:t,imageClassName:n="",isMobile:i,pathPrefix:r,...l})=>t?.src||t?.icon?t.icon?m(P,{className:e,imageClassName:n,iconVersion:t?.iconVersion||"normal",name:t.icon,...l}):m(H,{className:e,imageClassName:n,image:t,isMobile:i,pathPrefix:r}):null)),K=u((e=>m(Y,{...e,isMobile:!0}))),X=u((({size:e,color:t,align:n,font:i,children:r})=>m("span",{className:["font-sans",e,t,n,i].filter(Boolean).join(" "),children:r}))),q=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),Q=["PlusIcon","MinusIcon"],Z=u((({className:e="",label:t="",labelIcon:n,isExpanded:i,...r})=>{const{bordered:l}=function(e,t){const{content:n}=function(e){return e?.parent||{}}(e);return n||t}(r.options,{});return m("li",{className:`${l?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"} border-solid border-main-divider ${e}`,children:m(O,{isFoldButtonOnTop:!0,unfoldedByDefault:i,renderFoldableSection:({isUnfolded:e})=>m(V,{className:"flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0",isUnfolded:e,children:w(r)}),renderFoldButton:({isUnfolded:e,onToggle:i})=>m(ee,{className:l?"":"py-3.5 px-0",label:t,icon:Q[Number(e)],primaryIcon:n,onClick:i})})})}));Z.childrenTypes=[];const ee=u((({className:e,icon:t,label:n,primaryIcon:i,onClick:r})=>h("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:[h("div",{className:"flex group-hover:text-primary-main",children:[i?m(K,{image:q(i),className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,m(X,{size:"text-m-title-xs",font:"font-medium",children:n})]}),m(K,{className:"flex-shrink-0",image:q({icon:t}),width:"24",height:"24",asSVG:!0})]}))),te=(...e)=>e.filter(Boolean).join(" "),ne=u((({className:e="",style:t,idx:n,activeIndex:i,observerOptions:r,children:s,onIntersection:a})=>{const o=$(l((e=>{e.length&&a&&a(n||0,e[e.length-1])}),[a,n]),r);return m("div",{className:`inline-block snap-always box-border ${e}`,style:t,role:"listitem","aria-current":Boolean(n===i),ref:o,children:s})})),ie=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],re=u((({className:e="",containerRef:t,activeIndex:n,visibleItemCount:i=0,gap:r=0,padding:s=0,listType:o="horizontal-list",snapAlign:c="snap-center",children:d,onVisibleItemsChange:h,onVisibleIndicesChange:u})=>{const p={sensitivity:1,rootRef:t},g=a([]),b=l(((e,t)=>{const n=[...g.current||[]];n[e]=t,g.current=n,h&&h(n),u&&u(se(n))}),[h,u]),x=i>0?r*Number(i)-1:0,f="horizontal-list"===o,y={...f?le(s,x):{},gap:`${r}px`};return m("div",{className:te("box-border overflow-auto no-scrollbar",o,e),style:y,role:"list",ref:t,children:(N=(e,t)=>m(ne,{className:te(c,i?ie[i-1]:"","vertical-list"===o?"h-full":""),style:f?le(s/4):{},activeIndex:n,idx:t,observerOptions:p,onIntersection:b,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(N):N(e,0))(d)});var N})),le=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),se=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),ae={"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=u((({containerRef:e,activeIndex:t,dotCount:n=0,listType:i="horizontal-list"})=>n?m("div",{className:`flex gap-2 ${ae[i]}`,children:new Array(n).fill(null).map(((n,r)=>m("div",{className:`cursor-pointer bg-primary-main rounded-full transition-width duration-300 ${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=a(null),[s,o]=i([]),c=l((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]=s.length?[he()(s),me()(s)]:[-1,-1],h=d>0,u=m<e-1,p=l((()=>{var n;r.current&&(t&&!h?(n=r.current).scrollTo({left:n.scrollWidth,behavior:"smooth"}):pe(r.current)(e,-1))}),[t,e,h]),g=l((()=>{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=u((({className:e="",gap:t=14,padding:n=16,showDots:i=!0,children:r,onVisibleIndicesChange:l,listType:s="horizontal-list"})=>{const a=Array.isArray(r)?r.length:0,[o,c]=ge({itemCount:a,onVisibleIndicesChange:l}),[d]=c.visibleIndicesRange;return h("div",{className:te(e,"vertical-list"===s?"relative h-full":""),children:[m(re,{containerRef:o,activeIndex:d,visibleItemCount:1,gap:t,padding:n,onVisibleIndicesChange:c.handleVisibleIndicesChange,listType:s,children:r}),i?m(ce,{containerRef:o,activeIndex:d,dotCount:a,listType:s}):null]})}));const xe=e=>e?.includes("//"),fe=e=>(e||"").replace(/\/?\?.*/,""),ye=e=>{if(!e||!xe(e))return;const t=e,n=t.indexOf("//"),i=t.indexOf("/",n+"//".length);return-1!==i?t.substring(0,i):t},Ne=e=>{if(!e||!xe(e))return;return new URL(e).pathname},ve=e=>e?.startsWith("#");var we=Object.freeze({__proto__:null,isURL:xe,withoutQuery:fe,getOrigin:ye,getPathname:Ne,getHash:e=>{if(!e||!xe(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:ve});const ke=(e,t)=>ke._impl(e,t);function $e(){return $e._impl()}function Ce(){const e=$e(),t=_.inst;return n=>{const i=((e,t)=>{if(!e)return e;const n=ye(t?.href);return n?e.replace(n,"")||"/":e})(n.href,e);return{...n,href:i,"aria-label":n.text,onClick:ke((r=>{n.onClick&&n.onClick(r),Se(i,n.target)||(r?.preventDefault(),ve(i)?t.goto(i):i&&e.push(i))}),n)}}}ke._impl=e=>e,ke.setup=e=>{ke._impl=e},$e._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),$e.setup=e=>{$e._impl=e};const Se=(e,t)=>xe(e)||t&&"_self"!==t||e?.startsWith("/"),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:""},_e="bg-main-divider text-main-disabled",Ie={primary:_e,secondary:_e,white:_e,link:""},Ae="text-center font-sans select-none",je={primary:"group-hover:brightness-0 group-hover:invert",secondary:"group-hover:brightness-0 group-hover:invert",white:"group-hover:brightness-0 group-hover:invert",link:""},Re=u((e=>{const{text:t,aboveText:n,appendLeft:i,appendRight:r,version:l="primary"}=e;return h("div",{className:Be(e),children:[i?m("div",{className:je[l],children:i}):null,De(e)?h("div",{children:[n?m("div",{className:"text-xs-light text-left",children:n}):null,m("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?m("div",{className:je[l],children:r}):null]})})),Be=e=>{const{version:t,aboveText:n,rounded:i}=e;if("link"===t)return"";const r="gap-2 "+(n?"py-2.5 px-7":"py-4 px-4");return["group flex items-center justify-center",De(e)?r:"h-12 w-12",i?"rounded-full":""].join(" ")},De=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),Oe=({className:e,rounded:t,version:n})=>["inline-block",Ae,n?Ie[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Ve=({className:e,rounded:t,version:n})=>[Ae,"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(" "),Me=u((({disabled:e,children:t,...n})=>{const i=Ce()(n),r=t??m(Re,{...i});return m(e?Le:Pe,{...i,children:r})})),Pe=u((({className:e="",href:t,rel:n,target:i,ariaLabel:r,version:l,rounded:s,onClick:a,children:o})=>m("a",{className:Ve({className:e,version:l,rounded:s}),href:t,rel:n,target:i,"aria-label":r,role:t?"link":"button",onClick:a,children:o}))),Le=u((({className:e,ariaLabel:t,version:n,rounded:i,children:r})=>m("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:Oe({className:e,rounded:i,version:n}),children:r}))),Ee=(e=!1)=>e?"text-white":"",ze=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),Fe=u((({icon:e,image:t,title:n,subtitle:i,isFillGradient:r})=>h("div",{role:"columnheader",children:[e?m(K,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&m("div",{className:"mb-3.5",children:m(K,{image:t})}),n?m(j,{headingType:"h4",className:Ee(r),title:n}):null,i?m("div",{className:ze(r),children:i}):null]}))),He=u((({cell:e,rowHeader:t,isFillGradient:n=!1})=>m("div",{className:"box-border flex flex-col",role:"cell",children:m("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Ge(n,t))})}))),Ge=(e,t)=>({label:n,description:i},r)=>h("div",{className:"flex justify-between text-s py-3.5",children:[m("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),h("div",{className:"basis-1/2",children:[n?m("div",{className:"text-right "+(e?"text-white":""),children:n}):null,i?m("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:i}):null]})]},String(r)),Je=u((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:i,showRow:r,onToggleColumn:l})=>{const s=t?.slice(0,r?t.length:n),a=i?"secondary":"primary";return h("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:[m(Fe,{...e,isFillGradient:i}),s?.length?s.map((({rowHeader:e,cell:t},n)=>m(He,{cell:t,rowHeader:e,isFillGradient:i},String(n)))):null,r&&e?.link?m(Me,{href:e.link.href,target:e.link.target,version:a,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,We({onToggleColumn:l,isFillGradient:i,showRow:r})]})})),We=({onToggleColumn:e,isFillGradient:t,showRow:n})=>m("div",{className:"mt-5",role:"cell",children:m("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),Ue=u((e=>{const{className:t,title:n}=e;return h("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[n?m(j,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,m("div",{role:"table",children:m(Ye,{...e})})]})})),Ye=u((({columns:e=[],rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:r,orientation:s,...a})=>{const[o,c]=i(new Array(e.length).fill(!r)),d=l((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),h=l((()=>c((e=>new Array(e.length).fill(!1)))),[]),u=e?.map((({data:e,header:i},l)=>{return m(Je,{visibleRowLength:r,showRow:o[l],header:i,columnData:(s=e,s?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===l&&n,onToggleColumn:()=>d(l),...a},String(l));var s}));return"horizontal"===s?m(be,{onVisibleIndicesChange:h,children:u}):u})),Ke=new Map;function Xe(e,t,{fallback:n}={}){const l=s((()=>qe(e)),[e]),[a,o]=i(),[c,d]=i(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!l.every((e=>null===e)))try{const e=t(...l);"then"in e?(e=>{e.then((e=>Ke.get(l)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...l]);const u=l[0],p=n&&"string"==typeof u&&n[u];return{data:a||c||!p?a:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function qe(e){return e?Array.isArray(e)?e:e instanceof Function?qe(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 Ze(e,t={}){const{data:n}=Xe(`/wcms-resources/${e}.json`,Qe,{fallback:t});return n||{}}const et=u((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:r}=(()=>{const[e,t]=i("");return{term:e,setTerm:e=>t(e)}})(),l=t?"text-s":"text-l-light",s=t?" placeholder-transparent":"h-full",a=t?"some search":void 0;return h("form",{className:`font-sans relative ${e}`,children:[h("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[m("div",{className:t?"w-5 h-5":"w-6 h-6",children:m(K,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),n?null:m("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${l}`,children:"Поиск по сайту"})]}),m("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 ${s}`,value:n,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:a}),t?m("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:m(K,{image:{icon:"CloseIcon"},width:"24",height:"24"})}):m(Me,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:m("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),tt=u((e=>m(et,{...e,isMobile:!0}))),nt=u((({className:e="",documents:t,...n})=>m(I,{className:`font-sans bg-white mt-2.5 ${e}`,...n,children:m("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?it(t):null})}))),it=e=>e.map(((e,t)=>{const{text:n,...i}=e;return m("li",{className:"mb-4 list-none",children:m("a",{className:"hover:text-primary-main",role:"link",...i,children:n||null})},`list_item_${String(t)}`)})),rt={"bg-white":"color",transparent:"white"},lt={"bg-white":"text-primary-main",transparent:"text-white"},st=(e,t,n)=>m(K,t?.src?{image:t,className:lt[e],width:n?.width,height:n?.height,pathPrefix:"/wcms-resources/",asSVG:!0}:{image:{icon:t?.icon||"LogoIcon",iconVersion:rt[e]},className:lt[e],width:n?.width,height:n?.height,asSVG:!0}),at={"bg-white":"text-primary-text",transparent:"text-white"},ot=(e,t,n)=>m("span",{className:`${at[t]} ml-2.5 font-medium ${n||""}`,children:e||"Россельхозбанк"}),ct=u((({bgColor:e="bg-white",children:t,className:n="",href:i,logo:r,showTitle:l=!0,targetBlank:s})=>h("a",{className:`inline-flex items-center font-sans no-underline ${n}`,href:i||"https://rshb.ru/",target:s?"_blank":"_self","aria-label":r?.title||"Россельхозбанк",children:[st(e,r?.image,{width:"34",height:"34"}),l?ot(t||r?.title,e,"text-s"):null]}))),dt=u((({className:e="",title:t="Мобильное приложение",description:n,href:i="#"})=>m("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:i?h("div",{className:"flex",children:[m("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-12 h-12",children:m(ct,{className:"w-8",bgColor:"transparent",showTitle:!0})}),h("a",{href:i,target:"_blank",className:"flex flex-col justify-center pl-3",children:[m("div",{className:"text-s font-medium mb-[3px]",children:t}),m("div",{className:"text-s text-secondary-text",children:n})]})]}):null}))),mt=u((({className:e="",items:t,hasButton:n})=>h("div",{className:e,children:[t?.length?t.map(ht):null,n?m(Me,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),ht=(e,t)=>{const{type:n,text:i,description:r}=e;return h("div",{className:"mb-4",children:[m("div",{children:ut(n,i)}),m("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},ut=(e,t="")=>{switch(e){case"tel":return m("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${pt(t)}`,children:t});case"email":return m("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return m("span",{children:t})}},pt=e=>e.replaceAll(/\D/g,""),gt=u((({className:e="",index:t,text:n,...i})=>{const r=Ce(),{href:l,target:s,onClick:a}=r(i);return m("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:s,onClick:a,children:n||`Документ ${t}`})})),bt=u((({title:e,links:t,className:n=""})=>h("div",{className:n,children:[m("span",{className:"text-primary-text text-s font-medium",children:e}),t?.length?m("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>m(gt,{index:t,className:"text-s",...e},String(t))))}):null]}))),xt=[{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"}],ft={default:" w-14 h-14",small:" w-12 h-12"},yt=u((({version:e="primary",isRounded:t=!1,buttonSize:n="default",...i})=>{const r=Ce(),{href:l,onClick:s}=r(i),{icon:a,label:o}=xt.find((({origins:e})=>e.some((e=>l?.includes(e)))))||{};if(!a)return null;return m("a",{className:`flex items-center justify-center group box-border ${"secondary"===e?"bg-white hover:bg-secondary-hover":"border-solid border border-main-divider hover:border-transparent hover:bg-primary-main"} ${t?"rounded-full":"rounded-md"} ${"primary"===e?"hover:text-black":""} ${ft[n]}`,href:l,"aria-label":o,target:"_blank",rel:"noopener noreferrer",onClick:s,children:a?m(K,{image:q(a),imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),Nt=u((({className:e="",media:t,version:n})=>m("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e}`,children:t?.map(((e,t)=>m(yt,{version:n,...e},String(t))))}))),vt=u((({className:e="",index:t,...n})=>{const i=Ce(),{href:r,target:l,text:s,onClick:a}=i(n);return m("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:l,onClick:a,children:s||`Документ ${t}`})})),wt=u((({className:e="",links:t})=>h("div",{className:e,children:[m("div",{className:"py-6",children:m("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?m("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>m(vt,{index:t,...e},String(t))))}):null]}))),kt=u((({className:e="",...t})=>{const n=t.options?.page?.fallback,i=Ze(o.SITEMAP||"sitemap",n),{documents:r,relatedEnterprises:l,contacts:s,socialMedia:a,horizontalNavigationTitle:c}=Ze(o.FOOTER||"footer",n);return h("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[m(mt,{className:"overflow-hidden",items:s,hasButton:!0}),m(B,{children:i.topItems?.map(((e,t)=>m(Z,{label:e.text,children:m(nt,{documents:e.items})},String(t))))}),m("div",{children:i?.dispositions?.map($t)}),m(dt,{title:"Мобильное приложение",description:"Загрузить для IOS и Android",...t}),m(tt,{className:"grow"}),m(Nt,{className:"pb-4",media:a}),m(bt,{title:c,links:l}),m(wt,{links:r})]})})),$t=(e,t)=>{const{icon:n,href:i,text:r}=e;return h(Me,{version:"link",href:i,className:"flex text-s mb-4 w-6",children:[n?m(K,{className:"pr-1",image:q(n),width:"24",height:"24",asSVG:!0}):null,m("span",{className:"pl-2.5 font-medium text-primary-text",children:r})]},`footer-${t}`)},Ct={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},St=u((({title:e,description:t,cards:n=[],className:i,orientation:r="horizontal"})=>h("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${i}`,children:[h("div",{className:"flex flex-col items-center mb-5",children:[e?m(j,{headingType:"h3",className:`text-center ${t?"mb-2":"mb-5"}`,title:e}):null,t?m("div",{className:"text-m max-w-[600px] text-center mb-5",children:t}):null]}),Tt(r,n)]})));function Tt(e,t){return"horizontal"===e?m(be,{children:t?.map(_t)}):m("div",{className:"grid gap-3.5",children:t?.map(_t)})}function _t(e,t){return h("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 ${Ct[e.version??"primary"]}`,children:[h("div",{children:[It(e.icon),e.title?m("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?At(e):null,e.items?.length?Rt(e.items,e.isDotted,e.version):null]}),e?.button?.text?(n=e.button,m(Me,{className:"mt-3",...n})):null]},t);var n}const It=e=>e?.src||e?.icon?m("div",{className:"flex justify-center",children:m(K,{className:"mb-3.5",image:e})}):null;function At(e){return m("div",{className:"text-secondary-text mt-1 text-s "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const jt={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"};function Rt(e,t,n="primary"){return m("section",{className:"mt-3",children:e.map(((e,i)=>h("div",{children:[t?m("div",{className:`rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${jt[n]}`}):null,m("span",{className:"text-m font-medium",children:e.title}),m("span",{className:"text-s pl-2 "+("primary"===n?"text-secondary-text":""),children:e.text})]},String(i))))})}const Bt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(fe((e=>xe(e)||e?.startsWith("/")?e:`${o.BASE_PATH||""}${e}`)(e)),fe(xe(e)?t.href:Ne(t.href))),Dt=e=>t=>Bt(t.href,e),Ot=e=>t=>t.items?.some(Dt(e))||Bt(t.href,e)||((e,t)=>[ye(e),ye(t.href)].every(((e,t,n)=>Boolean(e)&&e===n[0])))(t.href,e)||Boolean(o.BASE_PATH?.startsWith(t.href||"/")),Vt="absolute left-0 -bottom-3 w-full h-0.5",Mt=u((({className:e="",text:t,href:n,target:i,active:r,onClick:l,children:s,bgColor:a="bg-white"})=>h("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:n,target:i,onClick:l,children:[m("span",{className:Pt(a,r),children:t||s}),r?m("div",{className:Lt(a,r)}):null]}))),Pt=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans text-s`},Lt=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Vt}`:Vt,Et=864e5;function zt(e,t,n=globalThis?.localStorage){const i=l((async(...i)=>{const r=`async:${e}`,l=function(e){const{data:t=null,timestamp:n=null}=e?JSON.parse(e):{};return t&&Date.now()-n<Et?t:void 0}(n.getItem(r));if(l)return l;const s=await t(...i);return n.setItem(r,JSON.stringify({data:s,timestamp:Date.now()})),s}),[e,t]);return Xe(e,i)}const Ft=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}},Ht=u((({burgerSubMenu:e,onClick:t,defaultLocation:n="",children:s})=>{const[a]=function(e){const t=Ft(),[n,s]=i(t?.region??{name:e}),{data:a}=zt("/api/v1/region",Qe);return r((()=>{s(t?.region&&t?.manual?t.region:a||{name:e})}),[a]),[n,l((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),s(e)}),[s])]}(n);return h("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[m("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:t,children:m(K,{image:{icon:"CloseIcon"},width:"24",height:"24",asSVG:!0})}),h("button",{className:"flex items-center text-s p-0 mb-4 bg-transparent cursor-pointer",children:[m(K,{image:{icon:"GeolocationIcon"},width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),m(X,{color:"text-secondary-text",children:a.name})]}),s,m("div",{className:"mb-7",children:e?.map(Gt)}),m(tt,{className:"grow"})]})})),Gt=(e,t)=>{const{icon:n,href:i,text:r}=e;return h("a",{href:i,className:"flex text-s mb-4 hover:text-primary-main",children:[n?m(K,{className:"text-primary-main pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,m("span",{className:"font-medium pl-0.5",children:r})]},`headerSubMenu-${t}`)},Jt=u((({onClick:e,bgColor:t,logo:n})=>h("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-12",children:[h("div",{className:"flex items-center",children:[m("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:m(K,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),m(ct,{className:"mr-8",bgColor:t,logo:n})]}),m("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-s border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),Wt=u((({className:e="",bgColor:t="bg-white",...n})=>{const r=$e(),s=n.options?.page?.fallback,{topItems:a,dispositions:c,defaultLocation:d,logo:u}=Ze(o.SITEMAP||"sitemap",s),p=a?.find(Ot(r)),g=p?.items,b=(e=>(t=[])=>{const n=t?.filter(Dt(e));return n?.length?me((e=>e.href?.length||0))(n):void 0})(r)(g),[x,f]=i(!1),y=l((()=>f((e=>!e))),[]);return h("header",{className:`${t} ${e}`,children:[h("div",{className:"container px-4 py-0 box-border",children:[m(Jt,{onClick:y,bgColor:t,logo:u}),m("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-12",children:m("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:g?.map(((e,n)=>m(Mt,{className:"mr-8 whitespace-nowrap text-s",active:e===b,bgColor:t,...e},String(n))))})})]}),x?m(Ht,{onClick:y,burgerSubMenu:c,defaultLocation:d,children:m(B,{children:a?.map(((e,t)=>m(Z,{label:e.text,children:m(nt,{documents:e.items})},String(t))))})}):null]})})),Ut={transparent:{wrapper:"bg-transparent",titleColor:"text-primary-text"},primary:{wrapper:"bg-white",titleColor:"text-primary-text"},secondary:{wrapper:"bg-primary-main",titleColor:"text-white",descriptionColor:"text-white/80"}},Yt=u((({className:e="",title:t,description:n,image:i,bgColorHeadline:r="transparent",align:l="text-left"})=>{const s=Ut[r];return h("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${s.wrapper} ${e}`,children:[t?m(j,{headingType:"h2",className:`${s.titleColor} ${l}`,title:t}):null,n?m(R,{color:s.descriptionColor||s.titleColor,size:"text-m",align:l,children:n}):null,i?.src&&m("div",{className:"mt-2.5 mx-auto flex justify-center",children:m(K,{image:i})})]})})),Kt=u((({className:e,iconClassName:t,textClassName:n,suffixClassName:i,doc:r,icon:l})=>{const{text:s,fileSize:a,...o}=r;return h("a",{className:e,role:"link",...o,children:[l?m(K,{className:t,image:q(l),width:"24px",height:"24px",asSVG:!0}):null,s?h("span",{className:n,children:[s,m("span",{className:i,children:o?.href&&Xt(qt(o.href),a)})]}):null]})})),Xt=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),qt=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Qt=u((({className:e="",doc:t,icon:n})=>m(Kt,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),Zt=u((({hasBorder:e=!0,documents:t,icon:n})=>m(be,{className:"text-s text-primary-main mt-5",children:t?.length?t.map(((t,i)=>m(Qt,{className:e?"rounded-md border-gray border border-solid p-4":"",doc:t,icon:n},String(i)))):null}))),en=u((({hasBorder:e=!0,documents:t,icon:n})=>m("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)=>m("div",{role:"listitem",children:m(Qt,{className:e?"rounded-md border-gray border border-solid p-4":"",doc:t,icon:n})},String(i)))):null}))),tn=u((({className:e="",title:t,description:n,icon:i={icon:"DocIconMonoColor"},documents:r,orientation:l="vertical",hasBorder:s=!0,...a})=>h("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[m(Yt,{className:"!p-0 "+(n?"gap-2":"gap-5"),title:t,description:n,...a}),m("vertical"===l?en:Zt,{hasBorder:s,documents:r,icon:i})]}))),nn=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function rn(e=""){const t=nn(e);return t<=4?"S":t<=8?"M":"L"}function ln(e=""){const t=nn(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function sn(e=""){const t=nn(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const an=u((({className:e,title:t,description:n="Блок в разработке...",...i})=>h(I,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${sn(e)} ${ln(e)} `,...i,children:[m(Yt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:rn(e),...i}),m("figure",{className:"m-0 min-w-[80%]",children:on()})]}))),on=(e=3)=>dn(100,e).map((e=>Math.floor(e))).map(cn),cn=(e,t)=>m("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),dn=(e,t)=>[e].concat(t>0?dn(e/1.618,t-1):[]),mn=u((({className:e="",buttons:t})=>t&&t?.length?m("div",{className:e,children:t.map(((e,t)=>hn({button:e,index:t})))}):null));function hn({button:e,buttonClassName:t,index:n}){const{icon:i,iconRight:r,version:l,text:s,...a}=e,o="secondary"===l?"color":"white",c=un({...i,iconVersion:o}),d=un({...r,iconVersion:o});return s?m(Me,{className:t,appendLeft:c,appendRight:d,version:l,text:s,...a},n?String(n):""):null}const un=e=>{if(!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return m(K,{image:e,width:t,height:"24",asSVG:!0})},pn={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},gn={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"},bn=u((({className:e="",isDotted:t=!0,children:n,version:i="primary",size:r="M"})=>h("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?m("div",{children:m("div",{className:`rounded-full align-middle inline-block ${pn[i]} ${gn[r]}`})}):null,m("span",{children:n})]}))),xn={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},fn={S:"text-l-light",M:"text-h6",L:"text-h5"},yn={S:"ml-2",M:"ml-3",L:"ml-4"},Nn=u((e=>{const{className:t="",hasIndent:n,isDotted:i,itemClassName:r="",items:l,listItemSize:s="M",version:a="primary"}=e;return l?.length?m("section",{className:`${xn[a]} ${fn[s]} ${t} ${n?yn[s]:""}`,role:"list",children:l.map(((e,t)=>m(bn,{className:`${r} mb-1.5`,isDotted:i,version:a,size:s,children:e},String(t))))}):null})),vn=u((({className:e="",title:t="",buttons:n,image:i,children:r})=>h("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,h("div",{className:"flex grow w-full justify-between",children:[h("div",{className:"flex flex-col justify-between w-full",children:[m("div",{className:"h-full",children:r}),n?m("div",{className:"mt-auto pt-8",children:n}):null]}),i]})]}))),wn={primary:"text-primary-text",secondary:"text-white"},kn={primary:"text-secondary-text",secondary:"text-white"},$n=u((e=>{const{className:t="",icon:n,label:i,description:r,version:l="primary",benefitsVersion:s="normal"}=e,a="white"===s?"secondary":"primary";return h("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[n?m("div",{className:Cn(l,s),children:m(K,{className:"w-6 h-6",image:q(n,a),asSVG:!0})}):null,h("div",{className:"gap-0.5",children:[i?m("div",{className:`text-h6 ${wn[l]}`,children:i}):null,r?m("div",{className:`text-m-light ${kn[l]}`,children:r}):null]})]})}));function Cn(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 Sn=(e="primary",t="normal")=>({icon:n,label:i,description:r},l)=>m($n,{icon:n,label:i,description:r,version:e,benefitsVersion:t},String(l)),Tn=u((({className:e="",headlineVersion:t="L",benefits:n,benefitsVersion:i="normal",buttons:r,image:l,items:s,version:a="primary",isDotted:o=!0,label:c,...d})=>h("div",{className:`w-full ${e}`,children:[h("div",{children:[c?An(c,a):null,m(Yt,{className:"!p-0 max-w-[600px]",bgColorHeadline:a,headlineVersion:t,...d}),h(vn,{buttons:r?.length?m(mn,{buttons:r,className:"flex flex-col mt-5 gap-2.5"}):null,children:[n?.filter((e=>e.label))?.length?m("div",{className:"mt-3",children:n.map(Sn(a,i))}):null,s?.length?m(Nn,{className:"mt-3 text-m",items:s,version:a,isDotted:o}):null]})]}),_n(l)]})));function _n(e){return e?.src?m(K,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const In={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},An=(e,t)=>m("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${In[t]}`,children:e}),jn=u((e=>{const{className:t="",version:n="primary"}=e;return m("section",{className:`font-sans bg-white px-4 py-6 ${Ct[n]} ${t}`,children:m(Tn,{...e})})})),Rn={primary:{background:"bg-white",title:"text-primary-text",description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{background:"bg-primary-main",title:"text-white",description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},Bn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-12 w-12 min-w-12 min-h-12"},Dn={normal:"min-h-[70px]",small:"min-h-12"},On=u((({className:e,title:t,description:n,showLines:i=!0,steps:r,size:l="normal",version:s="primary"})=>{const a=Rn[s];return h("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${a.background} ${a.title} ${e||""}`,children:[t?m(j,{headingType:"h3",className:`text-center ${a.title}`,title:t}):null,n?m("p",{className:`text-m-light text-center ${a.description} ${t?"mt-2":""}`,children:n}):null,r?.length?m("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:m("div",{className:"flex flex-col justify-between gap-x-[101px]",children:r.map(Vn(l,s,i))})}):null]})})),Vn=(e,t,n)=>(i,r,l)=>{const s=l.length-1===r,a="normal"===e?"ml-[34px]":"ml-6",o=Rn[t];return m("div",{children:h("div",{className:"flex flex-row text-center relative",children:[h("div",{className:"overflow-hidden flex-shrink-0",children:[Mn(e,t)(i,r),s?null:m("div",{className:`min-h-8 h-full w-0.5 ${n?o.iconConnector:""} ${a}`})]}),h("div",{className:`flex flex-col justify-center h-fit ${Dn[e]}`,children:[i.label?m("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:i.label}):null,i.description?m("div",{className:`text-s ${o.description} text-left`,children:i.description}):null]})]})},String(r))},Mn=(e,t)=>(n,i)=>{const r=Rn[t],l="normal"===e?"38":"27",s="normal"===e?"text-m-title":"text-m-title-xs";return m("div",{className:`${Bn[e]} ${r.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:m("span",{className:`font-medium flex self-center ${r.title} ${s}`,children:(a=n?.icon,Boolean(a?.icon||a?.src)?m(K,{image:q({...n.icon},t),width:l,height:l,asSVG:!0}):m("span",{children:i+1}))})});var a},Pn={Buttons:({buttons:e})=>e&&e?.length?m("div",{children:e.map((({rounded:e,icon:t,...n},i)=>hn({button:{rounded:e,icon:t,...n},buttonClassName:`mt-3 ${i>0&&e?"ml-2.5":""} ${t?"w-12 h-12":""}`,index:i})))}):null,Img:({image:e})=>e?.src?m(K,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>m(Nn,{className:"flex flex-col justify-between items-start text-m",version:"gray",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>h("div",{children:[e?m("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?m("div",{className:"text-s text-secondary-text",children:t}):null]})},Ln=u((({title:e,icon:t})=>h("div",{className:"flex gap-2.5 mb-2",children:[e?m(j,{headingType:"h3",className:"font-medium",title:e}):null,t?m(K,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),En=u((({tile:e,...t})=>h("div",{className:"rounded-md border-gray h-full box-border border p-4",children:[m(Ln,{...e?.header}),e?.data?.length?e.data.map(((e,n)=>h("div",{children:[n>0?m("div",{className:"h-5"}):null,zn(e,t)]},String(n)))):null]})));function zn(e,t){if(!e||!e.tableCellType||!(e.tableCellType in Pn))return null;const n=Pn[e.tableCellType];return m(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const Fn=u((({tiles:e,...t})=>e?.length?m(be,{...t,children:e.map(((e,n)=>m(En,{tile:e,...t},String(n))))}):null)),Hn=u((({tiles:e,...t})=>e?.length?m("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>m(En,{tile:e,...t},String(n))))}):null)),Gn=u((({className:e,title:t,description:n,tariffsColumns:i,rowHeaders:r,orientation:l="vertical",...s})=>{const a=Jn(i),o=Wn(r,a);return h("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[t?m(j,{headingType:"h2",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?m("div",{className:"mb-5 text-center text-m",children:n}):null,m("vertical"===l?Hn:Fn,{tiles:o,...s})]})})),Jn=e=>e?.[0]?.data?e[0].data:[],Wn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Un={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},Yn=u((({title:e,description:t,blockVersion:n="primary",iconVersion:i,image:r,className:l="",items:s,isDotted:a=!0})=>{const o=Un[n],c="secondary"===n?"secondary":"gray";return h("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${l}`,children:["small"===i?Kn(o.icon):null,"big"===i?Xn(r):null,h("div",{className:"py-0.5",children:[e?m("div",{className:`text-l font-medium mb-1 ${o.title}`,children:e}):null,t?m("div",{className:`text-s ${o.description}`,children:t}):null,s?.length?m(Nn,{className:"mt-1 text-m",items:s,isDotted:a,version:c}):null]})]})}));function Kn(e){return m("div",{className:"mb-3",children:m("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function Xn(e){return e?.src?m(K,{className:"pb-3 mr-auto",image:e}):null}const qn={Accordion:D,AccordionItem:Z,ComparisonTable:Ue,Footer:kt,Gallery:St,Header:Wt,Headline:Yt,LinkDocs:tn,LinkList:nt,MobileAppTile:dt,ProductBlock:jn,StepsBlock:On,TariffsTable:Gn,TextBlock:Yn,Placeholder:an},Qn=["Header","Footer"],Zn=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function ei(e=_.inst,t=globalThis){const n=a(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])=>!Qn.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[n]=t.length>0?he(Zn)(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 ti=d();const ni=u((({className:e,onClick:t,ariaLabel:n})=>m("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:ii()}))),ii=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[m("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"}),m("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"})]})},ri=u((({className:e=""})=>{const t=function(e){const[t,n]=i(0);return r((()=>{(async()=>{const[t]=await ti.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:l((async()=>{n(await ti.like(e))}),[e]),dislike:l((async()=>{n(await ti.dislike(e))}),[e])}}($e().pathname);return h("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:[m(ni,{onClick:ke(t.like),ariaLabel:"Поставить отметку «лайк»"}),m(ni,{onClick:ke(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),m("span",{className:"select-none",children:t.likeCount})]})})),li=u((e=>{const{className:t="",blocksRegistry:n,blockDecorator:i,data:r={}}=e,{style:l,blocks:s,slots:a,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:n,blockDecorator:i,parent:r};return ei(),h("section",{className:`relative ${g(l)} ${t}`,"data-theme":c,children:[a?.header?m("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:v(a?.header,{...d,slotName:"header"})}):null,h("div",{className:"container grid grid-cols-12 gap-1",children:[v(s,d),a?.footer?v(a?.footer,{...d,slotName:"footer"}):null]}),o?m("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:m(ri,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));li.childrenTypes=[],li.slots=()=>["header","footer"];e.Blocks=qn,e.ContentPage=li,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=d,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.7.1",e.projectSettings=o,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=we,e.useRouter=$e,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,5 +1,5 @@
1
- import type { UniBlockProps } from '../../model/JSXBlock';
2
1
  import type { CarouselTariffsCardContent } from './CarouselTariffsCardContent';
2
+ import type { UniBlockProps } from '../../model/JSXBlock';
3
3
  export interface CarouselTariffsCardProps extends CarouselTariffsCardContent, UniBlockProps {
4
4
  }
5
5
  export declare const CarouselTariffsCard: import("@redneckz/uni-jsx").UNIComponent<CarouselTariffsCardProps, any, any>;
@@ -11,5 +11,5 @@ export declare type CarouselTariffsCardContent = TitleProps & {
11
11
  /** @title Кнопка */
12
12
  button?: ButtonProps;
13
13
  /** @title Ячейка */
14
- rows?: HeadlineCommonProps[];
14
+ cardCells?: HeadlineCommonProps[];
15
15
  };
@@ -39,5 +39,9 @@ export declare type LinkDocsContent = HeadlineCommonProps & {
39
39
  /** @title Отображать элементы в моб. версии (прокрутка shift+mouseScroll) */
40
40
  orientation?: ListOrientation;
41
41
  /** @title Рамка элементов (моб.) */ hasBorder?: boolean;
42
+ /**
43
+ * @title Выравнивание
44
+ * @default text-center
45
+ */
42
46
  align?: TextAlign;
43
47
  };
@@ -0,0 +1,6 @@
1
+ import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
2
+ import type { SwipeListControlBlockContent } from './SwipeListControlBlockContent';
3
+ interface SwipeListControlBlockProps extends SwipeListControlBlockContent, UniBlockProps {
4
+ }
5
+ export declare const SwipeListControlBlock: JSXBlock<SwipeListControlBlockProps>;
6
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { SwipeListControlProps } from '../../ui-kit/SwipeListControl/SwipeListControlProps';
2
+ /**
3
+ * @title Swipe-контроллер
4
+ */
5
+ export declare type SwipeListControlBlockContent = SwipeListControlProps;
@@ -1,4 +1,4 @@
1
- import type { SwipeContainerProps } from './SwipeListControlProps';
1
+ import type { SwipeContainerProps, SwipeListControlType } from './SwipeListControlProps';
2
2
  declare type ItemsVisibilityList = Array<IntersectionObserverEntry | undefined>;
3
3
  declare type SwipeListItemWidthAuto = 0;
4
4
  /**
@@ -14,6 +14,7 @@ interface SwipeListContainerProps extends SwipeContainerProps {
14
14
  snapAlign?: 'snap-start' | 'snap-center' | 'snap-end';
15
15
  onVisibleItemsChange?: (itemsVisibilityList: ItemsVisibilityList) => void;
16
16
  onVisibleIndicesChange?: (indices: number[]) => void;
17
+ listType?: SwipeListControlType;
17
18
  }
18
19
  export declare const SwipeListContainer: import("@redneckz/uni-jsx").UNIComponent<SwipeListContainerProps, any, any>;
19
20
  export {};
@@ -1,9 +1,11 @@
1
+ import type { SwipeListControlType } from './SwipeListControlProps';
1
2
  interface SwipeListControlDotsProps {
2
3
  containerRef?: {
3
4
  current: HTMLDivElement | null;
4
5
  };
5
6
  activeIndex?: number;
6
7
  dotCount?: number;
8
+ listType?: SwipeListControlType;
7
9
  }
8
10
  export declare const SwipeListControlDots: import("@redneckz/uni-jsx").UNIComponent<SwipeListControlDotsProps, any, any>;
9
11
  export {};
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @title Вид
3
+ * @enumNames ["Горизонтальный", "Вертикальный"]
4
+ */
5
+ export declare type SwipeListControlType = 'horizontal-list' | 'vertical-list';
1
6
  /**
2
7
  * @title Контейнер
3
8
  */
@@ -14,5 +19,7 @@ export interface SwipeListControlProps extends SwipeContainerProps {
14
19
  className?: string;
15
20
  /** @title Точки-индикаторы */
16
21
  showDots?: boolean;
22
+ /** @hidden */
17
23
  onVisibleIndicesChange?: (indices: number[]) => void;
24
+ listType?: SwipeListControlType;
18
25
  }
@@ -0,0 +1 @@
1
+ export declare const style: (...atoms: (string | null | undefined)[]) => string;
@@ -6,8 +6,8 @@ const ButtonSection_1 = require("../../ui-kit/Button/ButtonSection");
6
6
  const Headline_1 = require("../Headline/Headline");
7
7
  const BLOCK_CLASSES = 'absolute border border-solid border-gray w-full h-full';
8
8
  const CARD_WIDTH_MAP = {
9
- normal: 'min-w-[1007px]',
9
+ normal: 'min-w-[970px]',
10
10
  mini: 'min-w-[355px]',
11
11
  };
12
- exports.CarouselCard = (0, uni_jsx_1.JSX)(({ className = '', button, description, title, version = 'normal' }) => ((0, jsx_runtime_1.jsx)("section", { className: `flex pb-9 pl-12 ${CARD_WIDTH_MAP[version]} ${className}`, children: (0, jsx_runtime_1.jsxs)("div", { className: "relative w-full", children: [(0, jsx_runtime_1.jsx)("div", { className: `${BLOCK_CLASSES} z-10 top-9 right-12 bg-green-dark` }), (0, jsx_runtime_1.jsx)("div", { className: `${BLOCK_CLASSES} z-10 top-6 right-8 bg-green` }), (0, jsx_runtime_1.jsx)("div", { className: `${BLOCK_CLASSES} z-10 top-3 right-4 bg-green-light` }), (0, jsx_runtime_1.jsxs)("div", { className: "relative bg-white z-10 py-6 px-10 border border-solid border-green-light", children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M" }), button ? (0, jsx_runtime_1.jsx)("div", { className: "mt-6", children: (0, ButtonSection_1.renderButton)({ button }) }) : null] })] }) })));
12
+ exports.CarouselCard = (0, uni_jsx_1.JSX)(({ className = '', button, description, title, version = 'normal' }) => ((0, jsx_runtime_1.jsx)("section", { className: `flex pb-9 pl-12 border-box ${CARD_WIDTH_MAP[version]} ${className}`, children: (0, jsx_runtime_1.jsxs)("div", { className: "relative w-full", children: [(0, jsx_runtime_1.jsx)("div", { className: `${BLOCK_CLASSES} z-10 top-9 right-12 bg-green-dark` }), (0, jsx_runtime_1.jsx)("div", { className: `${BLOCK_CLASSES} z-10 top-6 right-8 bg-green` }), (0, jsx_runtime_1.jsx)("div", { className: `${BLOCK_CLASSES} z-10 top-3 right-4 bg-green-light` }), (0, jsx_runtime_1.jsxs)("div", { className: "relative bg-white z-10 p-10 border border-solid border-green-light", children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: "!p-0", title: title, description: description, headlineVersion: "L", align: "text-left" }), button ? (0, jsx_runtime_1.jsx)("div", { className: "mt-14", children: (0, ButtonSection_1.renderButton)({ button }) }) : null] })] }) })));
13
13
  //# sourceMappingURL=CarouselCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CarouselCard.js","sourceRoot":"","sources":["../../../src/components/CarouselCard/CarouselCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,qEAAiE;AACjE,mDAAgD;AAKhD,MAAM,aAAa,GAAG,wDAAwD,CAAC;AAE/E,MAAM,cAAc,GAAwC;IAC1D,MAAM,EAAE,gBAAgB;IACxB,IAAI,EAAE,eAAe;CACtB,CAAC;AAEW,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,GAAG,QAAQ,EAAE,EAAE,EAAE,CAAC,CACtE,oCAAS,SAAS,EAAE,mBAAmB,cAAc,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,YAC3E,iCAAK,SAAS,EAAC,iBAAiB,aAC9B,gCAAK,SAAS,EAAE,GAAG,aAAa,oCAAoC,GAAI,EACxE,gCAAK,SAAS,EAAE,GAAG,aAAa,8BAA8B,GAAI,EAClE,gCAAK,SAAS,EAAE,GAAG,aAAa,oCAAoC,GAAI,EACxE,iCAAK,SAAS,EAAC,0EAA0E,aACvF,uBAAC,mBAAQ,IAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAC,GAAG,GAAG,EACxF,MAAM,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,MAAM,YAAE,IAAA,4BAAY,EAAC,EAAE,MAAM,EAAE,CAAC,GAAO,CAAC,CAAC,CAAC,IAAI,IACnE,IACF,GACE,CACX,CACF,CAAC"}
1
+ {"version":3,"file":"CarouselCard.js","sourceRoot":"","sources":["../../../src/components/CarouselCard/CarouselCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,qEAAiE;AACjE,mDAAgD;AAKhD,MAAM,aAAa,GAAG,wDAAwD,CAAC;AAE/E,MAAM,cAAc,GAAwC;IAC1D,MAAM,EAAE,eAAe;IACvB,IAAI,EAAE,eAAe;CACtB,CAAC;AAEW,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,GAAG,QAAQ,EAAE,EAAE,EAAE,CAAC,CACtE,oCAAS,SAAS,EAAE,8BAA8B,cAAc,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,YACtF,iCAAK,SAAS,EAAC,iBAAiB,aAC9B,gCAAK,SAAS,EAAE,GAAG,aAAa,oCAAoC,GAAI,EACxE,gCAAK,SAAS,EAAE,GAAG,aAAa,8BAA8B,GAAI,EAClE,gCAAK,SAAS,EAAE,GAAG,aAAa,oCAAoC,GAAI,EACxE,iCAAK,SAAS,EAAC,oEAAoE,aACjF,uBAAC,mBAAQ,IACP,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAC,GAAG,EACnB,KAAK,EAAC,WAAW,GACjB,EACD,MAAM,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,OAAO,YAAE,IAAA,4BAAY,EAAC,EAAE,MAAM,EAAE,CAAC,GAAO,CAAC,CAAC,CAAC,IAAI,IACpE,IACF,GACE,CACX,CACF,CAAC"}
@@ -7,6 +7,6 @@ const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
7
7
  const Heading_1 = require("../../ui-kit/Heading/Heading");
8
8
  const Img_1 = require("../../ui-kit/Img/Img");
9
9
  const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
10
- exports.CarouselProgramsCard = (0, uni_jsx_1.JSX)(({ className = '', title, icon, list = [], version = 'primary', ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `font-sans border border-gray flex min-w-[536px] ${BlockVersion_1.VersionStyleMap[version]} ${className}`, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-[200px] min-w-[200px] self-end", children: [icon?.icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: (0, getIconWithVersion_1.getIconWithVersion)(icon), asSVG: true }) : null, icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) : null] }), (0, jsx_runtime_1.jsxs)("div", { className: "p-8 pl-3 w-full", children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: " mb-3.5", headingType: "h5", title: title }) : null, list.length ? (0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-3", children: list?.map(renderList) }) : null] })] })));
10
+ exports.CarouselProgramsCard = (0, uni_jsx_1.JSX)(({ className = '', title, icon, list = [], version = 'primary', ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `font-sans border border-gray flex min-w-[536px] ${BlockVersion_1.VersionStyleMap[version]} ${className}`, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-[200px] min-w-[200px] self-center", children: [icon?.icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: (0, getIconWithVersion_1.getIconWithVersion)(icon), asSVG: true }) : null, icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) : null] }), (0, jsx_runtime_1.jsxs)("div", { className: "p-8 pl-3 w-full", children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: " mb-3.5", headingType: "h5", title: title }) : null, list.length ? (0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-3", children: list?.map(renderList) }) : null] })] })));
11
11
  const renderList = (_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "break-words", children: [_.title ? (0, jsx_runtime_1.jsx)("div", { className: `text-h6`, children: _.title }) : null, _.description ? (0, jsx_runtime_1.jsx)("span", { className: "text-l-light mt-1", children: _.description }) : null] }, String(i)));
12
12
  //# sourceMappingURL=CarouselProgramsCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CarouselProgramsCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProgramsCard/CarouselProgramsCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAA2D;AAG3D,4DAAyD;AACzD,0DAAuD;AACvD,8CAA2C;AAC3C,uEAAoE;AAKvD,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,GAAG,EAAE,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC5E,wBAAC,2BAAY,IACX,SAAS,EAAE,mDAAmD,8BAAe,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,KACjG,IAAI,aAER,iCAAK,SAAS,EAAC,kCAAkC,aAC9C,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAA,uCAAkB,EAAC,IAAI,CAAC,EAAE,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,EAClE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,IACpC,EACN,iCAAK,SAAS,EAAC,iBAAiB,aAC7B,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,SAAS,EAAC,SAAS,EAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC7E,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,qBAAqB,YAAE,IAAI,EAAE,GAAG,CAAC,UAAU,CAAC,GAAO,CAAC,CAAC,CAAC,IAAI,IACpF,IACO,CAChB,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,CAAsB,EAAE,CAAS,EAAE,EAAE,CAAC,CACxD,iCAAqB,SAAS,EAAC,aAAa,aACzC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAE,SAAS,YAAG,CAAC,CAAC,KAAK,GAAO,CAAC,CAAC,CAAC,IAAI,EAC3D,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,iCAAM,SAAS,EAAC,mBAAmB,YAAE,CAAC,CAAC,WAAW,GAAQ,CAAC,CAAC,CAAC,IAAI,KAF1E,MAAM,CAAC,CAAC,CAAC,CAGb,CACP,CAAC"}
1
+ {"version":3,"file":"CarouselProgramsCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProgramsCard/CarouselProgramsCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAA2D;AAG3D,4DAAyD;AACzD,0DAAuD;AACvD,8CAA2C;AAC3C,uEAAoE;AAKvD,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,GAAG,EAAE,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC5E,wBAAC,2BAAY,IACX,SAAS,EAAE,mDAAmD,8BAAe,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,KACjG,IAAI,aAER,iCAAK,SAAS,EAAC,qCAAqC,aACjD,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAA,uCAAkB,EAAC,IAAI,CAAC,EAAE,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,EAClE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,IACpC,EACN,iCAAK,SAAS,EAAC,iBAAiB,aAC7B,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,SAAS,EAAC,SAAS,EAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC7E,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,qBAAqB,YAAE,IAAI,EAAE,GAAG,CAAC,UAAU,CAAC,GAAO,CAAC,CAAC,CAAC,IAAI,IACpF,IACO,CAChB,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,CAAsB,EAAE,CAAS,EAAE,EAAE,CAAC,CACxD,iCAAqB,SAAS,EAAC,aAAa,aACzC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAE,SAAS,YAAG,CAAC,CAAC,KAAK,GAAO,CAAC,CAAC,CAAC,IAAI,EAC3D,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,iCAAM,SAAS,EAAC,mBAAmB,YAAE,CAAC,CAAC,WAAW,GAAQ,CAAC,CAAC,CAAC,IAAI,KAF1E,MAAM,CAAC,CAAC,CAAC,CAGb,CACP,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { UniBlockProps } from '../../model/JSXBlock';
2
1
  import type { CarouselTariffsCardContent } from './CarouselTariffsCardContent';
2
+ import type { UniBlockProps } from '../../model/JSXBlock';
3
3
  export interface CarouselTariffsCardProps extends CarouselTariffsCardContent, UniBlockProps {
4
4
  }
5
5
  export declare const CarouselTariffsCard: import("@redneckz/uni-jsx").UNIComponent<CarouselTariffsCardProps, any, any>;