@meduza/ui-kit-2 0.1.53 → 0.1.54

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.
@@ -1,4 +1,4 @@
1
- import React, { useState, useEffect, useContext, useRef, Children, useCallback } from 'react';
1
+ import React, { useState, useEffect, useContext, useRef, useCallback } from 'react';
2
2
  import { useInView } from 'react-intersection-observer';
3
3
  import dayjs from 'dayjs';
4
4
  import 'dayjs/locale/ru';
@@ -998,35 +998,26 @@ var Dropdown = function Dropdown(_ref2) {
998
998
  }, children);
999
999
  };
1000
1000
 
1001
- 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"};
1001
+ 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"};
1002
1002
 
1003
1003
  var Toolbar = function Toolbar(_ref) {
1004
1004
  var children = _ref.children,
1005
1005
  styleContext = _ref.styleContext;
1006
- var classNames = [[styles$f.root, true]];
1006
+ var classNames = [[toolbarStyles.root, true]];
1007
1007
 
1008
1008
  if (styleContext) {
1009
- classNames = makeStyleContext(classNames, styleContext, styles$f);
1009
+ classNames = makeStyleContext(classNames, styleContext, toolbarStyles);
1010
1010
  }
1011
1011
 
1012
- var renderItems = function renderItems() {
1013
- return Children.map(children, function (item, index) {
1014
- return React.createElement("li", {
1015
- className: styles$f.item,
1016
- key: index + "-" + item.props.type
1017
- }, React.cloneElement(item));
1018
- });
1019
- };
1020
-
1021
1012
  return React.createElement("div", {
1022
1013
  "data-testid": "toolbar",
1023
1014
  className: makeClassName(classNames)
1024
1015
  }, React.createElement("ul", {
1025
- className: styles$f.list
1026
- }, renderItems()));
1016
+ className: toolbarStyles.list
1017
+ }, children));
1027
1018
  };
1028
1019
 
1029
- 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"};
1020
+ 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"};
1030
1021
 
1031
1022
  var Meta = function Meta(_ref) {
1032
1023
  var hasSource = _ref.hasSource,
@@ -1034,10 +1025,10 @@ var Meta = function Meta(_ref) {
1034
1025
  children = _ref.children,
1035
1026
  onlyOn = _ref.onlyOn,
1036
1027
  styleContext = _ref.styleContext;
1037
- var classNames = [[styles$g.root, true], [styles$g[theme], !!theme && !!styles$g[theme]], [styles$g[onlyOn], !!onlyOn], [styles$g.hasSource, hasSource]];
1028
+ var classNames = [[styles$f.root, true], [styles$f[theme], !!theme && !!styles$f[theme]], [styles$f[onlyOn], !!onlyOn], [styles$f.hasSource, hasSource]];
1038
1029
 
1039
1030
  if (styleContext) {
1040
- classNames = makeStyleContext(classNames, styleContext, styles$g);
1031
+ classNames = makeStyleContext(classNames, styleContext, styles$f);
1041
1032
  }
1042
1033
 
1043
1034
  return React.createElement("div", {
@@ -1046,7 +1037,7 @@ var Meta = function Meta(_ref) {
1046
1037
  }, children);
1047
1038
  };
1048
1039
 
1049
- var styles$h = {"root":"Timestamp-module_root__coOvT"};
1040
+ var styles$g = {"root":"Timestamp-module_root__coOvT"};
1050
1041
 
1051
1042
  var Timestamp = function Timestamp(_ref) {
1052
1043
  var publishedAt = _ref.publishedAt,
@@ -1071,7 +1062,7 @@ var Timestamp = function Timestamp(_ref) {
1071
1062
 
1072
1063
  return React.createElement("time", {
1073
1064
  "data-testid": "timestamp",
1074
- className: styles$h.root
1065
+ className: styles$g.root
1075
1066
  }, published);
1076
1067
  };
1077
1068
 
@@ -1138,7 +1129,7 @@ var DangerousHTML = function DangerousHTML(_ref) {
1138
1129
  }));
1139
1130
  };
1140
1131
 
1141
- 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_"};
1132
+ 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_"};
1142
1133
 
1143
1134
  var EmbedGif = function EmbedGif(_ref) {
1144
1135
  var gif = _ref.gif,
@@ -1184,9 +1175,9 @@ var EmbedGif = function EmbedGif(_ref) {
1184
1175
  };
1185
1176
  }, []);
1186
1177
  return React.createElement("div", {
1187
- className: styles$i.figure
1178
+ className: styles$h.figure
1188
1179
  }, React.createElement("div", {
1189
- className: styles$i.objectWrap,
1180
+ className: styles$h.objectWrap,
1190
1181
  style: style,
1191
1182
  "data-frozen": videoFrozen
1192
1183
  }, React.createElement("video", {
@@ -1252,7 +1243,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
1252
1243
  case 'image':
1253
1244
  {
1254
1245
  return React.createElement("div", {
1255
- className: styles$i.figure
1246
+ className: styles$h.figure
1256
1247
  }, React.createElement(Image, {
1257
1248
  source: !optimized && [small, large],
1258
1249
  optimized: block.data.optimized,
@@ -1268,7 +1259,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
1268
1259
  case 'game_embed':
1269
1260
  {
1270
1261
  return React.createElement("div", {
1271
- className: styles$i.gameEmbed
1262
+ className: styles$h.gameEmbed
1272
1263
  }, React.createElement("iframe", {
1273
1264
  src: block.data.game_src,
1274
1265
  id: block.data.game_id,
@@ -1279,7 +1270,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
1279
1270
  case 'dots_on_image':
1280
1271
  {
1281
1272
  return React.createElement("div", {
1282
- className: styles$i.figure
1273
+ className: styles$h.figure
1283
1274
  }, React.createElement(DotsOnImage, {
1284
1275
  block: data
1285
1276
  }));
@@ -1288,12 +1279,12 @@ var EmbedBlock = function EmbedBlock(_ref) {
1288
1279
  default:
1289
1280
  {
1290
1281
  return React.createElement("div", {
1291
- className: styles$i.object
1282
+ className: styles$h.object
1292
1283
  }, React.createElement("div", {
1293
- className: styles$i.wrapper,
1284
+ className: styles$h.wrapper,
1294
1285
  style: style
1295
1286
  }, React.createElement(DangerousHTML, {
1296
- className: styles$i.objectWrap,
1287
+ className: styles$h.objectWrap,
1297
1288
  html: html
1298
1289
  })));
1299
1290
  }
@@ -1305,31 +1296,31 @@ var EmbedBlock = function EmbedBlock(_ref) {
1305
1296
  style.height = 0;
1306
1297
  }
1307
1298
 
1308
- 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,
1299
+ 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,
1309
1300
  // чтобы не применились лишние модификаторы
1310
1301
  // TODO: в w6 модификаторы должны передаваться явно
1311
1302
 
1312
1303
  if (styleContext && Array.isArray(styleContext)) {
1313
1304
  var filteredContext = styleContext.filter(function (key) {
1314
- return key.startsWith('isIn') && styles$i[key];
1305
+ return key.startsWith('isIn') && styles$h[key];
1315
1306
  }).reduce(function (acc, key) {
1316
1307
  acc.push(key);
1317
1308
  return acc;
1318
1309
  }, []);
1319
- classNames = makeStyleContext(classNames, filteredContext, styles$i);
1310
+ classNames = makeStyleContext(classNames, filteredContext, styles$h);
1320
1311
  }
1321
1312
 
1322
1313
  return React.createElement("figure", {
1323
1314
  className: makeClassName(classNames)
1324
1315
  }, children && React.createElement("div", {
1325
- className: styles$i.object
1316
+ className: styles$h.object
1326
1317
  }, React.createElement("div", {
1327
- className: styles$i.wrapper,
1318
+ className: styles$h.wrapper,
1328
1319
  style: style
1329
1320
  }, React.createElement("div", {
1330
- className: styles$i.objectWrap
1321
+ className: styles$h.objectWrap
1331
1322
  }, children))), !children && renderEmbed(style), cc === 'default' && React.createElement("figcaption", null, renderCC()), cc === 'button' && React.createElement("button", {
1332
- className: styles$i.control,
1323
+ className: styles$h.control,
1333
1324
  type: "button",
1334
1325
  "aria-label": "Open",
1335
1326
  onClick: function onClick() {
@@ -1405,15 +1396,15 @@ var EmbedBlockContainer = function EmbedBlockContainer(_ref) {
1405
1396
  });
1406
1397
  };
1407
1398
 
1408
- var styles$j = {"root":"QuoteBlock-module_root__2GrcC","center":"QuoteBlock-module_center__cTFNy"};
1399
+ var styles$i = {"root":"QuoteBlock-module_root__2GrcC","center":"QuoteBlock-module_center__cTFNy"};
1409
1400
 
1410
1401
  var QuoteBlock = function QuoteBlock(_ref) {
1411
1402
  var data = _ref.block.data,
1412
1403
  styleContext = _ref.styleContext;
1413
- var classNames = [[styles$j.root, true]];
1404
+ var classNames = [[styles$i.root, true]];
1414
1405
 
1415
1406
  if (styleContext) {
1416
- classNames = makeStyleContext(classNames, styleContext, styles$j);
1407
+ classNames = makeStyleContext(classNames, styleContext, styles$i);
1417
1408
  }
1418
1409
 
1419
1410
  return React.createElement("div", {
@@ -1426,7 +1417,7 @@ var QuoteBlock = function QuoteBlock(_ref) {
1426
1417
  }));
1427
1418
  };
1428
1419
 
1429
- 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"};
1420
+ 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"};
1430
1421
 
1431
1422
  var CardTitle = function CardTitle(_ref) {
1432
1423
  var _ref$block$data = _ref.block.data,
@@ -1436,15 +1427,15 @@ var CardTitle = function CardTitle(_ref) {
1436
1427
  styleContext = _ref.styleContext;
1437
1428
  return React.createElement("div", {
1438
1429
  "data-testid": "card-title",
1439
- className: makeClassName([[styles$k.root, true], [styles$k[onlyOn], !!onlyOn], [styles$k[styleContext], !!styleContext && !!styles$k[styleContext]]])
1430
+ className: makeClassName([[styles$j.root, true], [styles$j[onlyOn], !!onlyOn], [styles$j[styleContext], !!styleContext && !!styles$j[styleContext]]])
1440
1431
  }, React.createElement("div", {
1441
- className: styles$k.index
1432
+ className: styles$j.index
1442
1433
  }, index), React.createElement("h3", {
1443
- className: styles$k.title
1434
+ className: styles$j.title
1444
1435
  }, text));
1445
1436
  };
1446
1437
 
1447
- var styles$l = {"root":"ChapterBlock-module_root__1WyVn","subtitle":"ChapterBlock-module_subtitle__3TXll","mobile":"ChapterBlock-module_mobile__CiO0w","desktop":"ChapterBlock-module_desktop__tk1Nk"};
1438
+ var styles$k = {"root":"ChapterBlock-module_root__1WyVn","subtitle":"ChapterBlock-module_subtitle__3TXll","mobile":"ChapterBlock-module_mobile__CiO0w","desktop":"ChapterBlock-module_desktop__tk1Nk"};
1448
1439
 
1449
1440
  var ChapterBlock = function ChapterBlock(_ref) {
1450
1441
  var _ref$block = _ref.block,
@@ -1453,9 +1444,9 @@ var ChapterBlock = function ChapterBlock(_ref) {
1453
1444
  styleContext = _ref.styleContext;
1454
1445
  return React.createElement("div", {
1455
1446
  "data-testid": "chapter-block",
1456
- className: makeClassName([[styles$l.root, true], [styles$l[onlyOn], !!onlyOn]])
1447
+ className: makeClassName([[styles$k.root, true], [styles$k[onlyOn], !!onlyOn]])
1457
1448
  }, React.createElement("div", {
1458
- className: makeClassName([[styles$l.subtitle, true], [styles$l[styleContext], !!styleContext && !!styles$l[styleContext]]]),
1449
+ className: makeClassName([[styles$k.subtitle, true], [styles$k[styleContext], !!styleContext && !!styles$k[styleContext]]]),
1459
1450
  dangerouslySetInnerHTML: {
1460
1451
  __html: data
1461
1452
  }
@@ -1473,17 +1464,17 @@ var generateGradient = function generateGradient(color, type) {
1473
1464
  return "linear-gradient(-180deg, " + gradient + ")";
1474
1465
  };
1475
1466
 
1476
- var styles$m = {"root":"SimpleTitle-module_root__2jVQN","mobile":"SimpleTitle-module_mobile__11gBz","desktop":"SimpleTitle-module_desktop__3yXgy"};
1467
+ var styles$l = {"root":"SimpleTitle-module_root__2jVQN","mobile":"SimpleTitle-module_mobile__11gBz","desktop":"SimpleTitle-module_desktop__3yXgy"};
1477
1468
 
1478
1469
  var SimpleTitle = function SimpleTitle(_ref) {
1479
1470
  var _ref$block = _ref.block,
1480
1471
  first = _ref$block.data.first,
1481
1472
  onlyOn = _ref$block.only_on,
1482
1473
  styleContext = _ref.styleContext;
1483
- var classNames = [[styles$m.root, true], [styles$m[onlyOn], true]];
1474
+ var classNames = [[styles$l.root, true], [styles$l[onlyOn], true]];
1484
1475
 
1485
1476
  if (styleContext) {
1486
- classNames = makeStyleContext(classNames, styleContext, styles$m);
1477
+ classNames = makeStyleContext(classNames, styleContext, styles$l);
1487
1478
  }
1488
1479
 
1489
1480
  return React.createElement("div", {
@@ -1492,7 +1483,7 @@ var SimpleTitle = function SimpleTitle(_ref) {
1492
1483
  }, first);
1493
1484
  };
1494
1485
 
1495
- 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"};
1486
+ 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"};
1496
1487
 
1497
1488
  var RichTitle = function RichTitle(_ref) {
1498
1489
  var _ref$block = _ref.block,
@@ -1504,10 +1495,10 @@ var RichTitle = function RichTitle(_ref) {
1504
1495
  _ref$block$data$as = _ref$block$data.as,
1505
1496
  TagName = _ref$block$data$as === void 0 ? 'h1' : _ref$block$data$as,
1506
1497
  styleContext = _ref.styleContext;
1507
- var classNames = [[styles$n.root, true], [styles$n[onlyOn], true], [styles$n.featured, !!featured]];
1498
+ var classNames = [[styles$m.root, true], [styles$m[onlyOn], true], [styles$m.featured, !!featured]];
1508
1499
 
1509
1500
  if (styleContext) {
1510
- classNames = makeStyleContext(classNames, styleContext, styles$n);
1501
+ classNames = makeStyleContext(classNames, styleContext, styles$m);
1511
1502
  }
1512
1503
 
1513
1504
  return React.createElement(TagName, {
@@ -1516,7 +1507,7 @@ var RichTitle = function RichTitle(_ref) {
1516
1507
  }, first, second && React.createElement("span", null, " ", second));
1517
1508
  };
1518
1509
 
1519
- 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"};
1510
+ 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"};
1520
1511
 
1521
1512
  var SimpleBlock = function SimpleBlock(_ref) {
1522
1513
  var _ref$block = _ref.block,
@@ -1525,10 +1516,10 @@ var SimpleBlock = function SimpleBlock(_ref) {
1525
1516
  onlyOn = _ref$block.only_on,
1526
1517
  styleContext = _ref.styleContext;
1527
1518
  var TagName;
1528
- var classNames = [[styles$o[type], !!type && !!styles$o[type]], [styles$o[onlyOn], true]];
1519
+ var classNames = [[styles$n[type], !!type && !!styles$n[type]], [styles$n[onlyOn], true]];
1529
1520
 
1530
1521
  if (styleContext) {
1531
- classNames = makeStyleContext(classNames, styleContext, styles$o);
1522
+ classNames = makeStyleContext(classNames, styleContext, styles$n);
1532
1523
  }
1533
1524
 
1534
1525
  switch (type) {
@@ -1559,7 +1550,7 @@ var SimpleBlock = function SimpleBlock(_ref) {
1559
1550
  });
1560
1551
  };
1561
1552
 
1562
- 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"};
1553
+ 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"};
1563
1554
 
1564
1555
  var ListBlock = function ListBlock(_ref) {
1565
1556
  var _ref$block = _ref.block,
@@ -1568,10 +1559,10 @@ var ListBlock = function ListBlock(_ref) {
1568
1559
  onlyOn = _ref$block.only_on,
1569
1560
  styleContext = _ref.styleContext;
1570
1561
  var TagName = type;
1571
- var classNames = [[styles$p.root, true], [styles$p[onlyOn], true], [styles$p[type], !!type && !!styles$p[type]]];
1562
+ var classNames = [[styles$o.root, true], [styles$o[onlyOn], true], [styles$o[type], !!type && !!styles$o[type]]];
1572
1563
 
1573
1564
  if (styleContext) {
1574
- classNames = makeStyleContext(classNames, styleContext, styles$p);
1565
+ classNames = makeStyleContext(classNames, styleContext, styles$o);
1575
1566
  }
1576
1567
 
1577
1568
  return React.createElement(TagName, {
@@ -1587,7 +1578,7 @@ var ListBlock = function ListBlock(_ref) {
1587
1578
  }));
1588
1579
  };
1589
1580
 
1590
- 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"};
1581
+ 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"};
1591
1582
 
1592
1583
  var RelatedBlock = function RelatedBlock(_ref) {
1593
1584
  var _ref$block = _ref.block,
@@ -1596,34 +1587,34 @@ var RelatedBlock = function RelatedBlock(_ref) {
1596
1587
  related = _ref$block$data.related,
1597
1588
  onlyOn = _ref$block.only_on,
1598
1589
  styleContext = _ref.styleContext;
1599
- var classNames = [[styles$q.root, true], [styles$q[onlyOn], true]];
1590
+ var classNames = [[styles$p.root, true], [styles$p[onlyOn], true]];
1600
1591
 
1601
1592
  if (styleContext) {
1602
- classNames = makeStyleContext(classNames, styleContext, styles$q);
1593
+ classNames = makeStyleContext(classNames, styleContext, styles$p);
1603
1594
  }
1604
1595
 
1605
1596
  return React.createElement("div", {
1606
1597
  "data-testid": "related-block",
1607
1598
  className: makeClassName(classNames)
1608
1599
  }, React.createElement("h3", {
1609
- className: styles$q.header
1600
+ className: styles$p.header
1610
1601
  }, title), React.createElement("ul", {
1611
- className: styles$q.items
1602
+ className: styles$p.items
1612
1603
  }, related.map(function (item, index) {
1613
1604
  return React.createElement("li", {
1614
1605
  key: item.id || index,
1615
- className: styles$q[item.layout]
1606
+ className: styles$p[item.layout]
1616
1607
  }, React.createElement("a", {
1617
1608
  href: item.full_url || "/" + item.url,
1618
1609
  target: "_blank",
1619
1610
  rel: "noopener noreferrer"
1620
1611
  }, React.createElement("span", {
1621
- className: styles$q.first
1612
+ className: styles$p.first
1622
1613
  }, item.title), item.second_title && ' ', item.second_title && React.createElement("span", null, item.second_title)));
1623
1614
  })));
1624
1615
  };
1625
1616
 
1626
- 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"};
1617
+ 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"};
1627
1618
 
1628
1619
  var SourceBlock = function SourceBlock(_ref) {
1629
1620
  var _ref$block = _ref.block,
@@ -1633,10 +1624,10 @@ var SourceBlock = function SourceBlock(_ref) {
1633
1624
  origin = _ref$block$data.origin,
1634
1625
  url = _ref$block$data.url,
1635
1626
  styleContext = _ref.styleContext;
1636
- var classNames = [[styles$r.root, true], [styles$r[onlyOn], true]];
1627
+ var classNames = [[styles$q.root, true], [styles$q[onlyOn], true]];
1637
1628
 
1638
1629
  if (styleContext) {
1639
- classNames = makeStyleContext(classNames, styleContext, styles$r);
1630
+ classNames = makeStyleContext(classNames, styleContext, styles$q);
1640
1631
  }
1641
1632
 
1642
1633
  return React.createElement("blockquote", {
@@ -1644,7 +1635,7 @@ var SourceBlock = function SourceBlock(_ref) {
1644
1635
  cite: url,
1645
1636
  className: makeClassName(classNames)
1646
1637
  }, React.createElement("a", {
1647
- className: styles$r.text,
1638
+ className: styles$q.text,
1648
1639
  href: url,
1649
1640
  target: "_blank",
1650
1641
  rel: "noopener noreferrer"
@@ -1656,11 +1647,11 @@ var SourceBlock = function SourceBlock(_ref) {
1656
1647
  }
1657
1648
  });
1658
1649
  }), React.createElement("footer", null, React.createElement("cite", {
1659
- className: styles$r.origin
1650
+ className: styles$q.origin
1660
1651
  }, origin))));
1661
1652
  };
1662
1653
 
1663
- 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"};
1654
+ 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"};
1664
1655
 
1665
1656
  var SensitiveBlock = function SensitiveBlock(_ref) {
1666
1657
  var block = _ref.block,
@@ -1680,11 +1671,11 @@ var SensitiveBlock = function SensitiveBlock(_ref) {
1680
1671
  isVisible(true);
1681
1672
  };
1682
1673
 
1683
- var classNames = [[styles$s.root, true], [styles$s.visible, visible], [styles$s[display], display && styles$s[display]]];
1674
+ var classNames = [[styles$r.root, true], [styles$r.visible, visible], [styles$r[display], display && styles$r[display]]];
1684
1675
  var context = ['isInSensitiveBlock'];
1685
1676
 
1686
1677
  if (styleContext) {
1687
- classNames = makeStyleContext(classNames, styleContext, styles$s);
1678
+ classNames = makeStyleContext(classNames, styleContext, styles$r);
1688
1679
  context = [].concat(styleContext, ['isInSensitiveBlock']);
1689
1680
  }
1690
1681
 
@@ -1692,32 +1683,32 @@ var SensitiveBlock = function SensitiveBlock(_ref) {
1692
1683
  "data-testid": "sensitive-block",
1693
1684
  className: makeClassName(classNames)
1694
1685
  }, React.createElement("div", {
1695
- className: styles$s.container
1686
+ className: styles$r.container
1696
1687
  }, React.createElement("div", {
1697
- className: styles$s.overlay,
1688
+ className: styles$r.overlay,
1698
1689
  style: {
1699
1690
  backgroundImage: "url(" + blurredImage + ")"
1700
1691
  }
1701
1692
  }, React.createElement("div", {
1702
- className: styles$s.content
1693
+ className: styles$r.content
1703
1694
  }, React.createElement("p", {
1704
1695
  dangerouslySetInnerHTML: {
1705
1696
  __html: block.title
1706
1697
  }
1707
1698
  }), React.createElement("div", {
1708
- className: styles$s.button
1699
+ className: styles$r.button
1709
1700
  }, React.createElement(Button, {
1710
1701
  onClick: function onClick() {
1711
1702
  return handleClick();
1712
1703
  },
1713
1704
  theme: "light"
1714
1705
  }, block.button.text)))), React.createElement("div", {
1715
- className: styles$s.media
1706
+ className: styles$r.media
1716
1707
  }, React.createElement(EmbedBlockContainer, {
1717
1708
  block: block.item,
1718
1709
  styleContext: context
1719
1710
  }))), cc && React.createElement("figcaption", {
1720
- className: styles$s.figcaption
1711
+ className: styles$r.figcaption
1721
1712
  }, React.createElement(MediaCaption, {
1722
1713
  credit: credit,
1723
1714
  caption: caption,
@@ -1725,7 +1716,7 @@ var SensitiveBlock = function SensitiveBlock(_ref) {
1725
1716
  })));
1726
1717
  };
1727
1718
 
1728
- 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"};
1719
+ 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"};
1729
1720
 
1730
1721
  var GroupedBlock = function GroupedBlock(_ref) {
1731
1722
  var block = _ref.block,
@@ -1742,21 +1733,21 @@ var GroupedBlock = function GroupedBlock(_ref) {
1742
1733
  var sumWidth = normalizedBoxesWidth.reduce(function (sum, x) {
1743
1734
  return sum + x;
1744
1735
  });
1745
- 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]]];
1736
+ 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]]];
1746
1737
 
1747
1738
  if (styleContext) {
1748
- classNames = makeStyleContext(classNames, styleContext, styles$t);
1739
+ classNames = makeStyleContext(classNames, styleContext, styles$s);
1749
1740
  }
1750
1741
 
1751
1742
  return React.createElement("div", {
1752
1743
  "data-testid": "grouped-block",
1753
1744
  className: makeClassName(classNames)
1754
1745
  }, React.createElement("div", {
1755
- className: styles$t.items
1746
+ className: styles$s.items
1756
1747
  }, block.data.map(function (item, index) {
1757
1748
  var percentWidth = normalizedBoxesWidth[index] / sumWidth * 100;
1758
1749
  return React.createElement("div", {
1759
- className: styles$t.item,
1750
+ className: styles$s.item,
1760
1751
  key: item.id,
1761
1752
  style: {
1762
1753
  width: percentWidth + "%"
@@ -1769,7 +1760,7 @@ var GroupedBlock = function GroupedBlock(_ref) {
1769
1760
  styleContext: ['isInGroupedBlock']
1770
1761
  }));
1771
1762
  })), block.cc && React.createElement("figcaption", {
1772
- className: styles$t.figcaption
1763
+ className: styles$s.figcaption
1773
1764
  }, React.createElement(MediaCaption, {
1774
1765
  credit: block.credit,
1775
1766
  caption: block.caption,
@@ -1777,32 +1768,32 @@ var GroupedBlock = function GroupedBlock(_ref) {
1777
1768
  })));
1778
1769
  };
1779
1770
 
1780
- 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"};
1771
+ 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"};
1781
1772
 
1782
1773
  var MetaItem = function MetaItem(_ref) {
1783
1774
  var hasSource = _ref.hasSource,
1784
1775
  type = _ref.type,
1785
1776
  children = _ref.children,
1786
1777
  bullets = _ref.bullets;
1787
- var classNames = [[styles$u.root, true], [styles$u[type], !!type && !!styles$u[type]], [styles$u.hasSource, !!hasSource], [styles$u.hasBullets, !!bullets]];
1778
+ var classNames = [[styles$t.root, true], [styles$t[type], !!type && !!styles$t[type]], [styles$t.hasSource, !!hasSource], [styles$t.hasBullets, !!bullets]];
1788
1779
  return React.createElement("div", {
1789
1780
  "data-testid": "meta-item",
1790
1781
  className: makeClassName(classNames)
1791
1782
  }, children);
1792
1783
  };
1793
1784
 
1794
- 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"};
1785
+ 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"};
1795
1786
 
1796
1787
  var MetaItemLive = function MetaItemLive(_ref) {
1797
1788
  var _ref$theme = _ref.theme,
1798
1789
  theme = _ref$theme === void 0 ? 'gold' : _ref$theme;
1799
- var classNames = [[styles$v.root, true], [styles$v[theme], !!theme && styles$v[theme]]];
1790
+ var classNames = [[styles$u.root, true], [styles$u[theme], !!theme && styles$u[theme]]];
1800
1791
  return React.createElement("div", {
1801
1792
  "data-testid": "meta-item-live",
1802
1793
  "data-meta": "live",
1803
1794
  className: makeClassName(classNames)
1804
1795
  }, React.createElement("div", {
1805
- className: styles$v.frame
1796
+ className: styles$u.frame
1806
1797
  }));
1807
1798
  };
1808
1799
 
@@ -1827,7 +1818,7 @@ var pluralize = function pluralize(number, one, two, five) {
1827
1818
  return five;
1828
1819
  };
1829
1820
 
1830
- var styles$w = {"root":"DocumentItemsCount-module_root__P3q-z","items":"DocumentItemsCount-module_items__3pfxW"};
1821
+ var styles$v = {"root":"DocumentItemsCount-module_root__P3q-z","items":"DocumentItemsCount-module_items__3pfxW"};
1831
1822
 
1832
1823
  var DocumentItemsCount = function DocumentItemsCount(_ref) {
1833
1824
  var type = _ref.type,
@@ -1864,9 +1855,9 @@ var DocumentItemsCount = function DocumentItemsCount(_ref) {
1864
1855
  var itemsCount = items + " " + pluralize(items, i18n[lang][type].one, i18n[lang][type].two, i18n[lang][type].five);
1865
1856
  return React.createElement("div", {
1866
1857
  "data-testid": "document-items-count",
1867
- className: styles$w.root
1858
+ className: styles$v.root
1868
1859
  }, children, React.createElement("span", {
1869
- className: styles$w.items
1860
+ className: styles$v.items
1870
1861
  }, itemsCount));
1871
1862
  };
1872
1863
 
@@ -1989,7 +1980,7 @@ var MetaContainer = function MetaContainer(_ref) {
1989
1980
  icon: isListened ? 'listened' : 'read',
1990
1981
  size: "unset"
1991
1982
  })), isSlides && lang === 'ru' && React.createElement("div", {
1992
- className: styles$g.bookmark
1983
+ className: styles$f.bookmark
1993
1984
  }, React.createElement(BookmarkButton, {
1994
1985
  isInBookmarks: isInBookmarks,
1995
1986
  onClick: function onClick() {
@@ -2151,7 +2142,7 @@ var RenderBlocks = function RenderBlocks(_ref) {
2151
2142
  }
2152
2143
  };
2153
2144
 
2154
- 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"};
2145
+ 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"};
2155
2146
 
2156
2147
  var Cover = function Cover(_ref) {
2157
2148
  var _ref$block = _ref.block,
@@ -2172,15 +2163,15 @@ var Cover = function Cover(_ref) {
2172
2163
  setIsPopoverShown = _useState[1];
2173
2164
 
2174
2165
  var style = {};
2175
- var classNames = [[styles$x.root, true], [styles$x[onlyOn], !!onlyOn && !!styles$x[onlyOn]]];
2166
+ var classNames = [[styles$w.root, true], [styles$w[onlyOn], !!onlyOn && !!styles$w[onlyOn]]];
2176
2167
 
2177
2168
  if (styleContext) {
2178
- classNames = makeStyleContext(classNames, styleContext, styles$x);
2169
+ classNames = makeStyleContext(classNames, styleContext, styles$w);
2179
2170
  }
2180
2171
 
2181
2172
  if (gradients) {
2182
2173
  var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
2183
- classNames = makeStyleContext(classNames, theme, styles$x);
2174
+ classNames = makeStyleContext(classNames, theme, styles$w);
2184
2175
  style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
2185
2176
  }
2186
2177
 
@@ -2196,13 +2187,13 @@ var Cover = function Cover(_ref) {
2196
2187
  "data-testid": "cover",
2197
2188
  className: makeClassName(classNames)
2198
2189
  }, React.createElement("div", {
2199
- className: styles$x.image
2190
+ className: styles$w.image
2200
2191
  }, React.createElement(Image, {
2201
2192
  optimized: urls,
2202
2193
  ratio: mobileRatio,
2203
2194
  display: "narrow"
2204
2195
  })), React.createElement("div", {
2205
- className: styles$x.body,
2196
+ className: styles$w.body,
2206
2197
  style: style
2207
2198
  }, blocks.map(function (item) {
2208
2199
  return React.createElement(RenderBlocks, {
@@ -2211,7 +2202,7 @@ var Cover = function Cover(_ref) {
2211
2202
  styleContext: styleContext
2212
2203
  });
2213
2204
  })), cc === 'button' && React.createElement("button", {
2214
- className: styles$x.control,
2205
+ className: styles$w.control,
2215
2206
  type: "button",
2216
2207
  "aria-label": "Open",
2217
2208
  onClick: function onClick() {
@@ -2224,7 +2215,7 @@ var Cover = function Cover(_ref) {
2224
2215
  }, renderCC('isInPopover')));
2225
2216
  };
2226
2217
 
2227
- 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"};
2218
+ 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"};
2228
2219
 
2229
2220
  var HalfBlock = function HalfBlock(_ref) {
2230
2221
  var _ref$block = _ref.block,
@@ -2236,25 +2227,25 @@ var HalfBlock = function HalfBlock(_ref) {
2236
2227
  credit = _ref$block$data$cover.credit,
2237
2228
  caption = _ref$block$data$cover.caption,
2238
2229
  styleContext = _ref.styleContext;
2239
- var classNames = [[styles$y.root, true], [styles$y[onlyOn], true]];
2230
+ var classNames = [[styles$x.root, true], [styles$x[onlyOn], true]];
2240
2231
 
2241
2232
  if (styleContext) {
2242
- classNames = makeStyleContext(classNames, styleContext, styles$y);
2233
+ classNames = makeStyleContext(classNames, styleContext, styles$x);
2243
2234
  }
2244
2235
 
2245
2236
  return React.createElement("div", {
2246
2237
  "data-testid": "half-block",
2247
2238
  className: makeClassName(classNames)
2248
2239
  }, React.createElement("div", {
2249
- className: styles$y.main
2240
+ className: styles$x.main
2250
2241
  }, React.createElement("div", {
2251
- className: styles$y.image
2242
+ className: styles$x.image
2252
2243
  }, React.createElement(Image, {
2253
2244
  optimized: optimized,
2254
2245
  ratio: ratio,
2255
2246
  display: "super_full"
2256
2247
  })), React.createElement("div", {
2257
- className: styles$y.body
2248
+ className: styles$x.body
2258
2249
  }, data.blocks.map(function (item) {
2259
2250
  return React.createElement(RenderBlocks, {
2260
2251
  key: item.id,
@@ -2262,7 +2253,7 @@ var HalfBlock = function HalfBlock(_ref) {
2262
2253
  styleContext: ['rich']
2263
2254
  });
2264
2255
  }))), React.createElement("div", {
2265
- className: styles$y.footer
2256
+ className: styles$x.footer
2266
2257
  }, React.createElement(MediaCaption, {
2267
2258
  credit: credit,
2268
2259
  caption: caption,
@@ -2270,17 +2261,17 @@ var HalfBlock = function HalfBlock(_ref) {
2270
2261
  })));
2271
2262
  };
2272
2263
 
2273
- var styles$z = {"root":"ImportantLead-module_root__2BdT3","slide":"ImportantLead-module_slide__3kQ9x","mobile":"ImportantLead-module_mobile__3BXbm","desktop":"ImportantLead-module_desktop__3Zljc"};
2264
+ var styles$y = {"root":"ImportantLead-module_root__2BdT3","slide":"ImportantLead-module_slide__3kQ9x","mobile":"ImportantLead-module_mobile__3BXbm","desktop":"ImportantLead-module_desktop__3Zljc"};
2274
2265
 
2275
2266
  var ImportantLead = function ImportantLead(_ref) {
2276
2267
  var _ref$block = _ref.block,
2277
2268
  onlyOn = _ref$block.only_on,
2278
2269
  data = _ref$block.data,
2279
2270
  styleContext = _ref.styleContext;
2280
- var classNames = [[styles$z.root, true], [styles$z[onlyOn], !!onlyOn]];
2271
+ var classNames = [[styles$y.root, true], [styles$y[onlyOn], !!onlyOn]];
2281
2272
 
2282
2273
  if (styleContext) {
2283
- classNames = makeStyleContext(classNames, styleContext, styles$z);
2274
+ classNames = makeStyleContext(classNames, styleContext, styles$y);
2284
2275
  }
2285
2276
 
2286
2277
  return React.createElement("div", {
@@ -2295,7 +2286,7 @@ var ImportantLead = function ImportantLead(_ref) {
2295
2286
  }));
2296
2287
  };
2297
2288
 
2298
- 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"};
2289
+ 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"};
2299
2290
 
2300
2291
  var Spoiler = function Spoiler(_ref) {
2301
2292
  var _ref$block = _ref.block,
@@ -2330,11 +2321,11 @@ var Spoiler = function Spoiler(_ref) {
2330
2321
  }
2331
2322
  };
2332
2323
 
2333
- var classNames = [[styles$A.root, true], [styles$A[onlyOn], !!onlyOn], [styles$A[display], !!display && styles$A[display]], [[styles$A.spoiled], !!spoiled]];
2324
+ var classNames = [[styles$z.root, true], [styles$z[onlyOn], !!onlyOn], [styles$z[display], !!display && styles$z[display]], [[styles$z.spoiled], !!spoiled]];
2334
2325
  var context = ['center'];
2335
2326
 
2336
2327
  if (styleContext) {
2337
- classNames = makeStyleContext(classNames, styleContext, styles$A);
2328
+ classNames = makeStyleContext(classNames, styleContext, styles$z);
2338
2329
  }
2339
2330
 
2340
2331
  var buttonCollapse = button ? button.collapse : 'Свернуть';
@@ -2344,9 +2335,9 @@ var Spoiler = function Spoiler(_ref) {
2344
2335
  className: makeClassName(classNames),
2345
2336
  "data-testid": "spoiler"
2346
2337
  }, React.createElement("div", {
2347
- className: styles$A.header
2338
+ className: styles$z.header
2348
2339
  }, title && React.createElement("h3", null, title)), React.createElement("div", {
2349
- className: styles$A.body
2340
+ className: styles$z.body
2350
2341
  }, blocks.map(function (item) {
2351
2342
  return React.createElement(RenderBlocks, {
2352
2343
  key: item.id,
@@ -2354,7 +2345,7 @@ var Spoiler = function Spoiler(_ref) {
2354
2345
  styleContext: context
2355
2346
  });
2356
2347
  })), React.createElement("div", {
2357
- className: styles$A.footer
2348
+ className: styles$z.footer
2358
2349
  }, React.createElement(Button, {
2359
2350
  size: "default",
2360
2351
  theme: "gray",
@@ -2367,7 +2358,7 @@ var Spoiler = function Spoiler(_ref) {
2367
2358
  }))));
2368
2359
  };
2369
2360
 
2370
- 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"};
2361
+ 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"};
2371
2362
 
2372
2363
  /* eslint-disable react/jsx-no-target-blank */
2373
2364
  var RelatedRichBlock = function RelatedRichBlock(_ref) {
@@ -2406,18 +2397,18 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
2406
2397
  postMessage('richRelated', url, 'click');
2407
2398
  };
2408
2399
 
2409
- var classNames = [[styles$B.root, true], [styles$B[cardType], !!layout && !!styles$B[cardType]], [styles$B.hasGradient, !!gradients], [styles$B[onlyOn], !!onlyOn && !!styles$B[onlyOn]]];
2400
+ var classNames = [[styles$A.root, true], [styles$A[cardType], !!layout && !!styles$A[cardType]], [styles$A.hasGradient, !!gradients], [styles$A[onlyOn], !!onlyOn && !!styles$A[onlyOn]]];
2410
2401
  var context = ['isInMediaBlock'];
2411
2402
 
2412
2403
  if (styleContext) {
2413
- classNames = makeStyleContext(classNames, styleContext, styles$B);
2404
+ classNames = makeStyleContext(classNames, styleContext, styles$A);
2414
2405
  context = [].concat(styleContext, ['isInMediaBlock']);
2415
2406
  }
2416
2407
 
2417
2408
  if (gradients) {
2418
2409
  styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
2419
2410
  var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
2420
- classNames = makeStyleContext(classNames, theme, styles$B);
2411
+ classNames = makeStyleContext(classNames, theme, styles$A);
2421
2412
 
2422
2413
  if (onlyOn === 'desktop') {
2423
2414
  style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
@@ -2434,27 +2425,27 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
2434
2425
  },
2435
2426
  ref: ref
2436
2427
  }, layout === 'rich' && React.createElement(React.Fragment, null, React.createElement("div", {
2437
- className: styles$B.overlay,
2428
+ className: styles$A.overlay,
2438
2429
  style: style
2439
2430
  }), React.createElement("div", {
2440
- className: styles$B.overlayHeader,
2431
+ className: styles$A.overlayHeader,
2441
2432
  style: styleHeader
2442
2433
  })), React.createElement("div", {
2443
- className: styles$B.tag
2434
+ className: styles$A.tag
2444
2435
  }, React.createElement(Tag, {
2445
2436
  size: "small",
2446
2437
  theme: "inherit",
2447
2438
  styleContext: "richRelated"
2448
2439
  }, tag)), React.createElement("div", {
2449
- className: styles$B.cover
2440
+ className: styles$A.cover
2450
2441
  }, React.createElement("div", {
2451
- className: styles$B.picture
2442
+ className: styles$A.picture
2452
2443
  }, React.createElement(Image, {
2453
2444
  optimized: urls,
2454
2445
  ratio: ratio,
2455
2446
  display: "narrow"
2456
2447
  }))), React.createElement("div", {
2457
- className: styles$B.body
2448
+ className: styles$A.body
2458
2449
  }, blocks.map(function (item) {
2459
2450
  return React.createElement(RenderBlocks, {
2460
2451
  key: item.id,
@@ -2535,7 +2526,7 @@ var RawHtmlBlock = function RawHtmlBlock(_ref) {
2535
2526
  }
2536
2527
  };
2537
2528
 
2538
- 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"};
2529
+ 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"};
2539
2530
 
2540
2531
  var ToolbarButton = function ToolbarButton(_ref) {
2541
2532
  var children = _ref.children,
@@ -2543,8 +2534,10 @@ var ToolbarButton = function ToolbarButton(_ref) {
2543
2534
  theme = _ref.theme,
2544
2535
  isActive = _ref.isActive,
2545
2536
  _onClick = _ref.onClick;
2546
- var classNames = [[styles$C.root, true], [styles$C[type], !!styles$C[type]], [styles$C[theme], !!styles$C[theme] && !!theme], [styles$C.isActive, !!isActive]];
2547
- return React.createElement("button", {
2537
+ var classNames = [[styles$B.root, true], [styles$B[type], !!styles$B[type]], [styles$B[theme], !!styles$B[theme] && !!theme], [styles$B.isActive, !!isActive]];
2538
+ return React.createElement("li", {
2539
+ className: toolbarStyles.item
2540
+ }, React.createElement("button", {
2548
2541
  "data-testid": "toolbar-button",
2549
2542
  className: makeClassName(classNames),
2550
2543
  type: "button",
@@ -2556,8 +2549,8 @@ var ToolbarButton = function ToolbarButton(_ref) {
2556
2549
  icon: type,
2557
2550
  styleContext: "isInToolbar"
2558
2551
  }), children && React.createElement("span", {
2559
- className: styles$C.text
2560
- }, children));
2552
+ className: styles$B.text
2553
+ }, children)));
2561
2554
  };
2562
2555
 
2563
2556
  export { BookmarkButton, Button, CardTitle, ChapterBlock, Cover, DocumentItemsCount, DotsOnImage, Dropdown, EmbedBlockContainer, Footnote, GroupedBlock, HalfBlock, Image, ImportantLead, Lazy, ListBlock, MaterialNote, MaterialTitle, MediaCaption, Menu, Meta, MetaItem, MetaItemLive, Popover, Primary, QuoteBlock, RawHtmlBlock, RelatedBlock, RelatedRichBlock, RenderBlocks, RichTitle, Secondary, SensitiveBlock, SimpleBlock, SimpleTitle, SourceBlock, Spoiler, SvgSymbol, Switcher, Table, Tag, Timestamp, Toolbar, ToolbarButton };