@meduza/ui-kit-2 0.2.36 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button/Button.d.ts +3 -0
- package/dist/Button/Button.types.d.ts +2 -0
- package/dist/Button/ButtonLoader.d.ts +2 -0
- package/dist/Button/index.d.ts +2 -3
- package/dist/SvgSymbol/SvgSymbol.types.d.ts +1 -1
- package/dist/SvgSymbol/icons.d.ts +5 -0
- package/dist/Toolbar/Toolbar.d.ts +3 -0
- package/dist/Toolbar/Toolbar.types.d.ts +3 -0
- package/dist/Toolbar/ToolbarItem.d.ts +3 -0
- package/dist/Toolbar/index.d.ts +2 -3
- package/dist/ToolbarButton/ToolbarButton.types.d.ts +4 -5
- package/dist/Tooltip/Tooltip.d.ts +3 -0
- package/dist/Tooltip/Tooltip.stories.d.ts +10 -0
- package/dist/Tooltip/Tooltip.types.d.ts +8 -0
- package/dist/Tooltip/TooltipFooter.d.ts +3 -0
- package/dist/Tooltip/index.d.ts +2 -0
- package/dist/constants.d.ts +2 -4
- package/dist/index.d.ts +1 -0
- package/dist/ui-kit-2.cjs.development.js +204 -167
- package/dist/ui-kit-2.cjs.development.js.map +1 -1
- package/dist/ui-kit-2.cjs.production.min.js +1 -1
- package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
- package/dist/ui-kit-2.esm.js +201 -168
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit.css +3331 -3246
- package/dist/utils/capitalizeFirstLetter.d.ts +1 -0
- package/package.json +1 -1
- package/src/BookmarkButton/BookmarkButton.css +0 -4
- package/src/BookmarkButton/BookmarkButton.module.css +0 -4
- package/src/Button/Button.module.css +13 -0
- package/src/Button/Button.stories.tsx +15 -1
- package/src/Button/Button.tsx +50 -0
- package/src/Button/Button.types.ts +3 -0
- package/src/Button/{loader.tsx → ButtonLoader.tsx} +1 -3
- package/src/Button/index.tsx +2 -48
- package/src/EmbedBlock/EmbedBlock.test.tsx +2 -6
- package/src/SvgSymbol/SvgSymbol.module.css +4 -0
- package/src/SvgSymbol/SvgSymbol.stories.tsx +1 -1
- package/src/SvgSymbol/SvgSymbol.types.ts +1 -0
- package/src/SvgSymbol/icons.ts +6 -0
- package/src/Toolbar/Toolbar.module.css +0 -5
- package/src/Toolbar/Toolbar.stories.tsx +18 -25
- package/src/Toolbar/Toolbar.tsx +20 -0
- package/src/Toolbar/Toolbar.types.ts +4 -0
- package/src/Toolbar/ToolbarItem.tsx +8 -0
- package/src/Toolbar/index.tsx +2 -20
- package/src/ToolbarButton/ToolbarButton.module.css +0 -14
- package/src/ToolbarButton/ToolbarButton.types.ts +4 -5
- package/src/ToolbarButton/index.tsx +14 -23
- package/src/Tooltip/Tooltip.module.css +91 -0
- package/src/Tooltip/Tooltip.stories.module.css +7 -0
- package/src/Tooltip/Tooltip.stories.tsx +69 -0
- package/src/Tooltip/Tooltip.test.tsx +16 -0
- package/src/Tooltip/Tooltip.tsx +24 -0
- package/src/Tooltip/Tooltip.types.ts +8 -0
- package/src/Tooltip/TooltipFooter.tsx +7 -0
- package/src/Tooltip/index.tsx +2 -0
- package/src/constants.ts +3 -5
- package/src/index.tsx +1 -0
- package/src/utils/capitalizeFirstLetter.ts +2 -0
- package/dist/Button/loader.d.ts +0 -3
|
@@ -22,7 +22,7 @@ var makeClassName = function makeClassName(list) {
|
|
|
22
22
|
}).join(' ');
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var ButtonLoader = function ButtonLoader() {
|
|
26
26
|
return React__default.createElement("svg", {
|
|
27
27
|
width: "30px",
|
|
28
28
|
height: "30px",
|
|
@@ -45,7 +45,7 @@ var Loader = function Loader() {
|
|
|
45
45
|
})));
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
var styles = {"root":"Button-module_root__RpsiW","gold":"Button-module_gold__ZMYg-","isLoading":"Button-module_isLoading__1g6QO","gray":"Button-module_gray__3IM54","sand":"Button-module_sand__2AqVq","dark":"Button-module_dark__I0uXx","light":"Button-module_light__1Y4hG","black":"Button-module_black__3sG3Y","red":"Button-module_red__3Niou","default":"Button-module_default__28Vo_","isInSpoiler":"Button-module_isInSpoiler__2Yl8c","ghost":"Button-module_ghost__3awCW","isInDropdown":"Button-module_isInDropdown__1ogKL","loader":"Button-module_loader__2pl6d"};
|
|
48
|
+
var styles = {"root":"Button-module_root__RpsiW","gold":"Button-module_gold__ZMYg-","isLoading":"Button-module_isLoading__1g6QO","gray":"Button-module_gray__3IM54","sand":"Button-module_sand__2AqVq","dark":"Button-module_dark__I0uXx","light":"Button-module_light__1Y4hG","black":"Button-module_black__3sG3Y","red":"Button-module_red__3Niou","default":"Button-module_default__28Vo_","isInSpoiler":"Button-module_isInSpoiler__2Yl8c","ghost":"Button-module_ghost__3awCW","isInDropdown":"Button-module_isInDropdown__1ogKL","loader":"Button-module_loader__2pl6d","isFancy":"Button-module_isFancy__3FPVR"};
|
|
49
49
|
|
|
50
50
|
var Button = function Button(_ref) {
|
|
51
51
|
var _ref$theme = _ref.theme,
|
|
@@ -56,6 +56,7 @@ var Button = function Button(_ref) {
|
|
|
56
56
|
state = _ref$state === void 0 ? 'isDefault' : _ref$state,
|
|
57
57
|
_ref$styleContext = _ref.styleContext,
|
|
58
58
|
styleContext = _ref$styleContext === void 0 ? 'isInToolbar' : _ref$styleContext,
|
|
59
|
+
appearance = _ref.appearance,
|
|
59
60
|
_ref$disabled = _ref.disabled,
|
|
60
61
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
61
62
|
onClick = _ref.onClick,
|
|
@@ -71,13 +72,13 @@ var Button = function Button(_ref) {
|
|
|
71
72
|
|
|
72
73
|
return React__default.createElement("button", {
|
|
73
74
|
"data-testid": "button",
|
|
74
|
-
className: makeClassName([[styles.root, true], [styles[size], !!size], [styles[theme], !!theme], [styles[state], !!state && !!styles[state]], [styles[styleContext], !!styleContext]]),
|
|
75
|
+
className: makeClassName([[styles.root, true], [styles[size], !!size], [styles[theme], !!theme], [styles[appearance], !!appearance], [styles[state], !!state && !!styles[state]], [styles[styleContext], !!styleContext]]),
|
|
75
76
|
disabled: disabled,
|
|
76
77
|
onClick: handleClick,
|
|
77
78
|
type: "button"
|
|
78
79
|
}, state === 'isLoading' ? React__default.createElement("span", {
|
|
79
80
|
className: styles.loader
|
|
80
|
-
}, React__default.createElement(
|
|
81
|
+
}, React__default.createElement(ButtonLoader, null)) : children);
|
|
81
82
|
};
|
|
82
83
|
|
|
83
84
|
var icons = {
|
|
@@ -240,10 +241,15 @@ var icons = {
|
|
|
240
241
|
width: 15,
|
|
241
242
|
height: 15,
|
|
242
243
|
content: '<g fill-rule="nonzero"><path d="M4.978 4.354a.5.5 0 01-.332.624c-1.197.367-2.064 1.527-2.14 2.897l-.005.167a.749.749 0 01.999.708v3a.75.75 0 01-1.458.248L2 12a1 1 0 01-1-1v-1a1 1 0 01.5-.866V8.072c0-1.886 1.172-3.535 2.854-4.05a.5.5 0 01.624.332zM10 7a.5.5 0 01.492.41l.008.09.001 1.634a1 1 0 01.492.745L11 10v1a1 1 0 01-.883.993L10 12l-.042-.002a.75.75 0 01-1.451-.146L8.5 11.75v-3a.75.75 0 011.001-.707L9.5 7.5l.008-.09A.5.5 0 0110 7z" fill="currentColor" /><path d="M11.585 1.194a.513.513 0 01.855.56l-.051.077-3.163 3.975a.514.514 0 01-.73.075l-.068-.069-1.812-2.208a.512.512 0 01.729-.716l.065.066 1.409 1.718 2.766-3.478z" fill="#6EAC65" /></g>'
|
|
244
|
+
},
|
|
245
|
+
magic: {
|
|
246
|
+
width: 15,
|
|
247
|
+
height: 15,
|
|
248
|
+
content: '<g fill-rule="evenodd" clip-rule="evenodd"> <path d="M7.804.4a.6.6 0 0 1 .6.6v2.035a.6.6 0 0 1-1.2 0V1a.6.6 0 0 1 .6-.6ZM7.804 10.577a.6.6 0 0 1 .6.6v2.035a.6.6 0 1 1-1.2 0v-2.035a.6.6 0 0 1 .6-.6ZM14.636 7.106a.6.6 0 0 1-.6.6h-2.078a.6.6 0 1 1 0-1.2h2.078a.6.6 0 0 1 .6.6ZM4.25 7.106a.6.6 0 0 1-.6.6H1.573a.6.6 0 0 1 0-1.2H3.65a.6.6 0 0 1 .6.6ZM12.639 2.37a.585.585 0 0 1 0 .84l-1.442 1.412a.615.615 0 0 1-.857 0 .585.585 0 0 1 0-.84l1.442-1.412a.615.615 0 0 1 .857 0ZM12.639 11.843a.615.615 0 0 1-.857 0L10.34 10.43a.585.585 0 0 1 0-.84.615.615 0 0 1 .857 0l1.442 1.413a.585.585 0 0 1 0 .84ZM5.269 4.621a.615.615 0 0 1-.858 0L2.97 3.208a.585.585 0 0 1 0-.84.615.615 0 0 1 .858 0l1.442 1.413a.585.585 0 0 1 0 .84ZM8.926 6.074a.6.6 0 0 1 0 .849l-.863.863-.849-.849.863-.863a.6.6 0 0 1 .849 0ZM7.348 8.5l-5.924 5.924a.6.6 0 1 1-.848-.848L6.5 7.652l.848.848Z"/> </g>'
|
|
243
249
|
}
|
|
244
250
|
};
|
|
245
251
|
|
|
246
|
-
var styles$1 = {"root":"SvgSymbol-module_root__2CsRW","small":"SvgSymbol-module_small__2g6oR","normal":"SvgSymbol-module_normal__9lFn1","medium":"SvgSymbol-module_medium__2eF5L","large":"SvgSymbol-module_large__2kQrt","adaptive":"SvgSymbol-module_adaptive__3_68T","fb":"SvgSymbol-module_fb__1whmw","vk":"SvgSymbol-module_vk__3VEuu","ok":"SvgSymbol-module_ok__2_1Qb","tw":"SvgSymbol-module_tw__2VRG5","tg":"SvgSymbol-module_tg__2xe2f","reaction":"SvgSymbol-module_reaction__rrJvf","card":"SvgSymbol-module_card__1XAqw","podcast":"SvgSymbol-module_podcast__3oPoo","read":"SvgSymbol-module_read__2V82i","listened":"SvgSymbol-module_listened__1oMFV","menu":"SvgSymbol-module_menu__2iYFt","cross":"SvgSymbol-module_cross__J2lCN","isInFeature":"SvgSymbol-module_isInFeature__cDeTI","isInCard":"SvgSymbol-module_isInCard__pKq4e","isInTopicBlockItem":"SvgSymbol-module_isInTopicBlockItem__3Te91","isInPageStatic":"SvgSymbol-module_isInPageStatic__H31Rd","isInMaterialMeta":"SvgSymbol-module_isInMaterialMeta__2IbAw","isInAudioPlayer":"SvgSymbol-module_isInAudioPlayer__2xlzW","isInEpisodeBlock":"SvgSymbol-module_isInEpisodeBlock__2vY3o","isInButtonPlaybackRate":"SvgSymbol-module_isInButtonPlaybackRate__1L3TW","isInButtonBackward":"SvgSymbol-module_isInButtonBackward__1Grf9","isInButtonForward":"SvgSymbol-module_isInButtonForward__D1AFL","isInToolbar":"SvgSymbol-module_isInToolbar__3SaIh","play":"SvgSymbol-module_play__pM-qY","meduzaLogo":"SvgSymbol-module_meduzaLogo__2Ouzp","arrow":"SvgSymbol-module_arrow__11naX","oil":"SvgSymbol-module_oil__hvHE5","search":"SvgSymbol-module_search__VK6p3","user":"SvgSymbol-module_user__1MGim","bookmark":"SvgSymbol-module_bookmark__2z7tX","shareBookmark":"SvgSymbol-module_shareBookmark__QEJOS","receipt":"SvgSymbol-module_receipt__3Eqow","isInHeader":"SvgSymbol-module_isInHeader__1QHjL"};
|
|
252
|
+
var styles$1 = {"root":"SvgSymbol-module_root__2CsRW","small":"SvgSymbol-module_small__2g6oR","normal":"SvgSymbol-module_normal__9lFn1","medium":"SvgSymbol-module_medium__2eF5L","large":"SvgSymbol-module_large__2kQrt","adaptive":"SvgSymbol-module_adaptive__3_68T","fb":"SvgSymbol-module_fb__1whmw","vk":"SvgSymbol-module_vk__3VEuu","ok":"SvgSymbol-module_ok__2_1Qb","tw":"SvgSymbol-module_tw__2VRG5","tg":"SvgSymbol-module_tg__2xe2f","magic":"SvgSymbol-module_magic__TYq9U","reaction":"SvgSymbol-module_reaction__rrJvf","card":"SvgSymbol-module_card__1XAqw","podcast":"SvgSymbol-module_podcast__3oPoo","read":"SvgSymbol-module_read__2V82i","listened":"SvgSymbol-module_listened__1oMFV","menu":"SvgSymbol-module_menu__2iYFt","cross":"SvgSymbol-module_cross__J2lCN","isInFeature":"SvgSymbol-module_isInFeature__cDeTI","isInCard":"SvgSymbol-module_isInCard__pKq4e","isInTopicBlockItem":"SvgSymbol-module_isInTopicBlockItem__3Te91","isInPageStatic":"SvgSymbol-module_isInPageStatic__H31Rd","isInMaterialMeta":"SvgSymbol-module_isInMaterialMeta__2IbAw","isInAudioPlayer":"SvgSymbol-module_isInAudioPlayer__2xlzW","isInEpisodeBlock":"SvgSymbol-module_isInEpisodeBlock__2vY3o","isInButtonPlaybackRate":"SvgSymbol-module_isInButtonPlaybackRate__1L3TW","isInButtonBackward":"SvgSymbol-module_isInButtonBackward__1Grf9","isInButtonForward":"SvgSymbol-module_isInButtonForward__D1AFL","isInToolbar":"SvgSymbol-module_isInToolbar__3SaIh","play":"SvgSymbol-module_play__pM-qY","meduzaLogo":"SvgSymbol-module_meduzaLogo__2Ouzp","arrow":"SvgSymbol-module_arrow__11naX","oil":"SvgSymbol-module_oil__hvHE5","search":"SvgSymbol-module_search__VK6p3","user":"SvgSymbol-module_user__1MGim","bookmark":"SvgSymbol-module_bookmark__2z7tX","shareBookmark":"SvgSymbol-module_shareBookmark__QEJOS","receipt":"SvgSymbol-module_receipt__3Eqow","isInHeader":"SvgSymbol-module_isInHeader__1QHjL"};
|
|
247
253
|
|
|
248
254
|
var SvgSymbol = function SvgSymbol(_ref) {
|
|
249
255
|
var icon = _ref.icon,
|
|
@@ -382,21 +388,19 @@ var imageConditionalKeys = {
|
|
|
382
388
|
var SocialLabels = {
|
|
383
389
|
ru: {
|
|
384
390
|
tg: 'Телеграм',
|
|
385
|
-
fb: '
|
|
386
|
-
vk: 'Вк',
|
|
387
|
-
ok: 'Ок',
|
|
391
|
+
fb: 'Фейсбук',
|
|
388
392
|
tw: 'Твиттер',
|
|
389
393
|
pdf: 'PDF',
|
|
394
|
+
unblock: 'Magic link',
|
|
390
395
|
bookmark: 'В закладки',
|
|
391
396
|
reaction: 'Напишите нам'
|
|
392
397
|
},
|
|
393
398
|
en: {
|
|
394
399
|
tg: 'Telegram',
|
|
395
400
|
fb: 'Fb',
|
|
396
|
-
vk: 'Vk',
|
|
397
|
-
ok: 'Ok',
|
|
398
401
|
tw: 'Twitter',
|
|
399
402
|
pdf: 'PDF',
|
|
403
|
+
unblock: 'Magic link',
|
|
400
404
|
bookmark: 'Add to bookmarks'
|
|
401
405
|
}
|
|
402
406
|
};
|
|
@@ -1033,26 +1037,33 @@ var Dropdown = function Dropdown(_ref2) {
|
|
|
1033
1037
|
}, children);
|
|
1034
1038
|
};
|
|
1035
1039
|
|
|
1036
|
-
var
|
|
1040
|
+
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","slide":"Toolbar-module_slide__2HmGc","card":"Toolbar-module_card__1VbvB","isDark":"Toolbar-module_isDark__k1U0i","dark":"Toolbar-module_dark__2Ejc9"};
|
|
1041
|
+
|
|
1042
|
+
var ToolbarItem = function ToolbarItem(_ref) {
|
|
1043
|
+
var children = _ref.children;
|
|
1044
|
+
return React__default.createElement("li", {
|
|
1045
|
+
className: styles$f.item
|
|
1046
|
+
}, children);
|
|
1047
|
+
};
|
|
1037
1048
|
|
|
1038
1049
|
var Toolbar = function Toolbar(_ref) {
|
|
1039
1050
|
var children = _ref.children,
|
|
1040
1051
|
styleContext = _ref.styleContext;
|
|
1041
|
-
var classNames = [[
|
|
1052
|
+
var classNames = [[styles$f.root, true]];
|
|
1042
1053
|
|
|
1043
1054
|
if (styleContext) {
|
|
1044
|
-
classNames = makeStyleContext(classNames, styleContext,
|
|
1055
|
+
classNames = makeStyleContext(classNames, styleContext, styles$f);
|
|
1045
1056
|
}
|
|
1046
1057
|
|
|
1047
1058
|
return React__default.createElement("div", {
|
|
1048
1059
|
"data-testid": "toolbar",
|
|
1049
1060
|
className: makeClassName(classNames)
|
|
1050
1061
|
}, React__default.createElement("ul", {
|
|
1051
|
-
className:
|
|
1062
|
+
className: styles$f.list
|
|
1052
1063
|
}, children));
|
|
1053
1064
|
};
|
|
1054
1065
|
|
|
1055
|
-
var styles$
|
|
1066
|
+
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","podcastMaterial":"Meta-module_podcastMaterial__2fHAt","light":"Meta-module_light__2baE-","dark":"Meta-module_dark__24y9m","isDark":"Meta-module_isDark__3g22f","hasSource":"Meta-module_hasSource__2lXiN","bookmark":"Meta-module_bookmark__3ot3k","mobile":"Meta-module_mobile__22LGV","desktop":"Meta-module_desktop__1ZGUS"};
|
|
1056
1067
|
|
|
1057
1068
|
var Meta = function Meta(_ref) {
|
|
1058
1069
|
var hasSource = _ref.hasSource,
|
|
@@ -1060,10 +1071,10 @@ var Meta = function Meta(_ref) {
|
|
|
1060
1071
|
children = _ref.children,
|
|
1061
1072
|
onlyOn = _ref.onlyOn,
|
|
1062
1073
|
styleContext = _ref.styleContext;
|
|
1063
|
-
var classNames = [[styles$
|
|
1074
|
+
var classNames = [[styles$g.root, true], [styles$g[theme], !!theme && !!styles$g[theme]], [styles$g[onlyOn], !!onlyOn], [styles$g.hasSource, hasSource]];
|
|
1064
1075
|
|
|
1065
1076
|
if (styleContext) {
|
|
1066
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1077
|
+
classNames = makeStyleContext(classNames, styleContext, styles$g);
|
|
1067
1078
|
}
|
|
1068
1079
|
|
|
1069
1080
|
return React__default.createElement("div", {
|
|
@@ -1072,7 +1083,7 @@ var Meta = function Meta(_ref) {
|
|
|
1072
1083
|
}, children);
|
|
1073
1084
|
};
|
|
1074
1085
|
|
|
1075
|
-
var styles$
|
|
1086
|
+
var styles$h = {"root":"Timestamp-module_root__coOvT"};
|
|
1076
1087
|
|
|
1077
1088
|
var Timestamp = function Timestamp(_ref) {
|
|
1078
1089
|
var publishedAt = _ref.publishedAt,
|
|
@@ -1098,7 +1109,7 @@ var Timestamp = function Timestamp(_ref) {
|
|
|
1098
1109
|
return React__default.createElement("time", {
|
|
1099
1110
|
suppressHydrationWarning: true,
|
|
1100
1111
|
"data-testid": "timestamp",
|
|
1101
|
-
className: styles$
|
|
1112
|
+
className: styles$h.root
|
|
1102
1113
|
}, published);
|
|
1103
1114
|
};
|
|
1104
1115
|
|
|
@@ -1165,7 +1176,7 @@ var DangerousHTML = function DangerousHTML(_ref) {
|
|
|
1165
1176
|
}));
|
|
1166
1177
|
};
|
|
1167
1178
|
|
|
1168
|
-
var styles$
|
|
1179
|
+
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_"};
|
|
1169
1180
|
|
|
1170
1181
|
var EmbedGif = function EmbedGif(_ref) {
|
|
1171
1182
|
var gif = _ref.gif,
|
|
@@ -1211,9 +1222,9 @@ var EmbedGif = function EmbedGif(_ref) {
|
|
|
1211
1222
|
};
|
|
1212
1223
|
}, []);
|
|
1213
1224
|
return React__default.createElement("div", {
|
|
1214
|
-
className: styles$
|
|
1225
|
+
className: styles$i.figure
|
|
1215
1226
|
}, React__default.createElement("div", {
|
|
1216
|
-
className: styles$
|
|
1227
|
+
className: styles$i.objectWrap,
|
|
1217
1228
|
style: style,
|
|
1218
1229
|
"data-frozen": videoFrozen
|
|
1219
1230
|
}, React__default.createElement("video", {
|
|
@@ -1279,7 +1290,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1279
1290
|
case 'image':
|
|
1280
1291
|
{
|
|
1281
1292
|
return React__default.createElement("div", {
|
|
1282
|
-
className: styles$
|
|
1293
|
+
className: styles$i.figure
|
|
1283
1294
|
}, React__default.createElement(Image, {
|
|
1284
1295
|
source: !optimized && [small, large],
|
|
1285
1296
|
optimized: block.data.optimized,
|
|
@@ -1295,7 +1306,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1295
1306
|
case 'game_embed':
|
|
1296
1307
|
{
|
|
1297
1308
|
return React__default.createElement("div", {
|
|
1298
|
-
className: styles$
|
|
1309
|
+
className: styles$i.gameEmbed
|
|
1299
1310
|
}, React__default.createElement("iframe", {
|
|
1300
1311
|
src: block.data.game_src,
|
|
1301
1312
|
id: block.data.game_id,
|
|
@@ -1306,7 +1317,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1306
1317
|
case 'dots_on_image':
|
|
1307
1318
|
{
|
|
1308
1319
|
return React__default.createElement("div", {
|
|
1309
|
-
className: styles$
|
|
1320
|
+
className: styles$i.figure
|
|
1310
1321
|
}, React__default.createElement(DotsOnImage, {
|
|
1311
1322
|
block: data
|
|
1312
1323
|
}));
|
|
@@ -1315,12 +1326,12 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1315
1326
|
default:
|
|
1316
1327
|
{
|
|
1317
1328
|
return React__default.createElement("div", {
|
|
1318
|
-
className: styles$
|
|
1329
|
+
className: styles$i.object
|
|
1319
1330
|
}, React__default.createElement("div", {
|
|
1320
|
-
className: styles$
|
|
1331
|
+
className: styles$i.wrapper,
|
|
1321
1332
|
style: style
|
|
1322
1333
|
}, React__default.createElement(DangerousHTML, {
|
|
1323
|
-
className: styles$
|
|
1334
|
+
className: styles$i.objectWrap,
|
|
1324
1335
|
html: html
|
|
1325
1336
|
})));
|
|
1326
1337
|
}
|
|
@@ -1332,31 +1343,31 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1332
1343
|
style.height = 0;
|
|
1333
1344
|
}
|
|
1334
1345
|
|
|
1335
|
-
var classNames = [[styles$
|
|
1346
|
+
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,
|
|
1336
1347
|
// чтобы не применились лишние модификаторы
|
|
1337
1348
|
// TODO: в w6 модификаторы должны передаваться явно
|
|
1338
1349
|
|
|
1339
1350
|
if (styleContext && Array.isArray(styleContext)) {
|
|
1340
1351
|
var filteredContext = styleContext.filter(function (key) {
|
|
1341
|
-
return key.startsWith('isIn') && styles$
|
|
1352
|
+
return key.startsWith('isIn') && styles$i[key];
|
|
1342
1353
|
}).reduce(function (acc, key) {
|
|
1343
1354
|
acc.push(key);
|
|
1344
1355
|
return acc;
|
|
1345
1356
|
}, []);
|
|
1346
|
-
classNames = makeStyleContext(classNames, filteredContext, styles$
|
|
1357
|
+
classNames = makeStyleContext(classNames, filteredContext, styles$i);
|
|
1347
1358
|
}
|
|
1348
1359
|
|
|
1349
1360
|
return React__default.createElement("figure", {
|
|
1350
1361
|
className: makeClassName(classNames)
|
|
1351
1362
|
}, children && React__default.createElement("div", {
|
|
1352
|
-
className: styles$
|
|
1363
|
+
className: styles$i.object
|
|
1353
1364
|
}, React__default.createElement("div", {
|
|
1354
|
-
className: styles$
|
|
1365
|
+
className: styles$i.wrapper,
|
|
1355
1366
|
style: style
|
|
1356
1367
|
}, React__default.createElement("div", {
|
|
1357
|
-
className: styles$
|
|
1368
|
+
className: styles$i.objectWrap
|
|
1358
1369
|
}, children))), !children && renderEmbed(style), cc === 'default' && React__default.createElement("figcaption", null, renderCC()), cc === 'button' && React__default.createElement("button", {
|
|
1359
|
-
className: styles$
|
|
1370
|
+
className: styles$i.control,
|
|
1360
1371
|
type: "button",
|
|
1361
1372
|
"aria-label": "Open",
|
|
1362
1373
|
onClick: function onClick() {
|
|
@@ -1432,15 +1443,15 @@ var EmbedBlockContainer = function EmbedBlockContainer(_ref) {
|
|
|
1432
1443
|
});
|
|
1433
1444
|
};
|
|
1434
1445
|
|
|
1435
|
-
var styles$
|
|
1446
|
+
var styles$j = {"root":"QuoteBlock-module_root__2GrcC","center":"QuoteBlock-module_center__cTFNy"};
|
|
1436
1447
|
|
|
1437
1448
|
var QuoteBlock = function QuoteBlock(_ref) {
|
|
1438
1449
|
var data = _ref.block.data,
|
|
1439
1450
|
styleContext = _ref.styleContext;
|
|
1440
|
-
var classNames = [[styles$
|
|
1451
|
+
var classNames = [[styles$j.root, true]];
|
|
1441
1452
|
|
|
1442
1453
|
if (styleContext) {
|
|
1443
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1454
|
+
classNames = makeStyleContext(classNames, styleContext, styles$j);
|
|
1444
1455
|
}
|
|
1445
1456
|
|
|
1446
1457
|
return React__default.createElement("div", {
|
|
@@ -1453,7 +1464,7 @@ var QuoteBlock = function QuoteBlock(_ref) {
|
|
|
1453
1464
|
}));
|
|
1454
1465
|
};
|
|
1455
1466
|
|
|
1456
|
-
var styles$
|
|
1467
|
+
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"};
|
|
1457
1468
|
|
|
1458
1469
|
var CardTitle = function CardTitle(_ref) {
|
|
1459
1470
|
var _ref$block$data = _ref.block.data,
|
|
@@ -1463,15 +1474,15 @@ var CardTitle = function CardTitle(_ref) {
|
|
|
1463
1474
|
styleContext = _ref.styleContext;
|
|
1464
1475
|
return React__default.createElement("div", {
|
|
1465
1476
|
"data-testid": "card-title",
|
|
1466
|
-
className: makeClassName([[styles$
|
|
1477
|
+
className: makeClassName([[styles$k.root, true], [styles$k[onlyOn], !!onlyOn], [styles$k[styleContext], !!styleContext && !!styles$k[styleContext]]])
|
|
1467
1478
|
}, React__default.createElement("div", {
|
|
1468
|
-
className: styles$
|
|
1479
|
+
className: styles$k.index
|
|
1469
1480
|
}, index), React__default.createElement("h3", {
|
|
1470
|
-
className: styles$
|
|
1481
|
+
className: styles$k.title
|
|
1471
1482
|
}, text));
|
|
1472
1483
|
};
|
|
1473
1484
|
|
|
1474
|
-
var styles$
|
|
1485
|
+
var styles$l = {"root":"ChapterBlock-module_root__1WyVn","subtitle":"ChapterBlock-module_subtitle__3TXll","mobile":"ChapterBlock-module_mobile__CiO0w","desktop":"ChapterBlock-module_desktop__tk1Nk"};
|
|
1475
1486
|
|
|
1476
1487
|
var ChapterBlock = function ChapterBlock(_ref) {
|
|
1477
1488
|
var _ref$block = _ref.block,
|
|
@@ -1480,9 +1491,9 @@ var ChapterBlock = function ChapterBlock(_ref) {
|
|
|
1480
1491
|
styleContext = _ref.styleContext;
|
|
1481
1492
|
return React__default.createElement("div", {
|
|
1482
1493
|
"data-testid": "chapter-block",
|
|
1483
|
-
className: makeClassName([[styles$
|
|
1494
|
+
className: makeClassName([[styles$l.root, true], [styles$l[onlyOn], !!onlyOn]])
|
|
1484
1495
|
}, React__default.createElement("div", {
|
|
1485
|
-
className: makeClassName([[styles$
|
|
1496
|
+
className: makeClassName([[styles$l.subtitle, true], [styles$l[styleContext], !!styleContext && !!styles$l[styleContext]]]),
|
|
1486
1497
|
dangerouslySetInnerHTML: {
|
|
1487
1498
|
__html: data
|
|
1488
1499
|
}
|
|
@@ -1500,17 +1511,17 @@ var generateGradient = function generateGradient(color, type) {
|
|
|
1500
1511
|
return "linear-gradient(-180deg, " + gradient + ")";
|
|
1501
1512
|
};
|
|
1502
1513
|
|
|
1503
|
-
var styles$
|
|
1514
|
+
var styles$m = {"root":"SimpleTitle-module_root__2jVQN","mobile":"SimpleTitle-module_mobile__11gBz","desktop":"SimpleTitle-module_desktop__3yXgy"};
|
|
1504
1515
|
|
|
1505
1516
|
var SimpleTitle = function SimpleTitle(_ref) {
|
|
1506
1517
|
var _ref$block = _ref.block,
|
|
1507
1518
|
first = _ref$block.data.first,
|
|
1508
1519
|
onlyOn = _ref$block.only_on,
|
|
1509
1520
|
styleContext = _ref.styleContext;
|
|
1510
|
-
var classNames = [[styles$
|
|
1521
|
+
var classNames = [[styles$m.root, true], [styles$m[onlyOn], true]];
|
|
1511
1522
|
|
|
1512
1523
|
if (styleContext) {
|
|
1513
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1524
|
+
classNames = makeStyleContext(classNames, styleContext, styles$m);
|
|
1514
1525
|
}
|
|
1515
1526
|
|
|
1516
1527
|
return React__default.createElement("h1", {
|
|
@@ -1519,7 +1530,7 @@ var SimpleTitle = function SimpleTitle(_ref) {
|
|
|
1519
1530
|
}, first);
|
|
1520
1531
|
};
|
|
1521
1532
|
|
|
1522
|
-
var styles$
|
|
1533
|
+
var styles$n = {"root":"RichTitle-module_root__BK_WT","slide":"RichTitle-module_slide__1A-gB","game":"RichTitle-module_game__1g8Bn","podcastMaterial":"RichTitle-module_podcastMaterial__T3Cv3","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"};
|
|
1523
1534
|
|
|
1524
1535
|
var RichTitle = function RichTitle(_ref) {
|
|
1525
1536
|
var _ref$block = _ref.block,
|
|
@@ -1531,10 +1542,10 @@ var RichTitle = function RichTitle(_ref) {
|
|
|
1531
1542
|
_ref$block$data$as = _ref$block$data.as,
|
|
1532
1543
|
TagName = _ref$block$data$as === void 0 ? 'h1' : _ref$block$data$as,
|
|
1533
1544
|
styleContext = _ref.styleContext;
|
|
1534
|
-
var classNames = [[styles$
|
|
1545
|
+
var classNames = [[styles$n.root, true], [styles$n[onlyOn], true], [styles$n.featured, !!featured]];
|
|
1535
1546
|
|
|
1536
1547
|
if (styleContext) {
|
|
1537
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1548
|
+
classNames = makeStyleContext(classNames, styleContext, styles$n);
|
|
1538
1549
|
}
|
|
1539
1550
|
|
|
1540
1551
|
return React__default.createElement(TagName, {
|
|
@@ -1543,7 +1554,7 @@ var RichTitle = function RichTitle(_ref) {
|
|
|
1543
1554
|
}, first, second && React__default.createElement("span", null, " ", second));
|
|
1544
1555
|
};
|
|
1545
1556
|
|
|
1546
|
-
var styles$
|
|
1557
|
+
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","divider":"SimpleBlock-module_divider__tnCGQ","isInIntro":"SimpleBlock-module_isInIntro__DfutD","center":"SimpleBlock-module_center__2rjif","isInImportantLead":"SimpleBlock-module_isInImportantLead__3VGzT","podcastMaterial":"SimpleBlock-module_podcastMaterial__1YeaD","isInAnswer":"SimpleBlock-module_isInAnswer__3aX6X","mobile":"SimpleBlock-module_mobile__Ckgek","desktop":"SimpleBlock-module_desktop__2se2o","isDark":"SimpleBlock-module_isDark__22q5s"};
|
|
1547
1558
|
|
|
1548
1559
|
var SimpleBlock = function SimpleBlock(_ref) {
|
|
1549
1560
|
var _ref$block = _ref.block,
|
|
@@ -1552,10 +1563,10 @@ var SimpleBlock = function SimpleBlock(_ref) {
|
|
|
1552
1563
|
onlyOn = _ref$block.only_on,
|
|
1553
1564
|
styleContext = _ref.styleContext;
|
|
1554
1565
|
var TagName;
|
|
1555
|
-
var classNames = [[styles$
|
|
1566
|
+
var classNames = [[styles$o[type], !!type && !!styles$o[type]], [styles$o[onlyOn], true]];
|
|
1556
1567
|
|
|
1557
1568
|
if (styleContext) {
|
|
1558
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1569
|
+
classNames = makeStyleContext(classNames, styleContext, styles$o);
|
|
1559
1570
|
}
|
|
1560
1571
|
|
|
1561
1572
|
switch (type) {
|
|
@@ -1591,7 +1602,7 @@ var SimpleBlock = function SimpleBlock(_ref) {
|
|
|
1591
1602
|
});
|
|
1592
1603
|
};
|
|
1593
1604
|
|
|
1594
|
-
var styles$
|
|
1605
|
+
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"};
|
|
1595
1606
|
|
|
1596
1607
|
var ListBlock = function ListBlock(_ref) {
|
|
1597
1608
|
var _ref$block = _ref.block,
|
|
@@ -1600,10 +1611,10 @@ var ListBlock = function ListBlock(_ref) {
|
|
|
1600
1611
|
onlyOn = _ref$block.only_on,
|
|
1601
1612
|
styleContext = _ref.styleContext;
|
|
1602
1613
|
var TagName = type;
|
|
1603
|
-
var classNames = [[styles$
|
|
1614
|
+
var classNames = [[styles$p.root, true], [styles$p[onlyOn], true], [styles$p[type], !!type && !!styles$p[type]]];
|
|
1604
1615
|
|
|
1605
1616
|
if (styleContext) {
|
|
1606
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1617
|
+
classNames = makeStyleContext(classNames, styleContext, styles$p);
|
|
1607
1618
|
}
|
|
1608
1619
|
|
|
1609
1620
|
return React__default.createElement(TagName, {
|
|
@@ -1619,7 +1630,7 @@ var ListBlock = function ListBlock(_ref) {
|
|
|
1619
1630
|
}));
|
|
1620
1631
|
};
|
|
1621
1632
|
|
|
1622
|
-
var styles$
|
|
1633
|
+
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"};
|
|
1623
1634
|
|
|
1624
1635
|
var RelatedBlock = function RelatedBlock(_ref) {
|
|
1625
1636
|
var _ref$block = _ref.block,
|
|
@@ -1628,32 +1639,32 @@ var RelatedBlock = function RelatedBlock(_ref) {
|
|
|
1628
1639
|
related = _ref$block$data.related,
|
|
1629
1640
|
onlyOn = _ref$block.only_on,
|
|
1630
1641
|
styleContext = _ref.styleContext;
|
|
1631
|
-
var classNames = [[styles$
|
|
1642
|
+
var classNames = [[styles$q.root, true], [styles$q[onlyOn], true]];
|
|
1632
1643
|
|
|
1633
1644
|
if (styleContext) {
|
|
1634
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1645
|
+
classNames = makeStyleContext(classNames, styleContext, styles$q);
|
|
1635
1646
|
}
|
|
1636
1647
|
|
|
1637
1648
|
return React__default.createElement("div", {
|
|
1638
1649
|
"data-testid": "related-block",
|
|
1639
1650
|
className: makeClassName(classNames)
|
|
1640
1651
|
}, React__default.createElement("h3", {
|
|
1641
|
-
className: styles$
|
|
1652
|
+
className: styles$q.header
|
|
1642
1653
|
}, title), React__default.createElement("ul", {
|
|
1643
|
-
className: styles$
|
|
1654
|
+
className: styles$q.items
|
|
1644
1655
|
}, related.map(function (item, index) {
|
|
1645
1656
|
return React__default.createElement("li", {
|
|
1646
1657
|
key: item.id || index,
|
|
1647
|
-
className: styles$
|
|
1658
|
+
className: styles$q[item.layout]
|
|
1648
1659
|
}, React__default.createElement(reactRouterDom.Link, {
|
|
1649
1660
|
to: item.full_url || "/" + item.url
|
|
1650
1661
|
}, React__default.createElement("span", {
|
|
1651
|
-
className: styles$
|
|
1662
|
+
className: styles$q.first
|
|
1652
1663
|
}, item.title), item.second_title && ' ', item.second_title && React__default.createElement("span", null, item.second_title)));
|
|
1653
1664
|
})));
|
|
1654
1665
|
};
|
|
1655
1666
|
|
|
1656
|
-
var styles$
|
|
1667
|
+
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","isDark":"SourceBlock-module_isDark__3hEEp"};
|
|
1657
1668
|
|
|
1658
1669
|
var SourceBlock = function SourceBlock(_ref) {
|
|
1659
1670
|
var _ref$block = _ref.block,
|
|
@@ -1663,10 +1674,10 @@ var SourceBlock = function SourceBlock(_ref) {
|
|
|
1663
1674
|
origin = _ref$block$data.origin,
|
|
1664
1675
|
url = _ref$block$data.url,
|
|
1665
1676
|
styleContext = _ref.styleContext;
|
|
1666
|
-
var classNames = [[styles$
|
|
1677
|
+
var classNames = [[styles$r.root, true], [styles$r[onlyOn], true]];
|
|
1667
1678
|
|
|
1668
1679
|
if (styleContext) {
|
|
1669
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1680
|
+
classNames = makeStyleContext(classNames, styleContext, styles$r);
|
|
1670
1681
|
}
|
|
1671
1682
|
|
|
1672
1683
|
return React__default.createElement("blockquote", {
|
|
@@ -1674,7 +1685,7 @@ var SourceBlock = function SourceBlock(_ref) {
|
|
|
1674
1685
|
cite: url,
|
|
1675
1686
|
className: makeClassName(classNames)
|
|
1676
1687
|
}, React__default.createElement("a", {
|
|
1677
|
-
className: styles$
|
|
1688
|
+
className: styles$r.text,
|
|
1678
1689
|
href: url,
|
|
1679
1690
|
target: "_blank",
|
|
1680
1691
|
rel: "noopener noreferrer"
|
|
@@ -1686,11 +1697,11 @@ var SourceBlock = function SourceBlock(_ref) {
|
|
|
1686
1697
|
}
|
|
1687
1698
|
});
|
|
1688
1699
|
}), React__default.createElement("footer", null, React__default.createElement("cite", {
|
|
1689
|
-
className: styles$
|
|
1700
|
+
className: styles$r.origin
|
|
1690
1701
|
}, origin))));
|
|
1691
1702
|
};
|
|
1692
1703
|
|
|
1693
|
-
var styles$
|
|
1704
|
+
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"};
|
|
1694
1705
|
|
|
1695
1706
|
var SensitiveBlock = function SensitiveBlock(_ref) {
|
|
1696
1707
|
var block = _ref.block,
|
|
@@ -1710,11 +1721,11 @@ var SensitiveBlock = function SensitiveBlock(_ref) {
|
|
|
1710
1721
|
isVisible(true);
|
|
1711
1722
|
};
|
|
1712
1723
|
|
|
1713
|
-
var classNames = [[styles$
|
|
1724
|
+
var classNames = [[styles$s.root, true], [styles$s.visible, visible], [styles$s[display], display && styles$s[display]]];
|
|
1714
1725
|
var context = ['isInSensitiveBlock'];
|
|
1715
1726
|
|
|
1716
1727
|
if (styleContext) {
|
|
1717
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1728
|
+
classNames = makeStyleContext(classNames, styleContext, styles$s);
|
|
1718
1729
|
context = [].concat(styleContext, ['isInSensitiveBlock']);
|
|
1719
1730
|
}
|
|
1720
1731
|
|
|
@@ -1722,32 +1733,32 @@ var SensitiveBlock = function SensitiveBlock(_ref) {
|
|
|
1722
1733
|
"data-testid": "sensitive-block",
|
|
1723
1734
|
className: makeClassName(classNames)
|
|
1724
1735
|
}, React__default.createElement("div", {
|
|
1725
|
-
className: styles$
|
|
1736
|
+
className: styles$s.container
|
|
1726
1737
|
}, React__default.createElement("div", {
|
|
1727
|
-
className: styles$
|
|
1738
|
+
className: styles$s.overlay,
|
|
1728
1739
|
style: {
|
|
1729
1740
|
backgroundImage: "url(" + blurredImage + ")"
|
|
1730
1741
|
}
|
|
1731
1742
|
}, React__default.createElement("div", {
|
|
1732
|
-
className: styles$
|
|
1743
|
+
className: styles$s.content
|
|
1733
1744
|
}, React__default.createElement("p", {
|
|
1734
1745
|
dangerouslySetInnerHTML: {
|
|
1735
1746
|
__html: block.title
|
|
1736
1747
|
}
|
|
1737
1748
|
}), React__default.createElement("div", {
|
|
1738
|
-
className: styles$
|
|
1749
|
+
className: styles$s.button
|
|
1739
1750
|
}, React__default.createElement(Button, {
|
|
1740
1751
|
onClick: function onClick() {
|
|
1741
1752
|
return handleClick();
|
|
1742
1753
|
},
|
|
1743
1754
|
theme: "light"
|
|
1744
1755
|
}, block.button.text)))), React__default.createElement("div", {
|
|
1745
|
-
className: styles$
|
|
1756
|
+
className: styles$s.media
|
|
1746
1757
|
}, React__default.createElement(EmbedBlockContainer, {
|
|
1747
1758
|
block: block.item,
|
|
1748
1759
|
styleContext: context
|
|
1749
1760
|
}))), cc && React__default.createElement("figcaption", {
|
|
1750
|
-
className: styles$
|
|
1761
|
+
className: styles$s.figcaption
|
|
1751
1762
|
}, React__default.createElement(MediaCaption, {
|
|
1752
1763
|
credit: credit,
|
|
1753
1764
|
caption: caption,
|
|
@@ -1755,7 +1766,7 @@ var SensitiveBlock = function SensitiveBlock(_ref) {
|
|
|
1755
1766
|
})));
|
|
1756
1767
|
};
|
|
1757
1768
|
|
|
1758
|
-
var styles$
|
|
1769
|
+
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"};
|
|
1759
1770
|
|
|
1760
1771
|
var GroupedBlock = function GroupedBlock(_ref) {
|
|
1761
1772
|
var block = _ref.block,
|
|
@@ -1772,21 +1783,21 @@ var GroupedBlock = function GroupedBlock(_ref) {
|
|
|
1772
1783
|
var sumWidth = normalizedBoxesWidth.reduce(function (sum, x) {
|
|
1773
1784
|
return sum + x;
|
|
1774
1785
|
});
|
|
1775
|
-
var classNames = [[styles$
|
|
1786
|
+
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]]];
|
|
1776
1787
|
|
|
1777
1788
|
if (styleContext) {
|
|
1778
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1789
|
+
classNames = makeStyleContext(classNames, styleContext, styles$t);
|
|
1779
1790
|
}
|
|
1780
1791
|
|
|
1781
1792
|
return React__default.createElement("div", {
|
|
1782
1793
|
"data-testid": "grouped-block",
|
|
1783
1794
|
className: makeClassName(classNames)
|
|
1784
1795
|
}, React__default.createElement("div", {
|
|
1785
|
-
className: styles$
|
|
1796
|
+
className: styles$t.items
|
|
1786
1797
|
}, block.data.map(function (item, index) {
|
|
1787
1798
|
var percentWidth = normalizedBoxesWidth[index] / sumWidth * 100;
|
|
1788
1799
|
return React__default.createElement("div", {
|
|
1789
|
-
className: styles$
|
|
1800
|
+
className: styles$t.item,
|
|
1790
1801
|
key: item.id,
|
|
1791
1802
|
style: {
|
|
1792
1803
|
width: percentWidth + "%"
|
|
@@ -1799,7 +1810,7 @@ var GroupedBlock = function GroupedBlock(_ref) {
|
|
|
1799
1810
|
styleContext: ['isInGroupedBlock']
|
|
1800
1811
|
}));
|
|
1801
1812
|
})), block.cc && React__default.createElement("figcaption", {
|
|
1802
|
-
className: styles$
|
|
1813
|
+
className: styles$t.figcaption
|
|
1803
1814
|
}, React__default.createElement(MediaCaption, {
|
|
1804
1815
|
credit: block.credit,
|
|
1805
1816
|
caption: block.caption,
|
|
@@ -1807,32 +1818,32 @@ var GroupedBlock = function GroupedBlock(_ref) {
|
|
|
1807
1818
|
})));
|
|
1808
1819
|
};
|
|
1809
1820
|
|
|
1810
|
-
var styles$
|
|
1821
|
+
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"};
|
|
1811
1822
|
|
|
1812
1823
|
var MetaItem = function MetaItem(_ref) {
|
|
1813
1824
|
var hasSource = _ref.hasSource,
|
|
1814
1825
|
type = _ref.type,
|
|
1815
1826
|
children = _ref.children,
|
|
1816
1827
|
bullets = _ref.bullets;
|
|
1817
|
-
var classNames = [[styles$
|
|
1828
|
+
var classNames = [[styles$u.root, true], [styles$u[type], !!type && !!styles$u[type]], [styles$u.hasSource, !!hasSource], [styles$u.hasBullets, !!bullets]];
|
|
1818
1829
|
return React__default.createElement("div", {
|
|
1819
1830
|
"data-testid": "meta-item",
|
|
1820
1831
|
className: makeClassName(classNames)
|
|
1821
1832
|
}, children);
|
|
1822
1833
|
};
|
|
1823
1834
|
|
|
1824
|
-
var styles$
|
|
1835
|
+
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"};
|
|
1825
1836
|
|
|
1826
1837
|
var MetaItemLive = function MetaItemLive(_ref) {
|
|
1827
1838
|
var _ref$theme = _ref.theme,
|
|
1828
1839
|
theme = _ref$theme === void 0 ? 'gold' : _ref$theme;
|
|
1829
|
-
var classNames = [[styles$
|
|
1840
|
+
var classNames = [[styles$v.root, true], [styles$v[theme], !!theme && styles$v[theme]]];
|
|
1830
1841
|
return React__default.createElement("div", {
|
|
1831
1842
|
"data-testid": "meta-item-live",
|
|
1832
1843
|
"data-meta": "live",
|
|
1833
1844
|
className: makeClassName(classNames)
|
|
1834
1845
|
}, React__default.createElement("div", {
|
|
1835
|
-
className: styles$
|
|
1846
|
+
className: styles$v.frame
|
|
1836
1847
|
}));
|
|
1837
1848
|
};
|
|
1838
1849
|
|
|
@@ -1857,7 +1868,7 @@ var pluralize = function pluralize(number, one, two, five) {
|
|
|
1857
1868
|
return five;
|
|
1858
1869
|
};
|
|
1859
1870
|
|
|
1860
|
-
var styles$
|
|
1871
|
+
var styles$w = {"root":"DocumentItemsCount-module_root__P3q-z","items":"DocumentItemsCount-module_items__3pfxW"};
|
|
1861
1872
|
|
|
1862
1873
|
var DocumentItemsCount = function DocumentItemsCount(_ref) {
|
|
1863
1874
|
var type = _ref.type,
|
|
@@ -1894,9 +1905,9 @@ var DocumentItemsCount = function DocumentItemsCount(_ref) {
|
|
|
1894
1905
|
var itemsCount = items + " " + pluralize(items, i18n[lang][type].one, i18n[lang][type].two, i18n[lang][type].five);
|
|
1895
1906
|
return React__default.createElement("div", {
|
|
1896
1907
|
"data-testid": "document-items-count",
|
|
1897
|
-
className: styles$
|
|
1908
|
+
className: styles$w.root
|
|
1898
1909
|
}, children, React__default.createElement("span", {
|
|
1899
|
-
className: styles$
|
|
1910
|
+
className: styles$w.items
|
|
1900
1911
|
}, itemsCount));
|
|
1901
1912
|
};
|
|
1902
1913
|
|
|
@@ -2019,7 +2030,7 @@ var MetaContainer = function MetaContainer(_ref) {
|
|
|
2019
2030
|
icon: isListened ? 'listened' : 'read',
|
|
2020
2031
|
size: "unset"
|
|
2021
2032
|
})), isSlides && lang === 'ru' && React__default.createElement("div", {
|
|
2022
|
-
className: styles$
|
|
2033
|
+
className: styles$g.bookmark
|
|
2023
2034
|
}, React__default.createElement(BookmarkButton, {
|
|
2024
2035
|
isInBookmarks: isInBookmarks,
|
|
2025
2036
|
onClick: function onClick() {
|
|
@@ -2028,16 +2039,16 @@ var MetaContainer = function MetaContainer(_ref) {
|
|
|
2028
2039
|
})));
|
|
2029
2040
|
};
|
|
2030
2041
|
|
|
2031
|
-
var styles$
|
|
2042
|
+
var styles$x = {"root":"DonatesTeaser-module_root__3rtaJ","main":"DonatesTeaser-module_main__YBt6p","title":"DonatesTeaser-module_title__hs-yr","text":"DonatesTeaser-module_text__ro-QA","cta":"DonatesTeaser-module_cta__1orPb","center":"DonatesTeaser-module_center__2Ynx9","isInCard":"DonatesTeaser-module_isInCard__HrFh8","isInSlide":"DonatesTeaser-module_isInSlide__1vC4Z","ru":"DonatesTeaser-module_ru__3Gr0n","en":"DonatesTeaser-module_en__2HSwc"};
|
|
2032
2043
|
|
|
2033
2044
|
var DonatesTeaser = function DonatesTeaser(_ref) {
|
|
2034
2045
|
var styleContext = _ref.styleContext,
|
|
2035
2046
|
_ref$lang = _ref.lang,
|
|
2036
2047
|
lang = _ref$lang === void 0 ? 'ru' : _ref$lang;
|
|
2037
|
-
var classNames = [[styles$
|
|
2048
|
+
var classNames = [[styles$x.root, true], [styles$x[lang], styles$x[lang]]];
|
|
2038
2049
|
|
|
2039
2050
|
if (styleContext) {
|
|
2040
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2051
|
+
classNames = makeStyleContext(classNames, styleContext, styles$x);
|
|
2041
2052
|
}
|
|
2042
2053
|
|
|
2043
2054
|
var data = {
|
|
@@ -2058,20 +2069,20 @@ var DonatesTeaser = function DonatesTeaser(_ref) {
|
|
|
2058
2069
|
"data-testid": "donates-teaser",
|
|
2059
2070
|
className: makeClassName(classNames)
|
|
2060
2071
|
}, React__default.createElement("div", {
|
|
2061
|
-
className: styles$
|
|
2072
|
+
className: styles$x.main
|
|
2062
2073
|
}, React__default.createElement("h3", {
|
|
2063
|
-
className: styles$
|
|
2074
|
+
className: styles$x.title
|
|
2064
2075
|
}, React__default.createElement("span", {
|
|
2065
2076
|
dangerouslySetInnerHTML: {
|
|
2066
2077
|
__html: data[lang].title
|
|
2067
2078
|
}
|
|
2068
2079
|
}), " ", React__default.createElement("span", {
|
|
2069
|
-
className: styles$
|
|
2080
|
+
className: styles$x.text,
|
|
2070
2081
|
dangerouslySetInnerHTML: {
|
|
2071
2082
|
__html: data[lang].subtitle
|
|
2072
2083
|
}
|
|
2073
2084
|
}))), React__default.createElement("div", {
|
|
2074
|
-
className: styles$
|
|
2085
|
+
className: styles$x.cta
|
|
2075
2086
|
}, React__default.createElement("a", {
|
|
2076
2087
|
href: data[lang].href,
|
|
2077
2088
|
target: "_blank",
|
|
@@ -2079,16 +2090,16 @@ var DonatesTeaser = function DonatesTeaser(_ref) {
|
|
|
2079
2090
|
}, React__default.createElement("span", null, data[lang].button))));
|
|
2080
2091
|
};
|
|
2081
2092
|
|
|
2082
|
-
var styles$
|
|
2093
|
+
var styles$y = {"root":"AnnouncementInText-module_root__3zM9x","body":"AnnouncementInText-module_body__1yI8T","title":"AnnouncementInText-module_title__29CXr","footer":"AnnouncementInText-module_footer__1fyWt","button":"AnnouncementInText-module_button__2dEXa","link":"AnnouncementInText-module_link__1GxOy","center":"AnnouncementInText-module_center__3VLl2","isInCard":"AnnouncementInText-module_isInCard__2Xq_I","isInSlide":"AnnouncementInText-module_isInSlide__1PsC2","ru":"AnnouncementInText-module_ru__3vDy7","en":"AnnouncementInText-module_en__1Mgvm"};
|
|
2083
2094
|
|
|
2084
2095
|
var AnnouncementInText = function AnnouncementInText(_ref) {
|
|
2085
2096
|
var styleContext = _ref.styleContext,
|
|
2086
2097
|
_ref$lang = _ref.lang,
|
|
2087
2098
|
lang = _ref$lang === void 0 ? 'ru' : _ref$lang;
|
|
2088
|
-
var classNames = [[styles$
|
|
2099
|
+
var classNames = [[styles$y.root, true], [styles$y[lang], styles$y[lang]]];
|
|
2089
2100
|
|
|
2090
2101
|
if (styleContext) {
|
|
2091
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2102
|
+
classNames = makeStyleContext(classNames, styleContext, styles$y);
|
|
2092
2103
|
}
|
|
2093
2104
|
|
|
2094
2105
|
var data = {
|
|
@@ -2110,9 +2121,9 @@ var AnnouncementInText = function AnnouncementInText(_ref) {
|
|
|
2110
2121
|
"data-testid": "announcement-in-text",
|
|
2111
2122
|
className: makeClassName(classNames)
|
|
2112
2123
|
}, React__default.createElement("div", {
|
|
2113
|
-
className: styles$
|
|
2124
|
+
className: styles$y.body
|
|
2114
2125
|
}, React__default.createElement("h3", {
|
|
2115
|
-
className: styles$
|
|
2126
|
+
className: styles$y.title,
|
|
2116
2127
|
dangerouslySetInnerHTML: {
|
|
2117
2128
|
__html: localeData.title
|
|
2118
2129
|
}
|
|
@@ -2121,14 +2132,14 @@ var AnnouncementInText = function AnnouncementInText(_ref) {
|
|
|
2121
2132
|
__html: localeData.text
|
|
2122
2133
|
}
|
|
2123
2134
|
})), React__default.createElement("div", {
|
|
2124
|
-
className: styles$
|
|
2135
|
+
className: styles$y.footer
|
|
2125
2136
|
}, React__default.createElement("a", {
|
|
2126
|
-
className: styles$
|
|
2137
|
+
className: styles$y.link,
|
|
2127
2138
|
href: localeData.href,
|
|
2128
2139
|
target: "_blank",
|
|
2129
2140
|
rel: "noreferrer"
|
|
2130
2141
|
}, React__default.createElement("span", null, localeData.button)), React__default.createElement("span", {
|
|
2131
|
-
className: styles$
|
|
2142
|
+
className: styles$y.button
|
|
2132
2143
|
}, React__default.createElement("span", null, localeData.button))));
|
|
2133
2144
|
};
|
|
2134
2145
|
|
|
@@ -2298,7 +2309,7 @@ var RenderBlocks = function RenderBlocks(_ref) {
|
|
|
2298
2309
|
}
|
|
2299
2310
|
};
|
|
2300
2311
|
|
|
2301
|
-
var styles$
|
|
2312
|
+
var styles$z = {"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"};
|
|
2302
2313
|
|
|
2303
2314
|
var Cover = function Cover(_ref) {
|
|
2304
2315
|
var _ref$block = _ref.block,
|
|
@@ -2319,15 +2330,15 @@ var Cover = function Cover(_ref) {
|
|
|
2319
2330
|
setIsPopoverShown = _useState[1];
|
|
2320
2331
|
|
|
2321
2332
|
var style = {};
|
|
2322
|
-
var classNames = [[styles$
|
|
2333
|
+
var classNames = [[styles$z.root, true], [styles$z[onlyOn], !!onlyOn && !!styles$z[onlyOn]]];
|
|
2323
2334
|
|
|
2324
2335
|
if (styleContext) {
|
|
2325
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2336
|
+
classNames = makeStyleContext(classNames, styleContext, styles$z);
|
|
2326
2337
|
}
|
|
2327
2338
|
|
|
2328
2339
|
if (gradients) {
|
|
2329
2340
|
var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
|
|
2330
|
-
classNames = makeStyleContext(classNames, theme, styles$
|
|
2341
|
+
classNames = makeStyleContext(classNames, theme, styles$z);
|
|
2331
2342
|
style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
|
|
2332
2343
|
}
|
|
2333
2344
|
|
|
@@ -2343,13 +2354,13 @@ var Cover = function Cover(_ref) {
|
|
|
2343
2354
|
"data-testid": "cover",
|
|
2344
2355
|
className: makeClassName(classNames)
|
|
2345
2356
|
}, React__default.createElement("div", {
|
|
2346
|
-
className: styles$
|
|
2357
|
+
className: styles$z.image
|
|
2347
2358
|
}, React__default.createElement(Image, {
|
|
2348
2359
|
optimized: urls,
|
|
2349
2360
|
ratio: mobileRatio,
|
|
2350
2361
|
display: "narrow"
|
|
2351
2362
|
})), React__default.createElement("div", {
|
|
2352
|
-
className: styles$
|
|
2363
|
+
className: styles$z.body,
|
|
2353
2364
|
style: style
|
|
2354
2365
|
}, blocks.map(function (item) {
|
|
2355
2366
|
return React__default.createElement(RenderBlocks, {
|
|
@@ -2358,7 +2369,7 @@ var Cover = function Cover(_ref) {
|
|
|
2358
2369
|
styleContext: styleContext
|
|
2359
2370
|
});
|
|
2360
2371
|
})), cc === 'button' && React__default.createElement("button", {
|
|
2361
|
-
className: styles$
|
|
2372
|
+
className: styles$z.control,
|
|
2362
2373
|
type: "button",
|
|
2363
2374
|
"aria-label": "Open",
|
|
2364
2375
|
onClick: function onClick() {
|
|
@@ -2371,7 +2382,7 @@ var Cover = function Cover(_ref) {
|
|
|
2371
2382
|
}, renderCC('isInPopover')));
|
|
2372
2383
|
};
|
|
2373
2384
|
|
|
2374
|
-
var styles$
|
|
2385
|
+
var styles$A = {"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"};
|
|
2375
2386
|
|
|
2376
2387
|
var HalfBlock = function HalfBlock(_ref) {
|
|
2377
2388
|
var _ref$block = _ref.block,
|
|
@@ -2383,25 +2394,25 @@ var HalfBlock = function HalfBlock(_ref) {
|
|
|
2383
2394
|
credit = _ref$block$data$cover.credit,
|
|
2384
2395
|
caption = _ref$block$data$cover.caption,
|
|
2385
2396
|
styleContext = _ref.styleContext;
|
|
2386
|
-
var classNames = [[styles$
|
|
2397
|
+
var classNames = [[styles$A.root, true], [styles$A[onlyOn], true]];
|
|
2387
2398
|
|
|
2388
2399
|
if (styleContext) {
|
|
2389
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2400
|
+
classNames = makeStyleContext(classNames, styleContext, styles$A);
|
|
2390
2401
|
}
|
|
2391
2402
|
|
|
2392
2403
|
return React__default.createElement("div", {
|
|
2393
2404
|
"data-testid": "half-block",
|
|
2394
2405
|
className: makeClassName(classNames)
|
|
2395
2406
|
}, React__default.createElement("div", {
|
|
2396
|
-
className: styles$
|
|
2407
|
+
className: styles$A.main
|
|
2397
2408
|
}, React__default.createElement("div", {
|
|
2398
|
-
className: styles$
|
|
2409
|
+
className: styles$A.image
|
|
2399
2410
|
}, React__default.createElement(Image, {
|
|
2400
2411
|
optimized: optimized,
|
|
2401
2412
|
ratio: ratio,
|
|
2402
2413
|
display: "super_full"
|
|
2403
2414
|
})), React__default.createElement("div", {
|
|
2404
|
-
className: styles$
|
|
2415
|
+
className: styles$A.body
|
|
2405
2416
|
}, data.blocks.map(function (item) {
|
|
2406
2417
|
return React__default.createElement(RenderBlocks, {
|
|
2407
2418
|
key: item.id,
|
|
@@ -2409,7 +2420,7 @@ var HalfBlock = function HalfBlock(_ref) {
|
|
|
2409
2420
|
styleContext: ['rich']
|
|
2410
2421
|
});
|
|
2411
2422
|
}))), React__default.createElement("div", {
|
|
2412
|
-
className: styles$
|
|
2423
|
+
className: styles$A.footer
|
|
2413
2424
|
}, React__default.createElement(MediaCaption, {
|
|
2414
2425
|
credit: credit,
|
|
2415
2426
|
caption: caption,
|
|
@@ -2417,17 +2428,17 @@ var HalfBlock = function HalfBlock(_ref) {
|
|
|
2417
2428
|
})));
|
|
2418
2429
|
};
|
|
2419
2430
|
|
|
2420
|
-
var styles$
|
|
2431
|
+
var styles$B = {"root":"ImportantLead-module_root__2BdT3","slide":"ImportantLead-module_slide__3kQ9x","mobile":"ImportantLead-module_mobile__3BXbm","desktop":"ImportantLead-module_desktop__3Zljc"};
|
|
2421
2432
|
|
|
2422
2433
|
var ImportantLead = function ImportantLead(_ref) {
|
|
2423
2434
|
var _ref$block = _ref.block,
|
|
2424
2435
|
onlyOn = _ref$block.only_on,
|
|
2425
2436
|
data = _ref$block.data,
|
|
2426
2437
|
styleContext = _ref.styleContext;
|
|
2427
|
-
var classNames = [[styles$
|
|
2438
|
+
var classNames = [[styles$B.root, true], [styles$B[onlyOn], !!onlyOn]];
|
|
2428
2439
|
|
|
2429
2440
|
if (styleContext) {
|
|
2430
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2441
|
+
classNames = makeStyleContext(classNames, styleContext, styles$B);
|
|
2431
2442
|
}
|
|
2432
2443
|
|
|
2433
2444
|
return React__default.createElement("div", {
|
|
@@ -2442,7 +2453,7 @@ var ImportantLead = function ImportantLead(_ref) {
|
|
|
2442
2453
|
}));
|
|
2443
2454
|
};
|
|
2444
2455
|
|
|
2445
|
-
var styles$
|
|
2456
|
+
var styles$C = {"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"};
|
|
2446
2457
|
|
|
2447
2458
|
var Spoiler = function Spoiler(_ref) {
|
|
2448
2459
|
var _ref$block = _ref.block,
|
|
@@ -2477,11 +2488,11 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2477
2488
|
}
|
|
2478
2489
|
};
|
|
2479
2490
|
|
|
2480
|
-
var classNames = [[styles$
|
|
2491
|
+
var classNames = [[styles$C.root, true], [styles$C[onlyOn], !!onlyOn], [styles$C[display], !!display && styles$C[display]], [[styles$C.spoiled], !!spoiled]];
|
|
2481
2492
|
var context = ['center'];
|
|
2482
2493
|
|
|
2483
2494
|
if (styleContext) {
|
|
2484
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2495
|
+
classNames = makeStyleContext(classNames, styleContext, styles$C);
|
|
2485
2496
|
}
|
|
2486
2497
|
|
|
2487
2498
|
var buttonCollapse = button ? button.collapse : 'Свернуть';
|
|
@@ -2491,9 +2502,9 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2491
2502
|
className: makeClassName(classNames),
|
|
2492
2503
|
"data-testid": "spoiler"
|
|
2493
2504
|
}, React__default.createElement("div", {
|
|
2494
|
-
className: styles$
|
|
2505
|
+
className: styles$C.header
|
|
2495
2506
|
}, title && React__default.createElement("h3", null, title)), React__default.createElement("div", {
|
|
2496
|
-
className: styles$
|
|
2507
|
+
className: styles$C.body
|
|
2497
2508
|
}, blocks.map(function (item) {
|
|
2498
2509
|
return React__default.createElement(RenderBlocks, {
|
|
2499
2510
|
key: item.id,
|
|
@@ -2501,7 +2512,7 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2501
2512
|
styleContext: context
|
|
2502
2513
|
});
|
|
2503
2514
|
})), React__default.createElement("div", {
|
|
2504
|
-
className: styles$
|
|
2515
|
+
className: styles$C.footer
|
|
2505
2516
|
}, React__default.createElement(Button, {
|
|
2506
2517
|
size: "default",
|
|
2507
2518
|
theme: "gray",
|
|
@@ -2514,7 +2525,7 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2514
2525
|
}))));
|
|
2515
2526
|
};
|
|
2516
2527
|
|
|
2517
|
-
var styles$
|
|
2528
|
+
var styles$D = {"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"};
|
|
2518
2529
|
|
|
2519
2530
|
/* eslint-disable react/jsx-no-target-blank */
|
|
2520
2531
|
var RelatedRichBlock = function RelatedRichBlock(_ref) {
|
|
@@ -2553,18 +2564,18 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
|
|
|
2553
2564
|
postMessage('richRelated', url, 'click');
|
|
2554
2565
|
};
|
|
2555
2566
|
|
|
2556
|
-
var classNames = [[styles$
|
|
2567
|
+
var classNames = [[styles$D.root, true], [styles$D[cardType], !!layout && !!styles$D[cardType]], [styles$D.hasGradient, !!gradients], [styles$D[onlyOn], !!onlyOn && !!styles$D[onlyOn]]];
|
|
2557
2568
|
var context = ['isInMediaBlock'];
|
|
2558
2569
|
|
|
2559
2570
|
if (styleContext) {
|
|
2560
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2571
|
+
classNames = makeStyleContext(classNames, styleContext, styles$D);
|
|
2561
2572
|
context = [].concat(styleContext, ['isInMediaBlock']);
|
|
2562
2573
|
}
|
|
2563
2574
|
|
|
2564
2575
|
if (gradients) {
|
|
2565
2576
|
styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
|
|
2566
2577
|
var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
|
|
2567
|
-
classNames = makeStyleContext(classNames, theme, styles$
|
|
2578
|
+
classNames = makeStyleContext(classNames, theme, styles$D);
|
|
2568
2579
|
|
|
2569
2580
|
if (onlyOn === 'desktop') {
|
|
2570
2581
|
style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
|
|
@@ -2580,27 +2591,27 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
|
|
|
2580
2591
|
},
|
|
2581
2592
|
ref: ref
|
|
2582
2593
|
}, layout === 'rich' && React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
2583
|
-
className: styles$
|
|
2594
|
+
className: styles$D.overlay,
|
|
2584
2595
|
style: style
|
|
2585
2596
|
}), React__default.createElement("div", {
|
|
2586
|
-
className: styles$
|
|
2597
|
+
className: styles$D.overlayHeader,
|
|
2587
2598
|
style: styleHeader
|
|
2588
2599
|
})), React__default.createElement("div", {
|
|
2589
|
-
className: styles$
|
|
2600
|
+
className: styles$D.tag
|
|
2590
2601
|
}, React__default.createElement(Tag, {
|
|
2591
2602
|
size: "small",
|
|
2592
2603
|
theme: "inherit",
|
|
2593
2604
|
styleContext: "richRelated"
|
|
2594
2605
|
}, tag)), React__default.createElement("div", {
|
|
2595
|
-
className: styles$
|
|
2606
|
+
className: styles$D.cover
|
|
2596
2607
|
}, React__default.createElement("div", {
|
|
2597
|
-
className: styles$
|
|
2608
|
+
className: styles$D.picture
|
|
2598
2609
|
}, React__default.createElement(Image, {
|
|
2599
2610
|
optimized: urls,
|
|
2600
2611
|
ratio: ratio,
|
|
2601
2612
|
display: "narrow"
|
|
2602
2613
|
}))), React__default.createElement("div", {
|
|
2603
|
-
className: styles$
|
|
2614
|
+
className: styles$D.body
|
|
2604
2615
|
}, blocks.map(function (item) {
|
|
2605
2616
|
return React__default.createElement(RenderBlocks, {
|
|
2606
2617
|
key: item.id,
|
|
@@ -2610,7 +2621,7 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
|
|
|
2610
2621
|
})));
|
|
2611
2622
|
};
|
|
2612
2623
|
|
|
2613
|
-
var styles$
|
|
2624
|
+
var styles$E = {"root":"ShopRelatedBlock-module_root__x4vdk","wrapper":"ShopRelatedBlock-module_wrapper__3jQp9","overlay":"ShopRelatedBlock-module_overlay__15S5a","overlayHeader":"ShopRelatedBlock-module_overlayHeader__2IXK-","body":"ShopRelatedBlock-module_body__3ipYj","hasGradient":"ShopRelatedBlock-module_hasGradient__1pghj","picture":"ShopRelatedBlock-module_picture__1bu9H","tag":"ShopRelatedBlock-module_tag__2vTKm","center":"ShopRelatedBlock-module_center__2H85-","title":"ShopRelatedBlock-module_title__1ZIW0","price":"ShopRelatedBlock-module_price__2cVXM","dark":"ShopRelatedBlock-module_dark__3Gfbc","light":"ShopRelatedBlock-module_light__1y8Qy","mobile":"ShopRelatedBlock-module_mobile__AleU0","desktop":"ShopRelatedBlock-module_desktop__2--zA"};
|
|
2614
2625
|
|
|
2615
2626
|
/* eslint-disable react/jsx-no-target-blank */
|
|
2616
2627
|
var ShopRelatedBlock = function ShopRelatedBlock(_ref) {
|
|
@@ -2649,16 +2660,16 @@ var ShopRelatedBlock = function ShopRelatedBlock(_ref) {
|
|
|
2649
2660
|
postMessage('productRelated', url, 'click');
|
|
2650
2661
|
};
|
|
2651
2662
|
|
|
2652
|
-
var classNames = [[styles$
|
|
2663
|
+
var classNames = [[styles$E.root, true], [styles$E.hasGradient, !!gradients], [styles$E[onlyOn], !!onlyOn && !!styles$E[onlyOn]]];
|
|
2653
2664
|
|
|
2654
2665
|
if (styleContext) {
|
|
2655
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2666
|
+
classNames = makeStyleContext(classNames, styleContext, styles$E);
|
|
2656
2667
|
}
|
|
2657
2668
|
|
|
2658
2669
|
if (gradients) {
|
|
2659
2670
|
styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
|
|
2660
2671
|
var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
|
|
2661
|
-
classNames = makeStyleContext(classNames, theme, styles$
|
|
2672
|
+
classNames = makeStyleContext(classNames, theme, styles$E);
|
|
2662
2673
|
|
|
2663
2674
|
if (onlyOn === 'desktop') {
|
|
2664
2675
|
style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
|
|
@@ -2675,31 +2686,31 @@ var ShopRelatedBlock = function ShopRelatedBlock(_ref) {
|
|
|
2675
2686
|
},
|
|
2676
2687
|
ref: ref
|
|
2677
2688
|
}, layout === 'rich' && React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
2678
|
-
className: styles$
|
|
2689
|
+
className: styles$E.overlay,
|
|
2679
2690
|
style: style
|
|
2680
2691
|
}), React__default.createElement("div", {
|
|
2681
|
-
className: styles$
|
|
2692
|
+
className: styles$E.overlayHeader,
|
|
2682
2693
|
style: styleHeader
|
|
2683
2694
|
})), React__default.createElement("div", {
|
|
2684
|
-
className: styles$
|
|
2695
|
+
className: styles$E.tag
|
|
2685
2696
|
}, React__default.createElement(Tag, {
|
|
2686
2697
|
size: "small",
|
|
2687
2698
|
theme: "inherit",
|
|
2688
2699
|
styleContext: "richRelated"
|
|
2689
2700
|
}, tag)), React__default.createElement("div", {
|
|
2690
|
-
className: styles$
|
|
2701
|
+
className: styles$E.cover
|
|
2691
2702
|
}, React__default.createElement("div", {
|
|
2692
|
-
className: styles$
|
|
2703
|
+
className: styles$E.picture
|
|
2693
2704
|
}, React__default.createElement(Image, {
|
|
2694
2705
|
optimized: urls,
|
|
2695
2706
|
ratio: ratio,
|
|
2696
2707
|
display: "narrow"
|
|
2697
2708
|
}))), React__default.createElement("div", {
|
|
2698
|
-
className: styles$
|
|
2709
|
+
className: styles$E.body
|
|
2699
2710
|
}, React__default.createElement("h2", {
|
|
2700
|
-
className: styles$
|
|
2711
|
+
className: styles$E.title
|
|
2701
2712
|
}, firstTitle, React__default.createElement("span", {
|
|
2702
|
-
className: styles$
|
|
2713
|
+
className: styles$E.price
|
|
2703
2714
|
}, secondTitle))));
|
|
2704
2715
|
};
|
|
2705
2716
|
|
|
@@ -2784,44 +2795,67 @@ var RawHtmlBlock = function RawHtmlBlock(_ref) {
|
|
|
2784
2795
|
}
|
|
2785
2796
|
};
|
|
2786
2797
|
|
|
2787
|
-
var styles$
|
|
2798
|
+
var styles$F = {"root":"ToolbarButton-module_root__xN-fq","isDark":"ToolbarButton-module_isDark__2q5U7","dark":"ToolbarButton-module_dark__GrIOr","bookmark":"ToolbarButton-module_bookmark__3369b","isActive":"ToolbarButton-module_isActive__3NLAE","icon":"ToolbarButton-module_icon__4wCid","text":"ToolbarButton-module_text__32m6s"};
|
|
2788
2799
|
|
|
2789
2800
|
var ToolbarButton = function ToolbarButton(_ref) {
|
|
2790
|
-
var
|
|
2791
|
-
type = _ref.type,
|
|
2801
|
+
var type = _ref.type,
|
|
2792
2802
|
theme = _ref.theme,
|
|
2793
2803
|
isActive = _ref.isActive,
|
|
2794
2804
|
_ref$lang = _ref.lang,
|
|
2795
2805
|
lang = _ref$lang === void 0 ? 'ru' : _ref$lang,
|
|
2806
|
+
text = _ref.text,
|
|
2796
2807
|
icon = _ref.icon,
|
|
2797
2808
|
_onClick = _ref.onClick;
|
|
2798
|
-
var classNames = [[styles$
|
|
2809
|
+
var classNames = [[styles$F.root, true], [styles$F[type], !!styles$F[type]], [styles$F[theme], !!styles$F[theme] && !!theme], [styles$F.isActive, !!isActive]];
|
|
2799
2810
|
var label = SocialLabels[lang][type];
|
|
2800
|
-
return React__default.createElement("
|
|
2801
|
-
className: toolbarStyles.item
|
|
2802
|
-
}, React__default.createElement("button", {
|
|
2811
|
+
return React__default.createElement("button", {
|
|
2803
2812
|
"data-testid": "toolbar-button",
|
|
2804
2813
|
className: makeClassName(classNames),
|
|
2805
2814
|
type: "button",
|
|
2806
|
-
onClick: function onClick() {
|
|
2807
|
-
return _onClick(type);
|
|
2815
|
+
onClick: function onClick(event) {
|
|
2816
|
+
return _onClick(event, type);
|
|
2808
2817
|
}
|
|
2809
2818
|
}, icon && React__default.createElement("div", {
|
|
2810
|
-
className: styles$
|
|
2819
|
+
className: styles$F.icon
|
|
2811
2820
|
}, React__default.createElement(SvgSymbol, {
|
|
2812
2821
|
size: "medium",
|
|
2813
2822
|
icon: icon,
|
|
2814
2823
|
styleContext: "isInToolbar"
|
|
2815
2824
|
})), React__default.createElement("span", {
|
|
2816
|
-
className: styles$
|
|
2817
|
-
}, label)
|
|
2818
|
-
|
|
2819
|
-
|
|
2825
|
+
className: styles$F.text
|
|
2826
|
+
}, text || label));
|
|
2827
|
+
};
|
|
2828
|
+
|
|
2829
|
+
var styles$G = {"root":"Tooltip-module_root__2ErmQ","isCenterBottom":"Tooltip-module_isCenterBottom__3qg-Z","isLeftBottom":"Tooltip-module_isLeftBottom__2d0hw","isCenterTop":"Tooltip-module_isCenterTop__3gKNn","isLeftTop":"Tooltip-module_isLeftTop__2_Evh","body":"Tooltip-module_body__es5-o","footer":"Tooltip-module_footer__1nYQ1"};
|
|
2830
|
+
|
|
2831
|
+
var capitalizeFirstLetter = function capitalizeFirstLetter(string) {
|
|
2832
|
+
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
2833
|
+
};
|
|
2834
|
+
|
|
2835
|
+
var Tooltip = function Tooltip(_ref) {
|
|
2836
|
+
var children = _ref.children,
|
|
2837
|
+
position = _ref.position;
|
|
2838
|
+
var x = position[0],
|
|
2839
|
+
y = position[1];
|
|
2840
|
+
var positionClass = "is" + capitalizeFirstLetter(x) + capitalizeFirstLetter(y);
|
|
2841
|
+
return React__default.createElement("div", {
|
|
2842
|
+
className: makeClassName([[styles$G.root, true], [styles$G[positionClass], true]])
|
|
2843
|
+
}, React__default.createElement("div", {
|
|
2844
|
+
className: styles$G.body
|
|
2845
|
+
}, children));
|
|
2846
|
+
};
|
|
2847
|
+
|
|
2848
|
+
var TooltipFooter = function TooltipFooter(_ref) {
|
|
2849
|
+
var children = _ref.children;
|
|
2850
|
+
return React__default.createElement("div", {
|
|
2851
|
+
className: styles$G.footer
|
|
2852
|
+
}, children);
|
|
2820
2853
|
};
|
|
2821
2854
|
|
|
2822
2855
|
exports.AnnouncementInText = AnnouncementInText;
|
|
2823
2856
|
exports.BookmarkButton = BookmarkButton;
|
|
2824
2857
|
exports.Button = Button;
|
|
2858
|
+
exports.ButtonLoader = ButtonLoader;
|
|
2825
2859
|
exports.CardTitle = CardTitle;
|
|
2826
2860
|
exports.ChapterBlock = ChapterBlock;
|
|
2827
2861
|
exports.Cover = Cover;
|
|
@@ -2866,4 +2900,7 @@ exports.Tag = Tag;
|
|
|
2866
2900
|
exports.Timestamp = Timestamp;
|
|
2867
2901
|
exports.Toolbar = Toolbar;
|
|
2868
2902
|
exports.ToolbarButton = ToolbarButton;
|
|
2903
|
+
exports.ToolbarItem = ToolbarItem;
|
|
2904
|
+
exports.Tooltip = Tooltip;
|
|
2905
|
+
exports.TooltipFooter = TooltipFooter;
|
|
2869
2906
|
//# sourceMappingURL=ui-kit-2.cjs.development.js.map
|