@meduza/ui-kit-2 0.1.9 → 0.1.10

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.
@@ -495,7 +495,116 @@ var Image = function Image(_ref) {
495
495
  })));
496
496
  };
497
497
 
498
- var styles$5 = {"root":"DotsOnImage-module_root__2XP3Q","dot":"DotsOnImage-module_dot__H1wua","popover":"DotsOnImage-module_popover__35Cpj","popoverTitle":"DotsOnImage-module_popoverTitle__343d8","dismiss":"DotsOnImage-module_dismiss__1EWXd"};
498
+ var styles$5 = {"root":"Popover-module_root__1v6f_","fadeOut":"Popover-module_fadeOut__3EZhx","visible":"Popover-module_visible__eK5ZQ","fadeIn":"Popover-module_fadeIn__AkrSN","overlay":"Popover-module_overlay__2SBL0","container":"Popover-module_container__FnZT-","disappear":"Popover-module_disappear__3Q9LI","dismiss":"Popover-module_dismiss__3RnLj","background":"Popover-module_background__1KKaP","appear":"Popover-module_appear__37vPd","body":"Popover-module_body__3h5UO"};
499
+
500
+ var Popover = function Popover(_ref) {
501
+ var children = _ref.children,
502
+ onClose = _ref.onClose;
503
+
504
+ var _useState = React.useState(true),
505
+ visible = _useState[0],
506
+ setVisible = _useState[1];
507
+
508
+ var handleClose = function handleClose() {
509
+ setVisible(false);
510
+ setTimeout(onClose, 350);
511
+ };
512
+
513
+ var handleScroll = function handleScroll() {
514
+ handleClose();
515
+ };
516
+
517
+ var escFunction = function escFunction(event) {
518
+ if (event.key === 'Escape') {
519
+ handleClose();
520
+ }
521
+ };
522
+
523
+ React.useEffect(function () {
524
+ window.addEventListener('keydown', escFunction, false);
525
+ window.addEventListener('scroll', handleScroll, false);
526
+ return function () {
527
+ window.removeEventListener('keydown', escFunction, false);
528
+ window.removeEventListener('scroll', handleScroll, false);
529
+ };
530
+ }, [visible]);
531
+ /* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */
532
+
533
+ return React__default.createElement("div", {
534
+ "data-testid": "popover",
535
+ className: makeClassName([[styles$5.root, true], [styles$5.visible, visible]])
536
+ }, React__default.createElement("div", {
537
+ className: styles$5.overlay,
538
+ onClick: function onClick() {
539
+ return handleClose();
540
+ }
541
+ }), React__default.createElement("div", {
542
+ className: styles$5.container
543
+ }, React__default.createElement("button", {
544
+ type: "button",
545
+ className: styles$5.dismiss,
546
+ onClick: function onClick() {
547
+ return handleClose();
548
+ },
549
+ "aria-label": "dismiss"
550
+ }), React__default.createElement("svg", {
551
+ width: "100%",
552
+ className: styles$5.background
553
+ }, React__default.createElement("defs", null, React__default.createElement("mask", {
554
+ id: "myMask",
555
+ x: "0",
556
+ y: "0",
557
+ width: "100%",
558
+ height: "100%"
559
+ }, React__default.createElement("rect", {
560
+ fill: "white",
561
+ y: "0",
562
+ width: "100%",
563
+ height: "100%",
564
+ x: "0"
565
+ }), React__default.createElement("svg", {
566
+ x: "50%",
567
+ overflow: "visible"
568
+ }, React__default.createElement("g", {
569
+ transform: "translate(-12 0)"
570
+ }, React__default.createElement("path", {
571
+ d: "M4.61852778e-14,9.76996262e-15 L9.84597532,5.80270273 C11.0992017,6.54128882 12.6546044,6.54128882 13.9078308,5.80270273 L23.7538061,9.76996262e-15 L4.61852778e-14,9.76996262e-15 Z"
572
+ }))))), React__default.createElement("rect", {
573
+ fill: "#F7F7F7",
574
+ id: "base-mask",
575
+ mask: "url(#myMask)",
576
+ x: "0",
577
+ y: "0",
578
+ width: "100%",
579
+ height: "100%"
580
+ })), React__default.createElement("div", {
581
+ className: styles$5.body
582
+ }, children)));
583
+ };
584
+
585
+ var styles$6 = {"root":"Footnote-module_root__2a0-B","body":"Footnote-module_body__259Ly","dismiss":"Footnote-module_dismiss__1HKG5"};
586
+
587
+ var Footnote = function Footnote(_ref) {
588
+ var children = _ref.children,
589
+ onClose = _ref.onClose;
590
+ return React__default.createElement("div", {
591
+ "data-testid": "footnote",
592
+ className: makeClassName([[styles$6.root, true]])
593
+ }, React__default.createElement("button", {
594
+ className: styles$6.dismiss,
595
+ type: "button",
596
+ onClick: function onClick() {
597
+ return onClose();
598
+ }
599
+ }, React__default.createElement(SvgSymbol, {
600
+ icon: "cross",
601
+ size: "unset"
602
+ })), React__default.createElement("div", {
603
+ className: styles$6.body
604
+ }, children));
605
+ };
606
+
607
+ var styles$7 = {"root":"DotsOnImage-module_root__2XP3Q","dot":"DotsOnImage-module_dot__H1wua","popover":"DotsOnImage-module_popover__35Cpj","popoverTitle":"DotsOnImage-module_popoverTitle__343d8","popoverBody":"DotsOnImage-module_popoverBody__2MSn7","popoverText":"DotsOnImage-module_popoverText__3v02w","dismiss":"DotsOnImage-module_dismiss__1EWXd"};
499
608
 
500
609
  var DotsOnImage = function DotsOnImage(_ref) {
501
610
  var _ref$block = _ref.block,
@@ -527,12 +636,12 @@ var DotsOnImage = function DotsOnImage(_ref) {
527
636
 
528
637
  return React__default.createElement("div", {
529
638
  "data-testid": "dots-on-image",
530
- className: styles$5.root
639
+ className: styles$7.root
531
640
  }, React__default.createElement("div", {
532
- className: styles$5.dots
641
+ className: styles$7.dots
533
642
  }, dots.map(function (dot) {
534
643
  return React__default.createElement("button", {
535
- className: styles$5.dot,
644
+ className: styles$7.dot,
536
645
  type: "button",
537
646
  key: dot.id,
538
647
  style: {
@@ -544,40 +653,42 @@ var DotsOnImage = function DotsOnImage(_ref) {
544
653
  return handleDotClick(dot);
545
654
  }
546
655
  }, dot.icon.type === 'svg' && React__default.createElement("div", {
547
- className: styles$5.icon,
656
+ className: styles$7.icon,
548
657
  dangerouslySetInnerHTML: {
549
658
  __html: dot.icon.svg_string
550
659
  }
551
660
  }), dot.icon.type === 'number' && dot.icon.number);
552
661
  })), React__default.createElement("div", {
553
- className: styles$5.image
662
+ className: styles$7.image
554
663
  }, React__default.createElement(Image, {
555
664
  optimized: optimized,
556
665
  width: width,
557
666
  height: height,
558
667
  alt: credit,
559
668
  display: display
560
- })), popover.show && React__default.createElement("div", {
561
- className: styles$5.popover
562
- }, React__default.createElement("button", {
563
- className: styles$5.dismiss,
564
- type: "button",
565
- onClick: function onClick() {
566
- return setPopover({
669
+ })), popover.show && React__default.createElement(React__default.Fragment, null, viewportSize().width >= MediaQuerySizes.LANDSCAPE_TABLET ? React__default.createElement("div", {
670
+ className: styles$7.popover
671
+ }, React__default.createElement(Footnote, {
672
+ onClose: function onClose() {
673
+ setPopover({
567
674
  show: false
568
675
  });
569
676
  }
570
- }, React__default.createElement(SvgSymbol, {
571
- icon: "cross",
572
- size: "unset"
573
- })), React__default.createElement("div", {
574
- className: styles$5.popoverTitle
575
- }, popover.title), React__default.createElement("div", {
576
- className: styles$5.popoverBody,
677
+ }, React__default.createElement("h3", null, popover.title), React__default.createElement("div", {
577
678
  dangerouslySetInnerHTML: {
578
679
  __html: popover.body
579
680
  }
580
- })));
681
+ }))) : React__default.createElement(Popover, {
682
+ onClose: function onClose() {
683
+ setPopover({
684
+ show: false
685
+ });
686
+ }
687
+ }, React__default.createElement("h3", null, popover.title), React__default.createElement("div", {
688
+ dangerouslySetInnerHTML: {
689
+ __html: popover.body
690
+ }
691
+ }))));
581
692
  };
582
693
 
583
694
  var makeStyleContext = function makeStyleContext(classNames, styleContext, styles) {
@@ -589,7 +700,7 @@ var makeStyleContext = function makeStyleContext(classNames, styleContext, style
589
700
  return classNames.concat(context);
590
701
  };
591
702
 
592
- var styles$6 = {"root":"Tag-module_root__3IqWC","small":"Tag-module_small__2IAb7","large":"Tag-module_large__22z_o","dark":"Tag-module_dark__sgnt1","light":"Tag-module_light__1zUhp","gold":"Tag-module_gold__2ksA7","gray":"Tag-module_gray__mGAO_","inherit":"Tag-module_inherit__2QB5U","is1to1":"Tag-module_is1to1__3EDbC","is1to2":"Tag-module_is1to2__3xbC6","isInSuperBlock":"Tag-module_isInSuperBlock__38JE0","is1to3":"Tag-module_is1to3__3j5K-","is1to4":"Tag-module_is1to4__2vq4r","slide":"Tag-module_slide__2nMDw","game":"Tag-module_game__3j5yG","card":"Tag-module_card__1EAeF","live":"Tag-module_live__rwXuR","episode":"Tag-module_episode__3o6gg","podcast":"Tag-module_podcast__VPoll","rich":"Tag-module_rich__2URd9","isInDynamicBlock":"Tag-module_isInDynamicBlock__1YM9I","mobile":"Tag-module_mobile__QQxuv","desktop":"Tag-module_desktop__1Bjsy"};
703
+ var styles$8 = {"root":"Tag-module_root__3IqWC","small":"Tag-module_small__2IAb7","large":"Tag-module_large__22z_o","dark":"Tag-module_dark__sgnt1","light":"Tag-module_light__1zUhp","gold":"Tag-module_gold__2ksA7","gray":"Tag-module_gray__mGAO_","inherit":"Tag-module_inherit__2QB5U","is1to1":"Tag-module_is1to1__3EDbC","is1to2":"Tag-module_is1to2__3xbC6","isInSuperBlock":"Tag-module_isInSuperBlock__38JE0","is1to3":"Tag-module_is1to3__3j5K-","is1to4":"Tag-module_is1to4__2vq4r","slide":"Tag-module_slide__2nMDw","game":"Tag-module_game__3j5yG","card":"Tag-module_card__1EAeF","live":"Tag-module_live__rwXuR","episode":"Tag-module_episode__3o6gg","podcast":"Tag-module_podcast__VPoll","rich":"Tag-module_rich__2URd9","isInDynamicBlock":"Tag-module_isInDynamicBlock__1YM9I","mobile":"Tag-module_mobile__QQxuv","desktop":"Tag-module_desktop__1Bjsy"};
593
704
 
594
705
  var Tag = function Tag(_ref) {
595
706
  var children = _ref.children,
@@ -600,10 +711,10 @@ var Tag = function Tag(_ref) {
600
711
  styleContext = _ref.styleContext,
601
712
  correlation = _ref.correlation,
602
713
  onlyOn = _ref.onlyOn;
603
- var classNames = [[styles$6.root, true], [styles$6[size], !!size && !!styles$6[size]], [styles$6[theme], !!theme && !!styles$6[theme]], [styles$6[onlyOn], !!onlyOn && !!styles$6[onlyOn]], [styles$6[correlation], !!correlation && !!styles$6[correlation]]];
714
+ var classNames = [[styles$8.root, true], [styles$8[size], !!size && !!styles$8[size]], [styles$8[theme], !!theme && !!styles$8[theme]], [styles$8[onlyOn], !!onlyOn && !!styles$8[onlyOn]], [styles$8[correlation], !!correlation && !!styles$8[correlation]]];
604
715
 
605
716
  if (styleContext) {
606
- classNames = makeStyleContext(classNames, styleContext, styles$6);
717
+ classNames = makeStyleContext(classNames, styleContext, styles$8);
607
718
  }
608
719
 
609
720
  return React__default.createElement("div", {
@@ -612,35 +723,35 @@ var Tag = function Tag(_ref) {
612
723
  }, children);
613
724
  };
614
725
 
615
- var styles$7 = {"root":"MediaCaption-module_root__KqTdw","caption":"MediaCaption-module_caption__1hr7Y","credit":"MediaCaption-module_credit__3ehAP","dark":"MediaCaption-module_dark__3tL1u","video":"MediaCaption-module_video__1KZ6k","picture":"MediaCaption-module_picture__3AAMH","desktop":"MediaCaption-module_desktop__3Saev"};
726
+ var styles$9 = {"root":"MediaCaption-module_root__KqTdw","caption":"MediaCaption-module_caption__1hr7Y","credit":"MediaCaption-module_credit__3ehAP","dark":"MediaCaption-module_dark__3tL1u","video":"MediaCaption-module_video__1KZ6k","picture":"MediaCaption-module_picture__3AAMH","desktop":"MediaCaption-module_desktop__3Saev"};
616
727
 
617
728
  var MediaCaption = function MediaCaption(_ref) {
618
729
  var credit = _ref.credit,
619
730
  caption = _ref.caption,
620
731
  styleContext = _ref.styleContext;
621
- var classNames = [[styles$7.root, true]];
732
+ var classNames = [[styles$9.root, true]];
622
733
 
623
734
  if (styleContext) {
624
- classNames = makeStyleContext(classNames, styleContext, styles$7);
735
+ classNames = makeStyleContext(classNames, styleContext, styles$9);
625
736
  }
626
737
 
627
738
  return React__default.createElement("div", {
628
739
  "data-testid": "media-caption",
629
740
  className: makeClassName(classNames)
630
741
  }, caption && React__default.createElement("div", {
631
- className: styles$7.caption,
742
+ className: styles$9.caption,
632
743
  dangerouslySetInnerHTML: {
633
744
  __html: caption
634
745
  }
635
746
  }), credit && React__default.createElement("div", {
636
- className: styles$7.credit,
747
+ className: styles$9.credit,
637
748
  dangerouslySetInnerHTML: {
638
749
  __html: credit
639
750
  }
640
751
  }));
641
752
  };
642
753
 
643
- var styles$8 = {"root":"Table-module_root__1VsG6","card":"Table-module_card__3gbok","table":"Table-module_table__nZIkV","slide":"Table-module_slide__nSGPC","wrapper":"Table-module_wrapper__1YTKM","tracks":"Table-module_tracks__2wrDB","default":"Table-module_default__3CGeE","full":"Table-module_full__S5pDB","row":"Table-module_row__3TH83","cell":"Table-module_cell__EFKDW","fixedColumn":"Table-module_fixedColumn__E1hN5","white":"Table-module_white__gzvo0","gray":"Table-module_gray__3da6S","pink":"Table-module_pink__3oH1l","blue":"Table-module_blue__GM27F","yellow":"Table-module_yellow__2jhvA","orange":"Table-module_orange__1c-oM","green":"Table-module_green__13OIM","violet":"Table-module_violet__2W-kO","header":"Table-module_header__1exlo","s":"Table-module_s__Vl_Eg","m":"Table-module_m__29G9r","l":"Table-module_l__1ZSMc","xs":"Table-module_xs__au2Oe"};
754
+ var styles$a = {"root":"Table-module_root__1VsG6","card":"Table-module_card__3gbok","table":"Table-module_table__nZIkV","slide":"Table-module_slide__nSGPC","wrapper":"Table-module_wrapper__1YTKM","tracks":"Table-module_tracks__2wrDB","default":"Table-module_default__3CGeE","full":"Table-module_full__S5pDB","row":"Table-module_row__3TH83","cell":"Table-module_cell__EFKDW","fixedColumn":"Table-module_fixedColumn__E1hN5","white":"Table-module_white__gzvo0","gray":"Table-module_gray__3da6S","pink":"Table-module_pink__3oH1l","blue":"Table-module_blue__GM27F","yellow":"Table-module_yellow__2jhvA","orange":"Table-module_orange__1c-oM","green":"Table-module_green__13OIM","violet":"Table-module_violet__2W-kO","header":"Table-module_header__1exlo","s":"Table-module_s__Vl_Eg","m":"Table-module_m__29G9r","l":"Table-module_l__1ZSMc","xs":"Table-module_xs__au2Oe"};
644
755
 
645
756
  var Table = function Table(_ref) {
646
757
  var styleContext = _ref.styleContext,
@@ -660,29 +771,29 @@ var Table = function Table(_ref) {
660
771
  '#e7f2ef': 'green',
661
772
  '#f4f0f8': 'violet'
662
773
  };
663
- var classNames = [[styles$8.root, true], [styles$8[display], !!display && !!styles$8[display]]];
774
+ var classNames = [[styles$a.root, true], [styles$a[display], !!display && !!styles$a[display]]];
664
775
 
665
776
  if (styleContext) {
666
- classNames = makeStyleContext(classNames, styleContext, styles$8);
777
+ classNames = makeStyleContext(classNames, styleContext, styles$a);
667
778
  }
668
779
 
669
780
  return React__default.createElement("div", {
670
781
  "data-testid": "table",
671
782
  className: makeClassName(classNames)
672
783
  }, React__default.createElement("div", {
673
- className: styles$8.wrapper
784
+ className: styles$a.wrapper
674
785
  }, React__default.createElement("div", {
675
- className: styles$8.table
786
+ className: styles$a.table
676
787
  }, React__default.createElement("div", {
677
- className: styles$8.tracks
788
+ className: styles$a.tracks
678
789
  }, rows.map(function (row, i) {
679
790
  return React__default.createElement("div", {
680
791
  key: row.key,
681
- className: styles$8.row
792
+ className: styles$a.row
682
793
  }, row.cells.map(function (cell, j) {
683
794
  return React__default.createElement("div", {
684
795
  key: cell.key,
685
- className: makeClassName([[styles$8.cell, true], [styles$8.header, options.header && i === 0], [styles$8[colors[cell.color]], true], [styles$8[columnsWidth[j]], true], [styles$8.fixedColumn, options.fixed_first_column && j === 0]]),
796
+ className: makeClassName([[styles$a.cell, true], [styles$a.header, options.header && i === 0], [styles$a[colors[cell.color]], true], [styles$a[columnsWidth[j]], true], [styles$a.fixedColumn, options.fixed_first_column && j === 0]]),
686
797
  dangerouslySetInnerHTML: {
687
798
  __html: cell.val
688
799
  }
@@ -694,15 +805,15 @@ var Table = function Table(_ref) {
694
805
  }));
695
806
  };
696
807
 
697
- var styles$9 = {"root":"MaterialNote-module_root__1AcYe","dark":"MaterialNote-module_dark__xCry-","note_credit":"MaterialNote-module_note_credit__PuFyX","note_caption":"MaterialNote-module_note_caption__1ezSo","center":"MaterialNote-module_center__18RxI","default":"MaterialNote-module_default__1lQPl","card":"MaterialNote-module_card__OWXbQ","slide":"MaterialNote-module_slide__1ZBBq","game":"MaterialNote-module_game__cADMe","gameSurvey":"MaterialNote-module_gameSurvey__3SiG-"};
808
+ var styles$b = {"root":"MaterialNote-module_root__1AcYe","dark":"MaterialNote-module_dark__xCry-","note_credit":"MaterialNote-module_note_credit__PuFyX","note_caption":"MaterialNote-module_note_caption__1ezSo","center":"MaterialNote-module_center__18RxI","default":"MaterialNote-module_default__1lQPl","card":"MaterialNote-module_card__OWXbQ","slide":"MaterialNote-module_slide__1ZBBq","game":"MaterialNote-module_game__cADMe","gameSurvey":"MaterialNote-module_gameSurvey__3SiG-"};
698
809
 
699
810
  var MaterialNote = function MaterialNote(_ref) {
700
811
  var data = _ref.block.data,
701
812
  styleContext = _ref.styleContext;
702
- var classNames = [[styles$9.root, true]];
813
+ var classNames = [[styles$b.root, true]];
703
814
 
704
815
  if (styleContext) {
705
- classNames = makeStyleContext(classNames, styleContext, styles$9);
816
+ classNames = makeStyleContext(classNames, styleContext, styles$b);
706
817
  }
707
818
 
708
819
  return React__default.createElement("div", {
@@ -710,7 +821,7 @@ var MaterialNote = function MaterialNote(_ref) {
710
821
  className: makeClassName(classNames)
711
822
  }, data && data.map(function (item) {
712
823
  return React__default.createElement("p", {
713
- className: styles$9[item.type],
824
+ className: styles$b[item.type],
714
825
  key: item.id,
715
826
  dangerouslySetInnerHTML: {
716
827
  __html: item.data
@@ -719,24 +830,24 @@ var MaterialNote = function MaterialNote(_ref) {
719
830
  }));
720
831
  };
721
832
 
722
- var styles$a = {"root":"BookmarkButton-module_root__3KmuY","control":"BookmarkButton-module_control__1A0ea","dark":"BookmarkButton-module_dark__1cwyi","light":"BookmarkButton-module_light__1uQyH","isInBookmarks":"BookmarkButton-module_isInBookmarks__1_5kB","isInGrid":"BookmarkButton-module_isInGrid__2pQ2B"};
833
+ var styles$c = {"root":"BookmarkButton-module_root__3KmuY","control":"BookmarkButton-module_control__1A0ea","dark":"BookmarkButton-module_dark__1cwyi","light":"BookmarkButton-module_light__1uQyH","isInBookmarks":"BookmarkButton-module_isInBookmarks__1_5kB","isInGrid":"BookmarkButton-module_isInGrid__2pQ2B"};
723
834
 
724
835
  var BookmarkButton = function BookmarkButton(_ref) {
725
836
  var styleContext = _ref.styleContext,
726
837
  theme = _ref.theme,
727
838
  isInBookmarks = _ref.isInBookmarks,
728
839
  _onClick = _ref.onClick;
729
- var classNames = [[styles$a.root, true], [styles$a.isInBookmarks, isInBookmarks], [styles$a[theme], !!theme && !!styles$a[theme]]];
840
+ var classNames = [[styles$c.root, true], [styles$c.isInBookmarks, isInBookmarks], [styles$c[theme], !!theme && !!styles$c[theme]]];
730
841
 
731
842
  if (styleContext) {
732
- classNames = makeStyleContext(classNames, styleContext, styles$a);
843
+ classNames = makeStyleContext(classNames, styleContext, styles$c);
733
844
  }
734
845
 
735
846
  return React__default.createElement("div", {
736
847
  "data-testid": "bookmark-button",
737
848
  className: makeClassName(classNames)
738
849
  }, React__default.createElement("button", {
739
- className: styles$a.control,
850
+ className: styles$c.control,
740
851
  onClick: function onClick() {
741
852
  return _onClick();
742
853
  },
@@ -747,45 +858,45 @@ var BookmarkButton = function BookmarkButton(_ref) {
747
858
  })));
748
859
  };
749
860
 
750
- var styles$b = {"root":"MaterialTitle-module_root__18ku-","primary":"MaterialTitle-module_primary__2Sfmx","secondary":"MaterialTitle-module_secondary__3uDp4"};
861
+ var styles$d = {"root":"MaterialTitle-module_root__18ku-","primary":"MaterialTitle-module_primary__2Sfmx","secondary":"MaterialTitle-module_secondary__3uDp4"};
751
862
 
752
863
  var Primary = function Primary(_ref) {
753
864
  var children = _ref.children;
754
865
  return React__default.createElement("span", {
755
- className: styles$b.primary
866
+ className: styles$d.primary
756
867
  }, children);
757
868
  };
758
869
  var Secondary = function Secondary(_ref2) {
759
870
  var children = _ref2.children;
760
871
  return React__default.createElement("span", {
761
- className: styles$b.secondary
872
+ className: styles$d.secondary
762
873
  }, children);
763
874
  };
764
875
  var MaterialTitle = function MaterialTitle(_ref3) {
765
876
  var children = _ref3.children;
766
877
  return React__default.createElement("h1", {
767
- className: styles$b.root,
878
+ className: styles$d.root,
768
879
  "data-testid": "material-title"
769
880
  }, children);
770
881
  };
771
882
 
772
- var styles$c = {"root":"Dropdown-module_root__11PNk","active":"Dropdown-module_active__3IwAl","menu":"Dropdown-module_menu__3PIqD","isInAudioPanel":"Dropdown-module_isInAudioPanel__1zv7F"};
883
+ var styles$e = {"root":"Dropdown-module_root__11PNk","active":"Dropdown-module_active__3IwAl","menu":"Dropdown-module_menu__3PIqD","isInAudioPanel":"Dropdown-module_isInAudioPanel__1zv7F"};
773
884
 
774
885
  var Menu = function Menu(_ref) {
775
886
  var children = _ref.children;
776
887
  return React__default.createElement("div", {
777
888
  "data-testid": "dropdown",
778
- className: styles$c.menu
889
+ className: styles$e.menu
779
890
  }, children);
780
891
  };
781
892
  var Dropdown = function Dropdown(_ref2) {
782
893
  var children = _ref2.children,
783
894
  active = _ref2.active,
784
895
  styleContext = _ref2.styleContext;
785
- var classNames = [[styles$c.root, true], [styles$c.active, !!active && !!styles$c.active]];
896
+ var classNames = [[styles$e.root, true], [styles$e.active, !!active && !!styles$e.active]];
786
897
 
787
898
  if (styleContext) {
788
- classNames = makeStyleContext(classNames, styleContext, styles$c);
899
+ classNames = makeStyleContext(classNames, styleContext, styles$e);
789
900
  }
790
901
 
791
902
  return React__default.createElement("div", {
@@ -794,21 +905,21 @@ var Dropdown = function Dropdown(_ref2) {
794
905
  }, children);
795
906
  };
796
907
 
797
- var styles$d = {"root":"Toolbar-module_root__2HF2r","list":"Toolbar-module_list__1n5ny","item":"Toolbar-module_item__36x7d","isInTopbar":"Toolbar-module_isInTopbar__223iP","center":"Toolbar-module_center__3_H8M","game":"Toolbar-module_game__5-jY_","gameSurvey":"Toolbar-module_gameSurvey__1hQEz","dark":"Toolbar-module_dark__2Ejc9"};
908
+ var styles$f = {"root":"Toolbar-module_root__2HF2r","list":"Toolbar-module_list__1n5ny","item":"Toolbar-module_item__36x7d","isInTopbar":"Toolbar-module_isInTopbar__223iP","center":"Toolbar-module_center__3_H8M","game":"Toolbar-module_game__5-jY_","gameSurvey":"Toolbar-module_gameSurvey__1hQEz","dark":"Toolbar-module_dark__2Ejc9"};
798
909
 
799
910
  var Toolbar = function Toolbar(_ref) {
800
911
  var children = _ref.children,
801
912
  styleContext = _ref.styleContext;
802
- var classNames = [[styles$d.root, true]];
913
+ var classNames = [[styles$f.root, true]];
803
914
 
804
915
  if (styleContext) {
805
- classNames = makeStyleContext(classNames, styleContext, styles$d);
916
+ classNames = makeStyleContext(classNames, styleContext, styles$f);
806
917
  }
807
918
 
808
919
  var renderItems = function renderItems() {
809
920
  return React.Children.map(children, function (item, index) {
810
921
  return React__default.createElement("li", {
811
- className: styles$d.item,
922
+ className: styles$f.item,
812
923
  key: index + "-" + item.props.type
813
924
  }, React__default.cloneElement(item));
814
925
  });
@@ -818,96 +929,11 @@ var Toolbar = function Toolbar(_ref) {
818
929
  "data-testid": "toolbar",
819
930
  className: makeClassName(classNames)
820
931
  }, React__default.createElement("ul", {
821
- className: styles$d.list
932
+ className: styles$f.list
822
933
  }, renderItems()));
823
934
  };
824
935
 
825
- var styles$e = {"root":"Popover-module_root__1v6f_","fadeOut":"Popover-module_fadeOut__3EZhx","visible":"Popover-module_visible__eK5ZQ","fadeIn":"Popover-module_fadeIn__AkrSN","overlay":"Popover-module_overlay__2SBL0","container":"Popover-module_container__FnZT-","disappear":"Popover-module_disappear__3Q9LI","dismiss":"Popover-module_dismiss__3RnLj","background":"Popover-module_background__1KKaP","appear":"Popover-module_appear__37vPd"};
826
-
827
- var Popover = function Popover(_ref) {
828
- var children = _ref.children,
829
- onClose = _ref.onClose;
830
-
831
- var _useState = React.useState(true),
832
- visible = _useState[0],
833
- setVisible = _useState[1];
834
-
835
- var handleClose = function handleClose() {
836
- setVisible(false);
837
- setTimeout(onClose, 350);
838
- };
839
-
840
- var handleScroll = function handleScroll() {
841
- handleClose();
842
- };
843
-
844
- var escFunction = function escFunction(event) {
845
- if (event.key === 'Escape') {
846
- handleClose();
847
- }
848
- };
849
-
850
- React.useEffect(function () {
851
- window.addEventListener('keydown', escFunction, false);
852
- window.addEventListener('scroll', handleScroll, false);
853
- return function () {
854
- window.removeEventListener('keydown', escFunction, false);
855
- window.removeEventListener('scroll', handleScroll, false);
856
- };
857
- }, [visible]);
858
- /* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */
859
-
860
- return React__default.createElement("div", {
861
- "data-testid": "popover",
862
- className: makeClassName([[styles$e.root, true], [styles$e.visible, visible]])
863
- }, React__default.createElement("div", {
864
- className: styles$e.overlay,
865
- onClick: function onClick() {
866
- return handleClose();
867
- }
868
- }), React__default.createElement("div", {
869
- className: styles$e.container
870
- }, React__default.createElement("button", {
871
- type: "button",
872
- className: styles$e.dismiss,
873
- onClick: function onClick() {
874
- return handleClose();
875
- },
876
- "aria-label": "dismiss"
877
- }), React__default.createElement("svg", {
878
- width: "100%",
879
- className: styles$e.background
880
- }, React__default.createElement("defs", null, React__default.createElement("mask", {
881
- id: "myMask",
882
- x: "0",
883
- y: "0",
884
- width: "100%",
885
- height: "100%"
886
- }, React__default.createElement("rect", {
887
- fill: "white",
888
- y: "0",
889
- width: "100%",
890
- height: "100%",
891
- x: "0"
892
- }), React__default.createElement("svg", {
893
- x: "50%",
894
- overflow: "visible"
895
- }, React__default.createElement("g", {
896
- transform: "translate(-12 0)"
897
- }, React__default.createElement("path", {
898
- d: "M4.61852778e-14,9.76996262e-15 L9.84597532,5.80270273 C11.0992017,6.54128882 12.6546044,6.54128882 13.9078308,5.80270273 L23.7538061,9.76996262e-15 L4.61852778e-14,9.76996262e-15 Z"
899
- }))))), React__default.createElement("rect", {
900
- fill: "#F7F7F7",
901
- id: "base-mask",
902
- mask: "url(#myMask)",
903
- x: "0",
904
- y: "0",
905
- width: "100%",
906
- height: "100%"
907
- })), children));
908
- };
909
-
910
- var styles$f = {"root":"Meta-module_root__12AG7","rich":"Meta-module_rich__1XBtZ","podcast":"Meta-module_podcast__1m4zo","episode":"Meta-module_episode__1K2Xv","simple":"Meta-module_simple__3vUiI","slide":"Meta-module_slide__3g6fG","card":"Meta-module_card__LE1RK","game":"Meta-module_game__3aNlZ","isInMaterial":"Meta-module_isInMaterial__zaYMy","isInSearchItem":"Meta-module_isInSearchItem__1wbpx","center":"Meta-module_center__3BBPr","half":"Meta-module_half__1xRkT","light":"Meta-module_light__2baE-","dark":"Meta-module_dark__24y9m","hasSource":"Meta-module_hasSource__2lXiN","bookmark":"Meta-module_bookmark__3ot3k","mobile":"Meta-module_mobile__22LGV","desktop":"Meta-module_desktop__1ZGUS"};
936
+ var styles$g = {"root":"Meta-module_root__12AG7","rich":"Meta-module_rich__1XBtZ","podcast":"Meta-module_podcast__1m4zo","episode":"Meta-module_episode__1K2Xv","simple":"Meta-module_simple__3vUiI","slide":"Meta-module_slide__3g6fG","card":"Meta-module_card__LE1RK","game":"Meta-module_game__3aNlZ","isInMaterial":"Meta-module_isInMaterial__zaYMy","isInSearchItem":"Meta-module_isInSearchItem__1wbpx","center":"Meta-module_center__3BBPr","half":"Meta-module_half__1xRkT","light":"Meta-module_light__2baE-","dark":"Meta-module_dark__24y9m","hasSource":"Meta-module_hasSource__2lXiN","bookmark":"Meta-module_bookmark__3ot3k","mobile":"Meta-module_mobile__22LGV","desktop":"Meta-module_desktop__1ZGUS"};
911
937
 
912
938
  var Meta = function Meta(_ref) {
913
939
  var hasSource = _ref.hasSource,
@@ -915,10 +941,10 @@ var Meta = function Meta(_ref) {
915
941
  children = _ref.children,
916
942
  onlyOn = _ref.onlyOn,
917
943
  styleContext = _ref.styleContext;
918
- var classNames = [[styles$f.root, true], [styles$f[theme], !!theme && !!styles$f[theme]], [styles$f[onlyOn], !!onlyOn], [styles$f.hasSource, hasSource]];
944
+ var classNames = [[styles$g.root, true], [styles$g[theme], !!theme && !!styles$g[theme]], [styles$g[onlyOn], !!onlyOn], [styles$g.hasSource, hasSource]];
919
945
 
920
946
  if (styleContext) {
921
- classNames = makeStyleContext(classNames, styleContext, styles$f);
947
+ classNames = makeStyleContext(classNames, styleContext, styles$g);
922
948
  }
923
949
 
924
950
  return React__default.createElement("div", {
@@ -927,7 +953,7 @@ var Meta = function Meta(_ref) {
927
953
  }, children);
928
954
  };
929
955
 
930
- var styles$g = {"root":"Timestamp-module_root__coOvT"};
956
+ var styles$h = {"root":"Timestamp-module_root__coOvT"};
931
957
 
932
958
  var Timestamp = function Timestamp(_ref) {
933
959
  var publishedAt = _ref.publishedAt,
@@ -952,7 +978,7 @@ var Timestamp = function Timestamp(_ref) {
952
978
 
953
979
  return React__default.createElement("time", {
954
980
  "data-testid": "timestamp",
955
- className: styles$g.root
981
+ className: styles$h.root
956
982
  }, published);
957
983
  };
958
984
 
@@ -1019,7 +1045,7 @@ var DangerousHTML = function DangerousHTML(_ref) {
1019
1045
  }));
1020
1046
  };
1021
1047
 
1022
- var styles$h = {"root":"EmbedBlock-module_root__28k9U","object":"EmbedBlock-module_object__2_UZ7","objectWrap":"EmbedBlock-module_objectWrap__1aDVd","proportional":"EmbedBlock-module_proportional__3lAv4","attachment":"EmbedBlock-module_attachment__2pE0t","default":"EmbedBlock-module_default__LSDny","xs":"EmbedBlock-module_xs__1hFgW","full":"EmbedBlock-module_full__1TEjx","super_full":"EmbedBlock-module_super_full__1Fn9A","figure":"EmbedBlock-module_figure__vAvcN","dark":"EmbedBlock-module_dark__1be2G","isInGroupedBlock":"EmbedBlock-module_isInGroupedBlock__3r_i-","gameEmbed":"EmbedBlock-module_gameEmbed__AZQSo","mobile":"EmbedBlock-module_mobile__1P-eo","desktop":"EmbedBlock-module_desktop__SF5a_","control":"EmbedBlock-module_control__xr8dZ","raw_html":"EmbedBlock-module_raw_html__MQoAA","mobileFullwidth":"EmbedBlock-module_mobileFullwidth__QFFLH","card":"EmbedBlock-module_card__KTbvp","slide":"EmbedBlock-module_slide__3cL3M","cc":"EmbedBlock-module_cc__1BQ5g","isInAnswer":"EmbedBlock-module_isInAnswer__tLlgs","picture":"EmbedBlock-module_picture__186q0","wrapper":"EmbedBlock-module_wrapper__33XvX"};
1048
+ var styles$i = {"root":"EmbedBlock-module_root__28k9U","object":"EmbedBlock-module_object__2_UZ7","objectWrap":"EmbedBlock-module_objectWrap__1aDVd","proportional":"EmbedBlock-module_proportional__3lAv4","attachment":"EmbedBlock-module_attachment__2pE0t","default":"EmbedBlock-module_default__LSDny","xs":"EmbedBlock-module_xs__1hFgW","full":"EmbedBlock-module_full__1TEjx","super_full":"EmbedBlock-module_super_full__1Fn9A","figure":"EmbedBlock-module_figure__vAvcN","dark":"EmbedBlock-module_dark__1be2G","isInGroupedBlock":"EmbedBlock-module_isInGroupedBlock__3r_i-","gameEmbed":"EmbedBlock-module_gameEmbed__AZQSo","mobile":"EmbedBlock-module_mobile__1P-eo","desktop":"EmbedBlock-module_desktop__SF5a_","control":"EmbedBlock-module_control__xr8dZ","raw_html":"EmbedBlock-module_raw_html__MQoAA","mobileFullwidth":"EmbedBlock-module_mobileFullwidth__QFFLH","card":"EmbedBlock-module_card__KTbvp","slide":"EmbedBlock-module_slide__3cL3M","cc":"EmbedBlock-module_cc__1BQ5g","isInAnswer":"EmbedBlock-module_isInAnswer__tLlgs","picture":"EmbedBlock-module_picture__186q0","wrapper":"EmbedBlock-module_wrapper__33XvX"};
1023
1049
 
1024
1050
  var EmbedGif = function EmbedGif(_ref) {
1025
1051
  var gif = _ref.gif,
@@ -1067,9 +1093,9 @@ var EmbedGif = function EmbedGif(_ref) {
1067
1093
  };
1068
1094
  }, []);
1069
1095
  return React__default.createElement("div", {
1070
- className: styles$h.figure
1096
+ className: styles$i.figure
1071
1097
  }, React__default.createElement("div", {
1072
- className: styles$h.objectWrap,
1098
+ className: styles$i.objectWrap,
1073
1099
  style: style,
1074
1100
  "data-frozen": videoFrozen
1075
1101
  }, React__default.createElement("video", {
@@ -1135,7 +1161,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
1135
1161
  case 'image':
1136
1162
  {
1137
1163
  return React__default.createElement("div", {
1138
- className: styles$h.figure
1164
+ className: styles$i.figure
1139
1165
  }, (small || optimized) && React__default.createElement(Image, {
1140
1166
  fullscreen: block.data.fullscreen,
1141
1167
  source: !optimized && [small, large],
@@ -1151,7 +1177,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
1151
1177
  case 'game_embed':
1152
1178
  {
1153
1179
  return React__default.createElement("div", {
1154
- className: styles$h.gameEmbed
1180
+ className: styles$i.gameEmbed
1155
1181
  }, React__default.createElement("iframe", {
1156
1182
  src: block.data.game_src,
1157
1183
  id: block.data.game_id,
@@ -1162,7 +1188,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
1162
1188
  case 'dots_on_image':
1163
1189
  {
1164
1190
  return React__default.createElement("div", {
1165
- className: styles$h.figure
1191
+ className: styles$i.figure
1166
1192
  }, React__default.createElement(DotsOnImage, {
1167
1193
  block: data
1168
1194
  }));
@@ -1171,12 +1197,12 @@ var EmbedBlock = function EmbedBlock(_ref) {
1171
1197
  default:
1172
1198
  {
1173
1199
  return React__default.createElement("div", {
1174
- className: styles$h.object
1200
+ className: styles$i.object
1175
1201
  }, React__default.createElement("div", {
1176
- className: styles$h.wrapper,
1202
+ className: styles$i.wrapper,
1177
1203
  style: style
1178
1204
  }, React__default.createElement(DangerousHTML, {
1179
- className: styles$h.objectWrap,
1205
+ className: styles$i.objectWrap,
1180
1206
  html: html
1181
1207
  })));
1182
1208
  }
@@ -1188,31 +1214,31 @@ var EmbedBlock = function EmbedBlock(_ref) {
1188
1214
  style.height = 0;
1189
1215
  }
1190
1216
 
1191
- var classNames = [[styles$h.root, true], [styles$h.cc, cc], [styles$h[display], !!display && styles$h[display]], [styles$h[provider], !!provider && !!styles$h[provider]], [styles$h[onlyOn], !!onlyOn && styles$h[onlyOn]], [styles$h.mobileFullwidth, mobileFullwidth], [styles$h.proportional, isProportional]]; // Убираем из контекста все, что не начинается с приставки isIn,
1217
+ var classNames = [[styles$i.root, true], [styles$i.cc, cc], [styles$i[display], !!display && styles$i[display]], [styles$i[provider], !!provider && !!styles$i[provider]], [styles$i[onlyOn], !!onlyOn && styles$i[onlyOn]], [styles$i.mobileFullwidth, mobileFullwidth], [styles$i.proportional, isProportional]]; // Убираем из контекста все, что не начинается с приставки isIn,
1192
1218
  // чтобы не применились лишние модификаторы
1193
1219
  // TODO: в w6 модификаторы должны передаваться явно
1194
1220
 
1195
1221
  if (styleContext) {
1196
1222
  var filteredContext = Object.keys(styleContext).filter(function (key) {
1197
- return key.startsWith('isIn') && styles$h[key];
1223
+ return key.startsWith('isIn') && styles$i[key];
1198
1224
  }).reduce(function (acc, key) {
1199
- acc.push([styles$h[key], true]);
1225
+ acc.push([styles$i[key], true]);
1200
1226
  return acc;
1201
1227
  }, []);
1202
- classNames = makeStyleContext(classNames, filteredContext, styles$h);
1228
+ classNames = makeStyleContext(classNames, filteredContext, styles$i);
1203
1229
  }
1204
1230
 
1205
1231
  return React__default.createElement("figure", {
1206
1232
  className: makeClassName(classNames)
1207
1233
  }, children && React__default.createElement("div", {
1208
- className: styles$h.object
1234
+ className: styles$i.object
1209
1235
  }, React__default.createElement("div", {
1210
- className: styles$h.wrapper,
1236
+ className: styles$i.wrapper,
1211
1237
  style: style
1212
1238
  }, React__default.createElement("div", {
1213
- className: styles$h.objectWrap
1239
+ className: styles$i.objectWrap
1214
1240
  }, children))), !children && renderEmbed(style), cc === 'default' && React__default.createElement("figcaption", null, renderCC()), cc === 'button' && React__default.createElement("button", {
1215
- className: styles$h.control,
1241
+ className: styles$i.control,
1216
1242
  type: "button",
1217
1243
  "aria-label": "Open",
1218
1244
  onClick: function onClick() {
@@ -1288,15 +1314,15 @@ var EmbedBlockContainer = function EmbedBlockContainer(_ref) {
1288
1314
  });
1289
1315
  };
1290
1316
 
1291
- var styles$i = {"root":"QuoteBlock-module_root__2GrcC","center":"QuoteBlock-module_center__cTFNy"};
1317
+ var styles$j = {"root":"QuoteBlock-module_root__2GrcC","center":"QuoteBlock-module_center__cTFNy"};
1292
1318
 
1293
1319
  var QuoteBlock = function QuoteBlock(_ref) {
1294
1320
  var data = _ref.block.data,
1295
1321
  styleContext = _ref.styleContext;
1296
- var classNames = [[styles$i.root, true]];
1322
+ var classNames = [[styles$j.root, true]];
1297
1323
 
1298
1324
  if (styleContext) {
1299
- classNames = makeStyleContext(classNames, styleContext, styles$i);
1325
+ classNames = makeStyleContext(classNames, styleContext, styles$j);
1300
1326
  }
1301
1327
 
1302
1328
  return React__default.createElement("div", {
@@ -1309,7 +1335,7 @@ var QuoteBlock = function QuoteBlock(_ref) {
1309
1335
  }));
1310
1336
  };
1311
1337
 
1312
- var styles$j = {"root":"CardTitle-module_root__1uqqF","index":"CardTitle-module_index__4FsTf","title":"CardTitle-module_title__2iTI6","mobile":"CardTitle-module_mobile__1_kij","desktop":"CardTitle-module_desktop__1l3_n"};
1338
+ var styles$k = {"root":"CardTitle-module_root__1uqqF","index":"CardTitle-module_index__4FsTf","title":"CardTitle-module_title__2iTI6","mobile":"CardTitle-module_mobile__1_kij","desktop":"CardTitle-module_desktop__1l3_n"};
1313
1339
 
1314
1340
  var CardTitle = function CardTitle(_ref) {
1315
1341
  var _ref$block$data = _ref.block.data,
@@ -1319,15 +1345,15 @@ var CardTitle = function CardTitle(_ref) {
1319
1345
  styleContext = _ref.styleContext;
1320
1346
  return React__default.createElement("div", {
1321
1347
  "data-testid": "card-title",
1322
- className: makeClassName([[styles$j.root, true], [styles$j[onlyOn], !!onlyOn], [styles$j[styleContext], !!styleContext && !!styles$j[styleContext]]])
1348
+ className: makeClassName([[styles$k.root, true], [styles$k[onlyOn], !!onlyOn], [styles$k[styleContext], !!styleContext && !!styles$k[styleContext]]])
1323
1349
  }, React__default.createElement("div", {
1324
- className: styles$j.index
1350
+ className: styles$k.index
1325
1351
  }, index), React__default.createElement("h3", {
1326
- className: styles$j.title
1352
+ className: styles$k.title
1327
1353
  }, text));
1328
1354
  };
1329
1355
 
1330
- var styles$k = {"root":"ChapterBlock-module_root__1WyVn","subtitle":"ChapterBlock-module_subtitle__3TXll","mobile":"ChapterBlock-module_mobile__CiO0w","desktop":"ChapterBlock-module_desktop__tk1Nk"};
1356
+ var styles$l = {"root":"ChapterBlock-module_root__1WyVn","subtitle":"ChapterBlock-module_subtitle__3TXll","mobile":"ChapterBlock-module_mobile__CiO0w","desktop":"ChapterBlock-module_desktop__tk1Nk"};
1331
1357
 
1332
1358
  var ChapterBlock = function ChapterBlock(_ref) {
1333
1359
  var _ref$block = _ref.block,
@@ -1336,9 +1362,9 @@ var ChapterBlock = function ChapterBlock(_ref) {
1336
1362
  styleContext = _ref.styleContext;
1337
1363
  return React__default.createElement("div", {
1338
1364
  "data-testid": "chapter-block",
1339
- className: makeClassName([[styles$k.root, true], [styles$k[onlyOn], !!onlyOn]])
1365
+ className: makeClassName([[styles$l.root, true], [styles$l[onlyOn], !!onlyOn]])
1340
1366
  }, React__default.createElement("div", {
1341
- className: makeClassName([[styles$k.subtitle, true], [styles$k[styleContext], !!styleContext && !!styles$k[styleContext]]]),
1367
+ className: makeClassName([[styles$l.subtitle, true], [styles$l[styleContext], !!styleContext && !!styles$l[styleContext]]]),
1342
1368
  dangerouslySetInnerHTML: {
1343
1369
  __html: data
1344
1370
  }
@@ -1353,17 +1379,17 @@ var generateGradient = function generateGradient(color) {
1353
1379
  return "linear-gradient(-180deg, " + gradient + ")";
1354
1380
  };
1355
1381
 
1356
- var styles$l = {"root":"SimpleTitle-module_root__2jVQN","mobile":"SimpleTitle-module_mobile__11gBz","desktop":"SimpleTitle-module_desktop__3yXgy"};
1382
+ var styles$m = {"root":"SimpleTitle-module_root__2jVQN","mobile":"SimpleTitle-module_mobile__11gBz","desktop":"SimpleTitle-module_desktop__3yXgy"};
1357
1383
 
1358
1384
  var SimpleTitle = function SimpleTitle(_ref) {
1359
1385
  var _ref$block = _ref.block,
1360
1386
  first = _ref$block.data.first,
1361
1387
  onlyOn = _ref$block.only_on,
1362
1388
  styleContext = _ref.styleContext;
1363
- var classNames = [[styles$l.root, true], [styles$l[onlyOn], true]];
1389
+ var classNames = [[styles$m.root, true], [styles$m[onlyOn], true]];
1364
1390
 
1365
1391
  if (styleContext) {
1366
- classNames = makeStyleContext(classNames, styleContext, styles$l);
1392
+ classNames = makeStyleContext(classNames, styleContext, styles$m);
1367
1393
  }
1368
1394
 
1369
1395
  return React__default.createElement("div", {
@@ -1372,7 +1398,7 @@ var SimpleTitle = function SimpleTitle(_ref) {
1372
1398
  }, first);
1373
1399
  };
1374
1400
 
1375
- var styles$m = {"root":"RichTitle-module_root__BK_WT","slide":"RichTitle-module_slide__1A-gB","game":"RichTitle-module_game__1g8Bn","half":"RichTitle-module_half__10GRI","featured":"RichTitle-module_featured__wJfaQ","mobile":"RichTitle-module_mobile__1Cb6E","desktop":"RichTitle-module_desktop__2ixSQ"};
1401
+ var styles$n = {"root":"RichTitle-module_root__BK_WT","slide":"RichTitle-module_slide__1A-gB","game":"RichTitle-module_game__1g8Bn","half":"RichTitle-module_half__10GRI","featured":"RichTitle-module_featured__wJfaQ","mobile":"RichTitle-module_mobile__1Cb6E","desktop":"RichTitle-module_desktop__2ixSQ"};
1376
1402
 
1377
1403
  var RichTitle = function RichTitle(_ref) {
1378
1404
  var _ref$block = _ref.block,
@@ -1382,10 +1408,10 @@ var RichTitle = function RichTitle(_ref) {
1382
1408
  first = _ref$block$data.first,
1383
1409
  second = _ref$block$data.second,
1384
1410
  styleContext = _ref.styleContext;
1385
- var classNames = [[styles$m.root, true], [styles$m[onlyOn], true], [styles$m.featured, !!featured]];
1411
+ var classNames = [[styles$n.root, true], [styles$n[onlyOn], true], [styles$n.featured, !!featured]];
1386
1412
 
1387
1413
  if (styleContext) {
1388
- classNames = makeStyleContext(classNames, styleContext, styles$m);
1414
+ classNames = makeStyleContext(classNames, styleContext, styles$n);
1389
1415
  }
1390
1416
 
1391
1417
  return React__default.createElement("h1", {
@@ -1394,7 +1420,7 @@ var RichTitle = function RichTitle(_ref) {
1394
1420
  }, first, second && React__default.createElement("span", null, " ", second));
1395
1421
  };
1396
1422
 
1397
- var styles$n = {"p":"SimpleBlock-module_p__Q3azD","h2":"SimpleBlock-module_h2__S0LRs","h3":"SimpleBlock-module_h3__2Kv7Y","h4":"SimpleBlock-module_h4__2TJO3","lead":"SimpleBlock-module_lead__35nXx","lead_hr":"SimpleBlock-module_lead_hr__1yD5v","context_p":"SimpleBlock-module_context_p__33saY","blockquote":"SimpleBlock-module_blockquote__pwpcX","game":"SimpleBlock-module_game__2sjgl","slide":"SimpleBlock-module_slide__Aqgfu","dark":"SimpleBlock-module_dark__1J_ov","isInIntro":"SimpleBlock-module_isInIntro__DfutD","center":"SimpleBlock-module_center__2rjif","isInImportantLead":"SimpleBlock-module_isInImportantLead__3VGzT","isInAnswer":"SimpleBlock-module_isInAnswer__3aX6X","mobile":"SimpleBlock-module_mobile__Ckgek","desktop":"SimpleBlock-module_desktop__2se2o"};
1423
+ var styles$o = {"p":"SimpleBlock-module_p__Q3azD","h2":"SimpleBlock-module_h2__S0LRs","h3":"SimpleBlock-module_h3__2Kv7Y","h4":"SimpleBlock-module_h4__2TJO3","lead":"SimpleBlock-module_lead__35nXx","lead_hr":"SimpleBlock-module_lead_hr__1yD5v","context_p":"SimpleBlock-module_context_p__33saY","blockquote":"SimpleBlock-module_blockquote__pwpcX","game":"SimpleBlock-module_game__2sjgl","slide":"SimpleBlock-module_slide__Aqgfu","dark":"SimpleBlock-module_dark__1J_ov","isInIntro":"SimpleBlock-module_isInIntro__DfutD","center":"SimpleBlock-module_center__2rjif","isInImportantLead":"SimpleBlock-module_isInImportantLead__3VGzT","isInAnswer":"SimpleBlock-module_isInAnswer__3aX6X","mobile":"SimpleBlock-module_mobile__Ckgek","desktop":"SimpleBlock-module_desktop__2se2o"};
1398
1424
 
1399
1425
  var SimpleBlock = function SimpleBlock(_ref) {
1400
1426
  var _ref$block = _ref.block,
@@ -1403,10 +1429,10 @@ var SimpleBlock = function SimpleBlock(_ref) {
1403
1429
  onlyOn = _ref$block.only_on,
1404
1430
  styleContext = _ref.styleContext;
1405
1431
  var TagName;
1406
- var classNames = [[styles$n[type], !!type && !!styles$n[type]], [styles$n[onlyOn], true]];
1432
+ var classNames = [[styles$o[type], !!type && !!styles$o[type]], [styles$o[onlyOn], true]];
1407
1433
 
1408
1434
  if (styleContext) {
1409
- classNames = makeStyleContext(classNames, styleContext, styles$n);
1435
+ classNames = makeStyleContext(classNames, styleContext, styles$o);
1410
1436
  }
1411
1437
 
1412
1438
  switch (type) {
@@ -1437,7 +1463,7 @@ var SimpleBlock = function SimpleBlock(_ref) {
1437
1463
  });
1438
1464
  };
1439
1465
 
1440
- var styles$o = {"root":"ListBlock-module_root__3Q3Ga","ol":"ListBlock-module_ol__21CgV","ul":"ListBlock-module_ul__2MRrS","center":"ListBlock-module_center__tdIwd","isInImportantLead":"ListBlock-module_isInImportantLead__UP0ic","dark":"ListBlock-module_dark__3E3tV","mobile":"ListBlock-module_mobile__2-nuV","desktop":"ListBlock-module_desktop__1EE0g"};
1466
+ var styles$p = {"root":"ListBlock-module_root__3Q3Ga","ol":"ListBlock-module_ol__21CgV","ul":"ListBlock-module_ul__2MRrS","center":"ListBlock-module_center__tdIwd","isInImportantLead":"ListBlock-module_isInImportantLead__UP0ic","dark":"ListBlock-module_dark__3E3tV","mobile":"ListBlock-module_mobile__2-nuV","desktop":"ListBlock-module_desktop__1EE0g"};
1441
1467
 
1442
1468
  var ListBlock = function ListBlock(_ref) {
1443
1469
  var _ref$block = _ref.block,
@@ -1446,10 +1472,10 @@ var ListBlock = function ListBlock(_ref) {
1446
1472
  onlyOn = _ref$block.only_on,
1447
1473
  styleContext = _ref.styleContext;
1448
1474
  var TagName = type;
1449
- var classNames = [[styles$o.root, true], [styles$o[onlyOn], true], [styles$o[type], !!type && !!styles$o[type]]];
1475
+ var classNames = [[styles$p.root, true], [styles$p[onlyOn], true], [styles$p[type], !!type && !!styles$p[type]]];
1450
1476
 
1451
1477
  if (styleContext) {
1452
- classNames = makeStyleContext(classNames, styleContext, styles$o);
1478
+ classNames = makeStyleContext(classNames, styleContext, styles$p);
1453
1479
  }
1454
1480
 
1455
1481
  return React__default.createElement(TagName, {
@@ -1464,7 +1490,7 @@ var ListBlock = function ListBlock(_ref) {
1464
1490
  }));
1465
1491
  };
1466
1492
 
1467
- var styles$p = {"root":"RelatedBlock-module_root__IKcQq","header":"RelatedBlock-module_header__2SuWP","items":"RelatedBlock-module_items__2V-Ap","rich":"RelatedBlock-module_rich__ddaHq","first":"RelatedBlock-module_first__BKItW","simple":"RelatedBlock-module_simple__29HVO","center":"RelatedBlock-module_center__1LmW8","isInSlideMaterial":"RelatedBlock-module_isInSlideMaterial__2YSYG","mobile":"RelatedBlock-module_mobile__2XM5a","desktop":"RelatedBlock-module_desktop__2mXeq"};
1493
+ var styles$q = {"root":"RelatedBlock-module_root__IKcQq","header":"RelatedBlock-module_header__2SuWP","items":"RelatedBlock-module_items__2V-Ap","rich":"RelatedBlock-module_rich__ddaHq","first":"RelatedBlock-module_first__BKItW","simple":"RelatedBlock-module_simple__29HVO","center":"RelatedBlock-module_center__1LmW8","isInSlideMaterial":"RelatedBlock-module_isInSlideMaterial__2YSYG","mobile":"RelatedBlock-module_mobile__2XM5a","desktop":"RelatedBlock-module_desktop__2mXeq"};
1468
1494
 
1469
1495
  var RelatedBlock = function RelatedBlock(_ref) {
1470
1496
  var _ref$block = _ref.block,
@@ -1473,34 +1499,34 @@ var RelatedBlock = function RelatedBlock(_ref) {
1473
1499
  related = _ref$block$data.related,
1474
1500
  onlyOn = _ref$block.only_on,
1475
1501
  styleContext = _ref.styleContext;
1476
- var classNames = [[styles$p.root, true], [styles$p[onlyOn], true]];
1502
+ var classNames = [[styles$q.root, true], [styles$q[onlyOn], true]];
1477
1503
 
1478
1504
  if (styleContext) {
1479
- classNames = makeStyleContext(classNames, styleContext, styles$p);
1505
+ classNames = makeStyleContext(classNames, styleContext, styles$q);
1480
1506
  }
1481
1507
 
1482
1508
  return React__default.createElement("div", {
1483
1509
  "data-testid": "related-block",
1484
1510
  className: makeClassName(classNames)
1485
1511
  }, React__default.createElement("h3", {
1486
- className: styles$p.header
1512
+ className: styles$q.header
1487
1513
  }, title), React__default.createElement("ul", {
1488
- className: styles$p.items
1514
+ className: styles$q.items
1489
1515
  }, related.map(function (item, index) {
1490
1516
  return React__default.createElement("li", {
1491
1517
  key: item.id || index,
1492
- className: styles$p[item.layout]
1518
+ className: styles$q[item.layout]
1493
1519
  }, React__default.createElement("a", {
1494
1520
  href: item.full_url || "/" + item.url,
1495
1521
  target: "_blank",
1496
1522
  rel: "noopener noreferrer"
1497
1523
  }, React__default.createElement("span", {
1498
- className: styles$p.first
1524
+ className: styles$q.first
1499
1525
  }, item.title), item.second_title && ' ', item.second_title && React__default.createElement("span", null, item.second_title)));
1500
1526
  })));
1501
1527
  };
1502
1528
 
1503
- var styles$q = {"root":"SourceBlock-module_root__1P3XD","text":"SourceBlock-module_text__Si4vm","origin":"SourceBlock-module_origin__l3JbO","center":"SourceBlock-module_center__3P93B","mobile":"SourceBlock-module_mobile__2gw4S","desktop":"SourceBlock-module_desktop__DecT6"};
1529
+ var styles$r = {"root":"SourceBlock-module_root__1P3XD","text":"SourceBlock-module_text__Si4vm","origin":"SourceBlock-module_origin__l3JbO","center":"SourceBlock-module_center__3P93B","mobile":"SourceBlock-module_mobile__2gw4S","desktop":"SourceBlock-module_desktop__DecT6"};
1504
1530
 
1505
1531
  var SourceBlock = function SourceBlock(_ref) {
1506
1532
  var _ref$block = _ref.block,
@@ -1510,10 +1536,10 @@ var SourceBlock = function SourceBlock(_ref) {
1510
1536
  origin = _ref$block$data.origin,
1511
1537
  url = _ref$block$data.url,
1512
1538
  styleContext = _ref.styleContext;
1513
- var classNames = [[styles$q.root, true], [styles$q[onlyOn], true]];
1539
+ var classNames = [[styles$r.root, true], [styles$r[onlyOn], true]];
1514
1540
 
1515
1541
  if (styleContext) {
1516
- classNames = makeStyleContext(classNames, styleContext, styles$q);
1542
+ classNames = makeStyleContext(classNames, styleContext, styles$r);
1517
1543
  }
1518
1544
 
1519
1545
  return React__default.createElement("blockquote", {
@@ -1521,7 +1547,7 @@ var SourceBlock = function SourceBlock(_ref) {
1521
1547
  cite: url,
1522
1548
  className: makeClassName(classNames)
1523
1549
  }, React__default.createElement("a", {
1524
- className: styles$q.text,
1550
+ className: styles$r.text,
1525
1551
  href: url,
1526
1552
  target: "_blank",
1527
1553
  rel: "noopener noreferrer"
@@ -1533,11 +1559,11 @@ var SourceBlock = function SourceBlock(_ref) {
1533
1559
  }
1534
1560
  });
1535
1561
  }), React__default.createElement("footer", null, React__default.createElement("cite", {
1536
- className: styles$q.origin
1562
+ className: styles$r.origin
1537
1563
  }, origin))));
1538
1564
  };
1539
1565
 
1540
- var styles$r = {"root":"GroupedBlock-module_root__2qfQA","hasFigcaption":"GroupedBlock-module_hasFigcaption__2_mcf","item":"GroupedBlock-module_item__3sz9_","items":"GroupedBlock-module_items__2DV2X","figcaption":"GroupedBlock-module_figcaption__2Q_wf","default":"GroupedBlock-module_default__3ylw_","full":"GroupedBlock-module_full__1dzQR","super_full":"GroupedBlock-module_super_full__1PU72","mobile":"GroupedBlock-module_mobile__3n8Ub","desktop":"GroupedBlock-module_desktop__6ZRpA"};
1566
+ var styles$s = {"root":"GroupedBlock-module_root__2qfQA","hasFigcaption":"GroupedBlock-module_hasFigcaption__2_mcf","item":"GroupedBlock-module_item__3sz9_","items":"GroupedBlock-module_items__2DV2X","figcaption":"GroupedBlock-module_figcaption__2Q_wf","default":"GroupedBlock-module_default__3ylw_","full":"GroupedBlock-module_full__1dzQR","super_full":"GroupedBlock-module_super_full__1PU72","mobile":"GroupedBlock-module_mobile__3n8Ub","desktop":"GroupedBlock-module_desktop__6ZRpA"};
1541
1567
 
1542
1568
  var GroupedBlock = function GroupedBlock(_ref) {
1543
1569
  var block = _ref.block,
@@ -1552,21 +1578,21 @@ var GroupedBlock = function GroupedBlock(_ref) {
1552
1578
  var sumWidth = normalizedBoxesWidth.reduce(function (sum, x) {
1553
1579
  return sum + x;
1554
1580
  });
1555
- var classNames = [[styles$r.root, true], [styles$r[onlyOn], true], [styles$r.hasFigcaption, block.cc === 'default'], [styles$r[block.display], !!block.display && styles$r[block.display]]];
1581
+ var classNames = [[styles$s.root, true], [styles$s[onlyOn], true], [styles$s.hasFigcaption, block.cc === 'default'], [styles$s[block.display], !!block.display && styles$s[block.display]]];
1556
1582
 
1557
1583
  if (styleContext) {
1558
- classNames = makeStyleContext(classNames, styleContext, styles$r);
1584
+ classNames = makeStyleContext(classNames, styleContext, styles$s);
1559
1585
  }
1560
1586
 
1561
1587
  return React__default.createElement("div", {
1562
1588
  "data-testid": "grouped-block",
1563
1589
  className: makeClassName(classNames)
1564
1590
  }, React__default.createElement("div", {
1565
- className: styles$r.items
1591
+ className: styles$s.items
1566
1592
  }, block.data.map(function (item, index) {
1567
1593
  var percentWidth = normalizedBoxesWidth[index] / sumWidth * 100;
1568
1594
  return React__default.createElement("div", {
1569
- className: styles$r.item,
1595
+ className: styles$s.item,
1570
1596
  key: item.id,
1571
1597
  style: {
1572
1598
  width: percentWidth + "%"
@@ -1576,7 +1602,7 @@ var GroupedBlock = function GroupedBlock(_ref) {
1576
1602
  styleContext: "isInGroupedBlock"
1577
1603
  }));
1578
1604
  })), block.cc && React__default.createElement("figcaption", {
1579
- className: styles$r.figcaption
1605
+ className: styles$s.figcaption
1580
1606
  }, React__default.createElement(MediaCaption, {
1581
1607
  credit: block.credit,
1582
1608
  caption: block.caption,
@@ -1584,32 +1610,32 @@ var GroupedBlock = function GroupedBlock(_ref) {
1584
1610
  })));
1585
1611
  };
1586
1612
 
1587
- var styles$s = {"root":"MetaItem-module_root__2VQom","hasBullets":"MetaItem-module_hasBullets__CkQPI","hasSource":"MetaItem-module_hasSource__1DmCI","listened":"MetaItem-module_listened__lwvAO","read":"MetaItem-module_read__5eAIG","datetime":"MetaItem-module_datetime__3tOWm"};
1613
+ var styles$t = {"root":"MetaItem-module_root__2VQom","hasBullets":"MetaItem-module_hasBullets__CkQPI","hasSource":"MetaItem-module_hasSource__1DmCI","listened":"MetaItem-module_listened__lwvAO","read":"MetaItem-module_read__5eAIG","datetime":"MetaItem-module_datetime__3tOWm"};
1588
1614
 
1589
1615
  var MetaItem = function MetaItem(_ref) {
1590
1616
  var hasSource = _ref.hasSource,
1591
1617
  type = _ref.type,
1592
1618
  children = _ref.children,
1593
1619
  bullets = _ref.bullets;
1594
- var classNames = [[styles$s.root, true], [styles$s[type], !!type && !!styles$s[type]], [styles$s.hasSource, !!hasSource], [styles$s.hasBullets, !!bullets]];
1620
+ var classNames = [[styles$t.root, true], [styles$t[type], !!type && !!styles$t[type]], [styles$t.hasSource, !!hasSource], [styles$t.hasBullets, !!bullets]];
1595
1621
  return React__default.createElement("div", {
1596
1622
  "data-testid": "meta-item",
1597
1623
  className: makeClassName(classNames)
1598
1624
  }, children);
1599
1625
  };
1600
1626
 
1601
- var styles$t = {"root":"MetaItemLive-module_root__2mpD3","gold":"MetaItemLive-module_gold__3yZEV","frame":"MetaItemLive-module_frame__1H_Ha","liveMiddle":"MetaItemLive-module_liveMiddle__wyuV3","liveFirstWave":"MetaItemLive-module_liveFirstWave__3dbvz","liveSecondWave":"MetaItemLive-module_liveSecondWave__12g57"};
1627
+ var styles$u = {"root":"MetaItemLive-module_root__2mpD3","gold":"MetaItemLive-module_gold__3yZEV","frame":"MetaItemLive-module_frame__1H_Ha","liveMiddle":"MetaItemLive-module_liveMiddle__wyuV3","liveFirstWave":"MetaItemLive-module_liveFirstWave__3dbvz","liveSecondWave":"MetaItemLive-module_liveSecondWave__12g57"};
1602
1628
 
1603
1629
  var MetaItemLive = function MetaItemLive(_ref) {
1604
1630
  var _ref$theme = _ref.theme,
1605
1631
  theme = _ref$theme === void 0 ? 'gold' : _ref$theme;
1606
- var classNames = [[styles$t.root, true], [styles$t[theme], !!theme && styles$t[theme]]];
1632
+ var classNames = [[styles$u.root, true], [styles$u[theme], !!theme && styles$u[theme]]];
1607
1633
  return React__default.createElement("div", {
1608
1634
  "data-testid": "meta-item-live",
1609
1635
  "data-meta": "live",
1610
1636
  className: makeClassName(classNames)
1611
1637
  }, React__default.createElement("div", {
1612
- className: styles$t.frame
1638
+ className: styles$u.frame
1613
1639
  }));
1614
1640
  };
1615
1641
 
@@ -1634,7 +1660,7 @@ var pluralize = function pluralize(number, one, two, five) {
1634
1660
  return five;
1635
1661
  };
1636
1662
 
1637
- var styles$u = {"root":"DocumentItemsCount-module_root__P3q-z","items":"DocumentItemsCount-module_items__3pfxW"};
1663
+ var styles$v = {"root":"DocumentItemsCount-module_root__P3q-z","items":"DocumentItemsCount-module_items__3pfxW"};
1638
1664
 
1639
1665
  var DocumentItemsCount = function DocumentItemsCount(_ref) {
1640
1666
  var type = _ref.type,
@@ -1671,9 +1697,9 @@ var DocumentItemsCount = function DocumentItemsCount(_ref) {
1671
1697
  var itemsCount = items + " " + pluralize(items, i18n[lang][type].one, i18n[lang][type].two, i18n[lang][type].five);
1672
1698
  return React__default.createElement("div", {
1673
1699
  "data-testid": "document-items-count",
1674
- className: styles$u.root
1700
+ className: styles$v.root
1675
1701
  }, children, React__default.createElement("span", {
1676
- className: styles$u.items
1702
+ className: styles$v.items
1677
1703
  }, itemsCount));
1678
1704
  };
1679
1705
 
@@ -1787,7 +1813,7 @@ var MetaContainer = function MetaContainer(_ref) {
1787
1813
  icon: isListened ? 'listened' : 'read',
1788
1814
  size: "unset"
1789
1815
  })), isSlides && lang === 'ru' && React__default.createElement("div", {
1790
- className: styles$f.bookmark
1816
+ className: styles$g.bookmark
1791
1817
  }, React__default.createElement(BookmarkButton, {
1792
1818
  isInBookmarks: isInBookmarks,
1793
1819
  onClick: function onClick() {
@@ -1943,7 +1969,7 @@ var RenderBlocks = function RenderBlocks(_ref) {
1943
1969
  }
1944
1970
  };
1945
1971
 
1946
- var styles$v = {"root":"Cover-module_root__18Z8J","body":"Cover-module_body__1xs8e","image":"Cover-module_image__2f3Qc","rich":"Cover-module_rich__1fAGA","dark":"Cover-module_dark__2Ac-w","light":"Cover-module_light__FUp5X","control":"Cover-module_control__VXbhi","isInDynamicBlock":"Cover-module_isInDynamicBlock__3eghb","mobile":"Cover-module_mobile__5DKa1","desktop":"Cover-module_desktop__2mrOc"};
1972
+ var styles$w = {"root":"Cover-module_root__18Z8J","body":"Cover-module_body__1xs8e","image":"Cover-module_image__2f3Qc","rich":"Cover-module_rich__1fAGA","dark":"Cover-module_dark__2Ac-w","light":"Cover-module_light__FUp5X","control":"Cover-module_control__VXbhi","isInDynamicBlock":"Cover-module_isInDynamicBlock__3eghb","mobile":"Cover-module_mobile__5DKa1","desktop":"Cover-module_desktop__2mrOc"};
1947
1973
 
1948
1974
  var Cover = function Cover(_ref) {
1949
1975
  var _ref$block = _ref.block,
@@ -1964,15 +1990,15 @@ var Cover = function Cover(_ref) {
1964
1990
  setIsPopoverShown = _useState[1];
1965
1991
 
1966
1992
  var style = {};
1967
- var classNames = [[styles$v.root, true], [styles$v[onlyOn], !!onlyOn && !!styles$v[onlyOn]]];
1993
+ var classNames = [[styles$w.root, true], [styles$w[onlyOn], !!onlyOn && !!styles$w[onlyOn]]];
1968
1994
 
1969
1995
  if (styleContext) {
1970
- classNames = makeStyleContext(classNames, styleContext, styles$v);
1996
+ classNames = makeStyleContext(classNames, styleContext, styles$w);
1971
1997
  }
1972
1998
 
1973
1999
  if (gradients) {
1974
2000
  var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
1975
- classNames = makeStyleContext(classNames, theme, styles$v);
2001
+ classNames = makeStyleContext(classNames, theme, styles$w);
1976
2002
  style.backgroundImage = generateGradient(gradients.bg_rgb);
1977
2003
  }
1978
2004
 
@@ -1988,13 +2014,13 @@ var Cover = function Cover(_ref) {
1988
2014
  "data-testid": "cover",
1989
2015
  className: makeClassName(classNames)
1990
2016
  }, React__default.createElement("div", {
1991
- className: styles$v.image
2017
+ className: styles$w.image
1992
2018
  }, React__default.createElement(Image, {
1993
2019
  optimized: urls,
1994
2020
  ratio: mobileRatio,
1995
2021
  display: "narrow"
1996
2022
  })), React__default.createElement("div", {
1997
- className: styles$v.body,
2023
+ className: styles$w.body,
1998
2024
  style: style
1999
2025
  }, blocks.map(function (item) {
2000
2026
  return React__default.createElement(RenderBlocks, {
@@ -2003,7 +2029,7 @@ var Cover = function Cover(_ref) {
2003
2029
  styleContext: styleContext
2004
2030
  });
2005
2031
  })), cc === 'button' && React__default.createElement("button", {
2006
- className: styles$v.control,
2032
+ className: styles$w.control,
2007
2033
  type: "button",
2008
2034
  "aria-label": "Open",
2009
2035
  onClick: function onClick() {
@@ -2016,7 +2042,7 @@ var Cover = function Cover(_ref) {
2016
2042
  }, renderCC('isInPopover')));
2017
2043
  };
2018
2044
 
2019
- var styles$w = {"root":"HalfBlock-module_root__2frv2","main":"HalfBlock-module_main__2XX73","body":"HalfBlock-module_body__3MnEN","footer":"HalfBlock-module_footer__1C0yp","image":"HalfBlock-module_image__2lYel","mobile":"HalfBlock-module_mobile__2latf","desktop":"HalfBlock-module_desktop__3B1Ej"};
2045
+ var styles$x = {"root":"HalfBlock-module_root__2frv2","main":"HalfBlock-module_main__2XX73","body":"HalfBlock-module_body__3MnEN","footer":"HalfBlock-module_footer__1C0yp","image":"HalfBlock-module_image__2lYel","mobile":"HalfBlock-module_mobile__2latf","desktop":"HalfBlock-module_desktop__3B1Ej"};
2020
2046
 
2021
2047
  var HalfBlock = function HalfBlock(_ref) {
2022
2048
  var _ref$block = _ref.block,
@@ -2028,25 +2054,25 @@ var HalfBlock = function HalfBlock(_ref) {
2028
2054
  credit = _ref$block$data$cover.credit,
2029
2055
  caption = _ref$block$data$cover.caption,
2030
2056
  styleContext = _ref.styleContext;
2031
- var classNames = [[styles$w.root, true], [styles$w[onlyOn], true]];
2057
+ var classNames = [[styles$x.root, true], [styles$x[onlyOn], true]];
2032
2058
 
2033
2059
  if (styleContext) {
2034
- classNames = makeStyleContext(classNames, styleContext, styles$w);
2060
+ classNames = makeStyleContext(classNames, styleContext, styles$x);
2035
2061
  }
2036
2062
 
2037
2063
  return React__default.createElement("div", {
2038
2064
  "data-testid": "half-block",
2039
2065
  className: makeClassName(classNames)
2040
2066
  }, React__default.createElement("div", {
2041
- className: styles$w.main
2067
+ className: styles$x.main
2042
2068
  }, React__default.createElement("div", {
2043
- className: styles$w.image
2069
+ className: styles$x.image
2044
2070
  }, React__default.createElement(Image, {
2045
2071
  optimized: optimized,
2046
2072
  ratio: ratio,
2047
2073
  display: "super_full"
2048
2074
  })), React__default.createElement("div", {
2049
- className: styles$w.body
2075
+ className: styles$x.body
2050
2076
  }, data.blocks.map(function (item) {
2051
2077
  return React__default.createElement(RenderBlocks, {
2052
2078
  key: item.id,
@@ -2054,7 +2080,7 @@ var HalfBlock = function HalfBlock(_ref) {
2054
2080
  styleContext: ['rich']
2055
2081
  });
2056
2082
  }))), React__default.createElement("div", {
2057
- className: styles$w.footer
2083
+ className: styles$x.footer
2058
2084
  }, React__default.createElement(MediaCaption, {
2059
2085
  credit: credit,
2060
2086
  caption: caption,
@@ -2062,17 +2088,17 @@ var HalfBlock = function HalfBlock(_ref) {
2062
2088
  })));
2063
2089
  };
2064
2090
 
2065
- var styles$x = {"root":"ImportantLead-module_root__2BdT3","slide":"ImportantLead-module_slide__3kQ9x","mobile":"ImportantLead-module_mobile__3BXbm","desktop":"ImportantLead-module_desktop__3Zljc"};
2091
+ var styles$y = {"root":"ImportantLead-module_root__2BdT3","slide":"ImportantLead-module_slide__3kQ9x","mobile":"ImportantLead-module_mobile__3BXbm","desktop":"ImportantLead-module_desktop__3Zljc"};
2066
2092
 
2067
2093
  var ImportantLead = function ImportantLead(_ref) {
2068
2094
  var _ref$block = _ref.block,
2069
2095
  onlyOn = _ref$block.only_on,
2070
2096
  data = _ref$block.data,
2071
2097
  styleContext = _ref.styleContext;
2072
- var classNames = [[styles$x.root, true], [styles$x[onlyOn], !!onlyOn]];
2098
+ var classNames = [[styles$y.root, true], [styles$y[onlyOn], !!onlyOn]];
2073
2099
 
2074
2100
  if (styleContext) {
2075
- classNames = makeStyleContext(classNames, styleContext, styles$x);
2101
+ classNames = makeStyleContext(classNames, styleContext, styles$y);
2076
2102
  }
2077
2103
 
2078
2104
  return React__default.createElement("div", {
@@ -2087,7 +2113,7 @@ var ImportantLead = function ImportantLead(_ref) {
2087
2113
  }));
2088
2114
  };
2089
2115
 
2090
- var styles$y = {"root":"Spoiler-module_root__1OfSR","header":"Spoiler-module_header__1rZUs","body":"Spoiler-module_body__Q1e_c","spoiled":"Spoiler-module_spoiled__1A5r4","footer":"Spoiler-module_footer__23mh7","spoilerSticky":"Spoiler-module_spoilerSticky__3Kd30","center":"Spoiler-module_center__tq1m0","full":"Spoiler-module_full__1QFqR","default":"Spoiler-module_default__2Kjx8","mobile":"Spoiler-module_mobile__2BPt8","desktop":"Spoiler-module_desktop__1BIFJ"};
2116
+ var styles$z = {"root":"Spoiler-module_root__1OfSR","header":"Spoiler-module_header__1rZUs","body":"Spoiler-module_body__Q1e_c","spoiled":"Spoiler-module_spoiled__1A5r4","footer":"Spoiler-module_footer__23mh7","spoilerSticky":"Spoiler-module_spoilerSticky__3Kd30","center":"Spoiler-module_center__tq1m0","full":"Spoiler-module_full__1QFqR","default":"Spoiler-module_default__2Kjx8","mobile":"Spoiler-module_mobile__2BPt8","desktop":"Spoiler-module_desktop__1BIFJ"};
2091
2117
 
2092
2118
  var Spoiler = function Spoiler(_ref) {
2093
2119
  var _ref$block = _ref.block,
@@ -2122,10 +2148,10 @@ var Spoiler = function Spoiler(_ref) {
2122
2148
  }
2123
2149
  };
2124
2150
 
2125
- var classNames = [[styles$y.root, true], [styles$y[onlyOn], !!onlyOn], [styles$y[display], !!display && styles$y[display]], [[styles$y.spoiled], !!spoiled]];
2151
+ var classNames = [[styles$z.root, true], [styles$z[onlyOn], !!onlyOn], [styles$z[display], !!display && styles$z[display]], [[styles$z.spoiled], !!spoiled]];
2126
2152
 
2127
2153
  if (styleContext) {
2128
- classNames = makeStyleContext(classNames, styleContext, styles$y);
2154
+ classNames = makeStyleContext(classNames, styleContext, styles$z);
2129
2155
  }
2130
2156
 
2131
2157
  var buttonCollapse = button ? button.collapse : 'Свернуть';
@@ -2135,9 +2161,9 @@ var Spoiler = function Spoiler(_ref) {
2135
2161
  className: makeClassName(classNames),
2136
2162
  "data-testid": "spoiler"
2137
2163
  }, React__default.createElement("div", {
2138
- className: styles$y.header
2164
+ className: styles$z.header
2139
2165
  }, title && React__default.createElement("h3", null, title)), React__default.createElement("div", {
2140
- className: styles$y.body
2166
+ className: styles$z.body
2141
2167
  }, blocks.map(function (item) {
2142
2168
  return React__default.createElement(RenderBlocks, {
2143
2169
  key: item.id,
@@ -2145,7 +2171,7 @@ var Spoiler = function Spoiler(_ref) {
2145
2171
  styleContext: styleContext
2146
2172
  });
2147
2173
  })), React__default.createElement("div", {
2148
- className: styles$y.footer
2174
+ className: styles$z.footer
2149
2175
  }, React__default.createElement(Button, {
2150
2176
  size: "default",
2151
2177
  theme: "gray",
@@ -2221,7 +2247,7 @@ var RawHtmlBlock = function RawHtmlBlock(_ref) {
2221
2247
  }
2222
2248
  };
2223
2249
 
2224
- var styles$z = {"root":"ToolbarButton-module_root__xN-fq","dark":"ToolbarButton-module_dark__GrIOr","bookmark":"ToolbarButton-module_bookmark__3369b","isActive":"ToolbarButton-module_isActive__3NLAE","text":"ToolbarButton-module_text__32m6s"};
2250
+ var styles$A = {"root":"ToolbarButton-module_root__xN-fq","dark":"ToolbarButton-module_dark__GrIOr","bookmark":"ToolbarButton-module_bookmark__3369b","isActive":"ToolbarButton-module_isActive__3NLAE","text":"ToolbarButton-module_text__32m6s"};
2225
2251
 
2226
2252
  var ToolbarButton = function ToolbarButton(_ref) {
2227
2253
  var children = _ref.children,
@@ -2229,7 +2255,7 @@ var ToolbarButton = function ToolbarButton(_ref) {
2229
2255
  theme = _ref.theme,
2230
2256
  isActive = _ref.isActive,
2231
2257
  _onClick = _ref.onClick;
2232
- var classNames = [[styles$z.root, true], [styles$z[type], !!styles$z[type]], [styles$z[theme], !!styles$z[theme] && !!theme], [styles$z.isActive, !!isActive]];
2258
+ var classNames = [[styles$A.root, true], [styles$A[type], !!styles$A[type]], [styles$A[theme], !!styles$A[theme] && !!theme], [styles$A.isActive, !!isActive]];
2233
2259
  return React__default.createElement("button", {
2234
2260
  "data-testid": "toolbar-button",
2235
2261
  className: makeClassName(classNames),
@@ -2242,7 +2268,7 @@ var ToolbarButton = function ToolbarButton(_ref) {
2242
2268
  icon: type,
2243
2269
  styleContext: "isInToolbar"
2244
2270
  }), children && React__default.createElement("span", {
2245
- className: styles$z.text
2271
+ className: styles$A.text
2246
2272
  }, children));
2247
2273
  };
2248
2274
 
@@ -2255,6 +2281,7 @@ exports.DocumentItemsCount = DocumentItemsCount;
2255
2281
  exports.DotsOnImage = DotsOnImage;
2256
2282
  exports.Dropdown = Dropdown;
2257
2283
  exports.EmbedBlockContainer = EmbedBlockContainer;
2284
+ exports.Footnote = Footnote;
2258
2285
  exports.GroupedBlock = GroupedBlock;
2259
2286
  exports.HalfBlock = HalfBlock;
2260
2287
  exports.Image = Image;