@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
@@ -433,10 +433,17 @@ var Image = function Image(_ref) {
433
433
  lightBox = _useContext.lightBox;
434
434
 
435
435
  var handleClick = function handleClick() {
436
+ if (!fullscreen || !lightBox || optimized && !optimized.original) {
437
+ return;
438
+ }
439
+
436
440
  var _viewportSize = viewportSize(),
437
441
  viewportWidth = _viewportSize.width;
438
442
 
439
- if (optimized && !optimized.original || !lightBox || viewportWidth >= MediaQuerySizes.LANDSCAPE_TABLET && !fullscreen) {
443
+ var disableFullscreenDesktop = viewportWidth >= MediaQuerySizes.LANDSCAPE_TABLET && !fullscreen.desktop;
444
+ var disableFullscreenMobile = viewportWidth < MediaQuerySizes.LANDSCAPE_TABLET && !fullscreen.mobile;
445
+
446
+ if (disableFullscreenDesktop || disableFullscreenMobile) {
440
447
  return;
441
448
  }
442
449
 
@@ -454,7 +461,7 @@ var Image = function Image(_ref) {
454
461
 
455
462
  var fallbackSource = source && source[0] || optimized.w325 && optimized.w325['1x'] || optimized.original;
456
463
  return React.createElement("div", {
457
- className: makeClassName([[styles$4.root, true], [styles$4.fullscreen, fullscreen]]),
464
+ className: makeClassName([[styles$4.root, true], [styles$4.fullscreen, fullscreen && fullscreen.desktop]]),
458
465
  style: blockStyles,
459
466
  "data-testid": "image"
460
467
  }, React.createElement("div", {
@@ -488,7 +495,116 @@ var Image = function Image(_ref) {
488
495
  })));
489
496
  };
490
497
 
491
- 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 = 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
+ 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.createElement("div", {
534
+ "data-testid": "popover",
535
+ className: makeClassName([[styles$5.root, true], [styles$5.visible, visible]])
536
+ }, React.createElement("div", {
537
+ className: styles$5.overlay,
538
+ onClick: function onClick() {
539
+ return handleClose();
540
+ }
541
+ }), React.createElement("div", {
542
+ className: styles$5.container
543
+ }, React.createElement("button", {
544
+ type: "button",
545
+ className: styles$5.dismiss,
546
+ onClick: function onClick() {
547
+ return handleClose();
548
+ },
549
+ "aria-label": "dismiss"
550
+ }), React.createElement("svg", {
551
+ width: "100%",
552
+ className: styles$5.background
553
+ }, React.createElement("defs", null, React.createElement("mask", {
554
+ id: "myMask",
555
+ x: "0",
556
+ y: "0",
557
+ width: "100%",
558
+ height: "100%"
559
+ }, React.createElement("rect", {
560
+ fill: "white",
561
+ y: "0",
562
+ width: "100%",
563
+ height: "100%",
564
+ x: "0"
565
+ }), React.createElement("svg", {
566
+ x: "50%",
567
+ overflow: "visible"
568
+ }, React.createElement("g", {
569
+ transform: "translate(-12 0)"
570
+ }, React.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.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.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.createElement("div", {
591
+ "data-testid": "footnote",
592
+ className: makeClassName([[styles$6.root, true]])
593
+ }, React.createElement("button", {
594
+ className: styles$6.dismiss,
595
+ type: "button",
596
+ onClick: function onClick() {
597
+ return onClose();
598
+ }
599
+ }, React.createElement(SvgSymbol, {
600
+ icon: "cross",
601
+ size: "unset"
602
+ })), React.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","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"};
492
608
 
493
609
  var DotsOnImage = function DotsOnImage(_ref) {
494
610
  var _ref$block = _ref.block,
@@ -510,22 +626,31 @@ var DotsOnImage = function DotsOnImage(_ref) {
510
626
 
511
627
  var handleDotClick = function handleDotClick(dot) {
512
628
  var shouldShow = dot.id !== popover.id;
629
+ var side = dot.position.x > 50 ? 'isLeft' : 'isRight';
630
+ var align = dot.position.y > 50 ? 'isBottom' : 'isTop';
631
+ var style = {
632
+ top: dot.position.y + "%",
633
+ left: dot.position.x + "%"
634
+ };
513
635
  setPopover({
514
636
  title: dot.title,
515
637
  body: dot.body,
516
638
  show: shouldShow,
517
- id: shouldShow ? dot.id : null
639
+ id: shouldShow ? dot.id : null,
640
+ style: style,
641
+ side: side,
642
+ align: align
518
643
  });
519
644
  };
520
645
 
521
646
  return React.createElement("div", {
522
647
  "data-testid": "dots-on-image",
523
- className: styles$5.root
648
+ className: styles$7.root
524
649
  }, React.createElement("div", {
525
- className: styles$5.dots
650
+ className: styles$7.dots
526
651
  }, dots.map(function (dot) {
527
652
  return React.createElement("button", {
528
- className: styles$5.dot,
653
+ className: styles$7.dot,
529
654
  type: "button",
530
655
  key: dot.id,
531
656
  style: {
@@ -537,40 +662,46 @@ var DotsOnImage = function DotsOnImage(_ref) {
537
662
  return handleDotClick(dot);
538
663
  }
539
664
  }, dot.icon.type === 'svg' && React.createElement("div", {
540
- className: styles$5.icon,
541
665
  dangerouslySetInnerHTML: {
542
666
  __html: dot.icon.svg_string
543
667
  }
544
668
  }), dot.icon.type === 'number' && dot.icon.number);
545
669
  })), React.createElement("div", {
546
- className: styles$5.image
670
+ className: styles$7.image
547
671
  }, React.createElement(Image, {
548
672
  optimized: optimized,
549
673
  width: width,
550
674
  height: height,
551
675
  alt: credit,
552
- display: display
553
- })), popover.show && React.createElement("div", {
554
- className: styles$5.popover
555
- }, React.createElement("button", {
556
- className: styles$5.dismiss,
557
- type: "button",
558
- onClick: function onClick() {
559
- return setPopover({
676
+ display: display,
677
+ fullscreen: {
678
+ mobile: false,
679
+ desktop: false
680
+ }
681
+ })), popover.show && React.createElement(React.Fragment, null, viewportSize().width >= MediaQuerySizes.LANDSCAPE_TABLET ? React.createElement("div", {
682
+ className: makeClassName([[styles$7.popover, true], [styles$7[popover.side], !!popover.side], [styles$7[popover.align], !!popover.align]]),
683
+ style: popover.style
684
+ }, React.createElement(Footnote, {
685
+ onClose: function onClose() {
686
+ setPopover({
560
687
  show: false
561
688
  });
562
689
  }
563
- }, React.createElement(SvgSymbol, {
564
- icon: "cross",
565
- size: "unset"
566
- })), React.createElement("div", {
567
- className: styles$5.popoverTitle
568
- }, popover.title), React.createElement("div", {
569
- className: styles$5.popoverBody,
690
+ }, React.createElement("h3", null, popover.title), React.createElement("div", {
570
691
  dangerouslySetInnerHTML: {
571
692
  __html: popover.body
572
693
  }
573
- })));
694
+ }))) : React.createElement(Popover, {
695
+ onClose: function onClose() {
696
+ setPopover({
697
+ show: false
698
+ });
699
+ }
700
+ }, React.createElement("h3", null, popover.title), React.createElement("div", {
701
+ dangerouslySetInnerHTML: {
702
+ __html: popover.body
703
+ }
704
+ }))));
574
705
  };
575
706
 
576
707
  var makeStyleContext = function makeStyleContext(classNames, styleContext, styles) {
@@ -582,7 +713,7 @@ var makeStyleContext = function makeStyleContext(classNames, styleContext, style
582
713
  return classNames.concat(context);
583
714
  };
584
715
 
585
- 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"};
716
+ 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"};
586
717
 
587
718
  var Tag = function Tag(_ref) {
588
719
  var children = _ref.children,
@@ -593,10 +724,10 @@ var Tag = function Tag(_ref) {
593
724
  styleContext = _ref.styleContext,
594
725
  correlation = _ref.correlation,
595
726
  onlyOn = _ref.onlyOn;
596
- 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]]];
727
+ 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]]];
597
728
 
598
729
  if (styleContext) {
599
- classNames = makeStyleContext(classNames, styleContext, styles$6);
730
+ classNames = makeStyleContext(classNames, styleContext, styles$8);
600
731
  }
601
732
 
602
733
  return React.createElement("div", {
@@ -605,35 +736,35 @@ var Tag = function Tag(_ref) {
605
736
  }, children);
606
737
  };
607
738
 
608
- 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"};
739
+ 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"};
609
740
 
610
741
  var MediaCaption = function MediaCaption(_ref) {
611
742
  var credit = _ref.credit,
612
743
  caption = _ref.caption,
613
744
  styleContext = _ref.styleContext;
614
- var classNames = [[styles$7.root, true]];
745
+ var classNames = [[styles$9.root, true]];
615
746
 
616
747
  if (styleContext) {
617
- classNames = makeStyleContext(classNames, styleContext, styles$7);
748
+ classNames = makeStyleContext(classNames, styleContext, styles$9);
618
749
  }
619
750
 
620
751
  return React.createElement("div", {
621
752
  "data-testid": "media-caption",
622
753
  className: makeClassName(classNames)
623
754
  }, caption && React.createElement("div", {
624
- className: styles$7.caption,
755
+ className: styles$9.caption,
625
756
  dangerouslySetInnerHTML: {
626
757
  __html: caption
627
758
  }
628
759
  }), credit && React.createElement("div", {
629
- className: styles$7.credit,
760
+ className: styles$9.credit,
630
761
  dangerouslySetInnerHTML: {
631
762
  __html: credit
632
763
  }
633
764
  }));
634
765
  };
635
766
 
636
- 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"};
767
+ 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"};
637
768
 
638
769
  var Table = function Table(_ref) {
639
770
  var styleContext = _ref.styleContext,
@@ -653,29 +784,29 @@ var Table = function Table(_ref) {
653
784
  '#e7f2ef': 'green',
654
785
  '#f4f0f8': 'violet'
655
786
  };
656
- var classNames = [[styles$8.root, true], [styles$8[display], !!display && !!styles$8[display]]];
787
+ var classNames = [[styles$a.root, true], [styles$a[display], !!display && !!styles$a[display]]];
657
788
 
658
789
  if (styleContext) {
659
- classNames = makeStyleContext(classNames, styleContext, styles$8);
790
+ classNames = makeStyleContext(classNames, styleContext, styles$a);
660
791
  }
661
792
 
662
793
  return React.createElement("div", {
663
794
  "data-testid": "table",
664
795
  className: makeClassName(classNames)
665
796
  }, React.createElement("div", {
666
- className: styles$8.wrapper
797
+ className: styles$a.wrapper
667
798
  }, React.createElement("div", {
668
- className: styles$8.table
799
+ className: styles$a.table
669
800
  }, React.createElement("div", {
670
- className: styles$8.tracks
801
+ className: styles$a.tracks
671
802
  }, rows.map(function (row, i) {
672
803
  return React.createElement("div", {
673
804
  key: row.key,
674
- className: styles$8.row
805
+ className: styles$a.row
675
806
  }, row.cells.map(function (cell, j) {
676
807
  return React.createElement("div", {
677
808
  key: cell.key,
678
- 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]]),
809
+ 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]]),
679
810
  dangerouslySetInnerHTML: {
680
811
  __html: cell.val
681
812
  }
@@ -687,15 +818,15 @@ var Table = function Table(_ref) {
687
818
  }));
688
819
  };
689
820
 
690
- 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-"};
821
+ 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-"};
691
822
 
692
823
  var MaterialNote = function MaterialNote(_ref) {
693
824
  var data = _ref.block.data,
694
825
  styleContext = _ref.styleContext;
695
- var classNames = [[styles$9.root, true]];
826
+ var classNames = [[styles$b.root, true]];
696
827
 
697
828
  if (styleContext) {
698
- classNames = makeStyleContext(classNames, styleContext, styles$9);
829
+ classNames = makeStyleContext(classNames, styleContext, styles$b);
699
830
  }
700
831
 
701
832
  return React.createElement("div", {
@@ -703,7 +834,7 @@ var MaterialNote = function MaterialNote(_ref) {
703
834
  className: makeClassName(classNames)
704
835
  }, data && data.map(function (item) {
705
836
  return React.createElement("p", {
706
- className: styles$9[item.type],
837
+ className: styles$b[item.type],
707
838
  key: item.id,
708
839
  dangerouslySetInnerHTML: {
709
840
  __html: item.data
@@ -712,24 +843,24 @@ var MaterialNote = function MaterialNote(_ref) {
712
843
  }));
713
844
  };
714
845
 
715
- 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"};
846
+ 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"};
716
847
 
717
848
  var BookmarkButton = function BookmarkButton(_ref) {
718
849
  var styleContext = _ref.styleContext,
719
850
  theme = _ref.theme,
720
851
  isInBookmarks = _ref.isInBookmarks,
721
852
  _onClick = _ref.onClick;
722
- var classNames = [[styles$a.root, true], [styles$a.isInBookmarks, isInBookmarks], [styles$a[theme], !!theme && !!styles$a[theme]]];
853
+ var classNames = [[styles$c.root, true], [styles$c.isInBookmarks, isInBookmarks], [styles$c[theme], !!theme && !!styles$c[theme]]];
723
854
 
724
855
  if (styleContext) {
725
- classNames = makeStyleContext(classNames, styleContext, styles$a);
856
+ classNames = makeStyleContext(classNames, styleContext, styles$c);
726
857
  }
727
858
 
728
859
  return React.createElement("div", {
729
860
  "data-testid": "bookmark-button",
730
861
  className: makeClassName(classNames)
731
862
  }, React.createElement("button", {
732
- className: styles$a.control,
863
+ className: styles$c.control,
733
864
  onClick: function onClick() {
734
865
  return _onClick();
735
866
  },
@@ -740,45 +871,45 @@ var BookmarkButton = function BookmarkButton(_ref) {
740
871
  })));
741
872
  };
742
873
 
743
- var styles$b = {"root":"MaterialTitle-module_root__18ku-","primary":"MaterialTitle-module_primary__2Sfmx","secondary":"MaterialTitle-module_secondary__3uDp4"};
874
+ var styles$d = {"root":"MaterialTitle-module_root__18ku-","primary":"MaterialTitle-module_primary__2Sfmx","secondary":"MaterialTitle-module_secondary__3uDp4"};
744
875
 
745
876
  var Primary = function Primary(_ref) {
746
877
  var children = _ref.children;
747
878
  return React.createElement("span", {
748
- className: styles$b.primary
879
+ className: styles$d.primary
749
880
  }, children);
750
881
  };
751
882
  var Secondary = function Secondary(_ref2) {
752
883
  var children = _ref2.children;
753
884
  return React.createElement("span", {
754
- className: styles$b.secondary
885
+ className: styles$d.secondary
755
886
  }, children);
756
887
  };
757
888
  var MaterialTitle = function MaterialTitle(_ref3) {
758
889
  var children = _ref3.children;
759
890
  return React.createElement("h1", {
760
- className: styles$b.root,
891
+ className: styles$d.root,
761
892
  "data-testid": "material-title"
762
893
  }, children);
763
894
  };
764
895
 
765
- var styles$c = {"root":"Dropdown-module_root__11PNk","active":"Dropdown-module_active__3IwAl","menu":"Dropdown-module_menu__3PIqD","isInAudioPanel":"Dropdown-module_isInAudioPanel__1zv7F"};
896
+ var styles$e = {"root":"Dropdown-module_root__11PNk","active":"Dropdown-module_active__3IwAl","menu":"Dropdown-module_menu__3PIqD","isInAudioPanel":"Dropdown-module_isInAudioPanel__1zv7F"};
766
897
 
767
898
  var Menu = function Menu(_ref) {
768
899
  var children = _ref.children;
769
900
  return React.createElement("div", {
770
901
  "data-testid": "dropdown",
771
- className: styles$c.menu
902
+ className: styles$e.menu
772
903
  }, children);
773
904
  };
774
905
  var Dropdown = function Dropdown(_ref2) {
775
906
  var children = _ref2.children,
776
907
  active = _ref2.active,
777
908
  styleContext = _ref2.styleContext;
778
- var classNames = [[styles$c.root, true], [styles$c.active, !!active && !!styles$c.active]];
909
+ var classNames = [[styles$e.root, true], [styles$e.active, !!active && !!styles$e.active]];
779
910
 
780
911
  if (styleContext) {
781
- classNames = makeStyleContext(classNames, styleContext, styles$c);
912
+ classNames = makeStyleContext(classNames, styleContext, styles$e);
782
913
  }
783
914
 
784
915
  return React.createElement("div", {
@@ -787,21 +918,21 @@ var Dropdown = function Dropdown(_ref2) {
787
918
  }, children);
788
919
  };
789
920
 
790
- 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"};
921
+ 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"};
791
922
 
792
923
  var Toolbar = function Toolbar(_ref) {
793
924
  var children = _ref.children,
794
925
  styleContext = _ref.styleContext;
795
- var classNames = [[styles$d.root, true]];
926
+ var classNames = [[styles$f.root, true]];
796
927
 
797
928
  if (styleContext) {
798
- classNames = makeStyleContext(classNames, styleContext, styles$d);
929
+ classNames = makeStyleContext(classNames, styleContext, styles$f);
799
930
  }
800
931
 
801
932
  var renderItems = function renderItems() {
802
933
  return Children.map(children, function (item, index) {
803
934
  return React.createElement("li", {
804
- className: styles$d.item,
935
+ className: styles$f.item,
805
936
  key: index + "-" + item.props.type
806
937
  }, React.cloneElement(item));
807
938
  });
@@ -811,96 +942,11 @@ var Toolbar = function Toolbar(_ref) {
811
942
  "data-testid": "toolbar",
812
943
  className: makeClassName(classNames)
813
944
  }, React.createElement("ul", {
814
- className: styles$d.list
945
+ className: styles$f.list
815
946
  }, renderItems()));
816
947
  };
817
948
 
818
- 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"};
819
-
820
- var Popover = function Popover(_ref) {
821
- var children = _ref.children,
822
- onClose = _ref.onClose;
823
-
824
- var _useState = useState(true),
825
- visible = _useState[0],
826
- setVisible = _useState[1];
827
-
828
- var handleClose = function handleClose() {
829
- setVisible(false);
830
- setTimeout(onClose, 350);
831
- };
832
-
833
- var handleScroll = function handleScroll() {
834
- handleClose();
835
- };
836
-
837
- var escFunction = function escFunction(event) {
838
- if (event.key === 'Escape') {
839
- handleClose();
840
- }
841
- };
842
-
843
- useEffect(function () {
844
- window.addEventListener('keydown', escFunction, false);
845
- window.addEventListener('scroll', handleScroll, false);
846
- return function () {
847
- window.removeEventListener('keydown', escFunction, false);
848
- window.removeEventListener('scroll', handleScroll, false);
849
- };
850
- }, [visible]);
851
- /* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */
852
-
853
- return React.createElement("div", {
854
- "data-testid": "popover",
855
- className: makeClassName([[styles$e.root, true], [styles$e.visible, visible]])
856
- }, React.createElement("div", {
857
- className: styles$e.overlay,
858
- onClick: function onClick() {
859
- return handleClose();
860
- }
861
- }), React.createElement("div", {
862
- className: styles$e.container
863
- }, React.createElement("button", {
864
- type: "button",
865
- className: styles$e.dismiss,
866
- onClick: function onClick() {
867
- return handleClose();
868
- },
869
- "aria-label": "dismiss"
870
- }), React.createElement("svg", {
871
- width: "100%",
872
- className: styles$e.background
873
- }, React.createElement("defs", null, React.createElement("mask", {
874
- id: "myMask",
875
- x: "0",
876
- y: "0",
877
- width: "100%",
878
- height: "100%"
879
- }, React.createElement("rect", {
880
- fill: "white",
881
- y: "0",
882
- width: "100%",
883
- height: "100%",
884
- x: "0"
885
- }), React.createElement("svg", {
886
- x: "50%",
887
- overflow: "visible"
888
- }, React.createElement("g", {
889
- transform: "translate(-12 0)"
890
- }, React.createElement("path", {
891
- 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"
892
- }))))), React.createElement("rect", {
893
- fill: "#F7F7F7",
894
- id: "base-mask",
895
- mask: "url(#myMask)",
896
- x: "0",
897
- y: "0",
898
- width: "100%",
899
- height: "100%"
900
- })), children));
901
- };
902
-
903
- 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"};
949
+ 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"};
904
950
 
905
951
  var Meta = function Meta(_ref) {
906
952
  var hasSource = _ref.hasSource,
@@ -908,10 +954,10 @@ var Meta = function Meta(_ref) {
908
954
  children = _ref.children,
909
955
  onlyOn = _ref.onlyOn,
910
956
  styleContext = _ref.styleContext;
911
- var classNames = [[styles$f.root, true], [styles$f[theme], !!theme && !!styles$f[theme]], [styles$f[onlyOn], !!onlyOn], [styles$f.hasSource, hasSource]];
957
+ var classNames = [[styles$g.root, true], [styles$g[theme], !!theme && !!styles$g[theme]], [styles$g[onlyOn], !!onlyOn], [styles$g.hasSource, hasSource]];
912
958
 
913
959
  if (styleContext) {
914
- classNames = makeStyleContext(classNames, styleContext, styles$f);
960
+ classNames = makeStyleContext(classNames, styleContext, styles$g);
915
961
  }
916
962
 
917
963
  return React.createElement("div", {
@@ -920,7 +966,7 @@ var Meta = function Meta(_ref) {
920
966
  }, children);
921
967
  };
922
968
 
923
- var styles$g = {"root":"Timestamp-module_root__coOvT"};
969
+ var styles$h = {"root":"Timestamp-module_root__coOvT"};
924
970
 
925
971
  var Timestamp = function Timestamp(_ref) {
926
972
  var publishedAt = _ref.publishedAt,
@@ -945,7 +991,7 @@ var Timestamp = function Timestamp(_ref) {
945
991
 
946
992
  return React.createElement("time", {
947
993
  "data-testid": "timestamp",
948
- className: styles$g.root
994
+ className: styles$h.root
949
995
  }, published);
950
996
  };
951
997
 
@@ -1012,7 +1058,7 @@ var DangerousHTML = function DangerousHTML(_ref) {
1012
1058
  }));
1013
1059
  };
1014
1060
 
1015
- 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"};
1061
+ 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"};
1016
1062
 
1017
1063
  var EmbedGif = function EmbedGif(_ref) {
1018
1064
  var gif = _ref.gif,
@@ -1060,9 +1106,9 @@ var EmbedGif = function EmbedGif(_ref) {
1060
1106
  };
1061
1107
  }, []);
1062
1108
  return React.createElement("div", {
1063
- className: styles$h.figure
1109
+ className: styles$i.figure
1064
1110
  }, React.createElement("div", {
1065
- className: styles$h.objectWrap,
1111
+ className: styles$i.objectWrap,
1066
1112
  style: style,
1067
1113
  "data-frozen": videoFrozen
1068
1114
  }, React.createElement("video", {
@@ -1128,9 +1174,12 @@ var EmbedBlock = function EmbedBlock(_ref) {
1128
1174
  case 'image':
1129
1175
  {
1130
1176
  return React.createElement("div", {
1131
- className: styles$h.figure
1177
+ className: styles$i.figure
1132
1178
  }, (small || optimized) && React.createElement(Image, {
1133
- fullscreen: block.data.fullscreen,
1179
+ fullscreen: {
1180
+ desktop: block.data.fullscreen,
1181
+ mobile: true
1182
+ },
1134
1183
  source: !optimized && [small, large],
1135
1184
  optimized: block.data.optimized,
1136
1185
  width: block.data.width,
@@ -1144,7 +1193,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
1144
1193
  case 'game_embed':
1145
1194
  {
1146
1195
  return React.createElement("div", {
1147
- className: styles$h.gameEmbed
1196
+ className: styles$i.gameEmbed
1148
1197
  }, React.createElement("iframe", {
1149
1198
  src: block.data.game_src,
1150
1199
  id: block.data.game_id,
@@ -1155,7 +1204,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
1155
1204
  case 'dots_on_image':
1156
1205
  {
1157
1206
  return React.createElement("div", {
1158
- className: styles$h.figure
1207
+ className: styles$i.figure
1159
1208
  }, React.createElement(DotsOnImage, {
1160
1209
  block: data
1161
1210
  }));
@@ -1164,12 +1213,12 @@ var EmbedBlock = function EmbedBlock(_ref) {
1164
1213
  default:
1165
1214
  {
1166
1215
  return React.createElement("div", {
1167
- className: styles$h.object
1216
+ className: styles$i.object
1168
1217
  }, React.createElement("div", {
1169
- className: styles$h.wrapper,
1218
+ className: styles$i.wrapper,
1170
1219
  style: style
1171
1220
  }, React.createElement(DangerousHTML, {
1172
- className: styles$h.objectWrap,
1221
+ className: styles$i.objectWrap,
1173
1222
  html: html
1174
1223
  })));
1175
1224
  }
@@ -1181,31 +1230,31 @@ var EmbedBlock = function EmbedBlock(_ref) {
1181
1230
  style.height = 0;
1182
1231
  }
1183
1232
 
1184
- 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,
1233
+ 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,
1185
1234
  // чтобы не применились лишние модификаторы
1186
1235
  // TODO: в w6 модификаторы должны передаваться явно
1187
1236
 
1188
1237
  if (styleContext) {
1189
1238
  var filteredContext = Object.keys(styleContext).filter(function (key) {
1190
- return key.startsWith('isIn') && styles$h[key];
1239
+ return key.startsWith('isIn') && styles$i[key];
1191
1240
  }).reduce(function (acc, key) {
1192
- acc.push([styles$h[key], true]);
1241
+ acc.push([styles$i[key], true]);
1193
1242
  return acc;
1194
1243
  }, []);
1195
- classNames = makeStyleContext(classNames, filteredContext, styles$h);
1244
+ classNames = makeStyleContext(classNames, filteredContext, styles$i);
1196
1245
  }
1197
1246
 
1198
1247
  return React.createElement("figure", {
1199
1248
  className: makeClassName(classNames)
1200
1249
  }, children && React.createElement("div", {
1201
- className: styles$h.object
1250
+ className: styles$i.object
1202
1251
  }, React.createElement("div", {
1203
- className: styles$h.wrapper,
1252
+ className: styles$i.wrapper,
1204
1253
  style: style
1205
1254
  }, React.createElement("div", {
1206
- className: styles$h.objectWrap
1255
+ className: styles$i.objectWrap
1207
1256
  }, children))), !children && renderEmbed(style), cc === 'default' && React.createElement("figcaption", null, renderCC()), cc === 'button' && React.createElement("button", {
1208
- className: styles$h.control,
1257
+ className: styles$i.control,
1209
1258
  type: "button",
1210
1259
  "aria-label": "Open",
1211
1260
  onClick: function onClick() {
@@ -1281,15 +1330,15 @@ var EmbedBlockContainer = function EmbedBlockContainer(_ref) {
1281
1330
  });
1282
1331
  };
1283
1332
 
1284
- var styles$i = {"root":"QuoteBlock-module_root__2GrcC","center":"QuoteBlock-module_center__cTFNy"};
1333
+ var styles$j = {"root":"QuoteBlock-module_root__2GrcC","center":"QuoteBlock-module_center__cTFNy"};
1285
1334
 
1286
1335
  var QuoteBlock = function QuoteBlock(_ref) {
1287
1336
  var data = _ref.block.data,
1288
1337
  styleContext = _ref.styleContext;
1289
- var classNames = [[styles$i.root, true]];
1338
+ var classNames = [[styles$j.root, true]];
1290
1339
 
1291
1340
  if (styleContext) {
1292
- classNames = makeStyleContext(classNames, styleContext, styles$i);
1341
+ classNames = makeStyleContext(classNames, styleContext, styles$j);
1293
1342
  }
1294
1343
 
1295
1344
  return React.createElement("div", {
@@ -1302,7 +1351,7 @@ var QuoteBlock = function QuoteBlock(_ref) {
1302
1351
  }));
1303
1352
  };
1304
1353
 
1305
- 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"};
1354
+ 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"};
1306
1355
 
1307
1356
  var CardTitle = function CardTitle(_ref) {
1308
1357
  var _ref$block$data = _ref.block.data,
@@ -1312,15 +1361,15 @@ var CardTitle = function CardTitle(_ref) {
1312
1361
  styleContext = _ref.styleContext;
1313
1362
  return React.createElement("div", {
1314
1363
  "data-testid": "card-title",
1315
- className: makeClassName([[styles$j.root, true], [styles$j[onlyOn], !!onlyOn], [styles$j[styleContext], !!styleContext && !!styles$j[styleContext]]])
1364
+ className: makeClassName([[styles$k.root, true], [styles$k[onlyOn], !!onlyOn], [styles$k[styleContext], !!styleContext && !!styles$k[styleContext]]])
1316
1365
  }, React.createElement("div", {
1317
- className: styles$j.index
1366
+ className: styles$k.index
1318
1367
  }, index), React.createElement("h3", {
1319
- className: styles$j.title
1368
+ className: styles$k.title
1320
1369
  }, text));
1321
1370
  };
1322
1371
 
1323
- var styles$k = {"root":"ChapterBlock-module_root__1WyVn","subtitle":"ChapterBlock-module_subtitle__3TXll","mobile":"ChapterBlock-module_mobile__CiO0w","desktop":"ChapterBlock-module_desktop__tk1Nk"};
1372
+ var styles$l = {"root":"ChapterBlock-module_root__1WyVn","subtitle":"ChapterBlock-module_subtitle__3TXll","mobile":"ChapterBlock-module_mobile__CiO0w","desktop":"ChapterBlock-module_desktop__tk1Nk"};
1324
1373
 
1325
1374
  var ChapterBlock = function ChapterBlock(_ref) {
1326
1375
  var _ref$block = _ref.block,
@@ -1329,9 +1378,9 @@ var ChapterBlock = function ChapterBlock(_ref) {
1329
1378
  styleContext = _ref.styleContext;
1330
1379
  return React.createElement("div", {
1331
1380
  "data-testid": "chapter-block",
1332
- className: makeClassName([[styles$k.root, true], [styles$k[onlyOn], !!onlyOn]])
1381
+ className: makeClassName([[styles$l.root, true], [styles$l[onlyOn], !!onlyOn]])
1333
1382
  }, React.createElement("div", {
1334
- className: makeClassName([[styles$k.subtitle, true], [styles$k[styleContext], !!styleContext && !!styles$k[styleContext]]]),
1383
+ className: makeClassName([[styles$l.subtitle, true], [styles$l[styleContext], !!styleContext && !!styles$l[styleContext]]]),
1335
1384
  dangerouslySetInnerHTML: {
1336
1385
  __html: data
1337
1386
  }
@@ -1346,17 +1395,17 @@ var generateGradient = function generateGradient(color) {
1346
1395
  return "linear-gradient(-180deg, " + gradient + ")";
1347
1396
  };
1348
1397
 
1349
- var styles$l = {"root":"SimpleTitle-module_root__2jVQN","mobile":"SimpleTitle-module_mobile__11gBz","desktop":"SimpleTitle-module_desktop__3yXgy"};
1398
+ var styles$m = {"root":"SimpleTitle-module_root__2jVQN","mobile":"SimpleTitle-module_mobile__11gBz","desktop":"SimpleTitle-module_desktop__3yXgy"};
1350
1399
 
1351
1400
  var SimpleTitle = function SimpleTitle(_ref) {
1352
1401
  var _ref$block = _ref.block,
1353
1402
  first = _ref$block.data.first,
1354
1403
  onlyOn = _ref$block.only_on,
1355
1404
  styleContext = _ref.styleContext;
1356
- var classNames = [[styles$l.root, true], [styles$l[onlyOn], true]];
1405
+ var classNames = [[styles$m.root, true], [styles$m[onlyOn], true]];
1357
1406
 
1358
1407
  if (styleContext) {
1359
- classNames = makeStyleContext(classNames, styleContext, styles$l);
1408
+ classNames = makeStyleContext(classNames, styleContext, styles$m);
1360
1409
  }
1361
1410
 
1362
1411
  return React.createElement("div", {
@@ -1365,7 +1414,7 @@ var SimpleTitle = function SimpleTitle(_ref) {
1365
1414
  }, first);
1366
1415
  };
1367
1416
 
1368
- 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"};
1417
+ 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"};
1369
1418
 
1370
1419
  var RichTitle = function RichTitle(_ref) {
1371
1420
  var _ref$block = _ref.block,
@@ -1375,10 +1424,10 @@ var RichTitle = function RichTitle(_ref) {
1375
1424
  first = _ref$block$data.first,
1376
1425
  second = _ref$block$data.second,
1377
1426
  styleContext = _ref.styleContext;
1378
- var classNames = [[styles$m.root, true], [styles$m[onlyOn], true], [styles$m.featured, !!featured]];
1427
+ var classNames = [[styles$n.root, true], [styles$n[onlyOn], true], [styles$n.featured, !!featured]];
1379
1428
 
1380
1429
  if (styleContext) {
1381
- classNames = makeStyleContext(classNames, styleContext, styles$m);
1430
+ classNames = makeStyleContext(classNames, styleContext, styles$n);
1382
1431
  }
1383
1432
 
1384
1433
  return React.createElement("h1", {
@@ -1387,7 +1436,7 @@ var RichTitle = function RichTitle(_ref) {
1387
1436
  }, first, second && React.createElement("span", null, " ", second));
1388
1437
  };
1389
1438
 
1390
- 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"};
1439
+ 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"};
1391
1440
 
1392
1441
  var SimpleBlock = function SimpleBlock(_ref) {
1393
1442
  var _ref$block = _ref.block,
@@ -1396,10 +1445,10 @@ var SimpleBlock = function SimpleBlock(_ref) {
1396
1445
  onlyOn = _ref$block.only_on,
1397
1446
  styleContext = _ref.styleContext;
1398
1447
  var TagName;
1399
- var classNames = [[styles$n[type], !!type && !!styles$n[type]], [styles$n[onlyOn], true]];
1448
+ var classNames = [[styles$o[type], !!type && !!styles$o[type]], [styles$o[onlyOn], true]];
1400
1449
 
1401
1450
  if (styleContext) {
1402
- classNames = makeStyleContext(classNames, styleContext, styles$n);
1451
+ classNames = makeStyleContext(classNames, styleContext, styles$o);
1403
1452
  }
1404
1453
 
1405
1454
  switch (type) {
@@ -1430,7 +1479,7 @@ var SimpleBlock = function SimpleBlock(_ref) {
1430
1479
  });
1431
1480
  };
1432
1481
 
1433
- 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"};
1482
+ 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"};
1434
1483
 
1435
1484
  var ListBlock = function ListBlock(_ref) {
1436
1485
  var _ref$block = _ref.block,
@@ -1439,10 +1488,10 @@ var ListBlock = function ListBlock(_ref) {
1439
1488
  onlyOn = _ref$block.only_on,
1440
1489
  styleContext = _ref.styleContext;
1441
1490
  var TagName = type;
1442
- var classNames = [[styles$o.root, true], [styles$o[onlyOn], true], [styles$o[type], !!type && !!styles$o[type]]];
1491
+ var classNames = [[styles$p.root, true], [styles$p[onlyOn], true], [styles$p[type], !!type && !!styles$p[type]]];
1443
1492
 
1444
1493
  if (styleContext) {
1445
- classNames = makeStyleContext(classNames, styleContext, styles$o);
1494
+ classNames = makeStyleContext(classNames, styleContext, styles$p);
1446
1495
  }
1447
1496
 
1448
1497
  return React.createElement(TagName, {
@@ -1457,7 +1506,7 @@ var ListBlock = function ListBlock(_ref) {
1457
1506
  }));
1458
1507
  };
1459
1508
 
1460
- 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"};
1509
+ 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"};
1461
1510
 
1462
1511
  var RelatedBlock = function RelatedBlock(_ref) {
1463
1512
  var _ref$block = _ref.block,
@@ -1466,34 +1515,34 @@ var RelatedBlock = function RelatedBlock(_ref) {
1466
1515
  related = _ref$block$data.related,
1467
1516
  onlyOn = _ref$block.only_on,
1468
1517
  styleContext = _ref.styleContext;
1469
- var classNames = [[styles$p.root, true], [styles$p[onlyOn], true]];
1518
+ var classNames = [[styles$q.root, true], [styles$q[onlyOn], true]];
1470
1519
 
1471
1520
  if (styleContext) {
1472
- classNames = makeStyleContext(classNames, styleContext, styles$p);
1521
+ classNames = makeStyleContext(classNames, styleContext, styles$q);
1473
1522
  }
1474
1523
 
1475
1524
  return React.createElement("div", {
1476
1525
  "data-testid": "related-block",
1477
1526
  className: makeClassName(classNames)
1478
1527
  }, React.createElement("h3", {
1479
- className: styles$p.header
1528
+ className: styles$q.header
1480
1529
  }, title), React.createElement("ul", {
1481
- className: styles$p.items
1530
+ className: styles$q.items
1482
1531
  }, related.map(function (item, index) {
1483
1532
  return React.createElement("li", {
1484
1533
  key: item.id || index,
1485
- className: styles$p[item.layout]
1534
+ className: styles$q[item.layout]
1486
1535
  }, React.createElement("a", {
1487
1536
  href: item.full_url || "/" + item.url,
1488
1537
  target: "_blank",
1489
1538
  rel: "noopener noreferrer"
1490
1539
  }, React.createElement("span", {
1491
- className: styles$p.first
1540
+ className: styles$q.first
1492
1541
  }, item.title), item.second_title && ' ', item.second_title && React.createElement("span", null, item.second_title)));
1493
1542
  })));
1494
1543
  };
1495
1544
 
1496
- 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"};
1545
+ 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"};
1497
1546
 
1498
1547
  var SourceBlock = function SourceBlock(_ref) {
1499
1548
  var _ref$block = _ref.block,
@@ -1503,10 +1552,10 @@ var SourceBlock = function SourceBlock(_ref) {
1503
1552
  origin = _ref$block$data.origin,
1504
1553
  url = _ref$block$data.url,
1505
1554
  styleContext = _ref.styleContext;
1506
- var classNames = [[styles$q.root, true], [styles$q[onlyOn], true]];
1555
+ var classNames = [[styles$r.root, true], [styles$r[onlyOn], true]];
1507
1556
 
1508
1557
  if (styleContext) {
1509
- classNames = makeStyleContext(classNames, styleContext, styles$q);
1558
+ classNames = makeStyleContext(classNames, styleContext, styles$r);
1510
1559
  }
1511
1560
 
1512
1561
  return React.createElement("blockquote", {
@@ -1514,7 +1563,7 @@ var SourceBlock = function SourceBlock(_ref) {
1514
1563
  cite: url,
1515
1564
  className: makeClassName(classNames)
1516
1565
  }, React.createElement("a", {
1517
- className: styles$q.text,
1566
+ className: styles$r.text,
1518
1567
  href: url,
1519
1568
  target: "_blank",
1520
1569
  rel: "noopener noreferrer"
@@ -1526,11 +1575,11 @@ var SourceBlock = function SourceBlock(_ref) {
1526
1575
  }
1527
1576
  });
1528
1577
  }), React.createElement("footer", null, React.createElement("cite", {
1529
- className: styles$q.origin
1578
+ className: styles$r.origin
1530
1579
  }, origin))));
1531
1580
  };
1532
1581
 
1533
- 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"};
1582
+ 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"};
1534
1583
 
1535
1584
  var GroupedBlock = function GroupedBlock(_ref) {
1536
1585
  var block = _ref.block,
@@ -1545,21 +1594,21 @@ var GroupedBlock = function GroupedBlock(_ref) {
1545
1594
  var sumWidth = normalizedBoxesWidth.reduce(function (sum, x) {
1546
1595
  return sum + x;
1547
1596
  });
1548
- 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]]];
1597
+ 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]]];
1549
1598
 
1550
1599
  if (styleContext) {
1551
- classNames = makeStyleContext(classNames, styleContext, styles$r);
1600
+ classNames = makeStyleContext(classNames, styleContext, styles$s);
1552
1601
  }
1553
1602
 
1554
1603
  return React.createElement("div", {
1555
1604
  "data-testid": "grouped-block",
1556
1605
  className: makeClassName(classNames)
1557
1606
  }, React.createElement("div", {
1558
- className: styles$r.items
1607
+ className: styles$s.items
1559
1608
  }, block.data.map(function (item, index) {
1560
1609
  var percentWidth = normalizedBoxesWidth[index] / sumWidth * 100;
1561
1610
  return React.createElement("div", {
1562
- className: styles$r.item,
1611
+ className: styles$s.item,
1563
1612
  key: item.id,
1564
1613
  style: {
1565
1614
  width: percentWidth + "%"
@@ -1569,7 +1618,7 @@ var GroupedBlock = function GroupedBlock(_ref) {
1569
1618
  styleContext: "isInGroupedBlock"
1570
1619
  }));
1571
1620
  })), block.cc && React.createElement("figcaption", {
1572
- className: styles$r.figcaption
1621
+ className: styles$s.figcaption
1573
1622
  }, React.createElement(MediaCaption, {
1574
1623
  credit: block.credit,
1575
1624
  caption: block.caption,
@@ -1577,32 +1626,32 @@ var GroupedBlock = function GroupedBlock(_ref) {
1577
1626
  })));
1578
1627
  };
1579
1628
 
1580
- 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"};
1629
+ 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"};
1581
1630
 
1582
1631
  var MetaItem = function MetaItem(_ref) {
1583
1632
  var hasSource = _ref.hasSource,
1584
1633
  type = _ref.type,
1585
1634
  children = _ref.children,
1586
1635
  bullets = _ref.bullets;
1587
- var classNames = [[styles$s.root, true], [styles$s[type], !!type && !!styles$s[type]], [styles$s.hasSource, !!hasSource], [styles$s.hasBullets, !!bullets]];
1636
+ var classNames = [[styles$t.root, true], [styles$t[type], !!type && !!styles$t[type]], [styles$t.hasSource, !!hasSource], [styles$t.hasBullets, !!bullets]];
1588
1637
  return React.createElement("div", {
1589
1638
  "data-testid": "meta-item",
1590
1639
  className: makeClassName(classNames)
1591
1640
  }, children);
1592
1641
  };
1593
1642
 
1594
- 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"};
1643
+ 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"};
1595
1644
 
1596
1645
  var MetaItemLive = function MetaItemLive(_ref) {
1597
1646
  var _ref$theme = _ref.theme,
1598
1647
  theme = _ref$theme === void 0 ? 'gold' : _ref$theme;
1599
- var classNames = [[styles$t.root, true], [styles$t[theme], !!theme && styles$t[theme]]];
1648
+ var classNames = [[styles$u.root, true], [styles$u[theme], !!theme && styles$u[theme]]];
1600
1649
  return React.createElement("div", {
1601
1650
  "data-testid": "meta-item-live",
1602
1651
  "data-meta": "live",
1603
1652
  className: makeClassName(classNames)
1604
1653
  }, React.createElement("div", {
1605
- className: styles$t.frame
1654
+ className: styles$u.frame
1606
1655
  }));
1607
1656
  };
1608
1657
 
@@ -1627,7 +1676,7 @@ var pluralize = function pluralize(number, one, two, five) {
1627
1676
  return five;
1628
1677
  };
1629
1678
 
1630
- var styles$u = {"root":"DocumentItemsCount-module_root__P3q-z","items":"DocumentItemsCount-module_items__3pfxW"};
1679
+ var styles$v = {"root":"DocumentItemsCount-module_root__P3q-z","items":"DocumentItemsCount-module_items__3pfxW"};
1631
1680
 
1632
1681
  var DocumentItemsCount = function DocumentItemsCount(_ref) {
1633
1682
  var type = _ref.type,
@@ -1664,9 +1713,9 @@ var DocumentItemsCount = function DocumentItemsCount(_ref) {
1664
1713
  var itemsCount = items + " " + pluralize(items, i18n[lang][type].one, i18n[lang][type].two, i18n[lang][type].five);
1665
1714
  return React.createElement("div", {
1666
1715
  "data-testid": "document-items-count",
1667
- className: styles$u.root
1716
+ className: styles$v.root
1668
1717
  }, children, React.createElement("span", {
1669
- className: styles$u.items
1718
+ className: styles$v.items
1670
1719
  }, itemsCount));
1671
1720
  };
1672
1721
 
@@ -1780,7 +1829,7 @@ var MetaContainer = function MetaContainer(_ref) {
1780
1829
  icon: isListened ? 'listened' : 'read',
1781
1830
  size: "unset"
1782
1831
  })), isSlides && lang === 'ru' && React.createElement("div", {
1783
- className: styles$f.bookmark
1832
+ className: styles$g.bookmark
1784
1833
  }, React.createElement(BookmarkButton, {
1785
1834
  isInBookmarks: isInBookmarks,
1786
1835
  onClick: function onClick() {
@@ -1936,7 +1985,7 @@ var RenderBlocks = function RenderBlocks(_ref) {
1936
1985
  }
1937
1986
  };
1938
1987
 
1939
- 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"};
1988
+ 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"};
1940
1989
 
1941
1990
  var Cover = function Cover(_ref) {
1942
1991
  var _ref$block = _ref.block,
@@ -1957,15 +2006,15 @@ var Cover = function Cover(_ref) {
1957
2006
  setIsPopoverShown = _useState[1];
1958
2007
 
1959
2008
  var style = {};
1960
- var classNames = [[styles$v.root, true], [styles$v[onlyOn], !!onlyOn && !!styles$v[onlyOn]]];
2009
+ var classNames = [[styles$w.root, true], [styles$w[onlyOn], !!onlyOn && !!styles$w[onlyOn]]];
1961
2010
 
1962
2011
  if (styleContext) {
1963
- classNames = makeStyleContext(classNames, styleContext, styles$v);
2012
+ classNames = makeStyleContext(classNames, styleContext, styles$w);
1964
2013
  }
1965
2014
 
1966
2015
  if (gradients) {
1967
2016
  var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
1968
- classNames = makeStyleContext(classNames, theme, styles$v);
2017
+ classNames = makeStyleContext(classNames, theme, styles$w);
1969
2018
  style.backgroundImage = generateGradient(gradients.bg_rgb);
1970
2019
  }
1971
2020
 
@@ -1981,13 +2030,13 @@ var Cover = function Cover(_ref) {
1981
2030
  "data-testid": "cover",
1982
2031
  className: makeClassName(classNames)
1983
2032
  }, React.createElement("div", {
1984
- className: styles$v.image
2033
+ className: styles$w.image
1985
2034
  }, React.createElement(Image, {
1986
2035
  optimized: urls,
1987
2036
  ratio: mobileRatio,
1988
2037
  display: "narrow"
1989
2038
  })), React.createElement("div", {
1990
- className: styles$v.body,
2039
+ className: styles$w.body,
1991
2040
  style: style
1992
2041
  }, blocks.map(function (item) {
1993
2042
  return React.createElement(RenderBlocks, {
@@ -1996,7 +2045,7 @@ var Cover = function Cover(_ref) {
1996
2045
  styleContext: styleContext
1997
2046
  });
1998
2047
  })), cc === 'button' && React.createElement("button", {
1999
- className: styles$v.control,
2048
+ className: styles$w.control,
2000
2049
  type: "button",
2001
2050
  "aria-label": "Open",
2002
2051
  onClick: function onClick() {
@@ -2009,7 +2058,7 @@ var Cover = function Cover(_ref) {
2009
2058
  }, renderCC('isInPopover')));
2010
2059
  };
2011
2060
 
2012
- 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"};
2061
+ 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"};
2013
2062
 
2014
2063
  var HalfBlock = function HalfBlock(_ref) {
2015
2064
  var _ref$block = _ref.block,
@@ -2021,25 +2070,25 @@ var HalfBlock = function HalfBlock(_ref) {
2021
2070
  credit = _ref$block$data$cover.credit,
2022
2071
  caption = _ref$block$data$cover.caption,
2023
2072
  styleContext = _ref.styleContext;
2024
- var classNames = [[styles$w.root, true], [styles$w[onlyOn], true]];
2073
+ var classNames = [[styles$x.root, true], [styles$x[onlyOn], true]];
2025
2074
 
2026
2075
  if (styleContext) {
2027
- classNames = makeStyleContext(classNames, styleContext, styles$w);
2076
+ classNames = makeStyleContext(classNames, styleContext, styles$x);
2028
2077
  }
2029
2078
 
2030
2079
  return React.createElement("div", {
2031
2080
  "data-testid": "half-block",
2032
2081
  className: makeClassName(classNames)
2033
2082
  }, React.createElement("div", {
2034
- className: styles$w.main
2083
+ className: styles$x.main
2035
2084
  }, React.createElement("div", {
2036
- className: styles$w.image
2085
+ className: styles$x.image
2037
2086
  }, React.createElement(Image, {
2038
2087
  optimized: optimized,
2039
2088
  ratio: ratio,
2040
2089
  display: "super_full"
2041
2090
  })), React.createElement("div", {
2042
- className: styles$w.body
2091
+ className: styles$x.body
2043
2092
  }, data.blocks.map(function (item) {
2044
2093
  return React.createElement(RenderBlocks, {
2045
2094
  key: item.id,
@@ -2047,7 +2096,7 @@ var HalfBlock = function HalfBlock(_ref) {
2047
2096
  styleContext: ['rich']
2048
2097
  });
2049
2098
  }))), React.createElement("div", {
2050
- className: styles$w.footer
2099
+ className: styles$x.footer
2051
2100
  }, React.createElement(MediaCaption, {
2052
2101
  credit: credit,
2053
2102
  caption: caption,
@@ -2055,17 +2104,17 @@ var HalfBlock = function HalfBlock(_ref) {
2055
2104
  })));
2056
2105
  };
2057
2106
 
2058
- var styles$x = {"root":"ImportantLead-module_root__2BdT3","slide":"ImportantLead-module_slide__3kQ9x","mobile":"ImportantLead-module_mobile__3BXbm","desktop":"ImportantLead-module_desktop__3Zljc"};
2107
+ var styles$y = {"root":"ImportantLead-module_root__2BdT3","slide":"ImportantLead-module_slide__3kQ9x","mobile":"ImportantLead-module_mobile__3BXbm","desktop":"ImportantLead-module_desktop__3Zljc"};
2059
2108
 
2060
2109
  var ImportantLead = function ImportantLead(_ref) {
2061
2110
  var _ref$block = _ref.block,
2062
2111
  onlyOn = _ref$block.only_on,
2063
2112
  data = _ref$block.data,
2064
2113
  styleContext = _ref.styleContext;
2065
- var classNames = [[styles$x.root, true], [styles$x[onlyOn], !!onlyOn]];
2114
+ var classNames = [[styles$y.root, true], [styles$y[onlyOn], !!onlyOn]];
2066
2115
 
2067
2116
  if (styleContext) {
2068
- classNames = makeStyleContext(classNames, styleContext, styles$x);
2117
+ classNames = makeStyleContext(classNames, styleContext, styles$y);
2069
2118
  }
2070
2119
 
2071
2120
  return React.createElement("div", {
@@ -2080,7 +2129,7 @@ var ImportantLead = function ImportantLead(_ref) {
2080
2129
  }));
2081
2130
  };
2082
2131
 
2083
- 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"};
2132
+ 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"};
2084
2133
 
2085
2134
  var Spoiler = function Spoiler(_ref) {
2086
2135
  var _ref$block = _ref.block,
@@ -2115,10 +2164,10 @@ var Spoiler = function Spoiler(_ref) {
2115
2164
  }
2116
2165
  };
2117
2166
 
2118
- var classNames = [[styles$y.root, true], [styles$y[onlyOn], !!onlyOn], [styles$y[display], !!display && styles$y[display]], [[styles$y.spoiled], !!spoiled]];
2167
+ var classNames = [[styles$z.root, true], [styles$z[onlyOn], !!onlyOn], [styles$z[display], !!display && styles$z[display]], [[styles$z.spoiled], !!spoiled]];
2119
2168
 
2120
2169
  if (styleContext) {
2121
- classNames = makeStyleContext(classNames, styleContext, styles$y);
2170
+ classNames = makeStyleContext(classNames, styleContext, styles$z);
2122
2171
  }
2123
2172
 
2124
2173
  var buttonCollapse = button ? button.collapse : 'Свернуть';
@@ -2128,9 +2177,9 @@ var Spoiler = function Spoiler(_ref) {
2128
2177
  className: makeClassName(classNames),
2129
2178
  "data-testid": "spoiler"
2130
2179
  }, React.createElement("div", {
2131
- className: styles$y.header
2180
+ className: styles$z.header
2132
2181
  }, title && React.createElement("h3", null, title)), React.createElement("div", {
2133
- className: styles$y.body
2182
+ className: styles$z.body
2134
2183
  }, blocks.map(function (item) {
2135
2184
  return React.createElement(RenderBlocks, {
2136
2185
  key: item.id,
@@ -2138,7 +2187,7 @@ var Spoiler = function Spoiler(_ref) {
2138
2187
  styleContext: styleContext
2139
2188
  });
2140
2189
  })), React.createElement("div", {
2141
- className: styles$y.footer
2190
+ className: styles$z.footer
2142
2191
  }, React.createElement(Button, {
2143
2192
  size: "default",
2144
2193
  theme: "gray",
@@ -2214,7 +2263,7 @@ var RawHtmlBlock = function RawHtmlBlock(_ref) {
2214
2263
  }
2215
2264
  };
2216
2265
 
2217
- 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"};
2266
+ 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"};
2218
2267
 
2219
2268
  var ToolbarButton = function ToolbarButton(_ref) {
2220
2269
  var children = _ref.children,
@@ -2222,7 +2271,7 @@ var ToolbarButton = function ToolbarButton(_ref) {
2222
2271
  theme = _ref.theme,
2223
2272
  isActive = _ref.isActive,
2224
2273
  _onClick = _ref.onClick;
2225
- var classNames = [[styles$z.root, true], [styles$z[type], !!styles$z[type]], [styles$z[theme], !!styles$z[theme] && !!theme], [styles$z.isActive, !!isActive]];
2274
+ var classNames = [[styles$A.root, true], [styles$A[type], !!styles$A[type]], [styles$A[theme], !!styles$A[theme] && !!theme], [styles$A.isActive, !!isActive]];
2226
2275
  return React.createElement("button", {
2227
2276
  "data-testid": "toolbar-button",
2228
2277
  className: makeClassName(classNames),
@@ -2235,9 +2284,9 @@ var ToolbarButton = function ToolbarButton(_ref) {
2235
2284
  icon: type,
2236
2285
  styleContext: "isInToolbar"
2237
2286
  }), children && React.createElement("span", {
2238
- className: styles$z.text
2287
+ className: styles$A.text
2239
2288
  }, children));
2240
2289
  };
2241
2290
 
2242
- export { BookmarkButton, Button, CardTitle, ChapterBlock, Cover, DocumentItemsCount, DotsOnImage, Dropdown, EmbedBlockContainer, GroupedBlock, HalfBlock, Image, ImportantLead, Lazy, ListBlock, MaterialNote, MaterialTitle, MediaCaption, Menu, Meta, MetaItem, MetaItemLive, Popover, Primary, QuoteBlock, RawHtmlBlock, RelatedBlock, RenderBlocks, RichTitle, Secondary, SimpleBlock, SimpleTitle, SourceBlock, Spoiler, SvgSymbol, Switcher, Table, Tag, Timestamp, Toolbar, ToolbarButton };
2291
+ export { BookmarkButton, Button, CardTitle, ChapterBlock, Cover, DocumentItemsCount, DotsOnImage, Dropdown, EmbedBlockContainer, Footnote, GroupedBlock, HalfBlock, Image, ImportantLead, Lazy, ListBlock, MaterialNote, MaterialTitle, MediaCaption, Menu, Meta, MetaItem, MetaItemLive, Popover, Primary, QuoteBlock, RawHtmlBlock, RelatedBlock, RenderBlocks, RichTitle, Secondary, SimpleBlock, SimpleTitle, SourceBlock, Spoiler, SvgSymbol, Switcher, Table, Tag, Timestamp, Toolbar, ToolbarButton };
2243
2292
  //# sourceMappingURL=ui-kit-2.esm.js.map