@meduza/ui-kit-2 0.7.3 → 0.7.5
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/ui-kit-2.cjs.development.js +263 -213
- 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 +263 -213
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit.css +224 -4
- package/package.json +1 -1
- package/src/RawHtmlBlock/index.tsx +5 -0
- package/src/VersesBlock/VersesBlock.module.css +12 -4
|
@@ -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$I = {"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-","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$I.root, true], [styles$I[size], !!size], [styles$I[theme], !!theme], [styles$I[appearance], !!appearance], [styles$I[state], !!state && !!styles$I[state]], [styles$I[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$I.loader
|
|
63
63
|
}, /*#__PURE__*/React.createElement(ButtonLoader, null)) : children);
|
|
64
64
|
};
|
|
65
65
|
|
|
@@ -231,7 +231,7 @@ const icons = {
|
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
233
|
|
|
234
|
-
var styles$
|
|
234
|
+
var styles$H = {"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"};
|
|
235
235
|
|
|
236
236
|
const SvgSymbol = ({
|
|
237
237
|
icon,
|
|
@@ -243,7 +243,7 @@ const SvgSymbol = ({
|
|
|
243
243
|
"data-testid": "svg-symbol",
|
|
244
244
|
xmlns: "http://www.w3.org/2000/svg",
|
|
245
245
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
246
|
-
className: makeClassName([[styles$
|
|
246
|
+
className: makeClassName([[styles$H.root, true], [styles$H[size], !!styles$H[size]], [styles$H[icon], !!styles$H[icon]], [styles$H[styleContext], !!styles$H[styleContext]]]),
|
|
247
247
|
width: data.width,
|
|
248
248
|
height: data.height,
|
|
249
249
|
viewBox: `0 0 ${data.width} ${data.height}`,
|
|
@@ -253,7 +253,7 @@ const SvgSymbol = ({
|
|
|
253
253
|
});
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
-
var styles$
|
|
256
|
+
var styles$G = {"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","children":"Switcher-module_children__uLapU","left":"Switcher-module_left__5-HNa","right":"Switcher-module_right__82Edk","isInPanel":"Switcher-module_isInPanel__-nBSf","isInMenu":"Switcher-module_isInMenu__RQVhp","isInLive":"Switcher-module_isInLive__ZyMCT"};
|
|
257
257
|
|
|
258
258
|
const Switcher = ({
|
|
259
259
|
enabled,
|
|
@@ -264,20 +264,20 @@ const Switcher = ({
|
|
|
264
264
|
theme = 'light'
|
|
265
265
|
}) => /*#__PURE__*/React.createElement("label", {
|
|
266
266
|
"data-testid": "switcher",
|
|
267
|
-
className: makeClassName([[styles$
|
|
267
|
+
className: makeClassName([[styles$G.root, true], [styles$G[theme], !!styles$G[theme]], [styles$G[styleContext], !!styles$G[styleContext]]])
|
|
268
268
|
}, children && childrenPosition === 'left' && /*#__PURE__*/React.createElement("div", {
|
|
269
|
-
className: makeClassName([[styles$
|
|
269
|
+
className: makeClassName([[styles$G.children, true], [styles$G.left, true]])
|
|
270
270
|
}, children), /*#__PURE__*/React.createElement("input", {
|
|
271
|
-
className: styles$
|
|
271
|
+
className: styles$G.input,
|
|
272
272
|
type: "checkbox",
|
|
273
273
|
checked: enabled,
|
|
274
274
|
onChange: onChange
|
|
275
275
|
}), /*#__PURE__*/React.createElement("span", {
|
|
276
|
-
className: styles$
|
|
276
|
+
className: styles$G.control
|
|
277
277
|
}, /*#__PURE__*/React.createElement("span", {
|
|
278
|
-
className: styles$
|
|
278
|
+
className: styles$G.knob
|
|
279
279
|
})), children && childrenPosition === 'right' && /*#__PURE__*/React.createElement("div", {
|
|
280
|
-
className: makeClassName([[styles$
|
|
280
|
+
className: makeClassName([[styles$G.children, true], [styles$G.right, true]])
|
|
281
281
|
}, children));
|
|
282
282
|
|
|
283
283
|
const makeStyleContext = (classNames, styleContext, styles) => {
|
|
@@ -303,7 +303,7 @@ const postMessage = (category, element, action) => {
|
|
|
303
303
|
}
|
|
304
304
|
};
|
|
305
305
|
|
|
306
|
-
var styles$
|
|
306
|
+
var styles$F = {"root":"Lazy-module_root__DWw8D"};
|
|
307
307
|
|
|
308
308
|
const Lazy = ({
|
|
309
309
|
children,
|
|
@@ -324,7 +324,7 @@ const Lazy = ({
|
|
|
324
324
|
}
|
|
325
325
|
}, [inView]);
|
|
326
326
|
return /*#__PURE__*/React.createElement("div", {
|
|
327
|
-
className: makeClassName([[styles$
|
|
327
|
+
className: makeClassName([[styles$F.root, true], [styles$F.visible, visible]]),
|
|
328
328
|
ref: ref,
|
|
329
329
|
"data-testid": "lazy"
|
|
330
330
|
}, visible && children);
|
|
@@ -417,7 +417,7 @@ const RenderPicture = ({
|
|
|
417
417
|
}));
|
|
418
418
|
};
|
|
419
419
|
|
|
420
|
-
var styles$
|
|
420
|
+
var styles$E = {"root":"Image-module_root__H5wAh","isLoaded":"Image-module_isLoaded__keFnD","wrapper":"Image-module_wrapper__gJtbB","fullscreen":"Image-module_fullscreen__4PU9c","dark":"Image-module_dark__qjo5O"};
|
|
421
421
|
|
|
422
422
|
const Image = ({
|
|
423
423
|
alt,
|
|
@@ -450,16 +450,16 @@ const Image = ({
|
|
|
450
450
|
};
|
|
451
451
|
/* fallback w325 url until w6 was released */
|
|
452
452
|
const fallbackSource = source && source[0] || optimized.w325 && optimized.w325['1x'] || optimized.original;
|
|
453
|
-
let classNames = [[styles$
|
|
453
|
+
let classNames = [[styles$E.root, true], [styles$E.isLoaded, isLoaded], [styles$E.fullscreen, lightBox && optimized && optimized.original && fullscreen]];
|
|
454
454
|
if (styleContext) {
|
|
455
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
455
|
+
classNames = makeStyleContext(classNames, styleContext, styles$E);
|
|
456
456
|
}
|
|
457
457
|
return /*#__PURE__*/React.createElement("div", {
|
|
458
458
|
className: makeClassName(classNames),
|
|
459
459
|
style: blockStyles,
|
|
460
460
|
"data-testid": "image"
|
|
461
461
|
}, /*#__PURE__*/React.createElement("div", {
|
|
462
|
-
className: styles$
|
|
462
|
+
className: styles$E.wrapper,
|
|
463
463
|
style: pictureStyles,
|
|
464
464
|
onClick: () => handleClick(),
|
|
465
465
|
onKeyPress: () => handleClick(),
|
|
@@ -487,7 +487,7 @@ const Image = ({
|
|
|
487
487
|
})));
|
|
488
488
|
};
|
|
489
489
|
|
|
490
|
-
var styles$
|
|
490
|
+
var styles$D = {"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"};
|
|
491
491
|
|
|
492
492
|
const Popover = ({
|
|
493
493
|
children,
|
|
@@ -519,20 +519,20 @@ const Popover = ({
|
|
|
519
519
|
/* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */
|
|
520
520
|
return /*#__PURE__*/React.createElement("div", {
|
|
521
521
|
"data-testid": "popover",
|
|
522
|
-
className: makeClassName([[styles$
|
|
522
|
+
className: makeClassName([[styles$D.root, true], [styles$D.visible, visible]])
|
|
523
523
|
}, /*#__PURE__*/React.createElement("div", {
|
|
524
|
-
className: styles$
|
|
524
|
+
className: styles$D.overlay,
|
|
525
525
|
onClick: () => handleClose()
|
|
526
526
|
}), /*#__PURE__*/React.createElement("div", {
|
|
527
|
-
className: styles$
|
|
527
|
+
className: styles$D.container
|
|
528
528
|
}, /*#__PURE__*/React.createElement("button", {
|
|
529
529
|
type: "button",
|
|
530
|
-
className: styles$
|
|
530
|
+
className: styles$D.dismiss,
|
|
531
531
|
onClick: () => handleClose(),
|
|
532
532
|
"aria-label": "dismiss"
|
|
533
533
|
}), /*#__PURE__*/React.createElement("svg", {
|
|
534
534
|
width: "100%",
|
|
535
|
-
className: styles$
|
|
535
|
+
className: styles$D.background
|
|
536
536
|
}, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("mask", {
|
|
537
537
|
id: "myMask",
|
|
538
538
|
x: "0",
|
|
@@ -561,11 +561,11 @@ const Popover = ({
|
|
|
561
561
|
width: "100%",
|
|
562
562
|
height: "100%"
|
|
563
563
|
})), /*#__PURE__*/React.createElement("div", {
|
|
564
|
-
className: styles$
|
|
564
|
+
className: styles$D.body
|
|
565
565
|
}, children)));
|
|
566
566
|
};
|
|
567
567
|
|
|
568
|
-
var styles$
|
|
568
|
+
var styles$C = {"root":"Footnote-module_root__W5D8G","body":"Footnote-module_body__C-ZC-","dismiss":"Footnote-module_dismiss__Q2hAX"};
|
|
569
569
|
|
|
570
570
|
const Footnote = ({
|
|
571
571
|
children,
|
|
@@ -573,16 +573,16 @@ const Footnote = ({
|
|
|
573
573
|
}) => {
|
|
574
574
|
return /*#__PURE__*/React.createElement("div", {
|
|
575
575
|
"data-testid": "footnote",
|
|
576
|
-
className: makeClassName([[styles$
|
|
576
|
+
className: makeClassName([[styles$C.root, true]])
|
|
577
577
|
}, /*#__PURE__*/React.createElement("button", {
|
|
578
|
-
className: styles$
|
|
578
|
+
className: styles$C.dismiss,
|
|
579
579
|
type: "button",
|
|
580
580
|
onClick: () => onClose()
|
|
581
581
|
}, /*#__PURE__*/React.createElement(SvgSymbol, {
|
|
582
582
|
icon: "cross",
|
|
583
583
|
size: "unset"
|
|
584
584
|
})), /*#__PURE__*/React.createElement("div", {
|
|
585
|
-
className: styles$
|
|
585
|
+
className: styles$C.body
|
|
586
586
|
}, children));
|
|
587
587
|
};
|
|
588
588
|
|
|
@@ -591,7 +591,7 @@ var viewportSize = (() => ({
|
|
|
591
591
|
height: window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
|
|
592
592
|
}));
|
|
593
593
|
|
|
594
|
-
var styles$
|
|
594
|
+
var styles$B = {"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"};
|
|
595
595
|
|
|
596
596
|
const DotsOnImage = ({
|
|
597
597
|
block: {
|
|
@@ -673,7 +673,7 @@ const DotsOnImage = ({
|
|
|
673
673
|
});
|
|
674
674
|
};
|
|
675
675
|
return /*#__PURE__*/React.createElement("div", {
|
|
676
|
-
className: makeClassName([[styles$
|
|
676
|
+
className: makeClassName([[styles$B.root, true], [styles$B.isVisible, visible]]),
|
|
677
677
|
"data-testid": "dots-on-image",
|
|
678
678
|
ref: ref
|
|
679
679
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
@@ -686,7 +686,7 @@ const DotsOnImage = ({
|
|
|
686
686
|
}), /*#__PURE__*/React.createElement("div", {
|
|
687
687
|
ref: container
|
|
688
688
|
}, dots.map(dot => /*#__PURE__*/React.createElement("div", {
|
|
689
|
-
className: styles$
|
|
689
|
+
className: styles$B.dot,
|
|
690
690
|
key: dot.id,
|
|
691
691
|
style: {
|
|
692
692
|
top: `${dot.position.y}%`,
|
|
@@ -694,7 +694,7 @@ const DotsOnImage = ({
|
|
|
694
694
|
transform: `scale(${ratio}) translate(-${50 / ratio}%, -${50 / ratio}%)`
|
|
695
695
|
}
|
|
696
696
|
}, /*#__PURE__*/React.createElement("button", {
|
|
697
|
-
className: makeClassName([[styles$
|
|
697
|
+
className: makeClassName([[styles$B.marker, true], [styles$B.isActive, dot.id === popover.id]]),
|
|
698
698
|
type: "button",
|
|
699
699
|
style: {
|
|
700
700
|
backgroundColor: dot.icon.color
|
|
@@ -705,7 +705,7 @@ const DotsOnImage = ({
|
|
|
705
705
|
__html: dot.icon.svg_string
|
|
706
706
|
}
|
|
707
707
|
}), dot.icon.type === 'number' && dot.icon.number))), popover.show && /*#__PURE__*/React.createElement(React.Fragment, null, viewportSize().width >= MediaQuerySizes.LANDSCAPE_TABLET ? /*#__PURE__*/React.createElement("div", {
|
|
708
|
-
className: makeClassName([[styles$
|
|
708
|
+
className: makeClassName([[styles$B.popover, true], [styles$B[popover.side], !!popover.side], [styles$B[popover.align], !!popover.align]]),
|
|
709
709
|
style: popover.style
|
|
710
710
|
}, /*#__PURE__*/React.createElement(Footnote, {
|
|
711
711
|
onClose: () => {
|
|
@@ -730,7 +730,7 @@ const DotsOnImage = ({
|
|
|
730
730
|
})))));
|
|
731
731
|
};
|
|
732
732
|
|
|
733
|
-
var styles$
|
|
733
|
+
var styles$A = {"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","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","mobile":"Tag-module_mobile__19oMH","desktop":"Tag-module_desktop__cNyQs"};
|
|
734
734
|
|
|
735
735
|
const Tag = ({
|
|
736
736
|
children,
|
|
@@ -740,9 +740,9 @@ const Tag = ({
|
|
|
740
740
|
correlation,
|
|
741
741
|
onlyOn
|
|
742
742
|
}) => {
|
|
743
|
-
let classNames = [[styles$
|
|
743
|
+
let classNames = [[styles$A.root, true], [styles$A[size], !!size && !!styles$A[size]], [styles$A[theme], !!theme && !!styles$A[theme]], [styles$A[onlyOn], !!onlyOn && !!styles$A[onlyOn]], [styles$A[correlation], !!correlation && !!styles$A[correlation]]];
|
|
744
744
|
if (styleContext) {
|
|
745
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
745
|
+
classNames = makeStyleContext(classNames, styleContext, styles$A);
|
|
746
746
|
}
|
|
747
747
|
return /*#__PURE__*/React.createElement("div", {
|
|
748
748
|
"data-testid": "tag",
|
|
@@ -750,34 +750,34 @@ const Tag = ({
|
|
|
750
750
|
}, children);
|
|
751
751
|
};
|
|
752
752
|
|
|
753
|
-
var styles$
|
|
753
|
+
var styles$z = {"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"};
|
|
754
754
|
|
|
755
755
|
const MediaCaption = ({
|
|
756
756
|
credit,
|
|
757
757
|
caption,
|
|
758
758
|
styleContext
|
|
759
759
|
}) => {
|
|
760
|
-
let classNames = [[styles$
|
|
760
|
+
let classNames = [[styles$z.root, true]];
|
|
761
761
|
if (styleContext) {
|
|
762
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
762
|
+
classNames = makeStyleContext(classNames, styleContext, styles$z);
|
|
763
763
|
}
|
|
764
764
|
return /*#__PURE__*/React.createElement("div", {
|
|
765
765
|
"data-testid": "media-caption",
|
|
766
766
|
className: makeClassName(classNames)
|
|
767
767
|
}, caption && /*#__PURE__*/React.createElement("div", {
|
|
768
|
-
className: styles$
|
|
768
|
+
className: styles$z.caption,
|
|
769
769
|
dangerouslySetInnerHTML: {
|
|
770
770
|
__html: caption
|
|
771
771
|
}
|
|
772
772
|
}), credit && /*#__PURE__*/React.createElement("div", {
|
|
773
|
-
className: styles$
|
|
773
|
+
className: styles$z.credit,
|
|
774
774
|
dangerouslySetInnerHTML: {
|
|
775
775
|
__html: credit
|
|
776
776
|
}
|
|
777
777
|
}));
|
|
778
778
|
};
|
|
779
779
|
|
|
780
|
-
var styles$
|
|
780
|
+
var styles$y = {"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"};
|
|
781
781
|
|
|
782
782
|
const Table = ({
|
|
783
783
|
styleContext,
|
|
@@ -799,26 +799,26 @@ const Table = ({
|
|
|
799
799
|
'#e7f2ef': 'green',
|
|
800
800
|
'#f4f0f8': 'violet'
|
|
801
801
|
};
|
|
802
|
-
let classNames = [[styles$
|
|
802
|
+
let classNames = [[styles$y.root, true], [styles$y[display], !!display && !!styles$y[display]]];
|
|
803
803
|
if (styleContext) {
|
|
804
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
804
|
+
classNames = makeStyleContext(classNames, styleContext, styles$y);
|
|
805
805
|
}
|
|
806
806
|
return /*#__PURE__*/React.createElement("div", {
|
|
807
807
|
"data-testid": "table",
|
|
808
808
|
className: makeClassName(classNames)
|
|
809
809
|
}, /*#__PURE__*/React.createElement("div", {
|
|
810
|
-
className: styles$
|
|
810
|
+
className: styles$y.wrapper
|
|
811
811
|
}, /*#__PURE__*/React.createElement("div", {
|
|
812
|
-
className: styles$
|
|
812
|
+
className: styles$y.table
|
|
813
813
|
}, /*#__PURE__*/React.createElement("div", {
|
|
814
|
-
className: styles$
|
|
814
|
+
className: styles$y.tracks
|
|
815
815
|
}, rows.map((row, i) => {
|
|
816
816
|
return /*#__PURE__*/React.createElement("div", {
|
|
817
817
|
key: row.key,
|
|
818
|
-
className: styles$
|
|
818
|
+
className: styles$y.row
|
|
819
819
|
}, row.cells.map((cell, j) => /*#__PURE__*/React.createElement("div", {
|
|
820
820
|
key: cell.key,
|
|
821
|
-
className: makeClassName([[styles$
|
|
821
|
+
className: makeClassName([[styles$y.cell, true], [styles$y.header, options.header && i === 0], [styles$y[colors[cell.color]], true], [styles$y[columnsWidth[j]], true], [styles$y.fixedColumn, options.fixed_first_column && j === 0]]),
|
|
822
822
|
dangerouslySetInnerHTML: {
|
|
823
823
|
__html: cell.val
|
|
824
824
|
}
|
|
@@ -829,7 +829,7 @@ const Table = ({
|
|
|
829
829
|
}));
|
|
830
830
|
};
|
|
831
831
|
|
|
832
|
-
var styles$
|
|
832
|
+
var styles$x = {"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"};
|
|
833
833
|
|
|
834
834
|
const MaterialNote = ({
|
|
835
835
|
block: {
|
|
@@ -837,15 +837,15 @@ const MaterialNote = ({
|
|
|
837
837
|
},
|
|
838
838
|
styleContext
|
|
839
839
|
}) => {
|
|
840
|
-
let classNames = [[styles$
|
|
840
|
+
let classNames = [[styles$x.root, true]];
|
|
841
841
|
if (styleContext) {
|
|
842
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
842
|
+
classNames = makeStyleContext(classNames, styleContext, styles$x);
|
|
843
843
|
}
|
|
844
844
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
845
845
|
"data-testid": "material-note",
|
|
846
846
|
className: makeClassName(classNames)
|
|
847
847
|
}, data && data.map(item => /*#__PURE__*/React.createElement("p", {
|
|
848
|
-
className: styles$
|
|
848
|
+
className: styles$x[item.type],
|
|
849
849
|
key: item.id,
|
|
850
850
|
dangerouslySetInnerHTML: {
|
|
851
851
|
__html: item.data
|
|
@@ -853,7 +853,7 @@ const MaterialNote = ({
|
|
|
853
853
|
}))));
|
|
854
854
|
};
|
|
855
855
|
|
|
856
|
-
var styles$
|
|
856
|
+
var styles$w = {"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-"};
|
|
857
857
|
|
|
858
858
|
const BookmarkButton = ({
|
|
859
859
|
styleContext,
|
|
@@ -861,15 +861,15 @@ const BookmarkButton = ({
|
|
|
861
861
|
isInBookmarks,
|
|
862
862
|
onClick
|
|
863
863
|
}) => {
|
|
864
|
-
let classNames = [[styles$
|
|
864
|
+
let classNames = [[styles$w.root, true], [styles$w.isInBookmarks, isInBookmarks], [styles$w[theme], !!theme && !!styles$w[theme]]];
|
|
865
865
|
if (styleContext) {
|
|
866
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
866
|
+
classNames = makeStyleContext(classNames, styleContext, styles$w);
|
|
867
867
|
}
|
|
868
868
|
return /*#__PURE__*/React.createElement("div", {
|
|
869
869
|
"data-testid": "bookmark-button",
|
|
870
870
|
className: makeClassName(classNames)
|
|
871
871
|
}, /*#__PURE__*/React.createElement("button", {
|
|
872
|
-
className: styles$
|
|
872
|
+
className: styles$w.control,
|
|
873
873
|
onClick: () => onClick(),
|
|
874
874
|
type: "button"
|
|
875
875
|
}, /*#__PURE__*/React.createElement(SvgSymbol, {
|
|
@@ -878,39 +878,39 @@ const BookmarkButton = ({
|
|
|
878
878
|
})));
|
|
879
879
|
};
|
|
880
880
|
|
|
881
|
-
var styles$
|
|
881
|
+
var styles$v = {"root":"MaterialTitle-module_root__VSphO","primary":"MaterialTitle-module_primary__XGnpb","secondary":"MaterialTitle-module_secondary__7IDEp"};
|
|
882
882
|
|
|
883
883
|
const Primary = ({
|
|
884
884
|
children
|
|
885
885
|
}) => {
|
|
886
886
|
return /*#__PURE__*/React.createElement("span", {
|
|
887
|
-
className: styles$
|
|
887
|
+
className: styles$v.primary
|
|
888
888
|
}, children);
|
|
889
889
|
};
|
|
890
890
|
const Secondary = ({
|
|
891
891
|
children
|
|
892
892
|
}) => {
|
|
893
893
|
return /*#__PURE__*/React.createElement("span", {
|
|
894
|
-
className: styles$
|
|
894
|
+
className: styles$v.secondary
|
|
895
895
|
}, children);
|
|
896
896
|
};
|
|
897
897
|
const MaterialTitle = ({
|
|
898
898
|
children
|
|
899
899
|
}) => {
|
|
900
900
|
return /*#__PURE__*/React.createElement("h1", {
|
|
901
|
-
className: styles$
|
|
901
|
+
className: styles$v.root,
|
|
902
902
|
"data-testid": "material-title"
|
|
903
903
|
}, children);
|
|
904
904
|
};
|
|
905
905
|
|
|
906
|
-
var styles$
|
|
906
|
+
var styles$u = {"root":"Dropdown-module_root__Wv7S-","active":"Dropdown-module_active__jEkE7","menu":"Dropdown-module_menu__11IQL","isInAudioPanel":"Dropdown-module_isInAudioPanel__UniSV"};
|
|
907
907
|
|
|
908
908
|
const Menu = ({
|
|
909
909
|
children
|
|
910
910
|
}) => {
|
|
911
911
|
return /*#__PURE__*/React.createElement("div", {
|
|
912
912
|
"data-testid": "dropdown",
|
|
913
|
-
className: styles$
|
|
913
|
+
className: styles$u.menu
|
|
914
914
|
}, children);
|
|
915
915
|
};
|
|
916
916
|
const Dropdown = ({
|
|
@@ -918,9 +918,9 @@ const Dropdown = ({
|
|
|
918
918
|
active,
|
|
919
919
|
styleContext
|
|
920
920
|
}) => {
|
|
921
|
-
let classNames = [[styles$
|
|
921
|
+
let classNames = [[styles$u.root, true], [styles$u.active, !!active && !!styles$u.active]];
|
|
922
922
|
if (styleContext) {
|
|
923
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
923
|
+
classNames = makeStyleContext(classNames, styleContext, styles$u);
|
|
924
924
|
}
|
|
925
925
|
return /*#__PURE__*/React.createElement("div", {
|
|
926
926
|
"data-testid": "dropdown",
|
|
@@ -928,13 +928,13 @@ const Dropdown = ({
|
|
|
928
928
|
}, children);
|
|
929
929
|
};
|
|
930
930
|
|
|
931
|
-
var styles$
|
|
931
|
+
var styles$t = {"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"};
|
|
932
932
|
|
|
933
933
|
const ToolbarItem = ({
|
|
934
934
|
children
|
|
935
935
|
}) => {
|
|
936
936
|
return /*#__PURE__*/React.createElement("li", {
|
|
937
|
-
className: styles$
|
|
937
|
+
className: styles$t.item
|
|
938
938
|
}, children);
|
|
939
939
|
};
|
|
940
940
|
|
|
@@ -942,19 +942,19 @@ const Toolbar = ({
|
|
|
942
942
|
children,
|
|
943
943
|
styleContext
|
|
944
944
|
}) => {
|
|
945
|
-
let classNames = [[styles$
|
|
945
|
+
let classNames = [[styles$t.root, true]];
|
|
946
946
|
if (styleContext) {
|
|
947
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
947
|
+
classNames = makeStyleContext(classNames, styleContext, styles$t);
|
|
948
948
|
}
|
|
949
949
|
return /*#__PURE__*/React.createElement("div", {
|
|
950
950
|
"data-testid": "toolbar",
|
|
951
951
|
className: makeClassName(classNames)
|
|
952
952
|
}, /*#__PURE__*/React.createElement("ul", {
|
|
953
|
-
className: styles$
|
|
953
|
+
className: styles$t.list
|
|
954
954
|
}, children));
|
|
955
955
|
};
|
|
956
956
|
|
|
957
|
-
var styles$
|
|
957
|
+
var styles$s = {"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","mobile":"Meta-module_mobile__PbG8N","desktop":"Meta-module_desktop__W5AB7"};
|
|
958
958
|
|
|
959
959
|
const Meta = ({
|
|
960
960
|
hasSource,
|
|
@@ -963,9 +963,9 @@ const Meta = ({
|
|
|
963
963
|
onlyOn,
|
|
964
964
|
styleContext
|
|
965
965
|
}) => {
|
|
966
|
-
let classNames = [[styles$
|
|
966
|
+
let classNames = [[styles$s.root, true], [styles$s[theme], !!theme && !!styles$s[theme]], [styles$s[onlyOn], !!onlyOn], [styles$s.hasSource, hasSource]];
|
|
967
967
|
if (styleContext) {
|
|
968
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
968
|
+
classNames = makeStyleContext(classNames, styleContext, styles$s);
|
|
969
969
|
}
|
|
970
970
|
return /*#__PURE__*/React.createElement("div", {
|
|
971
971
|
"data-testid": "meta",
|
|
@@ -973,7 +973,7 @@ const Meta = ({
|
|
|
973
973
|
}, children);
|
|
974
974
|
};
|
|
975
975
|
|
|
976
|
-
var styles$
|
|
976
|
+
var styles$r = {"root":"Timestamp-module_root__jPJ6w"};
|
|
977
977
|
|
|
978
978
|
const Timestamp = ({
|
|
979
979
|
publishedAt,
|
|
@@ -997,7 +997,7 @@ const Timestamp = ({
|
|
|
997
997
|
return /*#__PURE__*/React.createElement("time", {
|
|
998
998
|
suppressHydrationWarning: true,
|
|
999
999
|
"data-testid": "timestamp",
|
|
1000
|
-
className: styles$
|
|
1000
|
+
className: styles$r.root
|
|
1001
1001
|
}, published);
|
|
1002
1002
|
};
|
|
1003
1003
|
|
|
@@ -1057,7 +1057,7 @@ const DangerousHTML = ({
|
|
|
1057
1057
|
}));
|
|
1058
1058
|
};
|
|
1059
1059
|
|
|
1060
|
-
var styles$
|
|
1060
|
+
var styles$q = {"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","mobile":"EmbedBlock-module_mobile__lEuww","desktop":"EmbedBlock-module_desktop__599S7"};
|
|
1061
1061
|
|
|
1062
1062
|
const EmbedGif = ({
|
|
1063
1063
|
gif,
|
|
@@ -1095,9 +1095,9 @@ const EmbedGif = ({
|
|
|
1095
1095
|
};
|
|
1096
1096
|
}, []);
|
|
1097
1097
|
return /*#__PURE__*/React.createElement("div", {
|
|
1098
|
-
className: styles$
|
|
1098
|
+
className: styles$q.figure
|
|
1099
1099
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1100
|
-
className: styles$
|
|
1100
|
+
className: styles$q.objectWrap,
|
|
1101
1101
|
style: style,
|
|
1102
1102
|
"data-frozen": videoFrozen
|
|
1103
1103
|
}, /*#__PURE__*/React.createElement("video", {
|
|
@@ -1157,7 +1157,7 @@ const EmbedBlock = ({
|
|
|
1157
1157
|
case 'image':
|
|
1158
1158
|
{
|
|
1159
1159
|
return /*#__PURE__*/React.createElement("div", {
|
|
1160
|
-
className: styles$
|
|
1160
|
+
className: styles$q.figure
|
|
1161
1161
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
1162
1162
|
source: !optimized && [small, large],
|
|
1163
1163
|
optimized: block.data.optimized,
|
|
@@ -1172,7 +1172,7 @@ const EmbedBlock = ({
|
|
|
1172
1172
|
case 'game_embed':
|
|
1173
1173
|
{
|
|
1174
1174
|
return /*#__PURE__*/React.createElement("div", {
|
|
1175
|
-
className: styles$
|
|
1175
|
+
className: styles$q.gameEmbed
|
|
1176
1176
|
}, /*#__PURE__*/React.createElement("iframe", {
|
|
1177
1177
|
src: block.data.game_src,
|
|
1178
1178
|
id: block.data.game_id,
|
|
@@ -1182,7 +1182,7 @@ const EmbedBlock = ({
|
|
|
1182
1182
|
case 'dots_on_image':
|
|
1183
1183
|
{
|
|
1184
1184
|
return /*#__PURE__*/React.createElement("div", {
|
|
1185
|
-
className: styles$
|
|
1185
|
+
className: styles$q.figure
|
|
1186
1186
|
}, /*#__PURE__*/React.createElement(DotsOnImage, {
|
|
1187
1187
|
block: data
|
|
1188
1188
|
}));
|
|
@@ -1190,12 +1190,12 @@ const EmbedBlock = ({
|
|
|
1190
1190
|
default:
|
|
1191
1191
|
{
|
|
1192
1192
|
return /*#__PURE__*/React.createElement("div", {
|
|
1193
|
-
className: styles$
|
|
1193
|
+
className: styles$q.object
|
|
1194
1194
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1195
|
-
className: styles$
|
|
1195
|
+
className: styles$q.wrapper,
|
|
1196
1196
|
style: style
|
|
1197
1197
|
}, /*#__PURE__*/React.createElement(DangerousHTML, {
|
|
1198
|
-
className: styles$
|
|
1198
|
+
className: styles$q.objectWrap,
|
|
1199
1199
|
html: html
|
|
1200
1200
|
})));
|
|
1201
1201
|
}
|
|
@@ -1205,28 +1205,28 @@ const EmbedBlock = ({
|
|
|
1205
1205
|
style.paddingBottom = `${block.data.height / block.data.width * 100}%`;
|
|
1206
1206
|
style.height = 0;
|
|
1207
1207
|
}
|
|
1208
|
-
let classNames = [[styles$
|
|
1208
|
+
let classNames = [[styles$q.root, true], [styles$q.cc, cc], [styles$q[display], !!display && styles$q[display]], [styles$q[provider], !!provider && !!styles$q[provider]], [styles$q[onlyOn], !!onlyOn && styles$q[onlyOn]], [styles$q.mobileFullwidth, mobileFullwidth], [styles$q.proportional, isProportional]];
|
|
1209
1209
|
// Убираем из контекста все, что не начинается с приставки isIn,
|
|
1210
1210
|
// чтобы не применились лишние модификаторы
|
|
1211
1211
|
// TODO: в w6 модификаторы должны передаваться явно
|
|
1212
1212
|
if (styleContext && Array.isArray(styleContext)) {
|
|
1213
|
-
const filteredContext = styleContext.filter(key => key.startsWith('isIn') && styles$
|
|
1213
|
+
const filteredContext = styleContext.filter(key => key.startsWith('isIn') && styles$q[key]).reduce((acc, key) => {
|
|
1214
1214
|
acc.push(key);
|
|
1215
1215
|
return acc;
|
|
1216
1216
|
}, []);
|
|
1217
|
-
classNames = makeStyleContext(classNames, filteredContext, styles$
|
|
1217
|
+
classNames = makeStyleContext(classNames, filteredContext, styles$q);
|
|
1218
1218
|
}
|
|
1219
1219
|
return /*#__PURE__*/React.createElement("figure", {
|
|
1220
1220
|
className: makeClassName(classNames)
|
|
1221
1221
|
}, children && /*#__PURE__*/React.createElement("div", {
|
|
1222
|
-
className: styles$
|
|
1222
|
+
className: styles$q.object
|
|
1223
1223
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1224
|
-
className: styles$
|
|
1224
|
+
className: styles$q.wrapper,
|
|
1225
1225
|
style: style
|
|
1226
1226
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1227
|
-
className: styles$
|
|
1227
|
+
className: styles$q.objectWrap
|
|
1228
1228
|
}, children))), !children && renderEmbed(style), cc === 'default' && /*#__PURE__*/React.createElement("figcaption", null, renderCC()), cc === 'button' && /*#__PURE__*/React.createElement("button", {
|
|
1229
|
-
className: styles$
|
|
1229
|
+
className: styles$q.control,
|
|
1230
1230
|
type: "button",
|
|
1231
1231
|
"aria-label": "Open",
|
|
1232
1232
|
onClick: () => {
|
|
@@ -1329,7 +1329,7 @@ const EmbedBlockContainer = ({
|
|
|
1329
1329
|
});
|
|
1330
1330
|
};
|
|
1331
1331
|
|
|
1332
|
-
var styles$
|
|
1332
|
+
var styles$p = {"root":"QuoteBlock-module_root__4qa1J","center":"QuoteBlock-module_center__1f83y"};
|
|
1333
1333
|
|
|
1334
1334
|
const QuoteBlock = ({
|
|
1335
1335
|
block: {
|
|
@@ -1337,9 +1337,9 @@ const QuoteBlock = ({
|
|
|
1337
1337
|
},
|
|
1338
1338
|
styleContext
|
|
1339
1339
|
}) => {
|
|
1340
|
-
let classNames = [[styles$
|
|
1340
|
+
let classNames = [[styles$p.root, true]];
|
|
1341
1341
|
if (styleContext) {
|
|
1342
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1342
|
+
classNames = makeStyleContext(classNames, styleContext, styles$p);
|
|
1343
1343
|
}
|
|
1344
1344
|
return /*#__PURE__*/React.createElement("div", {
|
|
1345
1345
|
"data-testid": "quote-block",
|
|
@@ -1351,7 +1351,7 @@ const QuoteBlock = ({
|
|
|
1351
1351
|
}));
|
|
1352
1352
|
};
|
|
1353
1353
|
|
|
1354
|
-
var styles$
|
|
1354
|
+
var styles$o = {"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"};
|
|
1355
1355
|
|
|
1356
1356
|
const CardTitle = ({
|
|
1357
1357
|
block: {
|
|
@@ -1365,15 +1365,15 @@ const CardTitle = ({
|
|
|
1365
1365
|
}) => {
|
|
1366
1366
|
return /*#__PURE__*/React.createElement("div", {
|
|
1367
1367
|
"data-testid": "card-title",
|
|
1368
|
-
className: makeClassName([[styles$
|
|
1368
|
+
className: makeClassName([[styles$o.root, true], [styles$o[onlyOn], !!onlyOn], [styles$o[styleContext], !!styleContext && !!styles$o[styleContext]]])
|
|
1369
1369
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1370
|
-
className: styles$
|
|
1370
|
+
className: styles$o.index
|
|
1371
1371
|
}, index), /*#__PURE__*/React.createElement("h3", {
|
|
1372
|
-
className: styles$
|
|
1372
|
+
className: styles$o.title
|
|
1373
1373
|
}, text));
|
|
1374
1374
|
};
|
|
1375
1375
|
|
|
1376
|
-
var styles$
|
|
1376
|
+
var styles$n = {"root":"ChapterBlock-module_root__iw7d2","subtitle":"ChapterBlock-module_subtitle__IpWgz","mobile":"ChapterBlock-module_mobile__V1Eye","desktop":"ChapterBlock-module_desktop__9xWf4"};
|
|
1377
1377
|
|
|
1378
1378
|
const ChapterBlock = ({
|
|
1379
1379
|
block: {
|
|
@@ -1386,9 +1386,9 @@ const ChapterBlock = ({
|
|
|
1386
1386
|
return /*#__PURE__*/React.createElement("div", {
|
|
1387
1387
|
"data-testid": "chapter-block",
|
|
1388
1388
|
id: id,
|
|
1389
|
-
className: makeClassName([[styles$
|
|
1389
|
+
className: makeClassName([[styles$n.root, true], [styles$n[onlyOn], !!onlyOn]])
|
|
1390
1390
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1391
|
-
className: makeClassName([[styles$
|
|
1391
|
+
className: makeClassName([[styles$n.subtitle, true], [styles$n[styleContext], !!styleContext && !!styles$n[styleContext]]]),
|
|
1392
1392
|
dangerouslySetInnerHTML: {
|
|
1393
1393
|
__html: data
|
|
1394
1394
|
}
|
|
@@ -1404,7 +1404,7 @@ const generateGradient = (color, type) => {
|
|
|
1404
1404
|
return `linear-gradient(-180deg, ${gradient})`;
|
|
1405
1405
|
};
|
|
1406
1406
|
|
|
1407
|
-
var styles$
|
|
1407
|
+
var styles$m = {"root":"SimpleTitle-module_root__YOzNn","mobile":"SimpleTitle-module_mobile__1QiJd","desktop":"SimpleTitle-module_desktop__ZF5Af"};
|
|
1408
1408
|
|
|
1409
1409
|
const SimpleTitle = ({
|
|
1410
1410
|
block: {
|
|
@@ -1415,9 +1415,9 @@ const SimpleTitle = ({
|
|
|
1415
1415
|
},
|
|
1416
1416
|
styleContext
|
|
1417
1417
|
}) => {
|
|
1418
|
-
let classNames = [[styles$
|
|
1418
|
+
let classNames = [[styles$m.root, true], [styles$m[onlyOn], true]];
|
|
1419
1419
|
if (styleContext) {
|
|
1420
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1420
|
+
classNames = makeStyleContext(classNames, styleContext, styles$m);
|
|
1421
1421
|
}
|
|
1422
1422
|
return /*#__PURE__*/React.createElement("h1", {
|
|
1423
1423
|
"data-testid": "simple-title",
|
|
@@ -1425,7 +1425,7 @@ const SimpleTitle = ({
|
|
|
1425
1425
|
}, first);
|
|
1426
1426
|
};
|
|
1427
1427
|
|
|
1428
|
-
var styles$
|
|
1428
|
+
var styles$l = {"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","mobile":"RichTitle-module_mobile__W5L9E","desktop":"RichTitle-module_desktop__k0PkC"};
|
|
1429
1429
|
|
|
1430
1430
|
const RichTitle = ({
|
|
1431
1431
|
block: {
|
|
@@ -1439,9 +1439,9 @@ const RichTitle = ({
|
|
|
1439
1439
|
},
|
|
1440
1440
|
styleContext
|
|
1441
1441
|
}) => {
|
|
1442
|
-
let classNames = [[styles$
|
|
1442
|
+
let classNames = [[styles$l.root, true], [styles$l[onlyOn], true], [styles$l.featured, !!featured]];
|
|
1443
1443
|
if (styleContext) {
|
|
1444
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1444
|
+
classNames = makeStyleContext(classNames, styleContext, styles$l);
|
|
1445
1445
|
}
|
|
1446
1446
|
return /*#__PURE__*/React.createElement(TagName, {
|
|
1447
1447
|
"data-testid": "rich-title",
|
|
@@ -1449,7 +1449,7 @@ const RichTitle = ({
|
|
|
1449
1449
|
}, first, second && /*#__PURE__*/React.createElement("span", null, " ", second));
|
|
1450
1450
|
};
|
|
1451
1451
|
|
|
1452
|
-
var styles$
|
|
1452
|
+
var styles$k = {"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"};
|
|
1453
1453
|
|
|
1454
1454
|
const SimpleBlock = ({
|
|
1455
1455
|
block: {
|
|
@@ -1461,9 +1461,9 @@ const SimpleBlock = ({
|
|
|
1461
1461
|
id = null
|
|
1462
1462
|
}) => {
|
|
1463
1463
|
let TagName;
|
|
1464
|
-
let classNames = [[styles$
|
|
1464
|
+
let classNames = [[styles$k[type], !!type && !!styles$k[type]], [styles$k[onlyOn], true]];
|
|
1465
1465
|
if (styleContext) {
|
|
1466
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1466
|
+
classNames = makeStyleContext(classNames, styleContext, styles$k);
|
|
1467
1467
|
}
|
|
1468
1468
|
switch (type) {
|
|
1469
1469
|
case 'context_p':
|
|
@@ -1495,7 +1495,7 @@ const SimpleBlock = ({
|
|
|
1495
1495
|
});
|
|
1496
1496
|
};
|
|
1497
1497
|
|
|
1498
|
-
var styles$
|
|
1498
|
+
var styles$j = {"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"};
|
|
1499
1499
|
|
|
1500
1500
|
const ListBlock = ({
|
|
1501
1501
|
block: {
|
|
@@ -1506,9 +1506,9 @@ const ListBlock = ({
|
|
|
1506
1506
|
styleContext
|
|
1507
1507
|
}) => {
|
|
1508
1508
|
const TagName = type;
|
|
1509
|
-
let classNames = [[styles$
|
|
1509
|
+
let classNames = [[styles$j.root, true], [styles$j[onlyOn], true], [styles$j[type], !!type && !!styles$j[type]]];
|
|
1510
1510
|
if (styleContext) {
|
|
1511
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1511
|
+
classNames = makeStyleContext(classNames, styleContext, styles$j);
|
|
1512
1512
|
}
|
|
1513
1513
|
return /*#__PURE__*/React.createElement(TagName, {
|
|
1514
1514
|
className: makeClassName(classNames),
|
|
@@ -1521,7 +1521,7 @@ const ListBlock = ({
|
|
|
1521
1521
|
})));
|
|
1522
1522
|
};
|
|
1523
1523
|
|
|
1524
|
-
var styles$
|
|
1524
|
+
var styles$i = {"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"};
|
|
1525
1525
|
|
|
1526
1526
|
const RelatedBlock = ({
|
|
1527
1527
|
block: {
|
|
@@ -1533,28 +1533,28 @@ const RelatedBlock = ({
|
|
|
1533
1533
|
},
|
|
1534
1534
|
styleContext
|
|
1535
1535
|
}) => {
|
|
1536
|
-
let classNames = [[styles$
|
|
1536
|
+
let classNames = [[styles$i.root, true], [styles$i[onlyOn], true]];
|
|
1537
1537
|
if (styleContext) {
|
|
1538
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1538
|
+
classNames = makeStyleContext(classNames, styleContext, styles$i);
|
|
1539
1539
|
}
|
|
1540
1540
|
return /*#__PURE__*/React.createElement("div", {
|
|
1541
1541
|
"data-testid": "related-block",
|
|
1542
1542
|
className: makeClassName(classNames)
|
|
1543
1543
|
}, /*#__PURE__*/React.createElement("h3", {
|
|
1544
|
-
className: styles$
|
|
1544
|
+
className: styles$i.header
|
|
1545
1545
|
}, title), /*#__PURE__*/React.createElement("ul", {
|
|
1546
|
-
className: styles$
|
|
1546
|
+
className: styles$i.items
|
|
1547
1547
|
}, related.map((item, index) => /*#__PURE__*/React.createElement("li", {
|
|
1548
1548
|
key: item.id || index,
|
|
1549
|
-
className: styles$
|
|
1549
|
+
className: styles$i[item.layout]
|
|
1550
1550
|
}, /*#__PURE__*/React.createElement(reactRouterDom.Link, {
|
|
1551
1551
|
to: item.full_url || `/${item.url}`
|
|
1552
1552
|
}, /*#__PURE__*/React.createElement("span", {
|
|
1553
|
-
className: styles$
|
|
1553
|
+
className: styles$i.first
|
|
1554
1554
|
}, item.title), item.second_title && ' ', item.second_title && /*#__PURE__*/React.createElement("span", null, item.second_title))))));
|
|
1555
1555
|
};
|
|
1556
1556
|
|
|
1557
|
-
var styles$
|
|
1557
|
+
var styles$h = {"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"};
|
|
1558
1558
|
|
|
1559
1559
|
const SourceBlock = ({
|
|
1560
1560
|
block: {
|
|
@@ -1567,16 +1567,16 @@ const SourceBlock = ({
|
|
|
1567
1567
|
},
|
|
1568
1568
|
styleContext
|
|
1569
1569
|
}) => {
|
|
1570
|
-
let classNames = [[styles$
|
|
1570
|
+
let classNames = [[styles$h.root, true], [styles$h[onlyOn], true]];
|
|
1571
1571
|
if (styleContext) {
|
|
1572
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1572
|
+
classNames = makeStyleContext(classNames, styleContext, styles$h);
|
|
1573
1573
|
}
|
|
1574
1574
|
return /*#__PURE__*/React.createElement("blockquote", {
|
|
1575
1575
|
"data-testid": "source-block",
|
|
1576
1576
|
cite: url,
|
|
1577
1577
|
className: makeClassName(classNames)
|
|
1578
1578
|
}, /*#__PURE__*/React.createElement("a", {
|
|
1579
|
-
className: styles$
|
|
1579
|
+
className: styles$h.text,
|
|
1580
1580
|
href: url,
|
|
1581
1581
|
target: "_blank",
|
|
1582
1582
|
rel: "noopener noreferrer"
|
|
@@ -1586,11 +1586,11 @@ const SourceBlock = ({
|
|
|
1586
1586
|
__html: item.data
|
|
1587
1587
|
}
|
|
1588
1588
|
})), /*#__PURE__*/React.createElement("footer", null, /*#__PURE__*/React.createElement("cite", {
|
|
1589
|
-
className: styles$
|
|
1589
|
+
className: styles$h.origin
|
|
1590
1590
|
}, origin))));
|
|
1591
1591
|
};
|
|
1592
1592
|
|
|
1593
|
-
var styles$
|
|
1593
|
+
var styles$g = {"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"};
|
|
1594
1594
|
|
|
1595
1595
|
const SensitiveBlock = ({
|
|
1596
1596
|
block,
|
|
@@ -1613,40 +1613,40 @@ const SensitiveBlock = ({
|
|
|
1613
1613
|
const handleClick = () => {
|
|
1614
1614
|
isVisible(true);
|
|
1615
1615
|
};
|
|
1616
|
-
let classNames = [[styles$
|
|
1616
|
+
let classNames = [[styles$g.root, true], [styles$g.visible, visible], [styles$g[display], display && styles$g[display]]];
|
|
1617
1617
|
let context = ['isInSensitiveBlock'];
|
|
1618
1618
|
if (styleContext) {
|
|
1619
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1619
|
+
classNames = makeStyleContext(classNames, styleContext, styles$g);
|
|
1620
1620
|
context = [...styleContext, 'isInSensitiveBlock'];
|
|
1621
1621
|
}
|
|
1622
1622
|
return /*#__PURE__*/React.createElement("div", {
|
|
1623
1623
|
"data-testid": "sensitive-block",
|
|
1624
1624
|
className: makeClassName(classNames)
|
|
1625
1625
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1626
|
-
className: styles$
|
|
1626
|
+
className: styles$g.container
|
|
1627
1627
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1628
|
-
className: styles$
|
|
1628
|
+
className: styles$g.overlay,
|
|
1629
1629
|
style: {
|
|
1630
1630
|
backgroundImage: `url(${blurredImage})`
|
|
1631
1631
|
}
|
|
1632
1632
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1633
|
-
className: styles$
|
|
1633
|
+
className: styles$g.content
|
|
1634
1634
|
}, /*#__PURE__*/React.createElement("p", {
|
|
1635
1635
|
dangerouslySetInnerHTML: {
|
|
1636
1636
|
__html: block.title
|
|
1637
1637
|
}
|
|
1638
1638
|
}), /*#__PURE__*/React.createElement("div", {
|
|
1639
|
-
className: styles$
|
|
1639
|
+
className: styles$g.button
|
|
1640
1640
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
1641
1641
|
onClick: () => handleClick(),
|
|
1642
1642
|
theme: "light"
|
|
1643
1643
|
}, block.button.text)))), /*#__PURE__*/React.createElement("div", {
|
|
1644
|
-
className: styles$
|
|
1644
|
+
className: styles$g.media
|
|
1645
1645
|
}, /*#__PURE__*/React.createElement(EmbedBlockContainer, {
|
|
1646
1646
|
block: block.item,
|
|
1647
1647
|
styleContext: context
|
|
1648
1648
|
}))), cc && /*#__PURE__*/React.createElement("figcaption", {
|
|
1649
|
-
className: styles$
|
|
1649
|
+
className: styles$g.figcaption
|
|
1650
1650
|
}, /*#__PURE__*/React.createElement(MediaCaption, {
|
|
1651
1651
|
credit: credit,
|
|
1652
1652
|
caption: caption,
|
|
@@ -1654,7 +1654,7 @@ const SensitiveBlock = ({
|
|
|
1654
1654
|
})));
|
|
1655
1655
|
};
|
|
1656
1656
|
|
|
1657
|
-
var styles$
|
|
1657
|
+
var styles$f = {"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"};
|
|
1658
1658
|
|
|
1659
1659
|
const GroupedBlock = ({
|
|
1660
1660
|
block,
|
|
@@ -1670,19 +1670,19 @@ const GroupedBlock = ({
|
|
|
1670
1670
|
return width / (height / maxHeight);
|
|
1671
1671
|
});
|
|
1672
1672
|
const sumWidth = normalizedBoxesWidth.reduce((sum, x) => sum + x);
|
|
1673
|
-
let classNames = [[styles$
|
|
1673
|
+
let classNames = [[styles$f.root, true], [styles$f[onlyOn], true], [styles$f.hasFigcaption, block.cc === 'default'], [styles$f[block.display], !!block.display && styles$f[block.display]]];
|
|
1674
1674
|
if (styleContext) {
|
|
1675
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1675
|
+
classNames = makeStyleContext(classNames, styleContext, styles$f);
|
|
1676
1676
|
}
|
|
1677
1677
|
return /*#__PURE__*/React.createElement("div", {
|
|
1678
1678
|
"data-testid": "grouped-block",
|
|
1679
1679
|
className: makeClassName(classNames)
|
|
1680
1680
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1681
|
-
className: styles$
|
|
1681
|
+
className: styles$f.items
|
|
1682
1682
|
}, block.data.map((item, index) => {
|
|
1683
1683
|
const percentWidth = normalizedBoxesWidth[index] / sumWidth * 100;
|
|
1684
1684
|
return /*#__PURE__*/React.createElement("div", {
|
|
1685
|
-
className: styles$
|
|
1685
|
+
className: styles$f.item,
|
|
1686
1686
|
key: item.id,
|
|
1687
1687
|
style: {
|
|
1688
1688
|
width: `${percentWidth}%`
|
|
@@ -1695,7 +1695,7 @@ const GroupedBlock = ({
|
|
|
1695
1695
|
styleContext: ['isInGroupedBlock']
|
|
1696
1696
|
}));
|
|
1697
1697
|
})), block.cc && /*#__PURE__*/React.createElement("figcaption", {
|
|
1698
|
-
className: styles$
|
|
1698
|
+
className: styles$f.figcaption
|
|
1699
1699
|
}, /*#__PURE__*/React.createElement(MediaCaption, {
|
|
1700
1700
|
credit: block.credit,
|
|
1701
1701
|
caption: block.caption,
|
|
@@ -1703,7 +1703,7 @@ const GroupedBlock = ({
|
|
|
1703
1703
|
})));
|
|
1704
1704
|
};
|
|
1705
1705
|
|
|
1706
|
-
var styles$
|
|
1706
|
+
var styles$e = {"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"};
|
|
1707
1707
|
|
|
1708
1708
|
const MetaItem = ({
|
|
1709
1709
|
hasSource,
|
|
@@ -1711,25 +1711,25 @@ const MetaItem = ({
|
|
|
1711
1711
|
children,
|
|
1712
1712
|
bullets
|
|
1713
1713
|
}) => {
|
|
1714
|
-
const classNames = [[styles$
|
|
1714
|
+
const classNames = [[styles$e.root, true], [styles$e[type], !!type && !!styles$e[type]], [styles$e.hasSource, !!hasSource], [styles$e.hasBullets, !!bullets]];
|
|
1715
1715
|
return /*#__PURE__*/React.createElement("div", {
|
|
1716
1716
|
"data-testid": "meta-item",
|
|
1717
1717
|
className: makeClassName(classNames)
|
|
1718
1718
|
}, children);
|
|
1719
1719
|
};
|
|
1720
1720
|
|
|
1721
|
-
var styles$
|
|
1721
|
+
var styles$d = {"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"};
|
|
1722
1722
|
|
|
1723
1723
|
const MetaItemLive = ({
|
|
1724
1724
|
theme = 'gold'
|
|
1725
1725
|
}) => {
|
|
1726
|
-
const classNames = [[styles$
|
|
1726
|
+
const classNames = [[styles$d.root, true], [styles$d[theme], !!theme && styles$d[theme]]];
|
|
1727
1727
|
return /*#__PURE__*/React.createElement("div", {
|
|
1728
1728
|
"data-testid": "meta-item-live",
|
|
1729
1729
|
"data-meta": "live",
|
|
1730
1730
|
className: makeClassName(classNames)
|
|
1731
1731
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1732
|
-
className: styles$
|
|
1732
|
+
className: styles$d.frame
|
|
1733
1733
|
}));
|
|
1734
1734
|
};
|
|
1735
1735
|
|
|
@@ -1749,7 +1749,7 @@ const pluralize = (number, one, two, five) => {
|
|
|
1749
1749
|
return five;
|
|
1750
1750
|
};
|
|
1751
1751
|
|
|
1752
|
-
var styles$
|
|
1752
|
+
var styles$c = {"root":"DocumentItemsCount-module_root__u4M3y","items":"DocumentItemsCount-module_items__OE-hf"};
|
|
1753
1753
|
|
|
1754
1754
|
const DocumentItemsCount = ({
|
|
1755
1755
|
type,
|
|
@@ -1786,9 +1786,9 @@ const DocumentItemsCount = ({
|
|
|
1786
1786
|
const itemsCount = `${items} ${pluralize(items, i18n[lang][type].one, i18n[lang][type].two, i18n[lang][type].five)}`;
|
|
1787
1787
|
return /*#__PURE__*/React.createElement("div", {
|
|
1788
1788
|
"data-testid": "document-items-count",
|
|
1789
|
-
className: styles$
|
|
1789
|
+
className: styles$c.root
|
|
1790
1790
|
}, children, /*#__PURE__*/React.createElement("span", {
|
|
1791
|
-
className: styles$
|
|
1791
|
+
className: styles$c.items
|
|
1792
1792
|
}, itemsCount));
|
|
1793
1793
|
};
|
|
1794
1794
|
|
|
@@ -1905,22 +1905,22 @@ const MetaContainer = ({
|
|
|
1905
1905
|
icon: isListened ? 'listened' : 'read',
|
|
1906
1906
|
size: "unset"
|
|
1907
1907
|
})), isSlides && lang === 'ru' && /*#__PURE__*/React.createElement("div", {
|
|
1908
|
-
className: styles$
|
|
1908
|
+
className: styles$s.bookmark
|
|
1909
1909
|
}, /*#__PURE__*/React.createElement(BookmarkButton, {
|
|
1910
1910
|
isInBookmarks: isInBookmarks,
|
|
1911
1911
|
onClick: () => bookmarkAction('bookmark', 'top')
|
|
1912
1912
|
})));
|
|
1913
1913
|
};
|
|
1914
1914
|
|
|
1915
|
-
var styles$
|
|
1915
|
+
var styles$b = {"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"};
|
|
1916
1916
|
|
|
1917
1917
|
const DonatesTeaser = ({
|
|
1918
1918
|
styleContext,
|
|
1919
1919
|
lang = 'ru'
|
|
1920
1920
|
}) => {
|
|
1921
|
-
let classNames = [[styles$
|
|
1921
|
+
let classNames = [[styles$b.root, true], [styles$b[lang], styles$b[lang]]];
|
|
1922
1922
|
if (styleContext) {
|
|
1923
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1923
|
+
classNames = makeStyleContext(classNames, styleContext, styles$b);
|
|
1924
1924
|
}
|
|
1925
1925
|
const data = {
|
|
1926
1926
|
ru: {
|
|
@@ -1940,20 +1940,20 @@ const DonatesTeaser = ({
|
|
|
1940
1940
|
"data-testid": "donates-teaser",
|
|
1941
1941
|
className: makeClassName(classNames)
|
|
1942
1942
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1943
|
-
className: styles$
|
|
1943
|
+
className: styles$b.main
|
|
1944
1944
|
}, /*#__PURE__*/React.createElement("h3", {
|
|
1945
|
-
className: styles$
|
|
1945
|
+
className: styles$b.title
|
|
1946
1946
|
}, /*#__PURE__*/React.createElement("span", {
|
|
1947
1947
|
dangerouslySetInnerHTML: {
|
|
1948
1948
|
__html: data[lang].title
|
|
1949
1949
|
}
|
|
1950
1950
|
}), ` `, /*#__PURE__*/React.createElement("span", {
|
|
1951
|
-
className: styles$
|
|
1951
|
+
className: styles$b.text,
|
|
1952
1952
|
dangerouslySetInnerHTML: {
|
|
1953
1953
|
__html: data[lang].subtitle
|
|
1954
1954
|
}
|
|
1955
1955
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
1956
|
-
className: styles$
|
|
1956
|
+
className: styles$b.cta
|
|
1957
1957
|
}, /*#__PURE__*/React.createElement("a", {
|
|
1958
1958
|
href: data[lang].href,
|
|
1959
1959
|
target: "_blank",
|
|
@@ -1961,15 +1961,15 @@ const DonatesTeaser = ({
|
|
|
1961
1961
|
}, /*#__PURE__*/React.createElement("span", null, data[lang].button))));
|
|
1962
1962
|
};
|
|
1963
1963
|
|
|
1964
|
-
var styles$
|
|
1964
|
+
var styles$a = {"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"};
|
|
1965
1965
|
|
|
1966
1966
|
const AnnouncementInText = ({
|
|
1967
1967
|
styleContext,
|
|
1968
1968
|
lang = 'ru'
|
|
1969
1969
|
}) => {
|
|
1970
|
-
let classNames = [[styles$
|
|
1970
|
+
let classNames = [[styles$a.root, true], [styles$a[lang], styles$a[lang]]];
|
|
1971
1971
|
if (styleContext) {
|
|
1972
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1972
|
+
classNames = makeStyleContext(classNames, styleContext, styles$a);
|
|
1973
1973
|
}
|
|
1974
1974
|
const data = {
|
|
1975
1975
|
ru: {
|
|
@@ -1990,9 +1990,9 @@ const AnnouncementInText = ({
|
|
|
1990
1990
|
"data-testid": "announcement-in-text",
|
|
1991
1991
|
className: makeClassName(classNames)
|
|
1992
1992
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1993
|
-
className: styles$
|
|
1993
|
+
className: styles$a.body
|
|
1994
1994
|
}, /*#__PURE__*/React.createElement("h3", {
|
|
1995
|
-
className: styles$
|
|
1995
|
+
className: styles$a.title,
|
|
1996
1996
|
dangerouslySetInnerHTML: {
|
|
1997
1997
|
__html: localeData.title
|
|
1998
1998
|
}
|
|
@@ -2001,18 +2001,18 @@ const AnnouncementInText = ({
|
|
|
2001
2001
|
__html: localeData.text
|
|
2002
2002
|
}
|
|
2003
2003
|
})), /*#__PURE__*/React.createElement("div", {
|
|
2004
|
-
className: styles$
|
|
2004
|
+
className: styles$a.footer
|
|
2005
2005
|
}, /*#__PURE__*/React.createElement("a", {
|
|
2006
|
-
className: styles$
|
|
2006
|
+
className: styles$a.link,
|
|
2007
2007
|
href: localeData.href,
|
|
2008
2008
|
target: "_blank",
|
|
2009
2009
|
rel: "noreferrer"
|
|
2010
2010
|
}, /*#__PURE__*/React.createElement("span", null, localeData.button)), /*#__PURE__*/React.createElement("span", {
|
|
2011
|
-
className: styles$
|
|
2011
|
+
className: styles$a.button
|
|
2012
2012
|
}, /*#__PURE__*/React.createElement("span", null, localeData.button))));
|
|
2013
2013
|
};
|
|
2014
2014
|
|
|
2015
|
-
var styles$
|
|
2015
|
+
var styles$9 = {"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"};
|
|
2016
2016
|
|
|
2017
2017
|
const VersesBlock = ({
|
|
2018
2018
|
block: {
|
|
@@ -2022,9 +2022,9 @@ const VersesBlock = ({
|
|
|
2022
2022
|
},
|
|
2023
2023
|
styleContext
|
|
2024
2024
|
}) => {
|
|
2025
|
-
let classNames = [[styles$
|
|
2025
|
+
let classNames = [[styles$9.root, true], [styles$9[onlyOn], true], [styles$9[type], !!type && !!styles$9[type]]];
|
|
2026
2026
|
if (styleContext) {
|
|
2027
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2027
|
+
classNames = makeStyleContext(classNames, styleContext, styles$9);
|
|
2028
2028
|
}
|
|
2029
2029
|
return /*#__PURE__*/React.createElement("ul", {
|
|
2030
2030
|
className: makeClassName(classNames),
|
|
@@ -2200,7 +2200,7 @@ const RenderBlocks = ({
|
|
|
2200
2200
|
}
|
|
2201
2201
|
};
|
|
2202
2202
|
|
|
2203
|
-
var styles$
|
|
2203
|
+
var styles$8 = {"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-"};
|
|
2204
2204
|
|
|
2205
2205
|
const Cover = ({
|
|
2206
2206
|
block: {
|
|
@@ -2221,13 +2221,13 @@ const Cover = ({
|
|
|
2221
2221
|
}) => {
|
|
2222
2222
|
const [isPopoverShown, setIsPopoverShown] = React.useState(false);
|
|
2223
2223
|
const style = {};
|
|
2224
|
-
let classNames = [[styles$
|
|
2224
|
+
let classNames = [[styles$8.root, true], [styles$8[onlyOn], !!onlyOn && !!styles$8[onlyOn]]];
|
|
2225
2225
|
if (styleContext) {
|
|
2226
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2226
|
+
classNames = makeStyleContext(classNames, styleContext, styles$8);
|
|
2227
2227
|
}
|
|
2228
2228
|
if (gradients) {
|
|
2229
2229
|
const theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
|
|
2230
|
-
classNames = makeStyleContext(classNames, theme, styles$
|
|
2230
|
+
classNames = makeStyleContext(classNames, theme, styles$8);
|
|
2231
2231
|
style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
|
|
2232
2232
|
}
|
|
2233
2233
|
const renderCC = context => /*#__PURE__*/React.createElement(MediaCaption, {
|
|
@@ -2239,20 +2239,20 @@ const Cover = ({
|
|
|
2239
2239
|
"data-testid": "cover",
|
|
2240
2240
|
className: makeClassName(classNames)
|
|
2241
2241
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2242
|
-
className: styles$
|
|
2242
|
+
className: styles$8.image
|
|
2243
2243
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
2244
2244
|
optimized: urls,
|
|
2245
2245
|
ratio: mobileRatio,
|
|
2246
2246
|
display: "narrow"
|
|
2247
2247
|
})), /*#__PURE__*/React.createElement("div", {
|
|
2248
|
-
className: styles$
|
|
2248
|
+
className: styles$8.body,
|
|
2249
2249
|
style: style
|
|
2250
2250
|
}, blocks.map(item => /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2251
2251
|
key: item.id,
|
|
2252
2252
|
block: item,
|
|
2253
2253
|
styleContext: styleContext
|
|
2254
2254
|
}))), cc === 'button' && /*#__PURE__*/React.createElement("button", {
|
|
2255
|
-
className: styles$
|
|
2255
|
+
className: styles$8.control,
|
|
2256
2256
|
type: "button",
|
|
2257
2257
|
"aria-label": "Open",
|
|
2258
2258
|
onClick: () => {
|
|
@@ -2265,7 +2265,7 @@ const Cover = ({
|
|
|
2265
2265
|
}, renderCC('isInPopover')));
|
|
2266
2266
|
};
|
|
2267
2267
|
|
|
2268
|
-
var styles$
|
|
2268
|
+
var styles$7 = {"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"};
|
|
2269
2269
|
|
|
2270
2270
|
const HalfBlock = ({
|
|
2271
2271
|
block: {
|
|
@@ -2282,29 +2282,29 @@ const HalfBlock = ({
|
|
|
2282
2282
|
},
|
|
2283
2283
|
styleContext
|
|
2284
2284
|
}) => {
|
|
2285
|
-
let classNames = [[styles$
|
|
2285
|
+
let classNames = [[styles$7.root, true], [styles$7[onlyOn], true]];
|
|
2286
2286
|
if (styleContext) {
|
|
2287
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2287
|
+
classNames = makeStyleContext(classNames, styleContext, styles$7);
|
|
2288
2288
|
}
|
|
2289
2289
|
return /*#__PURE__*/React.createElement("div", {
|
|
2290
2290
|
"data-testid": "half-block",
|
|
2291
2291
|
className: makeClassName(classNames)
|
|
2292
2292
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2293
|
-
className: styles$
|
|
2293
|
+
className: styles$7.main
|
|
2294
2294
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2295
|
-
className: styles$
|
|
2295
|
+
className: styles$7.image
|
|
2296
2296
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
2297
2297
|
optimized: optimized,
|
|
2298
2298
|
ratio: ratio,
|
|
2299
2299
|
display: "super_full"
|
|
2300
2300
|
})), /*#__PURE__*/React.createElement("div", {
|
|
2301
|
-
className: styles$
|
|
2301
|
+
className: styles$7.body
|
|
2302
2302
|
}, data.blocks.map(item => /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2303
2303
|
key: item.id,
|
|
2304
2304
|
block: item,
|
|
2305
2305
|
styleContext: ['rich']
|
|
2306
2306
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
2307
|
-
className: styles$
|
|
2307
|
+
className: styles$7.footer
|
|
2308
2308
|
}, /*#__PURE__*/React.createElement(MediaCaption, {
|
|
2309
2309
|
credit: credit,
|
|
2310
2310
|
caption: caption,
|
|
@@ -2312,7 +2312,7 @@ const HalfBlock = ({
|
|
|
2312
2312
|
})));
|
|
2313
2313
|
};
|
|
2314
2314
|
|
|
2315
|
-
var styles$
|
|
2315
|
+
var styles$6 = {"root":"ImportantLead-module_root__-rnt6","slide":"ImportantLead-module_slide__zcovu","mobile":"ImportantLead-module_mobile__msInp","desktop":"ImportantLead-module_desktop__ELC2-"};
|
|
2316
2316
|
|
|
2317
2317
|
const ImportantLead = ({
|
|
2318
2318
|
block: {
|
|
@@ -2321,9 +2321,9 @@ const ImportantLead = ({
|
|
|
2321
2321
|
},
|
|
2322
2322
|
styleContext
|
|
2323
2323
|
}) => {
|
|
2324
|
-
let classNames = [[styles$
|
|
2324
|
+
let classNames = [[styles$6.root, true], [styles$6[onlyOn], !!onlyOn]];
|
|
2325
2325
|
if (styleContext) {
|
|
2326
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2326
|
+
classNames = makeStyleContext(classNames, styleContext, styles$6);
|
|
2327
2327
|
}
|
|
2328
2328
|
return /*#__PURE__*/React.createElement("div", {
|
|
2329
2329
|
"data-testid": "important-lead",
|
|
@@ -2335,7 +2335,7 @@ const ImportantLead = ({
|
|
|
2335
2335
|
})));
|
|
2336
2336
|
};
|
|
2337
2337
|
|
|
2338
|
-
var styles$
|
|
2338
|
+
var styles$5 = {"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"};
|
|
2339
2339
|
|
|
2340
2340
|
const Spoiler = ({
|
|
2341
2341
|
block: {
|
|
@@ -2364,11 +2364,11 @@ const Spoiler = ({
|
|
|
2364
2364
|
postMessage('', 'openSpoiler', 'click');
|
|
2365
2365
|
}
|
|
2366
2366
|
};
|
|
2367
|
-
let classNames = [[styles$
|
|
2367
|
+
let classNames = [[styles$5.root, true], [styles$5[onlyOn], !!onlyOn], [styles$5[display], !!display && styles$5[display]], [[styles$5.spoiled], !!spoiled]];
|
|
2368
2368
|
const context = ['center'];
|
|
2369
2369
|
if (styleContext) {
|
|
2370
2370
|
context.concat(styleContext);
|
|
2371
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2371
|
+
classNames = makeStyleContext(classNames, styleContext, styles$5);
|
|
2372
2372
|
}
|
|
2373
2373
|
const buttonCollapse = button ? button.collapse : 'Свернуть';
|
|
2374
2374
|
const buttonExpande = button ? button.expand : buttonTitle;
|
|
@@ -2377,15 +2377,15 @@ const Spoiler = ({
|
|
|
2377
2377
|
className: makeClassName(classNames),
|
|
2378
2378
|
"data-testid": "spoiler"
|
|
2379
2379
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2380
|
-
className: styles$
|
|
2380
|
+
className: styles$5.header
|
|
2381
2381
|
}, title && /*#__PURE__*/React.createElement("h3", null, title)), /*#__PURE__*/React.createElement("div", {
|
|
2382
|
-
className: styles$
|
|
2382
|
+
className: styles$5.body
|
|
2383
2383
|
}, blocks.map(item => /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2384
2384
|
key: item.id,
|
|
2385
2385
|
block: item,
|
|
2386
2386
|
styleContext: context
|
|
2387
2387
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
2388
|
-
className: styles$
|
|
2388
|
+
className: styles$5.footer
|
|
2389
2389
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
2390
2390
|
size: "default",
|
|
2391
2391
|
theme: "gray",
|
|
@@ -2396,7 +2396,7 @@ const Spoiler = ({
|
|
|
2396
2396
|
}))));
|
|
2397
2397
|
};
|
|
2398
2398
|
|
|
2399
|
-
var styles$
|
|
2399
|
+
var styles$4 = {"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"};
|
|
2400
2400
|
|
|
2401
2401
|
/* eslint-disable react/jsx-no-target-blank */
|
|
2402
2402
|
const RelatedRichBlock = ({
|
|
@@ -2433,16 +2433,16 @@ const RelatedRichBlock = ({
|
|
|
2433
2433
|
const handleClick = () => {
|
|
2434
2434
|
postMessage('richRelated', url, 'click');
|
|
2435
2435
|
};
|
|
2436
|
-
let classNames = [[styles$
|
|
2436
|
+
let classNames = [[styles$4.root, true], [styles$4[cardType], !!layout && !!styles$4[cardType]], [styles$4.hasGradient, !!gradients], [styles$4[onlyOn], !!onlyOn && !!styles$4[onlyOn]]];
|
|
2437
2437
|
let context = ['isInMediaBlock'];
|
|
2438
2438
|
if (styleContext) {
|
|
2439
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2439
|
+
classNames = makeStyleContext(classNames, styleContext, styles$4);
|
|
2440
2440
|
context = [...styleContext, 'isInMediaBlock'];
|
|
2441
2441
|
}
|
|
2442
2442
|
if (gradients) {
|
|
2443
2443
|
styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
|
|
2444
2444
|
const theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
|
|
2445
|
-
classNames = makeStyleContext(classNames, theme, styles$
|
|
2445
|
+
classNames = makeStyleContext(classNames, theme, styles$4);
|
|
2446
2446
|
if (onlyOn === 'desktop') {
|
|
2447
2447
|
style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
|
|
2448
2448
|
}
|
|
@@ -2454,27 +2454,27 @@ const RelatedRichBlock = ({
|
|
|
2454
2454
|
onClick: () => handleClick(),
|
|
2455
2455
|
ref: ref
|
|
2456
2456
|
}, layout === 'rich' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
2457
|
-
className: styles$
|
|
2457
|
+
className: styles$4.overlay,
|
|
2458
2458
|
style: style
|
|
2459
2459
|
}), /*#__PURE__*/React.createElement("div", {
|
|
2460
|
-
className: styles$
|
|
2460
|
+
className: styles$4.overlayHeader,
|
|
2461
2461
|
style: styleHeader
|
|
2462
2462
|
})), /*#__PURE__*/React.createElement("div", {
|
|
2463
|
-
className: styles$
|
|
2463
|
+
className: styles$4.tag
|
|
2464
2464
|
}, /*#__PURE__*/React.createElement(Tag, {
|
|
2465
2465
|
size: "small",
|
|
2466
2466
|
theme: "inherit",
|
|
2467
2467
|
styleContext: "richRelated"
|
|
2468
2468
|
}, tag)), /*#__PURE__*/React.createElement("div", {
|
|
2469
|
-
className: styles$
|
|
2469
|
+
className: styles$4.cover
|
|
2470
2470
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2471
|
-
className: styles$
|
|
2471
|
+
className: styles$4.picture
|
|
2472
2472
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
2473
2473
|
optimized: urls,
|
|
2474
2474
|
ratio: ratio,
|
|
2475
2475
|
display: "narrow"
|
|
2476
2476
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
2477
|
-
className: styles$
|
|
2477
|
+
className: styles$4.body
|
|
2478
2478
|
}, blocks.map(item => /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2479
2479
|
key: item.id,
|
|
2480
2480
|
block: item,
|
|
@@ -2482,7 +2482,7 @@ const RelatedRichBlock = ({
|
|
|
2482
2482
|
}))));
|
|
2483
2483
|
};
|
|
2484
2484
|
|
|
2485
|
-
var styles$
|
|
2485
|
+
var styles$3 = {"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"};
|
|
2486
2486
|
|
|
2487
2487
|
/* eslint-disable react/jsx-no-target-blank */
|
|
2488
2488
|
const ShopRelatedBlock = ({
|
|
@@ -2519,14 +2519,14 @@ const ShopRelatedBlock = ({
|
|
|
2519
2519
|
const handleClick = () => {
|
|
2520
2520
|
postMessage('productRelated', url, 'click');
|
|
2521
2521
|
};
|
|
2522
|
-
let classNames = [[styles$
|
|
2522
|
+
let classNames = [[styles$3.root, true], [styles$3.hasGradient, !!gradients], [styles$3[onlyOn], !!onlyOn && !!styles$3[onlyOn]]];
|
|
2523
2523
|
if (styleContext) {
|
|
2524
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2524
|
+
classNames = makeStyleContext(classNames, styleContext, styles$3);
|
|
2525
2525
|
}
|
|
2526
2526
|
if (gradients) {
|
|
2527
2527
|
styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
|
|
2528
2528
|
const theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
|
|
2529
|
-
classNames = makeStyleContext(classNames, theme, styles$
|
|
2529
|
+
classNames = makeStyleContext(classNames, theme, styles$3);
|
|
2530
2530
|
if (onlyOn === 'desktop') {
|
|
2531
2531
|
style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
|
|
2532
2532
|
}
|
|
@@ -2539,34 +2539,77 @@ const ShopRelatedBlock = ({
|
|
|
2539
2539
|
onClick: () => handleClick(),
|
|
2540
2540
|
ref: ref
|
|
2541
2541
|
}, layout === 'rich' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
2542
|
-
className: styles$
|
|
2542
|
+
className: styles$3.overlay,
|
|
2543
2543
|
style: style
|
|
2544
2544
|
}), /*#__PURE__*/React.createElement("div", {
|
|
2545
|
-
className: styles$
|
|
2545
|
+
className: styles$3.overlayHeader,
|
|
2546
2546
|
style: styleHeader
|
|
2547
2547
|
})), /*#__PURE__*/React.createElement("div", {
|
|
2548
|
-
className: styles$
|
|
2548
|
+
className: styles$3.tag
|
|
2549
2549
|
}, /*#__PURE__*/React.createElement(Tag, {
|
|
2550
2550
|
size: "small",
|
|
2551
2551
|
theme: "inherit",
|
|
2552
2552
|
styleContext: "richRelated"
|
|
2553
2553
|
}, tag)), /*#__PURE__*/React.createElement("div", {
|
|
2554
|
-
className: styles$
|
|
2554
|
+
className: styles$3.cover
|
|
2555
2555
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2556
|
-
className: styles$
|
|
2556
|
+
className: styles$3.picture
|
|
2557
2557
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
2558
2558
|
optimized: urls,
|
|
2559
2559
|
ratio: ratio,
|
|
2560
2560
|
display: "narrow"
|
|
2561
2561
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
2562
|
-
className: styles$
|
|
2562
|
+
className: styles$3.body
|
|
2563
2563
|
}, /*#__PURE__*/React.createElement("h2", {
|
|
2564
|
-
className: styles$
|
|
2564
|
+
className: styles$3.title
|
|
2565
2565
|
}, firstTitle, /*#__PURE__*/React.createElement("span", {
|
|
2566
|
-
className: styles$
|
|
2566
|
+
className: styles$3.price
|
|
2567
2567
|
}, secondTitle))));
|
|
2568
2568
|
};
|
|
2569
2569
|
|
|
2570
|
+
var styles$2 = {"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"};
|
|
2571
|
+
|
|
2572
|
+
const RelatedBook = ({
|
|
2573
|
+
block,
|
|
2574
|
+
styleContext
|
|
2575
|
+
}) => {
|
|
2576
|
+
const theme = block.data.theme.text_color === '0,0,0' ? 'isDark' : 'isLight';
|
|
2577
|
+
let classNames = [[styles$2.root, true], [styles$2[theme], theme], [styles$2[block.data.onlyOn], !!block.data.onlyOn && !!styles$2[block.data.onlyOn]]];
|
|
2578
|
+
if (styleContext) {
|
|
2579
|
+
classNames = makeStyleContext(classNames, styleContext, styles$2);
|
|
2580
|
+
}
|
|
2581
|
+
const cssProps = {
|
|
2582
|
+
'--bgColor': `rgb(${block.data.theme.background_color || '0, 0, 0'})`
|
|
2583
|
+
};
|
|
2584
|
+
return /*#__PURE__*/React.createElement(reactRouterDom.Link, {
|
|
2585
|
+
to: `/${block.data.url}`,
|
|
2586
|
+
className: makeClassName(classNames),
|
|
2587
|
+
style: cssProps
|
|
2588
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2589
|
+
className: styles$2.container
|
|
2590
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2591
|
+
className: styles$2.imageWrap
|
|
2592
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2593
|
+
className: styles$2.image
|
|
2594
|
+
}, /*#__PURE__*/React.createElement("picture", {
|
|
2595
|
+
className: styles$2.picture
|
|
2596
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
2597
|
+
optimized: block.data.cover.urls,
|
|
2598
|
+
ratio: 0,
|
|
2599
|
+
display: "narrow",
|
|
2600
|
+
styleContext: ['isStatic'],
|
|
2601
|
+
lazy: true
|
|
2602
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
2603
|
+
className: styles$2.contentWrap
|
|
2604
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2605
|
+
className: styles$2.content
|
|
2606
|
+
}, block.data.blocks.map(item => /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2607
|
+
key: item.id,
|
|
2608
|
+
block: item,
|
|
2609
|
+
styleContext: ['isInMediaBlock', 'isInBookRelated', 'isCustom']
|
|
2610
|
+
}))))));
|
|
2611
|
+
};
|
|
2612
|
+
|
|
2570
2613
|
const RawHtmlBlock = ({
|
|
2571
2614
|
block,
|
|
2572
2615
|
styleContext,
|
|
@@ -2618,6 +2661,13 @@ const RawHtmlBlock = ({
|
|
|
2618
2661
|
styleContext: styleContext
|
|
2619
2662
|
});
|
|
2620
2663
|
}
|
|
2664
|
+
case 'related_book':
|
|
2665
|
+
{
|
|
2666
|
+
return /*#__PURE__*/React.createElement(RelatedBook, {
|
|
2667
|
+
block: block,
|
|
2668
|
+
styleContext: styleContext
|
|
2669
|
+
});
|
|
2670
|
+
}
|
|
2621
2671
|
case 'related_shop':
|
|
2622
2672
|
{
|
|
2623
2673
|
return /*#__PURE__*/React.createElement(ShopRelatedBlock, {
|