@meduza/ui-kit-2 0.8.629 → 0.8.690
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/ListViewSwitcher/ListViewSwitcher.types.d.ts +6 -0
- package/dist/ListViewSwitcher/index.d.ts +3 -0
- package/dist/SvgSymbol/SvgSymbol.types.d.ts +1 -1
- package/dist/Switcher/Switcher.types.d.ts +2 -3
- package/dist/ToolbarButton/ToolbarButton.types.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/types.d.ts +1 -1
- package/dist/ui-kit-2.cjs.development.js +254 -232
- 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 +254 -233
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit-game.css +138 -31
- package/dist/ui-kit.css +138 -31
- package/package.json +1 -1
- package/src/EmbedBlock/EmbedBlock.module.css +9 -0
- package/src/EmbedBlock/EmbedBlock.tsx +15 -4
- package/src/Image/index.tsx +1 -4
- package/src/ListViewSwitcher/ListViewSwitcher.module.css +109 -0
- package/src/ListViewSwitcher/ListViewSwitcher.stories.module.css +6 -0
- package/src/ListViewSwitcher/ListViewSwitcher.stories.tsx +38 -0
- package/src/ListViewSwitcher/ListViewSwitcher.test.tsx +35 -0
- package/src/ListViewSwitcher/ListViewSwitcher.types.ts +7 -0
- package/src/ListViewSwitcher/index.tsx +30 -0
- package/src/Spoiler/Spoiler.module.css +10 -9
- package/src/SvgSymbol/SvgSymbol.types.ts +0 -2
- package/src/Switcher/Switcher.module.css +4 -21
- package/src/Switcher/Switcher.stories.module.css +3 -21
- package/src/Switcher/Switcher.stories.tsx +13 -32
- package/src/Switcher/Switcher.types.ts +2 -4
- package/src/Switcher/index.tsx +7 -7
- package/src/ToolbarButton/ToolbarButton.types.ts +0 -2
- package/src/_storybook/PreviewWrapper/index.tsx +0 -1
- package/src/index.tsx +1 -0
- package/src/types.ts +0 -3
|
@@ -34,7 +34,7 @@ const ButtonLoader = () => ( /*#__PURE__*/React.createElement("svg", {
|
|
|
34
34
|
d: "M15 0c8.18 0 14.83 6.547 14.997 14.686L30 15h-2c0-7.077-5.655-12.833-12.693-12.996L15 2V0z"
|
|
35
35
|
}))));
|
|
36
36
|
|
|
37
|
-
var styles$
|
|
37
|
+
var styles$J = {"root":"Button-module_root__9OQ5b","gold":"Button-module_gold__q-XBP","isLoading":"Button-module_isLoading__Z53G4","gray":"Button-module_gray__fypDq","sand":"Button-module_sand__e5v-k","dark":"Button-module_dark__qv4NQ","light":"Button-module_light__TLYLT","black":"Button-module_black__GIsbk","red":"Button-module_red__kybni","default":"Button-module_default__utLb-","isInToolbar":"Button-module_isInToolbar__84SG-","isInSpoiler":"Button-module_isInSpoiler__pGp-w","ghost":"Button-module_ghost__1s5-r","isInDropdown":"Button-module_isInDropdown__gN7TI","loader":"Button-module_loader__r0Mjs","isFancy":"Button-module_isFancy__gTRmu"};
|
|
38
38
|
|
|
39
39
|
const Button = ({
|
|
40
40
|
theme = 'gold',
|
|
@@ -54,12 +54,12 @@ const Button = ({
|
|
|
54
54
|
};
|
|
55
55
|
return /*#__PURE__*/React.createElement("button", {
|
|
56
56
|
"data-testid": "button",
|
|
57
|
-
className: makeClassName([[styles$
|
|
57
|
+
className: makeClassName([[styles$J.root, true], [styles$J[size], !!size], [styles$J[theme], !!theme], [styles$J[appearance], !!appearance], [styles$J[state], !!state && !!styles$J[state]], [styles$J[styleContext], !!styleContext]]),
|
|
58
58
|
disabled: disabled,
|
|
59
59
|
onClick: handleClick,
|
|
60
60
|
type: "button"
|
|
61
61
|
}, state === 'isLoading' ? ( /*#__PURE__*/React.createElement("span", {
|
|
62
|
-
className: styles$
|
|
62
|
+
className: styles$J.loader
|
|
63
63
|
}, /*#__PURE__*/React.createElement(ButtonLoader, null))) : children);
|
|
64
64
|
};
|
|
65
65
|
|
|
@@ -278,7 +278,7 @@ const icons = {
|
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
280
|
|
|
281
|
-
var styles$
|
|
281
|
+
var styles$I = {"root":"SvgSymbol-module_root__WctNR","small":"SvgSymbol-module_small__h9V-w","normal":"SvgSymbol-module_normal__gFAVe","medium":"SvgSymbol-module_medium__QaYjY","large":"SvgSymbol-module_large__o6A4o","adaptive":"SvgSymbol-module_adaptive__gL9qn","fb":"SvgSymbol-module_fb__HZqcB","vk":"SvgSymbol-module_vk__XctB2","ok":"SvgSymbol-module_ok__IM6Z9","tw":"SvgSymbol-module_tw__fio-Q","tg":"SvgSymbol-module_tg__GRhd-","magic":"SvgSymbol-module_magic__N-jKk","reaction":"SvgSymbol-module_reaction__xSbgo","card":"SvgSymbol-module_card__2nVFu","podcast":"SvgSymbol-module_podcast__Yp05r","read":"SvgSymbol-module_read__Bu653","listened":"SvgSymbol-module_listened__AOn7j","menu":"SvgSymbol-module_menu__z-dLm","cross":"SvgSymbol-module_cross__3Xej1","isInFeature":"SvgSymbol-module_isInFeature__BmyI-","isInCard":"SvgSymbol-module_isInCard__USxBS","isInTopicBlockItem":"SvgSymbol-module_isInTopicBlockItem__cnCgw","isInPageStatic":"SvgSymbol-module_isInPageStatic__7kMP-","isInMaterialMeta":"SvgSymbol-module_isInMaterialMeta__lIKJO","isInAudioPlayer":"SvgSymbol-module_isInAudioPlayer__mamWa","isInEpisodeBlock":"SvgSymbol-module_isInEpisodeBlock__oZ6JG","isInButtonPlaybackRate":"SvgSymbol-module_isInButtonPlaybackRate__NnADm","isInButtonBackward":"SvgSymbol-module_isInButtonBackward__x8L9a","isInButtonForward":"SvgSymbol-module_isInButtonForward__TtixK","isInToolbar":"SvgSymbol-module_isInToolbar__RzbaX","play":"SvgSymbol-module_play__dAES0","meduzaLogo":"SvgSymbol-module_meduzaLogo__aVKzZ","arrow":"SvgSymbol-module_arrow__lWTSJ","oil":"SvgSymbol-module_oil__VFGTp","search":"SvgSymbol-module_search__h06cc","user":"SvgSymbol-module_user__ORMm-","bookmark":"SvgSymbol-module_bookmark__JPKyG","shareBookmark":"SvgSymbol-module_shareBookmark__7w9X9","receipt":"SvgSymbol-module_receipt__o3V8u","isInHeader":"SvgSymbol-module_isInHeader__M5Tzw"};
|
|
282
282
|
|
|
283
283
|
const SvgSymbol = ({
|
|
284
284
|
icon,
|
|
@@ -290,7 +290,7 @@ const SvgSymbol = ({
|
|
|
290
290
|
"data-testid": "svg-symbol",
|
|
291
291
|
xmlns: "http://www.w3.org/2000/svg",
|
|
292
292
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
293
|
-
className: makeClassName([[styles$
|
|
293
|
+
className: makeClassName([[styles$I.root, true], [styles$I[size], !!styles$I[size]], [styles$I[icon], !!styles$I[icon]], [styles$I[styleContext], !!styles$I[styleContext]]]),
|
|
294
294
|
width: data.width,
|
|
295
295
|
height: data.height,
|
|
296
296
|
viewBox: `0 0 ${data.width} ${data.height}`,
|
|
@@ -300,32 +300,32 @@ const SvgSymbol = ({
|
|
|
300
300
|
});
|
|
301
301
|
};
|
|
302
302
|
|
|
303
|
-
var styles$
|
|
303
|
+
var styles$H = {"root":"Switcher-module_root__cBsJB","dark":"Switcher-module_dark__1QQsH","control":"Switcher-module_control__60WMX","input":"Switcher-module_input__5UDnv","knob":"Switcher-module_knob__PwA1A","isInMenu":"Switcher-module_isInMenu__RQVhp","isInLive":"Switcher-module_isInLive__ZyMCT","children":"Switcher-module_children__uLapU"};
|
|
304
304
|
|
|
305
305
|
const Switcher = ({
|
|
306
306
|
enabled,
|
|
307
|
-
children,
|
|
308
|
-
childrenPosition = 'left',
|
|
309
307
|
onChange,
|
|
310
308
|
styleContext,
|
|
311
|
-
theme = 'light'
|
|
309
|
+
theme = 'light',
|
|
310
|
+
childrenLeft,
|
|
311
|
+
childrenRight
|
|
312
312
|
}) => ( /*#__PURE__*/React.createElement("label", {
|
|
313
313
|
"data-testid": "switcher",
|
|
314
|
-
className: makeClassName([[styles$
|
|
315
|
-
},
|
|
316
|
-
className: makeClassName([[styles$
|
|
317
|
-
},
|
|
318
|
-
className: styles$
|
|
314
|
+
className: makeClassName([[styles$H.root, true], [styles$H[theme], !!styles$H[theme]], [styles$H[styleContext], !!styles$H[styleContext]]])
|
|
315
|
+
}, childrenLeft && ( /*#__PURE__*/React.createElement("div", {
|
|
316
|
+
className: makeClassName([[styles$H.children, true], [styles$H.left, true]])
|
|
317
|
+
}, childrenLeft)), /*#__PURE__*/React.createElement("input", {
|
|
318
|
+
className: styles$H.input,
|
|
319
319
|
type: "checkbox",
|
|
320
320
|
checked: enabled,
|
|
321
321
|
onChange: onChange
|
|
322
322
|
}), /*#__PURE__*/React.createElement("span", {
|
|
323
|
-
className: styles$
|
|
323
|
+
className: styles$H.control
|
|
324
324
|
}, /*#__PURE__*/React.createElement("span", {
|
|
325
|
-
className: styles$
|
|
326
|
-
})),
|
|
327
|
-
className: makeClassName([[styles$
|
|
328
|
-
},
|
|
325
|
+
className: styles$H.knob
|
|
326
|
+
})), childrenRight && ( /*#__PURE__*/React.createElement("div", {
|
|
327
|
+
className: makeClassName([[styles$H.children, true], [styles$H.right, true]])
|
|
328
|
+
}, childrenRight))));
|
|
329
329
|
|
|
330
330
|
const makeStyleContext = (classNames, styleContext, styles) => {
|
|
331
331
|
const context = Array.isArray(styleContext) ? styleContext.filter(ctx => styles[ctx]).map(ctx => [[styles[ctx]], true]) : [[styles[styleContext], !!styleContext && !!styles[styleContext]]];
|
|
@@ -350,7 +350,7 @@ const postMessage = (category, element, action) => {
|
|
|
350
350
|
}
|
|
351
351
|
};
|
|
352
352
|
|
|
353
|
-
var styles$
|
|
353
|
+
var styles$G = {"root":"Lazy-module_root__DWw8D"};
|
|
354
354
|
|
|
355
355
|
const Lazy = ({
|
|
356
356
|
children,
|
|
@@ -371,7 +371,7 @@ const Lazy = ({
|
|
|
371
371
|
}
|
|
372
372
|
}, [inView]);
|
|
373
373
|
return /*#__PURE__*/React.createElement("div", {
|
|
374
|
-
className: makeClassName([[styles$
|
|
374
|
+
className: makeClassName([[styles$G.root, true], [styles$G.visible, visible]]),
|
|
375
375
|
ref: ref,
|
|
376
376
|
"data-testid": "lazy"
|
|
377
377
|
}, visible && children);
|
|
@@ -464,7 +464,7 @@ const RenderPicture = ({
|
|
|
464
464
|
}));
|
|
465
465
|
};
|
|
466
466
|
|
|
467
|
-
var styles$
|
|
467
|
+
var styles$F = {"root":"Image-module_root__H5wAh","isStatic":"Image-module_isStatic__TmQ1V","isLoaded":"Image-module_isLoaded__keFnD","wrapper":"Image-module_wrapper__gJtbB","fullscreen":"Image-module_fullscreen__4PU9c","dark":"Image-module_dark__qjo5O"};
|
|
468
468
|
|
|
469
469
|
const Image = ({
|
|
470
470
|
alt,
|
|
@@ -493,20 +493,20 @@ const Image = ({
|
|
|
493
493
|
maxWidth: width <= 649 ? width : '100%'
|
|
494
494
|
};
|
|
495
495
|
const pictureStyles = {
|
|
496
|
-
paddingBottom:
|
|
496
|
+
paddingBottom: `${100 / (ratio || width / height)}%`
|
|
497
497
|
};
|
|
498
498
|
/* fallback w325 url until w6 was released */
|
|
499
499
|
const fallbackSource = source && source[0] || optimized.w325 && optimized.w325['1x'] || optimized.original;
|
|
500
|
-
let classNames = [[styles$
|
|
500
|
+
let classNames = [[styles$F.root, true], [styles$F.isLoaded, isLoaded], [styles$F.fullscreen, lightBox && optimized && optimized.original && fullscreen]];
|
|
501
501
|
if (styleContext) {
|
|
502
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
502
|
+
classNames = makeStyleContext(classNames, styleContext, styles$F);
|
|
503
503
|
}
|
|
504
504
|
return /*#__PURE__*/React.createElement("div", {
|
|
505
505
|
className: makeClassName(classNames),
|
|
506
506
|
style: blockStyles,
|
|
507
507
|
"data-testid": "image"
|
|
508
508
|
}, /*#__PURE__*/React.createElement("div", {
|
|
509
|
-
className: styles$
|
|
509
|
+
className: styles$F.wrapper,
|
|
510
510
|
style: pictureStyles,
|
|
511
511
|
onClick: () => handleClick(),
|
|
512
512
|
onKeyPress: () => handleClick(),
|
|
@@ -534,7 +534,7 @@ const Image = ({
|
|
|
534
534
|
}))));
|
|
535
535
|
};
|
|
536
536
|
|
|
537
|
-
var styles$
|
|
537
|
+
var styles$E = {"root":"Popover-module_root__nBiV4","fadeOut":"Popover-module_fadeOut__Y88V7","visible":"Popover-module_visible__XVQLW","fadeIn":"Popover-module_fadeIn__FK1gd","overlay":"Popover-module_overlay__NAPar","container":"Popover-module_container__y4SB1","disappear":"Popover-module_disappear__uUn2b","dismiss":"Popover-module_dismiss__W8KFF","background":"Popover-module_background__apiio","appear":"Popover-module_appear__b-CZ2","body":"Popover-module_body__UJEZf"};
|
|
538
538
|
|
|
539
539
|
const Popover = ({
|
|
540
540
|
children,
|
|
@@ -566,20 +566,20 @@ const Popover = ({
|
|
|
566
566
|
/* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */
|
|
567
567
|
return /*#__PURE__*/React.createElement("div", {
|
|
568
568
|
"data-testid": "popover",
|
|
569
|
-
className: makeClassName([[styles$
|
|
569
|
+
className: makeClassName([[styles$E.root, true], [styles$E.visible, visible]])
|
|
570
570
|
}, /*#__PURE__*/React.createElement("div", {
|
|
571
|
-
className: styles$
|
|
571
|
+
className: styles$E.overlay,
|
|
572
572
|
onClick: () => handleClose()
|
|
573
573
|
}), /*#__PURE__*/React.createElement("div", {
|
|
574
|
-
className: styles$
|
|
574
|
+
className: styles$E.container
|
|
575
575
|
}, /*#__PURE__*/React.createElement("button", {
|
|
576
576
|
type: "button",
|
|
577
|
-
className: styles$
|
|
577
|
+
className: styles$E.dismiss,
|
|
578
578
|
onClick: () => handleClose(),
|
|
579
579
|
"aria-label": "dismiss"
|
|
580
580
|
}), /*#__PURE__*/React.createElement("svg", {
|
|
581
581
|
width: "100%",
|
|
582
|
-
className: styles$
|
|
582
|
+
className: styles$E.background
|
|
583
583
|
}, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("mask", {
|
|
584
584
|
id: "myMask",
|
|
585
585
|
x: "0",
|
|
@@ -608,11 +608,11 @@ const Popover = ({
|
|
|
608
608
|
width: "100%",
|
|
609
609
|
height: "100%"
|
|
610
610
|
})), /*#__PURE__*/React.createElement("div", {
|
|
611
|
-
className: styles$
|
|
611
|
+
className: styles$E.body
|
|
612
612
|
}, children)));
|
|
613
613
|
};
|
|
614
614
|
|
|
615
|
-
var styles$
|
|
615
|
+
var styles$D = {"root":"Footnote-module_root__W5D8G","body":"Footnote-module_body__C-ZC-","dismiss":"Footnote-module_dismiss__Q2hAX"};
|
|
616
616
|
|
|
617
617
|
const Footnote = ({
|
|
618
618
|
children,
|
|
@@ -620,16 +620,16 @@ const Footnote = ({
|
|
|
620
620
|
}) => {
|
|
621
621
|
return /*#__PURE__*/React.createElement("div", {
|
|
622
622
|
"data-testid": "footnote",
|
|
623
|
-
className: makeClassName([[styles$
|
|
623
|
+
className: makeClassName([[styles$D.root, true]])
|
|
624
624
|
}, /*#__PURE__*/React.createElement("button", {
|
|
625
|
-
className: styles$
|
|
625
|
+
className: styles$D.dismiss,
|
|
626
626
|
type: "button",
|
|
627
627
|
onClick: () => onClose()
|
|
628
628
|
}, /*#__PURE__*/React.createElement(SvgSymbol, {
|
|
629
629
|
icon: "cross",
|
|
630
630
|
size: "unset"
|
|
631
631
|
})), /*#__PURE__*/React.createElement("div", {
|
|
632
|
-
className: styles$
|
|
632
|
+
className: styles$D.body
|
|
633
633
|
}, children));
|
|
634
634
|
};
|
|
635
635
|
|
|
@@ -638,7 +638,7 @@ var viewportSize = () => ({
|
|
|
638
638
|
height: window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
|
|
639
639
|
});
|
|
640
640
|
|
|
641
|
-
var styles$
|
|
641
|
+
var styles$C = {"root":"DotsOnImage-module_root__8UQf2","isVisible":"DotsOnImage-module_isVisible__rA5x9","marker":"DotsOnImage-module_marker__pLdQT","show":"DotsOnImage-module_show__Ec0lG","dot":"DotsOnImage-module_dot__e2MWx","isActive":"DotsOnImage-module_isActive__Bhb58","popover":"DotsOnImage-module_popover__zHSbU","isRight":"DotsOnImage-module_isRight__IaUbc","isTop":"DotsOnImage-module_isTop__RMK49","isLeft":"DotsOnImage-module_isLeft__Q6JZ-","isBottom":"DotsOnImage-module_isBottom__c-aLe"};
|
|
642
642
|
|
|
643
643
|
const DotsOnImage = ({
|
|
644
644
|
block: {
|
|
@@ -720,7 +720,7 @@ const DotsOnImage = ({
|
|
|
720
720
|
});
|
|
721
721
|
};
|
|
722
722
|
return /*#__PURE__*/React.createElement("div", {
|
|
723
|
-
className: makeClassName([[styles$
|
|
723
|
+
className: makeClassName([[styles$C.root, true], [styles$C.isVisible, visible]]),
|
|
724
724
|
"data-testid": "dots-on-image",
|
|
725
725
|
ref: ref
|
|
726
726
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
@@ -733,7 +733,7 @@ const DotsOnImage = ({
|
|
|
733
733
|
}), /*#__PURE__*/React.createElement("div", {
|
|
734
734
|
ref: container
|
|
735
735
|
}, dots.map(dot => ( /*#__PURE__*/React.createElement("div", {
|
|
736
|
-
className: styles$
|
|
736
|
+
className: styles$C.dot,
|
|
737
737
|
key: dot.id,
|
|
738
738
|
style: {
|
|
739
739
|
top: `${dot.position.y}%`,
|
|
@@ -741,7 +741,7 @@ const DotsOnImage = ({
|
|
|
741
741
|
transform: `scale(${ratio}) translate(-${50 / ratio}%, -${50 / ratio}%)`
|
|
742
742
|
}
|
|
743
743
|
}, /*#__PURE__*/React.createElement("button", {
|
|
744
|
-
className: makeClassName([[styles$
|
|
744
|
+
className: makeClassName([[styles$C.marker, true], [styles$C.isActive, dot.id === popover.id]]),
|
|
745
745
|
type: "button",
|
|
746
746
|
style: {
|
|
747
747
|
backgroundColor: dot.icon.color
|
|
@@ -752,7 +752,7 @@ const DotsOnImage = ({
|
|
|
752
752
|
__html: dot.icon.svg_string
|
|
753
753
|
}
|
|
754
754
|
})), dot.icon.type === 'number' && dot.icon.number)))), popover.show && ( /*#__PURE__*/React.createElement(React.Fragment, null, viewportSize().width >= MediaQuerySizes.LANDSCAPE_TABLET ? ( /*#__PURE__*/React.createElement("div", {
|
|
755
|
-
className: makeClassName([[styles$
|
|
755
|
+
className: makeClassName([[styles$C.popover, true], [styles$C[popover.side], !!popover.side], [styles$C[popover.align], !!popover.align]]),
|
|
756
756
|
style: popover.style
|
|
757
757
|
}, /*#__PURE__*/React.createElement(Footnote, {
|
|
758
758
|
onClose: () => {
|
|
@@ -777,7 +777,7 @@ const DotsOnImage = ({
|
|
|
777
777
|
})))))));
|
|
778
778
|
};
|
|
779
779
|
|
|
780
|
-
var styles$
|
|
780
|
+
var styles$B = {"root":"Tag-module_root__sGbnM","small":"Tag-module_small__hcPrf","large":"Tag-module_large__EKMu6","dark":"Tag-module_dark__9SHCb","light":"Tag-module_light__qlfy3","gold":"Tag-module_gold__u0bzS","gray":"Tag-module_gray__eazPk","inherit":"Tag-module_inherit__z21c-","is1to1":"Tag-module_is1to1__V-fH5","is1to2":"Tag-module_is1to2__b9Obh","isInSuperBlock":"Tag-module_isInSuperBlock__wrFUY","is1to3":"Tag-module_is1to3__vZT-R","is1to4":"Tag-module_is1to4__MBh5V","slide":"Tag-module_slide__gzptP","game":"Tag-module_game__NmKec","podcastMaterial":"Tag-module_podcastMaterial__O-LBI","richRelated":"Tag-module_richRelated__Qs6Ei","isInBookRelated":"Tag-module_isInBookRelated__ikTaj","card":"Tag-module_card__TX87-","live":"Tag-module_live__ykyR7","episode":"Tag-module_episode__3OHmN","podcast":"Tag-module_podcast__K6dHn","rich":"Tag-module_rich__vPnWd","isInDynamicBlock":"Tag-module_isInDynamicBlock__WNleF","isInPodcastPlayer":"Tag-module_isInPodcastPlayer__H4sK9","mobile":"Tag-module_mobile__19oMH","desktop":"Tag-module_desktop__cNyQs"};
|
|
781
781
|
|
|
782
782
|
const Tag = ({
|
|
783
783
|
children,
|
|
@@ -787,9 +787,9 @@ const Tag = ({
|
|
|
787
787
|
correlation,
|
|
788
788
|
onlyOn
|
|
789
789
|
}) => {
|
|
790
|
-
let classNames = [[styles$
|
|
790
|
+
let classNames = [[styles$B.root, true], [styles$B[size], !!size && !!styles$B[size]], [styles$B[theme], !!theme && !!styles$B[theme]], [styles$B[onlyOn], !!onlyOn && !!styles$B[onlyOn]], [styles$B[correlation], !!correlation && !!styles$B[correlation]]];
|
|
791
791
|
if (styleContext) {
|
|
792
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
792
|
+
classNames = makeStyleContext(classNames, styleContext, styles$B);
|
|
793
793
|
}
|
|
794
794
|
return /*#__PURE__*/React.createElement("div", {
|
|
795
795
|
"data-testid": "tag",
|
|
@@ -797,34 +797,34 @@ const Tag = ({
|
|
|
797
797
|
}, children);
|
|
798
798
|
};
|
|
799
799
|
|
|
800
|
-
var styles$
|
|
800
|
+
var styles$A = {"root":"MediaCaption-module_root__1r0wu","caption":"MediaCaption-module_caption__ewfcc","credit":"MediaCaption-module_credit__7y4v8","dark":"MediaCaption-module_dark__7a9Cm","video":"MediaCaption-module_video__RDTUa","picture":"MediaCaption-module_picture__abCvw","desktop":"MediaCaption-module_desktop__e0lCY","isDark":"MediaCaption-module_isDark__IFb9X"};
|
|
801
801
|
|
|
802
802
|
const MediaCaption = ({
|
|
803
803
|
credit,
|
|
804
804
|
caption,
|
|
805
805
|
styleContext
|
|
806
806
|
}) => {
|
|
807
|
-
let classNames = [[styles$
|
|
807
|
+
let classNames = [[styles$A.root, true]];
|
|
808
808
|
if (styleContext) {
|
|
809
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
809
|
+
classNames = makeStyleContext(classNames, styleContext, styles$A);
|
|
810
810
|
}
|
|
811
811
|
return /*#__PURE__*/React.createElement("div", {
|
|
812
812
|
"data-testid": "media-caption",
|
|
813
813
|
className: makeClassName(classNames)
|
|
814
814
|
}, caption && ( /*#__PURE__*/React.createElement("div", {
|
|
815
|
-
className: styles$
|
|
815
|
+
className: styles$A.caption,
|
|
816
816
|
dangerouslySetInnerHTML: {
|
|
817
817
|
__html: caption
|
|
818
818
|
}
|
|
819
819
|
})), credit && ( /*#__PURE__*/React.createElement("div", {
|
|
820
|
-
className: styles$
|
|
820
|
+
className: styles$A.credit,
|
|
821
821
|
dangerouslySetInnerHTML: {
|
|
822
822
|
__html: credit
|
|
823
823
|
}
|
|
824
824
|
})));
|
|
825
825
|
};
|
|
826
826
|
|
|
827
|
-
var styles$
|
|
827
|
+
var styles$z = {"root":"Table-module_root__fRuZq","card":"Table-module_card__8r-EA","table":"Table-module_table__7Pagp","slide":"Table-module_slide__dgMPV","wrapper":"Table-module_wrapper__AP4Pz","tracks":"Table-module_tracks__mRNG0","default":"Table-module_default__nwBEg","full":"Table-module_full__YZPDz","row":"Table-module_row__9OHT3","cell":"Table-module_cell__yFdqc","fixedColumn":"Table-module_fixedColumn__O2528","white":"Table-module_white__Laj3-","gray":"Table-module_gray__FPFh0","pink":"Table-module_pink__CGkAA","blue":"Table-module_blue__b8BHs","yellow":"Table-module_yellow__YOJgu","orange":"Table-module_orange__B-i8L","green":"Table-module_green__Bt6iC","violet":"Table-module_violet__yTZd7","header":"Table-module_header__YPDzO","s":"Table-module_s__I-CeX","m":"Table-module_m__vxhDf","l":"Table-module_l__GYHhk","xs":"Table-module_xs__imR8t"};
|
|
828
828
|
|
|
829
829
|
const Table = ({
|
|
830
830
|
styleContext,
|
|
@@ -846,26 +846,26 @@ const Table = ({
|
|
|
846
846
|
'#e7f2ef': 'green',
|
|
847
847
|
'#f4f0f8': 'violet'
|
|
848
848
|
};
|
|
849
|
-
let classNames = [[styles$
|
|
849
|
+
let classNames = [[styles$z.root, true], [styles$z[display], !!display && !!styles$z[display]]];
|
|
850
850
|
if (styleContext) {
|
|
851
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
851
|
+
classNames = makeStyleContext(classNames, styleContext, styles$z);
|
|
852
852
|
}
|
|
853
853
|
return /*#__PURE__*/React.createElement("div", {
|
|
854
854
|
"data-testid": "table",
|
|
855
855
|
className: makeClassName(classNames)
|
|
856
856
|
}, /*#__PURE__*/React.createElement("div", {
|
|
857
|
-
className: styles$
|
|
857
|
+
className: styles$z.wrapper
|
|
858
858
|
}, /*#__PURE__*/React.createElement("div", {
|
|
859
|
-
className: styles$
|
|
859
|
+
className: styles$z.table
|
|
860
860
|
}, /*#__PURE__*/React.createElement("div", {
|
|
861
|
-
className: styles$
|
|
861
|
+
className: styles$z.tracks
|
|
862
862
|
}, rows.map((row, i) => {
|
|
863
863
|
return /*#__PURE__*/React.createElement("div", {
|
|
864
864
|
key: row.key,
|
|
865
|
-
className: styles$
|
|
865
|
+
className: styles$z.row
|
|
866
866
|
}, row.cells.map((cell, j) => ( /*#__PURE__*/React.createElement("div", {
|
|
867
867
|
key: cell.key,
|
|
868
|
-
className: makeClassName([[styles$
|
|
868
|
+
className: makeClassName([[styles$z.cell, true], [styles$z.header, options.header && i === 0], [styles$z[colors[cell.color]], true], [styles$z[columnsWidth[j]], true], [styles$z.fixedColumn, options.fixed_first_column && j === 0]]),
|
|
869
869
|
dangerouslySetInnerHTML: {
|
|
870
870
|
__html: cell.val
|
|
871
871
|
}
|
|
@@ -876,7 +876,7 @@ const Table = ({
|
|
|
876
876
|
})));
|
|
877
877
|
};
|
|
878
878
|
|
|
879
|
-
var styles$
|
|
879
|
+
var styles$y = {"root":"MaterialNote-module_root__99HSA","dark":"MaterialNote-module_dark__etjym","note_credit":"MaterialNote-module_note_credit__J1skG","note_caption":"MaterialNote-module_note_caption__G2Ad0","center":"MaterialNote-module_center__mDLEO","default":"MaterialNote-module_default__ozgd7","card":"MaterialNote-module_card__EVuZe","slide":"MaterialNote-module_slide__mg8XV","game":"MaterialNote-module_game__c-r0n","gameSurvey":"MaterialNote-module_gameSurvey__azhu6"};
|
|
880
880
|
|
|
881
881
|
const MaterialNote = ({
|
|
882
882
|
block: {
|
|
@@ -884,15 +884,15 @@ const MaterialNote = ({
|
|
|
884
884
|
},
|
|
885
885
|
styleContext
|
|
886
886
|
}) => {
|
|
887
|
-
let classNames = [[styles$
|
|
887
|
+
let classNames = [[styles$y.root, true]];
|
|
888
888
|
if (styleContext) {
|
|
889
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
889
|
+
classNames = makeStyleContext(classNames, styleContext, styles$y);
|
|
890
890
|
}
|
|
891
891
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
892
892
|
"data-testid": "material-note",
|
|
893
893
|
className: makeClassName(classNames)
|
|
894
894
|
}, data && data.map(item => ( /*#__PURE__*/React.createElement("p", {
|
|
895
|
-
className: styles$
|
|
895
|
+
className: styles$y[item.type],
|
|
896
896
|
key: item.id,
|
|
897
897
|
dangerouslySetInnerHTML: {
|
|
898
898
|
__html: item.data
|
|
@@ -900,7 +900,7 @@ const MaterialNote = ({
|
|
|
900
900
|
})))));
|
|
901
901
|
};
|
|
902
902
|
|
|
903
|
-
var styles$
|
|
903
|
+
var styles$x = {"root":"BookmarkButton-module_root__A-75w","control":"BookmarkButton-module_control__-xy5O","dark":"BookmarkButton-module_dark__GkMEC","light":"BookmarkButton-module_light__1W6tx","isInBookmarks":"BookmarkButton-module_isInBookmarks__YSjjj","isInGrid":"BookmarkButton-module_isInGrid__Desh-"};
|
|
904
904
|
|
|
905
905
|
const BookmarkButton = ({
|
|
906
906
|
styleContext,
|
|
@@ -908,15 +908,15 @@ const BookmarkButton = ({
|
|
|
908
908
|
isInBookmarks,
|
|
909
909
|
onClick
|
|
910
910
|
}) => {
|
|
911
|
-
let classNames = [[styles$
|
|
911
|
+
let classNames = [[styles$x.root, true], [styles$x.isInBookmarks, isInBookmarks], [styles$x[theme], !!theme && !!styles$x[theme]]];
|
|
912
912
|
if (styleContext) {
|
|
913
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
913
|
+
classNames = makeStyleContext(classNames, styleContext, styles$x);
|
|
914
914
|
}
|
|
915
915
|
return /*#__PURE__*/React.createElement("div", {
|
|
916
916
|
"data-testid": "bookmark-button",
|
|
917
917
|
className: makeClassName(classNames)
|
|
918
918
|
}, /*#__PURE__*/React.createElement("button", {
|
|
919
|
-
className: styles$
|
|
919
|
+
className: styles$x.control,
|
|
920
920
|
onClick: () => onClick(),
|
|
921
921
|
type: "button"
|
|
922
922
|
}, /*#__PURE__*/React.createElement(SvgSymbol, {
|
|
@@ -925,39 +925,39 @@ const BookmarkButton = ({
|
|
|
925
925
|
})));
|
|
926
926
|
};
|
|
927
927
|
|
|
928
|
-
var styles$
|
|
928
|
+
var styles$w = {"root":"MaterialTitle-module_root__VSphO","primary":"MaterialTitle-module_primary__XGnpb","secondary":"MaterialTitle-module_secondary__7IDEp"};
|
|
929
929
|
|
|
930
930
|
const Primary = ({
|
|
931
931
|
children
|
|
932
932
|
}) => {
|
|
933
933
|
return /*#__PURE__*/React.createElement("span", {
|
|
934
|
-
className: styles$
|
|
934
|
+
className: styles$w.primary
|
|
935
935
|
}, children);
|
|
936
936
|
};
|
|
937
937
|
const Secondary = ({
|
|
938
938
|
children
|
|
939
939
|
}) => {
|
|
940
940
|
return /*#__PURE__*/React.createElement("span", {
|
|
941
|
-
className: styles$
|
|
941
|
+
className: styles$w.secondary
|
|
942
942
|
}, children);
|
|
943
943
|
};
|
|
944
944
|
const MaterialTitle = ({
|
|
945
945
|
children
|
|
946
946
|
}) => {
|
|
947
947
|
return /*#__PURE__*/React.createElement("h1", {
|
|
948
|
-
className: styles$
|
|
948
|
+
className: styles$w.root,
|
|
949
949
|
"data-testid": "material-title"
|
|
950
950
|
}, children);
|
|
951
951
|
};
|
|
952
952
|
|
|
953
|
-
var styles$
|
|
953
|
+
var styles$v = {"root":"Dropdown-module_root__Wv7S-","menu":"Dropdown-module_menu__11IQL","inactive":"Dropdown-module_inactive__E5CP6","isInAudioPanel":"Dropdown-module_isInAudioPanel__UniSV"};
|
|
954
954
|
|
|
955
955
|
const Menu = ({
|
|
956
956
|
children
|
|
957
957
|
}) => {
|
|
958
958
|
return /*#__PURE__*/React.createElement("div", {
|
|
959
959
|
"data-testid": "dropdown",
|
|
960
|
-
className: styles$
|
|
960
|
+
className: styles$v.menu
|
|
961
961
|
}, children);
|
|
962
962
|
};
|
|
963
963
|
const Dropdown = ({
|
|
@@ -965,9 +965,9 @@ const Dropdown = ({
|
|
|
965
965
|
active,
|
|
966
966
|
styleContext
|
|
967
967
|
}) => {
|
|
968
|
-
let classNames = [[styles$
|
|
968
|
+
let classNames = [[styles$v.root, true], [styles$v.inactive, !active && styleContext === 'isPodcastSeason' && !!styles$v.inactive]];
|
|
969
969
|
if (styleContext) {
|
|
970
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
970
|
+
classNames = makeStyleContext(classNames, styleContext, styles$v);
|
|
971
971
|
}
|
|
972
972
|
return /*#__PURE__*/React.createElement("div", {
|
|
973
973
|
"data-testid": "dropdown",
|
|
@@ -975,13 +975,13 @@ const Dropdown = ({
|
|
|
975
975
|
}, children);
|
|
976
976
|
};
|
|
977
977
|
|
|
978
|
-
var styles$
|
|
978
|
+
var styles$u = {"root":"Toolbar-module_root__RnmlI","list":"Toolbar-module_list__-IhdP","item":"Toolbar-module_item__CWmGM","isInTopbar":"Toolbar-module_isInTopbar__WEDi8","center":"Toolbar-module_center__pvdiJ","game":"Toolbar-module_game__etwIA","gameSurvey":"Toolbar-module_gameSurvey__v4D31","slide":"Toolbar-module_slide__PtB3l","card":"Toolbar-module_card__Lutyq","isDark":"Toolbar-module_isDark__MG6Ar","dark":"Toolbar-module_dark__a9sgz"};
|
|
979
979
|
|
|
980
980
|
const ToolbarItem = ({
|
|
981
981
|
children
|
|
982
982
|
}) => {
|
|
983
983
|
return /*#__PURE__*/React.createElement("li", {
|
|
984
|
-
className: styles$
|
|
984
|
+
className: styles$u.item
|
|
985
985
|
}, children);
|
|
986
986
|
};
|
|
987
987
|
|
|
@@ -989,19 +989,19 @@ const Toolbar = ({
|
|
|
989
989
|
children,
|
|
990
990
|
styleContext
|
|
991
991
|
}) => {
|
|
992
|
-
let classNames = [[styles$
|
|
992
|
+
let classNames = [[styles$u.root, true]];
|
|
993
993
|
if (styleContext) {
|
|
994
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
994
|
+
classNames = makeStyleContext(classNames, styleContext, styles$u);
|
|
995
995
|
}
|
|
996
996
|
return /*#__PURE__*/React.createElement("div", {
|
|
997
997
|
"data-testid": "toolbar",
|
|
998
998
|
className: makeClassName(classNames)
|
|
999
999
|
}, /*#__PURE__*/React.createElement("ul", {
|
|
1000
|
-
className: styles$
|
|
1000
|
+
className: styles$u.list
|
|
1001
1001
|
}, children));
|
|
1002
1002
|
};
|
|
1003
1003
|
|
|
1004
|
-
var styles$
|
|
1004
|
+
var styles$t = {"root":"Meta-module_root__H-Q4d","rich":"Meta-module_rich__dCkJK","podcast":"Meta-module_podcast__MI8gD","episode":"Meta-module_episode__0n9CF","simple":"Meta-module_simple__tztcr","slide":"Meta-module_slide__3OyIN","card":"Meta-module_card__2vqfN","game":"Meta-module_game__HNcgr","isInMaterial":"Meta-module_isInMaterial__vKcTK","isInSearchItem":"Meta-module_isInSearchItem__ENqHo","isInMediaBlock":"Meta-module_isInMediaBlock__TENZG","center":"Meta-module_center__seHro","half":"Meta-module_half__aoa9h","podcastMaterial":"Meta-module_podcastMaterial__GTPyD","light":"Meta-module_light__oW3kc","dark":"Meta-module_dark__tLQNJ","isDark":"Meta-module_isDark__xSl1J","hasSource":"Meta-module_hasSource__OZJ0y","bookmark":"Meta-module_bookmark__jcFWn","isInBookRelated":"Meta-module_isInBookRelated__Ohidg","mobile":"Meta-module_mobile__PbG8N","desktop":"Meta-module_desktop__W5AB7"};
|
|
1005
1005
|
|
|
1006
1006
|
const Meta = ({
|
|
1007
1007
|
hasSource,
|
|
@@ -1010,9 +1010,9 @@ const Meta = ({
|
|
|
1010
1010
|
onlyOn,
|
|
1011
1011
|
styleContext
|
|
1012
1012
|
}) => {
|
|
1013
|
-
let classNames = [[styles$
|
|
1013
|
+
let classNames = [[styles$t.root, true], [styles$t[theme], !!theme && !!styles$t[theme]], [styles$t[onlyOn], !!onlyOn], [styles$t.hasSource, hasSource]];
|
|
1014
1014
|
if (styleContext) {
|
|
1015
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1015
|
+
classNames = makeStyleContext(classNames, styleContext, styles$t);
|
|
1016
1016
|
}
|
|
1017
1017
|
return /*#__PURE__*/React.createElement("div", {
|
|
1018
1018
|
"data-testid": "meta",
|
|
@@ -1020,7 +1020,7 @@ const Meta = ({
|
|
|
1020
1020
|
}, children);
|
|
1021
1021
|
};
|
|
1022
1022
|
|
|
1023
|
-
var styles$
|
|
1023
|
+
var styles$s = {"root":"Timestamp-module_root__jPJ6w"};
|
|
1024
1024
|
|
|
1025
1025
|
const Timestamp = ({
|
|
1026
1026
|
publishedAt,
|
|
@@ -1044,7 +1044,7 @@ const Timestamp = ({
|
|
|
1044
1044
|
return /*#__PURE__*/React.createElement("time", {
|
|
1045
1045
|
suppressHydrationWarning: true,
|
|
1046
1046
|
"data-testid": "timestamp",
|
|
1047
|
-
className: styles$
|
|
1047
|
+
className: styles$s.root
|
|
1048
1048
|
}, published);
|
|
1049
1049
|
};
|
|
1050
1050
|
|
|
@@ -1104,7 +1104,7 @@ const DangerousHTML = ({
|
|
|
1104
1104
|
}));
|
|
1105
1105
|
};
|
|
1106
1106
|
|
|
1107
|
-
var styles$
|
|
1107
|
+
var styles$r = {"root":"EmbedBlock-module_root__wNZlD","object":"EmbedBlock-module_object__DONQ0","objectWrap":"EmbedBlock-module_objectWrap__qpbni","gameEmbed":"EmbedBlock-module_gameEmbed__tO5Ha","proportional":"EmbedBlock-module_proportional__zDPfm","default":"EmbedBlock-module_default__np8MO","xs":"EmbedBlock-module_xs__PNHGz","full":"EmbedBlock-module_full__Gmz7o","super_full":"EmbedBlock-module_super_full__-h382","figure":"EmbedBlock-module_figure__fNZB-","dark":"EmbedBlock-module_dark__S2R9f","isInGroupedBlock":"EmbedBlock-module_isInGroupedBlock__Wjj7k","control":"EmbedBlock-module_control__9bJUa","raw_html":"EmbedBlock-module_raw_html__EfYVy","mobileFullwidth":"EmbedBlock-module_mobileFullwidth__1MDT5","isInCard":"EmbedBlock-module_isInCard__WnLHG","isInSlide":"EmbedBlock-module_isInSlide__BtdnY","cc":"EmbedBlock-module_cc__Gyw44","isInSensitiveBlock":"EmbedBlock-module_isInSensitiveBlock__nYajZ","isInAnswer":"EmbedBlock-module_isInAnswer__WuZ0H","picture":"EmbedBlock-module_picture__Weamy","wrapper":"EmbedBlock-module_wrapper__ynT7R","isProportional":"EmbedBlock-module_isProportional__x8-8g","mobile":"EmbedBlock-module_mobile__lEuww","desktop":"EmbedBlock-module_desktop__599S7"};
|
|
1108
1108
|
|
|
1109
1109
|
const EmbedGif = ({
|
|
1110
1110
|
gif,
|
|
@@ -1142,9 +1142,9 @@ const EmbedGif = ({
|
|
|
1142
1142
|
};
|
|
1143
1143
|
}, []);
|
|
1144
1144
|
return /*#__PURE__*/React.createElement("div", {
|
|
1145
|
-
className: styles$
|
|
1145
|
+
className: styles$r.figure
|
|
1146
1146
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1147
|
-
className: styles$
|
|
1147
|
+
className: styles$r.objectWrap,
|
|
1148
1148
|
style: style,
|
|
1149
1149
|
"data-frozen": videoFrozen
|
|
1150
1150
|
}, /*#__PURE__*/React.createElement("video", {
|
|
@@ -1204,7 +1204,7 @@ const EmbedBlock = ({
|
|
|
1204
1204
|
case 'image':
|
|
1205
1205
|
{
|
|
1206
1206
|
return /*#__PURE__*/React.createElement("div", {
|
|
1207
|
-
className: styles$
|
|
1207
|
+
className: styles$r.figure
|
|
1208
1208
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
1209
1209
|
source: !optimized && [small, large],
|
|
1210
1210
|
optimized: block.data.optimized,
|
|
@@ -1219,7 +1219,7 @@ const EmbedBlock = ({
|
|
|
1219
1219
|
case 'game_embed':
|
|
1220
1220
|
{
|
|
1221
1221
|
return /*#__PURE__*/React.createElement("div", {
|
|
1222
|
-
className: styles$
|
|
1222
|
+
className: styles$r.gameEmbed
|
|
1223
1223
|
}, /*#__PURE__*/React.createElement("iframe", {
|
|
1224
1224
|
src: block.data.game_src,
|
|
1225
1225
|
id: block.data.game_id,
|
|
@@ -1229,7 +1229,7 @@ const EmbedBlock = ({
|
|
|
1229
1229
|
case 'dots_on_image':
|
|
1230
1230
|
{
|
|
1231
1231
|
return /*#__PURE__*/React.createElement("div", {
|
|
1232
|
-
className: styles$
|
|
1232
|
+
className: styles$r.figure
|
|
1233
1233
|
}, /*#__PURE__*/React.createElement(DotsOnImage, {
|
|
1234
1234
|
block: data
|
|
1235
1235
|
}));
|
|
@@ -1237,43 +1237,42 @@ const EmbedBlock = ({
|
|
|
1237
1237
|
default:
|
|
1238
1238
|
{
|
|
1239
1239
|
return /*#__PURE__*/React.createElement("div", {
|
|
1240
|
-
className: styles$
|
|
1240
|
+
className: styles$r.object
|
|
1241
1241
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1242
|
-
className: styles$
|
|
1242
|
+
className: makeClassName([[styles$r.wrapper, true], [styles$r.isProportional, isProportional]]),
|
|
1243
1243
|
style: style
|
|
1244
1244
|
}, /*#__PURE__*/React.createElement(DangerousHTML, {
|
|
1245
|
-
className: styles$
|
|
1245
|
+
className: styles$r.objectWrap,
|
|
1246
1246
|
html: html
|
|
1247
1247
|
})));
|
|
1248
1248
|
}
|
|
1249
1249
|
}
|
|
1250
1250
|
};
|
|
1251
1251
|
if (isProportional) {
|
|
1252
|
-
style.
|
|
1253
|
-
style.height = 0;
|
|
1252
|
+
style.aspectRatio = `${block.data.width} / ${block.data.height}`;
|
|
1254
1253
|
}
|
|
1255
|
-
let classNames = [[styles$
|
|
1254
|
+
let classNames = [[styles$r.root, true], [styles$r.cc, cc], [styles$r[display], !!display && styles$r[display]], [styles$r[provider], !!provider && !!styles$r[provider]], [styles$r[onlyOn], !!onlyOn && styles$r[onlyOn]], [styles$r.mobileFullwidth, mobileFullwidth], [styles$r.proportional, isProportional]];
|
|
1256
1255
|
// Убираем из контекста все, что не начинается с приставки isIn,
|
|
1257
1256
|
// чтобы не применились лишние модификаторы
|
|
1258
1257
|
// TODO: в w6 модификаторы должны передаваться явно
|
|
1259
1258
|
if (styleContext && Array.isArray(styleContext)) {
|
|
1260
|
-
const filteredContext = styleContext.filter(key => key.startsWith('isIn') && styles$
|
|
1259
|
+
const filteredContext = styleContext.filter(key => key.startsWith('isIn') && styles$r[key]).reduce((acc, key) => {
|
|
1261
1260
|
acc.push(key);
|
|
1262
1261
|
return acc;
|
|
1263
1262
|
}, []);
|
|
1264
|
-
classNames = makeStyleContext(classNames, filteredContext, styles$
|
|
1263
|
+
classNames = makeStyleContext(classNames, filteredContext, styles$r);
|
|
1265
1264
|
}
|
|
1266
1265
|
return /*#__PURE__*/React.createElement("figure", {
|
|
1267
1266
|
className: makeClassName(classNames)
|
|
1268
1267
|
}, children && ( /*#__PURE__*/React.createElement("div", {
|
|
1269
|
-
className: styles$
|
|
1268
|
+
className: styles$r.object
|
|
1270
1269
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1271
|
-
className: styles$
|
|
1270
|
+
className: makeClassName([[styles$r.wrapper, true], [styles$r.isProportional, isProportional]]),
|
|
1272
1271
|
style: style
|
|
1273
1272
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1274
|
-
className: styles$
|
|
1273
|
+
className: styles$r.objectWrap
|
|
1275
1274
|
}, children)))), !children && renderEmbed(style), cc === 'default' && /*#__PURE__*/React.createElement("figcaption", null, renderCC()), cc === 'button' && ( /*#__PURE__*/React.createElement("button", {
|
|
1276
|
-
className: styles$
|
|
1275
|
+
className: styles$r.control,
|
|
1277
1276
|
type: "button",
|
|
1278
1277
|
"aria-label": "Open",
|
|
1279
1278
|
onClick: () => {
|
|
@@ -1376,7 +1375,7 @@ const EmbedBlockContainer = ({
|
|
|
1376
1375
|
});
|
|
1377
1376
|
};
|
|
1378
1377
|
|
|
1379
|
-
var styles$
|
|
1378
|
+
var styles$q = {"root":"QuoteBlock-module_root__4qa1J","center":"QuoteBlock-module_center__1f83y"};
|
|
1380
1379
|
|
|
1381
1380
|
const QuoteBlock = ({
|
|
1382
1381
|
block: {
|
|
@@ -1384,9 +1383,9 @@ const QuoteBlock = ({
|
|
|
1384
1383
|
},
|
|
1385
1384
|
styleContext
|
|
1386
1385
|
}) => {
|
|
1387
|
-
let classNames = [[styles$
|
|
1386
|
+
let classNames = [[styles$q.root, true]];
|
|
1388
1387
|
if (styleContext) {
|
|
1389
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1388
|
+
classNames = makeStyleContext(classNames, styleContext, styles$q);
|
|
1390
1389
|
}
|
|
1391
1390
|
return /*#__PURE__*/React.createElement("div", {
|
|
1392
1391
|
"data-testid": "quote-block",
|
|
@@ -1398,7 +1397,7 @@ const QuoteBlock = ({
|
|
|
1398
1397
|
}));
|
|
1399
1398
|
};
|
|
1400
1399
|
|
|
1401
|
-
var styles$
|
|
1400
|
+
var styles$p = {"root":"CardTitle-module_root__Pvx--","index":"CardTitle-module_index__Keled","title":"CardTitle-module_title__Lkflo","mobile":"CardTitle-module_mobile__6N3hB","desktop":"CardTitle-module_desktop__sBokS"};
|
|
1402
1401
|
|
|
1403
1402
|
const CardTitle = ({
|
|
1404
1403
|
block: {
|
|
@@ -1414,15 +1413,15 @@ const CardTitle = ({
|
|
|
1414
1413
|
return /*#__PURE__*/React.createElement("div", {
|
|
1415
1414
|
"data-testid": "card-title",
|
|
1416
1415
|
id: id,
|
|
1417
|
-
className: makeClassName([[styles$
|
|
1416
|
+
className: makeClassName([[styles$p.root, true], [styles$p[onlyOn], !!onlyOn], [styles$p[styleContext], !!styleContext && !!styles$p[styleContext]]])
|
|
1418
1417
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1419
|
-
className: styles$
|
|
1418
|
+
className: styles$p.index
|
|
1420
1419
|
}, index), /*#__PURE__*/React.createElement("h3", {
|
|
1421
|
-
className: styles$
|
|
1420
|
+
className: styles$p.title
|
|
1422
1421
|
}, text));
|
|
1423
1422
|
};
|
|
1424
1423
|
|
|
1425
|
-
var styles$
|
|
1424
|
+
var styles$o = {"root":"ChapterBlock-module_root__iw7d2","subtitle":"ChapterBlock-module_subtitle__IpWgz","mobile":"ChapterBlock-module_mobile__V1Eye","desktop":"ChapterBlock-module_desktop__9xWf4"};
|
|
1426
1425
|
|
|
1427
1426
|
const ChapterBlock = ({
|
|
1428
1427
|
block: {
|
|
@@ -1435,9 +1434,9 @@ const ChapterBlock = ({
|
|
|
1435
1434
|
return /*#__PURE__*/React.createElement("div", {
|
|
1436
1435
|
"data-testid": "chapter-block",
|
|
1437
1436
|
id: id,
|
|
1438
|
-
className: makeClassName([[styles$
|
|
1437
|
+
className: makeClassName([[styles$o.root, true], [styles$o[onlyOn], !!onlyOn]])
|
|
1439
1438
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1440
|
-
className: makeClassName([[styles$
|
|
1439
|
+
className: makeClassName([[styles$o.subtitle, true], [styles$o[styleContext], !!styleContext && !!styles$o[styleContext]]]),
|
|
1441
1440
|
dangerouslySetInnerHTML: {
|
|
1442
1441
|
__html: data
|
|
1443
1442
|
}
|
|
@@ -1453,7 +1452,7 @@ const generateGradient = (color, type) => {
|
|
|
1453
1452
|
return `linear-gradient(-180deg, ${gradient})`;
|
|
1454
1453
|
};
|
|
1455
1454
|
|
|
1456
|
-
var styles$
|
|
1455
|
+
var styles$n = {"root":"SimpleTitle-module_root__YOzNn","mobile":"SimpleTitle-module_mobile__1QiJd","desktop":"SimpleTitle-module_desktop__ZF5Af"};
|
|
1457
1456
|
|
|
1458
1457
|
const SimpleTitle = ({
|
|
1459
1458
|
block: {
|
|
@@ -1464,9 +1463,9 @@ const SimpleTitle = ({
|
|
|
1464
1463
|
},
|
|
1465
1464
|
styleContext
|
|
1466
1465
|
}) => {
|
|
1467
|
-
let classNames = [[styles$
|
|
1466
|
+
let classNames = [[styles$n.root, true], [styles$n[onlyOn], true]];
|
|
1468
1467
|
if (styleContext) {
|
|
1469
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1468
|
+
classNames = makeStyleContext(classNames, styleContext, styles$n);
|
|
1470
1469
|
}
|
|
1471
1470
|
return /*#__PURE__*/React.createElement("h1", {
|
|
1472
1471
|
"data-testid": "simple-title",
|
|
@@ -1474,7 +1473,7 @@ const SimpleTitle = ({
|
|
|
1474
1473
|
}, first);
|
|
1475
1474
|
};
|
|
1476
1475
|
|
|
1477
|
-
var styles$
|
|
1476
|
+
var styles$m = {"root":"RichTitle-module_root__U5XQu","slide":"RichTitle-module_slide__eU9Ob","game":"RichTitle-module_game__S1csb","podcastMaterial":"RichTitle-module_podcastMaterial__AulVF","half":"RichTitle-module_half__yBMby","featured":"RichTitle-module_featured__ULNQn","isInMediaBlock":"RichTitle-module_isInMediaBlock__2h6rl","isInBookRelated":"RichTitle-module_isInBookRelated__LcCPV","isInDynamicBlock":"RichTitle-module_isInDynamicBlock__J-gM6","episodeInMaterial":"RichTitle-module_episodeInMaterial__pp-Wt","episodeInEmbed":"RichTitle-module_episodeInEmbed__gJpJL","isInPodcastPlayer":"RichTitle-module_isInPodcastPlayer__kvEPH","mobile":"RichTitle-module_mobile__W5L9E","desktop":"RichTitle-module_desktop__k0PkC"};
|
|
1478
1477
|
|
|
1479
1478
|
const RichTitle = ({
|
|
1480
1479
|
block: {
|
|
@@ -1489,9 +1488,9 @@ const RichTitle = ({
|
|
|
1489
1488
|
styleContext,
|
|
1490
1489
|
type
|
|
1491
1490
|
}) => {
|
|
1492
|
-
let classNames = [[styles$
|
|
1491
|
+
let classNames = [[styles$m.root, true], [styles$m[onlyOn], true], [styles$m.featured, !!featured], [styles$m.episodeInMaterial, type === 'isInMaterial'], [styles$m.episodeInEmbed, type === 'isEmbeded']];
|
|
1493
1492
|
if (styleContext) {
|
|
1494
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1493
|
+
classNames = makeStyleContext(classNames, styleContext, styles$m);
|
|
1495
1494
|
}
|
|
1496
1495
|
return /*#__PURE__*/React.createElement(TagName, {
|
|
1497
1496
|
"data-testid": "rich-title",
|
|
@@ -1499,7 +1498,7 @@ const RichTitle = ({
|
|
|
1499
1498
|
}, first, second && /*#__PURE__*/React.createElement("span", null, " ", second));
|
|
1500
1499
|
};
|
|
1501
1500
|
|
|
1502
|
-
var styles$
|
|
1501
|
+
var styles$l = {"p":"SimpleBlock-module_p__7aRnT","h2":"SimpleBlock-module_h2__aWlMn","h3":"SimpleBlock-module_h3__uPh0-","h4":"SimpleBlock-module_h4__MxGXA","lead":"SimpleBlock-module_lead__NzEPT","lead_hr":"SimpleBlock-module_lead_hr__XN0rm","context_p":"SimpleBlock-module_context_p__Mdu1R","blockquote":"SimpleBlock-module_blockquote__nX-Ab","game":"SimpleBlock-module_game__uVeJJ","slide":"SimpleBlock-module_slide__MaaUF","dark":"SimpleBlock-module_dark__qtLhq","divider":"SimpleBlock-module_divider__-VXBu","isInIntro":"SimpleBlock-module_isInIntro__UOePf","center":"SimpleBlock-module_center__D1CsV","isInImportantLead":"SimpleBlock-module_isInImportantLead__qzKDo","podcastMaterial":"SimpleBlock-module_podcastMaterial__XEMjh","isInAnswer":"SimpleBlock-module_isInAnswer__Asx7d","mobile":"SimpleBlock-module_mobile__EVGYJ","desktop":"SimpleBlock-module_desktop__6ZH5e","isDark":"SimpleBlock-module_isDark__ehYKr"};
|
|
1503
1502
|
|
|
1504
1503
|
const SimpleBlock = ({
|
|
1505
1504
|
block: {
|
|
@@ -1511,9 +1510,9 @@ const SimpleBlock = ({
|
|
|
1511
1510
|
id = null
|
|
1512
1511
|
}) => {
|
|
1513
1512
|
let TagName;
|
|
1514
|
-
let classNames = [[styles$
|
|
1513
|
+
let classNames = [[styles$l[type], !!type && !!styles$l[type]], [styles$l[onlyOn], true]];
|
|
1515
1514
|
if (styleContext) {
|
|
1516
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1515
|
+
classNames = makeStyleContext(classNames, styleContext, styles$l);
|
|
1517
1516
|
}
|
|
1518
1517
|
switch (type) {
|
|
1519
1518
|
case 'context_p':
|
|
@@ -1545,7 +1544,7 @@ const SimpleBlock = ({
|
|
|
1545
1544
|
});
|
|
1546
1545
|
};
|
|
1547
1546
|
|
|
1548
|
-
var styles$
|
|
1547
|
+
var styles$k = {"root":"ListBlock-module_root__dqomP","ol":"ListBlock-module_ol__1l6nP","ul":"ListBlock-module_ul__bgHlv","center":"ListBlock-module_center__bEBN-","isInImportantLead":"ListBlock-module_isInImportantLead__ewcD1","dark":"ListBlock-module_dark__NzpYz","mobile":"ListBlock-module_mobile__qEBsn","desktop":"ListBlock-module_desktop__HN0IU"};
|
|
1549
1548
|
|
|
1550
1549
|
const ListBlock = ({
|
|
1551
1550
|
block: {
|
|
@@ -1556,9 +1555,9 @@ const ListBlock = ({
|
|
|
1556
1555
|
styleContext
|
|
1557
1556
|
}) => {
|
|
1558
1557
|
const TagName = type;
|
|
1559
|
-
let classNames = [[styles$
|
|
1558
|
+
let classNames = [[styles$k.root, true], [styles$k[onlyOn], true], [styles$k[type], !!type && !!styles$k[type]]];
|
|
1560
1559
|
if (styleContext) {
|
|
1561
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1560
|
+
classNames = makeStyleContext(classNames, styleContext, styles$k);
|
|
1562
1561
|
}
|
|
1563
1562
|
return /*#__PURE__*/React.createElement(TagName, {
|
|
1564
1563
|
className: makeClassName(classNames),
|
|
@@ -1571,7 +1570,7 @@ const ListBlock = ({
|
|
|
1571
1570
|
}))));
|
|
1572
1571
|
};
|
|
1573
1572
|
|
|
1574
|
-
var styles$
|
|
1573
|
+
var styles$j = {"root":"RelatedBlock-module_root__cr1c-","header":"RelatedBlock-module_header__bfUJD","items":"RelatedBlock-module_items__rzzam","rich":"RelatedBlock-module_rich__1cWdn","first":"RelatedBlock-module_first__ZkcP5","simple":"RelatedBlock-module_simple__m22bj","center":"RelatedBlock-module_center__WVpIJ","isInSlideMaterial":"RelatedBlock-module_isInSlideMaterial__VumDw","mobile":"RelatedBlock-module_mobile__AScBA","desktop":"RelatedBlock-module_desktop__uMXUY"};
|
|
1575
1574
|
|
|
1576
1575
|
const RelatedBlock = ({
|
|
1577
1576
|
block: {
|
|
@@ -1583,28 +1582,28 @@ const RelatedBlock = ({
|
|
|
1583
1582
|
},
|
|
1584
1583
|
styleContext
|
|
1585
1584
|
}) => {
|
|
1586
|
-
let classNames = [[styles$
|
|
1585
|
+
let classNames = [[styles$j.root, true], [styles$j[onlyOn], true]];
|
|
1587
1586
|
if (styleContext) {
|
|
1588
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1587
|
+
classNames = makeStyleContext(classNames, styleContext, styles$j);
|
|
1589
1588
|
}
|
|
1590
1589
|
return /*#__PURE__*/React.createElement("div", {
|
|
1591
1590
|
"data-testid": "related-block",
|
|
1592
1591
|
className: makeClassName(classNames)
|
|
1593
1592
|
}, /*#__PURE__*/React.createElement("h3", {
|
|
1594
|
-
className: styles$
|
|
1593
|
+
className: styles$j.header
|
|
1595
1594
|
}, title), /*#__PURE__*/React.createElement("ul", {
|
|
1596
|
-
className: styles$
|
|
1595
|
+
className: styles$j.items
|
|
1597
1596
|
}, related.map((item, index) => ( /*#__PURE__*/React.createElement("li", {
|
|
1598
1597
|
key: item.id || index,
|
|
1599
|
-
className: styles$
|
|
1598
|
+
className: styles$j[item.layout]
|
|
1600
1599
|
}, /*#__PURE__*/React.createElement(reactRouterDom.Link, {
|
|
1601
1600
|
to: item.full_url || `/${item.url}`
|
|
1602
1601
|
}, /*#__PURE__*/React.createElement("span", {
|
|
1603
|
-
className: styles$
|
|
1602
|
+
className: styles$j.first
|
|
1604
1603
|
}, item.title), item.second_title && ' ', item.second_title && /*#__PURE__*/React.createElement("span", null, item.second_title)))))));
|
|
1605
1604
|
};
|
|
1606
1605
|
|
|
1607
|
-
var styles$
|
|
1606
|
+
var styles$i = {"root":"SourceBlock-module_root__9dnI4","text":"SourceBlock-module_text__M5-uy","origin":"SourceBlock-module_origin__fyvxH","center":"SourceBlock-module_center__UOMwy","mobile":"SourceBlock-module_mobile__QVEyg","desktop":"SourceBlock-module_desktop__xdXWm","isDark":"SourceBlock-module_isDark__etwk1"};
|
|
1608
1607
|
|
|
1609
1608
|
const SourceBlock = ({
|
|
1610
1609
|
block: {
|
|
@@ -1617,16 +1616,16 @@ const SourceBlock = ({
|
|
|
1617
1616
|
},
|
|
1618
1617
|
styleContext
|
|
1619
1618
|
}) => {
|
|
1620
|
-
let classNames = [[styles$
|
|
1619
|
+
let classNames = [[styles$i.root, true], [styles$i[onlyOn], true]];
|
|
1621
1620
|
if (styleContext) {
|
|
1622
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1621
|
+
classNames = makeStyleContext(classNames, styleContext, styles$i);
|
|
1623
1622
|
}
|
|
1624
1623
|
return /*#__PURE__*/React.createElement("blockquote", {
|
|
1625
1624
|
"data-testid": "source-block",
|
|
1626
1625
|
cite: url,
|
|
1627
1626
|
className: makeClassName(classNames)
|
|
1628
1627
|
}, /*#__PURE__*/React.createElement("a", {
|
|
1629
|
-
className: styles$
|
|
1628
|
+
className: styles$i.text,
|
|
1630
1629
|
href: url,
|
|
1631
1630
|
target: "_blank",
|
|
1632
1631
|
rel: "noopener noreferrer"
|
|
@@ -1636,11 +1635,11 @@ const SourceBlock = ({
|
|
|
1636
1635
|
__html: item.data
|
|
1637
1636
|
}
|
|
1638
1637
|
}))), /*#__PURE__*/React.createElement("footer", null, /*#__PURE__*/React.createElement("cite", {
|
|
1639
|
-
className: styles$
|
|
1638
|
+
className: styles$i.origin
|
|
1640
1639
|
}, origin))));
|
|
1641
1640
|
};
|
|
1642
1641
|
|
|
1643
|
-
var styles$
|
|
1642
|
+
var styles$h = {"root":"SensitiveBlock-module_root__1Nl9-","container":"SensitiveBlock-module_container__GE2tW","overlay":"SensitiveBlock-module_overlay__tEsK8","content":"SensitiveBlock-module_content__RYbdd","button":"SensitiveBlock-module_button__LGEEM","default":"SensitiveBlock-module_default__pkWhC","full":"SensitiveBlock-module_full__hlH41","media":"SensitiveBlock-module_media__nuL1S","super_full":"SensitiveBlock-module_super_full__C7UyP","visible":"SensitiveBlock-module_visible__bXhYO","isInCard":"SensitiveBlock-module_isInCard__uANYL","isInSlide":"SensitiveBlock-module_isInSlide__ZAVUU"};
|
|
1644
1643
|
|
|
1645
1644
|
const SensitiveBlock = ({
|
|
1646
1645
|
block,
|
|
@@ -1663,40 +1662,40 @@ const SensitiveBlock = ({
|
|
|
1663
1662
|
const handleClick = () => {
|
|
1664
1663
|
isVisible(true);
|
|
1665
1664
|
};
|
|
1666
|
-
let classNames = [[styles$
|
|
1665
|
+
let classNames = [[styles$h.root, true], [styles$h.visible, visible], [styles$h[display], display && styles$h[display]]];
|
|
1667
1666
|
let context = ['isInSensitiveBlock'];
|
|
1668
1667
|
if (styleContext) {
|
|
1669
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1668
|
+
classNames = makeStyleContext(classNames, styleContext, styles$h);
|
|
1670
1669
|
context = [...styleContext, 'isInSensitiveBlock'];
|
|
1671
1670
|
}
|
|
1672
1671
|
return /*#__PURE__*/React.createElement("div", {
|
|
1673
1672
|
"data-testid": "sensitive-block",
|
|
1674
1673
|
className: makeClassName(classNames)
|
|
1675
1674
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1676
|
-
className: styles$
|
|
1675
|
+
className: styles$h.container
|
|
1677
1676
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1678
|
-
className: styles$
|
|
1677
|
+
className: styles$h.overlay,
|
|
1679
1678
|
style: {
|
|
1680
1679
|
backgroundImage: `url(${blurredImage})`
|
|
1681
1680
|
}
|
|
1682
1681
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1683
|
-
className: styles$
|
|
1682
|
+
className: styles$h.content
|
|
1684
1683
|
}, /*#__PURE__*/React.createElement("p", {
|
|
1685
1684
|
dangerouslySetInnerHTML: {
|
|
1686
1685
|
__html: block.title
|
|
1687
1686
|
}
|
|
1688
1687
|
}), /*#__PURE__*/React.createElement("div", {
|
|
1689
|
-
className: styles$
|
|
1688
|
+
className: styles$h.button
|
|
1690
1689
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
1691
1690
|
onClick: () => handleClick(),
|
|
1692
1691
|
theme: "light"
|
|
1693
1692
|
}, block.button.text)))), /*#__PURE__*/React.createElement("div", {
|
|
1694
|
-
className: styles$
|
|
1693
|
+
className: styles$h.media
|
|
1695
1694
|
}, /*#__PURE__*/React.createElement(EmbedBlockContainer, {
|
|
1696
1695
|
block: block.item,
|
|
1697
1696
|
styleContext: context
|
|
1698
1697
|
}))), cc && ( /*#__PURE__*/React.createElement("figcaption", {
|
|
1699
|
-
className: styles$
|
|
1698
|
+
className: styles$h.figcaption
|
|
1700
1699
|
}, /*#__PURE__*/React.createElement(MediaCaption, {
|
|
1701
1700
|
credit: credit,
|
|
1702
1701
|
caption: caption,
|
|
@@ -1704,7 +1703,7 @@ const SensitiveBlock = ({
|
|
|
1704
1703
|
}))));
|
|
1705
1704
|
};
|
|
1706
1705
|
|
|
1707
|
-
var styles$
|
|
1706
|
+
var styles$g = {"root":"GroupedBlock-module_root__MQQin","hasFigcaption":"GroupedBlock-module_hasFigcaption__Y05ed","item":"GroupedBlock-module_item__-InqF","items":"GroupedBlock-module_items__8X4js","figcaption":"GroupedBlock-module_figcaption__OE5-u","default":"GroupedBlock-module_default__Tha8f","full":"GroupedBlock-module_full__SNwyE","super_full":"GroupedBlock-module_super_full__HTA9D","mobile":"GroupedBlock-module_mobile__xqMw5","desktop":"GroupedBlock-module_desktop__Oobdp"};
|
|
1708
1707
|
|
|
1709
1708
|
const GroupedBlock = ({
|
|
1710
1709
|
block,
|
|
@@ -1720,19 +1719,19 @@ const GroupedBlock = ({
|
|
|
1720
1719
|
return width / (height / maxHeight);
|
|
1721
1720
|
});
|
|
1722
1721
|
const sumWidth = normalizedBoxesWidth.reduce((sum, x) => sum + x);
|
|
1723
|
-
let classNames = [[styles$
|
|
1722
|
+
let classNames = [[styles$g.root, true], [styles$g[onlyOn], true], [styles$g.hasFigcaption, block.cc === 'default'], [styles$g[block.display], !!block.display && styles$g[block.display]]];
|
|
1724
1723
|
if (styleContext) {
|
|
1725
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1724
|
+
classNames = makeStyleContext(classNames, styleContext, styles$g);
|
|
1726
1725
|
}
|
|
1727
1726
|
return /*#__PURE__*/React.createElement("div", {
|
|
1728
1727
|
"data-testid": "grouped-block",
|
|
1729
1728
|
className: makeClassName(classNames)
|
|
1730
1729
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1731
|
-
className: styles$
|
|
1730
|
+
className: styles$g.items
|
|
1732
1731
|
}, block.data.map((item, index) => {
|
|
1733
1732
|
const percentWidth = normalizedBoxesWidth[index] / sumWidth * 100;
|
|
1734
1733
|
return /*#__PURE__*/React.createElement("div", {
|
|
1735
|
-
className: styles$
|
|
1734
|
+
className: styles$g.item,
|
|
1736
1735
|
key: item.id,
|
|
1737
1736
|
style: {
|
|
1738
1737
|
width: `${percentWidth}%`
|
|
@@ -1745,7 +1744,7 @@ const GroupedBlock = ({
|
|
|
1745
1744
|
styleContext: ['isInGroupedBlock']
|
|
1746
1745
|
})));
|
|
1747
1746
|
})), block.cc && ( /*#__PURE__*/React.createElement("figcaption", {
|
|
1748
|
-
className: styles$
|
|
1747
|
+
className: styles$g.figcaption
|
|
1749
1748
|
}, /*#__PURE__*/React.createElement(MediaCaption, {
|
|
1750
1749
|
credit: block.credit,
|
|
1751
1750
|
caption: block.caption,
|
|
@@ -1753,7 +1752,7 @@ const GroupedBlock = ({
|
|
|
1753
1752
|
}))));
|
|
1754
1753
|
};
|
|
1755
1754
|
|
|
1756
|
-
var styles$
|
|
1755
|
+
var styles$f = {"root":"MetaItem-module_root__sRbrZ","hasBullets":"MetaItem-module_hasBullets__b1eW9","hasSource":"MetaItem-module_hasSource__35olm","listened":"MetaItem-module_listened__XZWFQ","read":"MetaItem-module_read__O3cUz","datetime":"MetaItem-module_datetime__--O8c"};
|
|
1757
1756
|
|
|
1758
1757
|
const MetaItem = ({
|
|
1759
1758
|
hasSource,
|
|
@@ -1761,25 +1760,25 @@ const MetaItem = ({
|
|
|
1761
1760
|
children,
|
|
1762
1761
|
bullets
|
|
1763
1762
|
}) => {
|
|
1764
|
-
const classNames = [[styles$
|
|
1763
|
+
const classNames = [[styles$f.root, true], [styles$f[type], !!type && !!styles$f[type]], [styles$f.hasSource, !!hasSource], [styles$f.hasBullets, !!bullets]];
|
|
1765
1764
|
return /*#__PURE__*/React.createElement("div", {
|
|
1766
1765
|
"data-testid": "meta-item",
|
|
1767
1766
|
className: makeClassName(classNames)
|
|
1768
1767
|
}, children);
|
|
1769
1768
|
};
|
|
1770
1769
|
|
|
1771
|
-
var styles$
|
|
1770
|
+
var styles$e = {"root":"MetaItemLive-module_root__XfQiW","gold":"MetaItemLive-module_gold__f1UOy","frame":"MetaItemLive-module_frame__FHByQ","liveMiddle":"MetaItemLive-module_liveMiddle__SX4Gs","liveFirstWave":"MetaItemLive-module_liveFirstWave__QqstP","liveSecondWave":"MetaItemLive-module_liveSecondWave__hlbpt"};
|
|
1772
1771
|
|
|
1773
1772
|
const MetaItemLive = ({
|
|
1774
1773
|
theme = 'gold'
|
|
1775
1774
|
}) => {
|
|
1776
|
-
const classNames = [[styles$
|
|
1775
|
+
const classNames = [[styles$e.root, true], [styles$e[theme], !!theme && styles$e[theme]]];
|
|
1777
1776
|
return /*#__PURE__*/React.createElement("div", {
|
|
1778
1777
|
"data-testid": "meta-item-live",
|
|
1779
1778
|
"data-meta": "live",
|
|
1780
1779
|
className: makeClassName(classNames)
|
|
1781
1780
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1782
|
-
className: styles$
|
|
1781
|
+
className: styles$e.frame
|
|
1783
1782
|
}));
|
|
1784
1783
|
};
|
|
1785
1784
|
|
|
@@ -1799,7 +1798,7 @@ const pluralize = (number, one, two, five) => {
|
|
|
1799
1798
|
return five;
|
|
1800
1799
|
};
|
|
1801
1800
|
|
|
1802
|
-
var styles$
|
|
1801
|
+
var styles$d = {"root":"DocumentItemsCount-module_root__u4M3y","items":"DocumentItemsCount-module_items__OE-hf"};
|
|
1803
1802
|
|
|
1804
1803
|
const DocumentItemsCount = ({
|
|
1805
1804
|
type,
|
|
@@ -1836,9 +1835,9 @@ const DocumentItemsCount = ({
|
|
|
1836
1835
|
const itemsCount = `${items} ${pluralize(items, i18n[lang][type].one, i18n[lang][type].two, i18n[lang][type].five)}`;
|
|
1837
1836
|
return /*#__PURE__*/React.createElement("div", {
|
|
1838
1837
|
"data-testid": "document-items-count",
|
|
1839
|
-
className: styles$
|
|
1838
|
+
className: styles$d.root
|
|
1840
1839
|
}, children, /*#__PURE__*/React.createElement("span", {
|
|
1841
|
-
className: styles$
|
|
1840
|
+
className: styles$d.items
|
|
1842
1841
|
}, itemsCount));
|
|
1843
1842
|
};
|
|
1844
1843
|
|
|
@@ -1963,22 +1962,22 @@ const MetaContainer = ({
|
|
|
1963
1962
|
icon: isListened ? 'listened' : 'read',
|
|
1964
1963
|
size: "unset"
|
|
1965
1964
|
}))), isSlides && lang === 'ru' && ( /*#__PURE__*/React.createElement("div", {
|
|
1966
|
-
className: styles$
|
|
1965
|
+
className: styles$t.bookmark
|
|
1967
1966
|
}, /*#__PURE__*/React.createElement(BookmarkButton, {
|
|
1968
1967
|
isInBookmarks: isInBookmarks,
|
|
1969
1968
|
onClick: () => bookmarkAction('bookmark', 'top')
|
|
1970
1969
|
}))));
|
|
1971
1970
|
};
|
|
1972
1971
|
|
|
1973
|
-
var styles$
|
|
1972
|
+
var styles$c = {"root":"DonatesTeaser-module_root__XQCVy","main":"DonatesTeaser-module_main__eN9kd","title":"DonatesTeaser-module_title__9umo1","text":"DonatesTeaser-module_text__s6tyf","cta":"DonatesTeaser-module_cta__-50aB","center":"DonatesTeaser-module_center__gxLvW","isInCard":"DonatesTeaser-module_isInCard__vaUhd","isInSlide":"DonatesTeaser-module_isInSlide__Dh4NH","ru":"DonatesTeaser-module_ru__y-PlJ","en":"DonatesTeaser-module_en__0Iisr"};
|
|
1974
1973
|
|
|
1975
1974
|
const DonatesTeaser = ({
|
|
1976
1975
|
styleContext,
|
|
1977
1976
|
lang = 'ru'
|
|
1978
1977
|
}) => {
|
|
1979
|
-
let classNames = [[styles$
|
|
1978
|
+
let classNames = [[styles$c.root, true], [styles$c[lang], styles$c[lang]]];
|
|
1980
1979
|
if (styleContext) {
|
|
1981
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1980
|
+
classNames = makeStyleContext(classNames, styleContext, styles$c);
|
|
1982
1981
|
}
|
|
1983
1982
|
const data = {
|
|
1984
1983
|
ru: {
|
|
@@ -1998,20 +1997,20 @@ const DonatesTeaser = ({
|
|
|
1998
1997
|
"data-testid": "donates-teaser",
|
|
1999
1998
|
className: makeClassName(classNames)
|
|
2000
1999
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2001
|
-
className: styles$
|
|
2000
|
+
className: styles$c.main
|
|
2002
2001
|
}, /*#__PURE__*/React.createElement("h3", {
|
|
2003
|
-
className: styles$
|
|
2002
|
+
className: styles$c.title
|
|
2004
2003
|
}, /*#__PURE__*/React.createElement("span", {
|
|
2005
2004
|
dangerouslySetInnerHTML: {
|
|
2006
2005
|
__html: data[lang].title
|
|
2007
2006
|
}
|
|
2008
2007
|
}), ` `, /*#__PURE__*/React.createElement("span", {
|
|
2009
|
-
className: styles$
|
|
2008
|
+
className: styles$c.text,
|
|
2010
2009
|
dangerouslySetInnerHTML: {
|
|
2011
2010
|
__html: data[lang].subtitle
|
|
2012
2011
|
}
|
|
2013
2012
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
2014
|
-
className: styles$
|
|
2013
|
+
className: styles$c.cta
|
|
2015
2014
|
}, /*#__PURE__*/React.createElement("a", {
|
|
2016
2015
|
href: data[lang].href,
|
|
2017
2016
|
target: "_blank",
|
|
@@ -2019,15 +2018,15 @@ const DonatesTeaser = ({
|
|
|
2019
2018
|
}, /*#__PURE__*/React.createElement("span", null, data[lang].button))));
|
|
2020
2019
|
};
|
|
2021
2020
|
|
|
2022
|
-
var styles$
|
|
2021
|
+
var styles$b = {"root":"AnnouncementInText-module_root__C4-Oo","body":"AnnouncementInText-module_body__lZy-L","title":"AnnouncementInText-module_title__cb6i1","footer":"AnnouncementInText-module_footer__jRk9p","button":"AnnouncementInText-module_button__JuT-E","link":"AnnouncementInText-module_link__C0YxL","center":"AnnouncementInText-module_center__1DJjd","isInCard":"AnnouncementInText-module_isInCard__jIqpa","isInSlide":"AnnouncementInText-module_isInSlide__BWO-A","ru":"AnnouncementInText-module_ru__QHQad","en":"AnnouncementInText-module_en__r0PvM"};
|
|
2023
2022
|
|
|
2024
2023
|
const AnnouncementInText = ({
|
|
2025
2024
|
styleContext,
|
|
2026
2025
|
lang = 'ru'
|
|
2027
2026
|
}) => {
|
|
2028
|
-
let classNames = [[styles$
|
|
2027
|
+
let classNames = [[styles$b.root, true], [styles$b[lang], styles$b[lang]]];
|
|
2029
2028
|
if (styleContext) {
|
|
2030
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2029
|
+
classNames = makeStyleContext(classNames, styleContext, styles$b);
|
|
2031
2030
|
}
|
|
2032
2031
|
const data = {
|
|
2033
2032
|
ru: {
|
|
@@ -2048,9 +2047,9 @@ const AnnouncementInText = ({
|
|
|
2048
2047
|
"data-testid": "announcement-in-text",
|
|
2049
2048
|
className: makeClassName(classNames)
|
|
2050
2049
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2051
|
-
className: styles$
|
|
2050
|
+
className: styles$b.body
|
|
2052
2051
|
}, /*#__PURE__*/React.createElement("h3", {
|
|
2053
|
-
className: styles$
|
|
2052
|
+
className: styles$b.title,
|
|
2054
2053
|
dangerouslySetInnerHTML: {
|
|
2055
2054
|
__html: localeData.title
|
|
2056
2055
|
}
|
|
@@ -2059,18 +2058,18 @@ const AnnouncementInText = ({
|
|
|
2059
2058
|
__html: localeData.text
|
|
2060
2059
|
}
|
|
2061
2060
|
})), /*#__PURE__*/React.createElement("div", {
|
|
2062
|
-
className: styles$
|
|
2061
|
+
className: styles$b.footer
|
|
2063
2062
|
}, /*#__PURE__*/React.createElement("a", {
|
|
2064
|
-
className: styles$
|
|
2063
|
+
className: styles$b.link,
|
|
2065
2064
|
href: localeData.href,
|
|
2066
2065
|
target: "_blank",
|
|
2067
2066
|
rel: "noreferrer"
|
|
2068
2067
|
}, /*#__PURE__*/React.createElement("span", null, localeData.button)), /*#__PURE__*/React.createElement("span", {
|
|
2069
|
-
className: styles$
|
|
2068
|
+
className: styles$b.button
|
|
2070
2069
|
}, /*#__PURE__*/React.createElement("span", null, localeData.button))));
|
|
2071
2070
|
};
|
|
2072
2071
|
|
|
2073
|
-
var styles$
|
|
2072
|
+
var styles$a = {"root":"VersesBlock-module_root__CrgSZ","ol":"VersesBlock-module_ol__ToXjg","ul":"VersesBlock-module_ul__wfaQD","center":"VersesBlock-module_center__E1IS-","isInImportantLead":"VersesBlock-module_isInImportantLead__pdugk","dark":"VersesBlock-module_dark__FwaPS","mobile":"VersesBlock-module_mobile__EcHvz","desktop":"VersesBlock-module_desktop__quKfJ"};
|
|
2074
2073
|
|
|
2075
2074
|
const VersesBlock = ({
|
|
2076
2075
|
block: {
|
|
@@ -2080,9 +2079,9 @@ const VersesBlock = ({
|
|
|
2080
2079
|
},
|
|
2081
2080
|
styleContext
|
|
2082
2081
|
}) => {
|
|
2083
|
-
let classNames = [[styles$
|
|
2082
|
+
let classNames = [[styles$a.root, true], [styles$a[onlyOn], true], [styles$a[type], !!type && !!styles$a[type]]];
|
|
2084
2083
|
if (styleContext) {
|
|
2085
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2084
|
+
classNames = makeStyleContext(classNames, styleContext, styles$a);
|
|
2086
2085
|
}
|
|
2087
2086
|
return /*#__PURE__*/React.createElement("ul", {
|
|
2088
2087
|
className: makeClassName(classNames),
|
|
@@ -2258,7 +2257,7 @@ const RenderBlocks = ({
|
|
|
2258
2257
|
}
|
|
2259
2258
|
};
|
|
2260
2259
|
|
|
2261
|
-
var styles$
|
|
2260
|
+
var styles$9 = {"root":"Cover-module_root__3pscq","body":"Cover-module_body__eJpUI","image":"Cover-module_image__frrrH","rich":"Cover-module_rich__YcxWa","dark":"Cover-module_dark__cRucL","light":"Cover-module_light__la-sk","control":"Cover-module_control__WP0G3","isInDynamicBlock":"Cover-module_isInDynamicBlock__qO-yt","mobile":"Cover-module_mobile__aotep","desktop":"Cover-module_desktop__dfbC-"};
|
|
2262
2261
|
|
|
2263
2262
|
const Cover = ({
|
|
2264
2263
|
block: {
|
|
@@ -2279,13 +2278,13 @@ const Cover = ({
|
|
|
2279
2278
|
}) => {
|
|
2280
2279
|
const [isPopoverShown, setIsPopoverShown] = React.useState(false);
|
|
2281
2280
|
const style = {};
|
|
2282
|
-
let classNames = [[styles$
|
|
2281
|
+
let classNames = [[styles$9.root, true], [styles$9[onlyOn], !!onlyOn && !!styles$9[onlyOn]]];
|
|
2283
2282
|
if (styleContext) {
|
|
2284
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2283
|
+
classNames = makeStyleContext(classNames, styleContext, styles$9);
|
|
2285
2284
|
}
|
|
2286
2285
|
if (gradients) {
|
|
2287
2286
|
const theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
|
|
2288
|
-
classNames = makeStyleContext(classNames, theme, styles$
|
|
2287
|
+
classNames = makeStyleContext(classNames, theme, styles$9);
|
|
2289
2288
|
style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
|
|
2290
2289
|
}
|
|
2291
2290
|
const renderCC = context => ( /*#__PURE__*/React.createElement(MediaCaption, {
|
|
@@ -2297,20 +2296,20 @@ const Cover = ({
|
|
|
2297
2296
|
"data-testid": "cover",
|
|
2298
2297
|
className: makeClassName(classNames)
|
|
2299
2298
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2300
|
-
className: styles$
|
|
2299
|
+
className: styles$9.image
|
|
2301
2300
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
2302
2301
|
optimized: urls,
|
|
2303
2302
|
ratio: mobileRatio,
|
|
2304
2303
|
display: "narrow"
|
|
2305
2304
|
})), /*#__PURE__*/React.createElement("div", {
|
|
2306
|
-
className: styles$
|
|
2305
|
+
className: styles$9.body,
|
|
2307
2306
|
style: style
|
|
2308
2307
|
}, blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2309
2308
|
key: item.id,
|
|
2310
2309
|
block: item,
|
|
2311
2310
|
styleContext: styleContext
|
|
2312
2311
|
})))), cc === 'button' && ( /*#__PURE__*/React.createElement("button", {
|
|
2313
|
-
className: styles$
|
|
2312
|
+
className: styles$9.control,
|
|
2314
2313
|
type: "button",
|
|
2315
2314
|
"aria-label": "Open",
|
|
2316
2315
|
onClick: () => {
|
|
@@ -2323,7 +2322,7 @@ const Cover = ({
|
|
|
2323
2322
|
}, renderCC('isInPopover'))));
|
|
2324
2323
|
};
|
|
2325
2324
|
|
|
2326
|
-
var styles$
|
|
2325
|
+
var styles$8 = {"root":"HalfBlock-module_root__EXQbz","main":"HalfBlock-module_main__eIcRo","body":"HalfBlock-module_body__HPhGj","footer":"HalfBlock-module_footer__TFfCQ","image":"HalfBlock-module_image__XWLbK","mobile":"HalfBlock-module_mobile__uGGpm","desktop":"HalfBlock-module_desktop__p-hAq"};
|
|
2327
2326
|
|
|
2328
2327
|
const HalfBlock = ({
|
|
2329
2328
|
block: {
|
|
@@ -2340,29 +2339,29 @@ const HalfBlock = ({
|
|
|
2340
2339
|
},
|
|
2341
2340
|
styleContext
|
|
2342
2341
|
}) => {
|
|
2343
|
-
let classNames = [[styles$
|
|
2342
|
+
let classNames = [[styles$8.root, true], [styles$8[onlyOn], true]];
|
|
2344
2343
|
if (styleContext) {
|
|
2345
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2344
|
+
classNames = makeStyleContext(classNames, styleContext, styles$8);
|
|
2346
2345
|
}
|
|
2347
2346
|
return /*#__PURE__*/React.createElement("div", {
|
|
2348
2347
|
"data-testid": "half-block",
|
|
2349
2348
|
className: makeClassName(classNames)
|
|
2350
2349
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2351
|
-
className: styles$
|
|
2350
|
+
className: styles$8.main
|
|
2352
2351
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2353
|
-
className: styles$
|
|
2352
|
+
className: styles$8.image
|
|
2354
2353
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
2355
2354
|
optimized: optimized,
|
|
2356
2355
|
ratio: ratio,
|
|
2357
2356
|
display: "super_full"
|
|
2358
2357
|
})), /*#__PURE__*/React.createElement("div", {
|
|
2359
|
-
className: styles$
|
|
2358
|
+
className: styles$8.body
|
|
2360
2359
|
}, data.blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2361
2360
|
key: item.id,
|
|
2362
2361
|
block: item,
|
|
2363
2362
|
styleContext: ['rich']
|
|
2364
2363
|
}))))), /*#__PURE__*/React.createElement("div", {
|
|
2365
|
-
className: styles$
|
|
2364
|
+
className: styles$8.footer
|
|
2366
2365
|
}, /*#__PURE__*/React.createElement(MediaCaption, {
|
|
2367
2366
|
credit: credit,
|
|
2368
2367
|
caption: caption,
|
|
@@ -2370,7 +2369,7 @@ const HalfBlock = ({
|
|
|
2370
2369
|
})));
|
|
2371
2370
|
};
|
|
2372
2371
|
|
|
2373
|
-
var styles$
|
|
2372
|
+
var styles$7 = {"root":"ImportantLead-module_root__-rnt6","slide":"ImportantLead-module_slide__zcovu","mobile":"ImportantLead-module_mobile__msInp","desktop":"ImportantLead-module_desktop__ELC2-"};
|
|
2374
2373
|
|
|
2375
2374
|
const ImportantLead = ({
|
|
2376
2375
|
block: {
|
|
@@ -2379,9 +2378,9 @@ const ImportantLead = ({
|
|
|
2379
2378
|
},
|
|
2380
2379
|
styleContext
|
|
2381
2380
|
}) => {
|
|
2382
|
-
let classNames = [[styles$
|
|
2381
|
+
let classNames = [[styles$7.root, true], [styles$7[onlyOn], !!onlyOn]];
|
|
2383
2382
|
if (styleContext) {
|
|
2384
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2383
|
+
classNames = makeStyleContext(classNames, styleContext, styles$7);
|
|
2385
2384
|
}
|
|
2386
2385
|
return /*#__PURE__*/React.createElement("div", {
|
|
2387
2386
|
"data-testid": "important-lead",
|
|
@@ -2393,7 +2392,7 @@ const ImportantLead = ({
|
|
|
2393
2392
|
}))));
|
|
2394
2393
|
};
|
|
2395
2394
|
|
|
2396
|
-
var styles$
|
|
2395
|
+
var styles$6 = {"root":"Spoiler-module_root__fAbb9","header":"Spoiler-module_header__iEKsQ","body":"Spoiler-module_body__jjqIn","spoiled":"Spoiler-module_spoiled__ENI93","footer":"Spoiler-module_footer__g21Zn","spoilerSticky":"Spoiler-module_spoilerSticky__YTiyF","spoilerStickyBg":"Spoiler-module_spoilerStickyBg__tmDnG","center":"Spoiler-module_center__0XCWo","full":"Spoiler-module_full__FtKDT","default":"Spoiler-module_default__wvlKw","mobile":"Spoiler-module_mobile__PWCMW","desktop":"Spoiler-module_desktop__qTakd"};
|
|
2397
2396
|
|
|
2398
2397
|
const Spoiler = ({
|
|
2399
2398
|
block: {
|
|
@@ -2422,11 +2421,11 @@ const Spoiler = ({
|
|
|
2422
2421
|
postMessage('', 'openSpoiler', 'click');
|
|
2423
2422
|
}
|
|
2424
2423
|
};
|
|
2425
|
-
let classNames = [[styles$
|
|
2424
|
+
let classNames = [[styles$6.root, true], [styles$6[onlyOn], !!onlyOn], [styles$6[display], !!display && styles$6[display]], [[styles$6.spoiled], !!spoiled]];
|
|
2426
2425
|
const context = ['center'];
|
|
2427
2426
|
if (styleContext) {
|
|
2428
2427
|
context.concat(styleContext);
|
|
2429
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2428
|
+
classNames = makeStyleContext(classNames, styleContext, styles$6);
|
|
2430
2429
|
}
|
|
2431
2430
|
const buttonCollapse = button ? button.collapse : 'Свернуть';
|
|
2432
2431
|
const buttonExpande = button ? button.expand : buttonTitle;
|
|
@@ -2435,15 +2434,15 @@ const Spoiler = ({
|
|
|
2435
2434
|
className: makeClassName(classNames),
|
|
2436
2435
|
"data-testid": "spoiler"
|
|
2437
2436
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2438
|
-
className: styles$
|
|
2437
|
+
className: styles$6.header
|
|
2439
2438
|
}, title && /*#__PURE__*/React.createElement("h3", null, title)), /*#__PURE__*/React.createElement("div", {
|
|
2440
|
-
className: styles$
|
|
2439
|
+
className: styles$6.body
|
|
2441
2440
|
}, blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2442
2441
|
key: item.id,
|
|
2443
2442
|
block: item,
|
|
2444
2443
|
styleContext: context
|
|
2445
2444
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
2446
|
-
className: styles$
|
|
2445
|
+
className: styles$6.footer
|
|
2447
2446
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
2448
2447
|
size: "default",
|
|
2449
2448
|
theme: "gray",
|
|
@@ -2454,7 +2453,7 @@ const Spoiler = ({
|
|
|
2454
2453
|
}))));
|
|
2455
2454
|
};
|
|
2456
2455
|
|
|
2457
|
-
var styles$
|
|
2456
|
+
var styles$5 = {"root":"RelatedRichBlock-module_root__-SEe7","wrapper":"RelatedRichBlock-module_wrapper__YkEpr","overlay":"RelatedRichBlock-module_overlay__tWuyR","overlayHeader":"RelatedRichBlock-module_overlayHeader__V3ynX","body":"RelatedRichBlock-module_body__XhS0U","isRich":"RelatedRichBlock-module_isRich__Z2kQ8","hasGradient":"RelatedRichBlock-module_hasGradient__s5Krh","picture":"RelatedRichBlock-module_picture__OmRKx","isCard":"RelatedRichBlock-module_isCard__wkMw-","cover":"RelatedRichBlock-module_cover__3gnIx","tag":"RelatedRichBlock-module_tag__c18sv","center":"RelatedRichBlock-module_center__KANd-","dark":"RelatedRichBlock-module_dark__cnk4R","light":"RelatedRichBlock-module_light__aJLn7","mobile":"RelatedRichBlock-module_mobile__N-G4U","desktop":"RelatedRichBlock-module_desktop__EaPOr"};
|
|
2458
2457
|
|
|
2459
2458
|
/* eslint-disable react/jsx-no-target-blank */
|
|
2460
2459
|
const RelatedRichBlock = ({
|
|
@@ -2491,16 +2490,16 @@ const RelatedRichBlock = ({
|
|
|
2491
2490
|
const handleClick = () => {
|
|
2492
2491
|
postMessage('richRelated', url, 'click');
|
|
2493
2492
|
};
|
|
2494
|
-
let classNames = [[styles$
|
|
2493
|
+
let classNames = [[styles$5.root, true], [styles$5[cardType], !!layout && !!styles$5[cardType]], [styles$5.hasGradient, !!gradients], [styles$5[onlyOn], !!onlyOn && !!styles$5[onlyOn]]];
|
|
2495
2494
|
let context = ['isInMediaBlock'];
|
|
2496
2495
|
if (styleContext) {
|
|
2497
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2496
|
+
classNames = makeStyleContext(classNames, styleContext, styles$5);
|
|
2498
2497
|
context = [...styleContext, 'isInMediaBlock'];
|
|
2499
2498
|
}
|
|
2500
2499
|
if (gradients) {
|
|
2501
2500
|
styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
|
|
2502
2501
|
const theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
|
|
2503
|
-
classNames = makeStyleContext(classNames, theme, styles$
|
|
2502
|
+
classNames = makeStyleContext(classNames, theme, styles$5);
|
|
2504
2503
|
if (onlyOn === 'desktop') {
|
|
2505
2504
|
style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
|
|
2506
2505
|
}
|
|
@@ -2512,27 +2511,27 @@ const RelatedRichBlock = ({
|
|
|
2512
2511
|
onClick: () => handleClick(),
|
|
2513
2512
|
ref: ref
|
|
2514
2513
|
}, layout === 'rich' && ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
2515
|
-
className: styles$
|
|
2514
|
+
className: styles$5.overlay,
|
|
2516
2515
|
style: style
|
|
2517
2516
|
}), /*#__PURE__*/React.createElement("div", {
|
|
2518
|
-
className: styles$
|
|
2517
|
+
className: styles$5.overlayHeader,
|
|
2519
2518
|
style: styleHeader
|
|
2520
2519
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
2521
|
-
className: styles$
|
|
2520
|
+
className: styles$5.tag
|
|
2522
2521
|
}, /*#__PURE__*/React.createElement(Tag, {
|
|
2523
2522
|
size: "small",
|
|
2524
2523
|
theme: "inherit",
|
|
2525
2524
|
styleContext: "richRelated"
|
|
2526
2525
|
}, tag)), /*#__PURE__*/React.createElement("div", {
|
|
2527
|
-
className: styles$
|
|
2526
|
+
className: styles$5.cover
|
|
2528
2527
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2529
|
-
className: styles$
|
|
2528
|
+
className: styles$5.picture
|
|
2530
2529
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
2531
2530
|
optimized: urls,
|
|
2532
2531
|
ratio: ratio,
|
|
2533
2532
|
display: "narrow"
|
|
2534
2533
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
2535
|
-
className: styles$
|
|
2534
|
+
className: styles$5.body
|
|
2536
2535
|
}, blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2537
2536
|
key: item.id,
|
|
2538
2537
|
block: item,
|
|
@@ -2540,7 +2539,7 @@ const RelatedRichBlock = ({
|
|
|
2540
2539
|
})))));
|
|
2541
2540
|
};
|
|
2542
2541
|
|
|
2543
|
-
var styles$
|
|
2542
|
+
var styles$4 = {"root":"ShopRelatedBlock-module_root__eTGjC","wrapper":"ShopRelatedBlock-module_wrapper__v6yE3","overlay":"ShopRelatedBlock-module_overlay__oR67Y","overlayHeader":"ShopRelatedBlock-module_overlayHeader__YMcNw","body":"ShopRelatedBlock-module_body__W4pBN","hasGradient":"ShopRelatedBlock-module_hasGradient__50JTl","picture":"ShopRelatedBlock-module_picture__zjFL4","tag":"ShopRelatedBlock-module_tag__ixkda","center":"ShopRelatedBlock-module_center__IpBP4","title":"ShopRelatedBlock-module_title__COl93","price":"ShopRelatedBlock-module_price__5Qitu","dark":"ShopRelatedBlock-module_dark__d0QiW","light":"ShopRelatedBlock-module_light__lUDWA","mobile":"ShopRelatedBlock-module_mobile__I6Hih","desktop":"ShopRelatedBlock-module_desktop__ywKrb"};
|
|
2544
2543
|
|
|
2545
2544
|
/* eslint-disable react/jsx-no-target-blank */
|
|
2546
2545
|
const ShopRelatedBlock = ({
|
|
@@ -2577,14 +2576,14 @@ const ShopRelatedBlock = ({
|
|
|
2577
2576
|
const handleClick = () => {
|
|
2578
2577
|
postMessage('productRelated', url, 'click');
|
|
2579
2578
|
};
|
|
2580
|
-
let classNames = [[styles$
|
|
2579
|
+
let classNames = [[styles$4.root, true], [styles$4.hasGradient, !!gradients], [styles$4[onlyOn], !!onlyOn && !!styles$4[onlyOn]]];
|
|
2581
2580
|
if (styleContext) {
|
|
2582
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2581
|
+
classNames = makeStyleContext(classNames, styleContext, styles$4);
|
|
2583
2582
|
}
|
|
2584
2583
|
if (gradients) {
|
|
2585
2584
|
styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
|
|
2586
2585
|
const theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
|
|
2587
|
-
classNames = makeStyleContext(classNames, theme, styles$
|
|
2586
|
+
classNames = makeStyleContext(classNames, theme, styles$4);
|
|
2588
2587
|
if (onlyOn === 'desktop') {
|
|
2589
2588
|
style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
|
|
2590
2589
|
}
|
|
@@ -2597,44 +2596,44 @@ const ShopRelatedBlock = ({
|
|
|
2597
2596
|
onClick: () => handleClick(),
|
|
2598
2597
|
ref: ref
|
|
2599
2598
|
}, layout === 'rich' && ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
2600
|
-
className: styles$
|
|
2599
|
+
className: styles$4.overlay,
|
|
2601
2600
|
style: style
|
|
2602
2601
|
}), /*#__PURE__*/React.createElement("div", {
|
|
2603
|
-
className: styles$
|
|
2602
|
+
className: styles$4.overlayHeader,
|
|
2604
2603
|
style: styleHeader
|
|
2605
2604
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
2606
|
-
className: styles$
|
|
2605
|
+
className: styles$4.tag
|
|
2607
2606
|
}, /*#__PURE__*/React.createElement(Tag, {
|
|
2608
2607
|
size: "small",
|
|
2609
2608
|
theme: "inherit",
|
|
2610
2609
|
styleContext: "richRelated"
|
|
2611
2610
|
}, tag)), /*#__PURE__*/React.createElement("div", {
|
|
2612
|
-
className: styles$
|
|
2611
|
+
className: styles$4.cover
|
|
2613
2612
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2614
|
-
className: styles$
|
|
2613
|
+
className: styles$4.picture
|
|
2615
2614
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
2616
2615
|
optimized: urls,
|
|
2617
2616
|
ratio: ratio,
|
|
2618
2617
|
display: "narrow"
|
|
2619
2618
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
2620
|
-
className: styles$
|
|
2619
|
+
className: styles$4.body
|
|
2621
2620
|
}, /*#__PURE__*/React.createElement("h2", {
|
|
2622
|
-
className: styles$
|
|
2621
|
+
className: styles$4.title
|
|
2623
2622
|
}, firstTitle, /*#__PURE__*/React.createElement("span", {
|
|
2624
|
-
className: styles$
|
|
2623
|
+
className: styles$4.price
|
|
2625
2624
|
}, secondTitle))));
|
|
2626
2625
|
};
|
|
2627
2626
|
|
|
2628
|
-
var styles$
|
|
2627
|
+
var styles$3 = {"root":"RelatedBook-module_root__QsOmA","container":"RelatedBook-module_container__vdDiZ","imageWrap":"RelatedBook-module_imageWrap__WmwnE","image":"RelatedBook-module_image__U1e5t","picture":"RelatedBook-module_picture__NXg-K","tag":"RelatedBook-module_tag__mSbbz","contentWrap":"RelatedBook-module_contentWrap__HIGRi","content":"RelatedBook-module_content__23Pfr","title":"RelatedBook-module_title__VRbr-","footer":"RelatedBook-module_footer__Z05t-","center":"RelatedBook-module_center__Fa6cj","isLight":"RelatedBook-module_isLight__W-0TO","isDark":"RelatedBook-module_isDark__0mrtK"};
|
|
2629
2628
|
|
|
2630
2629
|
const RelatedBook = ({
|
|
2631
2630
|
block,
|
|
2632
2631
|
styleContext
|
|
2633
2632
|
}) => {
|
|
2634
2633
|
const theme = block.data.theme.text_color === '0,0,0' ? 'isDark' : 'isLight';
|
|
2635
|
-
let classNames = [[styles$
|
|
2634
|
+
let classNames = [[styles$3.root, true], [styles$3[theme], theme], [styles$3[block.data.onlyOn], !!block.data.onlyOn && !!styles$3[block.data.onlyOn]]];
|
|
2636
2635
|
if (styleContext) {
|
|
2637
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2636
|
+
classNames = makeStyleContext(classNames, styleContext, styles$3);
|
|
2638
2637
|
}
|
|
2639
2638
|
const cssProps = {
|
|
2640
2639
|
'--bgColor': `rgb(${block.data.theme.background_color || '0, 0, 0'})`
|
|
@@ -2644,13 +2643,13 @@ const RelatedBook = ({
|
|
|
2644
2643
|
className: makeClassName(classNames),
|
|
2645
2644
|
style: cssProps
|
|
2646
2645
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2647
|
-
className: styles$
|
|
2646
|
+
className: styles$3.container
|
|
2648
2647
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2649
|
-
className: styles$
|
|
2648
|
+
className: styles$3.imageWrap
|
|
2650
2649
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2651
|
-
className: styles$
|
|
2650
|
+
className: styles$3.image
|
|
2652
2651
|
}, /*#__PURE__*/React.createElement("picture", {
|
|
2653
|
-
className: styles$
|
|
2652
|
+
className: styles$3.picture
|
|
2654
2653
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
2655
2654
|
optimized: block.data.cover.urls,
|
|
2656
2655
|
ratio: 0,
|
|
@@ -2658,9 +2657,9 @@ const RelatedBook = ({
|
|
|
2658
2657
|
styleContext: ['isStatic'],
|
|
2659
2658
|
lazy: true
|
|
2660
2659
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
2661
|
-
className: styles$
|
|
2660
|
+
className: styles$3.contentWrap
|
|
2662
2661
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2663
|
-
className: styles$
|
|
2662
|
+
className: styles$3.content
|
|
2664
2663
|
}, block.data.blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2665
2664
|
key: item.id,
|
|
2666
2665
|
block: item,
|
|
@@ -2750,6 +2749,28 @@ const RawHtmlBlock = ({
|
|
|
2750
2749
|
}
|
|
2751
2750
|
};
|
|
2752
2751
|
|
|
2752
|
+
var styles$2 = {"root":"ListViewSwitcher-module_root__pBsR5","input":"ListViewSwitcher-module_input__vtDVD","knob":"ListViewSwitcher-module_knob__g-OZ2","sm":"ListViewSwitcher-module_sm__y1teD","md":"ListViewSwitcher-module_md__0M8KR","grid":"ListViewSwitcher-module_grid__qBmnM","list":"ListViewSwitcher-module_list__NORMp"};
|
|
2753
|
+
|
|
2754
|
+
const ListViewSwitcher = ({
|
|
2755
|
+
enabled,
|
|
2756
|
+
onChange,
|
|
2757
|
+
size = 'md'
|
|
2758
|
+
}) => ( /*#__PURE__*/React.createElement("label", {
|
|
2759
|
+
"data-testid": "listViewSwitcher",
|
|
2760
|
+
className: makeClassName([[styles$2.root, true], [styles$2[size], true]])
|
|
2761
|
+
}, /*#__PURE__*/React.createElement("input", {
|
|
2762
|
+
className: styles$2.input,
|
|
2763
|
+
type: "checkbox",
|
|
2764
|
+
checked: enabled,
|
|
2765
|
+
onChange: onChange
|
|
2766
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
2767
|
+
className: styles$2.knob
|
|
2768
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
2769
|
+
className: styles$2.grid
|
|
2770
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
2771
|
+
className: styles$2.list
|
|
2772
|
+
})));
|
|
2773
|
+
|
|
2753
2774
|
var styles$1 = {"root":"ToolbarButton-module_root__upsEH","isDark":"ToolbarButton-module_isDark__gWpv-","dark":"ToolbarButton-module_dark__5XOEp","bookmark":"ToolbarButton-module_bookmark__7SWkm","isActive":"ToolbarButton-module_isActive__N4kkV","icon":"ToolbarButton-module_icon__Ldcgq","text":"ToolbarButton-module_text__4R2a0"};
|
|
2754
2775
|
|
|
2755
2776
|
const ToolbarButton = ({
|
|
@@ -2823,6 +2844,7 @@ exports.Image = Image;
|
|
|
2823
2844
|
exports.ImportantLead = ImportantLead;
|
|
2824
2845
|
exports.Lazy = Lazy;
|
|
2825
2846
|
exports.ListBlock = ListBlock;
|
|
2847
|
+
exports.ListViewSwitcher = ListViewSwitcher;
|
|
2826
2848
|
exports.MaterialNote = MaterialNote;
|
|
2827
2849
|
exports.MaterialTitle = MaterialTitle;
|
|
2828
2850
|
exports.MediaCaption = MediaCaption;
|