@meduza/ui-kit-2 0.8.628 → 0.8.690

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 (46) hide show
  1. package/dist/ListViewSwitcher/ListViewSwitcher.types.d.ts +6 -0
  2. package/dist/ListViewSwitcher/index.d.ts +3 -0
  3. package/dist/Meta/Meta.types.d.ts +0 -1
  4. package/dist/RawHtmlBlock/RawHtmlBlock.types.d.ts +0 -1
  5. package/dist/RenderBlocks/RenderBlocks.types.d.ts +0 -1
  6. package/dist/SvgSymbol/SvgSymbol.types.d.ts +1 -1
  7. package/dist/Switcher/Switcher.types.d.ts +2 -3
  8. package/dist/ToolbarButton/ToolbarButton.types.d.ts +1 -1
  9. package/dist/index.d.ts +1 -0
  10. package/dist/types.d.ts +1 -1
  11. package/dist/ui-kit-2.cjs.development.js +360 -370
  12. package/dist/ui-kit-2.cjs.development.js.map +1 -1
  13. package/dist/ui-kit-2.cjs.production.min.js +1 -1
  14. package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
  15. package/dist/ui-kit-2.esm.js +360 -371
  16. package/dist/ui-kit-2.esm.js.map +1 -1
  17. package/dist/ui-kit-game.css +138 -47
  18. package/dist/ui-kit.css +138 -47
  19. package/package.json +1 -1
  20. package/src/EmbedBlock/EmbedBlock.module.css +9 -0
  21. package/src/EmbedBlock/EmbedBlock.tsx +15 -4
  22. package/src/Image/index.tsx +1 -4
  23. package/src/ListViewSwitcher/ListViewSwitcher.module.css +109 -0
  24. package/src/ListViewSwitcher/ListViewSwitcher.stories.module.css +6 -0
  25. package/src/ListViewSwitcher/ListViewSwitcher.stories.tsx +38 -0
  26. package/src/ListViewSwitcher/ListViewSwitcher.test.tsx +35 -0
  27. package/src/ListViewSwitcher/ListViewSwitcher.types.ts +7 -0
  28. package/src/ListViewSwitcher/index.tsx +30 -0
  29. package/src/Meta/Meta.module.css +0 -16
  30. package/src/Meta/Meta.types.ts +0 -1
  31. package/src/Meta/MetaContainer.tsx +0 -27
  32. package/src/RawHtmlBlock/RawHtmlBlock.types.ts +0 -1
  33. package/src/RawHtmlBlock/index.tsx +1 -3
  34. package/src/RenderBlocks/RenderBlocks.types.ts +0 -1
  35. package/src/RenderBlocks/index.tsx +1 -3
  36. package/src/Spoiler/Spoiler.module.css +10 -9
  37. package/src/SvgSymbol/SvgSymbol.types.ts +0 -2
  38. package/src/Switcher/Switcher.module.css +4 -21
  39. package/src/Switcher/Switcher.stories.module.css +3 -21
  40. package/src/Switcher/Switcher.stories.tsx +13 -32
  41. package/src/Switcher/Switcher.types.ts +2 -4
  42. package/src/Switcher/index.tsx +7 -7
  43. package/src/ToolbarButton/ToolbarButton.types.ts +0 -2
  44. package/src/_storybook/PreviewWrapper/index.tsx +0 -1
  45. package/src/index.tsx +1 -0
  46. package/src/types.ts +0 -3
@@ -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$I = {"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"};
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',
@@ -50,12 +50,12 @@ const Button = ({
50
50
  };
51
51
  return /*#__PURE__*/React.createElement("button", {
52
52
  "data-testid": "button",
53
- className: makeClassName([[styles$I.root, true], [styles$I[size], !!size], [styles$I[theme], !!theme], [styles$I[appearance], !!appearance], [styles$I[state], !!state && !!styles$I[state]], [styles$I[styleContext], !!styleContext]]),
53
+ className: makeClassName([[styles$J.root, true], [styles$J[size], !!size], [styles$J[theme], !!theme], [styles$J[appearance], !!appearance], [styles$J[state], !!state && !!styles$J[state]], [styles$J[styleContext], !!styleContext]]),
54
54
  disabled: disabled,
55
55
  onClick: handleClick,
56
56
  type: "button"
57
57
  }, state === 'isLoading' ? ( /*#__PURE__*/React.createElement("span", {
58
- className: styles$I.loader
58
+ className: styles$J.loader
59
59
  }, /*#__PURE__*/React.createElement(ButtonLoader, null))) : children);
60
60
  };
61
61
 
@@ -274,7 +274,7 @@ const icons = {
274
274
  }
275
275
  };
276
276
 
277
- var styles$H = {"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","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,
@@ -286,7 +286,7 @@ const SvgSymbol = ({
286
286
  "data-testid": "svg-symbol",
287
287
  xmlns: "http://www.w3.org/2000/svg",
288
288
  xmlnsXlink: "http://www.w3.org/1999/xlink",
289
- className: makeClassName([[styles$H.root, true], [styles$H[size], !!styles$H[size]], [styles$H[icon], !!styles$H[icon]], [styles$H[styleContext], !!styles$H[styleContext]]]),
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,
292
292
  viewBox: `0 0 ${data.width} ${data.height}`,
@@ -296,32 +296,32 @@ const SvgSymbol = ({
296
296
  });
297
297
  };
298
298
 
299
- var styles$G = {"root":"Switcher-module_root__cBsJB","dark":"Switcher-module_dark__1QQsH","control":"Switcher-module_control__60WMX","input":"Switcher-module_input__5UDnv","knob":"Switcher-module_knob__PwA1A","children":"Switcher-module_children__uLapU","left":"Switcher-module_left__5-HNa","right":"Switcher-module_right__82Edk","isInPanel":"Switcher-module_isInPanel__-nBSf","isInMenu":"Switcher-module_isInMenu__RQVhp","isInLive":"Switcher-module_isInLive__ZyMCT"};
299
+ var styles$H = {"root":"Switcher-module_root__cBsJB","dark":"Switcher-module_dark__1QQsH","control":"Switcher-module_control__60WMX","input":"Switcher-module_input__5UDnv","knob":"Switcher-module_knob__PwA1A","isInMenu":"Switcher-module_isInMenu__RQVhp","isInLive":"Switcher-module_isInLive__ZyMCT","children":"Switcher-module_children__uLapU"};
300
300
 
301
301
  const Switcher = ({
302
302
  enabled,
303
- children,
304
- childrenPosition = 'left',
305
303
  onChange,
306
304
  styleContext,
307
- theme = 'light'
305
+ theme = 'light',
306
+ childrenLeft,
307
+ childrenRight
308
308
  }) => ( /*#__PURE__*/React.createElement("label", {
309
309
  "data-testid": "switcher",
310
- className: makeClassName([[styles$G.root, true], [styles$G[theme], !!styles$G[theme]], [styles$G[styleContext], !!styles$G[styleContext]]])
311
- }, children && childrenPosition === 'left' && ( /*#__PURE__*/React.createElement("div", {
312
- className: makeClassName([[styles$G.children, true], [styles$G.left, true]])
313
- }, children)), /*#__PURE__*/React.createElement("input", {
314
- className: styles$G.input,
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", {
312
+ className: makeClassName([[styles$H.children, true], [styles$H.left, true]])
313
+ }, childrenLeft)), /*#__PURE__*/React.createElement("input", {
314
+ className: styles$H.input,
315
315
  type: "checkbox",
316
316
  checked: enabled,
317
317
  onChange: onChange
318
318
  }), /*#__PURE__*/React.createElement("span", {
319
- className: styles$G.control
319
+ className: styles$H.control
320
320
  }, /*#__PURE__*/React.createElement("span", {
321
- className: styles$G.knob
322
- })), children && childrenPosition === 'right' && ( /*#__PURE__*/React.createElement("div", {
323
- className: makeClassName([[styles$G.children, true], [styles$G.right, true]])
324
- }, children))));
321
+ className: styles$H.knob
322
+ })), childrenRight && ( /*#__PURE__*/React.createElement("div", {
323
+ className: makeClassName([[styles$H.children, true], [styles$H.right, true]])
324
+ }, childrenRight))));
325
325
 
326
326
  const makeStyleContext = (classNames, styleContext, styles) => {
327
327
  const context = Array.isArray(styleContext) ? styleContext.filter(ctx => styles[ctx]).map(ctx => [[styles[ctx]], true]) : [[styles[styleContext], !!styleContext && !!styles[styleContext]]];
@@ -346,7 +346,7 @@ const postMessage = (category, element, action) => {
346
346
  }
347
347
  };
348
348
 
349
- var styles$F = {"root":"Lazy-module_root__DWw8D"};
349
+ var styles$G = {"root":"Lazy-module_root__DWw8D"};
350
350
 
351
351
  const Lazy = ({
352
352
  children,
@@ -367,7 +367,7 @@ const Lazy = ({
367
367
  }
368
368
  }, [inView]);
369
369
  return /*#__PURE__*/React.createElement("div", {
370
- className: makeClassName([[styles$F.root, true], [styles$F.visible, visible]]),
370
+ className: makeClassName([[styles$G.root, true], [styles$G.visible, visible]]),
371
371
  ref: ref,
372
372
  "data-testid": "lazy"
373
373
  }, visible && children);
@@ -460,7 +460,7 @@ const RenderPicture = ({
460
460
  }));
461
461
  };
462
462
 
463
- var styles$E = {"root":"Image-module_root__H5wAh","isStatic":"Image-module_isStatic__TmQ1V","isLoaded":"Image-module_isLoaded__keFnD","wrapper":"Image-module_wrapper__gJtbB","fullscreen":"Image-module_fullscreen__4PU9c","dark":"Image-module_dark__qjo5O"};
463
+ var styles$F = {"root":"Image-module_root__H5wAh","isStatic":"Image-module_isStatic__TmQ1V","isLoaded":"Image-module_isLoaded__keFnD","wrapper":"Image-module_wrapper__gJtbB","fullscreen":"Image-module_fullscreen__4PU9c","dark":"Image-module_dark__qjo5O"};
464
464
 
465
465
  const Image = ({
466
466
  alt,
@@ -489,20 +489,20 @@ const Image = ({
489
489
  maxWidth: width <= 649 ? width : '100%'
490
490
  };
491
491
  const pictureStyles = {
492
- paddingBottom: styleContext === 'isInDynamicBlock' ? '100%' : `${100 / (ratio || width / height)}%`
492
+ paddingBottom: `${100 / (ratio || width / height)}%`
493
493
  };
494
494
  /* fallback w325 url until w6 was released */
495
495
  const fallbackSource = source && source[0] || optimized.w325 && optimized.w325['1x'] || optimized.original;
496
- let classNames = [[styles$E.root, true], [styles$E.isLoaded, isLoaded], [styles$E.fullscreen, lightBox && optimized && optimized.original && fullscreen]];
496
+ let classNames = [[styles$F.root, true], [styles$F.isLoaded, isLoaded], [styles$F.fullscreen, lightBox && optimized && optimized.original && fullscreen]];
497
497
  if (styleContext) {
498
- classNames = makeStyleContext(classNames, styleContext, styles$E);
498
+ classNames = makeStyleContext(classNames, styleContext, styles$F);
499
499
  }
500
500
  return /*#__PURE__*/React.createElement("div", {
501
501
  className: makeClassName(classNames),
502
502
  style: blockStyles,
503
503
  "data-testid": "image"
504
504
  }, /*#__PURE__*/React.createElement("div", {
505
- className: styles$E.wrapper,
505
+ className: styles$F.wrapper,
506
506
  style: pictureStyles,
507
507
  onClick: () => handleClick(),
508
508
  onKeyPress: () => handleClick(),
@@ -530,7 +530,7 @@ const Image = ({
530
530
  }))));
531
531
  };
532
532
 
533
- var styles$D = {"root":"Popover-module_root__nBiV4","fadeOut":"Popover-module_fadeOut__Y88V7","visible":"Popover-module_visible__XVQLW","fadeIn":"Popover-module_fadeIn__FK1gd","overlay":"Popover-module_overlay__NAPar","container":"Popover-module_container__y4SB1","disappear":"Popover-module_disappear__uUn2b","dismiss":"Popover-module_dismiss__W8KFF","background":"Popover-module_background__apiio","appear":"Popover-module_appear__b-CZ2","body":"Popover-module_body__UJEZf"};
533
+ var styles$E = {"root":"Popover-module_root__nBiV4","fadeOut":"Popover-module_fadeOut__Y88V7","visible":"Popover-module_visible__XVQLW","fadeIn":"Popover-module_fadeIn__FK1gd","overlay":"Popover-module_overlay__NAPar","container":"Popover-module_container__y4SB1","disappear":"Popover-module_disappear__uUn2b","dismiss":"Popover-module_dismiss__W8KFF","background":"Popover-module_background__apiio","appear":"Popover-module_appear__b-CZ2","body":"Popover-module_body__UJEZf"};
534
534
 
535
535
  const Popover = ({
536
536
  children,
@@ -562,20 +562,20 @@ const Popover = ({
562
562
  /* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */
563
563
  return /*#__PURE__*/React.createElement("div", {
564
564
  "data-testid": "popover",
565
- className: makeClassName([[styles$D.root, true], [styles$D.visible, visible]])
565
+ className: makeClassName([[styles$E.root, true], [styles$E.visible, visible]])
566
566
  }, /*#__PURE__*/React.createElement("div", {
567
- className: styles$D.overlay,
567
+ className: styles$E.overlay,
568
568
  onClick: () => handleClose()
569
569
  }), /*#__PURE__*/React.createElement("div", {
570
- className: styles$D.container
570
+ className: styles$E.container
571
571
  }, /*#__PURE__*/React.createElement("button", {
572
572
  type: "button",
573
- className: styles$D.dismiss,
573
+ className: styles$E.dismiss,
574
574
  onClick: () => handleClose(),
575
575
  "aria-label": "dismiss"
576
576
  }), /*#__PURE__*/React.createElement("svg", {
577
577
  width: "100%",
578
- className: styles$D.background
578
+ className: styles$E.background
579
579
  }, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("mask", {
580
580
  id: "myMask",
581
581
  x: "0",
@@ -604,11 +604,11 @@ const Popover = ({
604
604
  width: "100%",
605
605
  height: "100%"
606
606
  })), /*#__PURE__*/React.createElement("div", {
607
- className: styles$D.body
607
+ className: styles$E.body
608
608
  }, children)));
609
609
  };
610
610
 
611
- var styles$C = {"root":"Footnote-module_root__W5D8G","body":"Footnote-module_body__C-ZC-","dismiss":"Footnote-module_dismiss__Q2hAX"};
611
+ var styles$D = {"root":"Footnote-module_root__W5D8G","body":"Footnote-module_body__C-ZC-","dismiss":"Footnote-module_dismiss__Q2hAX"};
612
612
 
613
613
  const Footnote = ({
614
614
  children,
@@ -616,16 +616,16 @@ const Footnote = ({
616
616
  }) => {
617
617
  return /*#__PURE__*/React.createElement("div", {
618
618
  "data-testid": "footnote",
619
- className: makeClassName([[styles$C.root, true]])
619
+ className: makeClassName([[styles$D.root, true]])
620
620
  }, /*#__PURE__*/React.createElement("button", {
621
- className: styles$C.dismiss,
621
+ className: styles$D.dismiss,
622
622
  type: "button",
623
623
  onClick: () => onClose()
624
624
  }, /*#__PURE__*/React.createElement(SvgSymbol, {
625
625
  icon: "cross",
626
626
  size: "unset"
627
627
  })), /*#__PURE__*/React.createElement("div", {
628
- className: styles$C.body
628
+ className: styles$D.body
629
629
  }, children));
630
630
  };
631
631
 
@@ -634,7 +634,7 @@ var viewportSize = () => ({
634
634
  height: window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
635
635
  });
636
636
 
637
- var styles$B = {"root":"DotsOnImage-module_root__8UQf2","isVisible":"DotsOnImage-module_isVisible__rA5x9","marker":"DotsOnImage-module_marker__pLdQT","show":"DotsOnImage-module_show__Ec0lG","dot":"DotsOnImage-module_dot__e2MWx","isActive":"DotsOnImage-module_isActive__Bhb58","popover":"DotsOnImage-module_popover__zHSbU","isRight":"DotsOnImage-module_isRight__IaUbc","isTop":"DotsOnImage-module_isTop__RMK49","isLeft":"DotsOnImage-module_isLeft__Q6JZ-","isBottom":"DotsOnImage-module_isBottom__c-aLe"};
637
+ var styles$C = {"root":"DotsOnImage-module_root__8UQf2","isVisible":"DotsOnImage-module_isVisible__rA5x9","marker":"DotsOnImage-module_marker__pLdQT","show":"DotsOnImage-module_show__Ec0lG","dot":"DotsOnImage-module_dot__e2MWx","isActive":"DotsOnImage-module_isActive__Bhb58","popover":"DotsOnImage-module_popover__zHSbU","isRight":"DotsOnImage-module_isRight__IaUbc","isTop":"DotsOnImage-module_isTop__RMK49","isLeft":"DotsOnImage-module_isLeft__Q6JZ-","isBottom":"DotsOnImage-module_isBottom__c-aLe"};
638
638
 
639
639
  const DotsOnImage = ({
640
640
  block: {
@@ -716,7 +716,7 @@ const DotsOnImage = ({
716
716
  });
717
717
  };
718
718
  return /*#__PURE__*/React.createElement("div", {
719
- className: makeClassName([[styles$B.root, true], [styles$B.isVisible, visible]]),
719
+ className: makeClassName([[styles$C.root, true], [styles$C.isVisible, visible]]),
720
720
  "data-testid": "dots-on-image",
721
721
  ref: ref
722
722
  }, /*#__PURE__*/React.createElement(Image, {
@@ -729,7 +729,7 @@ const DotsOnImage = ({
729
729
  }), /*#__PURE__*/React.createElement("div", {
730
730
  ref: container
731
731
  }, dots.map(dot => ( /*#__PURE__*/React.createElement("div", {
732
- className: styles$B.dot,
732
+ className: styles$C.dot,
733
733
  key: dot.id,
734
734
  style: {
735
735
  top: `${dot.position.y}%`,
@@ -737,7 +737,7 @@ const DotsOnImage = ({
737
737
  transform: `scale(${ratio}) translate(-${50 / ratio}%, -${50 / ratio}%)`
738
738
  }
739
739
  }, /*#__PURE__*/React.createElement("button", {
740
- className: makeClassName([[styles$B.marker, true], [styles$B.isActive, dot.id === popover.id]]),
740
+ className: makeClassName([[styles$C.marker, true], [styles$C.isActive, dot.id === popover.id]]),
741
741
  type: "button",
742
742
  style: {
743
743
  backgroundColor: dot.icon.color
@@ -748,7 +748,7 @@ const DotsOnImage = ({
748
748
  __html: dot.icon.svg_string
749
749
  }
750
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
- className: makeClassName([[styles$B.popover, true], [styles$B[popover.side], !!popover.side], [styles$B[popover.align], !!popover.align]]),
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, {
754
754
  onClose: () => {
@@ -773,7 +773,7 @@ const DotsOnImage = ({
773
773
  })))))));
774
774
  };
775
775
 
776
- var styles$A = {"root":"Tag-module_root__sGbnM","small":"Tag-module_small__hcPrf","large":"Tag-module_large__EKMu6","dark":"Tag-module_dark__9SHCb","light":"Tag-module_light__qlfy3","gold":"Tag-module_gold__u0bzS","gray":"Tag-module_gray__eazPk","inherit":"Tag-module_inherit__z21c-","is1to1":"Tag-module_is1to1__V-fH5","is1to2":"Tag-module_is1to2__b9Obh","isInSuperBlock":"Tag-module_isInSuperBlock__wrFUY","is1to3":"Tag-module_is1to3__vZT-R","is1to4":"Tag-module_is1to4__MBh5V","slide":"Tag-module_slide__gzptP","game":"Tag-module_game__NmKec","podcastMaterial":"Tag-module_podcastMaterial__O-LBI","richRelated":"Tag-module_richRelated__Qs6Ei","isInBookRelated":"Tag-module_isInBookRelated__ikTaj","card":"Tag-module_card__TX87-","live":"Tag-module_live__ykyR7","episode":"Tag-module_episode__3OHmN","podcast":"Tag-module_podcast__K6dHn","rich":"Tag-module_rich__vPnWd","isInDynamicBlock":"Tag-module_isInDynamicBlock__WNleF","isInPodcastPlayer":"Tag-module_isInPodcastPlayer__H4sK9","mobile":"Tag-module_mobile__19oMH","desktop":"Tag-module_desktop__cNyQs"};
776
+ var styles$B = {"root":"Tag-module_root__sGbnM","small":"Tag-module_small__hcPrf","large":"Tag-module_large__EKMu6","dark":"Tag-module_dark__9SHCb","light":"Tag-module_light__qlfy3","gold":"Tag-module_gold__u0bzS","gray":"Tag-module_gray__eazPk","inherit":"Tag-module_inherit__z21c-","is1to1":"Tag-module_is1to1__V-fH5","is1to2":"Tag-module_is1to2__b9Obh","isInSuperBlock":"Tag-module_isInSuperBlock__wrFUY","is1to3":"Tag-module_is1to3__vZT-R","is1to4":"Tag-module_is1to4__MBh5V","slide":"Tag-module_slide__gzptP","game":"Tag-module_game__NmKec","podcastMaterial":"Tag-module_podcastMaterial__O-LBI","richRelated":"Tag-module_richRelated__Qs6Ei","isInBookRelated":"Tag-module_isInBookRelated__ikTaj","card":"Tag-module_card__TX87-","live":"Tag-module_live__ykyR7","episode":"Tag-module_episode__3OHmN","podcast":"Tag-module_podcast__K6dHn","rich":"Tag-module_rich__vPnWd","isInDynamicBlock":"Tag-module_isInDynamicBlock__WNleF","isInPodcastPlayer":"Tag-module_isInPodcastPlayer__H4sK9","mobile":"Tag-module_mobile__19oMH","desktop":"Tag-module_desktop__cNyQs"};
777
777
 
778
778
  const Tag = ({
779
779
  children,
@@ -783,9 +783,9 @@ const Tag = ({
783
783
  correlation,
784
784
  onlyOn
785
785
  }) => {
786
- let classNames = [[styles$A.root, true], [styles$A[size], !!size && !!styles$A[size]], [styles$A[theme], !!theme && !!styles$A[theme]], [styles$A[onlyOn], !!onlyOn && !!styles$A[onlyOn]], [styles$A[correlation], !!correlation && !!styles$A[correlation]]];
786
+ let classNames = [[styles$B.root, true], [styles$B[size], !!size && !!styles$B[size]], [styles$B[theme], !!theme && !!styles$B[theme]], [styles$B[onlyOn], !!onlyOn && !!styles$B[onlyOn]], [styles$B[correlation], !!correlation && !!styles$B[correlation]]];
787
787
  if (styleContext) {
788
- classNames = makeStyleContext(classNames, styleContext, styles$A);
788
+ classNames = makeStyleContext(classNames, styleContext, styles$B);
789
789
  }
790
790
  return /*#__PURE__*/React.createElement("div", {
791
791
  "data-testid": "tag",
@@ -793,34 +793,34 @@ const Tag = ({
793
793
  }, children);
794
794
  };
795
795
 
796
- var styles$z = {"root":"MediaCaption-module_root__1r0wu","caption":"MediaCaption-module_caption__ewfcc","credit":"MediaCaption-module_credit__7y4v8","dark":"MediaCaption-module_dark__7a9Cm","video":"MediaCaption-module_video__RDTUa","picture":"MediaCaption-module_picture__abCvw","desktop":"MediaCaption-module_desktop__e0lCY","isDark":"MediaCaption-module_isDark__IFb9X"};
796
+ var styles$A = {"root":"MediaCaption-module_root__1r0wu","caption":"MediaCaption-module_caption__ewfcc","credit":"MediaCaption-module_credit__7y4v8","dark":"MediaCaption-module_dark__7a9Cm","video":"MediaCaption-module_video__RDTUa","picture":"MediaCaption-module_picture__abCvw","desktop":"MediaCaption-module_desktop__e0lCY","isDark":"MediaCaption-module_isDark__IFb9X"};
797
797
 
798
798
  const MediaCaption = ({
799
799
  credit,
800
800
  caption,
801
801
  styleContext
802
802
  }) => {
803
- let classNames = [[styles$z.root, true]];
803
+ let classNames = [[styles$A.root, true]];
804
804
  if (styleContext) {
805
- classNames = makeStyleContext(classNames, styleContext, styles$z);
805
+ classNames = makeStyleContext(classNames, styleContext, styles$A);
806
806
  }
807
807
  return /*#__PURE__*/React.createElement("div", {
808
808
  "data-testid": "media-caption",
809
809
  className: makeClassName(classNames)
810
810
  }, caption && ( /*#__PURE__*/React.createElement("div", {
811
- className: styles$z.caption,
811
+ className: styles$A.caption,
812
812
  dangerouslySetInnerHTML: {
813
813
  __html: caption
814
814
  }
815
815
  })), credit && ( /*#__PURE__*/React.createElement("div", {
816
- className: styles$z.credit,
816
+ className: styles$A.credit,
817
817
  dangerouslySetInnerHTML: {
818
818
  __html: credit
819
819
  }
820
820
  })));
821
821
  };
822
822
 
823
- var styles$y = {"root":"Table-module_root__fRuZq","card":"Table-module_card__8r-EA","table":"Table-module_table__7Pagp","slide":"Table-module_slide__dgMPV","wrapper":"Table-module_wrapper__AP4Pz","tracks":"Table-module_tracks__mRNG0","default":"Table-module_default__nwBEg","full":"Table-module_full__YZPDz","row":"Table-module_row__9OHT3","cell":"Table-module_cell__yFdqc","fixedColumn":"Table-module_fixedColumn__O2528","white":"Table-module_white__Laj3-","gray":"Table-module_gray__FPFh0","pink":"Table-module_pink__CGkAA","blue":"Table-module_blue__b8BHs","yellow":"Table-module_yellow__YOJgu","orange":"Table-module_orange__B-i8L","green":"Table-module_green__Bt6iC","violet":"Table-module_violet__yTZd7","header":"Table-module_header__YPDzO","s":"Table-module_s__I-CeX","m":"Table-module_m__vxhDf","l":"Table-module_l__GYHhk","xs":"Table-module_xs__imR8t"};
823
+ var styles$z = {"root":"Table-module_root__fRuZq","card":"Table-module_card__8r-EA","table":"Table-module_table__7Pagp","slide":"Table-module_slide__dgMPV","wrapper":"Table-module_wrapper__AP4Pz","tracks":"Table-module_tracks__mRNG0","default":"Table-module_default__nwBEg","full":"Table-module_full__YZPDz","row":"Table-module_row__9OHT3","cell":"Table-module_cell__yFdqc","fixedColumn":"Table-module_fixedColumn__O2528","white":"Table-module_white__Laj3-","gray":"Table-module_gray__FPFh0","pink":"Table-module_pink__CGkAA","blue":"Table-module_blue__b8BHs","yellow":"Table-module_yellow__YOJgu","orange":"Table-module_orange__B-i8L","green":"Table-module_green__Bt6iC","violet":"Table-module_violet__yTZd7","header":"Table-module_header__YPDzO","s":"Table-module_s__I-CeX","m":"Table-module_m__vxhDf","l":"Table-module_l__GYHhk","xs":"Table-module_xs__imR8t"};
824
824
 
825
825
  const Table = ({
826
826
  styleContext,
@@ -842,26 +842,26 @@ const Table = ({
842
842
  '#e7f2ef': 'green',
843
843
  '#f4f0f8': 'violet'
844
844
  };
845
- let classNames = [[styles$y.root, true], [styles$y[display], !!display && !!styles$y[display]]];
845
+ let classNames = [[styles$z.root, true], [styles$z[display], !!display && !!styles$z[display]]];
846
846
  if (styleContext) {
847
- classNames = makeStyleContext(classNames, styleContext, styles$y);
847
+ classNames = makeStyleContext(classNames, styleContext, styles$z);
848
848
  }
849
849
  return /*#__PURE__*/React.createElement("div", {
850
850
  "data-testid": "table",
851
851
  className: makeClassName(classNames)
852
852
  }, /*#__PURE__*/React.createElement("div", {
853
- className: styles$y.wrapper
853
+ className: styles$z.wrapper
854
854
  }, /*#__PURE__*/React.createElement("div", {
855
- className: styles$y.table
855
+ className: styles$z.table
856
856
  }, /*#__PURE__*/React.createElement("div", {
857
- className: styles$y.tracks
857
+ className: styles$z.tracks
858
858
  }, rows.map((row, i) => {
859
859
  return /*#__PURE__*/React.createElement("div", {
860
860
  key: row.key,
861
- className: styles$y.row
861
+ className: styles$z.row
862
862
  }, row.cells.map((cell, j) => ( /*#__PURE__*/React.createElement("div", {
863
863
  key: cell.key,
864
- className: makeClassName([[styles$y.cell, true], [styles$y.header, options.header && i === 0], [styles$y[colors[cell.color]], true], [styles$y[columnsWidth[j]], true], [styles$y.fixedColumn, options.fixed_first_column && j === 0]]),
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
  }
@@ -872,7 +872,7 @@ const Table = ({
872
872
  })));
873
873
  };
874
874
 
875
- var styles$x = {"root":"MaterialNote-module_root__99HSA","dark":"MaterialNote-module_dark__etjym","note_credit":"MaterialNote-module_note_credit__J1skG","note_caption":"MaterialNote-module_note_caption__G2Ad0","center":"MaterialNote-module_center__mDLEO","default":"MaterialNote-module_default__ozgd7","card":"MaterialNote-module_card__EVuZe","slide":"MaterialNote-module_slide__mg8XV","game":"MaterialNote-module_game__c-r0n","gameSurvey":"MaterialNote-module_gameSurvey__azhu6"};
875
+ var styles$y = {"root":"MaterialNote-module_root__99HSA","dark":"MaterialNote-module_dark__etjym","note_credit":"MaterialNote-module_note_credit__J1skG","note_caption":"MaterialNote-module_note_caption__G2Ad0","center":"MaterialNote-module_center__mDLEO","default":"MaterialNote-module_default__ozgd7","card":"MaterialNote-module_card__EVuZe","slide":"MaterialNote-module_slide__mg8XV","game":"MaterialNote-module_game__c-r0n","gameSurvey":"MaterialNote-module_gameSurvey__azhu6"};
876
876
 
877
877
  const MaterialNote = ({
878
878
  block: {
@@ -880,15 +880,15 @@ const MaterialNote = ({
880
880
  },
881
881
  styleContext
882
882
  }) => {
883
- let classNames = [[styles$x.root, true]];
883
+ let classNames = [[styles$y.root, true]];
884
884
  if (styleContext) {
885
- classNames = makeStyleContext(classNames, styleContext, styles$x);
885
+ classNames = makeStyleContext(classNames, styleContext, styles$y);
886
886
  }
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
890
  }, data && data.map(item => ( /*#__PURE__*/React.createElement("p", {
891
- className: styles$x[item.type],
891
+ className: styles$y[item.type],
892
892
  key: item.id,
893
893
  dangerouslySetInnerHTML: {
894
894
  __html: item.data
@@ -896,7 +896,7 @@ const MaterialNote = ({
896
896
  })))));
897
897
  };
898
898
 
899
- var styles$w = {"root":"BookmarkButton-module_root__A-75w","control":"BookmarkButton-module_control__-xy5O","dark":"BookmarkButton-module_dark__GkMEC","light":"BookmarkButton-module_light__1W6tx","isInBookmarks":"BookmarkButton-module_isInBookmarks__YSjjj","isInGrid":"BookmarkButton-module_isInGrid__Desh-"};
899
+ var styles$x = {"root":"BookmarkButton-module_root__A-75w","control":"BookmarkButton-module_control__-xy5O","dark":"BookmarkButton-module_dark__GkMEC","light":"BookmarkButton-module_light__1W6tx","isInBookmarks":"BookmarkButton-module_isInBookmarks__YSjjj","isInGrid":"BookmarkButton-module_isInGrid__Desh-"};
900
900
 
901
901
  const BookmarkButton = ({
902
902
  styleContext,
@@ -904,15 +904,15 @@ const BookmarkButton = ({
904
904
  isInBookmarks,
905
905
  onClick
906
906
  }) => {
907
- let classNames = [[styles$w.root, true], [styles$w.isInBookmarks, isInBookmarks], [styles$w[theme], !!theme && !!styles$w[theme]]];
907
+ let classNames = [[styles$x.root, true], [styles$x.isInBookmarks, isInBookmarks], [styles$x[theme], !!theme && !!styles$x[theme]]];
908
908
  if (styleContext) {
909
- classNames = makeStyleContext(classNames, styleContext, styles$w);
909
+ classNames = makeStyleContext(classNames, styleContext, styles$x);
910
910
  }
911
911
  return /*#__PURE__*/React.createElement("div", {
912
912
  "data-testid": "bookmark-button",
913
913
  className: makeClassName(classNames)
914
914
  }, /*#__PURE__*/React.createElement("button", {
915
- className: styles$w.control,
915
+ className: styles$x.control,
916
916
  onClick: () => onClick(),
917
917
  type: "button"
918
918
  }, /*#__PURE__*/React.createElement(SvgSymbol, {
@@ -921,39 +921,39 @@ const BookmarkButton = ({
921
921
  })));
922
922
  };
923
923
 
924
- var styles$v = {"root":"MaterialTitle-module_root__VSphO","primary":"MaterialTitle-module_primary__XGnpb","secondary":"MaterialTitle-module_secondary__7IDEp"};
924
+ var styles$w = {"root":"MaterialTitle-module_root__VSphO","primary":"MaterialTitle-module_primary__XGnpb","secondary":"MaterialTitle-module_secondary__7IDEp"};
925
925
 
926
926
  const Primary = ({
927
927
  children
928
928
  }) => {
929
929
  return /*#__PURE__*/React.createElement("span", {
930
- className: styles$v.primary
930
+ className: styles$w.primary
931
931
  }, children);
932
932
  };
933
933
  const Secondary = ({
934
934
  children
935
935
  }) => {
936
936
  return /*#__PURE__*/React.createElement("span", {
937
- className: styles$v.secondary
937
+ className: styles$w.secondary
938
938
  }, children);
939
939
  };
940
940
  const MaterialTitle = ({
941
941
  children
942
942
  }) => {
943
943
  return /*#__PURE__*/React.createElement("h1", {
944
- className: styles$v.root,
944
+ className: styles$w.root,
945
945
  "data-testid": "material-title"
946
946
  }, children);
947
947
  };
948
948
 
949
- var styles$u = {"root":"Dropdown-module_root__Wv7S-","menu":"Dropdown-module_menu__11IQL","inactive":"Dropdown-module_inactive__E5CP6","isInAudioPanel":"Dropdown-module_isInAudioPanel__UniSV"};
949
+ var styles$v = {"root":"Dropdown-module_root__Wv7S-","menu":"Dropdown-module_menu__11IQL","inactive":"Dropdown-module_inactive__E5CP6","isInAudioPanel":"Dropdown-module_isInAudioPanel__UniSV"};
950
950
 
951
951
  const Menu = ({
952
952
  children
953
953
  }) => {
954
954
  return /*#__PURE__*/React.createElement("div", {
955
955
  "data-testid": "dropdown",
956
- className: styles$u.menu
956
+ className: styles$v.menu
957
957
  }, children);
958
958
  };
959
959
  const Dropdown = ({
@@ -961,9 +961,9 @@ const Dropdown = ({
961
961
  active,
962
962
  styleContext
963
963
  }) => {
964
- let classNames = [[styles$u.root, true], [styles$u.inactive, !active && styleContext === 'isPodcastSeason' && !!styles$u.inactive]];
964
+ let classNames = [[styles$v.root, true], [styles$v.inactive, !active && styleContext === 'isPodcastSeason' && !!styles$v.inactive]];
965
965
  if (styleContext) {
966
- classNames = makeStyleContext(classNames, styleContext, styles$u);
966
+ classNames = makeStyleContext(classNames, styleContext, styles$v);
967
967
  }
968
968
  return /*#__PURE__*/React.createElement("div", {
969
969
  "data-testid": "dropdown",
@@ -971,13 +971,13 @@ const Dropdown = ({
971
971
  }, children);
972
972
  };
973
973
 
974
- var styles$t = {"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"};
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"};
975
975
 
976
976
  const ToolbarItem = ({
977
977
  children
978
978
  }) => {
979
979
  return /*#__PURE__*/React.createElement("li", {
980
- className: styles$t.item
980
+ className: styles$u.item
981
981
  }, children);
982
982
  };
983
983
 
@@ -985,19 +985,19 @@ const Toolbar = ({
985
985
  children,
986
986
  styleContext
987
987
  }) => {
988
- let classNames = [[styles$t.root, true]];
988
+ let classNames = [[styles$u.root, true]];
989
989
  if (styleContext) {
990
- classNames = makeStyleContext(classNames, styleContext, styles$t);
990
+ classNames = makeStyleContext(classNames, styleContext, styles$u);
991
991
  }
992
992
  return /*#__PURE__*/React.createElement("div", {
993
993
  "data-testid": "toolbar",
994
994
  className: makeClassName(classNames)
995
995
  }, /*#__PURE__*/React.createElement("ul", {
996
- className: styles$t.list
996
+ className: styles$u.list
997
997
  }, children));
998
998
  };
999
999
 
1000
- var styles$s = {"root":"Meta-module_root__H-Q4d","rich":"Meta-module_rich__dCkJK","podcast":"Meta-module_podcast__MI8gD","episode":"Meta-module_episode__0n9CF","simple":"Meta-module_simple__tztcr","slide":"Meta-module_slide__3OyIN","card":"Meta-module_card__2vqfN","game":"Meta-module_game__HNcgr","isInMaterial":"Meta-module_isInMaterial__vKcTK","isInSearchItem":"Meta-module_isInSearchItem__ENqHo","isInMediaBlock":"Meta-module_isInMediaBlock__TENZG","center":"Meta-module_center__seHro","half":"Meta-module_half__aoa9h","podcastMaterial":"Meta-module_podcastMaterial__GTPyD","light":"Meta-module_light__oW3kc","dark":"Meta-module_dark__tLQNJ","isDark":"Meta-module_isDark__xSl1J","hasSource":"Meta-module_hasSource__OZJ0y","bookmark":"Meta-module_bookmark__jcFWn","isInBookRelated":"Meta-module_isInBookRelated__Ohidg","mobile":"Meta-module_mobile__PbG8N","desktop":"Meta-module_desktop__W5AB7"};
1000
+ var styles$t = {"root":"Meta-module_root__H-Q4d","rich":"Meta-module_rich__dCkJK","podcast":"Meta-module_podcast__MI8gD","episode":"Meta-module_episode__0n9CF","simple":"Meta-module_simple__tztcr","slide":"Meta-module_slide__3OyIN","card":"Meta-module_card__2vqfN","game":"Meta-module_game__HNcgr","isInMaterial":"Meta-module_isInMaterial__vKcTK","isInSearchItem":"Meta-module_isInSearchItem__ENqHo","isInMediaBlock":"Meta-module_isInMediaBlock__TENZG","center":"Meta-module_center__seHro","half":"Meta-module_half__aoa9h","podcastMaterial":"Meta-module_podcastMaterial__GTPyD","light":"Meta-module_light__oW3kc","dark":"Meta-module_dark__tLQNJ","isDark":"Meta-module_isDark__xSl1J","hasSource":"Meta-module_hasSource__OZJ0y","bookmark":"Meta-module_bookmark__jcFWn","isInBookRelated":"Meta-module_isInBookRelated__Ohidg","mobile":"Meta-module_mobile__PbG8N","desktop":"Meta-module_desktop__W5AB7"};
1001
1001
 
1002
1002
  const Meta = ({
1003
1003
  hasSource,
@@ -1006,9 +1006,9 @@ const Meta = ({
1006
1006
  onlyOn,
1007
1007
  styleContext
1008
1008
  }) => {
1009
- let classNames = [[styles$s.root, true], [styles$s[theme], !!theme && !!styles$s[theme]], [styles$s[onlyOn], !!onlyOn], [styles$s.hasSource, hasSource]];
1009
+ let classNames = [[styles$t.root, true], [styles$t[theme], !!theme && !!styles$t[theme]], [styles$t[onlyOn], !!onlyOn], [styles$t.hasSource, hasSource]];
1010
1010
  if (styleContext) {
1011
- classNames = makeStyleContext(classNames, styleContext, styles$s);
1011
+ classNames = makeStyleContext(classNames, styleContext, styles$t);
1012
1012
  }
1013
1013
  return /*#__PURE__*/React.createElement("div", {
1014
1014
  "data-testid": "meta",
@@ -1016,7 +1016,7 @@ const Meta = ({
1016
1016
  }, children);
1017
1017
  };
1018
1018
 
1019
- var styles$r = {"root":"Timestamp-module_root__jPJ6w"};
1019
+ var styles$s = {"root":"Timestamp-module_root__jPJ6w"};
1020
1020
 
1021
1021
  const Timestamp = ({
1022
1022
  publishedAt,
@@ -1040,7 +1040,7 @@ const Timestamp = ({
1040
1040
  return /*#__PURE__*/React.createElement("time", {
1041
1041
  suppressHydrationWarning: true,
1042
1042
  "data-testid": "timestamp",
1043
- className: styles$r.root
1043
+ className: styles$s.root
1044
1044
  }, published);
1045
1045
  };
1046
1046
 
@@ -1100,7 +1100,7 @@ const DangerousHTML = ({
1100
1100
  }));
1101
1101
  };
1102
1102
 
1103
- var styles$q = {"root":"EmbedBlock-module_root__wNZlD","object":"EmbedBlock-module_object__DONQ0","objectWrap":"EmbedBlock-module_objectWrap__qpbni","gameEmbed":"EmbedBlock-module_gameEmbed__tO5Ha","proportional":"EmbedBlock-module_proportional__zDPfm","default":"EmbedBlock-module_default__np8MO","xs":"EmbedBlock-module_xs__PNHGz","full":"EmbedBlock-module_full__Gmz7o","super_full":"EmbedBlock-module_super_full__-h382","figure":"EmbedBlock-module_figure__fNZB-","dark":"EmbedBlock-module_dark__S2R9f","isInGroupedBlock":"EmbedBlock-module_isInGroupedBlock__Wjj7k","control":"EmbedBlock-module_control__9bJUa","raw_html":"EmbedBlock-module_raw_html__EfYVy","mobileFullwidth":"EmbedBlock-module_mobileFullwidth__1MDT5","isInCard":"EmbedBlock-module_isInCard__WnLHG","isInSlide":"EmbedBlock-module_isInSlide__BtdnY","cc":"EmbedBlock-module_cc__Gyw44","isInSensitiveBlock":"EmbedBlock-module_isInSensitiveBlock__nYajZ","isInAnswer":"EmbedBlock-module_isInAnswer__WuZ0H","picture":"EmbedBlock-module_picture__Weamy","wrapper":"EmbedBlock-module_wrapper__ynT7R","mobile":"EmbedBlock-module_mobile__lEuww","desktop":"EmbedBlock-module_desktop__599S7"};
1103
+ var styles$r = {"root":"EmbedBlock-module_root__wNZlD","object":"EmbedBlock-module_object__DONQ0","objectWrap":"EmbedBlock-module_objectWrap__qpbni","gameEmbed":"EmbedBlock-module_gameEmbed__tO5Ha","proportional":"EmbedBlock-module_proportional__zDPfm","default":"EmbedBlock-module_default__np8MO","xs":"EmbedBlock-module_xs__PNHGz","full":"EmbedBlock-module_full__Gmz7o","super_full":"EmbedBlock-module_super_full__-h382","figure":"EmbedBlock-module_figure__fNZB-","dark":"EmbedBlock-module_dark__S2R9f","isInGroupedBlock":"EmbedBlock-module_isInGroupedBlock__Wjj7k","control":"EmbedBlock-module_control__9bJUa","raw_html":"EmbedBlock-module_raw_html__EfYVy","mobileFullwidth":"EmbedBlock-module_mobileFullwidth__1MDT5","isInCard":"EmbedBlock-module_isInCard__WnLHG","isInSlide":"EmbedBlock-module_isInSlide__BtdnY","cc":"EmbedBlock-module_cc__Gyw44","isInSensitiveBlock":"EmbedBlock-module_isInSensitiveBlock__nYajZ","isInAnswer":"EmbedBlock-module_isInAnswer__WuZ0H","picture":"EmbedBlock-module_picture__Weamy","wrapper":"EmbedBlock-module_wrapper__ynT7R","isProportional":"EmbedBlock-module_isProportional__x8-8g","mobile":"EmbedBlock-module_mobile__lEuww","desktop":"EmbedBlock-module_desktop__599S7"};
1104
1104
 
1105
1105
  const EmbedGif = ({
1106
1106
  gif,
@@ -1138,9 +1138,9 @@ const EmbedGif = ({
1138
1138
  };
1139
1139
  }, []);
1140
1140
  return /*#__PURE__*/React.createElement("div", {
1141
- className: styles$q.figure
1141
+ className: styles$r.figure
1142
1142
  }, /*#__PURE__*/React.createElement("div", {
1143
- className: styles$q.objectWrap,
1143
+ className: styles$r.objectWrap,
1144
1144
  style: style,
1145
1145
  "data-frozen": videoFrozen
1146
1146
  }, /*#__PURE__*/React.createElement("video", {
@@ -1200,7 +1200,7 @@ const EmbedBlock = ({
1200
1200
  case 'image':
1201
1201
  {
1202
1202
  return /*#__PURE__*/React.createElement("div", {
1203
- className: styles$q.figure
1203
+ className: styles$r.figure
1204
1204
  }, /*#__PURE__*/React.createElement(Image, {
1205
1205
  source: !optimized && [small, large],
1206
1206
  optimized: block.data.optimized,
@@ -1215,7 +1215,7 @@ const EmbedBlock = ({
1215
1215
  case 'game_embed':
1216
1216
  {
1217
1217
  return /*#__PURE__*/React.createElement("div", {
1218
- className: styles$q.gameEmbed
1218
+ className: styles$r.gameEmbed
1219
1219
  }, /*#__PURE__*/React.createElement("iframe", {
1220
1220
  src: block.data.game_src,
1221
1221
  id: block.data.game_id,
@@ -1225,7 +1225,7 @@ const EmbedBlock = ({
1225
1225
  case 'dots_on_image':
1226
1226
  {
1227
1227
  return /*#__PURE__*/React.createElement("div", {
1228
- className: styles$q.figure
1228
+ className: styles$r.figure
1229
1229
  }, /*#__PURE__*/React.createElement(DotsOnImage, {
1230
1230
  block: data
1231
1231
  }));
@@ -1233,43 +1233,42 @@ const EmbedBlock = ({
1233
1233
  default:
1234
1234
  {
1235
1235
  return /*#__PURE__*/React.createElement("div", {
1236
- className: styles$q.object
1236
+ className: styles$r.object
1237
1237
  }, /*#__PURE__*/React.createElement("div", {
1238
- className: styles$q.wrapper,
1238
+ className: makeClassName([[styles$r.wrapper, true], [styles$r.isProportional, isProportional]]),
1239
1239
  style: style
1240
1240
  }, /*#__PURE__*/React.createElement(DangerousHTML, {
1241
- className: styles$q.objectWrap,
1241
+ className: styles$r.objectWrap,
1242
1242
  html: html
1243
1243
  })));
1244
1244
  }
1245
1245
  }
1246
1246
  };
1247
1247
  if (isProportional) {
1248
- style.paddingBottom = `${block.data.height / block.data.width * 100}%`;
1249
- style.height = 0;
1248
+ style.aspectRatio = `${block.data.width} / ${block.data.height}`;
1250
1249
  }
1251
- let classNames = [[styles$q.root, true], [styles$q.cc, cc], [styles$q[display], !!display && styles$q[display]], [styles$q[provider], !!provider && !!styles$q[provider]], [styles$q[onlyOn], !!onlyOn && styles$q[onlyOn]], [styles$q.mobileFullwidth, mobileFullwidth], [styles$q.proportional, isProportional]];
1250
+ let classNames = [[styles$r.root, true], [styles$r.cc, cc], [styles$r[display], !!display && styles$r[display]], [styles$r[provider], !!provider && !!styles$r[provider]], [styles$r[onlyOn], !!onlyOn && styles$r[onlyOn]], [styles$r.mobileFullwidth, mobileFullwidth], [styles$r.proportional, isProportional]];
1252
1251
  // Убираем из контекста все, что не начинается с приставки isIn,
1253
1252
  // чтобы не применились лишние модификаторы
1254
1253
  // TODO: в w6 модификаторы должны передаваться явно
1255
1254
  if (styleContext && Array.isArray(styleContext)) {
1256
- const filteredContext = styleContext.filter(key => key.startsWith('isIn') && styles$q[key]).reduce((acc, key) => {
1255
+ const filteredContext = styleContext.filter(key => key.startsWith('isIn') && styles$r[key]).reduce((acc, key) => {
1257
1256
  acc.push(key);
1258
1257
  return acc;
1259
1258
  }, []);
1260
- classNames = makeStyleContext(classNames, filteredContext, styles$q);
1259
+ classNames = makeStyleContext(classNames, filteredContext, styles$r);
1261
1260
  }
1262
1261
  return /*#__PURE__*/React.createElement("figure", {
1263
1262
  className: makeClassName(classNames)
1264
1263
  }, children && ( /*#__PURE__*/React.createElement("div", {
1265
- className: styles$q.object
1264
+ className: styles$r.object
1266
1265
  }, /*#__PURE__*/React.createElement("div", {
1267
- className: styles$q.wrapper,
1266
+ className: makeClassName([[styles$r.wrapper, true], [styles$r.isProportional, isProportional]]),
1268
1267
  style: style
1269
1268
  }, /*#__PURE__*/React.createElement("div", {
1270
- className: styles$q.objectWrap
1269
+ className: styles$r.objectWrap
1271
1270
  }, children)))), !children && renderEmbed(style), cc === 'default' && /*#__PURE__*/React.createElement("figcaption", null, renderCC()), cc === 'button' && ( /*#__PURE__*/React.createElement("button", {
1272
- className: styles$q.control,
1271
+ className: styles$r.control,
1273
1272
  type: "button",
1274
1273
  "aria-label": "Open",
1275
1274
  onClick: () => {
@@ -1372,7 +1371,7 @@ const EmbedBlockContainer = ({
1372
1371
  });
1373
1372
  };
1374
1373
 
1375
- var styles$p = {"root":"QuoteBlock-module_root__4qa1J","center":"QuoteBlock-module_center__1f83y"};
1374
+ var styles$q = {"root":"QuoteBlock-module_root__4qa1J","center":"QuoteBlock-module_center__1f83y"};
1376
1375
 
1377
1376
  const QuoteBlock = ({
1378
1377
  block: {
@@ -1380,9 +1379,9 @@ const QuoteBlock = ({
1380
1379
  },
1381
1380
  styleContext
1382
1381
  }) => {
1383
- let classNames = [[styles$p.root, true]];
1382
+ let classNames = [[styles$q.root, true]];
1384
1383
  if (styleContext) {
1385
- classNames = makeStyleContext(classNames, styleContext, styles$p);
1384
+ classNames = makeStyleContext(classNames, styleContext, styles$q);
1386
1385
  }
1387
1386
  return /*#__PURE__*/React.createElement("div", {
1388
1387
  "data-testid": "quote-block",
@@ -1394,7 +1393,7 @@ const QuoteBlock = ({
1394
1393
  }));
1395
1394
  };
1396
1395
 
1397
- var styles$o = {"root":"CardTitle-module_root__Pvx--","index":"CardTitle-module_index__Keled","title":"CardTitle-module_title__Lkflo","mobile":"CardTitle-module_mobile__6N3hB","desktop":"CardTitle-module_desktop__sBokS"};
1396
+ var styles$p = {"root":"CardTitle-module_root__Pvx--","index":"CardTitle-module_index__Keled","title":"CardTitle-module_title__Lkflo","mobile":"CardTitle-module_mobile__6N3hB","desktop":"CardTitle-module_desktop__sBokS"};
1398
1397
 
1399
1398
  const CardTitle = ({
1400
1399
  block: {
@@ -1410,15 +1409,15 @@ const CardTitle = ({
1410
1409
  return /*#__PURE__*/React.createElement("div", {
1411
1410
  "data-testid": "card-title",
1412
1411
  id: id,
1413
- className: makeClassName([[styles$o.root, true], [styles$o[onlyOn], !!onlyOn], [styles$o[styleContext], !!styleContext && !!styles$o[styleContext]]])
1412
+ className: makeClassName([[styles$p.root, true], [styles$p[onlyOn], !!onlyOn], [styles$p[styleContext], !!styleContext && !!styles$p[styleContext]]])
1414
1413
  }, /*#__PURE__*/React.createElement("div", {
1415
- className: styles$o.index
1414
+ className: styles$p.index
1416
1415
  }, index), /*#__PURE__*/React.createElement("h3", {
1417
- className: styles$o.title
1416
+ className: styles$p.title
1418
1417
  }, text));
1419
1418
  };
1420
1419
 
1421
- var styles$n = {"root":"ChapterBlock-module_root__iw7d2","subtitle":"ChapterBlock-module_subtitle__IpWgz","mobile":"ChapterBlock-module_mobile__V1Eye","desktop":"ChapterBlock-module_desktop__9xWf4"};
1420
+ var styles$o = {"root":"ChapterBlock-module_root__iw7d2","subtitle":"ChapterBlock-module_subtitle__IpWgz","mobile":"ChapterBlock-module_mobile__V1Eye","desktop":"ChapterBlock-module_desktop__9xWf4"};
1422
1421
 
1423
1422
  const ChapterBlock = ({
1424
1423
  block: {
@@ -1431,9 +1430,9 @@ const ChapterBlock = ({
1431
1430
  return /*#__PURE__*/React.createElement("div", {
1432
1431
  "data-testid": "chapter-block",
1433
1432
  id: id,
1434
- className: makeClassName([[styles$n.root, true], [styles$n[onlyOn], !!onlyOn]])
1433
+ className: makeClassName([[styles$o.root, true], [styles$o[onlyOn], !!onlyOn]])
1435
1434
  }, /*#__PURE__*/React.createElement("div", {
1436
- className: makeClassName([[styles$n.subtitle, true], [styles$n[styleContext], !!styleContext && !!styles$n[styleContext]]]),
1435
+ className: makeClassName([[styles$o.subtitle, true], [styles$o[styleContext], !!styleContext && !!styles$o[styleContext]]]),
1437
1436
  dangerouslySetInnerHTML: {
1438
1437
  __html: data
1439
1438
  }
@@ -1449,7 +1448,7 @@ const generateGradient = (color, type) => {
1449
1448
  return `linear-gradient(-180deg, ${gradient})`;
1450
1449
  };
1451
1450
 
1452
- var styles$m = {"root":"SimpleTitle-module_root__YOzNn","mobile":"SimpleTitle-module_mobile__1QiJd","desktop":"SimpleTitle-module_desktop__ZF5Af"};
1451
+ var styles$n = {"root":"SimpleTitle-module_root__YOzNn","mobile":"SimpleTitle-module_mobile__1QiJd","desktop":"SimpleTitle-module_desktop__ZF5Af"};
1453
1452
 
1454
1453
  const SimpleTitle = ({
1455
1454
  block: {
@@ -1460,9 +1459,9 @@ const SimpleTitle = ({
1460
1459
  },
1461
1460
  styleContext
1462
1461
  }) => {
1463
- let classNames = [[styles$m.root, true], [styles$m[onlyOn], true]];
1462
+ let classNames = [[styles$n.root, true], [styles$n[onlyOn], true]];
1464
1463
  if (styleContext) {
1465
- classNames = makeStyleContext(classNames, styleContext, styles$m);
1464
+ classNames = makeStyleContext(classNames, styleContext, styles$n);
1466
1465
  }
1467
1466
  return /*#__PURE__*/React.createElement("h1", {
1468
1467
  "data-testid": "simple-title",
@@ -1470,7 +1469,7 @@ const SimpleTitle = ({
1470
1469
  }, first);
1471
1470
  };
1472
1471
 
1473
- var styles$l = {"root":"RichTitle-module_root__U5XQu","slide":"RichTitle-module_slide__eU9Ob","game":"RichTitle-module_game__S1csb","podcastMaterial":"RichTitle-module_podcastMaterial__AulVF","half":"RichTitle-module_half__yBMby","featured":"RichTitle-module_featured__ULNQn","isInMediaBlock":"RichTitle-module_isInMediaBlock__2h6rl","isInBookRelated":"RichTitle-module_isInBookRelated__LcCPV","isInDynamicBlock":"RichTitle-module_isInDynamicBlock__J-gM6","episodeInMaterial":"RichTitle-module_episodeInMaterial__pp-Wt","episodeInEmbed":"RichTitle-module_episodeInEmbed__gJpJL","isInPodcastPlayer":"RichTitle-module_isInPodcastPlayer__kvEPH","mobile":"RichTitle-module_mobile__W5L9E","desktop":"RichTitle-module_desktop__k0PkC"};
1472
+ var styles$m = {"root":"RichTitle-module_root__U5XQu","slide":"RichTitle-module_slide__eU9Ob","game":"RichTitle-module_game__S1csb","podcastMaterial":"RichTitle-module_podcastMaterial__AulVF","half":"RichTitle-module_half__yBMby","featured":"RichTitle-module_featured__ULNQn","isInMediaBlock":"RichTitle-module_isInMediaBlock__2h6rl","isInBookRelated":"RichTitle-module_isInBookRelated__LcCPV","isInDynamicBlock":"RichTitle-module_isInDynamicBlock__J-gM6","episodeInMaterial":"RichTitle-module_episodeInMaterial__pp-Wt","episodeInEmbed":"RichTitle-module_episodeInEmbed__gJpJL","isInPodcastPlayer":"RichTitle-module_isInPodcastPlayer__kvEPH","mobile":"RichTitle-module_mobile__W5L9E","desktop":"RichTitle-module_desktop__k0PkC"};
1474
1473
 
1475
1474
  const RichTitle = ({
1476
1475
  block: {
@@ -1485,9 +1484,9 @@ const RichTitle = ({
1485
1484
  styleContext,
1486
1485
  type
1487
1486
  }) => {
1488
- let classNames = [[styles$l.root, true], [styles$l[onlyOn], true], [styles$l.featured, !!featured], [styles$l.episodeInMaterial, type === 'isInMaterial'], [styles$l.episodeInEmbed, type === 'isEmbeded']];
1487
+ let classNames = [[styles$m.root, true], [styles$m[onlyOn], true], [styles$m.featured, !!featured], [styles$m.episodeInMaterial, type === 'isInMaterial'], [styles$m.episodeInEmbed, type === 'isEmbeded']];
1489
1488
  if (styleContext) {
1490
- classNames = makeStyleContext(classNames, styleContext, styles$l);
1489
+ classNames = makeStyleContext(classNames, styleContext, styles$m);
1491
1490
  }
1492
1491
  return /*#__PURE__*/React.createElement(TagName, {
1493
1492
  "data-testid": "rich-title",
@@ -1495,7 +1494,7 @@ const RichTitle = ({
1495
1494
  }, first, second && /*#__PURE__*/React.createElement("span", null, " ", second));
1496
1495
  };
1497
1496
 
1498
- var styles$k = {"p":"SimpleBlock-module_p__7aRnT","h2":"SimpleBlock-module_h2__aWlMn","h3":"SimpleBlock-module_h3__uPh0-","h4":"SimpleBlock-module_h4__MxGXA","lead":"SimpleBlock-module_lead__NzEPT","lead_hr":"SimpleBlock-module_lead_hr__XN0rm","context_p":"SimpleBlock-module_context_p__Mdu1R","blockquote":"SimpleBlock-module_blockquote__nX-Ab","game":"SimpleBlock-module_game__uVeJJ","slide":"SimpleBlock-module_slide__MaaUF","dark":"SimpleBlock-module_dark__qtLhq","divider":"SimpleBlock-module_divider__-VXBu","isInIntro":"SimpleBlock-module_isInIntro__UOePf","center":"SimpleBlock-module_center__D1CsV","isInImportantLead":"SimpleBlock-module_isInImportantLead__qzKDo","podcastMaterial":"SimpleBlock-module_podcastMaterial__XEMjh","isInAnswer":"SimpleBlock-module_isInAnswer__Asx7d","mobile":"SimpleBlock-module_mobile__EVGYJ","desktop":"SimpleBlock-module_desktop__6ZH5e","isDark":"SimpleBlock-module_isDark__ehYKr"};
1497
+ var styles$l = {"p":"SimpleBlock-module_p__7aRnT","h2":"SimpleBlock-module_h2__aWlMn","h3":"SimpleBlock-module_h3__uPh0-","h4":"SimpleBlock-module_h4__MxGXA","lead":"SimpleBlock-module_lead__NzEPT","lead_hr":"SimpleBlock-module_lead_hr__XN0rm","context_p":"SimpleBlock-module_context_p__Mdu1R","blockquote":"SimpleBlock-module_blockquote__nX-Ab","game":"SimpleBlock-module_game__uVeJJ","slide":"SimpleBlock-module_slide__MaaUF","dark":"SimpleBlock-module_dark__qtLhq","divider":"SimpleBlock-module_divider__-VXBu","isInIntro":"SimpleBlock-module_isInIntro__UOePf","center":"SimpleBlock-module_center__D1CsV","isInImportantLead":"SimpleBlock-module_isInImportantLead__qzKDo","podcastMaterial":"SimpleBlock-module_podcastMaterial__XEMjh","isInAnswer":"SimpleBlock-module_isInAnswer__Asx7d","mobile":"SimpleBlock-module_mobile__EVGYJ","desktop":"SimpleBlock-module_desktop__6ZH5e","isDark":"SimpleBlock-module_isDark__ehYKr"};
1499
1498
 
1500
1499
  const SimpleBlock = ({
1501
1500
  block: {
@@ -1507,9 +1506,9 @@ const SimpleBlock = ({
1507
1506
  id = null
1508
1507
  }) => {
1509
1508
  let TagName;
1510
- let classNames = [[styles$k[type], !!type && !!styles$k[type]], [styles$k[onlyOn], true]];
1509
+ let classNames = [[styles$l[type], !!type && !!styles$l[type]], [styles$l[onlyOn], true]];
1511
1510
  if (styleContext) {
1512
- classNames = makeStyleContext(classNames, styleContext, styles$k);
1511
+ classNames = makeStyleContext(classNames, styleContext, styles$l);
1513
1512
  }
1514
1513
  switch (type) {
1515
1514
  case 'context_p':
@@ -1541,7 +1540,7 @@ const SimpleBlock = ({
1541
1540
  });
1542
1541
  };
1543
1542
 
1544
- var styles$j = {"root":"ListBlock-module_root__dqomP","ol":"ListBlock-module_ol__1l6nP","ul":"ListBlock-module_ul__bgHlv","center":"ListBlock-module_center__bEBN-","isInImportantLead":"ListBlock-module_isInImportantLead__ewcD1","dark":"ListBlock-module_dark__NzpYz","mobile":"ListBlock-module_mobile__qEBsn","desktop":"ListBlock-module_desktop__HN0IU"};
1543
+ var styles$k = {"root":"ListBlock-module_root__dqomP","ol":"ListBlock-module_ol__1l6nP","ul":"ListBlock-module_ul__bgHlv","center":"ListBlock-module_center__bEBN-","isInImportantLead":"ListBlock-module_isInImportantLead__ewcD1","dark":"ListBlock-module_dark__NzpYz","mobile":"ListBlock-module_mobile__qEBsn","desktop":"ListBlock-module_desktop__HN0IU"};
1545
1544
 
1546
1545
  const ListBlock = ({
1547
1546
  block: {
@@ -1552,9 +1551,9 @@ const ListBlock = ({
1552
1551
  styleContext
1553
1552
  }) => {
1554
1553
  const TagName = type;
1555
- let classNames = [[styles$j.root, true], [styles$j[onlyOn], true], [styles$j[type], !!type && !!styles$j[type]]];
1554
+ let classNames = [[styles$k.root, true], [styles$k[onlyOn], true], [styles$k[type], !!type && !!styles$k[type]]];
1556
1555
  if (styleContext) {
1557
- classNames = makeStyleContext(classNames, styleContext, styles$j);
1556
+ classNames = makeStyleContext(classNames, styleContext, styles$k);
1558
1557
  }
1559
1558
  return /*#__PURE__*/React.createElement(TagName, {
1560
1559
  className: makeClassName(classNames),
@@ -1567,7 +1566,7 @@ const ListBlock = ({
1567
1566
  }))));
1568
1567
  };
1569
1568
 
1570
- var styles$i = {"root":"RelatedBlock-module_root__cr1c-","header":"RelatedBlock-module_header__bfUJD","items":"RelatedBlock-module_items__rzzam","rich":"RelatedBlock-module_rich__1cWdn","first":"RelatedBlock-module_first__ZkcP5","simple":"RelatedBlock-module_simple__m22bj","center":"RelatedBlock-module_center__WVpIJ","isInSlideMaterial":"RelatedBlock-module_isInSlideMaterial__VumDw","mobile":"RelatedBlock-module_mobile__AScBA","desktop":"RelatedBlock-module_desktop__uMXUY"};
1569
+ var styles$j = {"root":"RelatedBlock-module_root__cr1c-","header":"RelatedBlock-module_header__bfUJD","items":"RelatedBlock-module_items__rzzam","rich":"RelatedBlock-module_rich__1cWdn","first":"RelatedBlock-module_first__ZkcP5","simple":"RelatedBlock-module_simple__m22bj","center":"RelatedBlock-module_center__WVpIJ","isInSlideMaterial":"RelatedBlock-module_isInSlideMaterial__VumDw","mobile":"RelatedBlock-module_mobile__AScBA","desktop":"RelatedBlock-module_desktop__uMXUY"};
1571
1570
 
1572
1571
  const RelatedBlock = ({
1573
1572
  block: {
@@ -1579,28 +1578,28 @@ const RelatedBlock = ({
1579
1578
  },
1580
1579
  styleContext
1581
1580
  }) => {
1582
- let classNames = [[styles$i.root, true], [styles$i[onlyOn], true]];
1581
+ let classNames = [[styles$j.root, true], [styles$j[onlyOn], true]];
1583
1582
  if (styleContext) {
1584
- classNames = makeStyleContext(classNames, styleContext, styles$i);
1583
+ classNames = makeStyleContext(classNames, styleContext, styles$j);
1585
1584
  }
1586
1585
  return /*#__PURE__*/React.createElement("div", {
1587
1586
  "data-testid": "related-block",
1588
1587
  className: makeClassName(classNames)
1589
1588
  }, /*#__PURE__*/React.createElement("h3", {
1590
- className: styles$i.header
1589
+ className: styles$j.header
1591
1590
  }, title), /*#__PURE__*/React.createElement("ul", {
1592
- className: styles$i.items
1591
+ className: styles$j.items
1593
1592
  }, related.map((item, index) => ( /*#__PURE__*/React.createElement("li", {
1594
1593
  key: item.id || index,
1595
- className: styles$i[item.layout]
1594
+ className: styles$j[item.layout]
1596
1595
  }, /*#__PURE__*/React.createElement(Link, {
1597
1596
  to: item.full_url || `/${item.url}`
1598
1597
  }, /*#__PURE__*/React.createElement("span", {
1599
- className: styles$i.first
1598
+ className: styles$j.first
1600
1599
  }, item.title), item.second_title && ' ', item.second_title && /*#__PURE__*/React.createElement("span", null, item.second_title)))))));
1601
1600
  };
1602
1601
 
1603
- var styles$h = {"root":"SourceBlock-module_root__9dnI4","text":"SourceBlock-module_text__M5-uy","origin":"SourceBlock-module_origin__fyvxH","center":"SourceBlock-module_center__UOMwy","mobile":"SourceBlock-module_mobile__QVEyg","desktop":"SourceBlock-module_desktop__xdXWm","isDark":"SourceBlock-module_isDark__etwk1"};
1602
+ var styles$i = {"root":"SourceBlock-module_root__9dnI4","text":"SourceBlock-module_text__M5-uy","origin":"SourceBlock-module_origin__fyvxH","center":"SourceBlock-module_center__UOMwy","mobile":"SourceBlock-module_mobile__QVEyg","desktop":"SourceBlock-module_desktop__xdXWm","isDark":"SourceBlock-module_isDark__etwk1"};
1604
1603
 
1605
1604
  const SourceBlock = ({
1606
1605
  block: {
@@ -1613,16 +1612,16 @@ const SourceBlock = ({
1613
1612
  },
1614
1613
  styleContext
1615
1614
  }) => {
1616
- let classNames = [[styles$h.root, true], [styles$h[onlyOn], true]];
1615
+ let classNames = [[styles$i.root, true], [styles$i[onlyOn], true]];
1617
1616
  if (styleContext) {
1618
- classNames = makeStyleContext(classNames, styleContext, styles$h);
1617
+ classNames = makeStyleContext(classNames, styleContext, styles$i);
1619
1618
  }
1620
1619
  return /*#__PURE__*/React.createElement("blockquote", {
1621
1620
  "data-testid": "source-block",
1622
1621
  cite: url,
1623
1622
  className: makeClassName(classNames)
1624
1623
  }, /*#__PURE__*/React.createElement("a", {
1625
- className: styles$h.text,
1624
+ className: styles$i.text,
1626
1625
  href: url,
1627
1626
  target: "_blank",
1628
1627
  rel: "noopener noreferrer"
@@ -1632,11 +1631,11 @@ const SourceBlock = ({
1632
1631
  __html: item.data
1633
1632
  }
1634
1633
  }))), /*#__PURE__*/React.createElement("footer", null, /*#__PURE__*/React.createElement("cite", {
1635
- className: styles$h.origin
1634
+ className: styles$i.origin
1636
1635
  }, origin))));
1637
1636
  };
1638
1637
 
1639
- var styles$g = {"root":"SensitiveBlock-module_root__1Nl9-","container":"SensitiveBlock-module_container__GE2tW","overlay":"SensitiveBlock-module_overlay__tEsK8","content":"SensitiveBlock-module_content__RYbdd","button":"SensitiveBlock-module_button__LGEEM","default":"SensitiveBlock-module_default__pkWhC","full":"SensitiveBlock-module_full__hlH41","media":"SensitiveBlock-module_media__nuL1S","super_full":"SensitiveBlock-module_super_full__C7UyP","visible":"SensitiveBlock-module_visible__bXhYO","isInCard":"SensitiveBlock-module_isInCard__uANYL","isInSlide":"SensitiveBlock-module_isInSlide__ZAVUU"};
1638
+ var styles$h = {"root":"SensitiveBlock-module_root__1Nl9-","container":"SensitiveBlock-module_container__GE2tW","overlay":"SensitiveBlock-module_overlay__tEsK8","content":"SensitiveBlock-module_content__RYbdd","button":"SensitiveBlock-module_button__LGEEM","default":"SensitiveBlock-module_default__pkWhC","full":"SensitiveBlock-module_full__hlH41","media":"SensitiveBlock-module_media__nuL1S","super_full":"SensitiveBlock-module_super_full__C7UyP","visible":"SensitiveBlock-module_visible__bXhYO","isInCard":"SensitiveBlock-module_isInCard__uANYL","isInSlide":"SensitiveBlock-module_isInSlide__ZAVUU"};
1640
1639
 
1641
1640
  const SensitiveBlock = ({
1642
1641
  block,
@@ -1659,40 +1658,40 @@ const SensitiveBlock = ({
1659
1658
  const handleClick = () => {
1660
1659
  isVisible(true);
1661
1660
  };
1662
- let classNames = [[styles$g.root, true], [styles$g.visible, visible], [styles$g[display], display && styles$g[display]]];
1661
+ let classNames = [[styles$h.root, true], [styles$h.visible, visible], [styles$h[display], display && styles$h[display]]];
1663
1662
  let context = ['isInSensitiveBlock'];
1664
1663
  if (styleContext) {
1665
- classNames = makeStyleContext(classNames, styleContext, styles$g);
1664
+ classNames = makeStyleContext(classNames, styleContext, styles$h);
1666
1665
  context = [...styleContext, 'isInSensitiveBlock'];
1667
1666
  }
1668
1667
  return /*#__PURE__*/React.createElement("div", {
1669
1668
  "data-testid": "sensitive-block",
1670
1669
  className: makeClassName(classNames)
1671
1670
  }, /*#__PURE__*/React.createElement("div", {
1672
- className: styles$g.container
1671
+ className: styles$h.container
1673
1672
  }, /*#__PURE__*/React.createElement("div", {
1674
- className: styles$g.overlay,
1673
+ className: styles$h.overlay,
1675
1674
  style: {
1676
1675
  backgroundImage: `url(${blurredImage})`
1677
1676
  }
1678
1677
  }, /*#__PURE__*/React.createElement("div", {
1679
- className: styles$g.content
1678
+ className: styles$h.content
1680
1679
  }, /*#__PURE__*/React.createElement("p", {
1681
1680
  dangerouslySetInnerHTML: {
1682
1681
  __html: block.title
1683
1682
  }
1684
1683
  }), /*#__PURE__*/React.createElement("div", {
1685
- className: styles$g.button
1684
+ className: styles$h.button
1686
1685
  }, /*#__PURE__*/React.createElement(Button, {
1687
1686
  onClick: () => handleClick(),
1688
1687
  theme: "light"
1689
1688
  }, block.button.text)))), /*#__PURE__*/React.createElement("div", {
1690
- className: styles$g.media
1689
+ className: styles$h.media
1691
1690
  }, /*#__PURE__*/React.createElement(EmbedBlockContainer, {
1692
1691
  block: block.item,
1693
1692
  styleContext: context
1694
1693
  }))), cc && ( /*#__PURE__*/React.createElement("figcaption", {
1695
- className: styles$g.figcaption
1694
+ className: styles$h.figcaption
1696
1695
  }, /*#__PURE__*/React.createElement(MediaCaption, {
1697
1696
  credit: credit,
1698
1697
  caption: caption,
@@ -1700,7 +1699,7 @@ const SensitiveBlock = ({
1700
1699
  }))));
1701
1700
  };
1702
1701
 
1703
- var styles$f = {"root":"GroupedBlock-module_root__MQQin","hasFigcaption":"GroupedBlock-module_hasFigcaption__Y05ed","item":"GroupedBlock-module_item__-InqF","items":"GroupedBlock-module_items__8X4js","figcaption":"GroupedBlock-module_figcaption__OE5-u","default":"GroupedBlock-module_default__Tha8f","full":"GroupedBlock-module_full__SNwyE","super_full":"GroupedBlock-module_super_full__HTA9D","mobile":"GroupedBlock-module_mobile__xqMw5","desktop":"GroupedBlock-module_desktop__Oobdp"};
1702
+ var styles$g = {"root":"GroupedBlock-module_root__MQQin","hasFigcaption":"GroupedBlock-module_hasFigcaption__Y05ed","item":"GroupedBlock-module_item__-InqF","items":"GroupedBlock-module_items__8X4js","figcaption":"GroupedBlock-module_figcaption__OE5-u","default":"GroupedBlock-module_default__Tha8f","full":"GroupedBlock-module_full__SNwyE","super_full":"GroupedBlock-module_super_full__HTA9D","mobile":"GroupedBlock-module_mobile__xqMw5","desktop":"GroupedBlock-module_desktop__Oobdp"};
1704
1703
 
1705
1704
  const GroupedBlock = ({
1706
1705
  block,
@@ -1716,19 +1715,19 @@ const GroupedBlock = ({
1716
1715
  return width / (height / maxHeight);
1717
1716
  });
1718
1717
  const sumWidth = normalizedBoxesWidth.reduce((sum, x) => sum + x);
1719
- let classNames = [[styles$f.root, true], [styles$f[onlyOn], true], [styles$f.hasFigcaption, block.cc === 'default'], [styles$f[block.display], !!block.display && styles$f[block.display]]];
1718
+ let classNames = [[styles$g.root, true], [styles$g[onlyOn], true], [styles$g.hasFigcaption, block.cc === 'default'], [styles$g[block.display], !!block.display && styles$g[block.display]]];
1720
1719
  if (styleContext) {
1721
- classNames = makeStyleContext(classNames, styleContext, styles$f);
1720
+ classNames = makeStyleContext(classNames, styleContext, styles$g);
1722
1721
  }
1723
1722
  return /*#__PURE__*/React.createElement("div", {
1724
1723
  "data-testid": "grouped-block",
1725
1724
  className: makeClassName(classNames)
1726
1725
  }, /*#__PURE__*/React.createElement("div", {
1727
- className: styles$f.items
1726
+ className: styles$g.items
1728
1727
  }, block.data.map((item, index) => {
1729
1728
  const percentWidth = normalizedBoxesWidth[index] / sumWidth * 100;
1730
1729
  return /*#__PURE__*/React.createElement("div", {
1731
- className: styles$f.item,
1730
+ className: styles$g.item,
1732
1731
  key: item.id,
1733
1732
  style: {
1734
1733
  width: `${percentWidth}%`
@@ -1741,7 +1740,7 @@ const GroupedBlock = ({
1741
1740
  styleContext: ['isInGroupedBlock']
1742
1741
  })));
1743
1742
  })), block.cc && ( /*#__PURE__*/React.createElement("figcaption", {
1744
- className: styles$f.figcaption
1743
+ className: styles$g.figcaption
1745
1744
  }, /*#__PURE__*/React.createElement(MediaCaption, {
1746
1745
  credit: block.credit,
1747
1746
  caption: block.caption,
@@ -1749,7 +1748,7 @@ const GroupedBlock = ({
1749
1748
  }))));
1750
1749
  };
1751
1750
 
1752
- var styles$e = {"root":"MetaItem-module_root__sRbrZ","hasBullets":"MetaItem-module_hasBullets__b1eW9","hasSource":"MetaItem-module_hasSource__35olm","listened":"MetaItem-module_listened__XZWFQ","read":"MetaItem-module_read__O3cUz","datetime":"MetaItem-module_datetime__--O8c"};
1751
+ var styles$f = {"root":"MetaItem-module_root__sRbrZ","hasBullets":"MetaItem-module_hasBullets__b1eW9","hasSource":"MetaItem-module_hasSource__35olm","listened":"MetaItem-module_listened__XZWFQ","read":"MetaItem-module_read__O3cUz","datetime":"MetaItem-module_datetime__--O8c"};
1753
1752
 
1754
1753
  const MetaItem = ({
1755
1754
  hasSource,
@@ -1757,25 +1756,25 @@ const MetaItem = ({
1757
1756
  children,
1758
1757
  bullets
1759
1758
  }) => {
1760
- const classNames = [[styles$e.root, true], [styles$e[type], !!type && !!styles$e[type]], [styles$e.hasSource, !!hasSource], [styles$e.hasBullets, !!bullets]];
1759
+ const classNames = [[styles$f.root, true], [styles$f[type], !!type && !!styles$f[type]], [styles$f.hasSource, !!hasSource], [styles$f.hasBullets, !!bullets]];
1761
1760
  return /*#__PURE__*/React.createElement("div", {
1762
1761
  "data-testid": "meta-item",
1763
1762
  className: makeClassName(classNames)
1764
1763
  }, children);
1765
1764
  };
1766
1765
 
1767
- var styles$d = {"root":"MetaItemLive-module_root__XfQiW","gold":"MetaItemLive-module_gold__f1UOy","frame":"MetaItemLive-module_frame__FHByQ","liveMiddle":"MetaItemLive-module_liveMiddle__SX4Gs","liveFirstWave":"MetaItemLive-module_liveFirstWave__QqstP","liveSecondWave":"MetaItemLive-module_liveSecondWave__hlbpt"};
1766
+ var styles$e = {"root":"MetaItemLive-module_root__XfQiW","gold":"MetaItemLive-module_gold__f1UOy","frame":"MetaItemLive-module_frame__FHByQ","liveMiddle":"MetaItemLive-module_liveMiddle__SX4Gs","liveFirstWave":"MetaItemLive-module_liveFirstWave__QqstP","liveSecondWave":"MetaItemLive-module_liveSecondWave__hlbpt"};
1768
1767
 
1769
1768
  const MetaItemLive = ({
1770
1769
  theme = 'gold'
1771
1770
  }) => {
1772
- const classNames = [[styles$d.root, true], [styles$d[theme], !!theme && styles$d[theme]]];
1771
+ const classNames = [[styles$e.root, true], [styles$e[theme], !!theme && styles$e[theme]]];
1773
1772
  return /*#__PURE__*/React.createElement("div", {
1774
1773
  "data-testid": "meta-item-live",
1775
1774
  "data-meta": "live",
1776
1775
  className: makeClassName(classNames)
1777
1776
  }, /*#__PURE__*/React.createElement("div", {
1778
- className: styles$d.frame
1777
+ className: styles$e.frame
1779
1778
  }));
1780
1779
  };
1781
1780
 
@@ -1795,7 +1794,7 @@ const pluralize = (number, one, two, five) => {
1795
1794
  return five;
1796
1795
  };
1797
1796
 
1798
- var styles$c = {"root":"DocumentItemsCount-module_root__u4M3y","items":"DocumentItemsCount-module_items__OE-hf"};
1797
+ var styles$d = {"root":"DocumentItemsCount-module_root__u4M3y","items":"DocumentItemsCount-module_items__OE-hf"};
1799
1798
 
1800
1799
  const DocumentItemsCount = ({
1801
1800
  type,
@@ -1832,9 +1831,9 @@ const DocumentItemsCount = ({
1832
1831
  const itemsCount = `${items} ${pluralize(items, i18n[lang][type].one, i18n[lang][type].two, i18n[lang][type].five)}`;
1833
1832
  return /*#__PURE__*/React.createElement("div", {
1834
1833
  "data-testid": "document-items-count",
1835
- className: styles$c.root
1834
+ className: styles$d.root
1836
1835
  }, children, /*#__PURE__*/React.createElement("span", {
1837
- className: styles$c.items
1836
+ className: styles$d.items
1838
1837
  }, itemsCount));
1839
1838
  };
1840
1839
 
@@ -1852,7 +1851,6 @@ const MetaContainer = ({
1852
1851
  }
1853
1852
  },
1854
1853
  styleContext
1855
- // type
1856
1854
  }) => {
1857
1855
  const themeColor = styleContext && styleContext.indexOf('dark') !== -1 ? 'light' : 'unset';
1858
1856
  const isPodcast = styleContext && styleContext.indexOf('podcast') !== -1;
@@ -1864,145 +1862,118 @@ const MetaContainer = ({
1864
1862
  });
1865
1863
  }
1866
1864
  const hasSource = !!components.find(item => item.type === 'source_name');
1867
- // const classNames: ClassNames = [
1868
- // [
1869
- // styles.containerInDynamicBlock,
1870
- // styleContext === 'isInDynamicBlock' || styleContext.includes('episode')
1871
- // ],
1872
- // [
1873
- // styles.containerInDynamicBlockAndMaterial,
1874
- // styleContext === 'isInDynamicBlock' && type === 'isInMaterial'
1875
- // ]
1876
- // ]
1877
- return (
1878
- /*#__PURE__*/
1879
- // <div className={makeClassName(classNames)}>
1880
- React.createElement(Meta, {
1881
- styleContext: context,
1882
- theme: theme || themeColor,
1883
- onlyOn: block.only_on,
1884
- hasSource: hasSource
1885
- }, components.map(component => {
1886
- switch (component.type) {
1887
- case 'source_name':
1888
- {
1889
- return /*#__PURE__*/React.createElement(MetaItem, {
1890
- hasSource: hasSource,
1891
- bullets: true,
1892
- key: component.id
1893
- }, /*#__PURE__*/React.createElement(React.Fragment, null, lang === 'ru' ? 'Источник: ' : 'Source: ', component.url && ( /*#__PURE__*/React.createElement("a", {
1894
- href: component.url,
1895
- rel: "noopener noreferrer",
1896
- target: "_blank"
1897
- }, component.text)), !component.url && component.text));
1898
- }
1899
- case 'duration':
1900
- {
1901
- // if (styleContext === 'isInDynamicBlock') {
1902
- // return (
1903
- // <MetaItem hasSource={hasSource} bullets key={component.id}>
1904
- // {component.text}
1905
- // </MetaItem>
1906
- // )
1907
- // }
1908
- return /*#__PURE__*/React.createElement(MetaItem, {
1909
- hasSource: hasSource,
1910
- bullets: true,
1911
- key: component.id
1912
- }, /*#__PURE__*/React.createElement(React.Fragment, null, styleContext !== 'isInDynamicBlock' && ( /*#__PURE__*/React.createElement(SvgSymbol, {
1913
- icon: "podcast",
1914
- size: "small"
1915
- })), component.text));
1916
- }
1917
- case 'datetime':
1918
- {
1919
- const format = component.format && toCamel(component.format) || 'date';
1920
- return /*#__PURE__*/React.createElement(MetaItem, {
1921
- hasSource: hasSource,
1922
- bullets: true,
1923
- key: component.id,
1924
- type: "datetime"
1925
- }, /*#__PURE__*/React.createElement(Timestamp, {
1926
- publishedAt: component.datetime,
1927
- // type={
1928
- // styleContext === 'isInDynamicBlock'
1929
- // ? 'fromNow'
1930
- // : format || 'date'
1931
- // }
1932
- type: format || 'date',
1933
- locale: lang
1934
- }));
1935
- }
1936
- case 'items_count':
1937
- {
1938
- return /*#__PURE__*/React.createElement(MetaItem, {
1939
- hasSource: hasSource,
1940
- bullets: true,
1941
- key: component.id
1942
- }, /*#__PURE__*/React.createElement(DocumentItemsCount, {
1943
- items: component.count,
1944
- type: isPodcast ? 'podcast' : 'card',
1945
- lang: lang
1946
- }, /*#__PURE__*/React.createElement(SvgSymbol, {
1947
- icon: "card",
1948
- size: "unset"
1949
- })));
1950
- }
1951
- case 'broadcast_active':
1952
- {
1953
- return /*#__PURE__*/React.createElement(MetaItem, {
1954
- hasSource: hasSource,
1955
- bullets: true,
1956
- key: component.id
1957
- }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MetaItemLive, null), " \u041F\u0440\u044F\u043C\u043E\u0439 \u044D\u0444\u0438\u0440"));
1958
- }
1959
- case 'broadcast':
1960
- {
1961
- return /*#__PURE__*/React.createElement(MetaItem, {
1962
- hasSource: hasSource,
1963
- bullets: true,
1964
- key: component.id
1965
- }, /*#__PURE__*/React.createElement(React.Fragment, null, component.with_icon && /*#__PURE__*/React.createElement(MetaItemLive, null), component.label));
1966
- }
1967
- case 'string':
1968
- {
1969
- return /*#__PURE__*/React.createElement(MetaItem, {
1970
- hasSource: hasSource,
1971
- bullets: true,
1972
- key: component.id
1973
- }, component.text);
1974
- }
1975
- default:
1976
- {
1977
- return null;
1978
- }
1979
- }
1980
- }), (isRead || isListened) && ( /*#__PURE__*/React.createElement(MetaItem, {
1981
- hasSource: hasSource,
1982
- bullets: true,
1983
- type: isListened ? 'listened' : 'read'
1984
- }, /*#__PURE__*/React.createElement(SvgSymbol, {
1985
- icon: isListened ? 'listened' : 'read',
1986
- size: "unset"
1987
- }))), isSlides && lang === 'ru' && ( /*#__PURE__*/React.createElement("div", {
1988
- className: styles$s.bookmark
1989
- }, /*#__PURE__*/React.createElement(BookmarkButton, {
1990
- isInBookmarks: isInBookmarks,
1991
- onClick: () => bookmarkAction('bookmark', 'top')
1992
- }))))
1993
- // </div>
1994
- );
1995
- };
1996
-
1997
- var styles$b = {"root":"DonatesTeaser-module_root__XQCVy","main":"DonatesTeaser-module_main__eN9kd","title":"DonatesTeaser-module_title__9umo1","text":"DonatesTeaser-module_text__s6tyf","cta":"DonatesTeaser-module_cta__-50aB","center":"DonatesTeaser-module_center__gxLvW","isInCard":"DonatesTeaser-module_isInCard__vaUhd","isInSlide":"DonatesTeaser-module_isInSlide__Dh4NH","ru":"DonatesTeaser-module_ru__y-PlJ","en":"DonatesTeaser-module_en__0Iisr"};
1865
+ return /*#__PURE__*/React.createElement(Meta, {
1866
+ styleContext: context,
1867
+ theme: theme || themeColor,
1868
+ onlyOn: block.only_on,
1869
+ hasSource: hasSource
1870
+ }, components.map(component => {
1871
+ switch (component.type) {
1872
+ case 'source_name':
1873
+ {
1874
+ return /*#__PURE__*/React.createElement(MetaItem, {
1875
+ hasSource: hasSource,
1876
+ bullets: true,
1877
+ key: component.id
1878
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, lang === 'ru' ? 'Источник: ' : 'Source: ', component.url && ( /*#__PURE__*/React.createElement("a", {
1879
+ href: component.url,
1880
+ rel: "noopener noreferrer",
1881
+ target: "_blank"
1882
+ }, component.text)), !component.url && component.text));
1883
+ }
1884
+ case 'duration':
1885
+ {
1886
+ return /*#__PURE__*/React.createElement(MetaItem, {
1887
+ hasSource: hasSource,
1888
+ bullets: true,
1889
+ key: component.id
1890
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, styleContext !== 'isInDynamicBlock' && ( /*#__PURE__*/React.createElement(SvgSymbol, {
1891
+ icon: "podcast",
1892
+ size: "small"
1893
+ })), component.text));
1894
+ }
1895
+ case 'datetime':
1896
+ {
1897
+ const format = component.format && toCamel(component.format) || 'date';
1898
+ return /*#__PURE__*/React.createElement(MetaItem, {
1899
+ hasSource: hasSource,
1900
+ bullets: true,
1901
+ key: component.id,
1902
+ type: "datetime"
1903
+ }, /*#__PURE__*/React.createElement(Timestamp, {
1904
+ publishedAt: component.datetime,
1905
+ type: format || 'date',
1906
+ locale: lang
1907
+ }));
1908
+ }
1909
+ case 'items_count':
1910
+ {
1911
+ return /*#__PURE__*/React.createElement(MetaItem, {
1912
+ hasSource: hasSource,
1913
+ bullets: true,
1914
+ key: component.id
1915
+ }, /*#__PURE__*/React.createElement(DocumentItemsCount, {
1916
+ items: component.count,
1917
+ type: isPodcast ? 'podcast' : 'card',
1918
+ lang: lang
1919
+ }, /*#__PURE__*/React.createElement(SvgSymbol, {
1920
+ icon: "card",
1921
+ size: "unset"
1922
+ })));
1923
+ }
1924
+ case 'broadcast_active':
1925
+ {
1926
+ return /*#__PURE__*/React.createElement(MetaItem, {
1927
+ hasSource: hasSource,
1928
+ bullets: true,
1929
+ key: component.id
1930
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MetaItemLive, null), " \u041F\u0440\u044F\u043C\u043E\u0439 \u044D\u0444\u0438\u0440"));
1931
+ }
1932
+ case 'broadcast':
1933
+ {
1934
+ return /*#__PURE__*/React.createElement(MetaItem, {
1935
+ hasSource: hasSource,
1936
+ bullets: true,
1937
+ key: component.id
1938
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, component.with_icon && /*#__PURE__*/React.createElement(MetaItemLive, null), component.label));
1939
+ }
1940
+ case 'string':
1941
+ {
1942
+ return /*#__PURE__*/React.createElement(MetaItem, {
1943
+ hasSource: hasSource,
1944
+ bullets: true,
1945
+ key: component.id
1946
+ }, component.text);
1947
+ }
1948
+ default:
1949
+ {
1950
+ return null;
1951
+ }
1952
+ }
1953
+ }), (isRead || isListened) && ( /*#__PURE__*/React.createElement(MetaItem, {
1954
+ hasSource: hasSource,
1955
+ bullets: true,
1956
+ type: isListened ? 'listened' : 'read'
1957
+ }, /*#__PURE__*/React.createElement(SvgSymbol, {
1958
+ icon: isListened ? 'listened' : 'read',
1959
+ size: "unset"
1960
+ }))), isSlides && lang === 'ru' && ( /*#__PURE__*/React.createElement("div", {
1961
+ className: styles$t.bookmark
1962
+ }, /*#__PURE__*/React.createElement(BookmarkButton, {
1963
+ isInBookmarks: isInBookmarks,
1964
+ onClick: () => bookmarkAction('bookmark', 'top')
1965
+ }))));
1966
+ };
1967
+
1968
+ var styles$c = {"root":"DonatesTeaser-module_root__XQCVy","main":"DonatesTeaser-module_main__eN9kd","title":"DonatesTeaser-module_title__9umo1","text":"DonatesTeaser-module_text__s6tyf","cta":"DonatesTeaser-module_cta__-50aB","center":"DonatesTeaser-module_center__gxLvW","isInCard":"DonatesTeaser-module_isInCard__vaUhd","isInSlide":"DonatesTeaser-module_isInSlide__Dh4NH","ru":"DonatesTeaser-module_ru__y-PlJ","en":"DonatesTeaser-module_en__0Iisr"};
1998
1969
 
1999
1970
  const DonatesTeaser = ({
2000
1971
  styleContext,
2001
1972
  lang = 'ru'
2002
1973
  }) => {
2003
- let classNames = [[styles$b.root, true], [styles$b[lang], styles$b[lang]]];
1974
+ let classNames = [[styles$c.root, true], [styles$c[lang], styles$c[lang]]];
2004
1975
  if (styleContext) {
2005
- classNames = makeStyleContext(classNames, styleContext, styles$b);
1976
+ classNames = makeStyleContext(classNames, styleContext, styles$c);
2006
1977
  }
2007
1978
  const data = {
2008
1979
  ru: {
@@ -2022,20 +1993,20 @@ const DonatesTeaser = ({
2022
1993
  "data-testid": "donates-teaser",
2023
1994
  className: makeClassName(classNames)
2024
1995
  }, /*#__PURE__*/React.createElement("div", {
2025
- className: styles$b.main
1996
+ className: styles$c.main
2026
1997
  }, /*#__PURE__*/React.createElement("h3", {
2027
- className: styles$b.title
1998
+ className: styles$c.title
2028
1999
  }, /*#__PURE__*/React.createElement("span", {
2029
2000
  dangerouslySetInnerHTML: {
2030
2001
  __html: data[lang].title
2031
2002
  }
2032
2003
  }), ` `, /*#__PURE__*/React.createElement("span", {
2033
- className: styles$b.text,
2004
+ className: styles$c.text,
2034
2005
  dangerouslySetInnerHTML: {
2035
2006
  __html: data[lang].subtitle
2036
2007
  }
2037
2008
  }))), /*#__PURE__*/React.createElement("div", {
2038
- className: styles$b.cta
2009
+ className: styles$c.cta
2039
2010
  }, /*#__PURE__*/React.createElement("a", {
2040
2011
  href: data[lang].href,
2041
2012
  target: "_blank",
@@ -2043,15 +2014,15 @@ const DonatesTeaser = ({
2043
2014
  }, /*#__PURE__*/React.createElement("span", null, data[lang].button))));
2044
2015
  };
2045
2016
 
2046
- var styles$a = {"root":"AnnouncementInText-module_root__C4-Oo","body":"AnnouncementInText-module_body__lZy-L","title":"AnnouncementInText-module_title__cb6i1","footer":"AnnouncementInText-module_footer__jRk9p","button":"AnnouncementInText-module_button__JuT-E","link":"AnnouncementInText-module_link__C0YxL","center":"AnnouncementInText-module_center__1DJjd","isInCard":"AnnouncementInText-module_isInCard__jIqpa","isInSlide":"AnnouncementInText-module_isInSlide__BWO-A","ru":"AnnouncementInText-module_ru__QHQad","en":"AnnouncementInText-module_en__r0PvM"};
2017
+ var styles$b = {"root":"AnnouncementInText-module_root__C4-Oo","body":"AnnouncementInText-module_body__lZy-L","title":"AnnouncementInText-module_title__cb6i1","footer":"AnnouncementInText-module_footer__jRk9p","button":"AnnouncementInText-module_button__JuT-E","link":"AnnouncementInText-module_link__C0YxL","center":"AnnouncementInText-module_center__1DJjd","isInCard":"AnnouncementInText-module_isInCard__jIqpa","isInSlide":"AnnouncementInText-module_isInSlide__BWO-A","ru":"AnnouncementInText-module_ru__QHQad","en":"AnnouncementInText-module_en__r0PvM"};
2047
2018
 
2048
2019
  const AnnouncementInText = ({
2049
2020
  styleContext,
2050
2021
  lang = 'ru'
2051
2022
  }) => {
2052
- let classNames = [[styles$a.root, true], [styles$a[lang], styles$a[lang]]];
2023
+ let classNames = [[styles$b.root, true], [styles$b[lang], styles$b[lang]]];
2053
2024
  if (styleContext) {
2054
- classNames = makeStyleContext(classNames, styleContext, styles$a);
2025
+ classNames = makeStyleContext(classNames, styleContext, styles$b);
2055
2026
  }
2056
2027
  const data = {
2057
2028
  ru: {
@@ -2072,9 +2043,9 @@ const AnnouncementInText = ({
2072
2043
  "data-testid": "announcement-in-text",
2073
2044
  className: makeClassName(classNames)
2074
2045
  }, /*#__PURE__*/React.createElement("div", {
2075
- className: styles$a.body
2046
+ className: styles$b.body
2076
2047
  }, /*#__PURE__*/React.createElement("h3", {
2077
- className: styles$a.title,
2048
+ className: styles$b.title,
2078
2049
  dangerouslySetInnerHTML: {
2079
2050
  __html: localeData.title
2080
2051
  }
@@ -2083,18 +2054,18 @@ const AnnouncementInText = ({
2083
2054
  __html: localeData.text
2084
2055
  }
2085
2056
  })), /*#__PURE__*/React.createElement("div", {
2086
- className: styles$a.footer
2057
+ className: styles$b.footer
2087
2058
  }, /*#__PURE__*/React.createElement("a", {
2088
- className: styles$a.link,
2059
+ className: styles$b.link,
2089
2060
  href: localeData.href,
2090
2061
  target: "_blank",
2091
2062
  rel: "noreferrer"
2092
2063
  }, /*#__PURE__*/React.createElement("span", null, localeData.button)), /*#__PURE__*/React.createElement("span", {
2093
- className: styles$a.button
2064
+ className: styles$b.button
2094
2065
  }, /*#__PURE__*/React.createElement("span", null, localeData.button))));
2095
2066
  };
2096
2067
 
2097
- var styles$9 = {"root":"VersesBlock-module_root__CrgSZ","ol":"VersesBlock-module_ol__ToXjg","ul":"VersesBlock-module_ul__wfaQD","center":"VersesBlock-module_center__E1IS-","isInImportantLead":"VersesBlock-module_isInImportantLead__pdugk","dark":"VersesBlock-module_dark__FwaPS","mobile":"VersesBlock-module_mobile__EcHvz","desktop":"VersesBlock-module_desktop__quKfJ"};
2068
+ var styles$a = {"root":"VersesBlock-module_root__CrgSZ","ol":"VersesBlock-module_ol__ToXjg","ul":"VersesBlock-module_ul__wfaQD","center":"VersesBlock-module_center__E1IS-","isInImportantLead":"VersesBlock-module_isInImportantLead__pdugk","dark":"VersesBlock-module_dark__FwaPS","mobile":"VersesBlock-module_mobile__EcHvz","desktop":"VersesBlock-module_desktop__quKfJ"};
2098
2069
 
2099
2070
  const VersesBlock = ({
2100
2071
  block: {
@@ -2104,9 +2075,9 @@ const VersesBlock = ({
2104
2075
  },
2105
2076
  styleContext
2106
2077
  }) => {
2107
- let classNames = [[styles$9.root, true], [styles$9[onlyOn], true], [styles$9[type], !!type && !!styles$9[type]]];
2078
+ let classNames = [[styles$a.root, true], [styles$a[onlyOn], true], [styles$a[type], !!type && !!styles$a[type]]];
2108
2079
  if (styleContext) {
2109
- classNames = makeStyleContext(classNames, styleContext, styles$9);
2080
+ classNames = makeStyleContext(classNames, styleContext, styles$a);
2110
2081
  }
2111
2082
  return /*#__PURE__*/React.createElement("ul", {
2112
2083
  className: makeClassName(classNames),
@@ -2126,8 +2097,7 @@ const RenderBlocks = ({
2126
2097
  isRead,
2127
2098
  isListened,
2128
2099
  bookmarkAction,
2129
- isInBookmarks,
2130
- type = 'default'
2100
+ isInBookmarks
2131
2101
  }) => {
2132
2102
  switch (block.type) {
2133
2103
  case 'tag':
@@ -2162,8 +2132,7 @@ const RenderBlocks = ({
2162
2132
  isRead: isRead,
2163
2133
  isListened: isListened,
2164
2134
  isInBookmarks: isInBookmarks,
2165
- bookmarkAction: bookmarkAction,
2166
- type: type
2135
+ bookmarkAction: bookmarkAction
2167
2136
  });
2168
2137
  }
2169
2138
  case 'blockquote':
@@ -2284,7 +2253,7 @@ const RenderBlocks = ({
2284
2253
  }
2285
2254
  };
2286
2255
 
2287
- var styles$8 = {"root":"Cover-module_root__3pscq","body":"Cover-module_body__eJpUI","image":"Cover-module_image__frrrH","rich":"Cover-module_rich__YcxWa","dark":"Cover-module_dark__cRucL","light":"Cover-module_light__la-sk","control":"Cover-module_control__WP0G3","isInDynamicBlock":"Cover-module_isInDynamicBlock__qO-yt","mobile":"Cover-module_mobile__aotep","desktop":"Cover-module_desktop__dfbC-"};
2256
+ var styles$9 = {"root":"Cover-module_root__3pscq","body":"Cover-module_body__eJpUI","image":"Cover-module_image__frrrH","rich":"Cover-module_rich__YcxWa","dark":"Cover-module_dark__cRucL","light":"Cover-module_light__la-sk","control":"Cover-module_control__WP0G3","isInDynamicBlock":"Cover-module_isInDynamicBlock__qO-yt","mobile":"Cover-module_mobile__aotep","desktop":"Cover-module_desktop__dfbC-"};
2288
2257
 
2289
2258
  const Cover = ({
2290
2259
  block: {
@@ -2305,13 +2274,13 @@ const Cover = ({
2305
2274
  }) => {
2306
2275
  const [isPopoverShown, setIsPopoverShown] = useState(false);
2307
2276
  const style = {};
2308
- let classNames = [[styles$8.root, true], [styles$8[onlyOn], !!onlyOn && !!styles$8[onlyOn]]];
2277
+ let classNames = [[styles$9.root, true], [styles$9[onlyOn], !!onlyOn && !!styles$9[onlyOn]]];
2309
2278
  if (styleContext) {
2310
- classNames = makeStyleContext(classNames, styleContext, styles$8);
2279
+ classNames = makeStyleContext(classNames, styleContext, styles$9);
2311
2280
  }
2312
2281
  if (gradients) {
2313
2282
  const theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
2314
- classNames = makeStyleContext(classNames, theme, styles$8);
2283
+ classNames = makeStyleContext(classNames, theme, styles$9);
2315
2284
  style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
2316
2285
  }
2317
2286
  const renderCC = context => ( /*#__PURE__*/React.createElement(MediaCaption, {
@@ -2323,20 +2292,20 @@ const Cover = ({
2323
2292
  "data-testid": "cover",
2324
2293
  className: makeClassName(classNames)
2325
2294
  }, /*#__PURE__*/React.createElement("div", {
2326
- className: styles$8.image
2295
+ className: styles$9.image
2327
2296
  }, /*#__PURE__*/React.createElement(Image, {
2328
2297
  optimized: urls,
2329
2298
  ratio: mobileRatio,
2330
2299
  display: "narrow"
2331
2300
  })), /*#__PURE__*/React.createElement("div", {
2332
- className: styles$8.body,
2301
+ className: styles$9.body,
2333
2302
  style: style
2334
2303
  }, blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2335
2304
  key: item.id,
2336
2305
  block: item,
2337
2306
  styleContext: styleContext
2338
2307
  })))), cc === 'button' && ( /*#__PURE__*/React.createElement("button", {
2339
- className: styles$8.control,
2308
+ className: styles$9.control,
2340
2309
  type: "button",
2341
2310
  "aria-label": "Open",
2342
2311
  onClick: () => {
@@ -2349,7 +2318,7 @@ const Cover = ({
2349
2318
  }, renderCC('isInPopover'))));
2350
2319
  };
2351
2320
 
2352
- var styles$7 = {"root":"HalfBlock-module_root__EXQbz","main":"HalfBlock-module_main__eIcRo","body":"HalfBlock-module_body__HPhGj","footer":"HalfBlock-module_footer__TFfCQ","image":"HalfBlock-module_image__XWLbK","mobile":"HalfBlock-module_mobile__uGGpm","desktop":"HalfBlock-module_desktop__p-hAq"};
2321
+ var styles$8 = {"root":"HalfBlock-module_root__EXQbz","main":"HalfBlock-module_main__eIcRo","body":"HalfBlock-module_body__HPhGj","footer":"HalfBlock-module_footer__TFfCQ","image":"HalfBlock-module_image__XWLbK","mobile":"HalfBlock-module_mobile__uGGpm","desktop":"HalfBlock-module_desktop__p-hAq"};
2353
2322
 
2354
2323
  const HalfBlock = ({
2355
2324
  block: {
@@ -2366,29 +2335,29 @@ const HalfBlock = ({
2366
2335
  },
2367
2336
  styleContext
2368
2337
  }) => {
2369
- let classNames = [[styles$7.root, true], [styles$7[onlyOn], true]];
2338
+ let classNames = [[styles$8.root, true], [styles$8[onlyOn], true]];
2370
2339
  if (styleContext) {
2371
- classNames = makeStyleContext(classNames, styleContext, styles$7);
2340
+ classNames = makeStyleContext(classNames, styleContext, styles$8);
2372
2341
  }
2373
2342
  return /*#__PURE__*/React.createElement("div", {
2374
2343
  "data-testid": "half-block",
2375
2344
  className: makeClassName(classNames)
2376
2345
  }, /*#__PURE__*/React.createElement("div", {
2377
- className: styles$7.main
2346
+ className: styles$8.main
2378
2347
  }, /*#__PURE__*/React.createElement("div", {
2379
- className: styles$7.image
2348
+ className: styles$8.image
2380
2349
  }, /*#__PURE__*/React.createElement(Image, {
2381
2350
  optimized: optimized,
2382
2351
  ratio: ratio,
2383
2352
  display: "super_full"
2384
2353
  })), /*#__PURE__*/React.createElement("div", {
2385
- className: styles$7.body
2354
+ className: styles$8.body
2386
2355
  }, data.blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2387
2356
  key: item.id,
2388
2357
  block: item,
2389
2358
  styleContext: ['rich']
2390
2359
  }))))), /*#__PURE__*/React.createElement("div", {
2391
- className: styles$7.footer
2360
+ className: styles$8.footer
2392
2361
  }, /*#__PURE__*/React.createElement(MediaCaption, {
2393
2362
  credit: credit,
2394
2363
  caption: caption,
@@ -2396,7 +2365,7 @@ const HalfBlock = ({
2396
2365
  })));
2397
2366
  };
2398
2367
 
2399
- var styles$6 = {"root":"ImportantLead-module_root__-rnt6","slide":"ImportantLead-module_slide__zcovu","mobile":"ImportantLead-module_mobile__msInp","desktop":"ImportantLead-module_desktop__ELC2-"};
2368
+ var styles$7 = {"root":"ImportantLead-module_root__-rnt6","slide":"ImportantLead-module_slide__zcovu","mobile":"ImportantLead-module_mobile__msInp","desktop":"ImportantLead-module_desktop__ELC2-"};
2400
2369
 
2401
2370
  const ImportantLead = ({
2402
2371
  block: {
@@ -2405,9 +2374,9 @@ const ImportantLead = ({
2405
2374
  },
2406
2375
  styleContext
2407
2376
  }) => {
2408
- let classNames = [[styles$6.root, true], [styles$6[onlyOn], !!onlyOn]];
2377
+ let classNames = [[styles$7.root, true], [styles$7[onlyOn], !!onlyOn]];
2409
2378
  if (styleContext) {
2410
- classNames = makeStyleContext(classNames, styleContext, styles$6);
2379
+ classNames = makeStyleContext(classNames, styleContext, styles$7);
2411
2380
  }
2412
2381
  return /*#__PURE__*/React.createElement("div", {
2413
2382
  "data-testid": "important-lead",
@@ -2419,7 +2388,7 @@ const ImportantLead = ({
2419
2388
  }))));
2420
2389
  };
2421
2390
 
2422
- var styles$5 = {"root":"Spoiler-module_root__fAbb9","header":"Spoiler-module_header__iEKsQ","body":"Spoiler-module_body__jjqIn","spoiled":"Spoiler-module_spoiled__ENI93","footer":"Spoiler-module_footer__g21Zn","spoilerSticky":"Spoiler-module_spoilerSticky__YTiyF","spoilerStickyBg":"Spoiler-module_spoilerStickyBg__tmDnG","center":"Spoiler-module_center__0XCWo","full":"Spoiler-module_full__FtKDT","default":"Spoiler-module_default__wvlKw","mobile":"Spoiler-module_mobile__PWCMW","desktop":"Spoiler-module_desktop__qTakd"};
2391
+ var styles$6 = {"root":"Spoiler-module_root__fAbb9","header":"Spoiler-module_header__iEKsQ","body":"Spoiler-module_body__jjqIn","spoiled":"Spoiler-module_spoiled__ENI93","footer":"Spoiler-module_footer__g21Zn","spoilerSticky":"Spoiler-module_spoilerSticky__YTiyF","spoilerStickyBg":"Spoiler-module_spoilerStickyBg__tmDnG","center":"Spoiler-module_center__0XCWo","full":"Spoiler-module_full__FtKDT","default":"Spoiler-module_default__wvlKw","mobile":"Spoiler-module_mobile__PWCMW","desktop":"Spoiler-module_desktop__qTakd"};
2423
2392
 
2424
2393
  const Spoiler = ({
2425
2394
  block: {
@@ -2448,11 +2417,11 @@ const Spoiler = ({
2448
2417
  postMessage('', 'openSpoiler', 'click');
2449
2418
  }
2450
2419
  };
2451
- let classNames = [[styles$5.root, true], [styles$5[onlyOn], !!onlyOn], [styles$5[display], !!display && styles$5[display]], [[styles$5.spoiled], !!spoiled]];
2420
+ let classNames = [[styles$6.root, true], [styles$6[onlyOn], !!onlyOn], [styles$6[display], !!display && styles$6[display]], [[styles$6.spoiled], !!spoiled]];
2452
2421
  const context = ['center'];
2453
2422
  if (styleContext) {
2454
2423
  context.concat(styleContext);
2455
- classNames = makeStyleContext(classNames, styleContext, styles$5);
2424
+ classNames = makeStyleContext(classNames, styleContext, styles$6);
2456
2425
  }
2457
2426
  const buttonCollapse = button ? button.collapse : 'Свернуть';
2458
2427
  const buttonExpande = button ? button.expand : buttonTitle;
@@ -2461,15 +2430,15 @@ const Spoiler = ({
2461
2430
  className: makeClassName(classNames),
2462
2431
  "data-testid": "spoiler"
2463
2432
  }, /*#__PURE__*/React.createElement("div", {
2464
- className: styles$5.header
2433
+ className: styles$6.header
2465
2434
  }, title && /*#__PURE__*/React.createElement("h3", null, title)), /*#__PURE__*/React.createElement("div", {
2466
- className: styles$5.body
2435
+ className: styles$6.body
2467
2436
  }, blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2468
2437
  key: item.id,
2469
2438
  block: item,
2470
2439
  styleContext: context
2471
2440
  })))), /*#__PURE__*/React.createElement("div", {
2472
- className: styles$5.footer
2441
+ className: styles$6.footer
2473
2442
  }, /*#__PURE__*/React.createElement(Button, {
2474
2443
  size: "default",
2475
2444
  theme: "gray",
@@ -2480,7 +2449,7 @@ const Spoiler = ({
2480
2449
  }))));
2481
2450
  };
2482
2451
 
2483
- var styles$4 = {"root":"RelatedRichBlock-module_root__-SEe7","wrapper":"RelatedRichBlock-module_wrapper__YkEpr","overlay":"RelatedRichBlock-module_overlay__tWuyR","overlayHeader":"RelatedRichBlock-module_overlayHeader__V3ynX","body":"RelatedRichBlock-module_body__XhS0U","isRich":"RelatedRichBlock-module_isRich__Z2kQ8","hasGradient":"RelatedRichBlock-module_hasGradient__s5Krh","picture":"RelatedRichBlock-module_picture__OmRKx","isCard":"RelatedRichBlock-module_isCard__wkMw-","cover":"RelatedRichBlock-module_cover__3gnIx","tag":"RelatedRichBlock-module_tag__c18sv","center":"RelatedRichBlock-module_center__KANd-","dark":"RelatedRichBlock-module_dark__cnk4R","light":"RelatedRichBlock-module_light__aJLn7","mobile":"RelatedRichBlock-module_mobile__N-G4U","desktop":"RelatedRichBlock-module_desktop__EaPOr"};
2452
+ var styles$5 = {"root":"RelatedRichBlock-module_root__-SEe7","wrapper":"RelatedRichBlock-module_wrapper__YkEpr","overlay":"RelatedRichBlock-module_overlay__tWuyR","overlayHeader":"RelatedRichBlock-module_overlayHeader__V3ynX","body":"RelatedRichBlock-module_body__XhS0U","isRich":"RelatedRichBlock-module_isRich__Z2kQ8","hasGradient":"RelatedRichBlock-module_hasGradient__s5Krh","picture":"RelatedRichBlock-module_picture__OmRKx","isCard":"RelatedRichBlock-module_isCard__wkMw-","cover":"RelatedRichBlock-module_cover__3gnIx","tag":"RelatedRichBlock-module_tag__c18sv","center":"RelatedRichBlock-module_center__KANd-","dark":"RelatedRichBlock-module_dark__cnk4R","light":"RelatedRichBlock-module_light__aJLn7","mobile":"RelatedRichBlock-module_mobile__N-G4U","desktop":"RelatedRichBlock-module_desktop__EaPOr"};
2484
2453
 
2485
2454
  /* eslint-disable react/jsx-no-target-blank */
2486
2455
  const RelatedRichBlock = ({
@@ -2517,16 +2486,16 @@ const RelatedRichBlock = ({
2517
2486
  const handleClick = () => {
2518
2487
  postMessage('richRelated', url, 'click');
2519
2488
  };
2520
- let classNames = [[styles$4.root, true], [styles$4[cardType], !!layout && !!styles$4[cardType]], [styles$4.hasGradient, !!gradients], [styles$4[onlyOn], !!onlyOn && !!styles$4[onlyOn]]];
2489
+ let classNames = [[styles$5.root, true], [styles$5[cardType], !!layout && !!styles$5[cardType]], [styles$5.hasGradient, !!gradients], [styles$5[onlyOn], !!onlyOn && !!styles$5[onlyOn]]];
2521
2490
  let context = ['isInMediaBlock'];
2522
2491
  if (styleContext) {
2523
- classNames = makeStyleContext(classNames, styleContext, styles$4);
2492
+ classNames = makeStyleContext(classNames, styleContext, styles$5);
2524
2493
  context = [...styleContext, 'isInMediaBlock'];
2525
2494
  }
2526
2495
  if (gradients) {
2527
2496
  styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
2528
2497
  const theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
2529
- classNames = makeStyleContext(classNames, theme, styles$4);
2498
+ classNames = makeStyleContext(classNames, theme, styles$5);
2530
2499
  if (onlyOn === 'desktop') {
2531
2500
  style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
2532
2501
  }
@@ -2538,27 +2507,27 @@ const RelatedRichBlock = ({
2538
2507
  onClick: () => handleClick(),
2539
2508
  ref: ref
2540
2509
  }, layout === 'rich' && ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
2541
- className: styles$4.overlay,
2510
+ className: styles$5.overlay,
2542
2511
  style: style
2543
2512
  }), /*#__PURE__*/React.createElement("div", {
2544
- className: styles$4.overlayHeader,
2513
+ className: styles$5.overlayHeader,
2545
2514
  style: styleHeader
2546
2515
  }))), /*#__PURE__*/React.createElement("div", {
2547
- className: styles$4.tag
2516
+ className: styles$5.tag
2548
2517
  }, /*#__PURE__*/React.createElement(Tag, {
2549
2518
  size: "small",
2550
2519
  theme: "inherit",
2551
2520
  styleContext: "richRelated"
2552
2521
  }, tag)), /*#__PURE__*/React.createElement("div", {
2553
- className: styles$4.cover
2522
+ className: styles$5.cover
2554
2523
  }, /*#__PURE__*/React.createElement("div", {
2555
- className: styles$4.picture
2524
+ className: styles$5.picture
2556
2525
  }, /*#__PURE__*/React.createElement(Image, {
2557
2526
  optimized: urls,
2558
2527
  ratio: ratio,
2559
2528
  display: "narrow"
2560
2529
  }))), /*#__PURE__*/React.createElement("div", {
2561
- className: styles$4.body
2530
+ className: styles$5.body
2562
2531
  }, blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2563
2532
  key: item.id,
2564
2533
  block: item,
@@ -2566,7 +2535,7 @@ const RelatedRichBlock = ({
2566
2535
  })))));
2567
2536
  };
2568
2537
 
2569
- var styles$3 = {"root":"ShopRelatedBlock-module_root__eTGjC","wrapper":"ShopRelatedBlock-module_wrapper__v6yE3","overlay":"ShopRelatedBlock-module_overlay__oR67Y","overlayHeader":"ShopRelatedBlock-module_overlayHeader__YMcNw","body":"ShopRelatedBlock-module_body__W4pBN","hasGradient":"ShopRelatedBlock-module_hasGradient__50JTl","picture":"ShopRelatedBlock-module_picture__zjFL4","tag":"ShopRelatedBlock-module_tag__ixkda","center":"ShopRelatedBlock-module_center__IpBP4","title":"ShopRelatedBlock-module_title__COl93","price":"ShopRelatedBlock-module_price__5Qitu","dark":"ShopRelatedBlock-module_dark__d0QiW","light":"ShopRelatedBlock-module_light__lUDWA","mobile":"ShopRelatedBlock-module_mobile__I6Hih","desktop":"ShopRelatedBlock-module_desktop__ywKrb"};
2538
+ var styles$4 = {"root":"ShopRelatedBlock-module_root__eTGjC","wrapper":"ShopRelatedBlock-module_wrapper__v6yE3","overlay":"ShopRelatedBlock-module_overlay__oR67Y","overlayHeader":"ShopRelatedBlock-module_overlayHeader__YMcNw","body":"ShopRelatedBlock-module_body__W4pBN","hasGradient":"ShopRelatedBlock-module_hasGradient__50JTl","picture":"ShopRelatedBlock-module_picture__zjFL4","tag":"ShopRelatedBlock-module_tag__ixkda","center":"ShopRelatedBlock-module_center__IpBP4","title":"ShopRelatedBlock-module_title__COl93","price":"ShopRelatedBlock-module_price__5Qitu","dark":"ShopRelatedBlock-module_dark__d0QiW","light":"ShopRelatedBlock-module_light__lUDWA","mobile":"ShopRelatedBlock-module_mobile__I6Hih","desktop":"ShopRelatedBlock-module_desktop__ywKrb"};
2570
2539
 
2571
2540
  /* eslint-disable react/jsx-no-target-blank */
2572
2541
  const ShopRelatedBlock = ({
@@ -2603,14 +2572,14 @@ const ShopRelatedBlock = ({
2603
2572
  const handleClick = () => {
2604
2573
  postMessage('productRelated', url, 'click');
2605
2574
  };
2606
- let classNames = [[styles$3.root, true], [styles$3.hasGradient, !!gradients], [styles$3[onlyOn], !!onlyOn && !!styles$3[onlyOn]]];
2575
+ let classNames = [[styles$4.root, true], [styles$4.hasGradient, !!gradients], [styles$4[onlyOn], !!onlyOn && !!styles$4[onlyOn]]];
2607
2576
  if (styleContext) {
2608
- classNames = makeStyleContext(classNames, styleContext, styles$3);
2577
+ classNames = makeStyleContext(classNames, styleContext, styles$4);
2609
2578
  }
2610
2579
  if (gradients) {
2611
2580
  styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
2612
2581
  const theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
2613
- classNames = makeStyleContext(classNames, theme, styles$3);
2582
+ classNames = makeStyleContext(classNames, theme, styles$4);
2614
2583
  if (onlyOn === 'desktop') {
2615
2584
  style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
2616
2585
  }
@@ -2623,44 +2592,44 @@ const ShopRelatedBlock = ({
2623
2592
  onClick: () => handleClick(),
2624
2593
  ref: ref
2625
2594
  }, layout === 'rich' && ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
2626
- className: styles$3.overlay,
2595
+ className: styles$4.overlay,
2627
2596
  style: style
2628
2597
  }), /*#__PURE__*/React.createElement("div", {
2629
- className: styles$3.overlayHeader,
2598
+ className: styles$4.overlayHeader,
2630
2599
  style: styleHeader
2631
2600
  }))), /*#__PURE__*/React.createElement("div", {
2632
- className: styles$3.tag
2601
+ className: styles$4.tag
2633
2602
  }, /*#__PURE__*/React.createElement(Tag, {
2634
2603
  size: "small",
2635
2604
  theme: "inherit",
2636
2605
  styleContext: "richRelated"
2637
2606
  }, tag)), /*#__PURE__*/React.createElement("div", {
2638
- className: styles$3.cover
2607
+ className: styles$4.cover
2639
2608
  }, /*#__PURE__*/React.createElement("div", {
2640
- className: styles$3.picture
2609
+ className: styles$4.picture
2641
2610
  }, /*#__PURE__*/React.createElement(Image, {
2642
2611
  optimized: urls,
2643
2612
  ratio: ratio,
2644
2613
  display: "narrow"
2645
2614
  }))), /*#__PURE__*/React.createElement("div", {
2646
- className: styles$3.body
2615
+ className: styles$4.body
2647
2616
  }, /*#__PURE__*/React.createElement("h2", {
2648
- className: styles$3.title
2617
+ className: styles$4.title
2649
2618
  }, firstTitle, /*#__PURE__*/React.createElement("span", {
2650
- className: styles$3.price
2619
+ className: styles$4.price
2651
2620
  }, secondTitle))));
2652
2621
  };
2653
2622
 
2654
- var styles$2 = {"root":"RelatedBook-module_root__QsOmA","container":"RelatedBook-module_container__vdDiZ","imageWrap":"RelatedBook-module_imageWrap__WmwnE","image":"RelatedBook-module_image__U1e5t","picture":"RelatedBook-module_picture__NXg-K","tag":"RelatedBook-module_tag__mSbbz","contentWrap":"RelatedBook-module_contentWrap__HIGRi","content":"RelatedBook-module_content__23Pfr","title":"RelatedBook-module_title__VRbr-","footer":"RelatedBook-module_footer__Z05t-","center":"RelatedBook-module_center__Fa6cj","isLight":"RelatedBook-module_isLight__W-0TO","isDark":"RelatedBook-module_isDark__0mrtK"};
2623
+ var styles$3 = {"root":"RelatedBook-module_root__QsOmA","container":"RelatedBook-module_container__vdDiZ","imageWrap":"RelatedBook-module_imageWrap__WmwnE","image":"RelatedBook-module_image__U1e5t","picture":"RelatedBook-module_picture__NXg-K","tag":"RelatedBook-module_tag__mSbbz","contentWrap":"RelatedBook-module_contentWrap__HIGRi","content":"RelatedBook-module_content__23Pfr","title":"RelatedBook-module_title__VRbr-","footer":"RelatedBook-module_footer__Z05t-","center":"RelatedBook-module_center__Fa6cj","isLight":"RelatedBook-module_isLight__W-0TO","isDark":"RelatedBook-module_isDark__0mrtK"};
2655
2624
 
2656
2625
  const RelatedBook = ({
2657
2626
  block,
2658
2627
  styleContext
2659
2628
  }) => {
2660
2629
  const theme = block.data.theme.text_color === '0,0,0' ? 'isDark' : 'isLight';
2661
- let classNames = [[styles$2.root, true], [styles$2[theme], theme], [styles$2[block.data.onlyOn], !!block.data.onlyOn && !!styles$2[block.data.onlyOn]]];
2630
+ let classNames = [[styles$3.root, true], [styles$3[theme], theme], [styles$3[block.data.onlyOn], !!block.data.onlyOn && !!styles$3[block.data.onlyOn]]];
2662
2631
  if (styleContext) {
2663
- classNames = makeStyleContext(classNames, styleContext, styles$2);
2632
+ classNames = makeStyleContext(classNames, styleContext, styles$3);
2664
2633
  }
2665
2634
  const cssProps = {
2666
2635
  '--bgColor': `rgb(${block.data.theme.background_color || '0, 0, 0'})`
@@ -2670,13 +2639,13 @@ const RelatedBook = ({
2670
2639
  className: makeClassName(classNames),
2671
2640
  style: cssProps
2672
2641
  }, /*#__PURE__*/React.createElement("div", {
2673
- className: styles$2.container
2642
+ className: styles$3.container
2674
2643
  }, /*#__PURE__*/React.createElement("div", {
2675
- className: styles$2.imageWrap
2644
+ className: styles$3.imageWrap
2676
2645
  }, /*#__PURE__*/React.createElement("div", {
2677
- className: styles$2.image
2646
+ className: styles$3.image
2678
2647
  }, /*#__PURE__*/React.createElement("picture", {
2679
- className: styles$2.picture
2648
+ className: styles$3.picture
2680
2649
  }, /*#__PURE__*/React.createElement(Image, {
2681
2650
  optimized: block.data.cover.urls,
2682
2651
  ratio: 0,
@@ -2684,9 +2653,9 @@ const RelatedBook = ({
2684
2653
  styleContext: ['isStatic'],
2685
2654
  lazy: true
2686
2655
  })))), /*#__PURE__*/React.createElement("div", {
2687
- className: styles$2.contentWrap
2656
+ className: styles$3.contentWrap
2688
2657
  }, /*#__PURE__*/React.createElement("div", {
2689
- className: styles$2.content
2658
+ className: styles$3.content
2690
2659
  }, block.data.blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2691
2660
  key: item.id,
2692
2661
  block: item,
@@ -2702,8 +2671,7 @@ const RawHtmlBlock = ({
2702
2671
  isInBookmarks,
2703
2672
  bookmarkAction,
2704
2673
  lightBox,
2705
- lang,
2706
- type = 'default'
2674
+ lang
2707
2675
  }) => {
2708
2676
  const context = {
2709
2677
  lightBox: lightBox || null
@@ -2771,13 +2739,34 @@ const RawHtmlBlock = ({
2771
2739
  isListened: isListened,
2772
2740
  isInBookmarks: isInBookmarks,
2773
2741
  bookmarkAction: bookmarkAction,
2774
- lang: lang,
2775
- type: type
2742
+ lang: lang
2776
2743
  }));
2777
2744
  }
2778
2745
  }
2779
2746
  };
2780
2747
 
2748
+ 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
+
2750
+ const ListViewSwitcher = ({
2751
+ enabled,
2752
+ onChange,
2753
+ size = 'md'
2754
+ }) => ( /*#__PURE__*/React.createElement("label", {
2755
+ "data-testid": "listViewSwitcher",
2756
+ className: makeClassName([[styles$2.root, true], [styles$2[size], true]])
2757
+ }, /*#__PURE__*/React.createElement("input", {
2758
+ className: styles$2.input,
2759
+ type: "checkbox",
2760
+ checked: enabled,
2761
+ onChange: onChange
2762
+ }), /*#__PURE__*/React.createElement("span", {
2763
+ className: styles$2.knob
2764
+ }), /*#__PURE__*/React.createElement("span", {
2765
+ className: styles$2.grid
2766
+ }), /*#__PURE__*/React.createElement("span", {
2767
+ className: styles$2.list
2768
+ })));
2769
+
2781
2770
  var styles$1 = {"root":"ToolbarButton-module_root__upsEH","isDark":"ToolbarButton-module_isDark__gWpv-","dark":"ToolbarButton-module_dark__5XOEp","bookmark":"ToolbarButton-module_bookmark__7SWkm","isActive":"ToolbarButton-module_isActive__N4kkV","icon":"ToolbarButton-module_icon__Ldcgq","text":"ToolbarButton-module_text__4R2a0"};
2782
2771
 
2783
2772
  const ToolbarButton = ({
@@ -2832,5 +2821,5 @@ const TooltipFooter = ({
2832
2821
  }, children);
2833
2822
  };
2834
2823
 
2835
- export { AnnouncementInText, BookmarkButton, Button, ButtonLoader, CardTitle, ChapterBlock, Cover, DocumentItemsCount, DonatesTeaser, DotsOnImage, Dropdown, EmbedBlockContainer, Footnote, GroupedBlock, HalfBlock, Image, ImportantLead, Lazy, ListBlock, MaterialNote, MaterialTitle, MediaCaption, Menu, Meta, MetaItem, MetaItemLive, Popover, Primary, QuoteBlock, RawHtmlBlock, RelatedBlock, RelatedRichBlock, RenderBlocks, RichTitle, Secondary, SensitiveBlock, ShopRelatedBlock, SimpleBlock, SimpleTitle, SourceBlock, Spoiler, SvgSymbol, Switcher, Table, Tag, Timestamp, Toolbar, ToolbarButton, ToolbarItem, Tooltip, TooltipFooter };
2824
+ export { AnnouncementInText, BookmarkButton, Button, ButtonLoader, CardTitle, ChapterBlock, Cover, DocumentItemsCount, DonatesTeaser, DotsOnImage, Dropdown, EmbedBlockContainer, Footnote, GroupedBlock, HalfBlock, Image, ImportantLead, Lazy, ListBlock, ListViewSwitcher, MaterialNote, MaterialTitle, MediaCaption, Menu, Meta, MetaItem, MetaItemLive, Popover, Primary, QuoteBlock, RawHtmlBlock, RelatedBlock, RelatedRichBlock, RenderBlocks, RichTitle, Secondary, SensitiveBlock, ShopRelatedBlock, SimpleBlock, SimpleTitle, SourceBlock, Spoiler, SvgSymbol, Switcher, Table, Tag, Timestamp, Toolbar, ToolbarButton, ToolbarItem, Tooltip, TooltipFooter };
2836
2825
  //# sourceMappingURL=ui-kit-2.esm.js.map