@meduza/ui-kit-2 0.1.53 → 0.1.54-a

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.
@@ -10,6 +10,7 @@ var reactIntersectionObserver = require('react-intersection-observer');
10
10
  var dayjs = _interopDefault(require('dayjs'));
11
11
  require('dayjs/locale/ru');
12
12
  var relativeTime = _interopDefault(require('dayjs/plugin/relativeTime'));
13
+ var reactRouterDom = require('react-router-dom');
13
14
 
14
15
  var makeClassName = function makeClassName(list) {
15
16
  return list.filter(function (_ref) {
@@ -1005,35 +1006,26 @@ var Dropdown = function Dropdown(_ref2) {
1005
1006
  }, children);
1006
1007
  };
1007
1008
 
1008
- var styles$f = {"root":"Toolbar-module_root__2HF2r","list":"Toolbar-module_list__1n5ny","item":"Toolbar-module_item__36x7d","isInTopbar":"Toolbar-module_isInTopbar__223iP","center":"Toolbar-module_center__3_H8M","game":"Toolbar-module_game__5-jY_","gameSurvey":"Toolbar-module_gameSurvey__1hQEz","dark":"Toolbar-module_dark__2Ejc9"};
1009
+ var toolbarStyles = {"root":"Toolbar-module_root__2HF2r","list":"Toolbar-module_list__1n5ny","item":"Toolbar-module_item__36x7d","isInTopbar":"Toolbar-module_isInTopbar__223iP","center":"Toolbar-module_center__3_H8M","game":"Toolbar-module_game__5-jY_","gameSurvey":"Toolbar-module_gameSurvey__1hQEz","dark":"Toolbar-module_dark__2Ejc9"};
1009
1010
 
1010
1011
  var Toolbar = function Toolbar(_ref) {
1011
1012
  var children = _ref.children,
1012
1013
  styleContext = _ref.styleContext;
1013
- var classNames = [[styles$f.root, true]];
1014
+ var classNames = [[toolbarStyles.root, true]];
1014
1015
 
1015
1016
  if (styleContext) {
1016
- classNames = makeStyleContext(classNames, styleContext, styles$f);
1017
+ classNames = makeStyleContext(classNames, styleContext, toolbarStyles);
1017
1018
  }
1018
1019
 
1019
- var renderItems = function renderItems() {
1020
- return React.Children.map(children, function (item, index) {
1021
- return React__default.createElement("li", {
1022
- className: styles$f.item,
1023
- key: index + "-" + item.props.type
1024
- }, React__default.cloneElement(item));
1025
- });
1026
- };
1027
-
1028
1020
  return React__default.createElement("div", {
1029
1021
  "data-testid": "toolbar",
1030
1022
  className: makeClassName(classNames)
1031
1023
  }, React__default.createElement("ul", {
1032
- className: styles$f.list
1033
- }, renderItems()));
1024
+ className: toolbarStyles.list
1025
+ }, children));
1034
1026
  };
1035
1027
 
1036
- var styles$g = {"root":"Meta-module_root__12AG7","rich":"Meta-module_rich__1XBtZ","podcast":"Meta-module_podcast__1m4zo","episode":"Meta-module_episode__1K2Xv","simple":"Meta-module_simple__3vUiI","slide":"Meta-module_slide__3g6fG","card":"Meta-module_card__LE1RK","game":"Meta-module_game__3aNlZ","isInMaterial":"Meta-module_isInMaterial__zaYMy","isInSearchItem":"Meta-module_isInSearchItem__1wbpx","isInMediaBlock":"Meta-module_isInMediaBlock__3xfPF","center":"Meta-module_center__3BBPr","half":"Meta-module_half__1xRkT","light":"Meta-module_light__2baE-","dark":"Meta-module_dark__24y9m","hasSource":"Meta-module_hasSource__2lXiN","bookmark":"Meta-module_bookmark__3ot3k","mobile":"Meta-module_mobile__22LGV","desktop":"Meta-module_desktop__1ZGUS"};
1028
+ var styles$f = {"root":"Meta-module_root__12AG7","rich":"Meta-module_rich__1XBtZ","podcast":"Meta-module_podcast__1m4zo","episode":"Meta-module_episode__1K2Xv","simple":"Meta-module_simple__3vUiI","slide":"Meta-module_slide__3g6fG","card":"Meta-module_card__LE1RK","game":"Meta-module_game__3aNlZ","isInMaterial":"Meta-module_isInMaterial__zaYMy","isInSearchItem":"Meta-module_isInSearchItem__1wbpx","isInMediaBlock":"Meta-module_isInMediaBlock__3xfPF","center":"Meta-module_center__3BBPr","half":"Meta-module_half__1xRkT","light":"Meta-module_light__2baE-","dark":"Meta-module_dark__24y9m","hasSource":"Meta-module_hasSource__2lXiN","bookmark":"Meta-module_bookmark__3ot3k","mobile":"Meta-module_mobile__22LGV","desktop":"Meta-module_desktop__1ZGUS"};
1037
1029
 
1038
1030
  var Meta = function Meta(_ref) {
1039
1031
  var hasSource = _ref.hasSource,
@@ -1041,10 +1033,10 @@ var Meta = function Meta(_ref) {
1041
1033
  children = _ref.children,
1042
1034
  onlyOn = _ref.onlyOn,
1043
1035
  styleContext = _ref.styleContext;
1044
- var classNames = [[styles$g.root, true], [styles$g[theme], !!theme && !!styles$g[theme]], [styles$g[onlyOn], !!onlyOn], [styles$g.hasSource, hasSource]];
1036
+ var classNames = [[styles$f.root, true], [styles$f[theme], !!theme && !!styles$f[theme]], [styles$f[onlyOn], !!onlyOn], [styles$f.hasSource, hasSource]];
1045
1037
 
1046
1038
  if (styleContext) {
1047
- classNames = makeStyleContext(classNames, styleContext, styles$g);
1039
+ classNames = makeStyleContext(classNames, styleContext, styles$f);
1048
1040
  }
1049
1041
 
1050
1042
  return React__default.createElement("div", {
@@ -1053,7 +1045,7 @@ var Meta = function Meta(_ref) {
1053
1045
  }, children);
1054
1046
  };
1055
1047
 
1056
- var styles$h = {"root":"Timestamp-module_root__coOvT"};
1048
+ var styles$g = {"root":"Timestamp-module_root__coOvT"};
1057
1049
 
1058
1050
  var Timestamp = function Timestamp(_ref) {
1059
1051
  var publishedAt = _ref.publishedAt,
@@ -1078,7 +1070,7 @@ var Timestamp = function Timestamp(_ref) {
1078
1070
 
1079
1071
  return React__default.createElement("time", {
1080
1072
  "data-testid": "timestamp",
1081
- className: styles$h.root
1073
+ className: styles$g.root
1082
1074
  }, published);
1083
1075
  };
1084
1076
 
@@ -1145,7 +1137,7 @@ var DangerousHTML = function DangerousHTML(_ref) {
1145
1137
  }));
1146
1138
  };
1147
1139
 
1148
- var styles$i = {"root":"EmbedBlock-module_root__28k9U","object":"EmbedBlock-module_object__2_UZ7","objectWrap":"EmbedBlock-module_objectWrap__1aDVd","gameEmbed":"EmbedBlock-module_gameEmbed__AZQSo","proportional":"EmbedBlock-module_proportional__3lAv4","default":"EmbedBlock-module_default__LSDny","xs":"EmbedBlock-module_xs__1hFgW","full":"EmbedBlock-module_full__1TEjx","super_full":"EmbedBlock-module_super_full__1Fn9A","figure":"EmbedBlock-module_figure__vAvcN","dark":"EmbedBlock-module_dark__1be2G","isInGroupedBlock":"EmbedBlock-module_isInGroupedBlock__3r_i-","control":"EmbedBlock-module_control__xr8dZ","raw_html":"EmbedBlock-module_raw_html__MQoAA","mobileFullwidth":"EmbedBlock-module_mobileFullwidth__QFFLH","isInCard":"EmbedBlock-module_isInCard__37rtq","isInSlide":"EmbedBlock-module_isInSlide__2ea5q","cc":"EmbedBlock-module_cc__1BQ5g","isInSensitiveBlock":"EmbedBlock-module_isInSensitiveBlock__3wWYF","isInAnswer":"EmbedBlock-module_isInAnswer__tLlgs","picture":"EmbedBlock-module_picture__186q0","wrapper":"EmbedBlock-module_wrapper__33XvX","mobile":"EmbedBlock-module_mobile__1P-eo","desktop":"EmbedBlock-module_desktop__SF5a_"};
1140
+ var styles$h = {"root":"EmbedBlock-module_root__28k9U","object":"EmbedBlock-module_object__2_UZ7","objectWrap":"EmbedBlock-module_objectWrap__1aDVd","gameEmbed":"EmbedBlock-module_gameEmbed__AZQSo","proportional":"EmbedBlock-module_proportional__3lAv4","default":"EmbedBlock-module_default__LSDny","xs":"EmbedBlock-module_xs__1hFgW","full":"EmbedBlock-module_full__1TEjx","super_full":"EmbedBlock-module_super_full__1Fn9A","figure":"EmbedBlock-module_figure__vAvcN","dark":"EmbedBlock-module_dark__1be2G","isInGroupedBlock":"EmbedBlock-module_isInGroupedBlock__3r_i-","control":"EmbedBlock-module_control__xr8dZ","raw_html":"EmbedBlock-module_raw_html__MQoAA","mobileFullwidth":"EmbedBlock-module_mobileFullwidth__QFFLH","isInCard":"EmbedBlock-module_isInCard__37rtq","isInSlide":"EmbedBlock-module_isInSlide__2ea5q","cc":"EmbedBlock-module_cc__1BQ5g","isInSensitiveBlock":"EmbedBlock-module_isInSensitiveBlock__3wWYF","isInAnswer":"EmbedBlock-module_isInAnswer__tLlgs","picture":"EmbedBlock-module_picture__186q0","wrapper":"EmbedBlock-module_wrapper__33XvX","mobile":"EmbedBlock-module_mobile__1P-eo","desktop":"EmbedBlock-module_desktop__SF5a_"};
1149
1141
 
1150
1142
  var EmbedGif = function EmbedGif(_ref) {
1151
1143
  var gif = _ref.gif,
@@ -1191,9 +1183,9 @@ var EmbedGif = function EmbedGif(_ref) {
1191
1183
  };
1192
1184
  }, []);
1193
1185
  return React__default.createElement("div", {
1194
- className: styles$i.figure
1186
+ className: styles$h.figure
1195
1187
  }, React__default.createElement("div", {
1196
- className: styles$i.objectWrap,
1188
+ className: styles$h.objectWrap,
1197
1189
  style: style,
1198
1190
  "data-frozen": videoFrozen
1199
1191
  }, React__default.createElement("video", {
@@ -1259,7 +1251,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
1259
1251
  case 'image':
1260
1252
  {
1261
1253
  return React__default.createElement("div", {
1262
- className: styles$i.figure
1254
+ className: styles$h.figure
1263
1255
  }, React__default.createElement(Image, {
1264
1256
  source: !optimized && [small, large],
1265
1257
  optimized: block.data.optimized,
@@ -1275,7 +1267,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
1275
1267
  case 'game_embed':
1276
1268
  {
1277
1269
  return React__default.createElement("div", {
1278
- className: styles$i.gameEmbed
1270
+ className: styles$h.gameEmbed
1279
1271
  }, React__default.createElement("iframe", {
1280
1272
  src: block.data.game_src,
1281
1273
  id: block.data.game_id,
@@ -1286,7 +1278,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
1286
1278
  case 'dots_on_image':
1287
1279
  {
1288
1280
  return React__default.createElement("div", {
1289
- className: styles$i.figure
1281
+ className: styles$h.figure
1290
1282
  }, React__default.createElement(DotsOnImage, {
1291
1283
  block: data
1292
1284
  }));
@@ -1295,12 +1287,12 @@ var EmbedBlock = function EmbedBlock(_ref) {
1295
1287
  default:
1296
1288
  {
1297
1289
  return React__default.createElement("div", {
1298
- className: styles$i.object
1290
+ className: styles$h.object
1299
1291
  }, React__default.createElement("div", {
1300
- className: styles$i.wrapper,
1292
+ className: styles$h.wrapper,
1301
1293
  style: style
1302
1294
  }, React__default.createElement(DangerousHTML, {
1303
- className: styles$i.objectWrap,
1295
+ className: styles$h.objectWrap,
1304
1296
  html: html
1305
1297
  })));
1306
1298
  }
@@ -1312,31 +1304,31 @@ var EmbedBlock = function EmbedBlock(_ref) {
1312
1304
  style.height = 0;
1313
1305
  }
1314
1306
 
1315
- var classNames = [[styles$i.root, true], [styles$i.cc, cc], [styles$i[display], !!display && styles$i[display]], [styles$i[provider], !!provider && !!styles$i[provider]], [styles$i[onlyOn], !!onlyOn && styles$i[onlyOn]], [styles$i.mobileFullwidth, mobileFullwidth], [styles$i.proportional, isProportional]]; // Убираем из контекста все, что не начинается с приставки isIn,
1307
+ var classNames = [[styles$h.root, true], [styles$h.cc, cc], [styles$h[display], !!display && styles$h[display]], [styles$h[provider], !!provider && !!styles$h[provider]], [styles$h[onlyOn], !!onlyOn && styles$h[onlyOn]], [styles$h.mobileFullwidth, mobileFullwidth], [styles$h.proportional, isProportional]]; // Убираем из контекста все, что не начинается с приставки isIn,
1316
1308
  // чтобы не применились лишние модификаторы
1317
1309
  // TODO: в w6 модификаторы должны передаваться явно
1318
1310
 
1319
1311
  if (styleContext && Array.isArray(styleContext)) {
1320
1312
  var filteredContext = styleContext.filter(function (key) {
1321
- return key.startsWith('isIn') && styles$i[key];
1313
+ return key.startsWith('isIn') && styles$h[key];
1322
1314
  }).reduce(function (acc, key) {
1323
1315
  acc.push(key);
1324
1316
  return acc;
1325
1317
  }, []);
1326
- classNames = makeStyleContext(classNames, filteredContext, styles$i);
1318
+ classNames = makeStyleContext(classNames, filteredContext, styles$h);
1327
1319
  }
1328
1320
 
1329
1321
  return React__default.createElement("figure", {
1330
1322
  className: makeClassName(classNames)
1331
1323
  }, children && React__default.createElement("div", {
1332
- className: styles$i.object
1324
+ className: styles$h.object
1333
1325
  }, React__default.createElement("div", {
1334
- className: styles$i.wrapper,
1326
+ className: styles$h.wrapper,
1335
1327
  style: style
1336
1328
  }, React__default.createElement("div", {
1337
- className: styles$i.objectWrap
1329
+ className: styles$h.objectWrap
1338
1330
  }, children))), !children && renderEmbed(style), cc === 'default' && React__default.createElement("figcaption", null, renderCC()), cc === 'button' && React__default.createElement("button", {
1339
- className: styles$i.control,
1331
+ className: styles$h.control,
1340
1332
  type: "button",
1341
1333
  "aria-label": "Open",
1342
1334
  onClick: function onClick() {
@@ -1412,15 +1404,15 @@ var EmbedBlockContainer = function EmbedBlockContainer(_ref) {
1412
1404
  });
1413
1405
  };
1414
1406
 
1415
- var styles$j = {"root":"QuoteBlock-module_root__2GrcC","center":"QuoteBlock-module_center__cTFNy"};
1407
+ var styles$i = {"root":"QuoteBlock-module_root__2GrcC","center":"QuoteBlock-module_center__cTFNy"};
1416
1408
 
1417
1409
  var QuoteBlock = function QuoteBlock(_ref) {
1418
1410
  var data = _ref.block.data,
1419
1411
  styleContext = _ref.styleContext;
1420
- var classNames = [[styles$j.root, true]];
1412
+ var classNames = [[styles$i.root, true]];
1421
1413
 
1422
1414
  if (styleContext) {
1423
- classNames = makeStyleContext(classNames, styleContext, styles$j);
1415
+ classNames = makeStyleContext(classNames, styleContext, styles$i);
1424
1416
  }
1425
1417
 
1426
1418
  return React__default.createElement("div", {
@@ -1433,7 +1425,7 @@ var QuoteBlock = function QuoteBlock(_ref) {
1433
1425
  }));
1434
1426
  };
1435
1427
 
1436
- var styles$k = {"root":"CardTitle-module_root__1uqqF","index":"CardTitle-module_index__4FsTf","title":"CardTitle-module_title__2iTI6","mobile":"CardTitle-module_mobile__1_kij","desktop":"CardTitle-module_desktop__1l3_n"};
1428
+ var styles$j = {"root":"CardTitle-module_root__1uqqF","index":"CardTitle-module_index__4FsTf","title":"CardTitle-module_title__2iTI6","mobile":"CardTitle-module_mobile__1_kij","desktop":"CardTitle-module_desktop__1l3_n"};
1437
1429
 
1438
1430
  var CardTitle = function CardTitle(_ref) {
1439
1431
  var _ref$block$data = _ref.block.data,
@@ -1443,15 +1435,15 @@ var CardTitle = function CardTitle(_ref) {
1443
1435
  styleContext = _ref.styleContext;
1444
1436
  return React__default.createElement("div", {
1445
1437
  "data-testid": "card-title",
1446
- className: makeClassName([[styles$k.root, true], [styles$k[onlyOn], !!onlyOn], [styles$k[styleContext], !!styleContext && !!styles$k[styleContext]]])
1438
+ className: makeClassName([[styles$j.root, true], [styles$j[onlyOn], !!onlyOn], [styles$j[styleContext], !!styleContext && !!styles$j[styleContext]]])
1447
1439
  }, React__default.createElement("div", {
1448
- className: styles$k.index
1440
+ className: styles$j.index
1449
1441
  }, index), React__default.createElement("h3", {
1450
- className: styles$k.title
1442
+ className: styles$j.title
1451
1443
  }, text));
1452
1444
  };
1453
1445
 
1454
- var styles$l = {"root":"ChapterBlock-module_root__1WyVn","subtitle":"ChapterBlock-module_subtitle__3TXll","mobile":"ChapterBlock-module_mobile__CiO0w","desktop":"ChapterBlock-module_desktop__tk1Nk"};
1446
+ var styles$k = {"root":"ChapterBlock-module_root__1WyVn","subtitle":"ChapterBlock-module_subtitle__3TXll","mobile":"ChapterBlock-module_mobile__CiO0w","desktop":"ChapterBlock-module_desktop__tk1Nk"};
1455
1447
 
1456
1448
  var ChapterBlock = function ChapterBlock(_ref) {
1457
1449
  var _ref$block = _ref.block,
@@ -1460,9 +1452,9 @@ var ChapterBlock = function ChapterBlock(_ref) {
1460
1452
  styleContext = _ref.styleContext;
1461
1453
  return React__default.createElement("div", {
1462
1454
  "data-testid": "chapter-block",
1463
- className: makeClassName([[styles$l.root, true], [styles$l[onlyOn], !!onlyOn]])
1455
+ className: makeClassName([[styles$k.root, true], [styles$k[onlyOn], !!onlyOn]])
1464
1456
  }, React__default.createElement("div", {
1465
- className: makeClassName([[styles$l.subtitle, true], [styles$l[styleContext], !!styleContext && !!styles$l[styleContext]]]),
1457
+ className: makeClassName([[styles$k.subtitle, true], [styles$k[styleContext], !!styleContext && !!styles$k[styleContext]]]),
1466
1458
  dangerouslySetInnerHTML: {
1467
1459
  __html: data
1468
1460
  }
@@ -1480,17 +1472,17 @@ var generateGradient = function generateGradient(color, type) {
1480
1472
  return "linear-gradient(-180deg, " + gradient + ")";
1481
1473
  };
1482
1474
 
1483
- var styles$m = {"root":"SimpleTitle-module_root__2jVQN","mobile":"SimpleTitle-module_mobile__11gBz","desktop":"SimpleTitle-module_desktop__3yXgy"};
1475
+ var styles$l = {"root":"SimpleTitle-module_root__2jVQN","mobile":"SimpleTitle-module_mobile__11gBz","desktop":"SimpleTitle-module_desktop__3yXgy"};
1484
1476
 
1485
1477
  var SimpleTitle = function SimpleTitle(_ref) {
1486
1478
  var _ref$block = _ref.block,
1487
1479
  first = _ref$block.data.first,
1488
1480
  onlyOn = _ref$block.only_on,
1489
1481
  styleContext = _ref.styleContext;
1490
- var classNames = [[styles$m.root, true], [styles$m[onlyOn], true]];
1482
+ var classNames = [[styles$l.root, true], [styles$l[onlyOn], true]];
1491
1483
 
1492
1484
  if (styleContext) {
1493
- classNames = makeStyleContext(classNames, styleContext, styles$m);
1485
+ classNames = makeStyleContext(classNames, styleContext, styles$l);
1494
1486
  }
1495
1487
 
1496
1488
  return React__default.createElement("div", {
@@ -1499,7 +1491,7 @@ var SimpleTitle = function SimpleTitle(_ref) {
1499
1491
  }, first);
1500
1492
  };
1501
1493
 
1502
- var styles$n = {"root":"RichTitle-module_root__BK_WT","slide":"RichTitle-module_slide__1A-gB","game":"RichTitle-module_game__1g8Bn","half":"RichTitle-module_half__10GRI","featured":"RichTitle-module_featured__wJfaQ","isInMediaBlock":"RichTitle-module_isInMediaBlock__3RDw4","mobile":"RichTitle-module_mobile__1Cb6E","desktop":"RichTitle-module_desktop__2ixSQ"};
1494
+ var styles$m = {"root":"RichTitle-module_root__BK_WT","slide":"RichTitle-module_slide__1A-gB","game":"RichTitle-module_game__1g8Bn","half":"RichTitle-module_half__10GRI","featured":"RichTitle-module_featured__wJfaQ","isInMediaBlock":"RichTitle-module_isInMediaBlock__3RDw4","mobile":"RichTitle-module_mobile__1Cb6E","desktop":"RichTitle-module_desktop__2ixSQ"};
1503
1495
 
1504
1496
  var RichTitle = function RichTitle(_ref) {
1505
1497
  var _ref$block = _ref.block,
@@ -1511,10 +1503,10 @@ var RichTitle = function RichTitle(_ref) {
1511
1503
  _ref$block$data$as = _ref$block$data.as,
1512
1504
  TagName = _ref$block$data$as === void 0 ? 'h1' : _ref$block$data$as,
1513
1505
  styleContext = _ref.styleContext;
1514
- var classNames = [[styles$n.root, true], [styles$n[onlyOn], true], [styles$n.featured, !!featured]];
1506
+ var classNames = [[styles$m.root, true], [styles$m[onlyOn], true], [styles$m.featured, !!featured]];
1515
1507
 
1516
1508
  if (styleContext) {
1517
- classNames = makeStyleContext(classNames, styleContext, styles$n);
1509
+ classNames = makeStyleContext(classNames, styleContext, styles$m);
1518
1510
  }
1519
1511
 
1520
1512
  return React__default.createElement(TagName, {
@@ -1523,7 +1515,7 @@ var RichTitle = function RichTitle(_ref) {
1523
1515
  }, first, second && React__default.createElement("span", null, " ", second));
1524
1516
  };
1525
1517
 
1526
- var styles$o = {"p":"SimpleBlock-module_p__Q3azD","h2":"SimpleBlock-module_h2__S0LRs","h3":"SimpleBlock-module_h3__2Kv7Y","h4":"SimpleBlock-module_h4__2TJO3","lead":"SimpleBlock-module_lead__35nXx","lead_hr":"SimpleBlock-module_lead_hr__1yD5v","context_p":"SimpleBlock-module_context_p__33saY","blockquote":"SimpleBlock-module_blockquote__pwpcX","game":"SimpleBlock-module_game__2sjgl","slide":"SimpleBlock-module_slide__Aqgfu","dark":"SimpleBlock-module_dark__1J_ov","isInIntro":"SimpleBlock-module_isInIntro__DfutD","center":"SimpleBlock-module_center__2rjif","isInImportantLead":"SimpleBlock-module_isInImportantLead__3VGzT","isInAnswer":"SimpleBlock-module_isInAnswer__3aX6X","mobile":"SimpleBlock-module_mobile__Ckgek","desktop":"SimpleBlock-module_desktop__2se2o"};
1518
+ var styles$n = {"p":"SimpleBlock-module_p__Q3azD","h2":"SimpleBlock-module_h2__S0LRs","h3":"SimpleBlock-module_h3__2Kv7Y","h4":"SimpleBlock-module_h4__2TJO3","lead":"SimpleBlock-module_lead__35nXx","lead_hr":"SimpleBlock-module_lead_hr__1yD5v","context_p":"SimpleBlock-module_context_p__33saY","blockquote":"SimpleBlock-module_blockquote__pwpcX","game":"SimpleBlock-module_game__2sjgl","slide":"SimpleBlock-module_slide__Aqgfu","dark":"SimpleBlock-module_dark__1J_ov","isInIntro":"SimpleBlock-module_isInIntro__DfutD","center":"SimpleBlock-module_center__2rjif","isInImportantLead":"SimpleBlock-module_isInImportantLead__3VGzT","isInAnswer":"SimpleBlock-module_isInAnswer__3aX6X","mobile":"SimpleBlock-module_mobile__Ckgek","desktop":"SimpleBlock-module_desktop__2se2o"};
1527
1519
 
1528
1520
  var SimpleBlock = function SimpleBlock(_ref) {
1529
1521
  var _ref$block = _ref.block,
@@ -1532,10 +1524,10 @@ var SimpleBlock = function SimpleBlock(_ref) {
1532
1524
  onlyOn = _ref$block.only_on,
1533
1525
  styleContext = _ref.styleContext;
1534
1526
  var TagName;
1535
- var classNames = [[styles$o[type], !!type && !!styles$o[type]], [styles$o[onlyOn], true]];
1527
+ var classNames = [[styles$n[type], !!type && !!styles$n[type]], [styles$n[onlyOn], true]];
1536
1528
 
1537
1529
  if (styleContext) {
1538
- classNames = makeStyleContext(classNames, styleContext, styles$o);
1530
+ classNames = makeStyleContext(classNames, styleContext, styles$n);
1539
1531
  }
1540
1532
 
1541
1533
  switch (type) {
@@ -1566,7 +1558,7 @@ var SimpleBlock = function SimpleBlock(_ref) {
1566
1558
  });
1567
1559
  };
1568
1560
 
1569
- var styles$p = {"root":"ListBlock-module_root__3Q3Ga","ol":"ListBlock-module_ol__21CgV","ul":"ListBlock-module_ul__2MRrS","center":"ListBlock-module_center__tdIwd","isInImportantLead":"ListBlock-module_isInImportantLead__UP0ic","dark":"ListBlock-module_dark__3E3tV","mobile":"ListBlock-module_mobile__2-nuV","desktop":"ListBlock-module_desktop__1EE0g"};
1561
+ var styles$o = {"root":"ListBlock-module_root__3Q3Ga","ol":"ListBlock-module_ol__21CgV","ul":"ListBlock-module_ul__2MRrS","center":"ListBlock-module_center__tdIwd","isInImportantLead":"ListBlock-module_isInImportantLead__UP0ic","dark":"ListBlock-module_dark__3E3tV","mobile":"ListBlock-module_mobile__2-nuV","desktop":"ListBlock-module_desktop__1EE0g"};
1570
1562
 
1571
1563
  var ListBlock = function ListBlock(_ref) {
1572
1564
  var _ref$block = _ref.block,
@@ -1575,10 +1567,10 @@ var ListBlock = function ListBlock(_ref) {
1575
1567
  onlyOn = _ref$block.only_on,
1576
1568
  styleContext = _ref.styleContext;
1577
1569
  var TagName = type;
1578
- var classNames = [[styles$p.root, true], [styles$p[onlyOn], true], [styles$p[type], !!type && !!styles$p[type]]];
1570
+ var classNames = [[styles$o.root, true], [styles$o[onlyOn], true], [styles$o[type], !!type && !!styles$o[type]]];
1579
1571
 
1580
1572
  if (styleContext) {
1581
- classNames = makeStyleContext(classNames, styleContext, styles$p);
1573
+ classNames = makeStyleContext(classNames, styleContext, styles$o);
1582
1574
  }
1583
1575
 
1584
1576
  return React__default.createElement(TagName, {
@@ -1594,7 +1586,7 @@ var ListBlock = function ListBlock(_ref) {
1594
1586
  }));
1595
1587
  };
1596
1588
 
1597
- var styles$q = {"root":"RelatedBlock-module_root__IKcQq","header":"RelatedBlock-module_header__2SuWP","items":"RelatedBlock-module_items__2V-Ap","rich":"RelatedBlock-module_rich__ddaHq","first":"RelatedBlock-module_first__BKItW","simple":"RelatedBlock-module_simple__29HVO","center":"RelatedBlock-module_center__1LmW8","isInSlideMaterial":"RelatedBlock-module_isInSlideMaterial__2YSYG","mobile":"RelatedBlock-module_mobile__2XM5a","desktop":"RelatedBlock-module_desktop__2mXeq"};
1589
+ var styles$p = {"root":"RelatedBlock-module_root__IKcQq","header":"RelatedBlock-module_header__2SuWP","items":"RelatedBlock-module_items__2V-Ap","rich":"RelatedBlock-module_rich__ddaHq","first":"RelatedBlock-module_first__BKItW","simple":"RelatedBlock-module_simple__29HVO","center":"RelatedBlock-module_center__1LmW8","isInSlideMaterial":"RelatedBlock-module_isInSlideMaterial__2YSYG","mobile":"RelatedBlock-module_mobile__2XM5a","desktop":"RelatedBlock-module_desktop__2mXeq"};
1598
1590
 
1599
1591
  var RelatedBlock = function RelatedBlock(_ref) {
1600
1592
  var _ref$block = _ref.block,
@@ -1603,34 +1595,32 @@ var RelatedBlock = function RelatedBlock(_ref) {
1603
1595
  related = _ref$block$data.related,
1604
1596
  onlyOn = _ref$block.only_on,
1605
1597
  styleContext = _ref.styleContext;
1606
- var classNames = [[styles$q.root, true], [styles$q[onlyOn], true]];
1598
+ var classNames = [[styles$p.root, true], [styles$p[onlyOn], true]];
1607
1599
 
1608
1600
  if (styleContext) {
1609
- classNames = makeStyleContext(classNames, styleContext, styles$q);
1601
+ classNames = makeStyleContext(classNames, styleContext, styles$p);
1610
1602
  }
1611
1603
 
1612
1604
  return React__default.createElement("div", {
1613
1605
  "data-testid": "related-block",
1614
1606
  className: makeClassName(classNames)
1615
1607
  }, React__default.createElement("h3", {
1616
- className: styles$q.header
1608
+ className: styles$p.header
1617
1609
  }, title), React__default.createElement("ul", {
1618
- className: styles$q.items
1610
+ className: styles$p.items
1619
1611
  }, related.map(function (item, index) {
1620
1612
  return React__default.createElement("li", {
1621
1613
  key: item.id || index,
1622
- className: styles$q[item.layout]
1623
- }, React__default.createElement("a", {
1624
- href: item.full_url || "/" + item.url,
1625
- target: "_blank",
1626
- rel: "noopener noreferrer"
1614
+ className: styles$p[item.layout]
1615
+ }, React__default.createElement(reactRouterDom.Link, {
1616
+ to: item.full_url || "/" + item.url
1627
1617
  }, React__default.createElement("span", {
1628
- className: styles$q.first
1618
+ className: styles$p.first
1629
1619
  }, item.title), item.second_title && ' ', item.second_title && React__default.createElement("span", null, item.second_title)));
1630
1620
  })));
1631
1621
  };
1632
1622
 
1633
- var styles$r = {"root":"SourceBlock-module_root__1P3XD","text":"SourceBlock-module_text__Si4vm","origin":"SourceBlock-module_origin__l3JbO","center":"SourceBlock-module_center__3P93B","mobile":"SourceBlock-module_mobile__2gw4S","desktop":"SourceBlock-module_desktop__DecT6"};
1623
+ var styles$q = {"root":"SourceBlock-module_root__1P3XD","text":"SourceBlock-module_text__Si4vm","origin":"SourceBlock-module_origin__l3JbO","center":"SourceBlock-module_center__3P93B","mobile":"SourceBlock-module_mobile__2gw4S","desktop":"SourceBlock-module_desktop__DecT6"};
1634
1624
 
1635
1625
  var SourceBlock = function SourceBlock(_ref) {
1636
1626
  var _ref$block = _ref.block,
@@ -1640,10 +1630,10 @@ var SourceBlock = function SourceBlock(_ref) {
1640
1630
  origin = _ref$block$data.origin,
1641
1631
  url = _ref$block$data.url,
1642
1632
  styleContext = _ref.styleContext;
1643
- var classNames = [[styles$r.root, true], [styles$r[onlyOn], true]];
1633
+ var classNames = [[styles$q.root, true], [styles$q[onlyOn], true]];
1644
1634
 
1645
1635
  if (styleContext) {
1646
- classNames = makeStyleContext(classNames, styleContext, styles$r);
1636
+ classNames = makeStyleContext(classNames, styleContext, styles$q);
1647
1637
  }
1648
1638
 
1649
1639
  return React__default.createElement("blockquote", {
@@ -1651,7 +1641,7 @@ var SourceBlock = function SourceBlock(_ref) {
1651
1641
  cite: url,
1652
1642
  className: makeClassName(classNames)
1653
1643
  }, React__default.createElement("a", {
1654
- className: styles$r.text,
1644
+ className: styles$q.text,
1655
1645
  href: url,
1656
1646
  target: "_blank",
1657
1647
  rel: "noopener noreferrer"
@@ -1663,11 +1653,11 @@ var SourceBlock = function SourceBlock(_ref) {
1663
1653
  }
1664
1654
  });
1665
1655
  }), React__default.createElement("footer", null, React__default.createElement("cite", {
1666
- className: styles$r.origin
1656
+ className: styles$q.origin
1667
1657
  }, origin))));
1668
1658
  };
1669
1659
 
1670
- var styles$s = {"root":"SensitiveBlock-module_root__2iJbD","container":"SensitiveBlock-module_container__1Wtix","overlay":"SensitiveBlock-module_overlay__hfDVS","content":"SensitiveBlock-module_content__sNpxZ","button":"SensitiveBlock-module_button__3BGZK","default":"SensitiveBlock-module_default__2HgmZ","full":"SensitiveBlock-module_full__3Hph9","media":"SensitiveBlock-module_media__3wnlo","super_full":"SensitiveBlock-module_super_full__14UOv","visible":"SensitiveBlock-module_visible__1B-NV","isInCard":"SensitiveBlock-module_isInCard__1L-lu","isInSlide":"SensitiveBlock-module_isInSlide__f_Ql2"};
1660
+ var styles$r = {"root":"SensitiveBlock-module_root__2iJbD","container":"SensitiveBlock-module_container__1Wtix","overlay":"SensitiveBlock-module_overlay__hfDVS","content":"SensitiveBlock-module_content__sNpxZ","button":"SensitiveBlock-module_button__3BGZK","default":"SensitiveBlock-module_default__2HgmZ","full":"SensitiveBlock-module_full__3Hph9","media":"SensitiveBlock-module_media__3wnlo","super_full":"SensitiveBlock-module_super_full__14UOv","visible":"SensitiveBlock-module_visible__1B-NV","isInCard":"SensitiveBlock-module_isInCard__1L-lu","isInSlide":"SensitiveBlock-module_isInSlide__f_Ql2"};
1671
1661
 
1672
1662
  var SensitiveBlock = function SensitiveBlock(_ref) {
1673
1663
  var block = _ref.block,
@@ -1687,11 +1677,11 @@ var SensitiveBlock = function SensitiveBlock(_ref) {
1687
1677
  isVisible(true);
1688
1678
  };
1689
1679
 
1690
- var classNames = [[styles$s.root, true], [styles$s.visible, visible], [styles$s[display], display && styles$s[display]]];
1680
+ var classNames = [[styles$r.root, true], [styles$r.visible, visible], [styles$r[display], display && styles$r[display]]];
1691
1681
  var context = ['isInSensitiveBlock'];
1692
1682
 
1693
1683
  if (styleContext) {
1694
- classNames = makeStyleContext(classNames, styleContext, styles$s);
1684
+ classNames = makeStyleContext(classNames, styleContext, styles$r);
1695
1685
  context = [].concat(styleContext, ['isInSensitiveBlock']);
1696
1686
  }
1697
1687
 
@@ -1699,32 +1689,32 @@ var SensitiveBlock = function SensitiveBlock(_ref) {
1699
1689
  "data-testid": "sensitive-block",
1700
1690
  className: makeClassName(classNames)
1701
1691
  }, React__default.createElement("div", {
1702
- className: styles$s.container
1692
+ className: styles$r.container
1703
1693
  }, React__default.createElement("div", {
1704
- className: styles$s.overlay,
1694
+ className: styles$r.overlay,
1705
1695
  style: {
1706
1696
  backgroundImage: "url(" + blurredImage + ")"
1707
1697
  }
1708
1698
  }, React__default.createElement("div", {
1709
- className: styles$s.content
1699
+ className: styles$r.content
1710
1700
  }, React__default.createElement("p", {
1711
1701
  dangerouslySetInnerHTML: {
1712
1702
  __html: block.title
1713
1703
  }
1714
1704
  }), React__default.createElement("div", {
1715
- className: styles$s.button
1705
+ className: styles$r.button
1716
1706
  }, React__default.createElement(Button, {
1717
1707
  onClick: function onClick() {
1718
1708
  return handleClick();
1719
1709
  },
1720
1710
  theme: "light"
1721
1711
  }, block.button.text)))), React__default.createElement("div", {
1722
- className: styles$s.media
1712
+ className: styles$r.media
1723
1713
  }, React__default.createElement(EmbedBlockContainer, {
1724
1714
  block: block.item,
1725
1715
  styleContext: context
1726
1716
  }))), cc && React__default.createElement("figcaption", {
1727
- className: styles$s.figcaption
1717
+ className: styles$r.figcaption
1728
1718
  }, React__default.createElement(MediaCaption, {
1729
1719
  credit: credit,
1730
1720
  caption: caption,
@@ -1732,7 +1722,7 @@ var SensitiveBlock = function SensitiveBlock(_ref) {
1732
1722
  })));
1733
1723
  };
1734
1724
 
1735
- var styles$t = {"root":"GroupedBlock-module_root__2qfQA","hasFigcaption":"GroupedBlock-module_hasFigcaption__2_mcf","item":"GroupedBlock-module_item__3sz9_","items":"GroupedBlock-module_items__2DV2X","figcaption":"GroupedBlock-module_figcaption__2Q_wf","default":"GroupedBlock-module_default__3ylw_","full":"GroupedBlock-module_full__1dzQR","super_full":"GroupedBlock-module_super_full__1PU72","mobile":"GroupedBlock-module_mobile__3n8Ub","desktop":"GroupedBlock-module_desktop__6ZRpA"};
1725
+ var styles$s = {"root":"GroupedBlock-module_root__2qfQA","hasFigcaption":"GroupedBlock-module_hasFigcaption__2_mcf","item":"GroupedBlock-module_item__3sz9_","items":"GroupedBlock-module_items__2DV2X","figcaption":"GroupedBlock-module_figcaption__2Q_wf","default":"GroupedBlock-module_default__3ylw_","full":"GroupedBlock-module_full__1dzQR","super_full":"GroupedBlock-module_super_full__1PU72","mobile":"GroupedBlock-module_mobile__3n8Ub","desktop":"GroupedBlock-module_desktop__6ZRpA"};
1736
1726
 
1737
1727
  var GroupedBlock = function GroupedBlock(_ref) {
1738
1728
  var block = _ref.block,
@@ -1749,21 +1739,21 @@ var GroupedBlock = function GroupedBlock(_ref) {
1749
1739
  var sumWidth = normalizedBoxesWidth.reduce(function (sum, x) {
1750
1740
  return sum + x;
1751
1741
  });
1752
- var classNames = [[styles$t.root, true], [styles$t[onlyOn], true], [styles$t.hasFigcaption, block.cc === 'default'], [styles$t[block.display], !!block.display && styles$t[block.display]]];
1742
+ var classNames = [[styles$s.root, true], [styles$s[onlyOn], true], [styles$s.hasFigcaption, block.cc === 'default'], [styles$s[block.display], !!block.display && styles$s[block.display]]];
1753
1743
 
1754
1744
  if (styleContext) {
1755
- classNames = makeStyleContext(classNames, styleContext, styles$t);
1745
+ classNames = makeStyleContext(classNames, styleContext, styles$s);
1756
1746
  }
1757
1747
 
1758
1748
  return React__default.createElement("div", {
1759
1749
  "data-testid": "grouped-block",
1760
1750
  className: makeClassName(classNames)
1761
1751
  }, React__default.createElement("div", {
1762
- className: styles$t.items
1752
+ className: styles$s.items
1763
1753
  }, block.data.map(function (item, index) {
1764
1754
  var percentWidth = normalizedBoxesWidth[index] / sumWidth * 100;
1765
1755
  return React__default.createElement("div", {
1766
- className: styles$t.item,
1756
+ className: styles$s.item,
1767
1757
  key: item.id,
1768
1758
  style: {
1769
1759
  width: percentWidth + "%"
@@ -1776,7 +1766,7 @@ var GroupedBlock = function GroupedBlock(_ref) {
1776
1766
  styleContext: ['isInGroupedBlock']
1777
1767
  }));
1778
1768
  })), block.cc && React__default.createElement("figcaption", {
1779
- className: styles$t.figcaption
1769
+ className: styles$s.figcaption
1780
1770
  }, React__default.createElement(MediaCaption, {
1781
1771
  credit: block.credit,
1782
1772
  caption: block.caption,
@@ -1784,32 +1774,32 @@ var GroupedBlock = function GroupedBlock(_ref) {
1784
1774
  })));
1785
1775
  };
1786
1776
 
1787
- var styles$u = {"root":"MetaItem-module_root__2VQom","hasBullets":"MetaItem-module_hasBullets__CkQPI","hasSource":"MetaItem-module_hasSource__1DmCI","listened":"MetaItem-module_listened__lwvAO","read":"MetaItem-module_read__5eAIG","datetime":"MetaItem-module_datetime__3tOWm"};
1777
+ var styles$t = {"root":"MetaItem-module_root__2VQom","hasBullets":"MetaItem-module_hasBullets__CkQPI","hasSource":"MetaItem-module_hasSource__1DmCI","listened":"MetaItem-module_listened__lwvAO","read":"MetaItem-module_read__5eAIG","datetime":"MetaItem-module_datetime__3tOWm"};
1788
1778
 
1789
1779
  var MetaItem = function MetaItem(_ref) {
1790
1780
  var hasSource = _ref.hasSource,
1791
1781
  type = _ref.type,
1792
1782
  children = _ref.children,
1793
1783
  bullets = _ref.bullets;
1794
- var classNames = [[styles$u.root, true], [styles$u[type], !!type && !!styles$u[type]], [styles$u.hasSource, !!hasSource], [styles$u.hasBullets, !!bullets]];
1784
+ var classNames = [[styles$t.root, true], [styles$t[type], !!type && !!styles$t[type]], [styles$t.hasSource, !!hasSource], [styles$t.hasBullets, !!bullets]];
1795
1785
  return React__default.createElement("div", {
1796
1786
  "data-testid": "meta-item",
1797
1787
  className: makeClassName(classNames)
1798
1788
  }, children);
1799
1789
  };
1800
1790
 
1801
- var styles$v = {"root":"MetaItemLive-module_root__2mpD3","gold":"MetaItemLive-module_gold__3yZEV","frame":"MetaItemLive-module_frame__1H_Ha","liveMiddle":"MetaItemLive-module_liveMiddle__wyuV3","liveFirstWave":"MetaItemLive-module_liveFirstWave__3dbvz","liveSecondWave":"MetaItemLive-module_liveSecondWave__12g57"};
1791
+ var styles$u = {"root":"MetaItemLive-module_root__2mpD3","gold":"MetaItemLive-module_gold__3yZEV","frame":"MetaItemLive-module_frame__1H_Ha","liveMiddle":"MetaItemLive-module_liveMiddle__wyuV3","liveFirstWave":"MetaItemLive-module_liveFirstWave__3dbvz","liveSecondWave":"MetaItemLive-module_liveSecondWave__12g57"};
1802
1792
 
1803
1793
  var MetaItemLive = function MetaItemLive(_ref) {
1804
1794
  var _ref$theme = _ref.theme,
1805
1795
  theme = _ref$theme === void 0 ? 'gold' : _ref$theme;
1806
- var classNames = [[styles$v.root, true], [styles$v[theme], !!theme && styles$v[theme]]];
1796
+ var classNames = [[styles$u.root, true], [styles$u[theme], !!theme && styles$u[theme]]];
1807
1797
  return React__default.createElement("div", {
1808
1798
  "data-testid": "meta-item-live",
1809
1799
  "data-meta": "live",
1810
1800
  className: makeClassName(classNames)
1811
1801
  }, React__default.createElement("div", {
1812
- className: styles$v.frame
1802
+ className: styles$u.frame
1813
1803
  }));
1814
1804
  };
1815
1805
 
@@ -1834,7 +1824,7 @@ var pluralize = function pluralize(number, one, two, five) {
1834
1824
  return five;
1835
1825
  };
1836
1826
 
1837
- var styles$w = {"root":"DocumentItemsCount-module_root__P3q-z","items":"DocumentItemsCount-module_items__3pfxW"};
1827
+ var styles$v = {"root":"DocumentItemsCount-module_root__P3q-z","items":"DocumentItemsCount-module_items__3pfxW"};
1838
1828
 
1839
1829
  var DocumentItemsCount = function DocumentItemsCount(_ref) {
1840
1830
  var type = _ref.type,
@@ -1871,9 +1861,9 @@ var DocumentItemsCount = function DocumentItemsCount(_ref) {
1871
1861
  var itemsCount = items + " " + pluralize(items, i18n[lang][type].one, i18n[lang][type].two, i18n[lang][type].five);
1872
1862
  return React__default.createElement("div", {
1873
1863
  "data-testid": "document-items-count",
1874
- className: styles$w.root
1864
+ className: styles$v.root
1875
1865
  }, children, React__default.createElement("span", {
1876
- className: styles$w.items
1866
+ className: styles$v.items
1877
1867
  }, itemsCount));
1878
1868
  };
1879
1869
 
@@ -1996,7 +1986,7 @@ var MetaContainer = function MetaContainer(_ref) {
1996
1986
  icon: isListened ? 'listened' : 'read',
1997
1987
  size: "unset"
1998
1988
  })), isSlides && lang === 'ru' && React__default.createElement("div", {
1999
- className: styles$g.bookmark
1989
+ className: styles$f.bookmark
2000
1990
  }, React__default.createElement(BookmarkButton, {
2001
1991
  isInBookmarks: isInBookmarks,
2002
1992
  onClick: function onClick() {
@@ -2158,7 +2148,7 @@ var RenderBlocks = function RenderBlocks(_ref) {
2158
2148
  }
2159
2149
  };
2160
2150
 
2161
- var styles$x = {"root":"Cover-module_root__18Z8J","body":"Cover-module_body__1xs8e","image":"Cover-module_image__2f3Qc","rich":"Cover-module_rich__1fAGA","dark":"Cover-module_dark__2Ac-w","light":"Cover-module_light__FUp5X","control":"Cover-module_control__VXbhi","isInDynamicBlock":"Cover-module_isInDynamicBlock__3eghb","mobile":"Cover-module_mobile__5DKa1","desktop":"Cover-module_desktop__2mrOc"};
2151
+ var styles$w = {"root":"Cover-module_root__18Z8J","body":"Cover-module_body__1xs8e","image":"Cover-module_image__2f3Qc","rich":"Cover-module_rich__1fAGA","dark":"Cover-module_dark__2Ac-w","light":"Cover-module_light__FUp5X","control":"Cover-module_control__VXbhi","isInDynamicBlock":"Cover-module_isInDynamicBlock__3eghb","mobile":"Cover-module_mobile__5DKa1","desktop":"Cover-module_desktop__2mrOc"};
2162
2152
 
2163
2153
  var Cover = function Cover(_ref) {
2164
2154
  var _ref$block = _ref.block,
@@ -2179,15 +2169,15 @@ var Cover = function Cover(_ref) {
2179
2169
  setIsPopoverShown = _useState[1];
2180
2170
 
2181
2171
  var style = {};
2182
- var classNames = [[styles$x.root, true], [styles$x[onlyOn], !!onlyOn && !!styles$x[onlyOn]]];
2172
+ var classNames = [[styles$w.root, true], [styles$w[onlyOn], !!onlyOn && !!styles$w[onlyOn]]];
2183
2173
 
2184
2174
  if (styleContext) {
2185
- classNames = makeStyleContext(classNames, styleContext, styles$x);
2175
+ classNames = makeStyleContext(classNames, styleContext, styles$w);
2186
2176
  }
2187
2177
 
2188
2178
  if (gradients) {
2189
2179
  var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
2190
- classNames = makeStyleContext(classNames, theme, styles$x);
2180
+ classNames = makeStyleContext(classNames, theme, styles$w);
2191
2181
  style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
2192
2182
  }
2193
2183
 
@@ -2203,13 +2193,13 @@ var Cover = function Cover(_ref) {
2203
2193
  "data-testid": "cover",
2204
2194
  className: makeClassName(classNames)
2205
2195
  }, React__default.createElement("div", {
2206
- className: styles$x.image
2196
+ className: styles$w.image
2207
2197
  }, React__default.createElement(Image, {
2208
2198
  optimized: urls,
2209
2199
  ratio: mobileRatio,
2210
2200
  display: "narrow"
2211
2201
  })), React__default.createElement("div", {
2212
- className: styles$x.body,
2202
+ className: styles$w.body,
2213
2203
  style: style
2214
2204
  }, blocks.map(function (item) {
2215
2205
  return React__default.createElement(RenderBlocks, {
@@ -2218,7 +2208,7 @@ var Cover = function Cover(_ref) {
2218
2208
  styleContext: styleContext
2219
2209
  });
2220
2210
  })), cc === 'button' && React__default.createElement("button", {
2221
- className: styles$x.control,
2211
+ className: styles$w.control,
2222
2212
  type: "button",
2223
2213
  "aria-label": "Open",
2224
2214
  onClick: function onClick() {
@@ -2231,7 +2221,7 @@ var Cover = function Cover(_ref) {
2231
2221
  }, renderCC('isInPopover')));
2232
2222
  };
2233
2223
 
2234
- var styles$y = {"root":"HalfBlock-module_root__2frv2","main":"HalfBlock-module_main__2XX73","body":"HalfBlock-module_body__3MnEN","footer":"HalfBlock-module_footer__1C0yp","image":"HalfBlock-module_image__2lYel","mobile":"HalfBlock-module_mobile__2latf","desktop":"HalfBlock-module_desktop__3B1Ej"};
2224
+ var styles$x = {"root":"HalfBlock-module_root__2frv2","main":"HalfBlock-module_main__2XX73","body":"HalfBlock-module_body__3MnEN","footer":"HalfBlock-module_footer__1C0yp","image":"HalfBlock-module_image__2lYel","mobile":"HalfBlock-module_mobile__2latf","desktop":"HalfBlock-module_desktop__3B1Ej"};
2235
2225
 
2236
2226
  var HalfBlock = function HalfBlock(_ref) {
2237
2227
  var _ref$block = _ref.block,
@@ -2243,25 +2233,25 @@ var HalfBlock = function HalfBlock(_ref) {
2243
2233
  credit = _ref$block$data$cover.credit,
2244
2234
  caption = _ref$block$data$cover.caption,
2245
2235
  styleContext = _ref.styleContext;
2246
- var classNames = [[styles$y.root, true], [styles$y[onlyOn], true]];
2236
+ var classNames = [[styles$x.root, true], [styles$x[onlyOn], true]];
2247
2237
 
2248
2238
  if (styleContext) {
2249
- classNames = makeStyleContext(classNames, styleContext, styles$y);
2239
+ classNames = makeStyleContext(classNames, styleContext, styles$x);
2250
2240
  }
2251
2241
 
2252
2242
  return React__default.createElement("div", {
2253
2243
  "data-testid": "half-block",
2254
2244
  className: makeClassName(classNames)
2255
2245
  }, React__default.createElement("div", {
2256
- className: styles$y.main
2246
+ className: styles$x.main
2257
2247
  }, React__default.createElement("div", {
2258
- className: styles$y.image
2248
+ className: styles$x.image
2259
2249
  }, React__default.createElement(Image, {
2260
2250
  optimized: optimized,
2261
2251
  ratio: ratio,
2262
2252
  display: "super_full"
2263
2253
  })), React__default.createElement("div", {
2264
- className: styles$y.body
2254
+ className: styles$x.body
2265
2255
  }, data.blocks.map(function (item) {
2266
2256
  return React__default.createElement(RenderBlocks, {
2267
2257
  key: item.id,
@@ -2269,7 +2259,7 @@ var HalfBlock = function HalfBlock(_ref) {
2269
2259
  styleContext: ['rich']
2270
2260
  });
2271
2261
  }))), React__default.createElement("div", {
2272
- className: styles$y.footer
2262
+ className: styles$x.footer
2273
2263
  }, React__default.createElement(MediaCaption, {
2274
2264
  credit: credit,
2275
2265
  caption: caption,
@@ -2277,17 +2267,17 @@ var HalfBlock = function HalfBlock(_ref) {
2277
2267
  })));
2278
2268
  };
2279
2269
 
2280
- var styles$z = {"root":"ImportantLead-module_root__2BdT3","slide":"ImportantLead-module_slide__3kQ9x","mobile":"ImportantLead-module_mobile__3BXbm","desktop":"ImportantLead-module_desktop__3Zljc"};
2270
+ var styles$y = {"root":"ImportantLead-module_root__2BdT3","slide":"ImportantLead-module_slide__3kQ9x","mobile":"ImportantLead-module_mobile__3BXbm","desktop":"ImportantLead-module_desktop__3Zljc"};
2281
2271
 
2282
2272
  var ImportantLead = function ImportantLead(_ref) {
2283
2273
  var _ref$block = _ref.block,
2284
2274
  onlyOn = _ref$block.only_on,
2285
2275
  data = _ref$block.data,
2286
2276
  styleContext = _ref.styleContext;
2287
- var classNames = [[styles$z.root, true], [styles$z[onlyOn], !!onlyOn]];
2277
+ var classNames = [[styles$y.root, true], [styles$y[onlyOn], !!onlyOn]];
2288
2278
 
2289
2279
  if (styleContext) {
2290
- classNames = makeStyleContext(classNames, styleContext, styles$z);
2280
+ classNames = makeStyleContext(classNames, styleContext, styles$y);
2291
2281
  }
2292
2282
 
2293
2283
  return React__default.createElement("div", {
@@ -2302,7 +2292,7 @@ var ImportantLead = function ImportantLead(_ref) {
2302
2292
  }));
2303
2293
  };
2304
2294
 
2305
- var styles$A = {"root":"Spoiler-module_root__1OfSR","header":"Spoiler-module_header__1rZUs","body":"Spoiler-module_body__Q1e_c","spoiled":"Spoiler-module_spoiled__1A5r4","footer":"Spoiler-module_footer__23mh7","spoilerSticky":"Spoiler-module_spoilerSticky__3Kd30","spoilerStickyBg":"Spoiler-module_spoilerStickyBg__nYdlo","center":"Spoiler-module_center__tq1m0","full":"Spoiler-module_full__1QFqR","default":"Spoiler-module_default__2Kjx8","mobile":"Spoiler-module_mobile__2BPt8","desktop":"Spoiler-module_desktop__1BIFJ"};
2295
+ var styles$z = {"root":"Spoiler-module_root__1OfSR","header":"Spoiler-module_header__1rZUs","body":"Spoiler-module_body__Q1e_c","spoiled":"Spoiler-module_spoiled__1A5r4","footer":"Spoiler-module_footer__23mh7","spoilerSticky":"Spoiler-module_spoilerSticky__3Kd30","spoilerStickyBg":"Spoiler-module_spoilerStickyBg__nYdlo","center":"Spoiler-module_center__tq1m0","full":"Spoiler-module_full__1QFqR","default":"Spoiler-module_default__2Kjx8","mobile":"Spoiler-module_mobile__2BPt8","desktop":"Spoiler-module_desktop__1BIFJ"};
2306
2296
 
2307
2297
  var Spoiler = function Spoiler(_ref) {
2308
2298
  var _ref$block = _ref.block,
@@ -2337,11 +2327,11 @@ var Spoiler = function Spoiler(_ref) {
2337
2327
  }
2338
2328
  };
2339
2329
 
2340
- var classNames = [[styles$A.root, true], [styles$A[onlyOn], !!onlyOn], [styles$A[display], !!display && styles$A[display]], [[styles$A.spoiled], !!spoiled]];
2330
+ var classNames = [[styles$z.root, true], [styles$z[onlyOn], !!onlyOn], [styles$z[display], !!display && styles$z[display]], [[styles$z.spoiled], !!spoiled]];
2341
2331
  var context = ['center'];
2342
2332
 
2343
2333
  if (styleContext) {
2344
- classNames = makeStyleContext(classNames, styleContext, styles$A);
2334
+ classNames = makeStyleContext(classNames, styleContext, styles$z);
2345
2335
  }
2346
2336
 
2347
2337
  var buttonCollapse = button ? button.collapse : 'Свернуть';
@@ -2351,9 +2341,9 @@ var Spoiler = function Spoiler(_ref) {
2351
2341
  className: makeClassName(classNames),
2352
2342
  "data-testid": "spoiler"
2353
2343
  }, React__default.createElement("div", {
2354
- className: styles$A.header
2344
+ className: styles$z.header
2355
2345
  }, title && React__default.createElement("h3", null, title)), React__default.createElement("div", {
2356
- className: styles$A.body
2346
+ className: styles$z.body
2357
2347
  }, blocks.map(function (item) {
2358
2348
  return React__default.createElement(RenderBlocks, {
2359
2349
  key: item.id,
@@ -2361,7 +2351,7 @@ var Spoiler = function Spoiler(_ref) {
2361
2351
  styleContext: context
2362
2352
  });
2363
2353
  })), React__default.createElement("div", {
2364
- className: styles$A.footer
2354
+ className: styles$z.footer
2365
2355
  }, React__default.createElement(Button, {
2366
2356
  size: "default",
2367
2357
  theme: "gray",
@@ -2374,7 +2364,7 @@ var Spoiler = function Spoiler(_ref) {
2374
2364
  }))));
2375
2365
  };
2376
2366
 
2377
- var styles$B = {"root":"RelatedRichBlock-module_root__3NYmj","wrapper":"RelatedRichBlock-module_wrapper__1eLIQ","overlay":"RelatedRichBlock-module_overlay__3XSg_","overlayHeader":"RelatedRichBlock-module_overlayHeader__2Nmbv","body":"RelatedRichBlock-module_body__1ZHZS","isRich":"RelatedRichBlock-module_isRich__1LnA4","hasGradient":"RelatedRichBlock-module_hasGradient__27LOk","picture":"RelatedRichBlock-module_picture__128HJ","isCard":"RelatedRichBlock-module_isCard__2naDz","cover":"RelatedRichBlock-module_cover__3yygp","tag":"RelatedRichBlock-module_tag__3OLyG","center":"RelatedRichBlock-module_center__197sx","dark":"RelatedRichBlock-module_dark__3Y1fE","light":"RelatedRichBlock-module_light__2mUxL","mobile":"RelatedRichBlock-module_mobile__JpCS4","desktop":"RelatedRichBlock-module_desktop__trL0D"};
2367
+ var styles$A = {"root":"RelatedRichBlock-module_root__3NYmj","wrapper":"RelatedRichBlock-module_wrapper__1eLIQ","overlay":"RelatedRichBlock-module_overlay__3XSg_","overlayHeader":"RelatedRichBlock-module_overlayHeader__2Nmbv","body":"RelatedRichBlock-module_body__1ZHZS","isRich":"RelatedRichBlock-module_isRich__1LnA4","hasGradient":"RelatedRichBlock-module_hasGradient__27LOk","picture":"RelatedRichBlock-module_picture__128HJ","isCard":"RelatedRichBlock-module_isCard__2naDz","cover":"RelatedRichBlock-module_cover__3yygp","tag":"RelatedRichBlock-module_tag__3OLyG","center":"RelatedRichBlock-module_center__197sx","dark":"RelatedRichBlock-module_dark__3Y1fE","light":"RelatedRichBlock-module_light__2mUxL","mobile":"RelatedRichBlock-module_mobile__JpCS4","desktop":"RelatedRichBlock-module_desktop__trL0D"};
2378
2368
 
2379
2369
  /* eslint-disable react/jsx-no-target-blank */
2380
2370
  var RelatedRichBlock = function RelatedRichBlock(_ref) {
@@ -2413,55 +2403,55 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
2413
2403
  postMessage('richRelated', url, 'click');
2414
2404
  };
2415
2405
 
2416
- var classNames = [[styles$B.root, true], [styles$B[cardType], !!layout && !!styles$B[cardType]], [styles$B.hasGradient, !!gradients], [styles$B[onlyOn], !!onlyOn && !!styles$B[onlyOn]]];
2406
+ var classNames = [[styles$A.root, true], [styles$A[cardType], !!layout && !!styles$A[cardType]], [styles$A.hasGradient, !!gradients], [styles$A[onlyOn], !!onlyOn && !!styles$A[onlyOn]]];
2417
2407
  var context = ['isInMediaBlock'];
2418
2408
 
2419
2409
  if (styleContext) {
2420
- classNames = makeStyleContext(classNames, styleContext, styles$B);
2410
+ classNames = makeStyleContext(classNames, styleContext, styles$A);
2421
2411
  context = [].concat(styleContext, ['isInMediaBlock']);
2422
2412
  }
2423
2413
 
2424
2414
  if (gradients) {
2425
2415
  styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
2426
2416
  var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
2427
- classNames = makeStyleContext(classNames, theme, styles$B);
2417
+ classNames = makeStyleContext(classNames, theme, styles$A);
2428
2418
 
2429
2419
  if (onlyOn === 'desktop') {
2430
2420
  style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
2431
2421
  }
2432
2422
  }
2433
2423
 
2434
- return React__default.createElement("a", {
2424
+ return React__default.createElement(reactRouterDom.Link, {
2435
2425
  "data-testid": "related-rich-block",
2436
2426
  className: makeClassName(classNames),
2437
- href: "/" + url,
2438
2427
  target: "_blank",
2428
+ to: "/" + url,
2439
2429
  onClick: function onClick() {
2440
2430
  return handleClick();
2441
2431
  },
2442
2432
  ref: ref
2443
2433
  }, layout === 'rich' && React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
2444
- className: styles$B.overlay,
2434
+ className: styles$A.overlay,
2445
2435
  style: style
2446
2436
  }), React__default.createElement("div", {
2447
- className: styles$B.overlayHeader,
2437
+ className: styles$A.overlayHeader,
2448
2438
  style: styleHeader
2449
2439
  })), React__default.createElement("div", {
2450
- className: styles$B.tag
2440
+ className: styles$A.tag
2451
2441
  }, React__default.createElement(Tag, {
2452
2442
  size: "small",
2453
2443
  theme: "inherit",
2454
2444
  styleContext: "richRelated"
2455
2445
  }, tag)), React__default.createElement("div", {
2456
- className: styles$B.cover
2446
+ className: styles$A.cover
2457
2447
  }, React__default.createElement("div", {
2458
- className: styles$B.picture
2448
+ className: styles$A.picture
2459
2449
  }, React__default.createElement(Image, {
2460
2450
  optimized: urls,
2461
2451
  ratio: ratio,
2462
2452
  display: "narrow"
2463
2453
  }))), React__default.createElement("div", {
2464
- className: styles$B.body
2454
+ className: styles$A.body
2465
2455
  }, blocks.map(function (item) {
2466
2456
  return React__default.createElement(RenderBlocks, {
2467
2457
  key: item.id,
@@ -2542,7 +2532,7 @@ var RawHtmlBlock = function RawHtmlBlock(_ref) {
2542
2532
  }
2543
2533
  };
2544
2534
 
2545
- var styles$C = {"root":"ToolbarButton-module_root__xN-fq","dark":"ToolbarButton-module_dark__GrIOr","bookmark":"ToolbarButton-module_bookmark__3369b","isActive":"ToolbarButton-module_isActive__3NLAE","text":"ToolbarButton-module_text__32m6s"};
2535
+ var styles$B = {"root":"ToolbarButton-module_root__xN-fq","dark":"ToolbarButton-module_dark__GrIOr","bookmark":"ToolbarButton-module_bookmark__3369b","isActive":"ToolbarButton-module_isActive__3NLAE","text":"ToolbarButton-module_text__32m6s"};
2546
2536
 
2547
2537
  var ToolbarButton = function ToolbarButton(_ref) {
2548
2538
  var children = _ref.children,
@@ -2550,8 +2540,10 @@ var ToolbarButton = function ToolbarButton(_ref) {
2550
2540
  theme = _ref.theme,
2551
2541
  isActive = _ref.isActive,
2552
2542
  _onClick = _ref.onClick;
2553
- var classNames = [[styles$C.root, true], [styles$C[type], !!styles$C[type]], [styles$C[theme], !!styles$C[theme] && !!theme], [styles$C.isActive, !!isActive]];
2554
- return React__default.createElement("button", {
2543
+ var classNames = [[styles$B.root, true], [styles$B[type], !!styles$B[type]], [styles$B[theme], !!styles$B[theme] && !!theme], [styles$B.isActive, !!isActive]];
2544
+ return React__default.createElement("li", {
2545
+ className: toolbarStyles.item
2546
+ }, React__default.createElement("button", {
2555
2547
  "data-testid": "toolbar-button",
2556
2548
  className: makeClassName(classNames),
2557
2549
  type: "button",
@@ -2563,8 +2555,8 @@ var ToolbarButton = function ToolbarButton(_ref) {
2563
2555
  icon: type,
2564
2556
  styleContext: "isInToolbar"
2565
2557
  }), children && React__default.createElement("span", {
2566
- className: styles$C.text
2567
- }, children));
2558
+ className: styles$B.text
2559
+ }, children)));
2568
2560
  };
2569
2561
 
2570
2562
  exports.BookmarkButton = BookmarkButton;