@meduza/ui-kit-2 0.9.408 → 0.9.601

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",
@@ -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
  };
@@ -274,7 +274,7 @@ const icons = {
274
274
  }
275
275
  };
276
276
 
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","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"};
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"};
278
278
 
279
279
  const SvgSymbol = ({
280
280
  icon,
@@ -285,7 +285,7 @@ const SvgSymbol = ({
285
285
  return /*#__PURE__*/React.createElement("svg", {
286
286
  "data-testid": "svg-symbol",
287
287
  xmlns: "http://www.w3.org/2000/svg",
288
- xmlnsXlink: icon !== 'play' && icon !== 'pause' ? 'http://www.w3.org/1999/xlink' : '',
288
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
289
289
  className: makeClassName([[styles$I.root, true], [styles$I[size], !!styles$I[size]], [styles$I[icon], !!styles$I[icon]], [styles$I[styleContext], !!styles$I[styleContext]]]),
290
290
  width: data.width,
291
291
  height: data.height,
@@ -305,10 +305,10 @@ const Switcher = ({
305
305
  theme = 'light',
306
306
  childrenLeft,
307
307
  childrenRight
308
- }) => ( /*#__PURE__*/React.createElement("label", {
308
+ }) => (/*#__PURE__*/React.createElement("label", {
309
309
  "data-testid": "switcher",
310
310
  className: makeClassName([[styles$H.root, true], [styles$H[theme], !!styles$H[theme]], [styles$H[styleContext], !!styles$H[styleContext]]])
311
- }, childrenLeft && ( /*#__PURE__*/React.createElement("div", {
311
+ }, childrenLeft && (/*#__PURE__*/React.createElement("div", {
312
312
  className: makeClassName([[styles$H.children, true], [styles$H.left, true]])
313
313
  }, childrenLeft)), /*#__PURE__*/React.createElement("input", {
314
314
  className: styles$H.input,
@@ -319,7 +319,7 @@ const Switcher = ({
319
319
  className: styles$H.control
320
320
  }, /*#__PURE__*/React.createElement("span", {
321
321
  className: styles$H.knob
322
- })), childrenRight && ( /*#__PURE__*/React.createElement("div", {
322
+ })), childrenRight && (/*#__PURE__*/React.createElement("div", {
323
323
  className: makeClassName([[styles$H.children, true], [styles$H.right, true]])
324
324
  }, childrenRight))));
325
325
 
@@ -431,10 +431,10 @@ const RenderPicture = ({
431
431
  setFallback(!window.HTMLPictureElement);
432
432
  }, []);
433
433
  const keys = imageConditionalKeys[toCamel(display)] || imageConditionalKeys.default;
434
- return /*#__PURE__*/React.createElement("picture", null, source && ( /*#__PURE__*/React.createElement("source", {
434
+ return /*#__PURE__*/React.createElement("picture", null, source && (/*#__PURE__*/React.createElement("source", {
435
435
  media: "(min-width: 325px)",
436
436
  srcSet: `${source[1]} 2x`
437
- })), optimized && !optimized.w325 && ( /*#__PURE__*/React.createElement("source", {
437
+ })), optimized && !optimized.w325 && (/*#__PURE__*/React.createElement("source", {
438
438
  media: "(min-width: 0)",
439
439
  srcSet: `${optimized.original}`
440
440
  })), optimized && keys.map(key => {
@@ -508,7 +508,7 @@ const Image = ({
508
508
  onKeyPress: () => handleClick(),
509
509
  role: "button",
510
510
  tabIndex: 0
511
- }, lazy ? ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Lazy, {
511
+ }, lazy ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Lazy, {
512
512
  threshold: 0.25
513
513
  }, /*#__PURE__*/React.createElement(RenderPicture, {
514
514
  fallbackSource: fallbackSource,
@@ -520,7 +520,7 @@ const Image = ({
520
520
  })), /*#__PURE__*/React.createElement("noscript", null, /*#__PURE__*/React.createElement("img", {
521
521
  src: fallbackSource,
522
522
  alt: alt
523
- })))) : ( /*#__PURE__*/React.createElement(RenderPicture, {
523
+ })))) : (/*#__PURE__*/React.createElement(RenderPicture, {
524
524
  fallbackSource: fallbackSource,
525
525
  source: source,
526
526
  optimized: optimized,
@@ -728,7 +728,7 @@ const DotsOnImage = ({
728
728
  display: display
729
729
  }), /*#__PURE__*/React.createElement("div", {
730
730
  ref: container
731
- }, dots.map(dot => ( /*#__PURE__*/React.createElement("div", {
731
+ }, dots.map(dot => (/*#__PURE__*/React.createElement("div", {
732
732
  className: styles$C.dot,
733
733
  key: dot.id,
734
734
  style: {
@@ -743,11 +743,11 @@ const DotsOnImage = ({
743
743
  backgroundColor: dot.icon.color
744
744
  },
745
745
  onClick: () => handleDotClick(dot)
746
- }, dot.icon.type === 'svg' && ( /*#__PURE__*/React.createElement("div", {
746
+ }, dot.icon.type === 'svg' && (/*#__PURE__*/React.createElement("div", {
747
747
  dangerouslySetInnerHTML: {
748
748
  __html: dot.icon.svg_string
749
749
  }
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", {
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", {
751
751
  className: makeClassName([[styles$C.popover, true], [styles$C[popover.side], !!popover.side], [styles$C[popover.align], !!popover.align]]),
752
752
  style: popover.style
753
753
  }, /*#__PURE__*/React.createElement(Footnote, {
@@ -760,7 +760,7 @@ const DotsOnImage = ({
760
760
  dangerouslySetInnerHTML: {
761
761
  __html: popover.body
762
762
  }
763
- })))) : ( /*#__PURE__*/React.createElement(Popover, {
763
+ })))) : (/*#__PURE__*/React.createElement(Popover, {
764
764
  onClose: () => {
765
765
  setPopover({
766
766
  show: false
@@ -807,12 +807,12 @@ const MediaCaption = ({
807
807
  return /*#__PURE__*/React.createElement("div", {
808
808
  "data-testid": "media-caption",
809
809
  className: makeClassName(classNames)
810
- }, caption && ( /*#__PURE__*/React.createElement("div", {
810
+ }, caption && (/*#__PURE__*/React.createElement("div", {
811
811
  className: styles$A.caption,
812
812
  dangerouslySetInnerHTML: {
813
813
  __html: caption
814
814
  }
815
- })), credit && ( /*#__PURE__*/React.createElement("div", {
815
+ })), credit && (/*#__PURE__*/React.createElement("div", {
816
816
  className: styles$A.credit,
817
817
  dangerouslySetInnerHTML: {
818
818
  __html: credit
@@ -859,14 +859,14 @@ const Table = ({
859
859
  return /*#__PURE__*/React.createElement("div", {
860
860
  key: row.key,
861
861
  className: styles$z.row
862
- }, row.cells.map((cell, j) => ( /*#__PURE__*/React.createElement("div", {
862
+ }, row.cells.map((cell, j) => (/*#__PURE__*/React.createElement("div", {
863
863
  key: cell.key,
864
864
  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
865
  dangerouslySetInnerHTML: {
866
866
  __html: cell.val
867
867
  }
868
868
  }))));
869
- })))), tableCredit && ( /*#__PURE__*/React.createElement(MediaCaption, {
869
+ })))), tableCredit && (/*#__PURE__*/React.createElement(MediaCaption, {
870
870
  credit: tableCredit,
871
871
  styleContext: styleContext
872
872
  })));
@@ -887,7 +887,7 @@ const MaterialNote = ({
887
887
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
888
888
  "data-testid": "material-note",
889
889
  className: makeClassName(classNames)
890
- }, data && data.map(item => ( /*#__PURE__*/React.createElement("p", {
890
+ }, data && data.map(item => (/*#__PURE__*/React.createElement("p", {
891
891
  className: styles$y[item.type],
892
892
  key: item.id,
893
893
  dangerouslySetInnerHTML: {
@@ -1182,7 +1182,7 @@ const EmbedBlock = ({
1182
1182
  const isProportional = block.data.height && block.data.width;
1183
1183
  const fullWidthProviders = ['youtube', 'vimeo', 'onetv', 'coub', 'meduza', 'facebook_video'];
1184
1184
  const mobileFullwidth = fullWidthProviders.indexOf(provider) > -1 || block.type === 'dots_on_image';
1185
- const renderCC = context => ( /*#__PURE__*/React.createElement(MediaCaption, {
1185
+ const renderCC = context => (/*#__PURE__*/React.createElement(MediaCaption, {
1186
1186
  credit: data.credit,
1187
1187
  caption: data.caption,
1188
1188
  styleContext: context || styleContext
@@ -1260,21 +1260,21 @@ const EmbedBlock = ({
1260
1260
  }
1261
1261
  return /*#__PURE__*/React.createElement("figure", {
1262
1262
  className: makeClassName(classNames)
1263
- }, children && ( /*#__PURE__*/React.createElement("div", {
1263
+ }, children && (/*#__PURE__*/React.createElement("div", {
1264
1264
  className: styles$r.object
1265
1265
  }, /*#__PURE__*/React.createElement("div", {
1266
1266
  className: makeClassName([[styles$r.wrapper, true], [styles$r.isProportional, isProportional]]),
1267
1267
  style: style
1268
1268
  }, /*#__PURE__*/React.createElement("div", {
1269
1269
  className: styles$r.objectWrap
1270
- }, children)))), !children && renderEmbed(style), cc === 'default' && /*#__PURE__*/React.createElement("figcaption", null, renderCC()), cc === 'button' && ( /*#__PURE__*/React.createElement("button", {
1270
+ }, children)))), !children && renderEmbed(style), cc === 'default' && /*#__PURE__*/React.createElement("figcaption", null, renderCC()), cc === 'button' && (/*#__PURE__*/React.createElement("button", {
1271
1271
  className: styles$r.control,
1272
1272
  type: "button",
1273
1273
  "aria-label": "Open",
1274
1274
  onClick: () => {
1275
1275
  setIsPopoverShown(!isPopoverShown);
1276
1276
  }
1277
- })), cc === 'button' && isPopoverShown && ( /*#__PURE__*/React.createElement(Popover, {
1277
+ })), cc === 'button' && isPopoverShown && (/*#__PURE__*/React.createElement(Popover, {
1278
1278
  onClose: () => {
1279
1279
  setIsPopoverShown(false);
1280
1280
  }
@@ -1558,7 +1558,7 @@ const ListBlock = ({
1558
1558
  return /*#__PURE__*/React.createElement(TagName, {
1559
1559
  className: makeClassName(classNames),
1560
1560
  "data-testid": "list-block"
1561
- }, data.map((item, index) => ( /*#__PURE__*/React.createElement("li", {
1561
+ }, data.map((item, index) => (/*#__PURE__*/React.createElement("li", {
1562
1562
  key: index,
1563
1563
  dangerouslySetInnerHTML: {
1564
1564
  __html: item
@@ -1589,7 +1589,7 @@ const RelatedBlock = ({
1589
1589
  className: styles$j.header
1590
1590
  }, title), /*#__PURE__*/React.createElement("ul", {
1591
1591
  className: styles$j.items
1592
- }, related.map((item, index) => ( /*#__PURE__*/React.createElement("li", {
1592
+ }, related.map((item, index) => (/*#__PURE__*/React.createElement("li", {
1593
1593
  key: item.id || index,
1594
1594
  className: styles$j[item.layout]
1595
1595
  }, /*#__PURE__*/React.createElement(Link, {
@@ -1625,7 +1625,7 @@ const SourceBlock = ({
1625
1625
  href: url,
1626
1626
  target: "_blank",
1627
1627
  rel: "noopener noreferrer"
1628
- }, quote.map((item, index) => ( /*#__PURE__*/React.createElement("p", {
1628
+ }, quote.map((item, index) => (/*#__PURE__*/React.createElement("p", {
1629
1629
  key: index,
1630
1630
  dangerouslySetInnerHTML: {
1631
1631
  __html: item.data
@@ -1690,7 +1690,7 @@ const SensitiveBlock = ({
1690
1690
  }, /*#__PURE__*/React.createElement(EmbedBlockContainer, {
1691
1691
  block: block.item,
1692
1692
  styleContext: context
1693
- }))), cc && ( /*#__PURE__*/React.createElement("figcaption", {
1693
+ }))), cc && (/*#__PURE__*/React.createElement("figcaption", {
1694
1694
  className: styles$h.figcaption
1695
1695
  }, /*#__PURE__*/React.createElement(MediaCaption, {
1696
1696
  credit: credit,
@@ -1732,14 +1732,14 @@ const GroupedBlock = ({
1732
1732
  style: {
1733
1733
  width: `${percentWidth}%`
1734
1734
  }
1735
- }, item.type === 'sensitive' ? ( /*#__PURE__*/React.createElement(SensitiveBlock, {
1735
+ }, item.type === 'sensitive' ? (/*#__PURE__*/React.createElement(SensitiveBlock, {
1736
1736
  block: item,
1737
1737
  styleContext: ['isInGroupedBlock']
1738
- })) : ( /*#__PURE__*/React.createElement(EmbedBlockContainer, {
1738
+ })) : (/*#__PURE__*/React.createElement(EmbedBlockContainer, {
1739
1739
  block: item,
1740
1740
  styleContext: ['isInGroupedBlock']
1741
1741
  })));
1742
- })), block.cc && ( /*#__PURE__*/React.createElement("figcaption", {
1742
+ })), block.cc && (/*#__PURE__*/React.createElement("figcaption", {
1743
1743
  className: styles$g.figcaption
1744
1744
  }, /*#__PURE__*/React.createElement(MediaCaption, {
1745
1745
  credit: block.credit,
@@ -1875,7 +1875,7 @@ const MetaContainer = ({
1875
1875
  hasSource: hasSource,
1876
1876
  bullets: true,
1877
1877
  key: component.id
1878
- }, /*#__PURE__*/React.createElement(React.Fragment, null, lang === 'ru' ? 'Источник: ' : 'Source: ', component.url && ( /*#__PURE__*/React.createElement("a", {
1878
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, lang === 'ru' ? 'Источник: ' : 'Source: ', component.url && (/*#__PURE__*/React.createElement("a", {
1879
1879
  href: component.url,
1880
1880
  rel: "noopener noreferrer",
1881
1881
  target: "_blank"
@@ -1887,7 +1887,7 @@ const MetaContainer = ({
1887
1887
  hasSource: hasSource,
1888
1888
  bullets: true,
1889
1889
  key: component.id
1890
- }, /*#__PURE__*/React.createElement(React.Fragment, null, styleContext !== 'isInDynamicBlock' && ( /*#__PURE__*/React.createElement(SvgSymbol, {
1890
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, styleContext !== 'isInDynamicBlock' && (/*#__PURE__*/React.createElement(SvgSymbol, {
1891
1891
  icon: "podcast",
1892
1892
  size: "small"
1893
1893
  })), component.text));
@@ -1950,14 +1950,14 @@ const MetaContainer = ({
1950
1950
  return null;
1951
1951
  }
1952
1952
  }
1953
- }), (isRead || isListened) && ( /*#__PURE__*/React.createElement(MetaItem, {
1953
+ }), (isRead || isListened) && (/*#__PURE__*/React.createElement(MetaItem, {
1954
1954
  hasSource: hasSource,
1955
1955
  bullets: true,
1956
1956
  type: isListened ? 'listened' : 'read'
1957
1957
  }, /*#__PURE__*/React.createElement(SvgSymbol, {
1958
1958
  icon: isListened ? 'listened' : 'read',
1959
1959
  size: "unset"
1960
- }))), isSlides && lang === 'ru' && ( /*#__PURE__*/React.createElement("div", {
1960
+ }))), isSlides && lang === 'ru' && (/*#__PURE__*/React.createElement("div", {
1961
1961
  className: styles$t.bookmark
1962
1962
  }, /*#__PURE__*/React.createElement(BookmarkButton, {
1963
1963
  isInBookmarks: isInBookmarks,
@@ -2082,7 +2082,7 @@ const VersesBlock = ({
2082
2082
  return /*#__PURE__*/React.createElement("ul", {
2083
2083
  className: makeClassName(classNames),
2084
2084
  "data-testid": "verses-block"
2085
- }, data.map((item, index) => ( /*#__PURE__*/React.createElement("li", {
2085
+ }, data.map((item, index) => (/*#__PURE__*/React.createElement("li", {
2086
2086
  key: index,
2087
2087
  dangerouslySetInnerHTML: {
2088
2088
  __html: item
@@ -2283,7 +2283,7 @@ const Cover = ({
2283
2283
  classNames = makeStyleContext(classNames, theme, styles$9);
2284
2284
  style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
2285
2285
  }
2286
- const renderCC = context => ( /*#__PURE__*/React.createElement(MediaCaption, {
2286
+ const renderCC = context => (/*#__PURE__*/React.createElement(MediaCaption, {
2287
2287
  credit: credit,
2288
2288
  caption: caption,
2289
2289
  styleContext: context || styleContext
@@ -2300,18 +2300,18 @@ const Cover = ({
2300
2300
  })), /*#__PURE__*/React.createElement("div", {
2301
2301
  className: styles$9.body,
2302
2302
  style: style
2303
- }, blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2303
+ }, blocks.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2304
2304
  key: item.id,
2305
2305
  block: item,
2306
2306
  styleContext: styleContext
2307
- })))), cc === 'button' && ( /*#__PURE__*/React.createElement("button", {
2307
+ })))), cc === 'button' && (/*#__PURE__*/React.createElement("button", {
2308
2308
  className: styles$9.control,
2309
2309
  type: "button",
2310
2310
  "aria-label": "Open",
2311
2311
  onClick: () => {
2312
2312
  setIsPopoverShown(!isPopoverShown);
2313
2313
  }
2314
- })), cc === 'button' && isPopoverShown && ( /*#__PURE__*/React.createElement(Popover, {
2314
+ })), cc === 'button' && isPopoverShown && (/*#__PURE__*/React.createElement(Popover, {
2315
2315
  onClose: () => {
2316
2316
  setIsPopoverShown(false);
2317
2317
  }
@@ -2352,7 +2352,7 @@ const HalfBlock = ({
2352
2352
  display: "super_full"
2353
2353
  })), /*#__PURE__*/React.createElement("div", {
2354
2354
  className: styles$8.body
2355
- }, data.blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2355
+ }, data.blocks.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2356
2356
  key: item.id,
2357
2357
  block: item,
2358
2358
  styleContext: ['rich']
@@ -2381,7 +2381,7 @@ const ImportantLead = ({
2381
2381
  return /*#__PURE__*/React.createElement("div", {
2382
2382
  "data-testid": "important-lead",
2383
2383
  className: makeClassName(classNames)
2384
- }, data.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2384
+ }, data.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2385
2385
  key: item.id,
2386
2386
  block: item,
2387
2387
  styleContext: "isInImportantLead"
@@ -2433,7 +2433,7 @@ const Spoiler = ({
2433
2433
  className: styles$6.header
2434
2434
  }, title && /*#__PURE__*/React.createElement("h3", null, title)), /*#__PURE__*/React.createElement("div", {
2435
2435
  className: styles$6.body
2436
- }, blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2436
+ }, blocks.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2437
2437
  key: item.id,
2438
2438
  block: item,
2439
2439
  styleContext: context
@@ -2506,7 +2506,7 @@ const RelatedRichBlock = ({
2506
2506
  to: `/${url}`,
2507
2507
  onClick: () => handleClick(),
2508
2508
  ref: ref
2509
- }, layout === 'rich' && ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
2509
+ }, layout === 'rich' && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
2510
2510
  className: styles$5.overlay,
2511
2511
  style: style
2512
2512
  }), /*#__PURE__*/React.createElement("div", {
@@ -2528,7 +2528,7 @@ const RelatedRichBlock = ({
2528
2528
  display: "narrow"
2529
2529
  }))), /*#__PURE__*/React.createElement("div", {
2530
2530
  className: styles$5.body
2531
- }, blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2531
+ }, blocks.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2532
2532
  key: item.id,
2533
2533
  block: item,
2534
2534
  styleContext: context
@@ -2591,7 +2591,7 @@ const ShopRelatedBlock = ({
2591
2591
  target: "_blank",
2592
2592
  onClick: () => handleClick(),
2593
2593
  ref: ref
2594
- }, layout === 'rich' && ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
2594
+ }, layout === 'rich' && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
2595
2595
  className: styles$4.overlay,
2596
2596
  style: style
2597
2597
  }), /*#__PURE__*/React.createElement("div", {
@@ -2656,7 +2656,7 @@ const RelatedBook = ({
2656
2656
  className: styles$3.contentWrap
2657
2657
  }, /*#__PURE__*/React.createElement("div", {
2658
2658
  className: styles$3.content
2659
- }, block.data.blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2659
+ }, block.data.blocks.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2660
2660
  key: item.id,
2661
2661
  block: item,
2662
2662
  styleContext: ['isInMediaBlock', 'isInBookRelated', 'isCustom']
@@ -2751,7 +2751,7 @@ const ListViewSwitcher = ({
2751
2751
  enabled,
2752
2752
  onChange,
2753
2753
  size = 'md'
2754
- }) => ( /*#__PURE__*/React.createElement("label", {
2754
+ }) => (/*#__PURE__*/React.createElement("label", {
2755
2755
  "data-testid": "listViewSwitcher",
2756
2756
  className: makeClassName([[styles$2.root, true], [styles$2[size], true]])
2757
2757
  }, /*#__PURE__*/React.createElement("input", {
@@ -2785,7 +2785,7 @@ const ToolbarButton = ({
2785
2785
  className: makeClassName(classNames),
2786
2786
  type: "button",
2787
2787
  onClick: event => onClick(event, type)
2788
- }, icon && ( /*#__PURE__*/React.createElement("div", {
2788
+ }, icon && (/*#__PURE__*/React.createElement("div", {
2789
2789
  className: styles$1.icon
2790
2790
  }, /*#__PURE__*/React.createElement(SvgSymbol, {
2791
2791
  size: "medium",