@meduza/ui-kit-2 1.3.0 → 1.4.0

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.
@@ -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-","isInPodcast":"Button-module_isInPodcast__SNSpl","isInSpoiler":"Button-module_isInSpoiler__pGp-w","isInChronology":"Button-module_isInChronology__T-znS","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-","isInPodcast":"Button-module_isInPodcast__SNSpl","isInSpoiler":"Button-module_isInSpoiler__pGp-w","isInChronology":"Button-module_isInChronology__T-znS","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
 
@@ -249,7 +249,7 @@ const icons = {
249
249
  }
250
250
  };
251
251
 
252
- 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","menu":"SvgSymbol-module_menu__z-dLm","cross":"SvgSymbol-module_cross__3Xej1","isInFeature":"SvgSymbol-module_isInFeature__BmyI-","isInCard":"SvgSymbol-module_isInCard__USxBS","isInTopicBlockItem":"SvgSymbol-module_isInTopicBlockItem__cnCgw","isInPageStatic":"SvgSymbol-module_isInPageStatic__7kMP-","isInMaterialMeta":"SvgSymbol-module_isInMaterialMeta__lIKJO","isInAudioPlayer":"SvgSymbol-module_isInAudioPlayer__mamWa","isInEpisodeBlock":"SvgSymbol-module_isInEpisodeBlock__oZ6JG","isInButtonPlaybackRate":"SvgSymbol-module_isInButtonPlaybackRate__NnADm","isInButtonBackward":"SvgSymbol-module_isInButtonBackward__x8L9a","isInButtonForward":"SvgSymbol-module_isInButtonForward__TtixK","isInToolbar":"SvgSymbol-module_isInToolbar__RzbaX","play":"SvgSymbol-module_play__dAES0","speedHalf":"SvgSymbol-module_speedHalf__mvVYC","speedThreeQuarters":"SvgSymbol-module_speedThreeQuarters__9N7uH","speedOne":"SvgSymbol-module_speedOne__sRNph","speedOneQuarter":"SvgSymbol-module_speedOneQuarter__fKIT7","speedOneHalf":"SvgSymbol-module_speedOneHalf__7yXsa","speedTwo":"SvgSymbol-module_speedTwo__Bv8-b","meduzaLogo":"SvgSymbol-module_meduzaLogo__aVKzZ","arrow":"SvgSymbol-module_arrow__lWTSJ","oil":"SvgSymbol-module_oil__VFGTp","search":"SvgSymbol-module_search__h06cc","user":"SvgSymbol-module_user__ORMm-","receipt":"SvgSymbol-module_receipt__o3V8u","isInHeader":"SvgSymbol-module_isInHeader__M5Tzw"};
252
+ 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","menu":"SvgSymbol-module_menu__z-dLm","cross":"SvgSymbol-module_cross__3Xej1","isInFeature":"SvgSymbol-module_isInFeature__BmyI-","isInCard":"SvgSymbol-module_isInCard__USxBS","isInTopicBlockItem":"SvgSymbol-module_isInTopicBlockItem__cnCgw","isInPageStatic":"SvgSymbol-module_isInPageStatic__7kMP-","isInMaterialMeta":"SvgSymbol-module_isInMaterialMeta__lIKJO","isInAudioPlayer":"SvgSymbol-module_isInAudioPlayer__mamWa","isInEpisodeBlock":"SvgSymbol-module_isInEpisodeBlock__oZ6JG","isInButtonPlaybackRate":"SvgSymbol-module_isInButtonPlaybackRate__NnADm","isInButtonBackward":"SvgSymbol-module_isInButtonBackward__x8L9a","isInButtonForward":"SvgSymbol-module_isInButtonForward__TtixK","isInToolbar":"SvgSymbol-module_isInToolbar__RzbaX","play":"SvgSymbol-module_play__dAES0","speedHalf":"SvgSymbol-module_speedHalf__mvVYC","speedThreeQuarters":"SvgSymbol-module_speedThreeQuarters__9N7uH","speedOne":"SvgSymbol-module_speedOne__sRNph","speedOneQuarter":"SvgSymbol-module_speedOneQuarter__fKIT7","speedOneHalf":"SvgSymbol-module_speedOneHalf__7yXsa","speedTwo":"SvgSymbol-module_speedTwo__Bv8-b","meduzaLogo":"SvgSymbol-module_meduzaLogo__aVKzZ","arrow":"SvgSymbol-module_arrow__lWTSJ","oil":"SvgSymbol-module_oil__VFGTp","search":"SvgSymbol-module_search__h06cc","user":"SvgSymbol-module_user__ORMm-","receipt":"SvgSymbol-module_receipt__o3V8u","isInHeader":"SvgSymbol-module_isInHeader__M5Tzw"};
253
253
 
254
254
  const SvgSymbol = ({
255
255
  icon,
@@ -261,7 +261,7 @@ const SvgSymbol = ({
261
261
  "data-testid": "svg-symbol",
262
262
  xmlns: "http://www.w3.org/2000/svg",
263
263
  xmlnsXlink: "http://www.w3.org/1999/xlink",
264
- className: makeClassName([[styles$H.root, true], [styles$H[size], !!styles$H[size]], [styles$H[icon], !!styles$H[icon]], [styles$H[styleContext], !!styles$H[styleContext]]]),
264
+ className: makeClassName([[styles$I.root, true], [styles$I[size], !!styles$I[size]], [styles$I[icon], !!styles$I[icon]], [styles$I[styleContext], !!styles$I[styleContext]]]),
265
265
  width: data.width,
266
266
  height: data.height,
267
267
  viewBox: `0 0 ${data.width} ${data.height}`,
@@ -271,7 +271,7 @@ const SvgSymbol = ({
271
271
  });
272
272
  };
273
273
 
274
- 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","isInMenu":"Switcher-module_isInMenu__RQVhp","isInLive":"Switcher-module_isInLive__ZyMCT","children":"Switcher-module_children__uLapU"};
274
+ 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"};
275
275
 
276
276
  const Switcher = ({
277
277
  enabled,
@@ -282,20 +282,20 @@ const Switcher = ({
282
282
  childrenRight
283
283
  }) => (/*#__PURE__*/React.createElement("label", {
284
284
  "data-testid": "switcher",
285
- className: makeClassName([[styles$G.root, true], [styles$G[theme], !!styles$G[theme]], [styles$G[styleContext], !!styles$G[styleContext]]])
285
+ className: makeClassName([[styles$H.root, true], [styles$H[theme], !!styles$H[theme]], [styles$H[styleContext], !!styles$H[styleContext]]])
286
286
  }, childrenLeft && (/*#__PURE__*/React.createElement("div", {
287
- className: makeClassName([[styles$G.children, true], [styles$G.left, true]])
287
+ className: makeClassName([[styles$H.children, true], [styles$H.left, true]])
288
288
  }, childrenLeft)), /*#__PURE__*/React.createElement("input", {
289
- className: styles$G.input,
289
+ className: styles$H.input,
290
290
  type: "checkbox",
291
291
  checked: enabled,
292
292
  onChange: onChange
293
293
  }), /*#__PURE__*/React.createElement("span", {
294
- className: styles$G.control
294
+ className: styles$H.control
295
295
  }, /*#__PURE__*/React.createElement("span", {
296
- className: styles$G.knob
296
+ className: styles$H.knob
297
297
  })), childrenRight && (/*#__PURE__*/React.createElement("div", {
298
- className: makeClassName([[styles$G.children, true], [styles$G.right, true]])
298
+ className: makeClassName([[styles$H.children, true], [styles$H.right, true]])
299
299
  }, childrenRight))));
300
300
 
301
301
  const makeStyleContext = (classNames, styleContext, styles) => {
@@ -321,31 +321,21 @@ const postMessage = (category, element, action) => {
321
321
  }
322
322
  };
323
323
 
324
- var styles$F = {"root":"Lazy-module_root__DWw8D"};
324
+ var styles$G = {"root":"Lazy-module_root__DWw8D"};
325
325
 
326
326
  const Lazy = ({
327
327
  children,
328
- threshold
328
+ threshold = 0
329
329
  }) => {
330
- const [ref, inView, entry] = useInView({
331
- threshold: threshold || 0
330
+ const [ref, inView] = useInView({
331
+ threshold: threshold,
332
+ triggerOnce: true
332
333
  });
333
- const [visible, setVisible] = useState(false);
334
- useEffect(() => {
335
- if (entry && entry.boundingClientRect && entry.boundingClientRect.y < 0) {
336
- setVisible(true);
337
- }
338
- }, [entry]);
339
- useEffect(() => {
340
- if (inView) {
341
- setVisible(true);
342
- }
343
- }, [inView]);
344
334
  return /*#__PURE__*/React.createElement("div", {
345
- className: makeClassName([[styles$F.root, true], [styles$F.visible, visible]]),
335
+ className: makeClassName([[styles$G.root, true], [styles$G.visible, inView]]),
346
336
  ref: ref,
347
337
  "data-testid": "lazy"
348
- }, visible && children);
338
+ }, inView && children);
349
339
  };
350
340
 
351
341
  const MediaQuerySizes = {
@@ -433,7 +423,7 @@ const RenderPicture = ({
433
423
  }));
434
424
  };
435
425
 
436
- var styles$E = {"root":"Image-module_root__H5wAh","fullRatio":"Image-module_fullRatio__q7QPa","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"};
426
+ var styles$F = {"root":"Image-module_root__H5wAh","fullRatio":"Image-module_fullRatio__q7QPa","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"};
437
427
 
438
428
  const Image = ({
439
429
  alt,
@@ -467,9 +457,9 @@ const Image = ({
467
457
  };
468
458
  /* fallback w325 url until w6 was released */
469
459
  const fallbackSource = source && source[0] || optimized.w325 && optimized.w325['1x'] || optimized.original;
470
- let classNames = [[styles$E.root, true], [styles$E.isLoaded, isLoaded], [styles$E.fullscreen, isFullscreenEnabled], [styles$E.fullRatio, ratio === null]];
460
+ let classNames = [[styles$F.root, true], [styles$F.isLoaded, isLoaded], [styles$F.fullscreen, isFullscreenEnabled], [styles$F.fullRatio, ratio === null]];
471
461
  if (styleContext) {
472
- classNames = makeStyleContext(classNames, styleContext, styles$E);
462
+ classNames = makeStyleContext(classNames, styleContext, styles$F);
473
463
  }
474
464
  const wrapperProps = isFullscreenEnabled ? {
475
465
  onClick: handleClick,
@@ -482,7 +472,7 @@ const Image = ({
482
472
  style: blockStyles,
483
473
  "data-testid": "image"
484
474
  }, /*#__PURE__*/React.createElement("div", {
485
- className: styles$E.wrapper,
475
+ className: styles$F.wrapper,
486
476
  style: pictureStyles,
487
477
  ...wrapperProps
488
478
  }, lazy ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Lazy, {
@@ -507,7 +497,7 @@ const Image = ({
507
497
  }))));
508
498
  };
509
499
 
510
- 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"};
500
+ 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"};
511
501
 
512
502
  const Popover = ({
513
503
  children,
@@ -539,20 +529,20 @@ const Popover = ({
539
529
  /* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */
540
530
  return /*#__PURE__*/React.createElement("div", {
541
531
  "data-testid": "popover",
542
- className: makeClassName([[styles$D.root, true], [styles$D.visible, visible]])
532
+ className: makeClassName([[styles$E.root, true], [styles$E.visible, visible]])
543
533
  }, /*#__PURE__*/React.createElement("div", {
544
- className: styles$D.overlay,
534
+ className: styles$E.overlay,
545
535
  onClick: () => handleClose()
546
536
  }), /*#__PURE__*/React.createElement("div", {
547
- className: styles$D.container
537
+ className: styles$E.container
548
538
  }, /*#__PURE__*/React.createElement("button", {
549
539
  type: "button",
550
- className: styles$D.dismiss,
540
+ className: styles$E.dismiss,
551
541
  onClick: () => handleClose(),
552
542
  "aria-label": "dismiss"
553
543
  }), /*#__PURE__*/React.createElement("svg", {
554
544
  width: "100%",
555
- className: styles$D.background
545
+ className: styles$E.background
556
546
  }, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("mask", {
557
547
  id: "myMask",
558
548
  x: "0",
@@ -581,11 +571,11 @@ const Popover = ({
581
571
  width: "100%",
582
572
  height: "100%"
583
573
  })), /*#__PURE__*/React.createElement("div", {
584
- className: styles$D.body
574
+ className: styles$E.body
585
575
  }, children)));
586
576
  };
587
577
 
588
- var styles$C = {"root":"Footnote-module_root__W5D8G","body":"Footnote-module_body__C-ZC-","dismiss":"Footnote-module_dismiss__Q2hAX"};
578
+ var styles$D = {"root":"Footnote-module_root__W5D8G","body":"Footnote-module_body__C-ZC-","dismiss":"Footnote-module_dismiss__Q2hAX"};
589
579
 
590
580
  const Footnote = ({
591
581
  children,
@@ -593,16 +583,16 @@ const Footnote = ({
593
583
  }) => {
594
584
  return /*#__PURE__*/React.createElement("div", {
595
585
  "data-testid": "footnote",
596
- className: makeClassName([[styles$C.root, true]])
586
+ className: makeClassName([[styles$D.root, true]])
597
587
  }, /*#__PURE__*/React.createElement("button", {
598
- className: styles$C.dismiss,
588
+ className: styles$D.dismiss,
599
589
  type: "button",
600
590
  onClick: () => onClose()
601
591
  }, /*#__PURE__*/React.createElement(SvgSymbol, {
602
592
  icon: "cross",
603
593
  size: "unset"
604
594
  })), /*#__PURE__*/React.createElement("div", {
605
- className: styles$C.body
595
+ className: styles$D.body
606
596
  }, children));
607
597
  };
608
598
 
@@ -611,7 +601,7 @@ var viewportSize = () => ({
611
601
  height: window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
612
602
  });
613
603
 
614
- 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"};
604
+ 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"};
615
605
 
616
606
  const DotsOnImage = ({
617
607
  block: {
@@ -693,7 +683,7 @@ const DotsOnImage = ({
693
683
  });
694
684
  };
695
685
  return /*#__PURE__*/React.createElement("div", {
696
- className: makeClassName([[styles$B.root, true], [styles$B.isVisible, visible]]),
686
+ className: makeClassName([[styles$C.root, true], [styles$C.isVisible, visible]]),
697
687
  "data-testid": "dots-on-image",
698
688
  ref: ref
699
689
  }, /*#__PURE__*/React.createElement(Image, {
@@ -706,7 +696,7 @@ const DotsOnImage = ({
706
696
  }), /*#__PURE__*/React.createElement("div", {
707
697
  ref: container
708
698
  }, dots.map(dot => (/*#__PURE__*/React.createElement("div", {
709
- className: styles$B.dot,
699
+ className: styles$C.dot,
710
700
  key: dot.id,
711
701
  style: {
712
702
  top: `${dot.position.y}%`,
@@ -714,7 +704,7 @@ const DotsOnImage = ({
714
704
  transform: `scale(${ratio}) translate(-${50 / ratio}%, -${50 / ratio}%)`
715
705
  }
716
706
  }, /*#__PURE__*/React.createElement("button", {
717
- className: makeClassName([[styles$B.marker, true], [styles$B.isActive, dot.id === popover.id]]),
707
+ className: makeClassName([[styles$C.marker, true], [styles$C.isActive, dot.id === popover.id]]),
718
708
  type: "button",
719
709
  style: {
720
710
  backgroundColor: dot.icon.color
@@ -725,7 +715,7 @@ const DotsOnImage = ({
725
715
  __html: dot.icon.svg_string
726
716
  }
727
717
  })), dot.icon.type === 'number' && dot.icon.number)))), popover.show && (/*#__PURE__*/React.createElement(React.Fragment, null, viewportSize().width >= MediaQuerySizes.LANDSCAPE_TABLET ? (/*#__PURE__*/React.createElement("div", {
728
- className: makeClassName([[styles$B.popover, true], [styles$B[popover.side], !!popover.side], [styles$B[popover.align], !!popover.align]]),
718
+ className: makeClassName([[styles$C.popover, true], [styles$C[popover.side], !!popover.side], [styles$C[popover.align], !!popover.align]]),
729
719
  style: popover.style
730
720
  }, /*#__PURE__*/React.createElement(Footnote, {
731
721
  onClose: () => {
@@ -750,7 +740,7 @@ const DotsOnImage = ({
750
740
  })))))));
751
741
  };
752
742
 
753
- 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","isInBlockMetaContainer":"Tag-module_isInBlockMetaContainer__bAmLh","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"};
743
+ 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","isInBlockMetaContainer":"Tag-module_isInBlockMetaContainer__bAmLh","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"};
754
744
 
755
745
  const Tag = ({
756
746
  children,
@@ -760,9 +750,9 @@ const Tag = ({
760
750
  correlation,
761
751
  onlyOn
762
752
  }) => {
763
- 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]]];
753
+ 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]]];
764
754
  if (styleContext) {
765
- classNames = makeStyleContext(classNames, styleContext, styles$A);
755
+ classNames = makeStyleContext(classNames, styleContext, styles$B);
766
756
  }
767
757
  return /*#__PURE__*/React.createElement("div", {
768
758
  "data-testid": "tag",
@@ -770,34 +760,34 @@ const Tag = ({
770
760
  }, children);
771
761
  };
772
762
 
773
- 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"};
763
+ 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"};
774
764
 
775
765
  const MediaCaption = ({
776
766
  credit,
777
767
  caption,
778
768
  styleContext
779
769
  }) => {
780
- let classNames = [[styles$z.root, true]];
770
+ let classNames = [[styles$A.root, true]];
781
771
  if (styleContext) {
782
- classNames = makeStyleContext(classNames, styleContext, styles$z);
772
+ classNames = makeStyleContext(classNames, styleContext, styles$A);
783
773
  }
784
774
  return /*#__PURE__*/React.createElement("div", {
785
775
  "data-testid": "media-caption",
786
776
  className: makeClassName(classNames)
787
777
  }, caption && (/*#__PURE__*/React.createElement("div", {
788
- className: styles$z.caption,
778
+ className: styles$A.caption,
789
779
  dangerouslySetInnerHTML: {
790
780
  __html: caption
791
781
  }
792
782
  })), credit && (/*#__PURE__*/React.createElement("div", {
793
- className: styles$z.credit,
783
+ className: styles$A.credit,
794
784
  dangerouslySetInnerHTML: {
795
785
  __html: credit
796
786
  }
797
787
  })));
798
788
  };
799
789
 
800
- 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"};
790
+ 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"};
801
791
 
802
792
  const Table = ({
803
793
  styleContext,
@@ -819,26 +809,26 @@ const Table = ({
819
809
  '#e7f2ef': 'green',
820
810
  '#f4f0f8': 'violet'
821
811
  };
822
- let classNames = [[styles$y.root, true], [styles$y[display], !!display && !!styles$y[display]]];
812
+ let classNames = [[styles$z.root, true], [styles$z[display], !!display && !!styles$z[display]]];
823
813
  if (styleContext) {
824
- classNames = makeStyleContext(classNames, styleContext, styles$y);
814
+ classNames = makeStyleContext(classNames, styleContext, styles$z);
825
815
  }
826
816
  return /*#__PURE__*/React.createElement("div", {
827
817
  "data-testid": "table",
828
818
  className: makeClassName(classNames)
829
819
  }, /*#__PURE__*/React.createElement("div", {
830
- className: styles$y.wrapper
820
+ className: styles$z.wrapper
831
821
  }, /*#__PURE__*/React.createElement("div", {
832
- className: styles$y.table
822
+ className: styles$z.table
833
823
  }, /*#__PURE__*/React.createElement("div", {
834
- className: styles$y.tracks
824
+ className: styles$z.tracks
835
825
  }, rows.map((row, i) => {
836
826
  return /*#__PURE__*/React.createElement("div", {
837
827
  key: row.key,
838
- className: styles$y.row
828
+ className: styles$z.row
839
829
  }, row.cells.map((cell, j) => (/*#__PURE__*/React.createElement("div", {
840
830
  key: cell.key,
841
- 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]]),
831
+ 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]]),
842
832
  dangerouslySetInnerHTML: {
843
833
  __html: cell.val
844
834
  }
@@ -849,7 +839,7 @@ const Table = ({
849
839
  })));
850
840
  };
851
841
 
852
- 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"};
842
+ 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"};
853
843
 
854
844
  const MaterialNote = ({
855
845
  block: {
@@ -857,15 +847,15 @@ const MaterialNote = ({
857
847
  },
858
848
  styleContext
859
849
  }) => {
860
- let classNames = [[styles$x.root, true]];
850
+ let classNames = [[styles$y.root, true]];
861
851
  if (styleContext) {
862
- classNames = makeStyleContext(classNames, styleContext, styles$x);
852
+ classNames = makeStyleContext(classNames, styleContext, styles$y);
863
853
  }
864
854
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
865
855
  "data-testid": "material-note",
866
856
  className: makeClassName(classNames)
867
857
  }, data && data.map(item => (/*#__PURE__*/React.createElement("p", {
868
- className: styles$x[item.type],
858
+ className: styles$y[item.type],
869
859
  key: item.id,
870
860
  dangerouslySetInnerHTML: {
871
861
  __html: item.data
@@ -873,39 +863,39 @@ const MaterialNote = ({
873
863
  })))));
874
864
  };
875
865
 
876
- var styles$w = {"root":"MaterialTitle-module_root__VSphO","primary":"MaterialTitle-module_primary__XGnpb","secondary":"MaterialTitle-module_secondary__7IDEp"};
866
+ var styles$x = {"root":"MaterialTitle-module_root__VSphO","primary":"MaterialTitle-module_primary__XGnpb","secondary":"MaterialTitle-module_secondary__7IDEp"};
877
867
 
878
868
  const Primary = ({
879
869
  children
880
870
  }) => {
881
871
  return /*#__PURE__*/React.createElement("span", {
882
- className: styles$w.primary
872
+ className: styles$x.primary
883
873
  }, children);
884
874
  };
885
875
  const Secondary = ({
886
876
  children
887
877
  }) => {
888
878
  return /*#__PURE__*/React.createElement("span", {
889
- className: styles$w.secondary
879
+ className: styles$x.secondary
890
880
  }, children);
891
881
  };
892
882
  const MaterialTitle = ({
893
883
  children
894
884
  }) => {
895
885
  return /*#__PURE__*/React.createElement("h1", {
896
- className: styles$w.root,
886
+ className: styles$x.root,
897
887
  "data-testid": "material-title"
898
888
  }, children);
899
889
  };
900
890
 
901
- var styles$v = {"root":"Dropdown-module_root__Wv7S-","menu":"Dropdown-module_menu__11IQL","inactive":"Dropdown-module_inactive__E5CP6","isInAudioPanel":"Dropdown-module_isInAudioPanel__UniSV"};
891
+ var styles$w = {"root":"Dropdown-module_root__Wv7S-","menu":"Dropdown-module_menu__11IQL","inactive":"Dropdown-module_inactive__E5CP6","isInAudioPanel":"Dropdown-module_isInAudioPanel__UniSV"};
902
892
 
903
893
  const Menu = ({
904
894
  children
905
895
  }) => {
906
896
  return /*#__PURE__*/React.createElement("div", {
907
897
  "data-testid": "dropdown",
908
- className: styles$v.menu
898
+ className: styles$w.menu
909
899
  }, children);
910
900
  };
911
901
  const Dropdown = ({
@@ -913,9 +903,9 @@ const Dropdown = ({
913
903
  active,
914
904
  styleContext
915
905
  }) => {
916
- let classNames = [[styles$v.root, true], [styles$v.inactive, !active && styleContext === 'isPodcastSeason' && !!styles$v.inactive]];
906
+ let classNames = [[styles$w.root, true], [styles$w.inactive, !active && styleContext === 'isPodcastSeason' && !!styles$w.inactive]];
917
907
  if (styleContext) {
918
- classNames = makeStyleContext(classNames, styleContext, styles$v);
908
+ classNames = makeStyleContext(classNames, styleContext, styles$w);
919
909
  }
920
910
  return /*#__PURE__*/React.createElement("div", {
921
911
  "data-testid": "dropdown",
@@ -923,13 +913,13 @@ const Dropdown = ({
923
913
  }, children);
924
914
  };
925
915
 
926
- var styles$u = {"root":"Toolbar-module_root__RnmlI","list":"Toolbar-module_list__-IhdP","item":"Toolbar-module_item__CWmGM","isInTopbar":"Toolbar-module_isInTopbar__WEDi8","center":"Toolbar-module_center__pvdiJ","game":"Toolbar-module_game__etwIA","gameSurvey":"Toolbar-module_gameSurvey__v4D31","slide":"Toolbar-module_slide__PtB3l","card":"Toolbar-module_card__Lutyq","isDark":"Toolbar-module_isDark__MG6Ar","dark":"Toolbar-module_dark__a9sgz","podcast":"Toolbar-module_podcast__ahY4M"};
916
+ var styles$v = {"root":"Toolbar-module_root__RnmlI","list":"Toolbar-module_list__-IhdP","item":"Toolbar-module_item__CWmGM","isInTopbar":"Toolbar-module_isInTopbar__WEDi8","center":"Toolbar-module_center__pvdiJ","game":"Toolbar-module_game__etwIA","gameSurvey":"Toolbar-module_gameSurvey__v4D31","slide":"Toolbar-module_slide__PtB3l","card":"Toolbar-module_card__Lutyq","isDark":"Toolbar-module_isDark__MG6Ar","dark":"Toolbar-module_dark__a9sgz","podcast":"Toolbar-module_podcast__ahY4M"};
927
917
 
928
918
  const ToolbarItem = ({
929
919
  children
930
920
  }) => {
931
921
  return /*#__PURE__*/React.createElement("li", {
932
- className: styles$u.item
922
+ className: styles$v.item
933
923
  }, children);
934
924
  };
935
925
 
@@ -937,19 +927,19 @@ const Toolbar = ({
937
927
  children,
938
928
  styleContext
939
929
  }) => {
940
- let classNames = [[styles$u.root, true]];
930
+ let classNames = [[styles$v.root, true]];
941
931
  if (styleContext) {
942
- classNames = makeStyleContext(classNames, styleContext, styles$u);
932
+ classNames = makeStyleContext(classNames, styleContext, styles$v);
943
933
  }
944
934
  return /*#__PURE__*/React.createElement("div", {
945
935
  "data-testid": "toolbar",
946
936
  className: makeClassName(classNames)
947
937
  }, /*#__PURE__*/React.createElement("ul", {
948
- className: styles$u.list
938
+ className: styles$v.list
949
939
  }, children));
950
940
  };
951
941
 
952
- 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","isInBookRelated":"Meta-module_isInBookRelated__Ohidg","mobile":"Meta-module_mobile__PbG8N","desktop":"Meta-module_desktop__W5AB7"};
942
+ var styles$u = {"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","isInBookRelated":"Meta-module_isInBookRelated__Ohidg","mobile":"Meta-module_mobile__PbG8N","desktop":"Meta-module_desktop__W5AB7"};
953
943
 
954
944
  const Meta = ({
955
945
  hasSource,
@@ -958,9 +948,9 @@ const Meta = ({
958
948
  onlyOn,
959
949
  styleContext
960
950
  }) => {
961
- let classNames = [[styles$t.root, true], [styles$t[theme], !!theme && !!styles$t[theme]], [styles$t[onlyOn], !!onlyOn], [styles$t.hasSource, hasSource]];
951
+ let classNames = [[styles$u.root, true], [styles$u[theme], !!theme && !!styles$u[theme]], [styles$u[onlyOn], !!onlyOn], [styles$u.hasSource, hasSource]];
962
952
  if (styleContext) {
963
- classNames = makeStyleContext(classNames, styleContext, styles$t);
953
+ classNames = makeStyleContext(classNames, styleContext, styles$u);
964
954
  }
965
955
  return /*#__PURE__*/React.createElement("div", {
966
956
  "data-testid": "meta",
@@ -968,7 +958,7 @@ const Meta = ({
968
958
  }, children);
969
959
  };
970
960
 
971
- var styles$s = {"root":"Timestamp-module_root__jPJ6w"};
961
+ var styles$t = {"root":"Timestamp-module_root__jPJ6w"};
972
962
 
973
963
  const Timestamp = ({
974
964
  publishedAt,
@@ -992,7 +982,7 @@ const Timestamp = ({
992
982
  return /*#__PURE__*/React.createElement("time", {
993
983
  suppressHydrationWarning: true,
994
984
  "data-testid": "timestamp",
995
- className: styles$s.root
985
+ className: styles$t.root
996
986
  }, published);
997
987
  };
998
988
 
@@ -1052,7 +1042,7 @@ const DangerousHTML = ({
1052
1042
  }));
1053
1043
  };
1054
1044
 
1055
- 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","isDefaultVideo":"EmbedBlock-module_isDefaultVideo__UTW9Q","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"};
1045
+ var styles$s = {"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","isDefaultVideo":"EmbedBlock-module_isDefaultVideo__UTW9Q","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"};
1056
1046
 
1057
1047
  const EmbedGif = ({
1058
1048
  gif,
@@ -1090,9 +1080,9 @@ const EmbedGif = ({
1090
1080
  };
1091
1081
  }, []);
1092
1082
  return /*#__PURE__*/React.createElement("div", {
1093
- className: styles$r.figure
1083
+ className: styles$s.figure
1094
1084
  }, /*#__PURE__*/React.createElement("div", {
1095
- className: styles$r.objectWrap,
1085
+ className: styles$s.objectWrap,
1096
1086
  style: style,
1097
1087
  "data-frozen": videoFrozen
1098
1088
  }, /*#__PURE__*/React.createElement("video", {
@@ -1157,7 +1147,7 @@ const EmbedBlock = ({
1157
1147
  case 'image':
1158
1148
  {
1159
1149
  return /*#__PURE__*/React.createElement("div", {
1160
- className: styles$r.figure
1150
+ className: styles$s.figure
1161
1151
  }, /*#__PURE__*/React.createElement(Image, {
1162
1152
  source: !optimized && [small, large],
1163
1153
  optimized: block.data.optimized,
@@ -1173,7 +1163,7 @@ const EmbedBlock = ({
1173
1163
  case 'game_embed':
1174
1164
  {
1175
1165
  return /*#__PURE__*/React.createElement("div", {
1176
- className: styles$r.gameEmbed
1166
+ className: styles$s.gameEmbed
1177
1167
  }, /*#__PURE__*/React.createElement("iframe", {
1178
1168
  src: block.data.game_src,
1179
1169
  id: block.data.game_id,
@@ -1183,7 +1173,7 @@ const EmbedBlock = ({
1183
1173
  case 'dots_on_image':
1184
1174
  {
1185
1175
  return /*#__PURE__*/React.createElement("div", {
1186
- className: styles$r.figure
1176
+ className: styles$s.figure
1187
1177
  }, /*#__PURE__*/React.createElement(DotsOnImage, {
1188
1178
  block: data
1189
1179
  }));
@@ -1192,9 +1182,9 @@ const EmbedBlock = ({
1192
1182
  {
1193
1183
  if (platform === 'mirror' && videoFileUrl) {
1194
1184
  return /*#__PURE__*/React.createElement("div", {
1195
- className: styles$r.object
1185
+ className: styles$s.object
1196
1186
  }, /*#__PURE__*/React.createElement("div", {
1197
- className: makeClassName([[styles$r.objectWrap, true], [styles$r.isDefaultVideo, true]])
1187
+ className: makeClassName([[styles$s.objectWrap, true], [styles$s.isDefaultVideo, true]])
1198
1188
  }, /*#__PURE__*/React.createElement("video", {
1199
1189
  src: videoFileUrl,
1200
1190
  poster: thumbnailUrl,
@@ -1204,12 +1194,12 @@ const EmbedBlock = ({
1204
1194
  })));
1205
1195
  }
1206
1196
  return /*#__PURE__*/React.createElement("div", {
1207
- className: styles$r.object
1197
+ className: styles$s.object
1208
1198
  }, /*#__PURE__*/React.createElement("div", {
1209
- className: makeClassName([[styles$r.wrapper, true], [styles$r.isProportional, isProportional]]),
1199
+ className: makeClassName([[styles$s.wrapper, true], [styles$s.isProportional, isProportional]]),
1210
1200
  style: style
1211
1201
  }, /*#__PURE__*/React.createElement(DangerousHTML, {
1212
- className: styles$r.objectWrap,
1202
+ className: styles$s.objectWrap,
1213
1203
  html: html
1214
1204
  })));
1215
1205
  }
@@ -1218,28 +1208,28 @@ const EmbedBlock = ({
1218
1208
  if (isProportional) {
1219
1209
  style.aspectRatio = `${block.data.width} / ${block.data.height}`;
1220
1210
  }
1221
- 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]];
1211
+ let classNames = [[styles$s.root, true], [styles$s.cc, cc], [styles$s[display], !!display && styles$s[display]], [styles$s[provider], !!provider && !!styles$s[provider]], [styles$s[onlyOn], !!onlyOn && styles$s[onlyOn]], [styles$s.mobileFullwidth, mobileFullwidth], [styles$s.proportional, isProportional]];
1222
1212
  // Убираем из контекста все, что не начинается с приставки isIn,
1223
1213
  // чтобы не применились лишние модификаторы
1224
1214
  // TODO: в w6 модификаторы должны передаваться явно
1225
1215
  if (styleContext && Array.isArray(styleContext)) {
1226
- const filteredContext = styleContext.filter(key => key.startsWith('isIn') && styles$r[key]).reduce((acc, key) => {
1216
+ const filteredContext = styleContext.filter(key => key.startsWith('isIn') && styles$s[key]).reduce((acc, key) => {
1227
1217
  acc.push(key);
1228
1218
  return acc;
1229
1219
  }, []);
1230
- classNames = makeStyleContext(classNames, filteredContext, styles$r);
1220
+ classNames = makeStyleContext(classNames, filteredContext, styles$s);
1231
1221
  }
1232
1222
  return /*#__PURE__*/React.createElement("figure", {
1233
1223
  className: makeClassName(classNames)
1234
1224
  }, children && (/*#__PURE__*/React.createElement("div", {
1235
- className: styles$r.object
1225
+ className: styles$s.object
1236
1226
  }, /*#__PURE__*/React.createElement("div", {
1237
- className: makeClassName([[styles$r.wrapper, true], [styles$r.isProportional, isProportional]]),
1227
+ className: makeClassName([[styles$s.wrapper, true], [styles$s.isProportional, isProportional]]),
1238
1228
  style: style
1239
1229
  }, /*#__PURE__*/React.createElement("div", {
1240
- className: styles$r.objectWrap
1230
+ className: styles$s.objectWrap
1241
1231
  }, children)))), !children && renderEmbed(style), cc === 'default' && /*#__PURE__*/React.createElement("figcaption", null, renderCC()), cc === 'button' && (/*#__PURE__*/React.createElement("button", {
1242
- className: styles$r.control,
1232
+ className: styles$s.control,
1243
1233
  type: "button",
1244
1234
  "aria-label": "Open",
1245
1235
  onClick: () => {
@@ -1344,7 +1334,7 @@ const EmbedBlockContainer = ({
1344
1334
  });
1345
1335
  };
1346
1336
 
1347
- var styles$q = {"root":"QuoteBlock-module_root__4qa1J","center":"QuoteBlock-module_center__1f83y"};
1337
+ var styles$r = {"root":"QuoteBlock-module_root__4qa1J","center":"QuoteBlock-module_center__1f83y"};
1348
1338
 
1349
1339
  const QuoteBlock = ({
1350
1340
  block: {
@@ -1352,9 +1342,9 @@ const QuoteBlock = ({
1352
1342
  },
1353
1343
  styleContext
1354
1344
  }) => {
1355
- let classNames = [[styles$q.root, true]];
1345
+ let classNames = [[styles$r.root, true]];
1356
1346
  if (styleContext) {
1357
- classNames = makeStyleContext(classNames, styleContext, styles$q);
1347
+ classNames = makeStyleContext(classNames, styleContext, styles$r);
1358
1348
  }
1359
1349
  return /*#__PURE__*/React.createElement("div", {
1360
1350
  "data-testid": "quote-block",
@@ -1366,7 +1356,7 @@ const QuoteBlock = ({
1366
1356
  }));
1367
1357
  };
1368
1358
 
1369
- 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"};
1359
+ var styles$q = {"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"};
1370
1360
 
1371
1361
  const CardTitle = ({
1372
1362
  block: {
@@ -1382,15 +1372,15 @@ const CardTitle = ({
1382
1372
  return /*#__PURE__*/React.createElement("div", {
1383
1373
  "data-testid": "card-title",
1384
1374
  id: id,
1385
- className: makeClassName([[styles$p.root, true], [styles$p[onlyOn], !!onlyOn], [styles$p[styleContext], !!styleContext && !!styles$p[styleContext]]])
1375
+ className: makeClassName([[styles$q.root, true], [styles$q[onlyOn], !!onlyOn], [styles$q[styleContext], !!styleContext && !!styles$q[styleContext]]])
1386
1376
  }, /*#__PURE__*/React.createElement("div", {
1387
- className: styles$p.index
1377
+ className: styles$q.index
1388
1378
  }, index), /*#__PURE__*/React.createElement("h3", {
1389
- className: styles$p.title
1379
+ className: styles$q.title
1390
1380
  }, text));
1391
1381
  };
1392
1382
 
1393
- var styles$o = {"root":"ChapterBlock-module_root__iw7d2","subtitle":"ChapterBlock-module_subtitle__IpWgz","mobile":"ChapterBlock-module_mobile__V1Eye","desktop":"ChapterBlock-module_desktop__9xWf4"};
1383
+ var styles$p = {"root":"ChapterBlock-module_root__iw7d2","subtitle":"ChapterBlock-module_subtitle__IpWgz","mobile":"ChapterBlock-module_mobile__V1Eye","desktop":"ChapterBlock-module_desktop__9xWf4"};
1394
1384
 
1395
1385
  const ChapterBlock = ({
1396
1386
  block: {
@@ -1403,9 +1393,9 @@ const ChapterBlock = ({
1403
1393
  return /*#__PURE__*/React.createElement("div", {
1404
1394
  "data-testid": "chapter-block",
1405
1395
  id: id,
1406
- className: makeClassName([[styles$o.root, true], [styles$o[onlyOn], !!onlyOn]])
1396
+ className: makeClassName([[styles$p.root, true], [styles$p[onlyOn], !!onlyOn]])
1407
1397
  }, /*#__PURE__*/React.createElement("div", {
1408
- className: makeClassName([[styles$o.subtitle, true], [styles$o[styleContext], !!styleContext && !!styles$o[styleContext]]]),
1398
+ className: makeClassName([[styles$p.subtitle, true], [styles$p[styleContext], !!styleContext && !!styles$p[styleContext]]]),
1409
1399
  dangerouslySetInnerHTML: {
1410
1400
  __html: data
1411
1401
  }
@@ -1421,7 +1411,7 @@ const generateGradient = (color, type) => {
1421
1411
  return `linear-gradient(-180deg, ${gradient})`;
1422
1412
  };
1423
1413
 
1424
- var styles$n = {"root":"SimpleTitle-module_root__YOzNn","mobile":"SimpleTitle-module_mobile__1QiJd","desktop":"SimpleTitle-module_desktop__ZF5Af"};
1414
+ var styles$o = {"root":"SimpleTitle-module_root__YOzNn","mobile":"SimpleTitle-module_mobile__1QiJd","desktop":"SimpleTitle-module_desktop__ZF5Af"};
1425
1415
 
1426
1416
  const SimpleTitle = ({
1427
1417
  block: {
@@ -1432,9 +1422,9 @@ const SimpleTitle = ({
1432
1422
  },
1433
1423
  styleContext
1434
1424
  }) => {
1435
- let classNames = [[styles$n.root, true], [styles$n[onlyOn], true]];
1425
+ let classNames = [[styles$o.root, true], [styles$o[onlyOn], true]];
1436
1426
  if (styleContext) {
1437
- classNames = makeStyleContext(classNames, styleContext, styles$n);
1427
+ classNames = makeStyleContext(classNames, styleContext, styles$o);
1438
1428
  }
1439
1429
  return /*#__PURE__*/React.createElement("h1", {
1440
1430
  "data-testid": "simple-title",
@@ -1442,7 +1432,7 @@ const SimpleTitle = ({
1442
1432
  }, first);
1443
1433
  };
1444
1434
 
1445
- 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","isInFeaturedBlock":"RichTitle-module_isInFeaturedBlock__3vYu9","isInMediaBlock":"RichTitle-module_isInMediaBlock__2h6rl","isInBookRelated":"RichTitle-module_isInBookRelated__LcCPV","isInDynamicBlock":"RichTitle-module_isInDynamicBlock__J-gM6","isInPodcastPlayer":"RichTitle-module_isInPodcastPlayer__kvEPH","large":"RichTitle-module_large__n2URP","medium":"RichTitle-module_medium__KkBLJ","mobile":"RichTitle-module_mobile__W5L9E","desktop":"RichTitle-module_desktop__k0PkC"};
1435
+ var styles$n = {"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","isInFeaturedBlock":"RichTitle-module_isInFeaturedBlock__3vYu9","isInMediaBlock":"RichTitle-module_isInMediaBlock__2h6rl","isInBookRelated":"RichTitle-module_isInBookRelated__LcCPV","isInDynamicBlock":"RichTitle-module_isInDynamicBlock__J-gM6","isInPodcastPlayer":"RichTitle-module_isInPodcastPlayer__kvEPH","large":"RichTitle-module_large__n2URP","medium":"RichTitle-module_medium__KkBLJ","mobile":"RichTitle-module_mobile__W5L9E","desktop":"RichTitle-module_desktop__k0PkC"};
1446
1436
 
1447
1437
  const RichTitle = ({
1448
1438
  block: {
@@ -1457,9 +1447,9 @@ const RichTitle = ({
1457
1447
  styleContext,
1458
1448
  size = 'default'
1459
1449
  }) => {
1460
- let classNames = [[styles$m.root, true], [styles$m[onlyOn], true], [styles$m.featured, !!featured], [styles$m[size], !!size]];
1450
+ let classNames = [[styles$n.root, true], [styles$n[onlyOn], true], [styles$n.featured, !!featured], [styles$n[size], !!size]];
1461
1451
  if (styleContext) {
1462
- classNames = makeStyleContext(classNames, styleContext, styles$m);
1452
+ classNames = makeStyleContext(classNames, styleContext, styles$n);
1463
1453
  }
1464
1454
  return /*#__PURE__*/React.createElement(TagName, {
1465
1455
  "data-testid": "rich-title",
@@ -1467,7 +1457,7 @@ const RichTitle = ({
1467
1457
  }, first, second && /*#__PURE__*/React.createElement("span", null, " ", second));
1468
1458
  };
1469
1459
 
1470
- 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"};
1460
+ var styles$m = {"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"};
1471
1461
 
1472
1462
  const SimpleBlock = ({
1473
1463
  block: {
@@ -1479,9 +1469,9 @@ const SimpleBlock = ({
1479
1469
  id = null
1480
1470
  }) => {
1481
1471
  let TagName;
1482
- let classNames = [[styles$l[type], !!type && !!styles$l[type]], [styles$l[onlyOn], true]];
1472
+ let classNames = [[styles$m[type], !!type && !!styles$m[type]], [styles$m[onlyOn], true]];
1483
1473
  if (styleContext) {
1484
- classNames = makeStyleContext(classNames, styleContext, styles$l);
1474
+ classNames = makeStyleContext(classNames, styleContext, styles$m);
1485
1475
  }
1486
1476
  switch (type) {
1487
1477
  case 'context_p':
@@ -1513,7 +1503,7 @@ const SimpleBlock = ({
1513
1503
  });
1514
1504
  };
1515
1505
 
1516
- 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"};
1506
+ var styles$l = {"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"};
1517
1507
 
1518
1508
  const ListBlock = ({
1519
1509
  block: {
@@ -1524,9 +1514,9 @@ const ListBlock = ({
1524
1514
  styleContext
1525
1515
  }) => {
1526
1516
  const TagName = type;
1527
- let classNames = [[styles$k.root, true], [styles$k[onlyOn], true], [styles$k[type], !!type && !!styles$k[type]]];
1517
+ let classNames = [[styles$l.root, true], [styles$l[onlyOn], true], [styles$l[type], !!type && !!styles$l[type]]];
1528
1518
  if (styleContext) {
1529
- classNames = makeStyleContext(classNames, styleContext, styles$k);
1519
+ classNames = makeStyleContext(classNames, styleContext, styles$l);
1530
1520
  }
1531
1521
  return /*#__PURE__*/React.createElement(TagName, {
1532
1522
  className: makeClassName(classNames),
@@ -1539,7 +1529,7 @@ const ListBlock = ({
1539
1529
  }))));
1540
1530
  };
1541
1531
 
1542
- 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"};
1532
+ var styles$k = {"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"};
1543
1533
 
1544
1534
  const RelatedBlock = ({
1545
1535
  block: {
@@ -1551,28 +1541,28 @@ const RelatedBlock = ({
1551
1541
  },
1552
1542
  styleContext
1553
1543
  }) => {
1554
- let classNames = [[styles$j.root, true], [styles$j[onlyOn], true]];
1544
+ let classNames = [[styles$k.root, true], [styles$k[onlyOn], true]];
1555
1545
  if (styleContext) {
1556
- classNames = makeStyleContext(classNames, styleContext, styles$j);
1546
+ classNames = makeStyleContext(classNames, styleContext, styles$k);
1557
1547
  }
1558
1548
  return /*#__PURE__*/React.createElement("div", {
1559
1549
  "data-testid": "related-block",
1560
1550
  className: makeClassName(classNames)
1561
1551
  }, /*#__PURE__*/React.createElement("h3", {
1562
- className: styles$j.header
1552
+ className: styles$k.header
1563
1553
  }, title), /*#__PURE__*/React.createElement("ul", {
1564
- className: styles$j.items
1554
+ className: styles$k.items
1565
1555
  }, related.map((item, index) => (/*#__PURE__*/React.createElement("li", {
1566
1556
  key: item.id || index,
1567
- className: styles$j[item.layout]
1557
+ className: styles$k[item.layout]
1568
1558
  }, /*#__PURE__*/React.createElement(Link, {
1569
1559
  to: item.full_url || `/${item.url}`
1570
1560
  }, /*#__PURE__*/React.createElement("span", {
1571
- className: styles$j.first
1561
+ className: styles$k.first
1572
1562
  }, item.title), item.second_title && ' ', item.second_title && /*#__PURE__*/React.createElement("span", null, item.second_title)))))));
1573
1563
  };
1574
1564
 
1575
- 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"};
1565
+ var styles$j = {"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"};
1576
1566
 
1577
1567
  const SourceBlock = ({
1578
1568
  block: {
@@ -1585,16 +1575,16 @@ const SourceBlock = ({
1585
1575
  },
1586
1576
  styleContext
1587
1577
  }) => {
1588
- let classNames = [[styles$i.root, true], [styles$i[onlyOn], true]];
1578
+ let classNames = [[styles$j.root, true], [styles$j[onlyOn], true]];
1589
1579
  if (styleContext) {
1590
- classNames = makeStyleContext(classNames, styleContext, styles$i);
1580
+ classNames = makeStyleContext(classNames, styleContext, styles$j);
1591
1581
  }
1592
1582
  return /*#__PURE__*/React.createElement("blockquote", {
1593
1583
  "data-testid": "source-block",
1594
1584
  cite: url,
1595
1585
  className: makeClassName(classNames)
1596
1586
  }, /*#__PURE__*/React.createElement("a", {
1597
- className: styles$i.text,
1587
+ className: styles$j.text,
1598
1588
  href: url,
1599
1589
  target: "_blank",
1600
1590
  rel: "noopener noreferrer"
@@ -1604,11 +1594,11 @@ const SourceBlock = ({
1604
1594
  __html: item.data
1605
1595
  }
1606
1596
  }))), /*#__PURE__*/React.createElement("footer", null, /*#__PURE__*/React.createElement("cite", {
1607
- className: styles$i.origin
1597
+ className: styles$j.origin
1608
1598
  }, origin))));
1609
1599
  };
1610
1600
 
1611
- 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"};
1601
+ var styles$i = {"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"};
1612
1602
 
1613
1603
  const SensitiveBlock = ({
1614
1604
  block,
@@ -1631,40 +1621,40 @@ const SensitiveBlock = ({
1631
1621
  const handleClick = () => {
1632
1622
  isVisible(true);
1633
1623
  };
1634
- let classNames = [[styles$h.root, true], [styles$h.visible, visible], [styles$h[display], display && styles$h[display]]];
1624
+ let classNames = [[styles$i.root, true], [styles$i.visible, visible], [styles$i[display], display && styles$i[display]]];
1635
1625
  let context = ['isInSensitiveBlock'];
1636
1626
  if (styleContext) {
1637
- classNames = makeStyleContext(classNames, styleContext, styles$h);
1627
+ classNames = makeStyleContext(classNames, styleContext, styles$i);
1638
1628
  context = [...styleContext, 'isInSensitiveBlock'];
1639
1629
  }
1640
1630
  return /*#__PURE__*/React.createElement("div", {
1641
1631
  "data-testid": "sensitive-block",
1642
1632
  className: makeClassName(classNames)
1643
1633
  }, /*#__PURE__*/React.createElement("div", {
1644
- className: styles$h.container
1634
+ className: styles$i.container
1645
1635
  }, /*#__PURE__*/React.createElement("div", {
1646
- className: styles$h.overlay,
1636
+ className: styles$i.overlay,
1647
1637
  style: {
1648
1638
  backgroundImage: `url(${blurredImage})`
1649
1639
  }
1650
1640
  }, /*#__PURE__*/React.createElement("div", {
1651
- className: styles$h.content
1641
+ className: styles$i.content
1652
1642
  }, /*#__PURE__*/React.createElement("p", {
1653
1643
  dangerouslySetInnerHTML: {
1654
1644
  __html: block.title
1655
1645
  }
1656
1646
  }), /*#__PURE__*/React.createElement("div", {
1657
- className: styles$h.button
1647
+ className: styles$i.button
1658
1648
  }, /*#__PURE__*/React.createElement(Button, {
1659
1649
  onClick: () => handleClick(),
1660
1650
  theme: "light"
1661
1651
  }, block.button.text)))), /*#__PURE__*/React.createElement("div", {
1662
- className: styles$h.media
1652
+ className: styles$i.media
1663
1653
  }, /*#__PURE__*/React.createElement(EmbedBlockContainer, {
1664
1654
  block: block.item,
1665
1655
  styleContext: context
1666
1656
  }))), cc && (/*#__PURE__*/React.createElement("figcaption", {
1667
- className: styles$h.figcaption
1657
+ className: styles$i.figcaption
1668
1658
  }, /*#__PURE__*/React.createElement(MediaCaption, {
1669
1659
  credit: credit,
1670
1660
  caption: caption,
@@ -1672,7 +1662,7 @@ const SensitiveBlock = ({
1672
1662
  }))));
1673
1663
  };
1674
1664
 
1675
- 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"};
1665
+ var styles$h = {"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"};
1676
1666
 
1677
1667
  const GroupedBlock = ({
1678
1668
  block,
@@ -1688,19 +1678,19 @@ const GroupedBlock = ({
1688
1678
  return width / (height / maxHeight);
1689
1679
  });
1690
1680
  const sumWidth = normalizedBoxesWidth.reduce((sum, x) => sum + x);
1691
- 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]]];
1681
+ let classNames = [[styles$h.root, true], [styles$h[onlyOn], true], [styles$h.hasFigcaption, block.cc === 'default'], [styles$h[block.display], !!block.display && styles$h[block.display]]];
1692
1682
  if (styleContext) {
1693
- classNames = makeStyleContext(classNames, styleContext, styles$g);
1683
+ classNames = makeStyleContext(classNames, styleContext, styles$h);
1694
1684
  }
1695
1685
  return /*#__PURE__*/React.createElement("div", {
1696
1686
  "data-testid": "grouped-block",
1697
1687
  className: makeClassName(classNames)
1698
1688
  }, /*#__PURE__*/React.createElement("div", {
1699
- className: styles$g.items
1689
+ className: styles$h.items
1700
1690
  }, block.data.map((item, index) => {
1701
1691
  const percentWidth = normalizedBoxesWidth[index] / sumWidth * 100;
1702
1692
  return /*#__PURE__*/React.createElement("div", {
1703
- className: styles$g.item,
1693
+ className: styles$h.item,
1704
1694
  key: item.id,
1705
1695
  style: {
1706
1696
  width: `${percentWidth}%`
@@ -1713,7 +1703,7 @@ const GroupedBlock = ({
1713
1703
  styleContext: ['isInGroupedBlock']
1714
1704
  })));
1715
1705
  })), block.cc && (/*#__PURE__*/React.createElement("figcaption", {
1716
- className: styles$g.figcaption
1706
+ className: styles$h.figcaption
1717
1707
  }, /*#__PURE__*/React.createElement(MediaCaption, {
1718
1708
  credit: block.credit,
1719
1709
  caption: block.caption,
@@ -1721,7 +1711,7 @@ const GroupedBlock = ({
1721
1711
  }))));
1722
1712
  };
1723
1713
 
1724
- var styles$f = {"root":"MetaItem-module_root__sRbrZ","hasBullets":"MetaItem-module_hasBullets__b1eW9","hasSource":"MetaItem-module_hasSource__35olm","datetime":"MetaItem-module_datetime__--O8c","tag":"MetaItem-module_tag__3HzOp"};
1714
+ var styles$g = {"root":"MetaItem-module_root__sRbrZ","hasBullets":"MetaItem-module_hasBullets__b1eW9","hasSource":"MetaItem-module_hasSource__35olm","datetime":"MetaItem-module_datetime__--O8c","tag":"MetaItem-module_tag__3HzOp"};
1725
1715
 
1726
1716
  const MetaItem = ({
1727
1717
  hasSource,
@@ -1730,28 +1720,28 @@ const MetaItem = ({
1730
1720
  bullets,
1731
1721
  variant
1732
1722
  }) => {
1733
- const classNames = [[styles$f.root, true], [styles$f[type], !!type && !!styles$f[type]], [styles$f.hasSource, !!hasSource], [styles$f.hasBullets, !!bullets], [styles$f[variant], !!variant && !!styles$f[variant]]];
1723
+ const classNames = [[styles$g.root, true], [styles$g[type], !!type && !!styles$g[type]], [styles$g.hasSource, !!hasSource], [styles$g.hasBullets, !!bullets], [styles$g[variant], !!variant && !!styles$g[variant]]];
1734
1724
  return /*#__PURE__*/React.createElement("div", {
1735
1725
  "data-testid": "meta-item",
1736
1726
  className: makeClassName(classNames)
1737
1727
  }, children);
1738
1728
  };
1739
1729
 
1740
- var styles$e = {"root":"MetaItemLive-module_root__XfQiW","gold":"MetaItemLive-module_gold__f1UOy","icon":"MetaItemLive-module_icon__JIMLl","pulse":"MetaItemLive-module_pulse__zzrle","text":"MetaItemLive-module_text__wgLcT"};
1730
+ var styles$f = {"root":"MetaItemLive-module_root__XfQiW","gold":"MetaItemLive-module_gold__f1UOy","icon":"MetaItemLive-module_icon__JIMLl","pulse":"MetaItemLive-module_pulse__zzrle","text":"MetaItemLive-module_text__wgLcT"};
1741
1731
 
1742
1732
  const MetaItemLive = ({
1743
1733
  theme = 'gold',
1744
1734
  children
1745
1735
  }) => {
1746
- const classNames = [[styles$e.root, true], [styles$e[theme], !!theme && styles$e[theme]]];
1736
+ const classNames = [[styles$f.root, true], [styles$f[theme], !!theme && styles$f[theme]]];
1747
1737
  return /*#__PURE__*/React.createElement("div", {
1748
1738
  "data-testid": "meta-item-live",
1749
1739
  "data-meta": "live",
1750
1740
  className: makeClassName(classNames)
1751
1741
  }, /*#__PURE__*/React.createElement("div", {
1752
- className: styles$e.icon
1742
+ className: styles$f.icon
1753
1743
  }), children && /*#__PURE__*/React.createElement("span", {
1754
- className: styles$e.text
1744
+ className: styles$f.text
1755
1745
  }, children));
1756
1746
  };
1757
1747
 
@@ -1771,7 +1761,7 @@ const pluralize = (number, one, two, five) => {
1771
1761
  return five;
1772
1762
  };
1773
1763
 
1774
- var styles$d = {"root":"DocumentItemsCount-module_root__u4M3y","items":"DocumentItemsCount-module_items__OE-hf"};
1764
+ var styles$e = {"root":"DocumentItemsCount-module_root__u4M3y","items":"DocumentItemsCount-module_items__OE-hf"};
1775
1765
 
1776
1766
  const DocumentItemsCount = ({
1777
1767
  type,
@@ -1808,9 +1798,9 @@ const DocumentItemsCount = ({
1808
1798
  const itemsCount = `${items} ${pluralize(items, i18n[lang][type].one, i18n[lang][type].two, i18n[lang][type].five)}`;
1809
1799
  return /*#__PURE__*/React.createElement("div", {
1810
1800
  "data-testid": "document-items-count",
1811
- className: styles$d.root
1801
+ className: styles$e.root
1812
1802
  }, children, /*#__PURE__*/React.createElement("span", {
1813
- className: styles$d.items
1803
+ className: styles$e.items
1814
1804
  }, itemsCount));
1815
1805
  };
1816
1806
 
@@ -1919,15 +1909,15 @@ const MetaContainer = ({
1919
1909
  }));
1920
1910
  };
1921
1911
 
1922
- 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"};
1912
+ var styles$d = {"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"};
1923
1913
 
1924
1914
  const DonatesTeaser = ({
1925
1915
  styleContext,
1926
1916
  lang = 'ru'
1927
1917
  }) => {
1928
- let classNames = [[styles$c.root, true], [styles$c[lang], styles$c[lang]]];
1918
+ let classNames = [[styles$d.root, true], [styles$d[lang], styles$d[lang]]];
1929
1919
  if (styleContext) {
1930
- classNames = makeStyleContext(classNames, styleContext, styles$c);
1920
+ classNames = makeStyleContext(classNames, styleContext, styles$d);
1931
1921
  }
1932
1922
  const data = {
1933
1923
  ru: {
@@ -1947,20 +1937,20 @@ const DonatesTeaser = ({
1947
1937
  "data-testid": "donates-teaser",
1948
1938
  className: makeClassName(classNames)
1949
1939
  }, /*#__PURE__*/React.createElement("div", {
1950
- className: styles$c.main
1940
+ className: styles$d.main
1951
1941
  }, /*#__PURE__*/React.createElement("h3", {
1952
- className: styles$c.title
1942
+ className: styles$d.title
1953
1943
  }, /*#__PURE__*/React.createElement("span", {
1954
1944
  dangerouslySetInnerHTML: {
1955
1945
  __html: data[lang].title
1956
1946
  }
1957
1947
  }), ` `, /*#__PURE__*/React.createElement("span", {
1958
- className: styles$c.text,
1948
+ className: styles$d.text,
1959
1949
  dangerouslySetInnerHTML: {
1960
1950
  __html: data[lang].subtitle
1961
1951
  }
1962
1952
  }))), /*#__PURE__*/React.createElement("div", {
1963
- className: styles$c.cta
1953
+ className: styles$d.cta
1964
1954
  }, /*#__PURE__*/React.createElement("a", {
1965
1955
  href: data[lang].href,
1966
1956
  target: "_blank",
@@ -1968,15 +1958,15 @@ const DonatesTeaser = ({
1968
1958
  }, /*#__PURE__*/React.createElement("span", null, data[lang].button))));
1969
1959
  };
1970
1960
 
1971
- 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"};
1961
+ var styles$c = {"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"};
1972
1962
 
1973
1963
  const AnnouncementInText = ({
1974
1964
  styleContext,
1975
1965
  lang = 'ru'
1976
1966
  }) => {
1977
- let classNames = [[styles$b.root, true], [styles$b[lang], styles$b[lang]]];
1967
+ let classNames = [[styles$c.root, true], [styles$c[lang], styles$c[lang]]];
1978
1968
  if (styleContext) {
1979
- classNames = makeStyleContext(classNames, styleContext, styles$b);
1969
+ classNames = makeStyleContext(classNames, styleContext, styles$c);
1980
1970
  }
1981
1971
  const data = {
1982
1972
  ru: {
@@ -1997,9 +1987,9 @@ const AnnouncementInText = ({
1997
1987
  "data-testid": "announcement-in-text",
1998
1988
  className: makeClassName(classNames)
1999
1989
  }, /*#__PURE__*/React.createElement("div", {
2000
- className: styles$b.body
1990
+ className: styles$c.body
2001
1991
  }, /*#__PURE__*/React.createElement("h3", {
2002
- className: styles$b.title,
1992
+ className: styles$c.title,
2003
1993
  dangerouslySetInnerHTML: {
2004
1994
  __html: localeData.title
2005
1995
  }
@@ -2008,18 +1998,18 @@ const AnnouncementInText = ({
2008
1998
  __html: localeData.text
2009
1999
  }
2010
2000
  })), /*#__PURE__*/React.createElement("div", {
2011
- className: styles$b.footer
2001
+ className: styles$c.footer
2012
2002
  }, /*#__PURE__*/React.createElement("a", {
2013
- className: styles$b.link,
2003
+ className: styles$c.link,
2014
2004
  href: localeData.href,
2015
2005
  target: "_blank",
2016
2006
  rel: "noreferrer"
2017
2007
  }, /*#__PURE__*/React.createElement("span", null, localeData.button)), /*#__PURE__*/React.createElement("span", {
2018
- className: styles$b.button
2008
+ className: styles$c.button
2019
2009
  }, /*#__PURE__*/React.createElement("span", null, localeData.button))));
2020
2010
  };
2021
2011
 
2022
- 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"};
2012
+ var styles$b = {"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"};
2023
2013
 
2024
2014
  const VersesBlock = ({
2025
2015
  block: {
@@ -2029,9 +2019,9 @@ const VersesBlock = ({
2029
2019
  },
2030
2020
  styleContext
2031
2021
  }) => {
2032
- let classNames = [[styles$a.root, true], [styles$a[onlyOn], true], [styles$a[type], !!type && !!styles$a[type]]];
2022
+ let classNames = [[styles$b.root, true], [styles$b[onlyOn], true], [styles$b[type], !!type && !!styles$b[type]]];
2033
2023
  if (styleContext) {
2034
- classNames = makeStyleContext(classNames, styleContext, styles$a);
2024
+ classNames = makeStyleContext(classNames, styleContext, styles$b);
2035
2025
  }
2036
2026
  return /*#__PURE__*/React.createElement("ul", {
2037
2027
  className: makeClassName(classNames),
@@ -2201,7 +2191,7 @@ const RenderBlocks = ({
2201
2191
  }
2202
2192
  };
2203
2193
 
2204
- 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-"};
2194
+ var styles$a = {"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-"};
2205
2195
 
2206
2196
  const Cover = ({
2207
2197
  block: {
@@ -2222,13 +2212,13 @@ const Cover = ({
2222
2212
  }) => {
2223
2213
  const [isPopoverShown, setIsPopoverShown] = useState(false);
2224
2214
  const style = {};
2225
- let classNames = [[styles$9.root, true], [styles$9[onlyOn], !!onlyOn && !!styles$9[onlyOn]]];
2215
+ let classNames = [[styles$a.root, true], [styles$a[onlyOn], !!onlyOn && !!styles$a[onlyOn]]];
2226
2216
  if (styleContext) {
2227
- classNames = makeStyleContext(classNames, styleContext, styles$9);
2217
+ classNames = makeStyleContext(classNames, styleContext, styles$a);
2228
2218
  }
2229
2219
  if (gradients) {
2230
2220
  const theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
2231
- classNames = makeStyleContext(classNames, theme, styles$9);
2221
+ classNames = makeStyleContext(classNames, theme, styles$a);
2232
2222
  style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
2233
2223
  }
2234
2224
  const renderCC = context => (/*#__PURE__*/React.createElement(MediaCaption, {
@@ -2240,20 +2230,20 @@ const Cover = ({
2240
2230
  "data-testid": "cover",
2241
2231
  className: makeClassName(classNames)
2242
2232
  }, /*#__PURE__*/React.createElement("div", {
2243
- className: styles$9.image
2233
+ className: styles$a.image
2244
2234
  }, /*#__PURE__*/React.createElement(Image, {
2245
2235
  optimized: urls,
2246
2236
  ratio: mobileRatio,
2247
2237
  display: "narrow"
2248
2238
  })), /*#__PURE__*/React.createElement("div", {
2249
- className: styles$9.body,
2239
+ className: styles$a.body,
2250
2240
  style: style
2251
2241
  }, blocks.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2252
2242
  key: item.id,
2253
2243
  block: item,
2254
2244
  styleContext: styleContext
2255
2245
  })))), cc === 'button' && (/*#__PURE__*/React.createElement("button", {
2256
- className: styles$9.control,
2246
+ className: styles$a.control,
2257
2247
  type: "button",
2258
2248
  "aria-label": "Open",
2259
2249
  onClick: () => {
@@ -2266,7 +2256,7 @@ const Cover = ({
2266
2256
  }, renderCC('isInPopover'))));
2267
2257
  };
2268
2258
 
2269
- 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"};
2259
+ var styles$9 = {"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"};
2270
2260
 
2271
2261
  const HalfBlock = ({
2272
2262
  block: {
@@ -2283,29 +2273,29 @@ const HalfBlock = ({
2283
2273
  },
2284
2274
  styleContext
2285
2275
  }) => {
2286
- let classNames = [[styles$8.root, true], [styles$8[onlyOn], true]];
2276
+ let classNames = [[styles$9.root, true], [styles$9[onlyOn], true]];
2287
2277
  if (styleContext) {
2288
- classNames = makeStyleContext(classNames, styleContext, styles$8);
2278
+ classNames = makeStyleContext(classNames, styleContext, styles$9);
2289
2279
  }
2290
2280
  return /*#__PURE__*/React.createElement("div", {
2291
2281
  "data-testid": "half-block",
2292
2282
  className: makeClassName(classNames)
2293
2283
  }, /*#__PURE__*/React.createElement("div", {
2294
- className: styles$8.main
2284
+ className: styles$9.main
2295
2285
  }, /*#__PURE__*/React.createElement("div", {
2296
- className: styles$8.image
2286
+ className: styles$9.image
2297
2287
  }, /*#__PURE__*/React.createElement(Image, {
2298
2288
  optimized: optimized,
2299
2289
  ratio: ratio,
2300
2290
  display: "super_full"
2301
2291
  })), /*#__PURE__*/React.createElement("div", {
2302
- className: styles$8.body
2292
+ className: styles$9.body
2303
2293
  }, data.blocks.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2304
2294
  key: item.id,
2305
2295
  block: item,
2306
2296
  styleContext: ['rich']
2307
2297
  }))))), /*#__PURE__*/React.createElement("div", {
2308
- className: styles$8.footer
2298
+ className: styles$9.footer
2309
2299
  }, /*#__PURE__*/React.createElement(MediaCaption, {
2310
2300
  credit: credit,
2311
2301
  caption: caption,
@@ -2313,7 +2303,7 @@ const HalfBlock = ({
2313
2303
  })));
2314
2304
  };
2315
2305
 
2316
- var styles$7 = {"root":"ImportantLead-module_root__-rnt6","slide":"ImportantLead-module_slide__zcovu","mobile":"ImportantLead-module_mobile__msInp","desktop":"ImportantLead-module_desktop__ELC2-"};
2306
+ var styles$8 = {"root":"ImportantLead-module_root__-rnt6","slide":"ImportantLead-module_slide__zcovu","mobile":"ImportantLead-module_mobile__msInp","desktop":"ImportantLead-module_desktop__ELC2-"};
2317
2307
 
2318
2308
  const ImportantLead = ({
2319
2309
  block: {
@@ -2322,9 +2312,9 @@ const ImportantLead = ({
2322
2312
  },
2323
2313
  styleContext
2324
2314
  }) => {
2325
- let classNames = [[styles$7.root, true], [styles$7[onlyOn], !!onlyOn]];
2315
+ let classNames = [[styles$8.root, true], [styles$8[onlyOn], !!onlyOn]];
2326
2316
  if (styleContext) {
2327
- classNames = makeStyleContext(classNames, styleContext, styles$7);
2317
+ classNames = makeStyleContext(classNames, styleContext, styles$8);
2328
2318
  }
2329
2319
  return /*#__PURE__*/React.createElement("div", {
2330
2320
  "data-testid": "important-lead",
@@ -2336,7 +2326,7 @@ const ImportantLead = ({
2336
2326
  }))));
2337
2327
  };
2338
2328
 
2339
- 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"};
2329
+ var styles$7 = {"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"};
2340
2330
 
2341
2331
  const Spoiler = ({
2342
2332
  block: {
@@ -2365,11 +2355,11 @@ const Spoiler = ({
2365
2355
  postMessage('', 'openSpoiler', 'click');
2366
2356
  }
2367
2357
  };
2368
- let classNames = [[styles$6.root, true], [styles$6[onlyOn], !!onlyOn], [styles$6[display], !!display && styles$6[display]], [[styles$6.spoiled], !!spoiled]];
2358
+ let classNames = [[styles$7.root, true], [styles$7[onlyOn], !!onlyOn], [styles$7[display], !!display && styles$7[display]], [[styles$7.spoiled], !!spoiled]];
2369
2359
  const context = ['center'];
2370
2360
  if (styleContext) {
2371
2361
  context.concat(styleContext);
2372
- classNames = makeStyleContext(classNames, styleContext, styles$6);
2362
+ classNames = makeStyleContext(classNames, styleContext, styles$7);
2373
2363
  }
2374
2364
  const buttonCollapse = button ? button.collapse : 'Свернуть';
2375
2365
  const buttonExpande = button ? button.expand : buttonTitle;
@@ -2378,15 +2368,15 @@ const Spoiler = ({
2378
2368
  className: makeClassName(classNames),
2379
2369
  "data-testid": "spoiler"
2380
2370
  }, /*#__PURE__*/React.createElement("div", {
2381
- className: styles$6.header
2371
+ className: styles$7.header
2382
2372
  }, title && /*#__PURE__*/React.createElement("h3", null, title)), /*#__PURE__*/React.createElement("div", {
2383
- className: styles$6.body
2373
+ className: styles$7.body
2384
2374
  }, blocks.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2385
2375
  key: item.id,
2386
2376
  block: item,
2387
2377
  styleContext: context
2388
2378
  })))), /*#__PURE__*/React.createElement("div", {
2389
- className: styles$6.footer
2379
+ className: styles$7.footer
2390
2380
  }, /*#__PURE__*/React.createElement(Button, {
2391
2381
  size: "default",
2392
2382
  theme: "gray",
@@ -2397,7 +2387,7 @@ const Spoiler = ({
2397
2387
  }))));
2398
2388
  };
2399
2389
 
2400
- 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"};
2390
+ var styles$6 = {"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"};
2401
2391
 
2402
2392
  /* eslint-disable react/jsx-no-target-blank */
2403
2393
  const RelatedRichBlock = ({
@@ -2434,16 +2424,16 @@ const RelatedRichBlock = ({
2434
2424
  const handleClick = () => {
2435
2425
  postMessage('richRelated', url, 'click');
2436
2426
  };
2437
- let classNames = [[styles$5.root, true], [styles$5[cardType], !!layout && !!styles$5[cardType]], [styles$5.hasGradient, !!gradients], [styles$5[onlyOn], !!onlyOn && !!styles$5[onlyOn]]];
2427
+ let classNames = [[styles$6.root, true], [styles$6[cardType], !!layout && !!styles$6[cardType]], [styles$6.hasGradient, !!gradients], [styles$6[onlyOn], !!onlyOn && !!styles$6[onlyOn]]];
2438
2428
  let context = ['isInMediaBlock'];
2439
2429
  if (styleContext) {
2440
- classNames = makeStyleContext(classNames, styleContext, styles$5);
2430
+ classNames = makeStyleContext(classNames, styleContext, styles$6);
2441
2431
  context = [...styleContext, 'isInMediaBlock'];
2442
2432
  }
2443
2433
  if (gradients) {
2444
2434
  styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
2445
2435
  const theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
2446
- classNames = makeStyleContext(classNames, theme, styles$5);
2436
+ classNames = makeStyleContext(classNames, theme, styles$6);
2447
2437
  if (onlyOn === 'desktop') {
2448
2438
  style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
2449
2439
  }
@@ -2455,27 +2445,27 @@ const RelatedRichBlock = ({
2455
2445
  onClick: () => handleClick(),
2456
2446
  ref: ref
2457
2447
  }, layout === 'rich' && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
2458
- className: styles$5.overlay,
2448
+ className: styles$6.overlay,
2459
2449
  style: style
2460
2450
  }), /*#__PURE__*/React.createElement("div", {
2461
- className: styles$5.overlayHeader,
2451
+ className: styles$6.overlayHeader,
2462
2452
  style: styleHeader
2463
2453
  }))), /*#__PURE__*/React.createElement("div", {
2464
- className: styles$5.tag
2454
+ className: styles$6.tag
2465
2455
  }, /*#__PURE__*/React.createElement(Tag, {
2466
2456
  size: "small",
2467
2457
  theme: "inherit",
2468
2458
  styleContext: "richRelated"
2469
2459
  }, tag)), /*#__PURE__*/React.createElement("div", {
2470
- className: styles$5.cover
2460
+ className: styles$6.cover
2471
2461
  }, /*#__PURE__*/React.createElement("div", {
2472
- className: styles$5.picture
2462
+ className: styles$6.picture
2473
2463
  }, /*#__PURE__*/React.createElement(Image, {
2474
2464
  optimized: urls,
2475
2465
  ratio: ratio,
2476
2466
  display: "narrow"
2477
2467
  }))), /*#__PURE__*/React.createElement("div", {
2478
- className: styles$5.body
2468
+ className: styles$6.body
2479
2469
  }, blocks.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2480
2470
  key: item.id,
2481
2471
  block: item,
@@ -2483,7 +2473,7 @@ const RelatedRichBlock = ({
2483
2473
  })))));
2484
2474
  };
2485
2475
 
2486
- 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"};
2476
+ var styles$5 = {"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"};
2487
2477
 
2488
2478
  /* eslint-disable react/jsx-no-target-blank */
2489
2479
  const ShopRelatedBlock = ({
@@ -2520,14 +2510,14 @@ const ShopRelatedBlock = ({
2520
2510
  const handleClick = () => {
2521
2511
  postMessage('productRelated', url, 'click');
2522
2512
  };
2523
- let classNames = [[styles$4.root, true], [styles$4.hasGradient, !!gradients], [styles$4[onlyOn], !!onlyOn && !!styles$4[onlyOn]]];
2513
+ let classNames = [[styles$5.root, true], [styles$5.hasGradient, !!gradients], [styles$5[onlyOn], !!onlyOn && !!styles$5[onlyOn]]];
2524
2514
  if (styleContext) {
2525
- classNames = makeStyleContext(classNames, styleContext, styles$4);
2515
+ classNames = makeStyleContext(classNames, styleContext, styles$5);
2526
2516
  }
2527
2517
  if (gradients) {
2528
2518
  styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
2529
2519
  const theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
2530
- classNames = makeStyleContext(classNames, theme, styles$4);
2520
+ classNames = makeStyleContext(classNames, theme, styles$5);
2531
2521
  if (onlyOn === 'desktop') {
2532
2522
  style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
2533
2523
  }
@@ -2540,44 +2530,45 @@ const ShopRelatedBlock = ({
2540
2530
  onClick: () => handleClick(),
2541
2531
  ref: ref
2542
2532
  }, layout === 'rich' && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
2543
- className: styles$4.overlay,
2533
+ className: styles$5.overlay,
2544
2534
  style: style
2545
2535
  }), /*#__PURE__*/React.createElement("div", {
2546
- className: styles$4.overlayHeader,
2536
+ className: styles$5.overlayHeader,
2547
2537
  style: styleHeader
2548
2538
  }))), /*#__PURE__*/React.createElement("div", {
2549
- className: styles$4.tag
2539
+ className: styles$5.tag
2550
2540
  }, /*#__PURE__*/React.createElement(Tag, {
2551
2541
  size: "small",
2552
2542
  theme: "inherit",
2553
2543
  styleContext: "richRelated"
2554
2544
  }, tag)), /*#__PURE__*/React.createElement("div", {
2555
- className: styles$4.cover
2545
+ className: styles$5.cover
2556
2546
  }, /*#__PURE__*/React.createElement("div", {
2557
- className: styles$4.picture
2547
+ className: styles$5.picture
2558
2548
  }, /*#__PURE__*/React.createElement(Image, {
2559
2549
  optimized: urls,
2560
2550
  ratio: ratio,
2561
2551
  display: "narrow"
2562
2552
  }))), /*#__PURE__*/React.createElement("div", {
2563
- className: styles$4.body
2553
+ className: styles$5.body
2564
2554
  }, /*#__PURE__*/React.createElement("h2", {
2565
- className: styles$4.title
2555
+ className: styles$5.title
2566
2556
  }, firstTitle, /*#__PURE__*/React.createElement("span", {
2567
- className: styles$4.price
2557
+ className: styles$5.price
2568
2558
  }, secondTitle))));
2569
2559
  };
2570
2560
 
2571
- 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"};
2561
+ var styles$4 = {"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","mobile":"RelatedBook-module_mobile__7rm-n","desktop":"RelatedBook-module_desktop__OZ9Jx"};
2572
2562
 
2573
2563
  const RelatedBook = ({
2574
2564
  block,
2575
2565
  styleContext
2576
2566
  }) => {
2577
2567
  const theme = block.data.theme.text_color === '0,0,0' ? 'isDark' : 'isLight';
2578
- let classNames = [[styles$3.root, true], [styles$3[theme], theme], [styles$3[block.data.onlyOn], !!block.data.onlyOn && !!styles$3[block.data.onlyOn]]];
2568
+ const onlyOn = block.only_on || block.data.onlyOn;
2569
+ let classNames = [[styles$4.root, true], [styles$4[theme], theme], [styles$4[onlyOn], !!onlyOn && !!styles$4[onlyOn]]];
2579
2570
  if (styleContext) {
2580
- classNames = makeStyleContext(classNames, styleContext, styles$3);
2571
+ classNames = makeStyleContext(classNames, styleContext, styles$4);
2581
2572
  }
2582
2573
  const cssProps = {
2583
2574
  '--bgColor': `rgb(${block.data.theme.background_color || '0, 0, 0'})`
@@ -2587,13 +2578,13 @@ const RelatedBook = ({
2587
2578
  className: makeClassName(classNames),
2588
2579
  style: cssProps
2589
2580
  }, /*#__PURE__*/React.createElement("div", {
2590
- className: styles$3.container
2581
+ className: styles$4.container
2591
2582
  }, /*#__PURE__*/React.createElement("div", {
2592
- className: styles$3.imageWrap
2583
+ className: styles$4.imageWrap
2593
2584
  }, /*#__PURE__*/React.createElement("div", {
2594
- className: styles$3.image
2585
+ className: styles$4.image
2595
2586
  }, /*#__PURE__*/React.createElement("picture", {
2596
- className: styles$3.picture
2587
+ className: styles$4.picture
2597
2588
  }, /*#__PURE__*/React.createElement(Image, {
2598
2589
  optimized: block.data.cover.urls,
2599
2590
  ratio: 0,
@@ -2601,9 +2592,9 @@ const RelatedBook = ({
2601
2592
  styleContext: ['isStatic'],
2602
2593
  lazy: true
2603
2594
  })))), /*#__PURE__*/React.createElement("div", {
2604
- className: styles$3.contentWrap
2595
+ className: styles$4.contentWrap
2605
2596
  }, /*#__PURE__*/React.createElement("div", {
2606
- className: styles$3.content
2597
+ className: styles$4.content
2607
2598
  }, block.data.blocks.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2608
2599
  key: item.id,
2609
2600
  block: item,
@@ -2687,7 +2678,7 @@ const RawHtmlBlock = ({
2687
2678
  }
2688
2679
  };
2689
2680
 
2690
- 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"};
2681
+ var styles$3 = {"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"};
2691
2682
 
2692
2683
  /* eslint-disable jsx-a11y/label-has-associated-control */
2693
2684
  const ListViewSwitcher = ({
@@ -2696,20 +2687,134 @@ const ListViewSwitcher = ({
2696
2687
  size = 'md'
2697
2688
  }) => (/*#__PURE__*/React.createElement("label", {
2698
2689
  "data-testid": "listViewSwitcher",
2699
- className: makeClassName([[styles$2.root, true], [styles$2[size], true]])
2690
+ className: makeClassName([[styles$3.root, true], [styles$3[size], true]])
2700
2691
  }, /*#__PURE__*/React.createElement("input", {
2701
- className: styles$2.input,
2692
+ className: styles$3.input,
2702
2693
  type: "checkbox",
2703
2694
  checked: enabled,
2704
2695
  onChange: onChange
2705
2696
  }), /*#__PURE__*/React.createElement("span", {
2706
- className: styles$2.knob
2697
+ className: styles$3.knob
2707
2698
  }), /*#__PURE__*/React.createElement("span", {
2708
- className: styles$2.grid
2699
+ className: styles$3.grid
2709
2700
  }), /*#__PURE__*/React.createElement("span", {
2710
- className: styles$2.list
2701
+ className: styles$3.list
2711
2702
  })));
2712
2703
 
2704
+ var styles$2 = {"root":"RelatedCarousel-module_root__G-Eub","track":"RelatedCarousel-module_track__UVQ2n","slide":"RelatedCarousel-module_slide__MI9tF","dots":"RelatedCarousel-module_dots__mOSIC","dotsTrack":"RelatedCarousel-module_dotsTrack__V7bnX","dotCell":"RelatedCarousel-module_dotCell__kl64s","dot":"RelatedCarousel-module_dot__Jo52r","isSmall":"RelatedCarousel-module_isSmall__ZP5hd","isTiny":"RelatedCarousel-module_isTiny__mjhtD","isActive":"RelatedCarousel-module_isActive__Nz2aj"};
2705
+
2706
+ const VISIBLE_DOTS = 6;
2707
+ const EDGE_DOTS = 2;
2708
+ const getDotsStart = (activeIndex, currentStart, total) => {
2709
+ if (total <= VISIBLE_DOTS) {
2710
+ return 0;
2711
+ }
2712
+ let start = currentStart;
2713
+ if (activeIndex < start + EDGE_DOTS) {
2714
+ start = activeIndex - EDGE_DOTS;
2715
+ }
2716
+ if (activeIndex > start + VISIBLE_DOTS - 1 - EDGE_DOTS) {
2717
+ start = activeIndex - VISIBLE_DOTS + 1 + EDGE_DOTS;
2718
+ }
2719
+ return Math.max(0, Math.min(start, total - VISIBLE_DOTS));
2720
+ };
2721
+ const getDotScale = (index, start, total) => {
2722
+ const position = index - start;
2723
+ const hasBefore = start > 0;
2724
+ const hasAfter = start + VISIBLE_DOTS < total;
2725
+ if (hasBefore && position === 0) {
2726
+ return 'tiny';
2727
+ }
2728
+ if (hasBefore && position === 1) {
2729
+ return 'small';
2730
+ }
2731
+ if (hasAfter && position === VISIBLE_DOTS - 1) {
2732
+ return 'tiny';
2733
+ }
2734
+ if (hasAfter && position === VISIBLE_DOTS - 2) {
2735
+ return 'small';
2736
+ }
2737
+ return 'full';
2738
+ };
2739
+ const getSlideStep = track => {
2740
+ if (!track) {
2741
+ return 0;
2742
+ }
2743
+ const [first, second] = Array.from(track.children);
2744
+ if (!first) {
2745
+ return 0;
2746
+ }
2747
+ return second ? second.offsetLeft - first.offsetLeft : first.offsetWidth;
2748
+ };
2749
+ const RelatedCarousel = ({
2750
+ children,
2751
+ ariaLabel
2752
+ }) => {
2753
+ const trackRef = useRef(null);
2754
+ const frameRef = useRef(0);
2755
+ const [activeIndex, setActiveIndex] = useState(0);
2756
+ const [dotsStart, setDotsStart] = useState(0);
2757
+ const slides = React.Children.toArray(children);
2758
+ const lastIndex = slides.length - 1;
2759
+ const total = slides.length;
2760
+ useEffect(() => {
2761
+ const track = trackRef.current;
2762
+ if (!track) {
2763
+ return undefined;
2764
+ }
2765
+ const handleScroll = () => {
2766
+ cancelAnimationFrame(frameRef.current);
2767
+ frameRef.current = requestAnimationFrame(() => {
2768
+ const step = getSlideStep(track);
2769
+ if (!step) {
2770
+ return;
2771
+ }
2772
+ const index = Math.max(0, Math.min(lastIndex, Math.round(track.scrollLeft / step)));
2773
+ setActiveIndex(index);
2774
+ setDotsStart(start => getDotsStart(index, start, lastIndex + 1));
2775
+ });
2776
+ };
2777
+ track.addEventListener('scroll', handleScroll, {
2778
+ passive: true
2779
+ });
2780
+ return () => {
2781
+ cancelAnimationFrame(frameRef.current);
2782
+ track.removeEventListener('scroll', handleScroll);
2783
+ };
2784
+ }, [lastIndex]);
2785
+ const dotsStyle = {
2786
+ '--dotsVisible': Math.min(total, VISIBLE_DOTS),
2787
+ '--dotsStart': dotsStart
2788
+ };
2789
+ return /*#__PURE__*/React.createElement("div", {
2790
+ "data-testid": "related-carousel",
2791
+ className: makeClassName([[styles$2.root, true]]),
2792
+ role: "group",
2793
+ "aria-label": ariaLabel
2794
+ }, /*#__PURE__*/React.createElement("ul", {
2795
+ className: styles$2.track,
2796
+ ref: trackRef
2797
+ }, slides.map((slide, index) => (/*#__PURE__*/React.createElement("li", {
2798
+ className: styles$2.slide,
2799
+ key: index
2800
+ }, slide)))), /*#__PURE__*/React.createElement("div", {
2801
+ "aria-hidden": "true",
2802
+ className: styles$2.dots,
2803
+ style: dotsStyle
2804
+ }, /*#__PURE__*/React.createElement("div", {
2805
+ className: styles$2.dotsTrack
2806
+ }, slides.map((_slide, index) => {
2807
+ const isActive = index === activeIndex;
2808
+ const scale = getDotScale(index, dotsStart, total);
2809
+ return /*#__PURE__*/React.createElement("span", {
2810
+ key: index,
2811
+ className: styles$2.dotCell
2812
+ }, /*#__PURE__*/React.createElement("span", {
2813
+ className: makeClassName([[styles$2.dot, true], [styles$2.isActive, isActive], [styles$2.isSmall, scale === 'small'], [styles$2.isTiny, scale === 'tiny']])
2814
+ }));
2815
+ }))));
2816
+ };
2817
+
2713
2818
  var styles$1 = {"root":"ToolbarButton-module_root__upsEH","isDark":"ToolbarButton-module_isDark__gWpv-","dark":"ToolbarButton-module_dark__5XOEp","icon":"ToolbarButton-module_icon__Ldcgq","text":"ToolbarButton-module_text__4R2a0","isActive":"ToolbarButton-module_isActive__N4kkV"};
2714
2819
 
2715
2820
  const ToolbarButton = ({
@@ -2757,5 +2862,5 @@ const TooltipFooter = ({
2757
2862
  }, children);
2758
2863
  };
2759
2864
 
2760
- export { AnnouncementInText, 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 };
2865
+ export { AnnouncementInText, 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, RelatedCarousel, RelatedRichBlock, RenderBlocks, RichTitle, Secondary, SensitiveBlock, ShopRelatedBlock, SimpleBlock, SimpleTitle, SourceBlock, Spoiler, SvgSymbol, Switcher, Table, Tag, Timestamp, Toolbar, ToolbarButton, ToolbarItem, Tooltip, TooltipFooter };
2761
2866
  //# sourceMappingURL=ui-kit-2.esm.js.map