@meduza/ui-kit-2 0.9.9 → 0.9.401

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.
@@ -9,7 +9,7 @@ const makeClassName = list => {
9
9
  return list.filter(([, active]) => active).map(([className]) => className).join(' ');
10
10
  };
11
11
 
12
- const ButtonLoader = () => (/*#__PURE__*/React.createElement("svg", {
12
+ const ButtonLoader = () => ( /*#__PURE__*/React.createElement("svg", {
13
13
  width: "30px",
14
14
  height: "30px",
15
15
  viewBox: "0 0 30 30",
@@ -30,7 +30,7 @@ const ButtonLoader = () => (/*#__PURE__*/React.createElement("svg", {
30
30
  d: "M15 0c8.18 0 14.83 6.547 14.997 14.686L30 15h-2c0-7.077-5.655-12.833-12.693-12.996L15 2V0z"
31
31
  }))));
32
32
 
33
- var styles$J = {"root":"Button-module_root__9OQ5b","gold":"Button-module_gold__q-XBP","isLoading":"Button-module_isLoading__Z53G4","gray":"Button-module_gray__fypDq","sand":"Button-module_sand__e5v-k","dark":"Button-module_dark__qv4NQ","light":"Button-module_light__TLYLT","black":"Button-module_black__GIsbk","red":"Button-module_red__kybni","default":"Button-module_default__utLb-","isInToolbar":"Button-module_isInToolbar__84SG-","isInPodcast":"Button-module_isInPodcast__SNSpl","isInSpoiler":"Button-module_isInSpoiler__pGp-w","ghost":"Button-module_ghost__1s5-r","isInDropdown":"Button-module_isInDropdown__gN7TI","loader":"Button-module_loader__r0Mjs","isFancy":"Button-module_isFancy__gTRmu"};
33
+ var styles$J = {"root":"Button-module_root__9OQ5b","gold":"Button-module_gold__q-XBP","isLoading":"Button-module_isLoading__Z53G4","gray":"Button-module_gray__fypDq","sand":"Button-module_sand__e5v-k","dark":"Button-module_dark__qv4NQ","light":"Button-module_light__TLYLT","black":"Button-module_black__GIsbk","red":"Button-module_red__kybni","default":"Button-module_default__utLb-","isInToolbar":"Button-module_isInToolbar__84SG-","isInSpoiler":"Button-module_isInSpoiler__pGp-w","ghost":"Button-module_ghost__1s5-r","isInDropdown":"Button-module_isInDropdown__gN7TI","loader":"Button-module_loader__r0Mjs","isFancy":"Button-module_isFancy__gTRmu"};
34
34
 
35
35
  const Button = ({
36
36
  theme = 'gold',
@@ -54,7 +54,7 @@ const Button = ({
54
54
  disabled: disabled,
55
55
  onClick: handleClick,
56
56
  type: "button"
57
- }, state === 'isLoading' ? (/*#__PURE__*/React.createElement("span", {
57
+ }, state === 'isLoading' ? ( /*#__PURE__*/React.createElement("span", {
58
58
  className: styles$J.loader
59
59
  }, /*#__PURE__*/React.createElement(ButtonLoader, null))) : children);
60
60
  };
@@ -121,9 +121,11 @@ const icons = {
121
121
  content: '<g opacity="0.4"><circle cx="15" cy="15" r="10.5" stroke="white" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/><path d="M15 19.5L15 10.5M15 19.5L18.5 17.2257M15 19.5L11.5 17.2257" stroke="white" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/></g>'
122
122
  },
123
123
  play: {
124
- width: 32,
125
- height: 32,
126
- content: '<path fill-rule="nonzero" clip-rule="evenodd" d="M11.9665 22.877C11.4713 23.1557 10.8594 22.7978 10.8594 22.2296V9.7704C10.8594 9.20219 11.4713 8.84435 11.9665 9.12299L23.0374 15.3526C23.5422 15.6366 23.5422 16.3634 23.0374 16.6474L11.9665 22.877Z" stroke-width="0.371429" stroke-linecap="round" stroke-linejoin="round"/>'
124
+ width: 62,
125
+ height: 62,
126
+ content:
127
+ // '<path d="M24.35 41.772a.5.5 0 0 1-.739-.439V20.667a.5.5 0 0 1 .74-.44l18.944 10.334a.5.5 0 0 1 0 .878L24.351 41.772z" fill-rule="nonzero"/>'
128
+ '<path fill-rule="nonzero" clip-rule="evenodd" d="M11.9665 22.877C11.4713 23.1557 10.8594 22.7978 10.8594 22.2296V9.7704C10.8594 9.20219 11.4713 8.84435 11.9665 9.12299L23.0374 15.3526C23.5422 15.6366 23.5422 16.3634 23.0374 16.6474L11.9665 22.877Z" stroke-width="0.371429" stroke-linecap="round" stroke-linejoin="round"/>'
127
129
  },
128
130
  pause: {
129
131
  width: 22,
@@ -274,7 +276,7 @@ const icons = {
274
276
  }
275
277
  };
276
278
 
277
- var styles$I = {"root":"SvgSymbol-module_root__WctNR","small":"SvgSymbol-module_small__h9V-w","normal":"SvgSymbol-module_normal__gFAVe","medium":"SvgSymbol-module_medium__QaYjY","large":"SvgSymbol-module_large__o6A4o","adaptive":"SvgSymbol-module_adaptive__gL9qn","fb":"SvgSymbol-module_fb__HZqcB","vk":"SvgSymbol-module_vk__XctB2","ok":"SvgSymbol-module_ok__IM6Z9","tw":"SvgSymbol-module_tw__fio-Q","tg":"SvgSymbol-module_tg__GRhd-","magic":"SvgSymbol-module_magic__N-jKk","reaction":"SvgSymbol-module_reaction__xSbgo","card":"SvgSymbol-module_card__2nVFu","podcast":"SvgSymbol-module_podcast__Yp05r","read":"SvgSymbol-module_read__Bu653","listened":"SvgSymbol-module_listened__AOn7j","menu":"SvgSymbol-module_menu__z-dLm","cross":"SvgSymbol-module_cross__3Xej1","isInFeature":"SvgSymbol-module_isInFeature__BmyI-","isInCard":"SvgSymbol-module_isInCard__USxBS","isInTopicBlockItem":"SvgSymbol-module_isInTopicBlockItem__cnCgw","isInPageStatic":"SvgSymbol-module_isInPageStatic__7kMP-","isInMaterialMeta":"SvgSymbol-module_isInMaterialMeta__lIKJO","isInAudioPlayer":"SvgSymbol-module_isInAudioPlayer__mamWa","isInEpisodeBlock":"SvgSymbol-module_isInEpisodeBlock__oZ6JG","isInButtonPlaybackRate":"SvgSymbol-module_isInButtonPlaybackRate__NnADm","isInButtonBackward":"SvgSymbol-module_isInButtonBackward__x8L9a","isInButtonForward":"SvgSymbol-module_isInButtonForward__TtixK","isInToolbar":"SvgSymbol-module_isInToolbar__RzbaX","play":"SvgSymbol-module_play__dAES0","speedHalf":"SvgSymbol-module_speedHalf__mvVYC","speedThreeQuarters":"SvgSymbol-module_speedThreeQuarters__9N7uH","speedOne":"SvgSymbol-module_speedOne__sRNph","speedOneQuarter":"SvgSymbol-module_speedOneQuarter__fKIT7","speedOneHalf":"SvgSymbol-module_speedOneHalf__7yXsa","speedTwo":"SvgSymbol-module_speedTwo__Bv8-b","meduzaLogo":"SvgSymbol-module_meduzaLogo__aVKzZ","arrow":"SvgSymbol-module_arrow__lWTSJ","oil":"SvgSymbol-module_oil__VFGTp","search":"SvgSymbol-module_search__h06cc","user":"SvgSymbol-module_user__ORMm-","bookmark":"SvgSymbol-module_bookmark__JPKyG","shareBookmark":"SvgSymbol-module_shareBookmark__7w9X9","receipt":"SvgSymbol-module_receipt__o3V8u","isInHeader":"SvgSymbol-module_isInHeader__M5Tzw"};
279
+ var styles$I = {"root":"SvgSymbol-module_root__WctNR","small":"SvgSymbol-module_small__h9V-w","normal":"SvgSymbol-module_normal__gFAVe","medium":"SvgSymbol-module_medium__QaYjY","large":"SvgSymbol-module_large__o6A4o","adaptive":"SvgSymbol-module_adaptive__gL9qn","fb":"SvgSymbol-module_fb__HZqcB","vk":"SvgSymbol-module_vk__XctB2","ok":"SvgSymbol-module_ok__IM6Z9","tw":"SvgSymbol-module_tw__fio-Q","tg":"SvgSymbol-module_tg__GRhd-","magic":"SvgSymbol-module_magic__N-jKk","reaction":"SvgSymbol-module_reaction__xSbgo","card":"SvgSymbol-module_card__2nVFu","podcast":"SvgSymbol-module_podcast__Yp05r","read":"SvgSymbol-module_read__Bu653","listened":"SvgSymbol-module_listened__AOn7j","menu":"SvgSymbol-module_menu__z-dLm","cross":"SvgSymbol-module_cross__3Xej1","isInFeature":"SvgSymbol-module_isInFeature__BmyI-","isInCard":"SvgSymbol-module_isInCard__USxBS","isInTopicBlockItem":"SvgSymbol-module_isInTopicBlockItem__cnCgw","isInPageStatic":"SvgSymbol-module_isInPageStatic__7kMP-","isInMaterialMeta":"SvgSymbol-module_isInMaterialMeta__lIKJO","isInAudioPlayer":"SvgSymbol-module_isInAudioPlayer__mamWa","isInEpisodeBlock":"SvgSymbol-module_isInEpisodeBlock__oZ6JG","isInButtonPlaybackRate":"SvgSymbol-module_isInButtonPlaybackRate__NnADm","isInButtonBackward":"SvgSymbol-module_isInButtonBackward__x8L9a","isInButtonForward":"SvgSymbol-module_isInButtonForward__TtixK","isInToolbar":"SvgSymbol-module_isInToolbar__RzbaX","play":"SvgSymbol-module_play__dAES0","meduzaLogo":"SvgSymbol-module_meduzaLogo__aVKzZ","arrow":"SvgSymbol-module_arrow__lWTSJ","oil":"SvgSymbol-module_oil__VFGTp","search":"SvgSymbol-module_search__h06cc","user":"SvgSymbol-module_user__ORMm-","bookmark":"SvgSymbol-module_bookmark__JPKyG","shareBookmark":"SvgSymbol-module_shareBookmark__7w9X9","receipt":"SvgSymbol-module_receipt__o3V8u","isInHeader":"SvgSymbol-module_isInHeader__M5Tzw"};
278
280
 
279
281
  const SvgSymbol = ({
280
282
  icon,
@@ -305,10 +307,10 @@ const Switcher = ({
305
307
  theme = 'light',
306
308
  childrenLeft,
307
309
  childrenRight
308
- }) => (/*#__PURE__*/React.createElement("label", {
310
+ }) => ( /*#__PURE__*/React.createElement("label", {
309
311
  "data-testid": "switcher",
310
312
  className: makeClassName([[styles$H.root, true], [styles$H[theme], !!styles$H[theme]], [styles$H[styleContext], !!styles$H[styleContext]]])
311
- }, childrenLeft && (/*#__PURE__*/React.createElement("div", {
313
+ }, childrenLeft && ( /*#__PURE__*/React.createElement("div", {
312
314
  className: makeClassName([[styles$H.children, true], [styles$H.left, true]])
313
315
  }, childrenLeft)), /*#__PURE__*/React.createElement("input", {
314
316
  className: styles$H.input,
@@ -319,7 +321,7 @@ const Switcher = ({
319
321
  className: styles$H.control
320
322
  }, /*#__PURE__*/React.createElement("span", {
321
323
  className: styles$H.knob
322
- })), childrenRight && (/*#__PURE__*/React.createElement("div", {
324
+ })), childrenRight && ( /*#__PURE__*/React.createElement("div", {
323
325
  className: makeClassName([[styles$H.children, true], [styles$H.right, true]])
324
326
  }, childrenRight))));
325
327
 
@@ -431,10 +433,10 @@ const RenderPicture = ({
431
433
  setFallback(!window.HTMLPictureElement);
432
434
  }, []);
433
435
  const keys = imageConditionalKeys[toCamel(display)] || imageConditionalKeys.default;
434
- return /*#__PURE__*/React.createElement("picture", null, source && (/*#__PURE__*/React.createElement("source", {
436
+ return /*#__PURE__*/React.createElement("picture", null, source && ( /*#__PURE__*/React.createElement("source", {
435
437
  media: "(min-width: 325px)",
436
438
  srcSet: `${source[1]} 2x`
437
- })), optimized && !optimized.w325 && (/*#__PURE__*/React.createElement("source", {
439
+ })), optimized && !optimized.w325 && ( /*#__PURE__*/React.createElement("source", {
438
440
  media: "(min-width: 0)",
439
441
  srcSet: `${optimized.original}`
440
442
  })), optimized && keys.map(key => {
@@ -508,7 +510,7 @@ const Image = ({
508
510
  onKeyPress: () => handleClick(),
509
511
  role: "button",
510
512
  tabIndex: 0
511
- }, lazy ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Lazy, {
513
+ }, lazy ? ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Lazy, {
512
514
  threshold: 0.25
513
515
  }, /*#__PURE__*/React.createElement(RenderPicture, {
514
516
  fallbackSource: fallbackSource,
@@ -520,7 +522,7 @@ const Image = ({
520
522
  })), /*#__PURE__*/React.createElement("noscript", null, /*#__PURE__*/React.createElement("img", {
521
523
  src: fallbackSource,
522
524
  alt: alt
523
- })))) : (/*#__PURE__*/React.createElement(RenderPicture, {
525
+ })))) : ( /*#__PURE__*/React.createElement(RenderPicture, {
524
526
  fallbackSource: fallbackSource,
525
527
  source: source,
526
528
  optimized: optimized,
@@ -728,7 +730,7 @@ const DotsOnImage = ({
728
730
  display: display
729
731
  }), /*#__PURE__*/React.createElement("div", {
730
732
  ref: container
731
- }, dots.map(dot => (/*#__PURE__*/React.createElement("div", {
733
+ }, dots.map(dot => ( /*#__PURE__*/React.createElement("div", {
732
734
  className: styles$C.dot,
733
735
  key: dot.id,
734
736
  style: {
@@ -743,11 +745,11 @@ const DotsOnImage = ({
743
745
  backgroundColor: dot.icon.color
744
746
  },
745
747
  onClick: () => handleDotClick(dot)
746
- }, dot.icon.type === 'svg' && (/*#__PURE__*/React.createElement("div", {
748
+ }, dot.icon.type === 'svg' && ( /*#__PURE__*/React.createElement("div", {
747
749
  dangerouslySetInnerHTML: {
748
750
  __html: dot.icon.svg_string
749
751
  }
750
- })), dot.icon.type === 'number' && dot.icon.number)))), popover.show && (/*#__PURE__*/React.createElement(React.Fragment, null, viewportSize().width >= MediaQuerySizes.LANDSCAPE_TABLET ? (/*#__PURE__*/React.createElement("div", {
752
+ })), dot.icon.type === 'number' && dot.icon.number)))), popover.show && ( /*#__PURE__*/React.createElement(React.Fragment, null, viewportSize().width >= MediaQuerySizes.LANDSCAPE_TABLET ? ( /*#__PURE__*/React.createElement("div", {
751
753
  className: makeClassName([[styles$C.popover, true], [styles$C[popover.side], !!popover.side], [styles$C[popover.align], !!popover.align]]),
752
754
  style: popover.style
753
755
  }, /*#__PURE__*/React.createElement(Footnote, {
@@ -760,7 +762,7 @@ const DotsOnImage = ({
760
762
  dangerouslySetInnerHTML: {
761
763
  __html: popover.body
762
764
  }
763
- })))) : (/*#__PURE__*/React.createElement(Popover, {
765
+ })))) : ( /*#__PURE__*/React.createElement(Popover, {
764
766
  onClose: () => {
765
767
  setPopover({
766
768
  show: false
@@ -807,12 +809,12 @@ const MediaCaption = ({
807
809
  return /*#__PURE__*/React.createElement("div", {
808
810
  "data-testid": "media-caption",
809
811
  className: makeClassName(classNames)
810
- }, caption && (/*#__PURE__*/React.createElement("div", {
812
+ }, caption && ( /*#__PURE__*/React.createElement("div", {
811
813
  className: styles$A.caption,
812
814
  dangerouslySetInnerHTML: {
813
815
  __html: caption
814
816
  }
815
- })), credit && (/*#__PURE__*/React.createElement("div", {
817
+ })), credit && ( /*#__PURE__*/React.createElement("div", {
816
818
  className: styles$A.credit,
817
819
  dangerouslySetInnerHTML: {
818
820
  __html: credit
@@ -859,14 +861,14 @@ const Table = ({
859
861
  return /*#__PURE__*/React.createElement("div", {
860
862
  key: row.key,
861
863
  className: styles$z.row
862
- }, row.cells.map((cell, j) => (/*#__PURE__*/React.createElement("div", {
864
+ }, row.cells.map((cell, j) => ( /*#__PURE__*/React.createElement("div", {
863
865
  key: cell.key,
864
866
  className: makeClassName([[styles$z.cell, true], [styles$z.header, options.header && i === 0], [styles$z[colors[cell.color]], true], [styles$z[columnsWidth[j]], true], [styles$z.fixedColumn, options.fixed_first_column && j === 0]]),
865
867
  dangerouslySetInnerHTML: {
866
868
  __html: cell.val
867
869
  }
868
870
  }))));
869
- })))), tableCredit && (/*#__PURE__*/React.createElement(MediaCaption, {
871
+ })))), tableCredit && ( /*#__PURE__*/React.createElement(MediaCaption, {
870
872
  credit: tableCredit,
871
873
  styleContext: styleContext
872
874
  })));
@@ -887,7 +889,7 @@ const MaterialNote = ({
887
889
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
888
890
  "data-testid": "material-note",
889
891
  className: makeClassName(classNames)
890
- }, data && data.map(item => (/*#__PURE__*/React.createElement("p", {
892
+ }, data && data.map(item => ( /*#__PURE__*/React.createElement("p", {
891
893
  className: styles$y[item.type],
892
894
  key: item.id,
893
895
  dangerouslySetInnerHTML: {
@@ -971,7 +973,7 @@ const Dropdown = ({
971
973
  }, children);
972
974
  };
973
975
 
974
- var styles$u = {"root":"Toolbar-module_root__RnmlI","list":"Toolbar-module_list__-IhdP","item":"Toolbar-module_item__CWmGM","isInTopbar":"Toolbar-module_isInTopbar__WEDi8","center":"Toolbar-module_center__pvdiJ","game":"Toolbar-module_game__etwIA","gameSurvey":"Toolbar-module_gameSurvey__v4D31","slide":"Toolbar-module_slide__PtB3l","card":"Toolbar-module_card__Lutyq","isDark":"Toolbar-module_isDark__MG6Ar","dark":"Toolbar-module_dark__a9sgz","podcast":"Toolbar-module_podcast__ahY4M"};
976
+ var styles$u = {"root":"Toolbar-module_root__RnmlI","list":"Toolbar-module_list__-IhdP","item":"Toolbar-module_item__CWmGM","isInTopbar":"Toolbar-module_isInTopbar__WEDi8","center":"Toolbar-module_center__pvdiJ","game":"Toolbar-module_game__etwIA","gameSurvey":"Toolbar-module_gameSurvey__v4D31","slide":"Toolbar-module_slide__PtB3l","card":"Toolbar-module_card__Lutyq","isDark":"Toolbar-module_isDark__MG6Ar","dark":"Toolbar-module_dark__a9sgz"};
975
977
 
976
978
  const ToolbarItem = ({
977
979
  children
@@ -1182,7 +1184,7 @@ const EmbedBlock = ({
1182
1184
  const isProportional = block.data.height && block.data.width;
1183
1185
  const fullWidthProviders = ['youtube', 'vimeo', 'onetv', 'coub', 'meduza', 'facebook_video'];
1184
1186
  const mobileFullwidth = fullWidthProviders.indexOf(provider) > -1 || block.type === 'dots_on_image';
1185
- const renderCC = context => (/*#__PURE__*/React.createElement(MediaCaption, {
1187
+ const renderCC = context => ( /*#__PURE__*/React.createElement(MediaCaption, {
1186
1188
  credit: data.credit,
1187
1189
  caption: data.caption,
1188
1190
  styleContext: context || styleContext
@@ -1260,21 +1262,21 @@ const EmbedBlock = ({
1260
1262
  }
1261
1263
  return /*#__PURE__*/React.createElement("figure", {
1262
1264
  className: makeClassName(classNames)
1263
- }, children && (/*#__PURE__*/React.createElement("div", {
1265
+ }, children && ( /*#__PURE__*/React.createElement("div", {
1264
1266
  className: styles$r.object
1265
1267
  }, /*#__PURE__*/React.createElement("div", {
1266
1268
  className: makeClassName([[styles$r.wrapper, true], [styles$r.isProportional, isProportional]]),
1267
1269
  style: style
1268
1270
  }, /*#__PURE__*/React.createElement("div", {
1269
1271
  className: styles$r.objectWrap
1270
- }, children)))), !children && renderEmbed(style), cc === 'default' && /*#__PURE__*/React.createElement("figcaption", null, renderCC()), cc === 'button' && (/*#__PURE__*/React.createElement("button", {
1272
+ }, children)))), !children && renderEmbed(style), cc === 'default' && /*#__PURE__*/React.createElement("figcaption", null, renderCC()), cc === 'button' && ( /*#__PURE__*/React.createElement("button", {
1271
1273
  className: styles$r.control,
1272
1274
  type: "button",
1273
1275
  "aria-label": "Open",
1274
1276
  onClick: () => {
1275
1277
  setIsPopoverShown(!isPopoverShown);
1276
1278
  }
1277
- })), cc === 'button' && isPopoverShown && (/*#__PURE__*/React.createElement(Popover, {
1279
+ })), cc === 'button' && isPopoverShown && ( /*#__PURE__*/React.createElement(Popover, {
1278
1280
  onClose: () => {
1279
1281
  setIsPopoverShown(false);
1280
1282
  }
@@ -1558,7 +1560,7 @@ const ListBlock = ({
1558
1560
  return /*#__PURE__*/React.createElement(TagName, {
1559
1561
  className: makeClassName(classNames),
1560
1562
  "data-testid": "list-block"
1561
- }, data.map((item, index) => (/*#__PURE__*/React.createElement("li", {
1563
+ }, data.map((item, index) => ( /*#__PURE__*/React.createElement("li", {
1562
1564
  key: index,
1563
1565
  dangerouslySetInnerHTML: {
1564
1566
  __html: item
@@ -1589,7 +1591,7 @@ const RelatedBlock = ({
1589
1591
  className: styles$j.header
1590
1592
  }, title), /*#__PURE__*/React.createElement("ul", {
1591
1593
  className: styles$j.items
1592
- }, related.map((item, index) => (/*#__PURE__*/React.createElement("li", {
1594
+ }, related.map((item, index) => ( /*#__PURE__*/React.createElement("li", {
1593
1595
  key: item.id || index,
1594
1596
  className: styles$j[item.layout]
1595
1597
  }, /*#__PURE__*/React.createElement(Link, {
@@ -1625,7 +1627,7 @@ const SourceBlock = ({
1625
1627
  href: url,
1626
1628
  target: "_blank",
1627
1629
  rel: "noopener noreferrer"
1628
- }, quote.map((item, index) => (/*#__PURE__*/React.createElement("p", {
1630
+ }, quote.map((item, index) => ( /*#__PURE__*/React.createElement("p", {
1629
1631
  key: index,
1630
1632
  dangerouslySetInnerHTML: {
1631
1633
  __html: item.data
@@ -1690,7 +1692,7 @@ const SensitiveBlock = ({
1690
1692
  }, /*#__PURE__*/React.createElement(EmbedBlockContainer, {
1691
1693
  block: block.item,
1692
1694
  styleContext: context
1693
- }))), cc && (/*#__PURE__*/React.createElement("figcaption", {
1695
+ }))), cc && ( /*#__PURE__*/React.createElement("figcaption", {
1694
1696
  className: styles$h.figcaption
1695
1697
  }, /*#__PURE__*/React.createElement(MediaCaption, {
1696
1698
  credit: credit,
@@ -1732,14 +1734,14 @@ const GroupedBlock = ({
1732
1734
  style: {
1733
1735
  width: `${percentWidth}%`
1734
1736
  }
1735
- }, item.type === 'sensitive' ? (/*#__PURE__*/React.createElement(SensitiveBlock, {
1737
+ }, item.type === 'sensitive' ? ( /*#__PURE__*/React.createElement(SensitiveBlock, {
1736
1738
  block: item,
1737
1739
  styleContext: ['isInGroupedBlock']
1738
- })) : (/*#__PURE__*/React.createElement(EmbedBlockContainer, {
1740
+ })) : ( /*#__PURE__*/React.createElement(EmbedBlockContainer, {
1739
1741
  block: item,
1740
1742
  styleContext: ['isInGroupedBlock']
1741
1743
  })));
1742
- })), block.cc && (/*#__PURE__*/React.createElement("figcaption", {
1744
+ })), block.cc && ( /*#__PURE__*/React.createElement("figcaption", {
1743
1745
  className: styles$g.figcaption
1744
1746
  }, /*#__PURE__*/React.createElement(MediaCaption, {
1745
1747
  credit: block.credit,
@@ -1875,7 +1877,7 @@ const MetaContainer = ({
1875
1877
  hasSource: hasSource,
1876
1878
  bullets: true,
1877
1879
  key: component.id
1878
- }, /*#__PURE__*/React.createElement(React.Fragment, null, lang === 'ru' ? 'Источник: ' : 'Source: ', component.url && (/*#__PURE__*/React.createElement("a", {
1880
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, lang === 'ru' ? 'Источник: ' : 'Source: ', component.url && ( /*#__PURE__*/React.createElement("a", {
1879
1881
  href: component.url,
1880
1882
  rel: "noopener noreferrer",
1881
1883
  target: "_blank"
@@ -1887,7 +1889,7 @@ const MetaContainer = ({
1887
1889
  hasSource: hasSource,
1888
1890
  bullets: true,
1889
1891
  key: component.id
1890
- }, /*#__PURE__*/React.createElement(React.Fragment, null, styleContext !== 'isInDynamicBlock' && (/*#__PURE__*/React.createElement(SvgSymbol, {
1892
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, styleContext !== 'isInDynamicBlock' && ( /*#__PURE__*/React.createElement(SvgSymbol, {
1891
1893
  icon: "podcast",
1892
1894
  size: "small"
1893
1895
  })), component.text));
@@ -1950,14 +1952,14 @@ const MetaContainer = ({
1950
1952
  return null;
1951
1953
  }
1952
1954
  }
1953
- }), (isRead || isListened) && (/*#__PURE__*/React.createElement(MetaItem, {
1955
+ }), (isRead || isListened) && ( /*#__PURE__*/React.createElement(MetaItem, {
1954
1956
  hasSource: hasSource,
1955
1957
  bullets: true,
1956
1958
  type: isListened ? 'listened' : 'read'
1957
1959
  }, /*#__PURE__*/React.createElement(SvgSymbol, {
1958
1960
  icon: isListened ? 'listened' : 'read',
1959
1961
  size: "unset"
1960
- }))), isSlides && lang === 'ru' && (/*#__PURE__*/React.createElement("div", {
1962
+ }))), isSlides && lang === 'ru' && ( /*#__PURE__*/React.createElement("div", {
1961
1963
  className: styles$t.bookmark
1962
1964
  }, /*#__PURE__*/React.createElement(BookmarkButton, {
1963
1965
  isInBookmarks: isInBookmarks,
@@ -2082,7 +2084,7 @@ const VersesBlock = ({
2082
2084
  return /*#__PURE__*/React.createElement("ul", {
2083
2085
  className: makeClassName(classNames),
2084
2086
  "data-testid": "verses-block"
2085
- }, data.map((item, index) => (/*#__PURE__*/React.createElement("li", {
2087
+ }, data.map((item, index) => ( /*#__PURE__*/React.createElement("li", {
2086
2088
  key: index,
2087
2089
  dangerouslySetInnerHTML: {
2088
2090
  __html: item
@@ -2283,7 +2285,7 @@ const Cover = ({
2283
2285
  classNames = makeStyleContext(classNames, theme, styles$9);
2284
2286
  style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
2285
2287
  }
2286
- const renderCC = context => (/*#__PURE__*/React.createElement(MediaCaption, {
2288
+ const renderCC = context => ( /*#__PURE__*/React.createElement(MediaCaption, {
2287
2289
  credit: credit,
2288
2290
  caption: caption,
2289
2291
  styleContext: context || styleContext
@@ -2300,18 +2302,18 @@ const Cover = ({
2300
2302
  })), /*#__PURE__*/React.createElement("div", {
2301
2303
  className: styles$9.body,
2302
2304
  style: style
2303
- }, blocks.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2305
+ }, blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2304
2306
  key: item.id,
2305
2307
  block: item,
2306
2308
  styleContext: styleContext
2307
- })))), cc === 'button' && (/*#__PURE__*/React.createElement("button", {
2309
+ })))), cc === 'button' && ( /*#__PURE__*/React.createElement("button", {
2308
2310
  className: styles$9.control,
2309
2311
  type: "button",
2310
2312
  "aria-label": "Open",
2311
2313
  onClick: () => {
2312
2314
  setIsPopoverShown(!isPopoverShown);
2313
2315
  }
2314
- })), cc === 'button' && isPopoverShown && (/*#__PURE__*/React.createElement(Popover, {
2316
+ })), cc === 'button' && isPopoverShown && ( /*#__PURE__*/React.createElement(Popover, {
2315
2317
  onClose: () => {
2316
2318
  setIsPopoverShown(false);
2317
2319
  }
@@ -2352,7 +2354,7 @@ const HalfBlock = ({
2352
2354
  display: "super_full"
2353
2355
  })), /*#__PURE__*/React.createElement("div", {
2354
2356
  className: styles$8.body
2355
- }, data.blocks.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2357
+ }, data.blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2356
2358
  key: item.id,
2357
2359
  block: item,
2358
2360
  styleContext: ['rich']
@@ -2381,7 +2383,7 @@ const ImportantLead = ({
2381
2383
  return /*#__PURE__*/React.createElement("div", {
2382
2384
  "data-testid": "important-lead",
2383
2385
  className: makeClassName(classNames)
2384
- }, data.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2386
+ }, data.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2385
2387
  key: item.id,
2386
2388
  block: item,
2387
2389
  styleContext: "isInImportantLead"
@@ -2433,7 +2435,7 @@ const Spoiler = ({
2433
2435
  className: styles$6.header
2434
2436
  }, title && /*#__PURE__*/React.createElement("h3", null, title)), /*#__PURE__*/React.createElement("div", {
2435
2437
  className: styles$6.body
2436
- }, blocks.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2438
+ }, blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2437
2439
  key: item.id,
2438
2440
  block: item,
2439
2441
  styleContext: context
@@ -2506,7 +2508,7 @@ const RelatedRichBlock = ({
2506
2508
  to: `/${url}`,
2507
2509
  onClick: () => handleClick(),
2508
2510
  ref: ref
2509
- }, layout === 'rich' && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
2511
+ }, layout === 'rich' && ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
2510
2512
  className: styles$5.overlay,
2511
2513
  style: style
2512
2514
  }), /*#__PURE__*/React.createElement("div", {
@@ -2528,7 +2530,7 @@ const RelatedRichBlock = ({
2528
2530
  display: "narrow"
2529
2531
  }))), /*#__PURE__*/React.createElement("div", {
2530
2532
  className: styles$5.body
2531
- }, blocks.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2533
+ }, blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2532
2534
  key: item.id,
2533
2535
  block: item,
2534
2536
  styleContext: context
@@ -2591,7 +2593,7 @@ const ShopRelatedBlock = ({
2591
2593
  target: "_blank",
2592
2594
  onClick: () => handleClick(),
2593
2595
  ref: ref
2594
- }, layout === 'rich' && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
2596
+ }, layout === 'rich' && ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
2595
2597
  className: styles$4.overlay,
2596
2598
  style: style
2597
2599
  }), /*#__PURE__*/React.createElement("div", {
@@ -2656,7 +2658,7 @@ const RelatedBook = ({
2656
2658
  className: styles$3.contentWrap
2657
2659
  }, /*#__PURE__*/React.createElement("div", {
2658
2660
  className: styles$3.content
2659
- }, block.data.blocks.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2661
+ }, block.data.blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2660
2662
  key: item.id,
2661
2663
  block: item,
2662
2664
  styleContext: ['isInMediaBlock', 'isInBookRelated', 'isCustom']
@@ -2747,12 +2749,11 @@ const RawHtmlBlock = ({
2747
2749
 
2748
2750
  var styles$2 = {"root":"ListViewSwitcher-module_root__pBsR5","input":"ListViewSwitcher-module_input__vtDVD","knob":"ListViewSwitcher-module_knob__g-OZ2","sm":"ListViewSwitcher-module_sm__y1teD","md":"ListViewSwitcher-module_md__0M8KR","grid":"ListViewSwitcher-module_grid__qBmnM","list":"ListViewSwitcher-module_list__NORMp"};
2749
2751
 
2750
- /* eslint-disable jsx-a11y/label-has-associated-control */
2751
2752
  const ListViewSwitcher = ({
2752
2753
  enabled,
2753
2754
  onChange,
2754
2755
  size = 'md'
2755
- }) => (/*#__PURE__*/React.createElement("label", {
2756
+ }) => ( /*#__PURE__*/React.createElement("label", {
2756
2757
  "data-testid": "listViewSwitcher",
2757
2758
  className: makeClassName([[styles$2.root, true], [styles$2[size], true]])
2758
2759
  }, /*#__PURE__*/React.createElement("input", {
@@ -2786,7 +2787,7 @@ const ToolbarButton = ({
2786
2787
  className: makeClassName(classNames),
2787
2788
  type: "button",
2788
2789
  onClick: event => onClick(event, type)
2789
- }, icon && (/*#__PURE__*/React.createElement("div", {
2790
+ }, icon && ( /*#__PURE__*/React.createElement("div", {
2790
2791
  className: styles$1.icon
2791
2792
  }, /*#__PURE__*/React.createElement(SvgSymbol, {
2792
2793
  size: "medium",