@meduza/ui-kit-2 0.1.9 → 0.1.11

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 (35) hide show
  1. package/dist/DotsOnImage/DotsOnImage.types.d.ts +4 -0
  2. package/dist/Footnote/Footnote.stories.d.ts +10 -0
  3. package/dist/Footnote/Footnote.types.d.ts +5 -0
  4. package/dist/Footnote/index.d.ts +3 -0
  5. package/dist/Image/Image.types.d.ts +4 -1
  6. package/dist/index.d.ts +1 -0
  7. package/dist/ui-kit-2.cjs.development.js +295 -245
  8. package/dist/ui-kit-2.cjs.development.js.map +1 -1
  9. package/dist/ui-kit-2.cjs.production.min.js +1 -1
  10. package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
  11. package/dist/ui-kit-2.esm.js +295 -246
  12. package/dist/ui-kit-2.esm.js.map +1 -1
  13. package/dist/ui-kit.css +707 -589
  14. package/package.json +1 -1
  15. package/src/DotsOnImage/DotsOnImage.module.css +31 -11
  16. package/src/DotsOnImage/DotsOnImage.test.tsx +1 -1
  17. package/src/DotsOnImage/DotsOnImage.types.ts +3 -0
  18. package/src/DotsOnImage/index.tsx +47 -20
  19. package/src/DotsOnImage/mock.json +96 -8
  20. package/src/EmbedBlock/EmbedBlock.module.css +1 -1
  21. package/src/EmbedBlock/EmbedBlock.tsx +1 -1
  22. package/src/EmbedBlock/mock.json +54 -0
  23. package/src/Footnote/Footnote.module.css +69 -0
  24. package/src/Footnote/Footnote.stories.module.css +5 -0
  25. package/src/Footnote/Footnote.stories.tsx +43 -0
  26. package/src/Footnote/Footnote.test.tsx +20 -0
  27. package/src/Footnote/Footnote.types.ts +5 -0
  28. package/src/Footnote/index.tsx +26 -0
  29. package/src/Image/Image.stories.tsx +1 -0
  30. package/src/Image/Image.types.ts +4 -1
  31. package/src/Image/index.tsx +12 -6
  32. package/src/Popover/Popover.module.css +36 -2
  33. package/src/Popover/index.tsx +1 -1
  34. package/src/SimpleBlock/FootnoteLink.css +7 -0
  35. package/src/index.tsx +1 -0
@@ -440,10 +440,17 @@ var Image = function Image(_ref) {
440
440
  lightBox = _useContext.lightBox;
441
441
 
442
442
  var handleClick = function handleClick() {
443
+ if (!fullscreen || !lightBox || optimized && !optimized.original) {
444
+ return;
445
+ }
446
+
443
447
  var _viewportSize = viewportSize(),
444
448
  viewportWidth = _viewportSize.width;
445
449
 
446
- if (optimized && !optimized.original || !lightBox || viewportWidth >= MediaQuerySizes.LANDSCAPE_TABLET && !fullscreen) {
450
+ var disableFullscreenDesktop = viewportWidth >= MediaQuerySizes.LANDSCAPE_TABLET && !fullscreen.desktop;
451
+ var disableFullscreenMobile = viewportWidth < MediaQuerySizes.LANDSCAPE_TABLET && !fullscreen.mobile;
452
+
453
+ if (disableFullscreenDesktop || disableFullscreenMobile) {
447
454
  return;
448
455
  }
449
456
 
@@ -461,7 +468,7 @@ var Image = function Image(_ref) {
461
468
 
462
469
  var fallbackSource = source && source[0] || optimized.w325 && optimized.w325['1x'] || optimized.original;
463
470
  return React__default.createElement("div", {
464
- className: makeClassName([[styles$4.root, true], [styles$4.fullscreen, fullscreen]]),
471
+ className: makeClassName([[styles$4.root, true], [styles$4.fullscreen, fullscreen && fullscreen.desktop]]),
465
472
  style: blockStyles,
466
473
  "data-testid": "image"
467
474
  }, React__default.createElement("div", {
@@ -495,7 +502,116 @@ var Image = function Image(_ref) {
495
502
  })));
496
503
  };
497
504
 
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"};
505
+ 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"};
506
+
507
+ var Popover = function Popover(_ref) {
508
+ var children = _ref.children,
509
+ onClose = _ref.onClose;
510
+
511
+ var _useState = React.useState(true),
512
+ visible = _useState[0],
513
+ setVisible = _useState[1];
514
+
515
+ var handleClose = function handleClose() {
516
+ setVisible(false);
517
+ setTimeout(onClose, 350);
518
+ };
519
+
520
+ var handleScroll = function handleScroll() {
521
+ handleClose();
522
+ };
523
+
524
+ var escFunction = function escFunction(event) {
525
+ if (event.key === 'Escape') {
526
+ handleClose();
527
+ }
528
+ };
529
+
530
+ React.useEffect(function () {
531
+ window.addEventListener('keydown', escFunction, false);
532
+ window.addEventListener('scroll', handleScroll, false);
533
+ return function () {
534
+ window.removeEventListener('keydown', escFunction, false);
535
+ window.removeEventListener('scroll', handleScroll, false);
536
+ };
537
+ }, [visible]);
538
+ /* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */
539
+
540
+ return React__default.createElement("div", {
541
+ "data-testid": "popover",
542
+ className: makeClassName([[styles$5.root, true], [styles$5.visible, visible]])
543
+ }, React__default.createElement("div", {
544
+ className: styles$5.overlay,
545
+ onClick: function onClick() {
546
+ return handleClose();
547
+ }
548
+ }), React__default.createElement("div", {
549
+ className: styles$5.container
550
+ }, React__default.createElement("button", {
551
+ type: "button",
552
+ className: styles$5.dismiss,
553
+ onClick: function onClick() {
554
+ return handleClose();
555
+ },
556
+ "aria-label": "dismiss"
557
+ }), React__default.createElement("svg", {
558
+ width: "100%",
559
+ className: styles$5.background
560
+ }, React__default.createElement("defs", null, React__default.createElement("mask", {
561
+ id: "myMask",
562
+ x: "0",
563
+ y: "0",
564
+ width: "100%",
565
+ height: "100%"
566
+ }, React__default.createElement("rect", {
567
+ fill: "white",
568
+ y: "0",
569
+ width: "100%",
570
+ height: "100%",
571
+ x: "0"
572
+ }), React__default.createElement("svg", {
573
+ x: "50%",
574
+ overflow: "visible"
575
+ }, React__default.createElement("g", {
576
+ transform: "translate(-12 0)"
577
+ }, React__default.createElement("path", {
578
+ 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"
579
+ }))))), React__default.createElement("rect", {
580
+ fill: "#F7F7F7",
581
+ id: "base-mask",
582
+ mask: "url(#myMask)",
583
+ x: "0",
584
+ y: "0",
585
+ width: "100%",
586
+ height: "100%"
587
+ })), React__default.createElement("div", {
588
+ className: styles$5.body
589
+ }, children)));
590
+ };
591
+
592
+ var styles$6 = {"root":"Footnote-module_root__2a0-B","body":"Footnote-module_body__259Ly","dismiss":"Footnote-module_dismiss__1HKG5"};
593
+
594
+ var Footnote = function Footnote(_ref) {
595
+ var children = _ref.children,
596
+ onClose = _ref.onClose;
597
+ return React__default.createElement("div", {
598
+ "data-testid": "footnote",
599
+ className: makeClassName([[styles$6.root, true]])
600
+ }, React__default.createElement("button", {
601
+ className: styles$6.dismiss,
602
+ type: "button",
603
+ onClick: function onClick() {
604
+ return onClose();
605
+ }
606
+ }, React__default.createElement(SvgSymbol, {
607
+ icon: "cross",
608
+ size: "unset"
609
+ })), React__default.createElement("div", {
610
+ className: styles$6.body
611
+ }, children));
612
+ };
613
+
614
+ var styles$7 = {"root":"DotsOnImage-module_root__2XP3Q","dot":"DotsOnImage-module_dot__H1wua","popover":"DotsOnImage-module_popover__35Cpj","isRight":"DotsOnImage-module_isRight__2RsJe","isTop":"DotsOnImage-module_isTop__3zmSK","isLeft":"DotsOnImage-module_isLeft__3quc9","isBottom":"DotsOnImage-module_isBottom__3Nk1T","popoverTitle":"DotsOnImage-module_popoverTitle__343d8","popoverBody":"DotsOnImage-module_popoverBody__2MSn7","popoverText":"DotsOnImage-module_popoverText__3v02w","dismiss":"DotsOnImage-module_dismiss__1EWXd"};
499
615
 
500
616
  var DotsOnImage = function DotsOnImage(_ref) {
501
617
  var _ref$block = _ref.block,
@@ -517,22 +633,31 @@ var DotsOnImage = function DotsOnImage(_ref) {
517
633
 
518
634
  var handleDotClick = function handleDotClick(dot) {
519
635
  var shouldShow = dot.id !== popover.id;
636
+ var side = dot.position.x > 50 ? 'isLeft' : 'isRight';
637
+ var align = dot.position.y > 50 ? 'isBottom' : 'isTop';
638
+ var style = {
639
+ top: dot.position.y + "%",
640
+ left: dot.position.x + "%"
641
+ };
520
642
  setPopover({
521
643
  title: dot.title,
522
644
  body: dot.body,
523
645
  show: shouldShow,
524
- id: shouldShow ? dot.id : null
646
+ id: shouldShow ? dot.id : null,
647
+ style: style,
648
+ side: side,
649
+ align: align
525
650
  });
526
651
  };
527
652
 
528
653
  return React__default.createElement("div", {
529
654
  "data-testid": "dots-on-image",
530
- className: styles$5.root
655
+ className: styles$7.root
531
656
  }, React__default.createElement("div", {
532
- className: styles$5.dots
657
+ className: styles$7.dots
533
658
  }, dots.map(function (dot) {
534
659
  return React__default.createElement("button", {
535
- className: styles$5.dot,
660
+ className: styles$7.dot,
536
661
  type: "button",
537
662
  key: dot.id,
538
663
  style: {
@@ -544,40 +669,46 @@ var DotsOnImage = function DotsOnImage(_ref) {
544
669
  return handleDotClick(dot);
545
670
  }
546
671
  }, dot.icon.type === 'svg' && React__default.createElement("div", {
547
- className: styles$5.icon,
548
672
  dangerouslySetInnerHTML: {
549
673
  __html: dot.icon.svg_string
550
674
  }
551
675
  }), dot.icon.type === 'number' && dot.icon.number);
552
676
  })), React__default.createElement("div", {
553
- className: styles$5.image
677
+ className: styles$7.image
554
678
  }, React__default.createElement(Image, {
555
679
  optimized: optimized,
556
680
  width: width,
557
681
  height: height,
558
682
  alt: credit,
559
- 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({
683
+ display: display,
684
+ fullscreen: {
685
+ mobile: false,
686
+ desktop: false
687
+ }
688
+ })), popover.show && React__default.createElement(React__default.Fragment, null, viewportSize().width >= MediaQuerySizes.LANDSCAPE_TABLET ? React__default.createElement("div", {
689
+ className: makeClassName([[styles$7.popover, true], [styles$7[popover.side], !!popover.side], [styles$7[popover.align], !!popover.align]]),
690
+ style: popover.style
691
+ }, React__default.createElement(Footnote, {
692
+ onClose: function onClose() {
693
+ setPopover({
567
694
  show: false
568
695
  });
569
696
  }
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,
697
+ }, React__default.createElement("h3", null, popover.title), React__default.createElement("div", {
577
698
  dangerouslySetInnerHTML: {
578
699
  __html: popover.body
579
700
  }
580
- })));
701
+ }))) : React__default.createElement(Popover, {
702
+ onClose: function onClose() {
703
+ setPopover({
704
+ show: false
705
+ });
706
+ }
707
+ }, React__default.createElement("h3", null, popover.title), React__default.createElement("div", {
708
+ dangerouslySetInnerHTML: {
709
+ __html: popover.body
710
+ }
711
+ }))));
581
712
  };
582
713
 
583
714
  var makeStyleContext = function makeStyleContext(classNames, styleContext, styles) {
@@ -589,7 +720,7 @@ var makeStyleContext = function makeStyleContext(classNames, styleContext, style
589
720
  return classNames.concat(context);
590
721
  };
591
722
 
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"};
723
+ 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
724
 
594
725
  var Tag = function Tag(_ref) {
595
726
  var children = _ref.children,
@@ -600,10 +731,10 @@ var Tag = function Tag(_ref) {
600
731
  styleContext = _ref.styleContext,
601
732
  correlation = _ref.correlation,
602
733
  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]]];
734
+ 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
735
 
605
736
  if (styleContext) {
606
- classNames = makeStyleContext(classNames, styleContext, styles$6);
737
+ classNames = makeStyleContext(classNames, styleContext, styles$8);
607
738
  }
608
739
 
609
740
  return React__default.createElement("div", {
@@ -612,35 +743,35 @@ var Tag = function Tag(_ref) {
612
743
  }, children);
613
744
  };
614
745
 
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"};
746
+ 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
747
 
617
748
  var MediaCaption = function MediaCaption(_ref) {
618
749
  var credit = _ref.credit,
619
750
  caption = _ref.caption,
620
751
  styleContext = _ref.styleContext;
621
- var classNames = [[styles$7.root, true]];
752
+ var classNames = [[styles$9.root, true]];
622
753
 
623
754
  if (styleContext) {
624
- classNames = makeStyleContext(classNames, styleContext, styles$7);
755
+ classNames = makeStyleContext(classNames, styleContext, styles$9);
625
756
  }
626
757
 
627
758
  return React__default.createElement("div", {
628
759
  "data-testid": "media-caption",
629
760
  className: makeClassName(classNames)
630
761
  }, caption && React__default.createElement("div", {
631
- className: styles$7.caption,
762
+ className: styles$9.caption,
632
763
  dangerouslySetInnerHTML: {
633
764
  __html: caption
634
765
  }
635
766
  }), credit && React__default.createElement("div", {
636
- className: styles$7.credit,
767
+ className: styles$9.credit,
637
768
  dangerouslySetInnerHTML: {
638
769
  __html: credit
639
770
  }
640
771
  }));
641
772
  };
642
773
 
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"};
774
+ 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
775
 
645
776
  var Table = function Table(_ref) {
646
777
  var styleContext = _ref.styleContext,
@@ -660,29 +791,29 @@ var Table = function Table(_ref) {
660
791
  '#e7f2ef': 'green',
661
792
  '#f4f0f8': 'violet'
662
793
  };
663
- var classNames = [[styles$8.root, true], [styles$8[display], !!display && !!styles$8[display]]];
794
+ var classNames = [[styles$a.root, true], [styles$a[display], !!display && !!styles$a[display]]];
664
795
 
665
796
  if (styleContext) {
666
- classNames = makeStyleContext(classNames, styleContext, styles$8);
797
+ classNames = makeStyleContext(classNames, styleContext, styles$a);
667
798
  }
668
799
 
669
800
  return React__default.createElement("div", {
670
801
  "data-testid": "table",
671
802
  className: makeClassName(classNames)
672
803
  }, React__default.createElement("div", {
673
- className: styles$8.wrapper
804
+ className: styles$a.wrapper
674
805
  }, React__default.createElement("div", {
675
- className: styles$8.table
806
+ className: styles$a.table
676
807
  }, React__default.createElement("div", {
677
- className: styles$8.tracks
808
+ className: styles$a.tracks
678
809
  }, rows.map(function (row, i) {
679
810
  return React__default.createElement("div", {
680
811
  key: row.key,
681
- className: styles$8.row
812
+ className: styles$a.row
682
813
  }, row.cells.map(function (cell, j) {
683
814
  return React__default.createElement("div", {
684
815
  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]]),
816
+ 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
817
  dangerouslySetInnerHTML: {
687
818
  __html: cell.val
688
819
  }
@@ -694,15 +825,15 @@ var Table = function Table(_ref) {
694
825
  }));
695
826
  };
696
827
 
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-"};
828
+ 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
829
 
699
830
  var MaterialNote = function MaterialNote(_ref) {
700
831
  var data = _ref.block.data,
701
832
  styleContext = _ref.styleContext;
702
- var classNames = [[styles$9.root, true]];
833
+ var classNames = [[styles$b.root, true]];
703
834
 
704
835
  if (styleContext) {
705
- classNames = makeStyleContext(classNames, styleContext, styles$9);
836
+ classNames = makeStyleContext(classNames, styleContext, styles$b);
706
837
  }
707
838
 
708
839
  return React__default.createElement("div", {
@@ -710,7 +841,7 @@ var MaterialNote = function MaterialNote(_ref) {
710
841
  className: makeClassName(classNames)
711
842
  }, data && data.map(function (item) {
712
843
  return React__default.createElement("p", {
713
- className: styles$9[item.type],
844
+ className: styles$b[item.type],
714
845
  key: item.id,
715
846
  dangerouslySetInnerHTML: {
716
847
  __html: item.data
@@ -719,24 +850,24 @@ var MaterialNote = function MaterialNote(_ref) {
719
850
  }));
720
851
  };
721
852
 
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"};
853
+ 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
854
 
724
855
  var BookmarkButton = function BookmarkButton(_ref) {
725
856
  var styleContext = _ref.styleContext,
726
857
  theme = _ref.theme,
727
858
  isInBookmarks = _ref.isInBookmarks,
728
859
  _onClick = _ref.onClick;
729
- var classNames = [[styles$a.root, true], [styles$a.isInBookmarks, isInBookmarks], [styles$a[theme], !!theme && !!styles$a[theme]]];
860
+ var classNames = [[styles$c.root, true], [styles$c.isInBookmarks, isInBookmarks], [styles$c[theme], !!theme && !!styles$c[theme]]];
730
861
 
731
862
  if (styleContext) {
732
- classNames = makeStyleContext(classNames, styleContext, styles$a);
863
+ classNames = makeStyleContext(classNames, styleContext, styles$c);
733
864
  }
734
865
 
735
866
  return React__default.createElement("div", {
736
867
  "data-testid": "bookmark-button",
737
868
  className: makeClassName(classNames)
738
869
  }, React__default.createElement("button", {
739
- className: styles$a.control,
870
+ className: styles$c.control,
740
871
  onClick: function onClick() {
741
872
  return _onClick();
742
873
  },
@@ -747,45 +878,45 @@ var BookmarkButton = function BookmarkButton(_ref) {
747
878
  })));
748
879
  };
749
880
 
750
- var styles$b = {"root":"MaterialTitle-module_root__18ku-","primary":"MaterialTitle-module_primary__2Sfmx","secondary":"MaterialTitle-module_secondary__3uDp4"};
881
+ var styles$d = {"root":"MaterialTitle-module_root__18ku-","primary":"MaterialTitle-module_primary__2Sfmx","secondary":"MaterialTitle-module_secondary__3uDp4"};
751
882
 
752
883
  var Primary = function Primary(_ref) {
753
884
  var children = _ref.children;
754
885
  return React__default.createElement("span", {
755
- className: styles$b.primary
886
+ className: styles$d.primary
756
887
  }, children);
757
888
  };
758
889
  var Secondary = function Secondary(_ref2) {
759
890
  var children = _ref2.children;
760
891
  return React__default.createElement("span", {
761
- className: styles$b.secondary
892
+ className: styles$d.secondary
762
893
  }, children);
763
894
  };
764
895
  var MaterialTitle = function MaterialTitle(_ref3) {
765
896
  var children = _ref3.children;
766
897
  return React__default.createElement("h1", {
767
- className: styles$b.root,
898
+ className: styles$d.root,
768
899
  "data-testid": "material-title"
769
900
  }, children);
770
901
  };
771
902
 
772
- var styles$c = {"root":"Dropdown-module_root__11PNk","active":"Dropdown-module_active__3IwAl","menu":"Dropdown-module_menu__3PIqD","isInAudioPanel":"Dropdown-module_isInAudioPanel__1zv7F"};
903
+ var styles$e = {"root":"Dropdown-module_root__11PNk","active":"Dropdown-module_active__3IwAl","menu":"Dropdown-module_menu__3PIqD","isInAudioPanel":"Dropdown-module_isInAudioPanel__1zv7F"};
773
904
 
774
905
  var Menu = function Menu(_ref) {
775
906
  var children = _ref.children;
776
907
  return React__default.createElement("div", {
777
908
  "data-testid": "dropdown",
778
- className: styles$c.menu
909
+ className: styles$e.menu
779
910
  }, children);
780
911
  };
781
912
  var Dropdown = function Dropdown(_ref2) {
782
913
  var children = _ref2.children,
783
914
  active = _ref2.active,
784
915
  styleContext = _ref2.styleContext;
785
- var classNames = [[styles$c.root, true], [styles$c.active, !!active && !!styles$c.active]];
916
+ var classNames = [[styles$e.root, true], [styles$e.active, !!active && !!styles$e.active]];
786
917
 
787
918
  if (styleContext) {
788
- classNames = makeStyleContext(classNames, styleContext, styles$c);
919
+ classNames = makeStyleContext(classNames, styleContext, styles$e);
789
920
  }
790
921
 
791
922
  return React__default.createElement("div", {
@@ -794,21 +925,21 @@ var Dropdown = function Dropdown(_ref2) {
794
925
  }, children);
795
926
  };
796
927
 
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"};
928
+ 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
929
 
799
930
  var Toolbar = function Toolbar(_ref) {
800
931
  var children = _ref.children,
801
932
  styleContext = _ref.styleContext;
802
- var classNames = [[styles$d.root, true]];
933
+ var classNames = [[styles$f.root, true]];
803
934
 
804
935
  if (styleContext) {
805
- classNames = makeStyleContext(classNames, styleContext, styles$d);
936
+ classNames = makeStyleContext(classNames, styleContext, styles$f);
806
937
  }
807
938
 
808
939
  var renderItems = function renderItems() {
809
940
  return React.Children.map(children, function (item, index) {
810
941
  return React__default.createElement("li", {
811
- className: styles$d.item,
942
+ className: styles$f.item,
812
943
  key: index + "-" + item.props.type
813
944
  }, React__default.cloneElement(item));
814
945
  });
@@ -818,96 +949,11 @@ var Toolbar = function Toolbar(_ref) {
818
949
  "data-testid": "toolbar",
819
950
  className: makeClassName(classNames)
820
951
  }, React__default.createElement("ul", {
821
- className: styles$d.list
952
+ className: styles$f.list
822
953
  }, renderItems()));
823
954
  };
824
955
 
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"};
956
+ 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
957
 
912
958
  var Meta = function Meta(_ref) {
913
959
  var hasSource = _ref.hasSource,
@@ -915,10 +961,10 @@ var Meta = function Meta(_ref) {
915
961
  children = _ref.children,
916
962
  onlyOn = _ref.onlyOn,
917
963
  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]];
964
+ var classNames = [[styles$g.root, true], [styles$g[theme], !!theme && !!styles$g[theme]], [styles$g[onlyOn], !!onlyOn], [styles$g.hasSource, hasSource]];
919
965
 
920
966
  if (styleContext) {
921
- classNames = makeStyleContext(classNames, styleContext, styles$f);
967
+ classNames = makeStyleContext(classNames, styleContext, styles$g);
922
968
  }
923
969
 
924
970
  return React__default.createElement("div", {
@@ -927,7 +973,7 @@ var Meta = function Meta(_ref) {
927
973
  }, children);
928
974
  };
929
975
 
930
- var styles$g = {"root":"Timestamp-module_root__coOvT"};
976
+ var styles$h = {"root":"Timestamp-module_root__coOvT"};
931
977
 
932
978
  var Timestamp = function Timestamp(_ref) {
933
979
  var publishedAt = _ref.publishedAt,
@@ -952,7 +998,7 @@ var Timestamp = function Timestamp(_ref) {
952
998
 
953
999
  return React__default.createElement("time", {
954
1000
  "data-testid": "timestamp",
955
- className: styles$g.root
1001
+ className: styles$h.root
956
1002
  }, published);
957
1003
  };
958
1004
 
@@ -1019,7 +1065,7 @@ var DangerousHTML = function DangerousHTML(_ref) {
1019
1065
  }));
1020
1066
  };
1021
1067
 
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"};
1068
+ 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
1069
 
1024
1070
  var EmbedGif = function EmbedGif(_ref) {
1025
1071
  var gif = _ref.gif,
@@ -1067,9 +1113,9 @@ var EmbedGif = function EmbedGif(_ref) {
1067
1113
  };
1068
1114
  }, []);
1069
1115
  return React__default.createElement("div", {
1070
- className: styles$h.figure
1116
+ className: styles$i.figure
1071
1117
  }, React__default.createElement("div", {
1072
- className: styles$h.objectWrap,
1118
+ className: styles$i.objectWrap,
1073
1119
  style: style,
1074
1120
  "data-frozen": videoFrozen
1075
1121
  }, React__default.createElement("video", {
@@ -1135,9 +1181,12 @@ var EmbedBlock = function EmbedBlock(_ref) {
1135
1181
  case 'image':
1136
1182
  {
1137
1183
  return React__default.createElement("div", {
1138
- className: styles$h.figure
1184
+ className: styles$i.figure
1139
1185
  }, (small || optimized) && React__default.createElement(Image, {
1140
- fullscreen: block.data.fullscreen,
1186
+ fullscreen: {
1187
+ desktop: block.data.fullscreen,
1188
+ mobile: true
1189
+ },
1141
1190
  source: !optimized && [small, large],
1142
1191
  optimized: block.data.optimized,
1143
1192
  width: block.data.width,
@@ -1151,7 +1200,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
1151
1200
  case 'game_embed':
1152
1201
  {
1153
1202
  return React__default.createElement("div", {
1154
- className: styles$h.gameEmbed
1203
+ className: styles$i.gameEmbed
1155
1204
  }, React__default.createElement("iframe", {
1156
1205
  src: block.data.game_src,
1157
1206
  id: block.data.game_id,
@@ -1162,7 +1211,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
1162
1211
  case 'dots_on_image':
1163
1212
  {
1164
1213
  return React__default.createElement("div", {
1165
- className: styles$h.figure
1214
+ className: styles$i.figure
1166
1215
  }, React__default.createElement(DotsOnImage, {
1167
1216
  block: data
1168
1217
  }));
@@ -1171,12 +1220,12 @@ var EmbedBlock = function EmbedBlock(_ref) {
1171
1220
  default:
1172
1221
  {
1173
1222
  return React__default.createElement("div", {
1174
- className: styles$h.object
1223
+ className: styles$i.object
1175
1224
  }, React__default.createElement("div", {
1176
- className: styles$h.wrapper,
1225
+ className: styles$i.wrapper,
1177
1226
  style: style
1178
1227
  }, React__default.createElement(DangerousHTML, {
1179
- className: styles$h.objectWrap,
1228
+ className: styles$i.objectWrap,
1180
1229
  html: html
1181
1230
  })));
1182
1231
  }
@@ -1188,31 +1237,31 @@ var EmbedBlock = function EmbedBlock(_ref) {
1188
1237
  style.height = 0;
1189
1238
  }
1190
1239
 
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,
1240
+ 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
1241
  // чтобы не применились лишние модификаторы
1193
1242
  // TODO: в w6 модификаторы должны передаваться явно
1194
1243
 
1195
1244
  if (styleContext) {
1196
1245
  var filteredContext = Object.keys(styleContext).filter(function (key) {
1197
- return key.startsWith('isIn') && styles$h[key];
1246
+ return key.startsWith('isIn') && styles$i[key];
1198
1247
  }).reduce(function (acc, key) {
1199
- acc.push([styles$h[key], true]);
1248
+ acc.push([styles$i[key], true]);
1200
1249
  return acc;
1201
1250
  }, []);
1202
- classNames = makeStyleContext(classNames, filteredContext, styles$h);
1251
+ classNames = makeStyleContext(classNames, filteredContext, styles$i);
1203
1252
  }
1204
1253
 
1205
1254
  return React__default.createElement("figure", {
1206
1255
  className: makeClassName(classNames)
1207
1256
  }, children && React__default.createElement("div", {
1208
- className: styles$h.object
1257
+ className: styles$i.object
1209
1258
  }, React__default.createElement("div", {
1210
- className: styles$h.wrapper,
1259
+ className: styles$i.wrapper,
1211
1260
  style: style
1212
1261
  }, React__default.createElement("div", {
1213
- className: styles$h.objectWrap
1262
+ className: styles$i.objectWrap
1214
1263
  }, children))), !children && renderEmbed(style), cc === 'default' && React__default.createElement("figcaption", null, renderCC()), cc === 'button' && React__default.createElement("button", {
1215
- className: styles$h.control,
1264
+ className: styles$i.control,
1216
1265
  type: "button",
1217
1266
  "aria-label": "Open",
1218
1267
  onClick: function onClick() {
@@ -1288,15 +1337,15 @@ var EmbedBlockContainer = function EmbedBlockContainer(_ref) {
1288
1337
  });
1289
1338
  };
1290
1339
 
1291
- var styles$i = {"root":"QuoteBlock-module_root__2GrcC","center":"QuoteBlock-module_center__cTFNy"};
1340
+ var styles$j = {"root":"QuoteBlock-module_root__2GrcC","center":"QuoteBlock-module_center__cTFNy"};
1292
1341
 
1293
1342
  var QuoteBlock = function QuoteBlock(_ref) {
1294
1343
  var data = _ref.block.data,
1295
1344
  styleContext = _ref.styleContext;
1296
- var classNames = [[styles$i.root, true]];
1345
+ var classNames = [[styles$j.root, true]];
1297
1346
 
1298
1347
  if (styleContext) {
1299
- classNames = makeStyleContext(classNames, styleContext, styles$i);
1348
+ classNames = makeStyleContext(classNames, styleContext, styles$j);
1300
1349
  }
1301
1350
 
1302
1351
  return React__default.createElement("div", {
@@ -1309,7 +1358,7 @@ var QuoteBlock = function QuoteBlock(_ref) {
1309
1358
  }));
1310
1359
  };
1311
1360
 
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"};
1361
+ 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
1362
 
1314
1363
  var CardTitle = function CardTitle(_ref) {
1315
1364
  var _ref$block$data = _ref.block.data,
@@ -1319,15 +1368,15 @@ var CardTitle = function CardTitle(_ref) {
1319
1368
  styleContext = _ref.styleContext;
1320
1369
  return React__default.createElement("div", {
1321
1370
  "data-testid": "card-title",
1322
- className: makeClassName([[styles$j.root, true], [styles$j[onlyOn], !!onlyOn], [styles$j[styleContext], !!styleContext && !!styles$j[styleContext]]])
1371
+ className: makeClassName([[styles$k.root, true], [styles$k[onlyOn], !!onlyOn], [styles$k[styleContext], !!styleContext && !!styles$k[styleContext]]])
1323
1372
  }, React__default.createElement("div", {
1324
- className: styles$j.index
1373
+ className: styles$k.index
1325
1374
  }, index), React__default.createElement("h3", {
1326
- className: styles$j.title
1375
+ className: styles$k.title
1327
1376
  }, text));
1328
1377
  };
1329
1378
 
1330
- var styles$k = {"root":"ChapterBlock-module_root__1WyVn","subtitle":"ChapterBlock-module_subtitle__3TXll","mobile":"ChapterBlock-module_mobile__CiO0w","desktop":"ChapterBlock-module_desktop__tk1Nk"};
1379
+ var styles$l = {"root":"ChapterBlock-module_root__1WyVn","subtitle":"ChapterBlock-module_subtitle__3TXll","mobile":"ChapterBlock-module_mobile__CiO0w","desktop":"ChapterBlock-module_desktop__tk1Nk"};
1331
1380
 
1332
1381
  var ChapterBlock = function ChapterBlock(_ref) {
1333
1382
  var _ref$block = _ref.block,
@@ -1336,9 +1385,9 @@ var ChapterBlock = function ChapterBlock(_ref) {
1336
1385
  styleContext = _ref.styleContext;
1337
1386
  return React__default.createElement("div", {
1338
1387
  "data-testid": "chapter-block",
1339
- className: makeClassName([[styles$k.root, true], [styles$k[onlyOn], !!onlyOn]])
1388
+ className: makeClassName([[styles$l.root, true], [styles$l[onlyOn], !!onlyOn]])
1340
1389
  }, React__default.createElement("div", {
1341
- className: makeClassName([[styles$k.subtitle, true], [styles$k[styleContext], !!styleContext && !!styles$k[styleContext]]]),
1390
+ className: makeClassName([[styles$l.subtitle, true], [styles$l[styleContext], !!styleContext && !!styles$l[styleContext]]]),
1342
1391
  dangerouslySetInnerHTML: {
1343
1392
  __html: data
1344
1393
  }
@@ -1353,17 +1402,17 @@ var generateGradient = function generateGradient(color) {
1353
1402
  return "linear-gradient(-180deg, " + gradient + ")";
1354
1403
  };
1355
1404
 
1356
- var styles$l = {"root":"SimpleTitle-module_root__2jVQN","mobile":"SimpleTitle-module_mobile__11gBz","desktop":"SimpleTitle-module_desktop__3yXgy"};
1405
+ var styles$m = {"root":"SimpleTitle-module_root__2jVQN","mobile":"SimpleTitle-module_mobile__11gBz","desktop":"SimpleTitle-module_desktop__3yXgy"};
1357
1406
 
1358
1407
  var SimpleTitle = function SimpleTitle(_ref) {
1359
1408
  var _ref$block = _ref.block,
1360
1409
  first = _ref$block.data.first,
1361
1410
  onlyOn = _ref$block.only_on,
1362
1411
  styleContext = _ref.styleContext;
1363
- var classNames = [[styles$l.root, true], [styles$l[onlyOn], true]];
1412
+ var classNames = [[styles$m.root, true], [styles$m[onlyOn], true]];
1364
1413
 
1365
1414
  if (styleContext) {
1366
- classNames = makeStyleContext(classNames, styleContext, styles$l);
1415
+ classNames = makeStyleContext(classNames, styleContext, styles$m);
1367
1416
  }
1368
1417
 
1369
1418
  return React__default.createElement("div", {
@@ -1372,7 +1421,7 @@ var SimpleTitle = function SimpleTitle(_ref) {
1372
1421
  }, first);
1373
1422
  };
1374
1423
 
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"};
1424
+ 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
1425
 
1377
1426
  var RichTitle = function RichTitle(_ref) {
1378
1427
  var _ref$block = _ref.block,
@@ -1382,10 +1431,10 @@ var RichTitle = function RichTitle(_ref) {
1382
1431
  first = _ref$block$data.first,
1383
1432
  second = _ref$block$data.second,
1384
1433
  styleContext = _ref.styleContext;
1385
- var classNames = [[styles$m.root, true], [styles$m[onlyOn], true], [styles$m.featured, !!featured]];
1434
+ var classNames = [[styles$n.root, true], [styles$n[onlyOn], true], [styles$n.featured, !!featured]];
1386
1435
 
1387
1436
  if (styleContext) {
1388
- classNames = makeStyleContext(classNames, styleContext, styles$m);
1437
+ classNames = makeStyleContext(classNames, styleContext, styles$n);
1389
1438
  }
1390
1439
 
1391
1440
  return React__default.createElement("h1", {
@@ -1394,7 +1443,7 @@ var RichTitle = function RichTitle(_ref) {
1394
1443
  }, first, second && React__default.createElement("span", null, " ", second));
1395
1444
  };
1396
1445
 
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"};
1446
+ 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
1447
 
1399
1448
  var SimpleBlock = function SimpleBlock(_ref) {
1400
1449
  var _ref$block = _ref.block,
@@ -1403,10 +1452,10 @@ var SimpleBlock = function SimpleBlock(_ref) {
1403
1452
  onlyOn = _ref$block.only_on,
1404
1453
  styleContext = _ref.styleContext;
1405
1454
  var TagName;
1406
- var classNames = [[styles$n[type], !!type && !!styles$n[type]], [styles$n[onlyOn], true]];
1455
+ var classNames = [[styles$o[type], !!type && !!styles$o[type]], [styles$o[onlyOn], true]];
1407
1456
 
1408
1457
  if (styleContext) {
1409
- classNames = makeStyleContext(classNames, styleContext, styles$n);
1458
+ classNames = makeStyleContext(classNames, styleContext, styles$o);
1410
1459
  }
1411
1460
 
1412
1461
  switch (type) {
@@ -1437,7 +1486,7 @@ var SimpleBlock = function SimpleBlock(_ref) {
1437
1486
  });
1438
1487
  };
1439
1488
 
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"};
1489
+ 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
1490
 
1442
1491
  var ListBlock = function ListBlock(_ref) {
1443
1492
  var _ref$block = _ref.block,
@@ -1446,10 +1495,10 @@ var ListBlock = function ListBlock(_ref) {
1446
1495
  onlyOn = _ref$block.only_on,
1447
1496
  styleContext = _ref.styleContext;
1448
1497
  var TagName = type;
1449
- var classNames = [[styles$o.root, true], [styles$o[onlyOn], true], [styles$o[type], !!type && !!styles$o[type]]];
1498
+ var classNames = [[styles$p.root, true], [styles$p[onlyOn], true], [styles$p[type], !!type && !!styles$p[type]]];
1450
1499
 
1451
1500
  if (styleContext) {
1452
- classNames = makeStyleContext(classNames, styleContext, styles$o);
1501
+ classNames = makeStyleContext(classNames, styleContext, styles$p);
1453
1502
  }
1454
1503
 
1455
1504
  return React__default.createElement(TagName, {
@@ -1464,7 +1513,7 @@ var ListBlock = function ListBlock(_ref) {
1464
1513
  }));
1465
1514
  };
1466
1515
 
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"};
1516
+ 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
1517
 
1469
1518
  var RelatedBlock = function RelatedBlock(_ref) {
1470
1519
  var _ref$block = _ref.block,
@@ -1473,34 +1522,34 @@ var RelatedBlock = function RelatedBlock(_ref) {
1473
1522
  related = _ref$block$data.related,
1474
1523
  onlyOn = _ref$block.only_on,
1475
1524
  styleContext = _ref.styleContext;
1476
- var classNames = [[styles$p.root, true], [styles$p[onlyOn], true]];
1525
+ var classNames = [[styles$q.root, true], [styles$q[onlyOn], true]];
1477
1526
 
1478
1527
  if (styleContext) {
1479
- classNames = makeStyleContext(classNames, styleContext, styles$p);
1528
+ classNames = makeStyleContext(classNames, styleContext, styles$q);
1480
1529
  }
1481
1530
 
1482
1531
  return React__default.createElement("div", {
1483
1532
  "data-testid": "related-block",
1484
1533
  className: makeClassName(classNames)
1485
1534
  }, React__default.createElement("h3", {
1486
- className: styles$p.header
1535
+ className: styles$q.header
1487
1536
  }, title), React__default.createElement("ul", {
1488
- className: styles$p.items
1537
+ className: styles$q.items
1489
1538
  }, related.map(function (item, index) {
1490
1539
  return React__default.createElement("li", {
1491
1540
  key: item.id || index,
1492
- className: styles$p[item.layout]
1541
+ className: styles$q[item.layout]
1493
1542
  }, React__default.createElement("a", {
1494
1543
  href: item.full_url || "/" + item.url,
1495
1544
  target: "_blank",
1496
1545
  rel: "noopener noreferrer"
1497
1546
  }, React__default.createElement("span", {
1498
- className: styles$p.first
1547
+ className: styles$q.first
1499
1548
  }, item.title), item.second_title && ' ', item.second_title && React__default.createElement("span", null, item.second_title)));
1500
1549
  })));
1501
1550
  };
1502
1551
 
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"};
1552
+ 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
1553
 
1505
1554
  var SourceBlock = function SourceBlock(_ref) {
1506
1555
  var _ref$block = _ref.block,
@@ -1510,10 +1559,10 @@ var SourceBlock = function SourceBlock(_ref) {
1510
1559
  origin = _ref$block$data.origin,
1511
1560
  url = _ref$block$data.url,
1512
1561
  styleContext = _ref.styleContext;
1513
- var classNames = [[styles$q.root, true], [styles$q[onlyOn], true]];
1562
+ var classNames = [[styles$r.root, true], [styles$r[onlyOn], true]];
1514
1563
 
1515
1564
  if (styleContext) {
1516
- classNames = makeStyleContext(classNames, styleContext, styles$q);
1565
+ classNames = makeStyleContext(classNames, styleContext, styles$r);
1517
1566
  }
1518
1567
 
1519
1568
  return React__default.createElement("blockquote", {
@@ -1521,7 +1570,7 @@ var SourceBlock = function SourceBlock(_ref) {
1521
1570
  cite: url,
1522
1571
  className: makeClassName(classNames)
1523
1572
  }, React__default.createElement("a", {
1524
- className: styles$q.text,
1573
+ className: styles$r.text,
1525
1574
  href: url,
1526
1575
  target: "_blank",
1527
1576
  rel: "noopener noreferrer"
@@ -1533,11 +1582,11 @@ var SourceBlock = function SourceBlock(_ref) {
1533
1582
  }
1534
1583
  });
1535
1584
  }), React__default.createElement("footer", null, React__default.createElement("cite", {
1536
- className: styles$q.origin
1585
+ className: styles$r.origin
1537
1586
  }, origin))));
1538
1587
  };
1539
1588
 
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"};
1589
+ 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
1590
 
1542
1591
  var GroupedBlock = function GroupedBlock(_ref) {
1543
1592
  var block = _ref.block,
@@ -1552,21 +1601,21 @@ var GroupedBlock = function GroupedBlock(_ref) {
1552
1601
  var sumWidth = normalizedBoxesWidth.reduce(function (sum, x) {
1553
1602
  return sum + x;
1554
1603
  });
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]]];
1604
+ 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
1605
 
1557
1606
  if (styleContext) {
1558
- classNames = makeStyleContext(classNames, styleContext, styles$r);
1607
+ classNames = makeStyleContext(classNames, styleContext, styles$s);
1559
1608
  }
1560
1609
 
1561
1610
  return React__default.createElement("div", {
1562
1611
  "data-testid": "grouped-block",
1563
1612
  className: makeClassName(classNames)
1564
1613
  }, React__default.createElement("div", {
1565
- className: styles$r.items
1614
+ className: styles$s.items
1566
1615
  }, block.data.map(function (item, index) {
1567
1616
  var percentWidth = normalizedBoxesWidth[index] / sumWidth * 100;
1568
1617
  return React__default.createElement("div", {
1569
- className: styles$r.item,
1618
+ className: styles$s.item,
1570
1619
  key: item.id,
1571
1620
  style: {
1572
1621
  width: percentWidth + "%"
@@ -1576,7 +1625,7 @@ var GroupedBlock = function GroupedBlock(_ref) {
1576
1625
  styleContext: "isInGroupedBlock"
1577
1626
  }));
1578
1627
  })), block.cc && React__default.createElement("figcaption", {
1579
- className: styles$r.figcaption
1628
+ className: styles$s.figcaption
1580
1629
  }, React__default.createElement(MediaCaption, {
1581
1630
  credit: block.credit,
1582
1631
  caption: block.caption,
@@ -1584,32 +1633,32 @@ var GroupedBlock = function GroupedBlock(_ref) {
1584
1633
  })));
1585
1634
  };
1586
1635
 
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"};
1636
+ 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
1637
 
1589
1638
  var MetaItem = function MetaItem(_ref) {
1590
1639
  var hasSource = _ref.hasSource,
1591
1640
  type = _ref.type,
1592
1641
  children = _ref.children,
1593
1642
  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]];
1643
+ var classNames = [[styles$t.root, true], [styles$t[type], !!type && !!styles$t[type]], [styles$t.hasSource, !!hasSource], [styles$t.hasBullets, !!bullets]];
1595
1644
  return React__default.createElement("div", {
1596
1645
  "data-testid": "meta-item",
1597
1646
  className: makeClassName(classNames)
1598
1647
  }, children);
1599
1648
  };
1600
1649
 
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"};
1650
+ 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
1651
 
1603
1652
  var MetaItemLive = function MetaItemLive(_ref) {
1604
1653
  var _ref$theme = _ref.theme,
1605
1654
  theme = _ref$theme === void 0 ? 'gold' : _ref$theme;
1606
- var classNames = [[styles$t.root, true], [styles$t[theme], !!theme && styles$t[theme]]];
1655
+ var classNames = [[styles$u.root, true], [styles$u[theme], !!theme && styles$u[theme]]];
1607
1656
  return React__default.createElement("div", {
1608
1657
  "data-testid": "meta-item-live",
1609
1658
  "data-meta": "live",
1610
1659
  className: makeClassName(classNames)
1611
1660
  }, React__default.createElement("div", {
1612
- className: styles$t.frame
1661
+ className: styles$u.frame
1613
1662
  }));
1614
1663
  };
1615
1664
 
@@ -1634,7 +1683,7 @@ var pluralize = function pluralize(number, one, two, five) {
1634
1683
  return five;
1635
1684
  };
1636
1685
 
1637
- var styles$u = {"root":"DocumentItemsCount-module_root__P3q-z","items":"DocumentItemsCount-module_items__3pfxW"};
1686
+ var styles$v = {"root":"DocumentItemsCount-module_root__P3q-z","items":"DocumentItemsCount-module_items__3pfxW"};
1638
1687
 
1639
1688
  var DocumentItemsCount = function DocumentItemsCount(_ref) {
1640
1689
  var type = _ref.type,
@@ -1671,9 +1720,9 @@ var DocumentItemsCount = function DocumentItemsCount(_ref) {
1671
1720
  var itemsCount = items + " " + pluralize(items, i18n[lang][type].one, i18n[lang][type].two, i18n[lang][type].five);
1672
1721
  return React__default.createElement("div", {
1673
1722
  "data-testid": "document-items-count",
1674
- className: styles$u.root
1723
+ className: styles$v.root
1675
1724
  }, children, React__default.createElement("span", {
1676
- className: styles$u.items
1725
+ className: styles$v.items
1677
1726
  }, itemsCount));
1678
1727
  };
1679
1728
 
@@ -1787,7 +1836,7 @@ var MetaContainer = function MetaContainer(_ref) {
1787
1836
  icon: isListened ? 'listened' : 'read',
1788
1837
  size: "unset"
1789
1838
  })), isSlides && lang === 'ru' && React__default.createElement("div", {
1790
- className: styles$f.bookmark
1839
+ className: styles$g.bookmark
1791
1840
  }, React__default.createElement(BookmarkButton, {
1792
1841
  isInBookmarks: isInBookmarks,
1793
1842
  onClick: function onClick() {
@@ -1943,7 +1992,7 @@ var RenderBlocks = function RenderBlocks(_ref) {
1943
1992
  }
1944
1993
  };
1945
1994
 
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"};
1995
+ 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
1996
 
1948
1997
  var Cover = function Cover(_ref) {
1949
1998
  var _ref$block = _ref.block,
@@ -1964,15 +2013,15 @@ var Cover = function Cover(_ref) {
1964
2013
  setIsPopoverShown = _useState[1];
1965
2014
 
1966
2015
  var style = {};
1967
- var classNames = [[styles$v.root, true], [styles$v[onlyOn], !!onlyOn && !!styles$v[onlyOn]]];
2016
+ var classNames = [[styles$w.root, true], [styles$w[onlyOn], !!onlyOn && !!styles$w[onlyOn]]];
1968
2017
 
1969
2018
  if (styleContext) {
1970
- classNames = makeStyleContext(classNames, styleContext, styles$v);
2019
+ classNames = makeStyleContext(classNames, styleContext, styles$w);
1971
2020
  }
1972
2021
 
1973
2022
  if (gradients) {
1974
2023
  var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
1975
- classNames = makeStyleContext(classNames, theme, styles$v);
2024
+ classNames = makeStyleContext(classNames, theme, styles$w);
1976
2025
  style.backgroundImage = generateGradient(gradients.bg_rgb);
1977
2026
  }
1978
2027
 
@@ -1988,13 +2037,13 @@ var Cover = function Cover(_ref) {
1988
2037
  "data-testid": "cover",
1989
2038
  className: makeClassName(classNames)
1990
2039
  }, React__default.createElement("div", {
1991
- className: styles$v.image
2040
+ className: styles$w.image
1992
2041
  }, React__default.createElement(Image, {
1993
2042
  optimized: urls,
1994
2043
  ratio: mobileRatio,
1995
2044
  display: "narrow"
1996
2045
  })), React__default.createElement("div", {
1997
- className: styles$v.body,
2046
+ className: styles$w.body,
1998
2047
  style: style
1999
2048
  }, blocks.map(function (item) {
2000
2049
  return React__default.createElement(RenderBlocks, {
@@ -2003,7 +2052,7 @@ var Cover = function Cover(_ref) {
2003
2052
  styleContext: styleContext
2004
2053
  });
2005
2054
  })), cc === 'button' && React__default.createElement("button", {
2006
- className: styles$v.control,
2055
+ className: styles$w.control,
2007
2056
  type: "button",
2008
2057
  "aria-label": "Open",
2009
2058
  onClick: function onClick() {
@@ -2016,7 +2065,7 @@ var Cover = function Cover(_ref) {
2016
2065
  }, renderCC('isInPopover')));
2017
2066
  };
2018
2067
 
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"};
2068
+ 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
2069
 
2021
2070
  var HalfBlock = function HalfBlock(_ref) {
2022
2071
  var _ref$block = _ref.block,
@@ -2028,25 +2077,25 @@ var HalfBlock = function HalfBlock(_ref) {
2028
2077
  credit = _ref$block$data$cover.credit,
2029
2078
  caption = _ref$block$data$cover.caption,
2030
2079
  styleContext = _ref.styleContext;
2031
- var classNames = [[styles$w.root, true], [styles$w[onlyOn], true]];
2080
+ var classNames = [[styles$x.root, true], [styles$x[onlyOn], true]];
2032
2081
 
2033
2082
  if (styleContext) {
2034
- classNames = makeStyleContext(classNames, styleContext, styles$w);
2083
+ classNames = makeStyleContext(classNames, styleContext, styles$x);
2035
2084
  }
2036
2085
 
2037
2086
  return React__default.createElement("div", {
2038
2087
  "data-testid": "half-block",
2039
2088
  className: makeClassName(classNames)
2040
2089
  }, React__default.createElement("div", {
2041
- className: styles$w.main
2090
+ className: styles$x.main
2042
2091
  }, React__default.createElement("div", {
2043
- className: styles$w.image
2092
+ className: styles$x.image
2044
2093
  }, React__default.createElement(Image, {
2045
2094
  optimized: optimized,
2046
2095
  ratio: ratio,
2047
2096
  display: "super_full"
2048
2097
  })), React__default.createElement("div", {
2049
- className: styles$w.body
2098
+ className: styles$x.body
2050
2099
  }, data.blocks.map(function (item) {
2051
2100
  return React__default.createElement(RenderBlocks, {
2052
2101
  key: item.id,
@@ -2054,7 +2103,7 @@ var HalfBlock = function HalfBlock(_ref) {
2054
2103
  styleContext: ['rich']
2055
2104
  });
2056
2105
  }))), React__default.createElement("div", {
2057
- className: styles$w.footer
2106
+ className: styles$x.footer
2058
2107
  }, React__default.createElement(MediaCaption, {
2059
2108
  credit: credit,
2060
2109
  caption: caption,
@@ -2062,17 +2111,17 @@ var HalfBlock = function HalfBlock(_ref) {
2062
2111
  })));
2063
2112
  };
2064
2113
 
2065
- var styles$x = {"root":"ImportantLead-module_root__2BdT3","slide":"ImportantLead-module_slide__3kQ9x","mobile":"ImportantLead-module_mobile__3BXbm","desktop":"ImportantLead-module_desktop__3Zljc"};
2114
+ var styles$y = {"root":"ImportantLead-module_root__2BdT3","slide":"ImportantLead-module_slide__3kQ9x","mobile":"ImportantLead-module_mobile__3BXbm","desktop":"ImportantLead-module_desktop__3Zljc"};
2066
2115
 
2067
2116
  var ImportantLead = function ImportantLead(_ref) {
2068
2117
  var _ref$block = _ref.block,
2069
2118
  onlyOn = _ref$block.only_on,
2070
2119
  data = _ref$block.data,
2071
2120
  styleContext = _ref.styleContext;
2072
- var classNames = [[styles$x.root, true], [styles$x[onlyOn], !!onlyOn]];
2121
+ var classNames = [[styles$y.root, true], [styles$y[onlyOn], !!onlyOn]];
2073
2122
 
2074
2123
  if (styleContext) {
2075
- classNames = makeStyleContext(classNames, styleContext, styles$x);
2124
+ classNames = makeStyleContext(classNames, styleContext, styles$y);
2076
2125
  }
2077
2126
 
2078
2127
  return React__default.createElement("div", {
@@ -2087,7 +2136,7 @@ var ImportantLead = function ImportantLead(_ref) {
2087
2136
  }));
2088
2137
  };
2089
2138
 
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"};
2139
+ 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
2140
 
2092
2141
  var Spoiler = function Spoiler(_ref) {
2093
2142
  var _ref$block = _ref.block,
@@ -2122,10 +2171,10 @@ var Spoiler = function Spoiler(_ref) {
2122
2171
  }
2123
2172
  };
2124
2173
 
2125
- var classNames = [[styles$y.root, true], [styles$y[onlyOn], !!onlyOn], [styles$y[display], !!display && styles$y[display]], [[styles$y.spoiled], !!spoiled]];
2174
+ var classNames = [[styles$z.root, true], [styles$z[onlyOn], !!onlyOn], [styles$z[display], !!display && styles$z[display]], [[styles$z.spoiled], !!spoiled]];
2126
2175
 
2127
2176
  if (styleContext) {
2128
- classNames = makeStyleContext(classNames, styleContext, styles$y);
2177
+ classNames = makeStyleContext(classNames, styleContext, styles$z);
2129
2178
  }
2130
2179
 
2131
2180
  var buttonCollapse = button ? button.collapse : 'Свернуть';
@@ -2135,9 +2184,9 @@ var Spoiler = function Spoiler(_ref) {
2135
2184
  className: makeClassName(classNames),
2136
2185
  "data-testid": "spoiler"
2137
2186
  }, React__default.createElement("div", {
2138
- className: styles$y.header
2187
+ className: styles$z.header
2139
2188
  }, title && React__default.createElement("h3", null, title)), React__default.createElement("div", {
2140
- className: styles$y.body
2189
+ className: styles$z.body
2141
2190
  }, blocks.map(function (item) {
2142
2191
  return React__default.createElement(RenderBlocks, {
2143
2192
  key: item.id,
@@ -2145,7 +2194,7 @@ var Spoiler = function Spoiler(_ref) {
2145
2194
  styleContext: styleContext
2146
2195
  });
2147
2196
  })), React__default.createElement("div", {
2148
- className: styles$y.footer
2197
+ className: styles$z.footer
2149
2198
  }, React__default.createElement(Button, {
2150
2199
  size: "default",
2151
2200
  theme: "gray",
@@ -2221,7 +2270,7 @@ var RawHtmlBlock = function RawHtmlBlock(_ref) {
2221
2270
  }
2222
2271
  };
2223
2272
 
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"};
2273
+ 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
2274
 
2226
2275
  var ToolbarButton = function ToolbarButton(_ref) {
2227
2276
  var children = _ref.children,
@@ -2229,7 +2278,7 @@ var ToolbarButton = function ToolbarButton(_ref) {
2229
2278
  theme = _ref.theme,
2230
2279
  isActive = _ref.isActive,
2231
2280
  _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]];
2281
+ var classNames = [[styles$A.root, true], [styles$A[type], !!styles$A[type]], [styles$A[theme], !!styles$A[theme] && !!theme], [styles$A.isActive, !!isActive]];
2233
2282
  return React__default.createElement("button", {
2234
2283
  "data-testid": "toolbar-button",
2235
2284
  className: makeClassName(classNames),
@@ -2242,7 +2291,7 @@ var ToolbarButton = function ToolbarButton(_ref) {
2242
2291
  icon: type,
2243
2292
  styleContext: "isInToolbar"
2244
2293
  }), children && React__default.createElement("span", {
2245
- className: styles$z.text
2294
+ className: styles$A.text
2246
2295
  }, children));
2247
2296
  };
2248
2297
 
@@ -2255,6 +2304,7 @@ exports.DocumentItemsCount = DocumentItemsCount;
2255
2304
  exports.DotsOnImage = DotsOnImage;
2256
2305
  exports.Dropdown = Dropdown;
2257
2306
  exports.EmbedBlockContainer = EmbedBlockContainer;
2307
+ exports.Footnote = Footnote;
2258
2308
  exports.GroupedBlock = GroupedBlock;
2259
2309
  exports.HalfBlock = HalfBlock;
2260
2310
  exports.Image = Image;