@meduza/ui-kit-2 0.2.37 → 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 -0
- package/dist/index.d.ts +1 -0
- package/dist/ui-kit-2.cjs.development.js +203 -162
- 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 +200 -163
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit.css +3390 -3305
- 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 +17 -16
- 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 +2 -0
- 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,
|
|
@@ -385,6 +391,7 @@ var SocialLabels = {
|
|
|
385
391
|
fb: 'Фейсбук',
|
|
386
392
|
tw: 'Твиттер',
|
|
387
393
|
pdf: 'PDF',
|
|
394
|
+
unblock: 'Magic link',
|
|
388
395
|
bookmark: 'В закладки',
|
|
389
396
|
reaction: 'Напишите нам'
|
|
390
397
|
},
|
|
@@ -393,6 +400,7 @@ var SocialLabels = {
|
|
|
393
400
|
fb: 'Fb',
|
|
394
401
|
tw: 'Twitter',
|
|
395
402
|
pdf: 'PDF',
|
|
403
|
+
unblock: 'Magic link',
|
|
396
404
|
bookmark: 'Add to bookmarks'
|
|
397
405
|
}
|
|
398
406
|
};
|
|
@@ -1029,26 +1037,33 @@ var Dropdown = function Dropdown(_ref2) {
|
|
|
1029
1037
|
}, children);
|
|
1030
1038
|
};
|
|
1031
1039
|
|
|
1032
|
-
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
|
+
};
|
|
1033
1048
|
|
|
1034
1049
|
var Toolbar = function Toolbar(_ref) {
|
|
1035
1050
|
var children = _ref.children,
|
|
1036
1051
|
styleContext = _ref.styleContext;
|
|
1037
|
-
var classNames = [[
|
|
1052
|
+
var classNames = [[styles$f.root, true]];
|
|
1038
1053
|
|
|
1039
1054
|
if (styleContext) {
|
|
1040
|
-
classNames = makeStyleContext(classNames, styleContext,
|
|
1055
|
+
classNames = makeStyleContext(classNames, styleContext, styles$f);
|
|
1041
1056
|
}
|
|
1042
1057
|
|
|
1043
1058
|
return React__default.createElement("div", {
|
|
1044
1059
|
"data-testid": "toolbar",
|
|
1045
1060
|
className: makeClassName(classNames)
|
|
1046
1061
|
}, React__default.createElement("ul", {
|
|
1047
|
-
className:
|
|
1062
|
+
className: styles$f.list
|
|
1048
1063
|
}, children));
|
|
1049
1064
|
};
|
|
1050
1065
|
|
|
1051
|
-
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"};
|
|
1052
1067
|
|
|
1053
1068
|
var Meta = function Meta(_ref) {
|
|
1054
1069
|
var hasSource = _ref.hasSource,
|
|
@@ -1056,10 +1071,10 @@ var Meta = function Meta(_ref) {
|
|
|
1056
1071
|
children = _ref.children,
|
|
1057
1072
|
onlyOn = _ref.onlyOn,
|
|
1058
1073
|
styleContext = _ref.styleContext;
|
|
1059
|
-
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]];
|
|
1060
1075
|
|
|
1061
1076
|
if (styleContext) {
|
|
1062
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1077
|
+
classNames = makeStyleContext(classNames, styleContext, styles$g);
|
|
1063
1078
|
}
|
|
1064
1079
|
|
|
1065
1080
|
return React__default.createElement("div", {
|
|
@@ -1068,7 +1083,7 @@ var Meta = function Meta(_ref) {
|
|
|
1068
1083
|
}, children);
|
|
1069
1084
|
};
|
|
1070
1085
|
|
|
1071
|
-
var styles$
|
|
1086
|
+
var styles$h = {"root":"Timestamp-module_root__coOvT"};
|
|
1072
1087
|
|
|
1073
1088
|
var Timestamp = function Timestamp(_ref) {
|
|
1074
1089
|
var publishedAt = _ref.publishedAt,
|
|
@@ -1094,7 +1109,7 @@ var Timestamp = function Timestamp(_ref) {
|
|
|
1094
1109
|
return React__default.createElement("time", {
|
|
1095
1110
|
suppressHydrationWarning: true,
|
|
1096
1111
|
"data-testid": "timestamp",
|
|
1097
|
-
className: styles$
|
|
1112
|
+
className: styles$h.root
|
|
1098
1113
|
}, published);
|
|
1099
1114
|
};
|
|
1100
1115
|
|
|
@@ -1161,7 +1176,7 @@ var DangerousHTML = function DangerousHTML(_ref) {
|
|
|
1161
1176
|
}));
|
|
1162
1177
|
};
|
|
1163
1178
|
|
|
1164
|
-
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_"};
|
|
1165
1180
|
|
|
1166
1181
|
var EmbedGif = function EmbedGif(_ref) {
|
|
1167
1182
|
var gif = _ref.gif,
|
|
@@ -1207,9 +1222,9 @@ var EmbedGif = function EmbedGif(_ref) {
|
|
|
1207
1222
|
};
|
|
1208
1223
|
}, []);
|
|
1209
1224
|
return React__default.createElement("div", {
|
|
1210
|
-
className: styles$
|
|
1225
|
+
className: styles$i.figure
|
|
1211
1226
|
}, React__default.createElement("div", {
|
|
1212
|
-
className: styles$
|
|
1227
|
+
className: styles$i.objectWrap,
|
|
1213
1228
|
style: style,
|
|
1214
1229
|
"data-frozen": videoFrozen
|
|
1215
1230
|
}, React__default.createElement("video", {
|
|
@@ -1275,7 +1290,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1275
1290
|
case 'image':
|
|
1276
1291
|
{
|
|
1277
1292
|
return React__default.createElement("div", {
|
|
1278
|
-
className: styles$
|
|
1293
|
+
className: styles$i.figure
|
|
1279
1294
|
}, React__default.createElement(Image, {
|
|
1280
1295
|
source: !optimized && [small, large],
|
|
1281
1296
|
optimized: block.data.optimized,
|
|
@@ -1291,7 +1306,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1291
1306
|
case 'game_embed':
|
|
1292
1307
|
{
|
|
1293
1308
|
return React__default.createElement("div", {
|
|
1294
|
-
className: styles$
|
|
1309
|
+
className: styles$i.gameEmbed
|
|
1295
1310
|
}, React__default.createElement("iframe", {
|
|
1296
1311
|
src: block.data.game_src,
|
|
1297
1312
|
id: block.data.game_id,
|
|
@@ -1302,7 +1317,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1302
1317
|
case 'dots_on_image':
|
|
1303
1318
|
{
|
|
1304
1319
|
return React__default.createElement("div", {
|
|
1305
|
-
className: styles$
|
|
1320
|
+
className: styles$i.figure
|
|
1306
1321
|
}, React__default.createElement(DotsOnImage, {
|
|
1307
1322
|
block: data
|
|
1308
1323
|
}));
|
|
@@ -1311,12 +1326,12 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1311
1326
|
default:
|
|
1312
1327
|
{
|
|
1313
1328
|
return React__default.createElement("div", {
|
|
1314
|
-
className: styles$
|
|
1329
|
+
className: styles$i.object
|
|
1315
1330
|
}, React__default.createElement("div", {
|
|
1316
|
-
className: styles$
|
|
1331
|
+
className: styles$i.wrapper,
|
|
1317
1332
|
style: style
|
|
1318
1333
|
}, React__default.createElement(DangerousHTML, {
|
|
1319
|
-
className: styles$
|
|
1334
|
+
className: styles$i.objectWrap,
|
|
1320
1335
|
html: html
|
|
1321
1336
|
})));
|
|
1322
1337
|
}
|
|
@@ -1328,31 +1343,31 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1328
1343
|
style.height = 0;
|
|
1329
1344
|
}
|
|
1330
1345
|
|
|
1331
|
-
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,
|
|
1332
1347
|
// чтобы не применились лишние модификаторы
|
|
1333
1348
|
// TODO: в w6 модификаторы должны передаваться явно
|
|
1334
1349
|
|
|
1335
1350
|
if (styleContext && Array.isArray(styleContext)) {
|
|
1336
1351
|
var filteredContext = styleContext.filter(function (key) {
|
|
1337
|
-
return key.startsWith('isIn') && styles$
|
|
1352
|
+
return key.startsWith('isIn') && styles$i[key];
|
|
1338
1353
|
}).reduce(function (acc, key) {
|
|
1339
1354
|
acc.push(key);
|
|
1340
1355
|
return acc;
|
|
1341
1356
|
}, []);
|
|
1342
|
-
classNames = makeStyleContext(classNames, filteredContext, styles$
|
|
1357
|
+
classNames = makeStyleContext(classNames, filteredContext, styles$i);
|
|
1343
1358
|
}
|
|
1344
1359
|
|
|
1345
1360
|
return React__default.createElement("figure", {
|
|
1346
1361
|
className: makeClassName(classNames)
|
|
1347
1362
|
}, children && React__default.createElement("div", {
|
|
1348
|
-
className: styles$
|
|
1363
|
+
className: styles$i.object
|
|
1349
1364
|
}, React__default.createElement("div", {
|
|
1350
|
-
className: styles$
|
|
1365
|
+
className: styles$i.wrapper,
|
|
1351
1366
|
style: style
|
|
1352
1367
|
}, React__default.createElement("div", {
|
|
1353
|
-
className: styles$
|
|
1368
|
+
className: styles$i.objectWrap
|
|
1354
1369
|
}, children))), !children && renderEmbed(style), cc === 'default' && React__default.createElement("figcaption", null, renderCC()), cc === 'button' && React__default.createElement("button", {
|
|
1355
|
-
className: styles$
|
|
1370
|
+
className: styles$i.control,
|
|
1356
1371
|
type: "button",
|
|
1357
1372
|
"aria-label": "Open",
|
|
1358
1373
|
onClick: function onClick() {
|
|
@@ -1428,15 +1443,15 @@ var EmbedBlockContainer = function EmbedBlockContainer(_ref) {
|
|
|
1428
1443
|
});
|
|
1429
1444
|
};
|
|
1430
1445
|
|
|
1431
|
-
var styles$
|
|
1446
|
+
var styles$j = {"root":"QuoteBlock-module_root__2GrcC","center":"QuoteBlock-module_center__cTFNy"};
|
|
1432
1447
|
|
|
1433
1448
|
var QuoteBlock = function QuoteBlock(_ref) {
|
|
1434
1449
|
var data = _ref.block.data,
|
|
1435
1450
|
styleContext = _ref.styleContext;
|
|
1436
|
-
var classNames = [[styles$
|
|
1451
|
+
var classNames = [[styles$j.root, true]];
|
|
1437
1452
|
|
|
1438
1453
|
if (styleContext) {
|
|
1439
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1454
|
+
classNames = makeStyleContext(classNames, styleContext, styles$j);
|
|
1440
1455
|
}
|
|
1441
1456
|
|
|
1442
1457
|
return React__default.createElement("div", {
|
|
@@ -1449,7 +1464,7 @@ var QuoteBlock = function QuoteBlock(_ref) {
|
|
|
1449
1464
|
}));
|
|
1450
1465
|
};
|
|
1451
1466
|
|
|
1452
|
-
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"};
|
|
1453
1468
|
|
|
1454
1469
|
var CardTitle = function CardTitle(_ref) {
|
|
1455
1470
|
var _ref$block$data = _ref.block.data,
|
|
@@ -1459,15 +1474,15 @@ var CardTitle = function CardTitle(_ref) {
|
|
|
1459
1474
|
styleContext = _ref.styleContext;
|
|
1460
1475
|
return React__default.createElement("div", {
|
|
1461
1476
|
"data-testid": "card-title",
|
|
1462
|
-
className: makeClassName([[styles$
|
|
1477
|
+
className: makeClassName([[styles$k.root, true], [styles$k[onlyOn], !!onlyOn], [styles$k[styleContext], !!styleContext && !!styles$k[styleContext]]])
|
|
1463
1478
|
}, React__default.createElement("div", {
|
|
1464
|
-
className: styles$
|
|
1479
|
+
className: styles$k.index
|
|
1465
1480
|
}, index), React__default.createElement("h3", {
|
|
1466
|
-
className: styles$
|
|
1481
|
+
className: styles$k.title
|
|
1467
1482
|
}, text));
|
|
1468
1483
|
};
|
|
1469
1484
|
|
|
1470
|
-
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"};
|
|
1471
1486
|
|
|
1472
1487
|
var ChapterBlock = function ChapterBlock(_ref) {
|
|
1473
1488
|
var _ref$block = _ref.block,
|
|
@@ -1476,9 +1491,9 @@ var ChapterBlock = function ChapterBlock(_ref) {
|
|
|
1476
1491
|
styleContext = _ref.styleContext;
|
|
1477
1492
|
return React__default.createElement("div", {
|
|
1478
1493
|
"data-testid": "chapter-block",
|
|
1479
|
-
className: makeClassName([[styles$
|
|
1494
|
+
className: makeClassName([[styles$l.root, true], [styles$l[onlyOn], !!onlyOn]])
|
|
1480
1495
|
}, React__default.createElement("div", {
|
|
1481
|
-
className: makeClassName([[styles$
|
|
1496
|
+
className: makeClassName([[styles$l.subtitle, true], [styles$l[styleContext], !!styleContext && !!styles$l[styleContext]]]),
|
|
1482
1497
|
dangerouslySetInnerHTML: {
|
|
1483
1498
|
__html: data
|
|
1484
1499
|
}
|
|
@@ -1496,17 +1511,17 @@ var generateGradient = function generateGradient(color, type) {
|
|
|
1496
1511
|
return "linear-gradient(-180deg, " + gradient + ")";
|
|
1497
1512
|
};
|
|
1498
1513
|
|
|
1499
|
-
var styles$
|
|
1514
|
+
var styles$m = {"root":"SimpleTitle-module_root__2jVQN","mobile":"SimpleTitle-module_mobile__11gBz","desktop":"SimpleTitle-module_desktop__3yXgy"};
|
|
1500
1515
|
|
|
1501
1516
|
var SimpleTitle = function SimpleTitle(_ref) {
|
|
1502
1517
|
var _ref$block = _ref.block,
|
|
1503
1518
|
first = _ref$block.data.first,
|
|
1504
1519
|
onlyOn = _ref$block.only_on,
|
|
1505
1520
|
styleContext = _ref.styleContext;
|
|
1506
|
-
var classNames = [[styles$
|
|
1521
|
+
var classNames = [[styles$m.root, true], [styles$m[onlyOn], true]];
|
|
1507
1522
|
|
|
1508
1523
|
if (styleContext) {
|
|
1509
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1524
|
+
classNames = makeStyleContext(classNames, styleContext, styles$m);
|
|
1510
1525
|
}
|
|
1511
1526
|
|
|
1512
1527
|
return React__default.createElement("h1", {
|
|
@@ -1515,7 +1530,7 @@ var SimpleTitle = function SimpleTitle(_ref) {
|
|
|
1515
1530
|
}, first);
|
|
1516
1531
|
};
|
|
1517
1532
|
|
|
1518
|
-
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"};
|
|
1519
1534
|
|
|
1520
1535
|
var RichTitle = function RichTitle(_ref) {
|
|
1521
1536
|
var _ref$block = _ref.block,
|
|
@@ -1527,10 +1542,10 @@ var RichTitle = function RichTitle(_ref) {
|
|
|
1527
1542
|
_ref$block$data$as = _ref$block$data.as,
|
|
1528
1543
|
TagName = _ref$block$data$as === void 0 ? 'h1' : _ref$block$data$as,
|
|
1529
1544
|
styleContext = _ref.styleContext;
|
|
1530
|
-
var classNames = [[styles$
|
|
1545
|
+
var classNames = [[styles$n.root, true], [styles$n[onlyOn], true], [styles$n.featured, !!featured]];
|
|
1531
1546
|
|
|
1532
1547
|
if (styleContext) {
|
|
1533
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1548
|
+
classNames = makeStyleContext(classNames, styleContext, styles$n);
|
|
1534
1549
|
}
|
|
1535
1550
|
|
|
1536
1551
|
return React__default.createElement(TagName, {
|
|
@@ -1539,7 +1554,7 @@ var RichTitle = function RichTitle(_ref) {
|
|
|
1539
1554
|
}, first, second && React__default.createElement("span", null, " ", second));
|
|
1540
1555
|
};
|
|
1541
1556
|
|
|
1542
|
-
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"};
|
|
1543
1558
|
|
|
1544
1559
|
var SimpleBlock = function SimpleBlock(_ref) {
|
|
1545
1560
|
var _ref$block = _ref.block,
|
|
@@ -1548,10 +1563,10 @@ var SimpleBlock = function SimpleBlock(_ref) {
|
|
|
1548
1563
|
onlyOn = _ref$block.only_on,
|
|
1549
1564
|
styleContext = _ref.styleContext;
|
|
1550
1565
|
var TagName;
|
|
1551
|
-
var classNames = [[styles$
|
|
1566
|
+
var classNames = [[styles$o[type], !!type && !!styles$o[type]], [styles$o[onlyOn], true]];
|
|
1552
1567
|
|
|
1553
1568
|
if (styleContext) {
|
|
1554
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1569
|
+
classNames = makeStyleContext(classNames, styleContext, styles$o);
|
|
1555
1570
|
}
|
|
1556
1571
|
|
|
1557
1572
|
switch (type) {
|
|
@@ -1587,7 +1602,7 @@ var SimpleBlock = function SimpleBlock(_ref) {
|
|
|
1587
1602
|
});
|
|
1588
1603
|
};
|
|
1589
1604
|
|
|
1590
|
-
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"};
|
|
1591
1606
|
|
|
1592
1607
|
var ListBlock = function ListBlock(_ref) {
|
|
1593
1608
|
var _ref$block = _ref.block,
|
|
@@ -1596,10 +1611,10 @@ var ListBlock = function ListBlock(_ref) {
|
|
|
1596
1611
|
onlyOn = _ref$block.only_on,
|
|
1597
1612
|
styleContext = _ref.styleContext;
|
|
1598
1613
|
var TagName = type;
|
|
1599
|
-
var classNames = [[styles$
|
|
1614
|
+
var classNames = [[styles$p.root, true], [styles$p[onlyOn], true], [styles$p[type], !!type && !!styles$p[type]]];
|
|
1600
1615
|
|
|
1601
1616
|
if (styleContext) {
|
|
1602
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1617
|
+
classNames = makeStyleContext(classNames, styleContext, styles$p);
|
|
1603
1618
|
}
|
|
1604
1619
|
|
|
1605
1620
|
return React__default.createElement(TagName, {
|
|
@@ -1615,7 +1630,7 @@ var ListBlock = function ListBlock(_ref) {
|
|
|
1615
1630
|
}));
|
|
1616
1631
|
};
|
|
1617
1632
|
|
|
1618
|
-
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"};
|
|
1619
1634
|
|
|
1620
1635
|
var RelatedBlock = function RelatedBlock(_ref) {
|
|
1621
1636
|
var _ref$block = _ref.block,
|
|
@@ -1624,32 +1639,32 @@ var RelatedBlock = function RelatedBlock(_ref) {
|
|
|
1624
1639
|
related = _ref$block$data.related,
|
|
1625
1640
|
onlyOn = _ref$block.only_on,
|
|
1626
1641
|
styleContext = _ref.styleContext;
|
|
1627
|
-
var classNames = [[styles$
|
|
1642
|
+
var classNames = [[styles$q.root, true], [styles$q[onlyOn], true]];
|
|
1628
1643
|
|
|
1629
1644
|
if (styleContext) {
|
|
1630
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1645
|
+
classNames = makeStyleContext(classNames, styleContext, styles$q);
|
|
1631
1646
|
}
|
|
1632
1647
|
|
|
1633
1648
|
return React__default.createElement("div", {
|
|
1634
1649
|
"data-testid": "related-block",
|
|
1635
1650
|
className: makeClassName(classNames)
|
|
1636
1651
|
}, React__default.createElement("h3", {
|
|
1637
|
-
className: styles$
|
|
1652
|
+
className: styles$q.header
|
|
1638
1653
|
}, title), React__default.createElement("ul", {
|
|
1639
|
-
className: styles$
|
|
1654
|
+
className: styles$q.items
|
|
1640
1655
|
}, related.map(function (item, index) {
|
|
1641
1656
|
return React__default.createElement("li", {
|
|
1642
1657
|
key: item.id || index,
|
|
1643
|
-
className: styles$
|
|
1658
|
+
className: styles$q[item.layout]
|
|
1644
1659
|
}, React__default.createElement(reactRouterDom.Link, {
|
|
1645
1660
|
to: item.full_url || "/" + item.url
|
|
1646
1661
|
}, React__default.createElement("span", {
|
|
1647
|
-
className: styles$
|
|
1662
|
+
className: styles$q.first
|
|
1648
1663
|
}, item.title), item.second_title && ' ', item.second_title && React__default.createElement("span", null, item.second_title)));
|
|
1649
1664
|
})));
|
|
1650
1665
|
};
|
|
1651
1666
|
|
|
1652
|
-
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"};
|
|
1653
1668
|
|
|
1654
1669
|
var SourceBlock = function SourceBlock(_ref) {
|
|
1655
1670
|
var _ref$block = _ref.block,
|
|
@@ -1659,10 +1674,10 @@ var SourceBlock = function SourceBlock(_ref) {
|
|
|
1659
1674
|
origin = _ref$block$data.origin,
|
|
1660
1675
|
url = _ref$block$data.url,
|
|
1661
1676
|
styleContext = _ref.styleContext;
|
|
1662
|
-
var classNames = [[styles$
|
|
1677
|
+
var classNames = [[styles$r.root, true], [styles$r[onlyOn], true]];
|
|
1663
1678
|
|
|
1664
1679
|
if (styleContext) {
|
|
1665
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1680
|
+
classNames = makeStyleContext(classNames, styleContext, styles$r);
|
|
1666
1681
|
}
|
|
1667
1682
|
|
|
1668
1683
|
return React__default.createElement("blockquote", {
|
|
@@ -1670,7 +1685,7 @@ var SourceBlock = function SourceBlock(_ref) {
|
|
|
1670
1685
|
cite: url,
|
|
1671
1686
|
className: makeClassName(classNames)
|
|
1672
1687
|
}, React__default.createElement("a", {
|
|
1673
|
-
className: styles$
|
|
1688
|
+
className: styles$r.text,
|
|
1674
1689
|
href: url,
|
|
1675
1690
|
target: "_blank",
|
|
1676
1691
|
rel: "noopener noreferrer"
|
|
@@ -1682,11 +1697,11 @@ var SourceBlock = function SourceBlock(_ref) {
|
|
|
1682
1697
|
}
|
|
1683
1698
|
});
|
|
1684
1699
|
}), React__default.createElement("footer", null, React__default.createElement("cite", {
|
|
1685
|
-
className: styles$
|
|
1700
|
+
className: styles$r.origin
|
|
1686
1701
|
}, origin))));
|
|
1687
1702
|
};
|
|
1688
1703
|
|
|
1689
|
-
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"};
|
|
1690
1705
|
|
|
1691
1706
|
var SensitiveBlock = function SensitiveBlock(_ref) {
|
|
1692
1707
|
var block = _ref.block,
|
|
@@ -1706,11 +1721,11 @@ var SensitiveBlock = function SensitiveBlock(_ref) {
|
|
|
1706
1721
|
isVisible(true);
|
|
1707
1722
|
};
|
|
1708
1723
|
|
|
1709
|
-
var classNames = [[styles$
|
|
1724
|
+
var classNames = [[styles$s.root, true], [styles$s.visible, visible], [styles$s[display], display && styles$s[display]]];
|
|
1710
1725
|
var context = ['isInSensitiveBlock'];
|
|
1711
1726
|
|
|
1712
1727
|
if (styleContext) {
|
|
1713
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1728
|
+
classNames = makeStyleContext(classNames, styleContext, styles$s);
|
|
1714
1729
|
context = [].concat(styleContext, ['isInSensitiveBlock']);
|
|
1715
1730
|
}
|
|
1716
1731
|
|
|
@@ -1718,32 +1733,32 @@ var SensitiveBlock = function SensitiveBlock(_ref) {
|
|
|
1718
1733
|
"data-testid": "sensitive-block",
|
|
1719
1734
|
className: makeClassName(classNames)
|
|
1720
1735
|
}, React__default.createElement("div", {
|
|
1721
|
-
className: styles$
|
|
1736
|
+
className: styles$s.container
|
|
1722
1737
|
}, React__default.createElement("div", {
|
|
1723
|
-
className: styles$
|
|
1738
|
+
className: styles$s.overlay,
|
|
1724
1739
|
style: {
|
|
1725
1740
|
backgroundImage: "url(" + blurredImage + ")"
|
|
1726
1741
|
}
|
|
1727
1742
|
}, React__default.createElement("div", {
|
|
1728
|
-
className: styles$
|
|
1743
|
+
className: styles$s.content
|
|
1729
1744
|
}, React__default.createElement("p", {
|
|
1730
1745
|
dangerouslySetInnerHTML: {
|
|
1731
1746
|
__html: block.title
|
|
1732
1747
|
}
|
|
1733
1748
|
}), React__default.createElement("div", {
|
|
1734
|
-
className: styles$
|
|
1749
|
+
className: styles$s.button
|
|
1735
1750
|
}, React__default.createElement(Button, {
|
|
1736
1751
|
onClick: function onClick() {
|
|
1737
1752
|
return handleClick();
|
|
1738
1753
|
},
|
|
1739
1754
|
theme: "light"
|
|
1740
1755
|
}, block.button.text)))), React__default.createElement("div", {
|
|
1741
|
-
className: styles$
|
|
1756
|
+
className: styles$s.media
|
|
1742
1757
|
}, React__default.createElement(EmbedBlockContainer, {
|
|
1743
1758
|
block: block.item,
|
|
1744
1759
|
styleContext: context
|
|
1745
1760
|
}))), cc && React__default.createElement("figcaption", {
|
|
1746
|
-
className: styles$
|
|
1761
|
+
className: styles$s.figcaption
|
|
1747
1762
|
}, React__default.createElement(MediaCaption, {
|
|
1748
1763
|
credit: credit,
|
|
1749
1764
|
caption: caption,
|
|
@@ -1751,7 +1766,7 @@ var SensitiveBlock = function SensitiveBlock(_ref) {
|
|
|
1751
1766
|
})));
|
|
1752
1767
|
};
|
|
1753
1768
|
|
|
1754
|
-
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"};
|
|
1755
1770
|
|
|
1756
1771
|
var GroupedBlock = function GroupedBlock(_ref) {
|
|
1757
1772
|
var block = _ref.block,
|
|
@@ -1768,21 +1783,21 @@ var GroupedBlock = function GroupedBlock(_ref) {
|
|
|
1768
1783
|
var sumWidth = normalizedBoxesWidth.reduce(function (sum, x) {
|
|
1769
1784
|
return sum + x;
|
|
1770
1785
|
});
|
|
1771
|
-
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]]];
|
|
1772
1787
|
|
|
1773
1788
|
if (styleContext) {
|
|
1774
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1789
|
+
classNames = makeStyleContext(classNames, styleContext, styles$t);
|
|
1775
1790
|
}
|
|
1776
1791
|
|
|
1777
1792
|
return React__default.createElement("div", {
|
|
1778
1793
|
"data-testid": "grouped-block",
|
|
1779
1794
|
className: makeClassName(classNames)
|
|
1780
1795
|
}, React__default.createElement("div", {
|
|
1781
|
-
className: styles$
|
|
1796
|
+
className: styles$t.items
|
|
1782
1797
|
}, block.data.map(function (item, index) {
|
|
1783
1798
|
var percentWidth = normalizedBoxesWidth[index] / sumWidth * 100;
|
|
1784
1799
|
return React__default.createElement("div", {
|
|
1785
|
-
className: styles$
|
|
1800
|
+
className: styles$t.item,
|
|
1786
1801
|
key: item.id,
|
|
1787
1802
|
style: {
|
|
1788
1803
|
width: percentWidth + "%"
|
|
@@ -1795,7 +1810,7 @@ var GroupedBlock = function GroupedBlock(_ref) {
|
|
|
1795
1810
|
styleContext: ['isInGroupedBlock']
|
|
1796
1811
|
}));
|
|
1797
1812
|
})), block.cc && React__default.createElement("figcaption", {
|
|
1798
|
-
className: styles$
|
|
1813
|
+
className: styles$t.figcaption
|
|
1799
1814
|
}, React__default.createElement(MediaCaption, {
|
|
1800
1815
|
credit: block.credit,
|
|
1801
1816
|
caption: block.caption,
|
|
@@ -1803,32 +1818,32 @@ var GroupedBlock = function GroupedBlock(_ref) {
|
|
|
1803
1818
|
})));
|
|
1804
1819
|
};
|
|
1805
1820
|
|
|
1806
|
-
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"};
|
|
1807
1822
|
|
|
1808
1823
|
var MetaItem = function MetaItem(_ref) {
|
|
1809
1824
|
var hasSource = _ref.hasSource,
|
|
1810
1825
|
type = _ref.type,
|
|
1811
1826
|
children = _ref.children,
|
|
1812
1827
|
bullets = _ref.bullets;
|
|
1813
|
-
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]];
|
|
1814
1829
|
return React__default.createElement("div", {
|
|
1815
1830
|
"data-testid": "meta-item",
|
|
1816
1831
|
className: makeClassName(classNames)
|
|
1817
1832
|
}, children);
|
|
1818
1833
|
};
|
|
1819
1834
|
|
|
1820
|
-
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"};
|
|
1821
1836
|
|
|
1822
1837
|
var MetaItemLive = function MetaItemLive(_ref) {
|
|
1823
1838
|
var _ref$theme = _ref.theme,
|
|
1824
1839
|
theme = _ref$theme === void 0 ? 'gold' : _ref$theme;
|
|
1825
|
-
var classNames = [[styles$
|
|
1840
|
+
var classNames = [[styles$v.root, true], [styles$v[theme], !!theme && styles$v[theme]]];
|
|
1826
1841
|
return React__default.createElement("div", {
|
|
1827
1842
|
"data-testid": "meta-item-live",
|
|
1828
1843
|
"data-meta": "live",
|
|
1829
1844
|
className: makeClassName(classNames)
|
|
1830
1845
|
}, React__default.createElement("div", {
|
|
1831
|
-
className: styles$
|
|
1846
|
+
className: styles$v.frame
|
|
1832
1847
|
}));
|
|
1833
1848
|
};
|
|
1834
1849
|
|
|
@@ -1853,7 +1868,7 @@ var pluralize = function pluralize(number, one, two, five) {
|
|
|
1853
1868
|
return five;
|
|
1854
1869
|
};
|
|
1855
1870
|
|
|
1856
|
-
var styles$
|
|
1871
|
+
var styles$w = {"root":"DocumentItemsCount-module_root__P3q-z","items":"DocumentItemsCount-module_items__3pfxW"};
|
|
1857
1872
|
|
|
1858
1873
|
var DocumentItemsCount = function DocumentItemsCount(_ref) {
|
|
1859
1874
|
var type = _ref.type,
|
|
@@ -1890,9 +1905,9 @@ var DocumentItemsCount = function DocumentItemsCount(_ref) {
|
|
|
1890
1905
|
var itemsCount = items + " " + pluralize(items, i18n[lang][type].one, i18n[lang][type].two, i18n[lang][type].five);
|
|
1891
1906
|
return React__default.createElement("div", {
|
|
1892
1907
|
"data-testid": "document-items-count",
|
|
1893
|
-
className: styles$
|
|
1908
|
+
className: styles$w.root
|
|
1894
1909
|
}, children, React__default.createElement("span", {
|
|
1895
|
-
className: styles$
|
|
1910
|
+
className: styles$w.items
|
|
1896
1911
|
}, itemsCount));
|
|
1897
1912
|
};
|
|
1898
1913
|
|
|
@@ -2015,7 +2030,7 @@ var MetaContainer = function MetaContainer(_ref) {
|
|
|
2015
2030
|
icon: isListened ? 'listened' : 'read',
|
|
2016
2031
|
size: "unset"
|
|
2017
2032
|
})), isSlides && lang === 'ru' && React__default.createElement("div", {
|
|
2018
|
-
className: styles$
|
|
2033
|
+
className: styles$g.bookmark
|
|
2019
2034
|
}, React__default.createElement(BookmarkButton, {
|
|
2020
2035
|
isInBookmarks: isInBookmarks,
|
|
2021
2036
|
onClick: function onClick() {
|
|
@@ -2024,16 +2039,16 @@ var MetaContainer = function MetaContainer(_ref) {
|
|
|
2024
2039
|
})));
|
|
2025
2040
|
};
|
|
2026
2041
|
|
|
2027
|
-
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"};
|
|
2028
2043
|
|
|
2029
2044
|
var DonatesTeaser = function DonatesTeaser(_ref) {
|
|
2030
2045
|
var styleContext = _ref.styleContext,
|
|
2031
2046
|
_ref$lang = _ref.lang,
|
|
2032
2047
|
lang = _ref$lang === void 0 ? 'ru' : _ref$lang;
|
|
2033
|
-
var classNames = [[styles$
|
|
2048
|
+
var classNames = [[styles$x.root, true], [styles$x[lang], styles$x[lang]]];
|
|
2034
2049
|
|
|
2035
2050
|
if (styleContext) {
|
|
2036
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2051
|
+
classNames = makeStyleContext(classNames, styleContext, styles$x);
|
|
2037
2052
|
}
|
|
2038
2053
|
|
|
2039
2054
|
var data = {
|
|
@@ -2054,20 +2069,20 @@ var DonatesTeaser = function DonatesTeaser(_ref) {
|
|
|
2054
2069
|
"data-testid": "donates-teaser",
|
|
2055
2070
|
className: makeClassName(classNames)
|
|
2056
2071
|
}, React__default.createElement("div", {
|
|
2057
|
-
className: styles$
|
|
2072
|
+
className: styles$x.main
|
|
2058
2073
|
}, React__default.createElement("h3", {
|
|
2059
|
-
className: styles$
|
|
2074
|
+
className: styles$x.title
|
|
2060
2075
|
}, React__default.createElement("span", {
|
|
2061
2076
|
dangerouslySetInnerHTML: {
|
|
2062
2077
|
__html: data[lang].title
|
|
2063
2078
|
}
|
|
2064
2079
|
}), " ", React__default.createElement("span", {
|
|
2065
|
-
className: styles$
|
|
2080
|
+
className: styles$x.text,
|
|
2066
2081
|
dangerouslySetInnerHTML: {
|
|
2067
2082
|
__html: data[lang].subtitle
|
|
2068
2083
|
}
|
|
2069
2084
|
}))), React__default.createElement("div", {
|
|
2070
|
-
className: styles$
|
|
2085
|
+
className: styles$x.cta
|
|
2071
2086
|
}, React__default.createElement("a", {
|
|
2072
2087
|
href: data[lang].href,
|
|
2073
2088
|
target: "_blank",
|
|
@@ -2075,16 +2090,16 @@ var DonatesTeaser = function DonatesTeaser(_ref) {
|
|
|
2075
2090
|
}, React__default.createElement("span", null, data[lang].button))));
|
|
2076
2091
|
};
|
|
2077
2092
|
|
|
2078
|
-
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"};
|
|
2079
2094
|
|
|
2080
2095
|
var AnnouncementInText = function AnnouncementInText(_ref) {
|
|
2081
2096
|
var styleContext = _ref.styleContext,
|
|
2082
2097
|
_ref$lang = _ref.lang,
|
|
2083
2098
|
lang = _ref$lang === void 0 ? 'ru' : _ref$lang;
|
|
2084
|
-
var classNames = [[styles$
|
|
2099
|
+
var classNames = [[styles$y.root, true], [styles$y[lang], styles$y[lang]]];
|
|
2085
2100
|
|
|
2086
2101
|
if (styleContext) {
|
|
2087
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2102
|
+
classNames = makeStyleContext(classNames, styleContext, styles$y);
|
|
2088
2103
|
}
|
|
2089
2104
|
|
|
2090
2105
|
var data = {
|
|
@@ -2106,9 +2121,9 @@ var AnnouncementInText = function AnnouncementInText(_ref) {
|
|
|
2106
2121
|
"data-testid": "announcement-in-text",
|
|
2107
2122
|
className: makeClassName(classNames)
|
|
2108
2123
|
}, React__default.createElement("div", {
|
|
2109
|
-
className: styles$
|
|
2124
|
+
className: styles$y.body
|
|
2110
2125
|
}, React__default.createElement("h3", {
|
|
2111
|
-
className: styles$
|
|
2126
|
+
className: styles$y.title,
|
|
2112
2127
|
dangerouslySetInnerHTML: {
|
|
2113
2128
|
__html: localeData.title
|
|
2114
2129
|
}
|
|
@@ -2117,14 +2132,14 @@ var AnnouncementInText = function AnnouncementInText(_ref) {
|
|
|
2117
2132
|
__html: localeData.text
|
|
2118
2133
|
}
|
|
2119
2134
|
})), React__default.createElement("div", {
|
|
2120
|
-
className: styles$
|
|
2135
|
+
className: styles$y.footer
|
|
2121
2136
|
}, React__default.createElement("a", {
|
|
2122
|
-
className: styles$
|
|
2137
|
+
className: styles$y.link,
|
|
2123
2138
|
href: localeData.href,
|
|
2124
2139
|
target: "_blank",
|
|
2125
2140
|
rel: "noreferrer"
|
|
2126
2141
|
}, React__default.createElement("span", null, localeData.button)), React__default.createElement("span", {
|
|
2127
|
-
className: styles$
|
|
2142
|
+
className: styles$y.button
|
|
2128
2143
|
}, React__default.createElement("span", null, localeData.button))));
|
|
2129
2144
|
};
|
|
2130
2145
|
|
|
@@ -2294,7 +2309,7 @@ var RenderBlocks = function RenderBlocks(_ref) {
|
|
|
2294
2309
|
}
|
|
2295
2310
|
};
|
|
2296
2311
|
|
|
2297
|
-
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"};
|
|
2298
2313
|
|
|
2299
2314
|
var Cover = function Cover(_ref) {
|
|
2300
2315
|
var _ref$block = _ref.block,
|
|
@@ -2315,15 +2330,15 @@ var Cover = function Cover(_ref) {
|
|
|
2315
2330
|
setIsPopoverShown = _useState[1];
|
|
2316
2331
|
|
|
2317
2332
|
var style = {};
|
|
2318
|
-
var classNames = [[styles$
|
|
2333
|
+
var classNames = [[styles$z.root, true], [styles$z[onlyOn], !!onlyOn && !!styles$z[onlyOn]]];
|
|
2319
2334
|
|
|
2320
2335
|
if (styleContext) {
|
|
2321
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2336
|
+
classNames = makeStyleContext(classNames, styleContext, styles$z);
|
|
2322
2337
|
}
|
|
2323
2338
|
|
|
2324
2339
|
if (gradients) {
|
|
2325
2340
|
var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
|
|
2326
|
-
classNames = makeStyleContext(classNames, theme, styles$
|
|
2341
|
+
classNames = makeStyleContext(classNames, theme, styles$z);
|
|
2327
2342
|
style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
|
|
2328
2343
|
}
|
|
2329
2344
|
|
|
@@ -2339,13 +2354,13 @@ var Cover = function Cover(_ref) {
|
|
|
2339
2354
|
"data-testid": "cover",
|
|
2340
2355
|
className: makeClassName(classNames)
|
|
2341
2356
|
}, React__default.createElement("div", {
|
|
2342
|
-
className: styles$
|
|
2357
|
+
className: styles$z.image
|
|
2343
2358
|
}, React__default.createElement(Image, {
|
|
2344
2359
|
optimized: urls,
|
|
2345
2360
|
ratio: mobileRatio,
|
|
2346
2361
|
display: "narrow"
|
|
2347
2362
|
})), React__default.createElement("div", {
|
|
2348
|
-
className: styles$
|
|
2363
|
+
className: styles$z.body,
|
|
2349
2364
|
style: style
|
|
2350
2365
|
}, blocks.map(function (item) {
|
|
2351
2366
|
return React__default.createElement(RenderBlocks, {
|
|
@@ -2354,7 +2369,7 @@ var Cover = function Cover(_ref) {
|
|
|
2354
2369
|
styleContext: styleContext
|
|
2355
2370
|
});
|
|
2356
2371
|
})), cc === 'button' && React__default.createElement("button", {
|
|
2357
|
-
className: styles$
|
|
2372
|
+
className: styles$z.control,
|
|
2358
2373
|
type: "button",
|
|
2359
2374
|
"aria-label": "Open",
|
|
2360
2375
|
onClick: function onClick() {
|
|
@@ -2367,7 +2382,7 @@ var Cover = function Cover(_ref) {
|
|
|
2367
2382
|
}, renderCC('isInPopover')));
|
|
2368
2383
|
};
|
|
2369
2384
|
|
|
2370
|
-
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"};
|
|
2371
2386
|
|
|
2372
2387
|
var HalfBlock = function HalfBlock(_ref) {
|
|
2373
2388
|
var _ref$block = _ref.block,
|
|
@@ -2379,25 +2394,25 @@ var HalfBlock = function HalfBlock(_ref) {
|
|
|
2379
2394
|
credit = _ref$block$data$cover.credit,
|
|
2380
2395
|
caption = _ref$block$data$cover.caption,
|
|
2381
2396
|
styleContext = _ref.styleContext;
|
|
2382
|
-
var classNames = [[styles$
|
|
2397
|
+
var classNames = [[styles$A.root, true], [styles$A[onlyOn], true]];
|
|
2383
2398
|
|
|
2384
2399
|
if (styleContext) {
|
|
2385
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2400
|
+
classNames = makeStyleContext(classNames, styleContext, styles$A);
|
|
2386
2401
|
}
|
|
2387
2402
|
|
|
2388
2403
|
return React__default.createElement("div", {
|
|
2389
2404
|
"data-testid": "half-block",
|
|
2390
2405
|
className: makeClassName(classNames)
|
|
2391
2406
|
}, React__default.createElement("div", {
|
|
2392
|
-
className: styles$
|
|
2407
|
+
className: styles$A.main
|
|
2393
2408
|
}, React__default.createElement("div", {
|
|
2394
|
-
className: styles$
|
|
2409
|
+
className: styles$A.image
|
|
2395
2410
|
}, React__default.createElement(Image, {
|
|
2396
2411
|
optimized: optimized,
|
|
2397
2412
|
ratio: ratio,
|
|
2398
2413
|
display: "super_full"
|
|
2399
2414
|
})), React__default.createElement("div", {
|
|
2400
|
-
className: styles$
|
|
2415
|
+
className: styles$A.body
|
|
2401
2416
|
}, data.blocks.map(function (item) {
|
|
2402
2417
|
return React__default.createElement(RenderBlocks, {
|
|
2403
2418
|
key: item.id,
|
|
@@ -2405,7 +2420,7 @@ var HalfBlock = function HalfBlock(_ref) {
|
|
|
2405
2420
|
styleContext: ['rich']
|
|
2406
2421
|
});
|
|
2407
2422
|
}))), React__default.createElement("div", {
|
|
2408
|
-
className: styles$
|
|
2423
|
+
className: styles$A.footer
|
|
2409
2424
|
}, React__default.createElement(MediaCaption, {
|
|
2410
2425
|
credit: credit,
|
|
2411
2426
|
caption: caption,
|
|
@@ -2413,17 +2428,17 @@ var HalfBlock = function HalfBlock(_ref) {
|
|
|
2413
2428
|
})));
|
|
2414
2429
|
};
|
|
2415
2430
|
|
|
2416
|
-
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"};
|
|
2417
2432
|
|
|
2418
2433
|
var ImportantLead = function ImportantLead(_ref) {
|
|
2419
2434
|
var _ref$block = _ref.block,
|
|
2420
2435
|
onlyOn = _ref$block.only_on,
|
|
2421
2436
|
data = _ref$block.data,
|
|
2422
2437
|
styleContext = _ref.styleContext;
|
|
2423
|
-
var classNames = [[styles$
|
|
2438
|
+
var classNames = [[styles$B.root, true], [styles$B[onlyOn], !!onlyOn]];
|
|
2424
2439
|
|
|
2425
2440
|
if (styleContext) {
|
|
2426
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2441
|
+
classNames = makeStyleContext(classNames, styleContext, styles$B);
|
|
2427
2442
|
}
|
|
2428
2443
|
|
|
2429
2444
|
return React__default.createElement("div", {
|
|
@@ -2438,7 +2453,7 @@ var ImportantLead = function ImportantLead(_ref) {
|
|
|
2438
2453
|
}));
|
|
2439
2454
|
};
|
|
2440
2455
|
|
|
2441
|
-
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"};
|
|
2442
2457
|
|
|
2443
2458
|
var Spoiler = function Spoiler(_ref) {
|
|
2444
2459
|
var _ref$block = _ref.block,
|
|
@@ -2473,11 +2488,11 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2473
2488
|
}
|
|
2474
2489
|
};
|
|
2475
2490
|
|
|
2476
|
-
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]];
|
|
2477
2492
|
var context = ['center'];
|
|
2478
2493
|
|
|
2479
2494
|
if (styleContext) {
|
|
2480
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2495
|
+
classNames = makeStyleContext(classNames, styleContext, styles$C);
|
|
2481
2496
|
}
|
|
2482
2497
|
|
|
2483
2498
|
var buttonCollapse = button ? button.collapse : 'Свернуть';
|
|
@@ -2487,9 +2502,9 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2487
2502
|
className: makeClassName(classNames),
|
|
2488
2503
|
"data-testid": "spoiler"
|
|
2489
2504
|
}, React__default.createElement("div", {
|
|
2490
|
-
className: styles$
|
|
2505
|
+
className: styles$C.header
|
|
2491
2506
|
}, title && React__default.createElement("h3", null, title)), React__default.createElement("div", {
|
|
2492
|
-
className: styles$
|
|
2507
|
+
className: styles$C.body
|
|
2493
2508
|
}, blocks.map(function (item) {
|
|
2494
2509
|
return React__default.createElement(RenderBlocks, {
|
|
2495
2510
|
key: item.id,
|
|
@@ -2497,7 +2512,7 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2497
2512
|
styleContext: context
|
|
2498
2513
|
});
|
|
2499
2514
|
})), React__default.createElement("div", {
|
|
2500
|
-
className: styles$
|
|
2515
|
+
className: styles$C.footer
|
|
2501
2516
|
}, React__default.createElement(Button, {
|
|
2502
2517
|
size: "default",
|
|
2503
2518
|
theme: "gray",
|
|
@@ -2510,7 +2525,7 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2510
2525
|
}))));
|
|
2511
2526
|
};
|
|
2512
2527
|
|
|
2513
|
-
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"};
|
|
2514
2529
|
|
|
2515
2530
|
/* eslint-disable react/jsx-no-target-blank */
|
|
2516
2531
|
var RelatedRichBlock = function RelatedRichBlock(_ref) {
|
|
@@ -2549,18 +2564,18 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
|
|
|
2549
2564
|
postMessage('richRelated', url, 'click');
|
|
2550
2565
|
};
|
|
2551
2566
|
|
|
2552
|
-
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]]];
|
|
2553
2568
|
var context = ['isInMediaBlock'];
|
|
2554
2569
|
|
|
2555
2570
|
if (styleContext) {
|
|
2556
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2571
|
+
classNames = makeStyleContext(classNames, styleContext, styles$D);
|
|
2557
2572
|
context = [].concat(styleContext, ['isInMediaBlock']);
|
|
2558
2573
|
}
|
|
2559
2574
|
|
|
2560
2575
|
if (gradients) {
|
|
2561
2576
|
styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
|
|
2562
2577
|
var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
|
|
2563
|
-
classNames = makeStyleContext(classNames, theme, styles$
|
|
2578
|
+
classNames = makeStyleContext(classNames, theme, styles$D);
|
|
2564
2579
|
|
|
2565
2580
|
if (onlyOn === 'desktop') {
|
|
2566
2581
|
style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
|
|
@@ -2576,27 +2591,27 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
|
|
|
2576
2591
|
},
|
|
2577
2592
|
ref: ref
|
|
2578
2593
|
}, layout === 'rich' && React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
2579
|
-
className: styles$
|
|
2594
|
+
className: styles$D.overlay,
|
|
2580
2595
|
style: style
|
|
2581
2596
|
}), React__default.createElement("div", {
|
|
2582
|
-
className: styles$
|
|
2597
|
+
className: styles$D.overlayHeader,
|
|
2583
2598
|
style: styleHeader
|
|
2584
2599
|
})), React__default.createElement("div", {
|
|
2585
|
-
className: styles$
|
|
2600
|
+
className: styles$D.tag
|
|
2586
2601
|
}, React__default.createElement(Tag, {
|
|
2587
2602
|
size: "small",
|
|
2588
2603
|
theme: "inherit",
|
|
2589
2604
|
styleContext: "richRelated"
|
|
2590
2605
|
}, tag)), React__default.createElement("div", {
|
|
2591
|
-
className: styles$
|
|
2606
|
+
className: styles$D.cover
|
|
2592
2607
|
}, React__default.createElement("div", {
|
|
2593
|
-
className: styles$
|
|
2608
|
+
className: styles$D.picture
|
|
2594
2609
|
}, React__default.createElement(Image, {
|
|
2595
2610
|
optimized: urls,
|
|
2596
2611
|
ratio: ratio,
|
|
2597
2612
|
display: "narrow"
|
|
2598
2613
|
}))), React__default.createElement("div", {
|
|
2599
|
-
className: styles$
|
|
2614
|
+
className: styles$D.body
|
|
2600
2615
|
}, blocks.map(function (item) {
|
|
2601
2616
|
return React__default.createElement(RenderBlocks, {
|
|
2602
2617
|
key: item.id,
|
|
@@ -2606,7 +2621,7 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
|
|
|
2606
2621
|
})));
|
|
2607
2622
|
};
|
|
2608
2623
|
|
|
2609
|
-
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"};
|
|
2610
2625
|
|
|
2611
2626
|
/* eslint-disable react/jsx-no-target-blank */
|
|
2612
2627
|
var ShopRelatedBlock = function ShopRelatedBlock(_ref) {
|
|
@@ -2645,16 +2660,16 @@ var ShopRelatedBlock = function ShopRelatedBlock(_ref) {
|
|
|
2645
2660
|
postMessage('productRelated', url, 'click');
|
|
2646
2661
|
};
|
|
2647
2662
|
|
|
2648
|
-
var classNames = [[styles$
|
|
2663
|
+
var classNames = [[styles$E.root, true], [styles$E.hasGradient, !!gradients], [styles$E[onlyOn], !!onlyOn && !!styles$E[onlyOn]]];
|
|
2649
2664
|
|
|
2650
2665
|
if (styleContext) {
|
|
2651
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2666
|
+
classNames = makeStyleContext(classNames, styleContext, styles$E);
|
|
2652
2667
|
}
|
|
2653
2668
|
|
|
2654
2669
|
if (gradients) {
|
|
2655
2670
|
styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
|
|
2656
2671
|
var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
|
|
2657
|
-
classNames = makeStyleContext(classNames, theme, styles$
|
|
2672
|
+
classNames = makeStyleContext(classNames, theme, styles$E);
|
|
2658
2673
|
|
|
2659
2674
|
if (onlyOn === 'desktop') {
|
|
2660
2675
|
style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
|
|
@@ -2671,31 +2686,31 @@ var ShopRelatedBlock = function ShopRelatedBlock(_ref) {
|
|
|
2671
2686
|
},
|
|
2672
2687
|
ref: ref
|
|
2673
2688
|
}, layout === 'rich' && React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
2674
|
-
className: styles$
|
|
2689
|
+
className: styles$E.overlay,
|
|
2675
2690
|
style: style
|
|
2676
2691
|
}), React__default.createElement("div", {
|
|
2677
|
-
className: styles$
|
|
2692
|
+
className: styles$E.overlayHeader,
|
|
2678
2693
|
style: styleHeader
|
|
2679
2694
|
})), React__default.createElement("div", {
|
|
2680
|
-
className: styles$
|
|
2695
|
+
className: styles$E.tag
|
|
2681
2696
|
}, React__default.createElement(Tag, {
|
|
2682
2697
|
size: "small",
|
|
2683
2698
|
theme: "inherit",
|
|
2684
2699
|
styleContext: "richRelated"
|
|
2685
2700
|
}, tag)), React__default.createElement("div", {
|
|
2686
|
-
className: styles$
|
|
2701
|
+
className: styles$E.cover
|
|
2687
2702
|
}, React__default.createElement("div", {
|
|
2688
|
-
className: styles$
|
|
2703
|
+
className: styles$E.picture
|
|
2689
2704
|
}, React__default.createElement(Image, {
|
|
2690
2705
|
optimized: urls,
|
|
2691
2706
|
ratio: ratio,
|
|
2692
2707
|
display: "narrow"
|
|
2693
2708
|
}))), React__default.createElement("div", {
|
|
2694
|
-
className: styles$
|
|
2709
|
+
className: styles$E.body
|
|
2695
2710
|
}, React__default.createElement("h2", {
|
|
2696
|
-
className: styles$
|
|
2711
|
+
className: styles$E.title
|
|
2697
2712
|
}, firstTitle, React__default.createElement("span", {
|
|
2698
|
-
className: styles$
|
|
2713
|
+
className: styles$E.price
|
|
2699
2714
|
}, secondTitle))));
|
|
2700
2715
|
};
|
|
2701
2716
|
|
|
@@ -2780,44 +2795,67 @@ var RawHtmlBlock = function RawHtmlBlock(_ref) {
|
|
|
2780
2795
|
}
|
|
2781
2796
|
};
|
|
2782
2797
|
|
|
2783
|
-
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"};
|
|
2784
2799
|
|
|
2785
2800
|
var ToolbarButton = function ToolbarButton(_ref) {
|
|
2786
|
-
var
|
|
2787
|
-
type = _ref.type,
|
|
2801
|
+
var type = _ref.type,
|
|
2788
2802
|
theme = _ref.theme,
|
|
2789
2803
|
isActive = _ref.isActive,
|
|
2790
2804
|
_ref$lang = _ref.lang,
|
|
2791
2805
|
lang = _ref$lang === void 0 ? 'ru' : _ref$lang,
|
|
2806
|
+
text = _ref.text,
|
|
2792
2807
|
icon = _ref.icon,
|
|
2793
2808
|
_onClick = _ref.onClick;
|
|
2794
|
-
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]];
|
|
2795
2810
|
var label = SocialLabels[lang][type];
|
|
2796
|
-
return React__default.createElement("
|
|
2797
|
-
className: toolbarStyles.item
|
|
2798
|
-
}, React__default.createElement("button", {
|
|
2811
|
+
return React__default.createElement("button", {
|
|
2799
2812
|
"data-testid": "toolbar-button",
|
|
2800
2813
|
className: makeClassName(classNames),
|
|
2801
2814
|
type: "button",
|
|
2802
|
-
onClick: function onClick() {
|
|
2803
|
-
return _onClick(type);
|
|
2815
|
+
onClick: function onClick(event) {
|
|
2816
|
+
return _onClick(event, type);
|
|
2804
2817
|
}
|
|
2805
2818
|
}, icon && React__default.createElement("div", {
|
|
2806
|
-
className: styles$
|
|
2819
|
+
className: styles$F.icon
|
|
2807
2820
|
}, React__default.createElement(SvgSymbol, {
|
|
2808
2821
|
size: "medium",
|
|
2809
2822
|
icon: icon,
|
|
2810
2823
|
styleContext: "isInToolbar"
|
|
2811
2824
|
})), React__default.createElement("span", {
|
|
2812
|
-
className: styles$
|
|
2813
|
-
}, label)
|
|
2814
|
-
|
|
2815
|
-
|
|
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);
|
|
2816
2853
|
};
|
|
2817
2854
|
|
|
2818
2855
|
exports.AnnouncementInText = AnnouncementInText;
|
|
2819
2856
|
exports.BookmarkButton = BookmarkButton;
|
|
2820
2857
|
exports.Button = Button;
|
|
2858
|
+
exports.ButtonLoader = ButtonLoader;
|
|
2821
2859
|
exports.CardTitle = CardTitle;
|
|
2822
2860
|
exports.ChapterBlock = ChapterBlock;
|
|
2823
2861
|
exports.Cover = Cover;
|
|
@@ -2862,4 +2900,7 @@ exports.Tag = Tag;
|
|
|
2862
2900
|
exports.Timestamp = Timestamp;
|
|
2863
2901
|
exports.Toolbar = Toolbar;
|
|
2864
2902
|
exports.ToolbarButton = ToolbarButton;
|
|
2903
|
+
exports.ToolbarItem = ToolbarItem;
|
|
2904
|
+
exports.Tooltip = Tooltip;
|
|
2905
|
+
exports.TooltipFooter = TooltipFooter;
|
|
2865
2906
|
//# sourceMappingURL=ui-kit-2.cjs.development.js.map
|