@meduza/ui-kit-2 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (385) hide show
  1. package/README.md +7 -179
  2. package/dist/BookmarkButton/BookmarkButton.stories.d.ts +10 -0
  3. package/dist/BookmarkButton/BookmarkButton.types.d.ts +6 -0
  4. package/dist/BookmarkButton/index.d.ts +3 -0
  5. package/dist/Button/Button.stories.d.ts +10 -0
  6. package/dist/Button/Button.types.d.ts +2 -2
  7. package/dist/CardTitle/CardTitle.stories.d.ts +10 -0
  8. package/dist/CardTitle/CardTitle.types.d.ts +8 -0
  9. package/dist/CardTitle/index.d.ts +3 -0
  10. package/dist/ChapterBlock/ChapterBlock.stories.d.ts +10 -0
  11. package/dist/ChapterBlock/ChapterBlock.types.d.ts +7 -0
  12. package/dist/ChapterBlock/index.d.ts +3 -0
  13. package/dist/Cover/Cover.stories.d.ts +10 -0
  14. package/dist/Cover/Cover.types.d.ts +4 -0
  15. package/dist/Cover/index.d.ts +3 -0
  16. package/dist/DocumentItemsCount/DocumentItemsCount.stories.d.ts +10 -0
  17. package/dist/DocumentItemsCount/DocumentItemsCount.types.d.ts +7 -0
  18. package/dist/DocumentItemsCount/index.d.ts +3 -0
  19. package/dist/DotsOnImage/DotsOnImage.stories.d.ts +10 -0
  20. package/dist/DotsOnImage/DotsOnImage.types.d.ts +42 -0
  21. package/dist/DotsOnImage/index.d.ts +3 -0
  22. package/dist/Dropdown/Dropdown.stories.d.ts +10 -0
  23. package/dist/Dropdown/Dropdown.types.d.ts +6 -0
  24. package/dist/Dropdown/index.d.ts +4 -0
  25. package/dist/EmbedBlock/EmbedBlock.d.ts +3 -0
  26. package/dist/EmbedBlock/EmbedBlock.stories.d.ts +10 -0
  27. package/dist/EmbedBlock/EmbedBlock.types.d.ts +5 -0
  28. package/dist/EmbedBlock/IframeBlock.d.ts +3 -0
  29. package/dist/EmbedBlock/index.d.ts +3 -0
  30. package/dist/GroupedBlock/GroupedBlock.stories.d.ts +10 -0
  31. package/dist/GroupedBlock/GroupedBlock.types.d.ts +4 -0
  32. package/dist/GroupedBlock/index.d.ts +3 -0
  33. package/dist/HalfBlock/HalfBlock.stories.d.ts +10 -0
  34. package/dist/HalfBlock/HalfBlock.types.d.ts +4 -0
  35. package/dist/HalfBlock/index.d.ts +3 -0
  36. package/dist/Image/Image.stories.d.ts +10 -0
  37. package/dist/Image/Image.types.d.ts +38 -0
  38. package/dist/Image/RenderPicture.d.ts +4 -0
  39. package/dist/Image/index.d.ts +3 -0
  40. package/dist/ImportantLead/ImportantLead.stories.d.ts +10 -0
  41. package/dist/ImportantLead/ImportantLead.types.d.ts +4 -0
  42. package/dist/ImportantLead/index.d.ts +3 -0
  43. package/dist/Lazy/Lazy.stories.d.ts +10 -0
  44. package/dist/Lazy/Lazy.types.d.ts +5 -0
  45. package/dist/Lazy/index.d.ts +3 -0
  46. package/dist/ListBlock/ListBlock.stories.d.ts +10 -0
  47. package/dist/ListBlock/ListBlock.types.d.ts +4 -0
  48. package/dist/ListBlock/index.d.ts +3 -0
  49. package/dist/MaterialNote/MaterialNote.stories.d.ts +10 -0
  50. package/dist/MaterialNote/MaterialNote.types.d.ts +12 -0
  51. package/dist/MaterialNote/index.d.ts +3 -0
  52. package/dist/MaterialTitle/MaterialTitle.stories.d.ts +10 -0
  53. package/dist/MaterialTitle/MaterialTitle.types.d.ts +4 -0
  54. package/dist/MaterialTitle/index.d.ts +5 -0
  55. package/dist/MediaCaption/MediaCaption.stories.d.ts +10 -0
  56. package/dist/MediaCaption/MediaCaption.types.d.ts +5 -0
  57. package/dist/MediaCaption/index.d.ts +3 -0
  58. package/dist/Meta/Meta.stories.d.ts +10 -0
  59. package/dist/Meta/Meta.types.d.ts +18 -0
  60. package/dist/Meta/MetaContainer.d.ts +3 -0
  61. package/dist/Meta/index.d.ts +3 -0
  62. package/dist/MetaItem/MetaItem.stories.d.ts +10 -0
  63. package/dist/MetaItem/MetaItem.types.d.ts +7 -0
  64. package/dist/MetaItem/index.d.ts +3 -0
  65. package/dist/MetaItemLive/MetaItemLive.stories.d.ts +10 -0
  66. package/dist/MetaItemLive/MetaItemLive.types.d.ts +3 -0
  67. package/dist/MetaItemLive/index.d.ts +3 -0
  68. package/dist/Popover/Popover.stories.d.ts +10 -0
  69. package/dist/Popover/Popover.types.d.ts +5 -0
  70. package/dist/Popover/index.d.ts +3 -0
  71. package/dist/QuoteBlock/QuoteBlock.stories.d.ts +10 -0
  72. package/dist/QuoteBlock/QuoteBlock.types.d.ts +6 -0
  73. package/dist/QuoteBlock/index.d.ts +3 -0
  74. package/dist/RawHtmlBlock/RawHtmlBlock.stories.d.ts +10 -0
  75. package/dist/RawHtmlBlock/RawHtmlBlock.types.d.ts +9 -0
  76. package/dist/RawHtmlBlock/index.d.ts +3 -0
  77. package/dist/RelatedBlock/RelatedBlock.stories.d.ts +10 -0
  78. package/dist/RelatedBlock/RelatedBlock.types.d.ts +4 -0
  79. package/dist/RelatedBlock/index.d.ts +3 -0
  80. package/dist/RenderBlocks/RenderBlocks.stories.d.ts +10 -0
  81. package/dist/RenderBlocks/RenderBlocks.types.d.ts +10 -0
  82. package/dist/RenderBlocks/index.d.ts +3 -0
  83. package/dist/RichTitle/RichTitle.stories.d.ts +10 -0
  84. package/dist/RichTitle/RichTitle.types.d.ts +4 -0
  85. package/dist/RichTitle/index.d.ts +3 -0
  86. package/dist/SimpleBlock/SimpleBlock.stories.d.ts +10 -0
  87. package/dist/SimpleBlock/SimpleBlock.types.d.ts +4 -0
  88. package/dist/SimpleBlock/index.d.ts +3 -0
  89. package/dist/SimpleTitle/SimpleTitle.stories.d.ts +10 -0
  90. package/dist/SimpleTitle/SimpleTitle.types.d.ts +4 -0
  91. package/dist/SimpleTitle/index.d.ts +3 -0
  92. package/dist/SourceBlock/SourceBlock.stories.d.ts +10 -0
  93. package/dist/SourceBlock/SourceBlock.types.d.ts +4 -0
  94. package/dist/SourceBlock/index.d.ts +3 -0
  95. package/dist/Spoiler/Spoiler.stories.d.ts +10 -0
  96. package/dist/Spoiler/Spoiler.types.d.ts +4 -0
  97. package/dist/Spoiler/index.d.ts +3 -0
  98. package/dist/SvgSymbol/SvgSymbol.stories.d.ts +10 -0
  99. package/dist/SvgSymbol/SvgSymbol.types.d.ts +8 -0
  100. package/dist/SvgSymbol/icons.d.ts +157 -0
  101. package/dist/SvgSymbol/index.d.ts +3 -0
  102. package/dist/Switcher/Switcher.stories.d.ts +10 -0
  103. package/dist/Switcher/Switcher.types.d.ts +12 -0
  104. package/dist/Switcher/index.d.ts +3 -0
  105. package/dist/Table/Table.stories.d.ts +10 -0
  106. package/dist/Table/Table.types.d.ts +25 -0
  107. package/dist/Table/index.d.ts +3 -0
  108. package/dist/Tag/Tag.stories.d.ts +10 -0
  109. package/dist/Tag/Tag.types.d.ts +12 -0
  110. package/dist/Tag/index.d.ts +3 -0
  111. package/dist/Timestamp/Timestamp.stories.d.ts +10 -0
  112. package/dist/Timestamp/Timestamp.types.d.ts +5 -0
  113. package/dist/Timestamp/index.d.ts +4 -0
  114. package/dist/Toolbar/Toolbar.stories.d.ts +10 -0
  115. package/dist/Toolbar/Toolbar.types.d.ts +5 -0
  116. package/dist/Toolbar/index.d.ts +3 -0
  117. package/dist/ToolbarButton/ToolbarButton.stories.d.ts +10 -0
  118. package/dist/ToolbarButton/ToolbarButton.types.d.ts +9 -0
  119. package/dist/ToolbarButton/index.d.ts +3 -0
  120. package/dist/_storybook/PreviewWrapper/index.d.ts +6 -0
  121. package/dist/constants.d.ts +22 -0
  122. package/dist/index.d.ts +37 -0
  123. package/dist/ui-kit-2.cjs.development.js +2257 -10
  124. package/dist/ui-kit-2.cjs.development.js.map +1 -1
  125. package/dist/ui-kit-2.cjs.production.min.js +1 -1
  126. package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
  127. package/dist/ui-kit-2.esm.js +2209 -3
  128. package/dist/ui-kit-2.esm.js.map +1 -1
  129. package/dist/utils/BlockContext.d.ts +8 -0
  130. package/dist/utils/DangerousHtml.d.ts +8 -0
  131. package/dist/utils/makeClassName.d.ts +1 -1
  132. package/dist/utils/makeStyleContext.d.ts +2 -0
  133. package/dist/utils/toCamel.d.ts +1 -0
  134. package/package.json +28 -13
  135. package/src/BookmarkButton/BookmarkButton.module.css +50 -0
  136. package/src/BookmarkButton/BookmarkButton.stories.module.css +5 -0
  137. package/src/BookmarkButton/BookmarkButton.stories.tsx +39 -0
  138. package/src/BookmarkButton/BookmarkButton.test.tsx +20 -0
  139. package/src/BookmarkButton/BookmarkButton.types.ts +6 -0
  140. package/src/BookmarkButton/index.tsx +37 -0
  141. package/src/Button/Button.stories.module.css +30 -0
  142. package/src/Button/Button.stories.tsx +87 -0
  143. package/src/Button/Button.test.tsx +42 -0
  144. package/src/Button/Button.types.ts +1 -3
  145. package/src/Button/index.tsx +2 -2
  146. package/src/CardTitle/CardTitle.module.css +52 -0
  147. package/src/CardTitle/CardTitle.stories.module.css +5 -0
  148. package/src/CardTitle/CardTitle.stories.tsx +36 -0
  149. package/src/CardTitle/CardTitle.test.tsx +20 -0
  150. package/src/CardTitle/CardTitle.types.ts +8 -0
  151. package/src/CardTitle/index.tsx +24 -0
  152. package/src/CardTitle/mock.json +8 -0
  153. package/src/ChapterBlock/ChapterBlock.module.css +70 -0
  154. package/src/ChapterBlock/ChapterBlock.stories.module.css +5 -0
  155. package/src/ChapterBlock/ChapterBlock.stories.tsx +36 -0
  156. package/src/ChapterBlock/ChapterBlock.test.tsx +20 -0
  157. package/src/ChapterBlock/ChapterBlock.types.ts +7 -0
  158. package/src/ChapterBlock/index.tsx +31 -0
  159. package/src/ChapterBlock/mock.json +5 -0
  160. package/src/Cover/Cover.module.css +5 -0
  161. package/src/Cover/Cover.stories.module.css +5 -0
  162. package/src/Cover/Cover.stories.tsx +34 -0
  163. package/src/Cover/Cover.test.tsx +20 -0
  164. package/src/Cover/Cover.types.ts +4 -0
  165. package/src/Cover/index.tsx +89 -0
  166. package/src/DocumentItemsCount/DocumentItemsCount.module.css +18 -0
  167. package/src/DocumentItemsCount/DocumentItemsCount.stories.module.css +5 -0
  168. package/src/DocumentItemsCount/DocumentItemsCount.stories.tsx +34 -0
  169. package/src/DocumentItemsCount/DocumentItemsCount.test.tsx +20 -0
  170. package/src/DocumentItemsCount/DocumentItemsCount.types.ts +6 -0
  171. package/src/DocumentItemsCount/index.tsx +54 -0
  172. package/src/DotsOnImage/DotsOnImage.module.css +56 -0
  173. package/src/DotsOnImage/DotsOnImage.stories.module.css +9 -0
  174. package/src/DotsOnImage/DotsOnImage.stories.tsx +37 -0
  175. package/src/DotsOnImage/DotsOnImage.test.tsx +19 -0
  176. package/src/DotsOnImage/DotsOnImage.types.ts +46 -0
  177. package/src/DotsOnImage/index.tsx +79 -0
  178. package/src/DotsOnImage/mock.json +102 -0
  179. package/src/Dropdown/Dropdown.module.css +82 -0
  180. package/src/Dropdown/Dropdown.stories.module.css +5 -0
  181. package/src/Dropdown/Dropdown.stories.tsx +55 -0
  182. package/src/Dropdown/Dropdown.test.tsx +20 -0
  183. package/src/Dropdown/Dropdown.types.ts +5 -0
  184. package/src/Dropdown/index.tsx +35 -0
  185. package/src/EmbedBlock/EmbedBlock.module.css +351 -0
  186. package/src/EmbedBlock/EmbedBlock.stories.module.css +5 -0
  187. package/src/EmbedBlock/EmbedBlock.stories.tsx +39 -0
  188. package/src/EmbedBlock/EmbedBlock.test.tsx +20 -0
  189. package/src/EmbedBlock/EmbedBlock.tsx +236 -0
  190. package/src/EmbedBlock/EmbedBlock.types.ts +5 -0
  191. package/src/EmbedBlock/IframeBlock.tsx +86 -0
  192. package/src/EmbedBlock/index.tsx +16 -0
  193. package/src/EmbedBlock/mock.json +89 -0
  194. package/src/GroupedBlock/GroupedBlock.module.css +94 -0
  195. package/src/GroupedBlock/GroupedBlock.stories.module.css +5 -0
  196. package/src/GroupedBlock/GroupedBlock.stories.tsx +34 -0
  197. package/src/GroupedBlock/GroupedBlock.test.tsx +20 -0
  198. package/src/GroupedBlock/GroupedBlock.types.ts +4 -0
  199. package/src/GroupedBlock/index.tsx +67 -0
  200. package/src/HalfBlock/HalfBlock.module.css +88 -0
  201. package/src/HalfBlock/HalfBlock.stories.module.css +5 -0
  202. package/src/HalfBlock/HalfBlock.stories.tsx +34 -0
  203. package/src/HalfBlock/HalfBlock.test.tsx +20 -0
  204. package/src/HalfBlock/HalfBlock.types.ts +4 -0
  205. package/src/HalfBlock/index.tsx +53 -0
  206. package/src/Image/Image.module.css +78 -0
  207. package/src/Image/Image.stories.module.css +5 -0
  208. package/src/Image/Image.stories.tsx +47 -0
  209. package/src/Image/Image.test.tsx +33 -0
  210. package/src/Image/Image.types.ts +40 -0
  211. package/src/Image/RenderPicture.tsx +70 -0
  212. package/src/Image/index.tsx +101 -0
  213. package/src/Image/mock.json +49 -0
  214. package/src/ImportantLead/ImportantLead.module.css +64 -0
  215. package/src/ImportantLead/ImportantLead.stories.module.css +5 -0
  216. package/src/ImportantLead/ImportantLead.stories.tsx +34 -0
  217. package/src/ImportantLead/ImportantLead.test.tsx +20 -0
  218. package/src/ImportantLead/ImportantLead.types.ts +4 -0
  219. package/src/ImportantLead/index.tsx +35 -0
  220. package/src/Lazy/Lazy.module.css +9 -0
  221. package/src/Lazy/Lazy.stories.module.css +5 -0
  222. package/src/Lazy/Lazy.stories.tsx +48 -0
  223. package/src/Lazy/Lazy.test.tsx +20 -0
  224. package/src/Lazy/Lazy.types.ts +4 -0
  225. package/src/Lazy/index.tsx +41 -0
  226. package/src/ListBlock/ListBlock.module.css +163 -0
  227. package/src/ListBlock/ListBlock.stories.module.css +5 -0
  228. package/src/ListBlock/ListBlock.stories.tsx +34 -0
  229. package/src/ListBlock/ListBlock.test.tsx +20 -0
  230. package/src/ListBlock/ListBlock.types.ts +4 -0
  231. package/src/ListBlock/index.tsx +33 -0
  232. package/src/MaterialNote/MaterialNote.module.css +139 -0
  233. package/src/MaterialNote/MaterialNote.stories.module.css +5 -0
  234. package/src/MaterialNote/MaterialNote.stories.tsx +36 -0
  235. package/src/MaterialNote/MaterialNote.test.tsx +20 -0
  236. package/src/MaterialNote/MaterialNote.types.ts +12 -0
  237. package/src/MaterialNote/index.tsx +30 -0
  238. package/src/MaterialNote/mock.json +18 -0
  239. package/src/MaterialTitle/MaterialTitle.module.css +33 -0
  240. package/src/MaterialTitle/MaterialTitle.stories.module.css +13 -0
  241. package/src/MaterialTitle/MaterialTitle.stories.tsx +52 -0
  242. package/src/MaterialTitle/MaterialTitle.test.tsx +20 -0
  243. package/src/MaterialTitle/MaterialTitle.types.ts +3 -0
  244. package/src/MaterialTitle/index.tsx +20 -0
  245. package/src/MediaCaption/MediaCaption.module.css +85 -0
  246. package/src/MediaCaption/MediaCaption.stories.module.css +5 -0
  247. package/src/MediaCaption/MediaCaption.stories.tsx +37 -0
  248. package/src/MediaCaption/MediaCaption.test.tsx +20 -0
  249. package/src/MediaCaption/MediaCaption.types.ts +5 -0
  250. package/src/MediaCaption/index.tsx +35 -0
  251. package/src/Meta/Meta.module.css +106 -0
  252. package/src/Meta/Meta.stories.module.css +7 -0
  253. package/src/Meta/Meta.stories.tsx +69 -0
  254. package/src/Meta/Meta.test.tsx +20 -0
  255. package/src/Meta/Meta.types.ts +19 -0
  256. package/src/Meta/MetaContainer.tsx +148 -0
  257. package/src/Meta/index.tsx +32 -0
  258. package/src/MetaItem/MetaItem.module.css +104 -0
  259. package/src/MetaItem/MetaItem.stories.module.css +5 -0
  260. package/src/MetaItem/MetaItem.stories.tsx +34 -0
  261. package/src/MetaItem/MetaItem.test.tsx +20 -0
  262. package/src/MetaItem/MetaItem.types.ts +6 -0
  263. package/src/MetaItem/index.tsx +26 -0
  264. package/src/MetaItemLive/MetaItemLive.module.css +124 -0
  265. package/src/MetaItemLive/MetaItemLive.stories.module.css +5 -0
  266. package/src/MetaItemLive/MetaItemLive.stories.tsx +34 -0
  267. package/src/MetaItemLive/MetaItemLive.test.tsx +20 -0
  268. package/src/MetaItemLive/MetaItemLive.types.ts +3 -0
  269. package/src/MetaItemLive/index.tsx +25 -0
  270. package/src/Popover/Popover.module.css +134 -0
  271. package/src/Popover/Popover.stories.module.css +5 -0
  272. package/src/Popover/Popover.stories.tsx +55 -0
  273. package/src/Popover/Popover.test.tsx +20 -0
  274. package/src/Popover/Popover.types.ts +4 -0
  275. package/src/Popover/index.tsx +78 -0
  276. package/src/QuoteBlock/QuoteBlock.module.css +79 -0
  277. package/src/QuoteBlock/QuoteBlock.stories.module.css +7 -0
  278. package/src/QuoteBlock/QuoteBlock.stories.tsx +36 -0
  279. package/src/QuoteBlock/QuoteBlock.test.tsx +20 -0
  280. package/src/QuoteBlock/QuoteBlock.types.ts +6 -0
  281. package/src/QuoteBlock/index.tsx +24 -0
  282. package/src/QuoteBlock/mock.json +6 -0
  283. package/src/RawHtmlBlock/RawHtmlBlock.stories.module.css +5 -0
  284. package/src/RawHtmlBlock/RawHtmlBlock.stories.tsx +34 -0
  285. package/src/RawHtmlBlock/RawHtmlBlock.test.tsx +20 -0
  286. package/src/RawHtmlBlock/RawHtmlBlock.types.ts +9 -0
  287. package/src/RawHtmlBlock/index.tsx +57 -0
  288. package/src/RelatedBlock/RelatedBlock.module.css +129 -0
  289. package/src/RelatedBlock/RelatedBlock.stories.module.css +5 -0
  290. package/src/RelatedBlock/RelatedBlock.stories.tsx +34 -0
  291. package/src/RelatedBlock/RelatedBlock.test.tsx +20 -0
  292. package/src/RelatedBlock/RelatedBlock.types.ts +4 -0
  293. package/src/RelatedBlock/index.tsx +45 -0
  294. package/src/RenderBlocks/RenderBlocks.stories.module.css +5 -0
  295. package/src/RenderBlocks/RenderBlocks.stories.tsx +34 -0
  296. package/src/RenderBlocks/RenderBlocks.test.tsx +20 -0
  297. package/src/RenderBlocks/RenderBlocks.types.ts +10 -0
  298. package/src/RenderBlocks/index.tsx +125 -0
  299. package/src/RichTitle/RichTitle.module.css +85 -0
  300. package/src/RichTitle/RichTitle.stories.module.css +5 -0
  301. package/src/RichTitle/RichTitle.stories.tsx +34 -0
  302. package/src/RichTitle/RichTitle.test.tsx +20 -0
  303. package/src/RichTitle/RichTitle.types.ts +4 -0
  304. package/src/RichTitle/index.tsx +32 -0
  305. package/src/SimpleBlock/FootnoteLink.css +34 -0
  306. package/src/SimpleBlock/SimpleBlock.module.css +393 -0
  307. package/src/SimpleBlock/SimpleBlock.stories.module.css +5 -0
  308. package/src/SimpleBlock/SimpleBlock.stories.tsx +34 -0
  309. package/src/SimpleBlock/SimpleBlock.test.tsx +20 -0
  310. package/src/SimpleBlock/SimpleBlock.types.ts +4 -0
  311. package/src/SimpleBlock/index.tsx +47 -0
  312. package/src/SimpleTitle/SimpleTitle.module.css +33 -0
  313. package/src/SimpleTitle/SimpleTitle.stories.module.css +5 -0
  314. package/src/SimpleTitle/SimpleTitle.stories.tsx +34 -0
  315. package/src/SimpleTitle/SimpleTitle.test.tsx +20 -0
  316. package/src/SimpleTitle/SimpleTitle.types.ts +4 -0
  317. package/src/SimpleTitle/index.tsx +29 -0
  318. package/src/SourceBlock/SourceBlock.module.css +110 -0
  319. package/src/SourceBlock/SourceBlock.stories.module.css +5 -0
  320. package/src/SourceBlock/SourceBlock.stories.tsx +34 -0
  321. package/src/SourceBlock/SourceBlock.test.tsx +20 -0
  322. package/src/SourceBlock/SourceBlock.types.ts +4 -0
  323. package/src/SourceBlock/index.tsx +44 -0
  324. package/src/Spoiler/Spoiler.module.css +177 -0
  325. package/src/Spoiler/Spoiler.stories.module.css +8 -0
  326. package/src/Spoiler/Spoiler.stories.tsx +36 -0
  327. package/src/Spoiler/Spoiler.test.tsx +20 -0
  328. package/src/Spoiler/Spoiler.types.ts +4 -0
  329. package/src/Spoiler/index.tsx +81 -0
  330. package/src/Spoiler/mock.json +49 -0
  331. package/src/SvgSymbol/SvgSymbol.module.css +240 -0
  332. package/src/SvgSymbol/SvgSymbol.stories.module.css +127 -0
  333. package/src/SvgSymbol/SvgSymbol.stories.tsx +95 -0
  334. package/src/SvgSymbol/SvgSymbol.test.tsx +21 -0
  335. package/src/SvgSymbol/SvgSymbol.types.ts +57 -0
  336. package/src/SvgSymbol/icons.ts +217 -0
  337. package/src/SvgSymbol/index.tsx +32 -0
  338. package/src/Switcher/Switcher.module.css +159 -0
  339. package/src/Switcher/Switcher.stories.module.css +28 -0
  340. package/src/Switcher/Switcher.stories.tsx +68 -0
  341. package/src/Switcher/Switcher.test.tsx +43 -0
  342. package/src/Switcher/Switcher.types.ts +16 -0
  343. package/src/Switcher/index.tsx +53 -0
  344. package/src/Table/Table.module.css +300 -0
  345. package/src/Table/Table.stories.module.css +5 -0
  346. package/src/Table/Table.stories.tsx +36 -0
  347. package/src/Table/Table.test.tsx +20 -0
  348. package/src/Table/Table.types.ts +26 -0
  349. package/src/Table/index.tsx +76 -0
  350. package/src/Table/mock.json +301 -0
  351. package/src/Tag/Tag.module.css +115 -0
  352. package/src/Tag/Tag.stories.module.css +5 -0
  353. package/src/Tag/Tag.stories.tsx +53 -0
  354. package/src/Tag/Tag.test.tsx +20 -0
  355. package/src/Tag/Tag.types.ts +14 -0
  356. package/src/Tag/index.tsx +33 -0
  357. package/src/Timestamp/Timestamp.module.css +6 -0
  358. package/src/Timestamp/Timestamp.stories.module.css +5 -0
  359. package/src/Timestamp/Timestamp.stories.tsx +34 -0
  360. package/src/Timestamp/Timestamp.test.tsx +20 -0
  361. package/src/Timestamp/Timestamp.types.ts +5 -0
  362. package/src/Timestamp/index.tsx +40 -0
  363. package/src/Toolbar/Toolbar.module.css +134 -0
  364. package/src/Toolbar/Toolbar.stories.module.css +5 -0
  365. package/src/Toolbar/Toolbar.stories.tsx +89 -0
  366. package/src/Toolbar/Toolbar.test.tsx +20 -0
  367. package/src/Toolbar/Toolbar.types.ts +4 -0
  368. package/src/Toolbar/index.tsx +28 -0
  369. package/src/ToolbarButton/ToolbarButton.module.css +97 -0
  370. package/src/ToolbarButton/ToolbarButton.stories.module.css +5 -0
  371. package/src/ToolbarButton/ToolbarButton.stories.tsx +36 -0
  372. package/src/ToolbarButton/ToolbarButton.test.tsx +20 -0
  373. package/src/ToolbarButton/ToolbarButton.types.ts +19 -0
  374. package/src/ToolbarButton/index.tsx +34 -0
  375. package/src/_storybook/PreviewWrapper/PreviewWrapper.module.css +117 -0
  376. package/src/_storybook/PreviewWrapper/index.tsx +23 -0
  377. package/src/constants.ts +24 -0
  378. package/src/index.tsx +38 -0
  379. package/src/utils/BlockContext.ts +7 -0
  380. package/src/utils/DangerousHtml.tsx +79 -0
  381. package/src/utils/makeClassName.ts +1 -1
  382. package/src/utils/makeStyleContext.ts +13 -0
  383. package/src/utils/toCamel.ts +2 -0
  384. package/LICENSE +0 -21
  385. package/src/global.d.ts +0 -4
@@ -1,4 +1,9 @@
1
- import React from 'react';
1
+ import React, { useState, useEffect, useContext, Children, useRef, useCallback } from 'react';
2
+ import { useInView } from 'react-intersection-observer';
3
+ import dayjs from 'dayjs';
4
+ import 'dayjs/locale/ru';
5
+ import relativeTime from 'dayjs/plugin/relativeTime';
6
+ import enableInlineVideo from 'iphone-inline-video';
2
7
 
3
8
  var makeClassName = function makeClassName(list) {
4
9
  return list.filter(function (_ref) {
@@ -70,7 +75,7 @@ var Button = function Button(_ref) {
70
75
  _ref$size = _ref.size,
71
76
  size = _ref$size === void 0 ? 'default' : _ref$size,
72
77
  _ref$state = _ref.state,
73
- state = _ref$state === void 0 ? 'default' : _ref$state,
78
+ state = _ref$state === void 0 ? 'isDefault' : _ref$state,
74
79
  _ref$styleContext = _ref.styleContext,
75
80
  styleContext = _ref$styleContext === void 0 ? 'isInToolbar' : _ref$styleContext,
76
81
  _ref$disabled = _ref.disabled,
@@ -97,5 +102,2206 @@ var Button = function Button(_ref) {
97
102
  }, React.createElement(Loader, null)) : children);
98
103
  };
99
104
 
100
- export { Button };
105
+ var css_248z$1 = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.SvgSymbol-module_root__2CsRW {\n width: 100%;\n height: 100%;\n\n vertical-align: middle;\n}\n.SvgSymbol-module_small__2g6oR {\n height: 14px;\n}\n.SvgSymbol-module_normal__9lFn1 {\n height: 14px;\n}\n.SvgSymbol-module_medium__2eF5L {\n width: 24px;\n height: 24px;\n}\n.SvgSymbol-module_large__2kQrt {\n width: 42px;\n height: 42px;\n}\n.SvgSymbol-module_adaptive__3_68T {\n width: 100%;\n height: 100%;\n}\n.SvgSymbol-module_fb__1whmw {\n width: 16px;\n\n fill: #304591;\n}\n.SvgSymbol-module_vk__3VEuu {\n width: 20px;\n\n fill: #527397;\n}\n.SvgSymbol-module_ok__2_1Qb {\n width: 9px;\n\n fill: #eb722e;\n}\n.SvgSymbol-module_tw__2VRG5 {\n width: 20px;\n\n fill: #31adf4;\n}\n.SvgSymbol-module_tg__2xe2f {\n width: 18px;\n\n fill: #2ba5e0;\n}\n.SvgSymbol-module_reaction__rrJvf {\n width: 16px;\n\n color: #b88b59;\n\n fill: #262626;\n}\n.SvgSymbol-module_card__1XAqw,\n.SvgSymbol-module_podcast__3oPoo,\n.SvgSymbol-module_read__2V82i,\n.SvgSymbol-module_listened__1oMFV {\n width: 15px;\n height: 15px;\n}\n.SvgSymbol-module_menu__2iYFt {\n width: 24px;\n height: 24px;\n}\n.SvgSymbol-module_cross__J2lCN {\n width: 14px;\n height: 14px;\n}\n.SvgSymbol-module_isInFeature__cDeTI,\n.SvgSymbol-module_isInCard__pKq4e {\n width: 16px;\n height: 16px;\n}\n.SvgSymbol-module_isInTopicBlockItem__3Te91 {\n width: 16px;\n height: 16px;\n}\n.SvgSymbol-module_isInPageStatic__H31Rd {\n width: 64px;\n height: 64px;\n}\n.SvgSymbol-module_isInMaterialMeta__2IbAw {\n margin-right: 6px;\n}\n.SvgSymbol-module_isInAudioPlayer__2xlzW {\n width: 29px;\n height: 29px;\n\n -webkit-filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));\n\n filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));\n}\n.SvgSymbol-module_isInEpisodeBlock__2vY3o {\n width: 38px;\n height: 38px;\n\n -webkit-filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));\n\n filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));\n}\n.SvgSymbol-module_isInButtonPlaybackRate__1L3TW {\n width: 34px;\n height: 28px\n}\n@media only screen and (min-device-width: 40.625em) {\n.SvgSymbol-module_isInButtonPlaybackRate__1L3TW {\n width: 28px;\n height: 22px\n}\n }\n.SvgSymbol-module_isInButtonBackward__1Grf9,\n.SvgSymbol-module_isInButtonForward__D1AFL {\n width: 28px;\n height: 28px\n}\n@media only screen and (min-device-width: 40.625em) {\n.SvgSymbol-module_isInButtonBackward__1Grf9,\n.SvgSymbol-module_isInButtonForward__D1AFL {\n width: 22px;\n height: 22px\n}\n }\n.SvgSymbol-module_isInToolbar__3SaIh.SvgSymbol-module_cross__J2lCN {\n width: 18px;\n height: 18px;\n}\n.SvgSymbol-module_play__pM-qY {\n width: 100%;\n height: 100%;\n}\n.SvgSymbol-module_meduzaLogo__2Ouzp {\n width: 92px;\n height: 20px\n}\n@media only screen and (min-device-width: 64em) {\n.SvgSymbol-module_meduzaLogo__2Ouzp {\n width: 100px;\n height: 45px\n}\n }\n.SvgSymbol-module_arrow__11naX {\n width: 12px;\n height: 12px;\n}\n.SvgSymbol-module_oil__hvHE5 {\n width: 9px;\n height: 12px;\n}\n.SvgSymbol-module_search__VK6p3 {\n width: 24px;\n height: 24px\n}\n@media only screen and (min-device-width: 64em) {\n.SvgSymbol-module_search__VK6p3 {\n width: 16px;\n height: 16px\n}\n }\n.SvgSymbol-module_user__1MGim {\n width: 14px;\n height: 14px\n}\n@media only screen and (min-device-width: 64em) {\n.SvgSymbol-module_user__1MGim {\n width: 16px;\n height: 16px\n}\n }\n.SvgSymbol-module_bookmark__2z7tX {\n width: 17px;\n height: auto;\n\n cursor: pointer;\n\n stroke-width: 2px\n}\n@media only screen and (min-device-width: 64em) {\n.SvgSymbol-module_bookmark__2z7tX {\n width: 14px;\n\n stroke-width: 1.5px\n}\n }\n.SvgSymbol-module_isInToolbar__3SaIh.SvgSymbol-module_bookmark__2z7tX {\n width: 14px;\n}\n.SvgSymbol-module_receipt__3Eqow {\n width: 10px;\n height: 13px;\n}\n.SvgSymbol-module_isInHeader__1QHjL.SvgSymbol-module_cross__J2lCN {\n width: 22px;\n height: 22px\n}\n@media only screen and (min-device-width: 64em) {\n.SvgSymbol-module_isInHeader__1QHjL.SvgSymbol-module_cross__J2lCN {\n width: 14px;\n height: 14px\n}\n }\n@media only screen and (min-device-width: 64em) {\n.SvgSymbol-module_isInHeader__1QHjL.SvgSymbol-module_search__VK6p3 circle {\n stroke-width: 1.5px\n}\n }\n.SvgSymbol-module_isInHeader__1QHjL.SvgSymbol-module_cross__J2lCN path {\n stroke-width: 1.8px\n}\n@media only screen and (min-device-width: 64em) {\n.SvgSymbol-module_isInHeader__1QHjL.SvgSymbol-module_cross__J2lCN path {\n stroke-width: 1.3px\n}\n }\n";
106
+ var styles$1 = {"root":"SvgSymbol-module_root__2CsRW","small":"SvgSymbol-module_small__2g6oR","normal":"SvgSymbol-module_normal__9lFn1","medium":"SvgSymbol-module_medium__2eF5L","large":"SvgSymbol-module_large__2kQrt","adaptive":"SvgSymbol-module_adaptive__3_68T","fb":"SvgSymbol-module_fb__1whmw","vk":"SvgSymbol-module_vk__3VEuu","ok":"SvgSymbol-module_ok__2_1Qb","tw":"SvgSymbol-module_tw__2VRG5","tg":"SvgSymbol-module_tg__2xe2f","reaction":"SvgSymbol-module_reaction__rrJvf","card":"SvgSymbol-module_card__1XAqw","podcast":"SvgSymbol-module_podcast__3oPoo","read":"SvgSymbol-module_read__2V82i","listened":"SvgSymbol-module_listened__1oMFV","menu":"SvgSymbol-module_menu__2iYFt","cross":"SvgSymbol-module_cross__J2lCN","isInFeature":"SvgSymbol-module_isInFeature__cDeTI","isInCard":"SvgSymbol-module_isInCard__pKq4e","isInTopicBlockItem":"SvgSymbol-module_isInTopicBlockItem__3Te91","isInPageStatic":"SvgSymbol-module_isInPageStatic__H31Rd","isInMaterialMeta":"SvgSymbol-module_isInMaterialMeta__2IbAw","isInAudioPlayer":"SvgSymbol-module_isInAudioPlayer__2xlzW","isInEpisodeBlock":"SvgSymbol-module_isInEpisodeBlock__2vY3o","isInButtonPlaybackRate":"SvgSymbol-module_isInButtonPlaybackRate__1L3TW","isInButtonBackward":"SvgSymbol-module_isInButtonBackward__1Grf9","isInButtonForward":"SvgSymbol-module_isInButtonForward__D1AFL","isInToolbar":"SvgSymbol-module_isInToolbar__3SaIh","play":"SvgSymbol-module_play__pM-qY","meduzaLogo":"SvgSymbol-module_meduzaLogo__2Ouzp","arrow":"SvgSymbol-module_arrow__11naX","oil":"SvgSymbol-module_oil__hvHE5","search":"SvgSymbol-module_search__VK6p3","user":"SvgSymbol-module_user__1MGim","bookmark":"SvgSymbol-module_bookmark__2z7tX","receipt":"SvgSymbol-module_receipt__3Eqow","isInHeader":"SvgSymbol-module_isInHeader__1QHjL"};
107
+ styleInject(css_248z$1);
108
+
109
+ var icons = {
110
+ meduzaLogo: {
111
+ width: 544,
112
+ height: 115,
113
+ content: '<path d="M59.1008614,49.65632 L59.1008614,106.01472 L84.9480411,114.24 L84.9480411,49.65632 L101.574882,49.65632 L101.574882,106.01472 L127.270909,114.24 L144.048902,91.392 L127.422062,91.392 L127.422062,35.7952 L101.726035,26.80832 L84.9480411,46.60992 L84.9480411,35.7952 L59.2520145,26.80832 L42.4740206,46.60992 L42.4740206,35.7952 L16.7779939,26.80832 L0,49.65632 L16.6268408,49.65632 L16.6268408,106.01472 L42.4740206,114.24 L42.4740206,49.65632 L59.1008614,49.65632 L59.1008614,49.65632 Z M336.61795,91.392 L336.61795,35.0336 L310.770769,26.80832 L310.770769,105.25312 L336.466796,114.24 L353.24479,94.4384 L353.24479,105.25312 L378.940817,114.24 L395.71881,91.392 L379.091969,91.392 L379.091969,35.0336 L353.24479,26.80832 L353.24479,91.392 L336.61795,91.392 L336.61795,91.392 Z M527.373159,38.08 L502.130592,26.80832 L472.202278,41.1264 L502.130592,52.39808 L461.016949,72.352 L461.016949,104.94848 L486.86413,114.24 L502.130592,94.28608 L502.130592,105.25312 L527.977771,114.24 L544,91.23968 L527.373159,91.23968 L527.373159,38.08 L527.373159,38.08 Z M177.453737,114.24 L207.079744,102.35904 L177.453737,91.23968 L177.453737,75.24608 L216.300083,56.3584 L194.231731,26.80832 L151.606557,47.37152 L151.606557,103.12064 L177.453737,114.24 L177.453737,114.24 Z M455.424284,89.56416 L423.984441,79.968 L453.459295,42.19264 L416.577937,26.80832 L397.230341,51.48416 L428.821339,61.23264 L398.741873,98.85568 L436.076687,114.24 L455.424284,89.56416 L455.424284,89.56416 Z M486.86413,91.392 L486.86413,68.84864 L502.130592,61.53728 L502.130592,91.392 L486.86413,91.392 L486.86413,91.392 Z M177.453737,41.58336 L190.452904,59.55712 L177.453737,65.80224 L177.453737,41.58336 L177.453737,41.58336 Z M222.95082,103.12064 L248.797999,114.24 L291.27202,97.18016 L291.27202,29.7024 L222.95082,0 L222.95082,26.30784 L265.424841,43.21536 L265.424841,97.33248 L248.797999,91.23968 L248.797999,43.71584 L222.95082,51.94112 L222.95082,103.12064 L222.95082,103.12064 Z" />'
114
+ },
115
+ menu: {
116
+ width: 24,
117
+ height: 24,
118
+ content: '<path d="M2 21h20M2 12h20M2 3h20" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" vector-effect="non-scaling-stroke" />'
119
+ },
120
+ fb: {
121
+ width: 16,
122
+ height: 18,
123
+ content: '<path d="M15.117 1H.883A.883.883 0 0 0 0 1.883v14.234A.883.883 0 0 0 .883 17h7.663v-6.196H6.461V8.389h2.085V6.61a2.91 2.91 0 0 1 3.106-3.192c.622-.003 1.244.03 1.863.095v2.16h-1.279c-1.002 0-1.196.476-1.196 1.176v1.541h2.39l-.31 2.415h-2.08V17h4.077a.883.883 0 0 0 .883-.883V1.883A.883.883 0 0 0 15.117 1" />'
124
+ },
125
+ tw: {
126
+ width: 20,
127
+ height: 18,
128
+ content: '<path d="M20 3.1c-.7.3-1.5.6-2.4.7.8-.5 1.5-1.4 1.8-2.4-.8.5-1.7.8-2.6 1-.7-.8-1.8-1.4-3-1.4-2.3 0-4.1 1.9-4.1 4.3 0 .3 0 .7.1 1-3.3-.1-6.4-1.8-8.4-4.4-.3.6-.5 1.4-.5 2.2 0 1.5.7 2.8 1.8 3.6-.7 0-1.3-.2-1.9-.5v.1c0 2.1 1.4 3.8 3.3 4.2-.3.1-.7.2-1.1.2-.3 0-.5 0-.8-.1.5 1.7 2 2.9 3.8 3-1.3 1-3.1 1.6-5 1.6-.3 0-.7 0-1-.1C1.8 17.3 4 18 6.3 18 13.8 18 18 11.5 18 5.8v-.6c.8-.5 1.5-1.2 2-2.1" fill-rule="nonzero"/>'
129
+ },
130
+ vk: {
131
+ width: 20,
132
+ height: 18,
133
+ content: '<path d="M16.517 9.851s2.587-3.768 2.886-5.058c.1-.396-.1-.694-.498-.694h-2.288c-.498 0-.697.199-.896.595 0 0-1.194 2.678-2.686 4.364-.498.496-.697.694-.995.694-.2 0-.299-.198-.299-.694V4.793c0-.595-.1-.793-.597-.793H7.463c-.2 0-.398.198-.398.397 0 .595.796.694.796 2.28v3.174c0 .595 0 .893-.299.893-.796 0-2.686-2.777-3.681-5.851-.2-.595-.398-.794-.995-.794H.597C.299 4.1 0 4.298 0 4.694c0 .595.697 3.471 3.483 7.34C5.373 14.611 7.86 16 10.05 16c1.393 0 1.691-.198 1.691-.793v-1.984c0-.496.2-.694.498-.694s.895.1 2.189 1.388C15.92 15.405 16.02 16 16.915 16h2.587c.299 0 .498-.1.498-.595 0-.595-.796-1.587-1.89-2.876-.498-.595-1.195-1.29-1.493-1.686-.398-.397-.299-.595-.1-.992" fill-rule="nonzero"/>'
134
+ },
135
+ ok: {
136
+ width: 9,
137
+ height: 18,
138
+ content: '<path d="M4.5 2c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4m0 5.7c-.9 0-1.6-.8-1.6-1.7 0-.9.7-1.6 1.6-1.6.9 0 1.7.7 1.7 1.7 0 .8-.8 1.6-1.7 1.6" fill-rule="nonzero"/> <path d="M6.127 12.982a9.194 9.194 0 0 0 2.307-.904c.602-.301.703-1.004.402-1.507-.301-.502-1.104-.703-1.605-.401-1.605 1.004-3.812 1.004-5.417 0-.502-.302-1.304-.201-1.605.3-.401.604-.2 1.206.401 1.608a9.194 9.194 0 0 0 2.307.904L.61 15.092c-.502.401-.502 1.104 0 1.607a1.357 1.357 0 0 0 1.705 0l2.207-2.11L6.73 16.7a1.357 1.357 0 0 0 1.705 0c.502-.402.502-1.105 0-1.608l-2.307-2.109" fill-rule="nonzero"/>'
139
+ },
140
+ tg: {
141
+ width: 18,
142
+ height: 18,
143
+ content: '<path d="M9 18c-5 0-9-4-9-9s4-9 9-9 9 4 9 9-4 9-9 9zm-1.5-7.4c1.1 1 2 3.3 2 3.3.4.2.7.1.8-.4l2.1-7.4c.1-.6-.2-.8-.6-.7L4 8.3c-.6.2-.6.5-.1.7 0 .1 2.4.6 3.6 1.6z" fill-rule="nonzero"/>'
144
+ },
145
+ meduzaSymbol: {
146
+ width: 24,
147
+ height: 18,
148
+ content: '<path d="M10.026233,17.0968697 L13.9737671,18.3530831 L13.9737671,10.9855851 L13.9737671,8.48948164 L16.5131165,8.48948164 L16.5131165,17.0968697 L20.4375656,18.3530831 L23,14.8636014 L20.4606507,14.8636014 L20.4606507,6.37252945 L16.5362015,5 L13.9737671,8.02421743 L13.9737671,6.37252945 L10.049318,5 L7.48688354,8.02421743 L7.48688354,6.37252945 L3.56243443,5 L1,8.48948164 L3.53934943,8.48948164 L3.53934943,17.0968697 L7.48688354,18.3530831 L7.48688354,8.48948164 L10.026233,8.48948164 L10.026233,17.0968697 Z" />'
149
+ },
150
+ backward: {
151
+ width: 25,
152
+ height: 27,
153
+ content: '<path d="M13 0v2.01c6.672.263 12 5.754 12 12.49C25 21.404 19.404 27 12.5 27S0 21.404 0 14.5c0-3.493 1.441-6.758 3.936-9.105a.75.75 0 111.028 1.092A10.965 10.965 0 001.5 14.5c0 6.075 4.925 11 11 11s11-4.925 11-11c0-5.907-4.656-10.727-10.499-10.989L13 6 8 3l5-3zm3.295 11.33v1.25h-3.16v1.63c.32-.32.86-.56 1.47-.56 1.13 0 2.14.81 2.14 2.16 0 1.42-1.06 2.31-2.67 2.31-1.16 0-2-.38-2.57-1l.79-.99c.45.47 1.07.73 1.77.73.79 0 1.24-.45 1.24-.99 0-.59-.44-.99-1.2-.99-.55 0-1 .16-1.4.54l-.99-.26v-3.83h4.58zm-5.94 0V18h-1.42v-4.84l-1.11 1.13-.81-.85 2.1-2.11h1.24z" fill-rule="nonzero"/>'
154
+ },
155
+ forward: {
156
+ width: 25,
157
+ height: 27,
158
+ content: '<path d="M12 0l5 3-5 3V3.511C6.157 3.773 1.5 8.592 1.5 14.5c0 6.075 4.925 11 11 11s11-4.925 11-11c0-3.075-1.267-5.946-3.464-8.013a.75.75 0 011.028-1.092A12.465 12.465 0 0125 14.5C25 21.404 19.404 27 12.5 27S0 21.404 0 14.5C0 7.764 5.328 2.272 12 2.01V0zm4.295 11.33v1.25h-3.16v1.63c.32-.32.86-.56 1.47-.56 1.13 0 2.14.81 2.14 2.16 0 1.42-1.06 2.31-2.67 2.31-1.16 0-2-.38-2.57-1l.79-.99c.45.47 1.07.73 1.77.73.79 0 1.24-.45 1.24-.99 0-.59-.44-.99-1.2-.99-.55 0-1 .16-1.4.54l-.99-.26v-3.83h4.58zm-5.94 0V18h-1.42v-4.84l-1.11 1.13-.81-.85 2.1-2.11h1.24z" fill-rule="nonzero"/>'
159
+ },
160
+ download: {
161
+ width: 25,
162
+ height: 27,
163
+ content: '<path d="M12.5 2C19.404 2 25 7.596 25 14.5S19.404 27 12.5 27 0 21.404 0 14.5 5.596 2 12.5 2zm0 1.5c-6.075 0-11 4.925-11 11s4.925 11 11 11 11-4.925 11-11-4.925-11-11-11zm6 15.75a.75.75 0 01.102 1.493l-.102.007h-12a.75.75 0 01-.102-1.493l.102-.007h12zm-6-12a.75.75 0 01.743.648L13.25 8v7.598l1.834-1.222a.75.75 0 11.832 1.248l-3 2a.75.75 0 01-.832 0l-3-2a.75.75 0 11.832-1.248l1.834 1.223V8a.75.75 0 01.648-.743l.102-.007z" fill-rule="nonzero" fill="currentColor" />'
164
+ },
165
+ play: {
166
+ width: 62,
167
+ height: 62,
168
+ content: '<path d="M24.35 41.772a.5.5 0 0 1-.739-.439V20.667a.5.5 0 0 1 .74-.44l18.944 10.334a.5.5 0 0 1 0 .878L24.351 41.772z" fill-rule="nonzero"/>'
169
+ },
170
+ pause: {
171
+ width: 22,
172
+ height: 22,
173
+ content: '<path d="M12.832 4h2.8c.276 0 .5.224.5.5v12.394c0 .277-.224.5-.5.5h-2.8c-.276 0-.5-.223-.5-.5V4.5c0-.276.224-.5.5-.5zM6.5 4h2.8c.277 0 .5.224.5.5v12.394c0 .277-.223.5-.5.5H6.5c-.276 0-.5-.223-.5-.5V4.5c0-.276.224-.5.5-.5z" />'
174
+ },
175
+ speedHalf: {
176
+ width: 25,
177
+ height: 27,
178
+ content: '<path d="M7.212 15.198V12.29l-.676.724L6 12.406 7.35 11h.825v4.198h-.963zM8.056 18H7.3l4.23-7h.765l-4.24 7zm2.99 0v-.735c1.717-1.27 2.134-1.679 2.134-2.14 0-.389-.288-.578-.665-.578-.467 0-.884.263-1.083.525l-.496-.64c.417-.493 1.053-.693 1.599-.693.913 0 1.599.462 1.599 1.312 0 .682-.556 1.28-1.708 2.14h1.737V18h-3.118zm5.998-2.918l-1.39 1.48-.567-.577 1.4-1.49-1.4-1.48.566-.588 1.39 1.49 1.4-1.49.557.588-1.4 1.48 1.4 1.49-.556.577-1.4-1.48z" /><path d="M12.5 27C19.404 27 25 21.404 25 14.5S19.404 2 12.5 2 0 7.596 0 14.5 5.596 27 12.5 27zm0-1.5c-6.075 0-11-4.925-11-11s4.925-11 11-11 11 4.925 11 11-4.925 11-11 11z" />'
179
+ },
180
+ speedOne: {
181
+ width: 25,
182
+ height: 27,
183
+ content: '<path d="M9.955 18v-4.84l-1.11 1.13-.81-.85 2.1-2.11h1.24V18h-1.42zm4.6-2.78l-1.4 1.41-.57-.55 1.41-1.42-1.41-1.41.57-.56 1.4 1.42 1.41-1.42.56.56-1.41 1.41 1.41 1.42-.56.55-1.41-1.41z" fill-rule="nonzero"/><path d="M12.5 27C19.404 27 25 21.404 25 14.5S19.404 2 12.5 2 0 7.596 0 14.5 5.596 27 12.5 27zm0-1.5c-6.075 0-11-4.925-11-11s4.925-11 11-11 11 4.925 11 11-4.925 11-11 11z" fill-rule="nonzero"/>'
184
+ },
185
+ speedOneHalf: {
186
+ width: 25,
187
+ height: 27,
188
+ content: '<path d="M5.62 18v-4.84l-1.11 1.13-.81-.85 2.1-2.11h1.24V18H5.62zm3.37-2.67v-2.77l-.68.69-.54-.58 1.36-1.34h.83v4h-.97zM9.84 18h-.76l4.26-6.67h.77L9.84 18zm3.01 0v-.7c1.73-1.21 2.15-1.6 2.15-2.04 0-.37-.29-.55-.67-.55-.47 0-.89.25-1.09.5l-.5-.61c.42-.47 1.06-.66 1.61-.66.92 0 1.61.44 1.61 1.25 0 .65-.56 1.22-1.72 2.04h1.75V18h-3.14zm6.04-2.78l-1.4 1.41-.57-.55 1.41-1.42-1.41-1.41.57-.56 1.4 1.42 1.41-1.42.56.56-1.41 1.41 1.41 1.42-.56.55-1.41-1.41z" fill-rule="nonzero"/><path d="M12.5 27C19.404 27 25 21.404 25 14.5S19.404 2 12.5 2 0 7.596 0 14.5 5.596 27 12.5 27zm0-1.5c-6.075 0-11-4.925-11-11s4.925-11 11-11 11 4.925 11 11-4.925 11-11 11z" fill-rule="nonzero"/>'
189
+ },
190
+ speedTwo: {
191
+ width: 25,
192
+ height: 27,
193
+ content: '<path d="M7.147 18v-1.158c2.685-2.078 3.471-2.792 3.471-3.64 0-.6-.52-.9-1.061-.9-.748 0-1.318.311-1.76.797L7 12.127C7.64 11.352 8.613 11 9.527 11c1.396 0 2.507.827 2.507 2.202 0 1.18-.924 2.203-2.625 3.506h2.675V18H7.147zm7.916-2.874l-1.377 1.457-.56-.568 1.386-1.468-1.386-1.458.56-.58 1.377 1.469 1.386-1.468.551.579-1.386 1.458L17 16.015l-.55.568-1.387-1.457z" fill-rule="nonzero"/><path d="M12.5 27C19.404 27 25 21.404 25 14.5S19.404 2 12.5 2 0 7.596 0 14.5 5.596 27 12.5 27zm0-1.5c-6.075 0-11-4.925-11-11s4.925-11 11-11 11 4.925 11 11-4.925 11-11 11z" fill-rule="nonzero"/>'
194
+ },
195
+ podcastBookmark: {
196
+ width: 25,
197
+ height: 27,
198
+ content: '<path d="M12.5 27C19.404 27 25 21.404 25 14.5S19.404 2 12.5 2 0 7.596 0 14.5 5.596 27 12.5 27zm0-1.5c-6.075 0-11-4.925-11-11s4.925-11 11-11 11 4.925 11 11-4.925 11-11 11z" /> <path d="M17.071 8.25H8a.75.75 0 00-.75.75v11.545l.007.104a.75.75 0 001.228.468l4.05-3.437 4.051 3.437a.75.75 0 001.235-.572V9a.75.75 0 00-.75-.75zm-.75 1.499v9.176l-3.3-2.8-.098-.07a.75.75 0 00-.873.07l-3.3 2.799V9.749h7.571z" data-stroke="true" /> <path d="M17.071 8.25H8a.75.75 0 00-.75.75v11.545l.007.104a.75.75 0 001.228.468l4.05-3.437 4.051 3.437a.75.75 0 001.235-.572V9a.75.75 0 00-.75-.75z" data-fill="true" />'
199
+ },
200
+ reaction: {
201
+ width: 16,
202
+ height: 16,
203
+ content: '<path data-theme="light" fill="#D09959" d="M1 2h14v12H1z"/> <path d="M0 1.778C0 .8.8 0 1.778 0h12.444C15.2 0 16 .8 16 1.778v12.444C16 15.2 15.2 16 14.222 16H1.778C.8 16 0 15.2 0 14.222V1.778zM6.8 11.7l2.5.8V6.2h1.6v5.5l2.5.8 1.6-2.3h-1.6V4.8L10.9 4 9.3 5.9V4.8L6.8 4 5.1 5.9V4.8L2.6 4 1 6.2h1.6v5.5l2.5.8V6.2h1.7v5.5z" />'
204
+ },
205
+ cross: {
206
+ width: 18,
207
+ height: 18,
208
+ content: '<path fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" vector-effect="non-scaling-stroke" d="M2 2l14 14M16 2L2 16" />'
209
+ },
210
+ link: {
211
+ width: 24,
212
+ height: 24,
213
+ content: '<path d="M9.158 18.928c-1.065 0-2.13-.405-2.94-1.215-1.624-1.623-1.624-4.262 0-5.884l.643-.645c.327-.326.854-.326 1.18 0 .325.326.325.853 0 1.178l-.645.645c-.972.972-.972 2.554 0 3.526.973.972 2.554.973 3.526 0l2.842-2.84c.97-.972.97-2.555 0-3.527-.325-.325-.325-.854 0-1.18.325-.324.853-.324 1.178 0 1.623 1.625 1.623 4.264 0 5.885l-2.84 2.84c-.81.81-1.877 1.216-2.942 1.216" /> <path d="M10.578 14.184c-.213 0-.426-.082-.59-.244-.784-.785-1.217-1.83-1.217-2.94 0-1.113.433-2.158 1.22-2.944l2.84-2.84c1.622-1.62 4.26-1.62 5.883 0 1.622 1.623 1.622 4.262 0 5.883l-.645.643c-.325.326-.852.326-1.178 0-.325-.325-.325-.852 0-1.178l.645-.644c.972-.97.972-2.554 0-3.526s-2.556-.972-3.527 0l-2.84 2.842c-.47.47-.73 1.096-.73 1.762 0 .667.26 1.293.73 1.763.325.327.325.854 0 1.18-.163.162-.376.244-.59.244" />'
214
+ },
215
+ search: {
216
+ width: 16,
217
+ height: 16,
218
+ content: '<g transform="translate(2 1)" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" vector-effect="non-scaling-stroke"><circle cx="5.5" cy="5.5" r="5.5"/><path d="M11.37 13.442l-.995-1.272"/></g>'
219
+ },
220
+ card: {
221
+ width: 15,
222
+ height: 15,
223
+ content: '<path d="M9 5.5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5H4a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5zm-.5 1h-4v4h4v-4zm2.5-3a.5.5 0 0 1 .5.5v5a.5.5 0 1 1-1 0V4.5H6a.5.5 0 0 1 0-1h5z" fill-rule="nonzero"/>'
224
+ },
225
+ podcast: {
226
+ width: 15,
227
+ height: 15,
228
+ content: '<path d="M5.252 11.432A.5.5 0 0 1 4.5 11V4a.5.5 0 0 1 .752-.432l6 3.5a.5.5 0 0 1 0 .864l-6 3.5zm.248-1.303L10.008 7.5 5.5 4.87v5.26z" fill-rule="nonzero" />'
229
+ },
230
+ arrow: {
231
+ width: 12,
232
+ height: 12,
233
+ content: '<path d="M3 7l3 3.5L9 7M6 10V1" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" vector-effect="non-scaling-stroke" />'
234
+ },
235
+ brent: {
236
+ width: 9,
237
+ height: 12,
238
+ content: '<g fill="#999" fill-rule="nonzero"><path d="M4.332 0l.528.606c2.528 2.902 3.804 5.07 3.804 6.634A4.332 4.332 0 110 7.24C0 5.676 1.276 3.508 3.804.606L4.332 0zm0 2.143l-.176.212C2.313 4.589 1.4 6.248 1.4 7.24a2.932 2.932 0 105.864 0c0-.992-.914-2.651-2.756-4.885l-.176-.212z"/><path d="M2.973 7.475c0 .415.417.863.835.924l.097.008v.7c-.79 0-1.548-.716-1.626-1.5l-.006-.132h.7z"/></g> '
239
+ },
240
+ user: {
241
+ width: 16,
242
+ height: 16,
243
+ content: '<path fill="currentColor" fill-rule="nonzero" d="M8 1a4.25 4.25 0 012.676 7.552 6.751 6.751 0 014.074 6.198.75.75 0 11-1.5 0 5.25 5.25 0 00-10.5 0 .75.75 0 11-1.5 0 6.752 6.752 0 014.074-6.199A4.25 4.25 0 018 1zm0 1.5A2.75 2.75 0 108 8a2.75 2.75 0 000-5.5z" />'
244
+ },
245
+ bookmark: {
246
+ width: 17,
247
+ height: 21,
248
+ content: '<path d="M16 20l-7.5-6.333L1 20V1h15z" stroke="currentColor" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"/>'
249
+ },
250
+ receipt: {
251
+ width: 10,
252
+ height: 13,
253
+ content: '<g fill="currentColor" fill-rule="nonzero"><path d="M10 0H0v13l2-1.74 1.5 1.305L5 11.26l1.5 1.305L8 11.26 10 13V0zM9 .997v9.81l-1-.87-1.5 1.304L5 9.937 3.5 11.24 2 9.937l-1 .87V.996h8z"/><path d="M7 3v1H3V3zM7 6v1H3V6z"/></g>'
254
+ },
255
+ read: {
256
+ width: 15,
257
+ height: 15,
258
+ content: '<g fill="none" fill-rule="evenodd"><path opacity=".98" d="M0 0h15v15H0z"/><path d="M13.085 1.694a.513.513 0 01.855.56l-.051.077-3.163 3.975a.514.514 0 01-.73.075l-.068-.069-1.812-2.208a.512.512 0 01.729-.716l.065.066 1.409 1.718 2.766-3.478z" fill="#6EAC65" fill-rule="nonzero"/><path d="M6.454 12.997l-.06-.01-.078-.023a.49.49 0 01-.266-.24l.011.015a2.349 2.349 0 00-.535-.607c-.89-.745-2.117-.917-3.813-.12a.5.5 0 01-.706-.37L1 11.558V4.568a.5.5 0 01.287-.453c2.053-.963 3.695-.733 4.88.26.327.272.556.548.698.77l.084.144.018.04.022.076.01.071L7 11.233l.126-.09c.95-.656 2.16-.857 3.608-.417l.266.087v-2.81a.5.5 0 01.41-.491l.09-.008a.5.5 0 01.492.41l.008.09v3.555a.5.5 0 01-.713.452c-1.696-.796-2.922-.624-3.813.12a2.533 2.533 0 00-.497.544l-.038.064a.486.486 0 01-.485.258zm-4.29-8.17L2 4.892v5.92c1.637-.572 2.977-.348 4 .42l.002-5.58a2.605 2.605 0 00-.476-.513c-.81-.677-1.897-.88-3.362-.314z" fill="currentColor" fill-rule="nonzero"/></g>'
259
+ },
260
+ listened: {
261
+ width: 15,
262
+ height: 15,
263
+ content: '<g fill-rule="nonzero"><path d="M4.978 4.354a.5.5 0 01-.332.624c-1.197.367-2.064 1.527-2.14 2.897l-.005.167a.749.749 0 01.999.708v3a.75.75 0 01-1.458.248L2 12a1 1 0 01-1-1v-1a1 1 0 01.5-.866V8.072c0-1.886 1.172-3.535 2.854-4.05a.5.5 0 01.624.332zM10 7a.5.5 0 01.492.41l.008.09.001 1.634a1 1 0 01.492.745L11 10v1a1 1 0 01-.883.993L10 12l-.042-.002a.75.75 0 01-1.451-.146L8.5 11.75v-3a.75.75 0 011.001-.707L9.5 7.5l.008-.09A.5.5 0 0110 7z" fill="currentColor" /><path d="M11.585 1.194a.513.513 0 01.855.56l-.051.077-3.163 3.975a.514.514 0 01-.73.075l-.068-.069-1.812-2.208a.512.512 0 01.729-.716l.065.066 1.409 1.718 2.766-3.478z" fill="#6EAC65" /></g>'
264
+ }
265
+ };
266
+
267
+ var SvgSymbol = function SvgSymbol(_ref) {
268
+ var icon = _ref.icon,
269
+ size = _ref.size,
270
+ styleContext = _ref.styleContext;
271
+ var data = icons[icon];
272
+ return React.createElement("svg", {
273
+ "data-testid": "svg-symbol",
274
+ xmlns: "http://www.w3.org/2000/svg",
275
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
276
+ className: makeClassName([[styles$1.root, true], [styles$1[size], !!styles$1[size]], [styles$1[icon], !!styles$1[icon]], [styles$1[styleContext], !!styles$1[styleContext]]]),
277
+ width: data.width,
278
+ height: data.height,
279
+ viewBox: "0 0 " + data.width + " " + data.height,
280
+ dangerouslySetInnerHTML: {
281
+ __html: data.content
282
+ }
283
+ });
284
+ };
285
+
286
+ var css_248z$2 = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.Switcher-module_root__1Env1 {\n position: relative;\n\n display: -webkit-box;\n\n display: -webkit-flex;\n\n display: -ms-flexbox;\n\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n\n font-weight: 600;\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n white-space: nowrap;\n\n cursor: pointer;\n\n -webkit-user-select: none;\n\n -moz-user-select: none;\n\n -ms-user-select: none;\n\n user-select: none;\n}\n.Switcher-module_dark__1IzaH {\n color: inherit;\n}\n.Switcher-module_dark__1IzaH .Switcher-module_control__1NTvY {\n background-color: transparent;\n}\n.Switcher-module_input__jaMVF {\n position: absolute;\n top: 0;\n left: 0;\n\n opacity: 0;\n}\n.Switcher-module_control__1NTvY {\n position: relative;\n\n display: block;\n\n width: 37px;\n height: 21px;\n\n background-color: #e6e6e6;\n\n border-radius: 15px;\n}\n.Switcher-module_control__1NTvY::before {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n\n width: 18px;\n\n background: rgba(19, 191, 17, 0);\n\n border-radius: 15px;\n\n transition: 0.25s ease-in-out;\n\n content: '';\n}\n.Switcher-module_knob__3kEy5 {\n position: relative;\n top: 2px;\n left: 2px;\n z-index: 200;\n\n display: block;\n\n width: 17px;\n height: 17px;\n\n background: #fff;\n\n border-radius: 15px;\n\n transition: 0.25s ease-in-out;\n}\n.Switcher-module_input__jaMVF:checked ~ .Switcher-module_control__1NTvY::before {\n width: 100%;\n\n background-color: #b88b59;\n}\n.Switcher-module_input__jaMVF:checked ~ .Switcher-module_control__1NTvY::after {\n box-shadow: inset 0 0 0 1px transparent;\n}\n.Switcher-module_input__jaMVF:checked ~ .Switcher-module_control__1NTvY .Switcher-module_knob__3kEy5 {\n left: 18px;\n}\n.Switcher-module_children__147JP.Switcher-module_left__2coeE {\n margin-right: 6px;\n}\n.Switcher-module_children__147JP.Switcher-module_right__yWG7h {\n margin-left: 6px;\n}\n/* panel */\n.Switcher-module_isInPanel__TumqY .Switcher-module_children__147JP {\n\n color: #999;\n\n font-size: 13px;\n letter-spacing: 0.5px;\n text-transform: uppercase;\n}\n/* menu */\n.Switcher-module_isInMenu__3XJYj {\n font-weight: normal;\n}\n.Switcher-module_isInMenu__3XJYj .Switcher-module_children__147JP {\n margin-right: 8px;\n}\n.Switcher-module_isInMenu__3XJYj .Switcher-module_control__1NTvY {\n width: 48px;\n height: 30px;\n}\n.Switcher-module_isInMenu__3XJYj .Switcher-module_knob__3kEy5 {\n top: 4px;\n\n width: 22px;\n height: 22px;\n\n background-color: #bababa;\n}\n/* stylelint-disable selector-max-compound-selectors */\n.Switcher-module_isInMenu__3XJYj input:checked ~ .Switcher-module_control__1NTvY .Switcher-module_knob__3kEy5 {\n left: 23px;\n\n background-color: #fff;\n}\n/* live */\n.Switcher-module_isInLive__2cLui .Switcher-module_children__147JP {\n\n color: #7f7f7f;\n\n font-size: 13px;\n letter-spacing: 0.5px;\n text-transform: uppercase;\n}\n.Switcher-module_isInMenu__3XJYj .Switcher-module_control__1NTvY {\n background-color: #1a1a1a;\n box-shadow: inset 0 0 0 1px #323232;\n}\n";
287
+ var styles$2 = {"root":"Switcher-module_root__1Env1","dark":"Switcher-module_dark__1IzaH","control":"Switcher-module_control__1NTvY","input":"Switcher-module_input__jaMVF","knob":"Switcher-module_knob__3kEy5","children":"Switcher-module_children__147JP","left":"Switcher-module_left__2coeE","right":"Switcher-module_right__yWG7h","isInPanel":"Switcher-module_isInPanel__TumqY","isInMenu":"Switcher-module_isInMenu__3XJYj","isInLive":"Switcher-module_isInLive__2cLui"};
288
+ styleInject(css_248z$2);
289
+
290
+ var Switcher = function Switcher(_ref) {
291
+ var enabled = _ref.enabled,
292
+ children = _ref.children,
293
+ _ref$childrenPosition = _ref.childrenPosition,
294
+ childrenPosition = _ref$childrenPosition === void 0 ? 'left' : _ref$childrenPosition,
295
+ onChange = _ref.onChange,
296
+ styleContext = _ref.styleContext,
297
+ _ref$theme = _ref.theme,
298
+ theme = _ref$theme === void 0 ? 'light' : _ref$theme;
299
+ return React.createElement("label", {
300
+ "data-testid": "switcher",
301
+ className: makeClassName([[styles$2.root, true], [styles$2[theme], !!styles$2[theme]], [styles$2[styleContext], !!styles$2[styleContext]]])
302
+ }, children && childrenPosition === 'left' && React.createElement("div", {
303
+ className: makeClassName([[styles$2.children, true], [styles$2.left, true]])
304
+ }, children), React.createElement("input", {
305
+ className: styles$2.input,
306
+ type: "checkbox",
307
+ checked: enabled,
308
+ onChange: onChange
309
+ }), React.createElement("span", {
310
+ className: styles$2.control
311
+ }, React.createElement("span", {
312
+ className: styles$2.knob
313
+ })), children && childrenPosition === 'right' && React.createElement("div", {
314
+ className: makeClassName([[styles$2.children, true], [styles$2.right, true]])
315
+ }, children));
316
+ };
317
+
318
+ var BlockContext = /*#__PURE__*/React.createContext({
319
+ lightBox: null
320
+ });
321
+ var BlockProvider = BlockContext.Provider;
322
+
323
+ var viewportSize = (function () {
324
+ return {
325
+ width: window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth,
326
+ height: window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
327
+ };
328
+ });
329
+
330
+ var MediaQuerySizes = {
331
+ MOBILE: 512,
332
+ PORTRAIT_TABLET: 768,
333
+ LANDSCAPE_TABLET: 1024,
334
+ DESKTOP: 1010,
335
+ WIDE_DESKTOP: 1200
336
+ };
337
+ var imageBreakpoints = {
338
+ 325: '(min-width: 0)',
339
+ 520: '(min-width: 325px)',
340
+ 600: '(min-width: 600px)',
341
+ 650: '(min-width: 650px)',
342
+ 980: '(min-width: 1000px)',
343
+ 1335: '(min-width: 1000px)'
344
+ };
345
+ var imageConditionalKeys = {
346
+ xs: [325],
347
+ superFull: [1335, 650, 520, 325],
348
+ full: [980, 650, 520, 325],
349
+ "default": [650, 520, 325],
350
+ narrow: [600, 325]
351
+ };
352
+
353
+ var css_248z$3 = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.Lazy-module_root__2Z72l {\n display: block;\n}\n.Lazy-module_visible__3-SdX {\n color: red;\n}\n";
354
+ var styles$3 = {"root":"Lazy-module_root__2Z72l","visible":"Lazy-module_visible__3-SdX"};
355
+ styleInject(css_248z$3);
356
+
357
+ var Lazy = function Lazy(_ref) {
358
+ var children = _ref.children,
359
+ threshold = _ref.threshold;
360
+
361
+ var _useInView = useInView({
362
+ threshold: threshold || 0
363
+ }),
364
+ ref = _useInView[0],
365
+ inView = _useInView[1],
366
+ entry = _useInView[2];
367
+
368
+ var _useState = useState(false),
369
+ visible = _useState[0],
370
+ setVisible = _useState[1];
371
+
372
+ useEffect(function () {
373
+ if (entry && entry.boundingClientRect && entry.boundingClientRect.y < 0) {
374
+ setVisible(true);
375
+ }
376
+ }, [entry]);
377
+ useEffect(function () {
378
+ if (inView) {
379
+ setVisible(true);
380
+ }
381
+ }, [inView]);
382
+ return React.createElement("div", {
383
+ className: makeClassName([[styles$3.root, true], [styles$3.visible, visible]]),
384
+ ref: ref,
385
+ "data-testid": "lazy"
386
+ }, visible && children);
387
+ };
388
+
389
+ var toCamel = function toCamel(s) {
390
+ return s.replace(/([_][a-z])/gi, function (str) {
391
+ return str.toUpperCase().replace('_', '');
392
+ });
393
+ };
394
+
395
+ var RenderPicture = function RenderPicture(_ref) {
396
+ var source = _ref.source,
397
+ fallbackSource = _ref.fallbackSource,
398
+ optimized = _ref.optimized,
399
+ alt = _ref.alt,
400
+ display = _ref.display;
401
+
402
+ var _useState = useState(false),
403
+ fallback = _useState[0],
404
+ setFallback = _useState[1];
405
+
406
+ useEffect(function () {
407
+ setFallback(!window.HTMLPictureElement);
408
+ }, []);
409
+ var keys = imageConditionalKeys[toCamel(display)] || imageConditionalKeys["default"];
410
+ return React.createElement("picture", null, source && React.createElement("source", {
411
+ media: "(min-width: 325px)",
412
+ srcSet: source[1] + " 2x"
413
+ }), optimized && !optimized.w325 && React.createElement("source", {
414
+ media: "(min-width: 0)",
415
+ srcSet: "" + optimized.original
416
+ }), optimized && keys.map(function (key) {
417
+ var breakpoint = optimized["w" + key];
418
+
419
+ if (!breakpoint) {
420
+ return null;
421
+ }
422
+
423
+ return React.createElement(React.Fragment, {
424
+ key: key
425
+ }, React.createElement("source", {
426
+ type: "image/webp",
427
+ media: imageBreakpoints[key],
428
+ srcSet: breakpoint['2x_webp'] + " 2x, " + breakpoint['1x_webp'] + " 1x "
429
+ }), React.createElement("source", {
430
+ type: "image/png",
431
+ media: imageBreakpoints[key],
432
+ srcSet: breakpoint['2x'] + " 2x, " + breakpoint['1x'] + " 1x "
433
+ }));
434
+ }), React.createElement("img", {
435
+ src: fallback ? fallbackSource : 'data:image/gif;base64,R0lGODlhAQABAPAAAPLy8gAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==',
436
+ alt: alt
437
+ }));
438
+ };
439
+
440
+ var css_248z$4 = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.Image-module_root__1vsA_ {\n position: relative;\n z-index: 1;\n\n display: block;\n overflow: hidden\n}\n@media only screen and (min-device-width: 32em) {\n.Image-module_root__1vsA_ {\n border-radius: inherit\n}\n }\n.Image-module_placeholder__1p4ob,\n.Image-module_root__1vsA_ img {\n position: absolute;\n top: 0;\n left: 0;\n\n width: 100%;\n height: 100%;\n}\n.Image-module_wrapper__3fLjs {\n display: block;\n\n width: 100%;\n\n background-repeat: no-repeat;\n background-size: 100% auto;\n}\n.Image-module_placeholder__1p4ob {\n transition: background-color 250ms ease;\n\n background-color: #f2f2f2;\n}\n.Image-module_loaded__w9FVT {\n background: transparent;\n}\n.Image-module_fullscreen__29apx picture {\n cursor: pointer;\n}\n.Image-module_fullscreen__29apx picture:hover::after {\n opacity: 1;\n}\n.Image-module_fullscreen__29apx picture::after {\n position: absolute;\n right: 12px;\n bottom: 12px;\n\n width: 40px;\n height: 40px;\n\n transition: opacity 250ms ease;\n pointer-events: none;\n\n opacity: 0;\n border: 0.5px solid rgba(255, 255, 255, 0.15);\n border-radius: 20px;\n background-color: rgba(0, 0, 0, 0.7);\n background-image: url(\"data:image/svg+xml,%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.197 10.207V3.763h-6.463' stroke='%23DBDBDB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M19.793 4.166l-6.173 6.172' stroke='%23DBDBDB' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M3.803 13.733v6.444h6.463' stroke='%23DBDBDB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4.207 19.774l6.173-6.171' stroke='%23DBDBDB' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: center\n}\n@media only screen and (min-device-width: 64em) {\n.Image-module_fullscreen__29apx picture::after {\n content: ''\n}\n }\n[data-input='mouse'] .Image-module_wrapper__3fLjs {\n outline: none;\n}\n";
441
+ var styles$4 = {"root":"Image-module_root__1vsA_","placeholder":"Image-module_placeholder__1p4ob","wrapper":"Image-module_wrapper__3fLjs","loaded":"Image-module_loaded__w9FVT","fullscreen":"Image-module_fullscreen__29apx"};
442
+ styleInject(css_248z$4);
443
+
444
+ var Image = function Image(_ref) {
445
+ var alt = _ref.alt,
446
+ display = _ref.display,
447
+ optimized = _ref.optimized,
448
+ width = _ref.width,
449
+ height = _ref.height,
450
+ source = _ref.source,
451
+ lazy = _ref.lazy,
452
+ fullscreen = _ref.fullscreen,
453
+ ratio = _ref.ratio;
454
+
455
+ var _useContext = useContext(BlockContext),
456
+ lightBox = _useContext.lightBox;
457
+
458
+ var handleClick = function handleClick() {
459
+ var _viewportSize = viewportSize(),
460
+ viewportWidth = _viewportSize.width;
461
+
462
+ if (optimized && !optimized.original || !lightBox || viewportWidth >= MediaQuerySizes.LANDSCAPE_TABLET && !fullscreen) {
463
+ return;
464
+ }
465
+
466
+ postMessage('fullscreen_click', 'click');
467
+ lightBox.show(optimized, width, height, alt);
468
+ };
469
+
470
+ var pictureStyles = {
471
+ paddingBottom: 100 / (ratio || width / height) + "%"
472
+ };
473
+ var blockStyles = {
474
+ maxWidth: width <= 649 ? width : '100%'
475
+ };
476
+ /* fallback w325 url until w6 was released */
477
+
478
+ var fallbackSource = source && source[0] || optimized.w325 && optimized.w325['1x'] || optimized.original;
479
+ return React.createElement("div", {
480
+ className: makeClassName([[styles$4.root, true], [styles$4.fullscreen, fullscreen]]),
481
+ style: blockStyles,
482
+ "data-testid": "image"
483
+ }, React.createElement("div", {
484
+ className: styles$4.wrapper,
485
+ style: pictureStyles,
486
+ onClick: function onClick() {
487
+ return handleClick();
488
+ },
489
+ onKeyPress: function onKeyPress() {
490
+ return handleClick();
491
+ },
492
+ role: "button",
493
+ tabIndex: 0
494
+ }, lazy ? React.createElement(React.Fragment, null, React.createElement(Lazy, {
495
+ threshold: 0.25
496
+ }, React.createElement(RenderPicture, {
497
+ fallbackSource: fallbackSource,
498
+ source: source,
499
+ optimized: optimized,
500
+ alt: alt,
501
+ display: display
502
+ })), React.createElement("noscript", null, React.createElement("img", {
503
+ src: fallbackSource,
504
+ alt: alt
505
+ }))) : React.createElement(RenderPicture, {
506
+ fallbackSource: fallbackSource,
507
+ source: source,
508
+ optimized: optimized,
509
+ alt: alt,
510
+ display: display
511
+ })));
512
+ };
513
+
514
+ var css_248z$5 = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.DotsOnImage-module_root__2XP3Q {\n position: relative;\n\n display: block;\n}\n.DotsOnImage-module_dot__H1wua {\n position: absolute;\n z-index: 10;\n\n width: 28px;\n height: 28px;\n margin: 0;\n padding: 0;\n\n cursor: pointer;\n text-align: center;\n\n color: #fff;\n border-width: 0;\n border-radius: 30px;\n outline-width: 0;\n background-color: #000;\n box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-weight: 600;\n line-height: 28px;\n\n -webkit-appearance: none;\n\n -moz-appearance: none;\n\n appearance: none;\n}\n.DotsOnImage-module_popover__35Cpj {\n position: absolute;\n z-index: 10;\n top: 50%;\n left: 50%;\n\n width: 340px;\n padding: 25px;\n\n transform: translate(-50%, -50%);\n\n border: 1px solid rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n background: #fff;\n box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.2);\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n}\n.DotsOnImage-module_popoverTitle__343d8 {\n font-weight: 600;\n}\n";
515
+ var styles$5 = {"root":"DotsOnImage-module_root__2XP3Q","dot":"DotsOnImage-module_dot__H1wua","popover":"DotsOnImage-module_popover__35Cpj","popoverTitle":"DotsOnImage-module_popoverTitle__343d8"};
516
+ styleInject(css_248z$5);
517
+
518
+ var DotsOnImage = function DotsOnImage(_ref) {
519
+ var block = _ref.block;
520
+ var optimized = block.optimized,
521
+ width = block.width,
522
+ height = block.height,
523
+ credit = block.credit,
524
+ display = block.display,
525
+ dots = block.dots;
526
+
527
+ var _useState = useState({
528
+ title: null,
529
+ body: null,
530
+ show: false,
531
+ id: null
532
+ }),
533
+ popover = _useState[0],
534
+ setPopover = _useState[1];
535
+
536
+ var handleDotClick = function handleDotClick(dot) {
537
+ var shouldShow = dot.id !== popover.id;
538
+ setPopover({
539
+ title: dot.title,
540
+ body: dot.body,
541
+ show: shouldShow,
542
+ id: shouldShow ? dot.id : null
543
+ });
544
+ };
545
+
546
+ return React.createElement("div", {
547
+ "data-testid": "dots-on-image",
548
+ className: makeClassName([[styles$5.root, true]])
549
+ }, React.createElement("div", {
550
+ className: styles$5.dots
551
+ }, dots.map(function (dot) {
552
+ return React.createElement("button", {
553
+ className: styles$5.dot,
554
+ type: "button",
555
+ key: dot.id,
556
+ style: {
557
+ top: dot.position.y + "%",
558
+ left: dot.position.x + "%",
559
+ backgroundColor: dot.icon.color
560
+ },
561
+ onClick: function onClick() {
562
+ return handleDotClick(dot);
563
+ }
564
+ }, dot.icon.type === 'svg' && React.createElement("div", {
565
+ className: styles$5.icon,
566
+ dangerouslySetInnerHTML: {
567
+ __html: dot.icon.svg_string
568
+ }
569
+ }), dot.icon.type === 'number' && dot.icon.number);
570
+ })), React.createElement("div", {
571
+ className: styles$5.image
572
+ }, React.createElement(Image, {
573
+ optimized: optimized,
574
+ width: width,
575
+ height: height,
576
+ alt: credit,
577
+ display: display
578
+ })), popover.show && React.createElement("div", {
579
+ className: styles$5.popover
580
+ }, React.createElement("div", {
581
+ className: styles$5.popoverTitle
582
+ }, popover.title), React.createElement("div", {
583
+ className: styles$5.popoverBody,
584
+ dangerouslySetInnerHTML: {
585
+ __html: popover.body
586
+ }
587
+ })));
588
+ };
589
+
590
+ var makeStyleContext = function makeStyleContext(classNames, styleContext, styles) {
591
+ var context = Array.isArray(styleContext) ? styleContext.filter(function (ctx) {
592
+ return styles[ctx];
593
+ }).map(function (ctx) {
594
+ return [[styles[ctx]], true];
595
+ }) : [[styles[styleContext], !!styleContext && !!styles[styleContext]]];
596
+ return classNames.concat(context);
597
+ };
598
+
599
+ var css_248z$6 = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.Tag-module_root__3IqWC {\n display: inline-block;\n\n cursor: default;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n vertical-align: middle;\n letter-spacing: 1px;\n text-transform: uppercase;\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-size: 12px;\n font-weight: 600;\n line-height: 12px;\n}\n.Tag-module_small__2IAb7 {\n font-size: 12px;\n line-height: 12px\n}\n@media only screen and (min-device-width: 64em) {\n.Tag-module_small__2IAb7 {\n line-height: 14px\n}\n }\n@media only screen and (min-device-width: 64em) {\n.Tag-module_large__22z_o {\n letter-spacing: 1px;\n\n font-size: 14px;\n line-height: 16px\n}\n }\n.Tag-module_dark__sgnt1 {\n color: #000;\n}\n.Tag-module_light__1zUhp {\n color: #fff;\n}\n.Tag-module_gold__2ksA7 {\n color: #b88b59;\n}\n.Tag-module_gray__mGAO_ {\n color: #757575;\n}\n.Tag-module_inherit__2QB5U {\n color: inherit;\n}\n@media only screen and (min-device-width: 64em) {\n.Tag-module_is1to1__3EDbC,\n.Tag-module_is1to2__3xbC6,\n.Tag-module_isInSuperBlock__38JE0 {\n letter-spacing: 1px;\n\n font-size: 12px;\n line-height: 20px\n}\n }\n@media only screen and (min-device-width: 64em) {\n.Tag-module_is1to3__3j5K-,\n.Tag-module_is1to4__2vq4r {\n letter-spacing: 0.5px;\n\n font-size: 10px;\n line-height: 15px\n}\n }\n@media only screen and (min-device-width: 32em) {\n.Tag-module_slide__2nMDw,\n.Tag-module_game__3j5yG {\n width: 100%;\n\n text-align: center\n}\n }\n.Tag-module_slide__2nMDw,\n.Tag-module_game__3j5yG,\n.Tag-module_card__1EAeF,\n.Tag-module_live__rwXuR,\n.Tag-module_episode__3o6gg,\n.Tag-module_podcast__VPoll,\n.Tag-module_rich__2URd9,\n.Tag-module_isInDynamicBlock__1YM9I {\n margin-bottom: 6px;\n\n line-height: 10px\n}\n@media only screen and (min-device-width: 32em) {\n.Tag-module_slide__2nMDw,\n.Tag-module_game__3j5yG,\n.Tag-module_card__1EAeF,\n.Tag-module_live__rwXuR,\n.Tag-module_episode__3o6gg,\n.Tag-module_podcast__VPoll,\n.Tag-module_rich__2URd9,\n.Tag-module_isInDynamicBlock__1YM9I {\n margin-bottom: 10px\n}\n }\n@media only screen and (min-device-width: 32em) {\n.Tag-module_mobile__QQxuv {\n display: none\n}\n }\n.Tag-module_desktop__1Bjsy {\n display: none\n}\n@media only screen and (min-device-width: 32em) {\n.Tag-module_desktop__1Bjsy {\n display: block\n}\n }\n";
600
+ var styles$6 = {"root":"Tag-module_root__3IqWC","small":"Tag-module_small__2IAb7","large":"Tag-module_large__22z_o","dark":"Tag-module_dark__sgnt1","light":"Tag-module_light__1zUhp","gold":"Tag-module_gold__2ksA7","gray":"Tag-module_gray__mGAO_","inherit":"Tag-module_inherit__2QB5U","is1to1":"Tag-module_is1to1__3EDbC","is1to2":"Tag-module_is1to2__3xbC6","isInSuperBlock":"Tag-module_isInSuperBlock__38JE0","is1to3":"Tag-module_is1to3__3j5K-","is1to4":"Tag-module_is1to4__2vq4r","slide":"Tag-module_slide__2nMDw","game":"Tag-module_game__3j5yG","card":"Tag-module_card__1EAeF","live":"Tag-module_live__rwXuR","episode":"Tag-module_episode__3o6gg","podcast":"Tag-module_podcast__VPoll","rich":"Tag-module_rich__2URd9","isInDynamicBlock":"Tag-module_isInDynamicBlock__1YM9I","mobile":"Tag-module_mobile__QQxuv","desktop":"Tag-module_desktop__1Bjsy"};
601
+ styleInject(css_248z$6);
602
+
603
+ var Tag = function Tag(_ref) {
604
+ var children = _ref.children,
605
+ _ref$size = _ref.size,
606
+ size = _ref$size === void 0 ? 'small' : _ref$size,
607
+ _ref$theme = _ref.theme,
608
+ theme = _ref$theme === void 0 ? 'gold' : _ref$theme,
609
+ styleContext = _ref.styleContext,
610
+ correlation = _ref.correlation,
611
+ onlyOn = _ref.onlyOn;
612
+ var classNames = [[styles$6.root, true], [styles$6[size], !!size && !!styles$6[size]], [styles$6[theme], !!theme && !!styles$6[theme]], [styles$6[onlyOn], !!onlyOn && !!styles$6[onlyOn]], [styles$6[correlation], !!correlation && !!styles$6[correlation]]];
613
+
614
+ if (styleContext) {
615
+ classNames = makeStyleContext(classNames, styleContext, styles$6);
616
+ }
617
+
618
+ return React.createElement("div", {
619
+ "data-testid": "tag",
620
+ className: makeClassName(classNames)
621
+ }, children);
622
+ };
623
+
624
+ var css_248z$7 = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.MediaCaption-module_root__KqTdw {\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n}\n.MediaCaption-module_root__KqTdw a {\n text-decoration: underline;\n\n color: inherit;\n box-shadow: none;\n}\n.MediaCaption-module_root__KqTdw a:hover {\n color: #b88b58;\n}\n.MediaCaption-module_caption__1hr7Y {\n max-width: 520px;\n padding-top: 4px;\n\n color: #1a1a1a;\n\n font-size: 14px;\n line-height: 18px\n}\n@media only screen and (min-device-width: 32em) {\n.MediaCaption-module_caption__1hr7Y {\n font-size: 16px;\n line-height: 22px\n}\n }\n.MediaCaption-module_credit__3ehAP {\n max-width: 520px;\n padding-top: 1px;\n\n color: #666;\n\n font-size: 12px;\n line-height: 16px\n}\n@media only screen and (min-device-width: 32em) {\n.MediaCaption-module_credit__3ehAP {\n padding-top: 3px\n}\n }\n.MediaCaption-module_credit__3ehAP:first-child {\n padding-top: 3px;\n}\n.MediaCaption-module_dark__3tL1u .MediaCaption-module_caption__1hr7Y {\n color: #fff;\n}\n.MediaCaption-module_dark__3tL1u .MediaCaption-module_credit__3ehAP {\n color: #929292;\n}\n.MediaCaption-module_video__1KZ6k .MediaCaption-module_caption__1hr7Y,\n.MediaCaption-module_picture__3AAMH .MediaCaption-module_caption__1hr7Y {\n padding-top: 10px\n}\n@media only screen and (min-device-width: 32em) {\n.MediaCaption-module_video__1KZ6k .MediaCaption-module_caption__1hr7Y,\n.MediaCaption-module_picture__3AAMH .MediaCaption-module_caption__1hr7Y {\n padding-top: 12px\n}\n }\n.MediaCaption-module_video__1KZ6k .MediaCaption-module_credit__3ehAP:first-child,\n.MediaCaption-module_picture__3AAMH .MediaCaption-module_credit__3ehAP:first-child {\n padding-top: 9px\n}\n@media only screen and (min-device-width: 32em) {\n.MediaCaption-module_video__1KZ6k .MediaCaption-module_credit__3ehAP:first-child,\n.MediaCaption-module_picture__3AAMH .MediaCaption-module_credit__3ehAP:first-child {\n padding-top: 11px\n}\n }\n.MediaCaption-module_picture__3AAMH .MediaCaption-module_credit__3ehAP,\n.MediaCaption-module_picture__3AAMH .MediaCaption-module_caption__1hr7Y,\n.MediaCaption-module_video__1KZ6k .MediaCaption-module_credit__3ehAP,\n.MediaCaption-module_video__1KZ6k .MediaCaption-module_caption__1hr7Y,\n.MediaCaption-module_desktop__3Saev .MediaCaption-module_credit__3ehAP,\n.MediaCaption-module_desktop__3Saev .MediaCaption-module_caption__1hr7Y {\n max-width: 650px;\n}\n\n";
625
+ var styles$7 = {"root":"MediaCaption-module_root__KqTdw","caption":"MediaCaption-module_caption__1hr7Y","credit":"MediaCaption-module_credit__3ehAP","dark":"MediaCaption-module_dark__3tL1u","video":"MediaCaption-module_video__1KZ6k","picture":"MediaCaption-module_picture__3AAMH","desktop":"MediaCaption-module_desktop__3Saev"};
626
+ styleInject(css_248z$7);
627
+
628
+ var MediaCaption = function MediaCaption(_ref) {
629
+ var credit = _ref.credit,
630
+ caption = _ref.caption,
631
+ styleContext = _ref.styleContext;
632
+ var classNames = [[styles$7.root, true]];
633
+
634
+ if (styleContext) {
635
+ classNames = makeStyleContext(classNames, styleContext, styles$7);
636
+ }
637
+
638
+ return React.createElement("div", {
639
+ "data-testid": "media-caption",
640
+ className: makeClassName(classNames)
641
+ }, caption && React.createElement("div", {
642
+ className: styles$7.caption,
643
+ dangerouslySetInnerHTML: {
644
+ __html: caption
645
+ }
646
+ }), credit && React.createElement("div", {
647
+ className: styles$7.credit,
648
+ dangerouslySetInnerHTML: {
649
+ __html: credit
650
+ }
651
+ }));
652
+ };
653
+
654
+ var css_248z$8 = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.Table-module_root__1VsG6 {\n margin: 15px 0\n}\n@media only screen and (min-device-width: 32em) {\n.Table-module_root__1VsG6 {\n margin: 25px auto 20px\n}\n }\n.Table-module_card__3gbok .Table-module_table__nZIkV,\n.Table-module_slide__nSGPC .Table-module_table__nZIkV {\n margin-right: -11px;\n margin-left: -11px\n}\n@media only screen and (min-device-width: 64em) {\n.Table-module_card__3gbok .Table-module_table__nZIkV,\n.Table-module_slide__nSGPC .Table-module_table__nZIkV {\n margin-right: 0;\n margin-left: 0\n}\n }\n.Table-module_card__3gbok .Table-module_wrapper__1YTKM::after,\n.Table-module_slide__nSGPC .Table-module_wrapper__1YTKM::after {\n right: -11px;\n}\n.Table-module_root__1VsG6:first-child {\n margin-top: 0;\n}\n.Table-module_root__1VsG6:last-child {\n margin-bottom: 0;\n}\n.Table-module_table__nZIkV {\n position: relative;\n\n overflow-y: hidden;\n\n margin: 0 -20px;\n\n border-width: 1px 0;\n border-style: solid;\n border-color: rgba(232, 232, 232, 1);\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif\n}\n@media only screen and (min-device-width: 32em) {\n.Table-module_table__nZIkV {\n margin: 0;\n\n border-width: 1px;\n border-radius: 3px\n}\n }\n.Table-module_tracks__2wrDB {\n display: table;\n\n width: 100%\n}\n@media only screen and (min-device-width: 32em) {\n.Table-module_tracks__2wrDB {\n table-layout: fixed\n}\n }\n.Table-module_wrapper__1YTKM {\n position: relative;\n}\n.Table-module_wrapper__1YTKM::after {\n position: absolute;\n z-index: 100;\n top: 0;\n right: -20px;\n bottom: -20px;\n\n display: block;\n\n width: 30px;\n height: 100%;\n\n content: \"\";\n\n background-image: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), color-stop(71%, rgb(255, 255, 255)));\n\n background-image: -o-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 71%);\n\n background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 71%)\n}\n@media only screen and (min-device-width: 32em) {\n.Table-module_wrapper__1YTKM::after {\n content: none\n}\n }\n.Table-module_default__3CGeE {\n max-width: 650px;\n}\n.Table-module_full__S5pDB {\n max-width: 980px;\n}\n.Table-module_row__3TH83 {\n z-index: 1;\n\n display: table-row;\n}\n.Table-module_row__3TH83:last-child .Table-module_cell__EFKDW {\n border-bottom: 0;\n}\n@media only screen and (min-device-width: 32em) {\n.Table-module_row__3TH83:first-child .Table-module_cell__EFKDW:first-child {\n border-radius: 2px 0 0 0\n}\n }\n@media only screen and (min-device-width: 32em) {\n.Table-module_row__3TH83:first-child .Table-module_cell__EFKDW:last-child {\n border-radius: 0 2px 0 0\n}\n }\n@media only screen and (min-device-width: 32em) {\n.Table-module_row__3TH83:last-child .Table-module_cell__EFKDW:last-child {\n border-radius: 0 0 2px 0\n}\n }\n@media only screen and (min-device-width: 32em) {\n.Table-module_row__3TH83:last-child .Table-module_cell__EFKDW:first-child {\n border-radius: 0 0 0 2px\n}\n }\n.Table-module_cell__EFKDW {\n display: table-cell;\n overflow: hidden;\n\n min-height: 32px;\n padding: 6px;\n\n vertical-align: top;\n\n border-right: 1px solid rgba(232, 232, 232, 1);\n border-bottom: 1px solid rgba(232, 232, 232, 1);\n background-color: #fff;\n\n font-size: 12px;\n line-height: 16px\n}\n@media only screen and (min-device-width: 32em) {\n.Table-module_cell__EFKDW {\n padding: 9px 12px 8px;\n\n font-size: 14px;\n line-height: 19px\n}\n }\n.Table-module_cell__EFKDW:last-child {\n padding-right: 20px;\n\n border-right: 0\n}\n@media only screen and (min-device-width: 32em) {\n.Table-module_cell__EFKDW:last-child {\n padding-right: 12px\n}\n }\n.Table-module_cell__EFKDW a {\n text-decoration: none;\n\n color: inherit;\n box-shadow: inset 0 -1px #000;\n}\n.Table-module_cell__EFKDW a:hover {\n color: #b88b58;\n box-shadow: inset 0 -1px #b88b58;\n}\n.Table-module_cell__EFKDW p {\n margin: 0;\n}\n.Table-module_cell__EFKDW p + p {\n margin-top: 8px;\n}\n.Table-module_fixedColumn__E1hN5 {\n position: -webkit-sticky;\n position: sticky;\n z-index: 50;\n left: 0\n}\n@media only screen and (min-device-width: 32em) {\n.Table-module_fixedColumn__E1hN5 {\n position: static\n}\n }\n.Table-module_fixedColumn__E1hN5::after {\n position: absolute;\n top: 0;\n right: -15px;\n bottom: 0;\n\n width: 15px;\n\n content: '';\n\n background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.04)), to(rgb(0, 0, 0, 0)));\n\n background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.04) 0%, rgb(0, 0, 0, 0) 100%);\n\n background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0%, rgb(0, 0, 0, 0) 100%)\n}\n@media only screen and (min-device-width: 32em) {\n.Table-module_fixedColumn__E1hN5::after {\n content: none\n}\n }\n.Table-module_white__gzvo0 {\n background-color: #fff;\n}\n.Table-module_gray__3da6S {\n background-color: #F5F5F5;\n}\n.Table-module_pink__3oH1l {\n background-color: #FEEEEE;\n}\n.Table-module_blue__GM27F {\n background-color: #E6F3FF;\n}\n.Table-module_yellow__2jhvA {\n background-color: #FFFDE6;\n}\n.Table-module_orange__1c-oM {\n background-color: #FFF9F2;\n}\n.Table-module_green__13OIM {\n background-color: #E7F2EF;\n}\n.Table-module_violet__2W-kO {\n background-color: #F4F0F8;\n}\n.Table-module_header__1exlo {\n max-width: 340px;\n padding: 9px 6px;\n\n vertical-align: top;\n letter-spacing: 0.5px;\n text-transform: uppercase;\n\n border-right: 1px solid rgba(232, 232, 232, 1);\n border-bottom: 1px solid rgba(232, 232, 232, 1);\n\n font-size: 10px;\n font-weight: 600;\n line-height: 16px\n}\n@media only screen and (min-device-width: 32em) {\n.Table-module_header__1exlo {\n max-width: none;\n padding: 9px 12px;\n\n line-height: 11px\n}\n }\n.Table-module_s__Vl_Eg {\n min-width: 120px\n}\n@media only screen and (min-device-width: 32em) {\n.Table-module_s__Vl_Eg {\n width: 18%;\n min-width: 0\n}\n }\n.Table-module_m__29G9r {\n min-width: 200px\n}\n@media only screen and (min-device-width: 32em) {\n.Table-module_m__29G9r {\n width: 30%;\n min-width: 0\n}\n\n }\n.Table-module_l__1ZSMc {\n min-width: 336px\n}\n@media only screen and (min-device-width: 32em) {\n.Table-module_l__1ZSMc {\n width: 50%;\n min-width: 0\n}\n }\n.Table-module_xs__au2Oe {\n width: 50px;\n min-width: 50px;\n}\n";
655
+ var styles$8 = {"root":"Table-module_root__1VsG6","card":"Table-module_card__3gbok","table":"Table-module_table__nZIkV","slide":"Table-module_slide__nSGPC","wrapper":"Table-module_wrapper__1YTKM","tracks":"Table-module_tracks__2wrDB","default":"Table-module_default__3CGeE","full":"Table-module_full__S5pDB","row":"Table-module_row__3TH83","cell":"Table-module_cell__EFKDW","fixedColumn":"Table-module_fixedColumn__E1hN5","white":"Table-module_white__gzvo0","gray":"Table-module_gray__3da6S","pink":"Table-module_pink__3oH1l","blue":"Table-module_blue__GM27F","yellow":"Table-module_yellow__2jhvA","orange":"Table-module_orange__1c-oM","green":"Table-module_green__13OIM","violet":"Table-module_violet__2W-kO","header":"Table-module_header__1exlo","s":"Table-module_s__Vl_Eg","m":"Table-module_m__29G9r","l":"Table-module_l__1ZSMc","xs":"Table-module_xs__au2Oe"};
656
+ styleInject(css_248z$8);
657
+
658
+ var Table = function Table(_ref) {
659
+ var styleContext = _ref.styleContext,
660
+ _ref$block = _ref.block,
661
+ rows = _ref$block.rows,
662
+ options = _ref$block.options,
663
+ display = _ref$block.display,
664
+ columnsWidth = _ref$block.columns_widths,
665
+ tableCredit = _ref$block.table_credit;
666
+ var colors = {
667
+ '#ffffff': 'white',
668
+ '#f5f5f5': 'gray',
669
+ '#feeeee': 'pink',
670
+ '#e6f3ff': 'blue',
671
+ '#fffde6': 'yellow',
672
+ '#fff9f2': 'orange',
673
+ '#e7f2ef': 'green',
674
+ '#f4f0f8': 'violet'
675
+ };
676
+ var classNames = [[styles$8.root, true], [styles$8[display], !!display && !!styles$8[display]]];
677
+
678
+ if (styleContext) {
679
+ classNames = makeStyleContext(classNames, styleContext, styles$8);
680
+ }
681
+
682
+ return React.createElement("div", {
683
+ "data-testid": "table",
684
+ className: makeClassName(classNames)
685
+ }, React.createElement("div", {
686
+ className: styles$8.wrapper
687
+ }, React.createElement("div", {
688
+ className: styles$8.table
689
+ }, React.createElement("div", {
690
+ className: styles$8.tracks
691
+ }, rows.map(function (row, i) {
692
+ return React.createElement("div", {
693
+ key: row.key,
694
+ className: styles$8.row
695
+ }, row.cells.map(function (cell, j) {
696
+ return React.createElement("div", {
697
+ key: cell.key,
698
+ className: makeClassName([[styles$8.cell, true], [styles$8.header, options.header && i === 0], [styles$8[colors[cell.color]], true], [styles$8[columnsWidth[j]], true], [styles$8.fixedColumn, options.fixed_first_column && j === 0]]),
699
+ dangerouslySetInnerHTML: {
700
+ __html: cell.val
701
+ }
702
+ });
703
+ }));
704
+ })))), tableCredit && React.createElement(MediaCaption, {
705
+ credit: tableCredit,
706
+ styleContext: styleContext
707
+ }));
708
+ };
709
+
710
+ var css_248z$9 = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.MaterialNote-module_root__1AcYe {\n margin-bottom: 17px;\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-size: 16px;\n line-height: 22px;\n}\n.MaterialNote-module_root__1AcYe:empty {\n margin-bottom: 0;\n}\n.MaterialNote-module_root__1AcYe:empty::before {\n margin-bottom: 9px;\n}\n.MaterialNote-module_root__1AcYe::before {\n display: block;\n\n width: 120px;\n height: 1px;\n margin-bottom: 15px;\n\n content: '';\n\n background: #000;\n}\n.MaterialNote-module_root__1AcYe p {\n margin-top: 8px;\n margin-bottom: 0;\n}\n.MaterialNote-module_root__1AcYe a {\n text-decoration: none;\n\n color: inherit;\n box-shadow: inset 0 -1px;\n}\n.MaterialNote-module_root__1AcYe a:hover {\n color: #b88b59;\n}\n.MaterialNote-module_dark__xCry-::before {\n background-color: #4f4f4f;\n}\n.MaterialNote-module_note_credit__PuFyX {\n color: #666;\n\n font-size: 12px;\n line-height: 15px;\n}\n.MaterialNote-module_root__1AcYe .MaterialNote-module_note_credit__PuFyX {\n margin-top: 6px;\n}\n.MaterialNote-module_note_credit__PuFyX:only-child {\n margin-top: 0;\n}\n.MaterialNote-module_note_caption__1ezSo b {\n font-weight: bold;\n}\n.MaterialNote-module_center__18RxI {\n max-width: 650px;\n margin-right: auto;\n margin-left: auto;\n}\n.MaterialNote-module_center__18RxI,\n.MaterialNote-module_default__1lQPl {\n margin-top: 25px\n}\n@media only screen and (min-device-width: 32em) {\n.MaterialNote-module_center__18RxI,\n.MaterialNote-module_default__1lQPl {\n margin-top: 35px\n}\n }\n.MaterialNote-module_card__OWXbQ:empty,\n.MaterialNote-module_slide__1ZBBq:empty,\n.MaterialNote-module_game__cADMe:empty {\n display: none;\n}\n.MaterialNote-module_slide__1ZBBq::before,\n.MaterialNote-module_card__OWXbQ::before,\n.MaterialNote-module_game__cADMe::before {\n content: none;\n}\n.MaterialNote-module_gameSurvey__3SiG-,\n.MaterialNote-module_gameSurvey__3SiG-:empty {\n display: block;\n}\n.MaterialNote-module_gameSurvey__3SiG-::before {\n margin-right: auto;\n margin-left: auto;\n\n content: '';\n}\n.MaterialNote-module_slide__1ZBBq .MaterialNote-module_note_caption__1ezSo,\n.MaterialNote-module_card__OWXbQ .MaterialNote-module_note_caption__1ezSo,\n.MaterialNote-module_game__cADMe .MaterialNote-module_note_caption__1ezSo {\n margin-top: 0;\n}\n.MaterialNote-module_game__cADMe {\n margin-bottom: 0;\n\n text-align: center\n}\n@media only screen and (min-device-width: 32em) {\n.MaterialNote-module_game__cADMe {\n margin-top: 25px\n}\n }\n@media only screen and (max-device-width: 32.1875em) {\n.MaterialNote-module_game__cADMe.MaterialNote-module_dark__xCry- .MaterialNote-module_note_credit__PuFyX {\n color: #fff\n}\n }\n.MaterialNote-module_slide__1ZBBq,\n.MaterialNote-module_card__OWXbQ {\n margin-bottom: 9px;\n padding-top: 8px\n}\n@media only screen and (min-device-width: 32em) {\n.MaterialNote-module_slide__1ZBBq,\n.MaterialNote-module_card__OWXbQ {\n margin-bottom: 16px\n}\n }\n";
711
+ var styles$9 = {"root":"MaterialNote-module_root__1AcYe","dark":"MaterialNote-module_dark__xCry-","note_credit":"MaterialNote-module_note_credit__PuFyX","note_caption":"MaterialNote-module_note_caption__1ezSo","center":"MaterialNote-module_center__18RxI","default":"MaterialNote-module_default__1lQPl","card":"MaterialNote-module_card__OWXbQ","slide":"MaterialNote-module_slide__1ZBBq","game":"MaterialNote-module_game__cADMe","gameSurvey":"MaterialNote-module_gameSurvey__3SiG-"};
712
+ styleInject(css_248z$9);
713
+
714
+ var MaterialNote = function MaterialNote(_ref) {
715
+ var data = _ref.block.data,
716
+ styleContext = _ref.styleContext;
717
+ var classNames = [[styles$9.root, true]];
718
+
719
+ if (styleContext) {
720
+ classNames = makeStyleContext(classNames, styleContext, styles$9);
721
+ }
722
+
723
+ return React.createElement("div", {
724
+ "data-testid": "material-note",
725
+ className: makeClassName(classNames)
726
+ }, data && data.map(function (item) {
727
+ return React.createElement("p", {
728
+ className: styles$9[item.type],
729
+ key: item.id,
730
+ dangerouslySetInnerHTML: {
731
+ __html: item.data
732
+ }
733
+ });
734
+ }));
735
+ };
736
+
737
+ var css_248z$a = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.BookmarkButton-module_root__3KmuY {\n color: #e0e0e0;\n}\n.BookmarkButton-module_control__1A0ea {\n margin: 0;\n padding: 5px 3px;\n\n cursor: pointer;\n\n color: inherit;\n border-width: 0;\n outline: none;\n background-color: transparent;\n\n -webkit-appearance: none;\n\n -moz-appearance: none;\n\n appearance: none;\n fill: transparent;\n}\n.BookmarkButton-module_dark__1cwyi {\n color: #fff;\n}\n.BookmarkButton-module_light__1uQyH {\n color: #000;\n}\n.BookmarkButton-module_isInBookmarks__1_5kB .BookmarkButton-module_control__1A0ea {\n fill: #e0e0e0;\n}\n.BookmarkButton-module_isInBookmarks__1_5kB.BookmarkButton-module_dark__1cwyi .BookmarkButton-module_control__1A0ea {\n fill: #fff;\n}\n.BookmarkButton-module_isInBookmarks__1_5kB.BookmarkButton-module_light__1uQyH .BookmarkButton-module_control__1A0ea {\n fill: #000;\n}\n@media only screen and (min-device-width: 64em) {\n.BookmarkButton-module_isInGrid__2pQ2B .BookmarkButton-module_control__1A0ea svg {\n width: 12px\n}\n }\n[data-context='prodano'] .BookmarkButton-module_root__3KmuY {\n display: none;\n}\n";
738
+ var styles$a = {"root":"BookmarkButton-module_root__3KmuY","control":"BookmarkButton-module_control__1A0ea","dark":"BookmarkButton-module_dark__1cwyi","light":"BookmarkButton-module_light__1uQyH","isInBookmarks":"BookmarkButton-module_isInBookmarks__1_5kB","isInGrid":"BookmarkButton-module_isInGrid__2pQ2B"};
739
+ styleInject(css_248z$a);
740
+
741
+ var BookmarkButton = function BookmarkButton(_ref) {
742
+ var styleContext = _ref.styleContext,
743
+ theme = _ref.theme,
744
+ isInBookmarks = _ref.isInBookmarks,
745
+ _onClick = _ref.onClick;
746
+ var classNames = [[styles$a.root, true], [styles$a.isInBookmarks, isInBookmarks], [styles$a[theme], !!theme && !!styles$a[theme]]];
747
+
748
+ if (styleContext) {
749
+ classNames = makeStyleContext(classNames, styleContext, styles$a);
750
+ }
751
+
752
+ return React.createElement("div", {
753
+ "data-testid": "bookmark-button",
754
+ className: makeClassName(classNames)
755
+ }, React.createElement("button", {
756
+ className: styles$a.control,
757
+ onClick: function onClick() {
758
+ return _onClick();
759
+ },
760
+ type: "button"
761
+ }, React.createElement(SvgSymbol, {
762
+ icon: "bookmark",
763
+ size: "unset"
764
+ })));
765
+ };
766
+
767
+ var css_248z$b = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.MaterialTitle-module_root__18ku- {\n display: block;\n}\n.MaterialTitle-module_root__18ku- {\n margin: 0;\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-size: 25px;\n font-weight: normal;\n line-height: 27px\n}\n@media only screen and (min-device-width: 48em) {\n.MaterialTitle-module_root__18ku- {\n font-size: 37px;\n line-height: 38px\n}\n }\n.MaterialTitle-module_primary__2Sfmx {\n font-family: 'PF Regal', 'PF Regal Text Pro', 'Georgia', serif;\n font-weight: normal;\n}\n.MaterialTitle-module_secondary__3uDp4 {\n font-size: 24px;\n font-weight: 700\n}\n@media only screen and (min-device-width: 48em) {\n.MaterialTitle-module_secondary__3uDp4 {\n font-size: 36px\n}\n }\n";
768
+ var styles$b = {"root":"MaterialTitle-module_root__18ku-","primary":"MaterialTitle-module_primary__2Sfmx","secondary":"MaterialTitle-module_secondary__3uDp4"};
769
+ styleInject(css_248z$b);
770
+
771
+ var Primary = function Primary(_ref) {
772
+ var children = _ref.children;
773
+ return React.createElement("span", {
774
+ className: styles$b.primary
775
+ }, children);
776
+ };
777
+ var Secondary = function Secondary(_ref2) {
778
+ var children = _ref2.children;
779
+ return React.createElement("span", {
780
+ className: styles$b.secondary
781
+ }, children);
782
+ };
783
+ var MaterialTitle = function MaterialTitle(_ref3) {
784
+ var children = _ref3.children;
785
+ return React.createElement("h1", {
786
+ className: styles$b.root,
787
+ "data-testid": "material-title"
788
+ }, children);
789
+ };
790
+
791
+ var css_248z$c = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.Dropdown-module_root__11PNk {\n position: relative;\n z-index: 100;\n\n display: inline-block;\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n}\n.Dropdown-module_root__11PNk.Dropdown-module_active__3IwAl .Dropdown-module_menu__3PIqD,\n.Dropdown-module_root__11PNk:hover .Dropdown-module_menu__3PIqD {\n visibility: visible;\n\n opacity: 1;\n}\n.Dropdown-module_root__11PNk ul {\n overflow: hidden;\n\n width: 162px;\n margin: 0;\n padding: 3px 0;\n\n border-radius: 5px;\n background: #fff;\n box-shadow: 0 0 0 1px #c0c0c0, 0 5px 20px 0 rgba(0, 0, 0, 0.2);\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-size: 14px;\n line-height: 26px;\n}\n.Dropdown-module_root__11PNk a {\n display: block;\n\n padding: 2px 15px;\n\n text-decoration: none;\n\n color: #000;\n box-shadow: none;\n}\n.Dropdown-module_root__11PNk a:hover {\n color: #000;\n background-color: #f7f7f7;\n}\n.Dropdown-module_isInAudioPanel__1zv7F .Dropdown-module_menu__3PIqD {\n right: 0;\n left: auto\n}\n@media only screen and (min-device-width: 64em) {\n.Dropdown-module_isInAudioPanel__1zv7F .Dropdown-module_menu__3PIqD {\n right: auto;\n left: 0\n}\n }\n.Dropdown-module_menu__3PIqD {\n position: absolute;\n top: 100%;\n left: 0;\n\n visibility: hidden;\n\n padding-top: 6px;\n\n opacity: 0;\n}\n.Dropdown-module_menu__3PIqD::after {\n position: absolute;\n z-index: -1;\n top: -10px;\n right: -10px;\n bottom: -10px;\n left: -10px;\n\n content: '';\n}\n";
792
+ var styles$c = {"root":"Dropdown-module_root__11PNk","active":"Dropdown-module_active__3IwAl","menu":"Dropdown-module_menu__3PIqD","isInAudioPanel":"Dropdown-module_isInAudioPanel__1zv7F"};
793
+ styleInject(css_248z$c);
794
+
795
+ var Menu = function Menu(_ref) {
796
+ var children = _ref.children;
797
+ return React.createElement("div", {
798
+ "data-testid": "dropdown",
799
+ className: styles$c.menu
800
+ }, children);
801
+ };
802
+ var Dropdown = function Dropdown(_ref2) {
803
+ var children = _ref2.children,
804
+ active = _ref2.active,
805
+ styleContext = _ref2.styleContext;
806
+ var classNames = [[styles$c.root, true], [styles$c.active, !!active && !!styles$c.active]];
807
+
808
+ if (styleContext) {
809
+ classNames = makeStyleContext(classNames, styleContext, styles$c);
810
+ }
811
+
812
+ return React.createElement("div", {
813
+ "data-testid": "dropdown",
814
+ className: makeClassName(classNames)
815
+ }, children);
816
+ };
817
+
818
+ var css_248z$d = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.Toolbar-module_root__2HF2r {\n overflow: hidden;\n\n transform: translateZ(0);\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n}\n.Toolbar-module_list__1n5ny {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n flex-flow: row wrap;\n\n margin: 0 0 0 -10px;\n padding: 0;\n\n list-style: none\n}\n@media only screen and (min-device-width: 64em) {\n.Toolbar-module_list__1n5ny {\n margin: 0 0 0 -15px\n}\n }\n.Toolbar-module_item__36x7d {\n position: relative;\n\n min-width: 42px;\n height: 32px;\n padding-right: 10px;\n padding-left: 10px;\n\n cursor: pointer;\n transition: color 250ms ease;\n text-align: center;\n\n color: #808080;\n\n line-height: 1\n}\n@media only screen and (min-device-width: 64em) {\n.Toolbar-module_item__36x7d {\n padding-right: 15px;\n padding-left: 15px\n}\n }\n.Toolbar-module_item__36x7d:last-child {\n margin-right: 0;\n}\n.Toolbar-module_item__36x7d::before {\n position: absolute;\n top: 7px;\n left: 0;\n\n height: 18px;\n\n content: '';\n vertical-align: middle;\n\n border-left: 1px solid rgba(0, 0, 0, 0.15);\n}\n.Toolbar-module_item__36x7d:empty {\n display: none;\n}\n.Toolbar-module_isInTopbar__223iP {\n height: 100%;\n}\n.Toolbar-module_isInTopbar__223iP .Toolbar-module_item__36x7d {\n height: 100%;\n}\n.Toolbar-module_center__3_H8M {\n width: 100%;\n max-width: 650px;\n margin-right: auto;\n margin-left: auto;\n}\n.Toolbar-module_game__5-jY_ {\n margin-top: 11px\n}\n@media only screen and (min-device-width: 32em) {\n.Toolbar-module_game__5-jY_ {\n margin-top: 18px\n}\n }\n.Toolbar-module_game__5-jY_ .Toolbar-module_list__1n5ny,\n.Toolbar-module_gameSurvey__1hQEz .Toolbar-module_list__1n5ny {\n justify-content: center\n}\n@media only screen and (min-device-width: 32em) {\n.Toolbar-module_game__5-jY_ .Toolbar-module_list__1n5ny,\n.Toolbar-module_gameSurvey__1hQEz .Toolbar-module_list__1n5ny {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex\n}\n }\n.Toolbar-module_game__5-jY_ .Toolbar-module_item__36x7d:last-child {\n width: 260px\n}\n@media only screen and (min-device-width: 32em) {\n.Toolbar-module_game__5-jY_ .Toolbar-module_item__36x7d:last-child {\n width: auto\n}\n }\n.Toolbar-module_game__5-jY_ .Toolbar-module_item__36x7d:last-child::before {\n content: none\n}\n@media only screen and (min-device-width: 32em) {\n.Toolbar-module_game__5-jY_ .Toolbar-module_item__36x7d:last-child::before {\n content: ''\n}\n }\n.Toolbar-module_gameSurvey__1hQEz .Toolbar-module_item__36x7d:first-child::before,\n.Toolbar-module_game__5-jY_ .Toolbar-module_item__36x7d:first-child::before {\n content: none;\n}\n@media only screen and (min-device-width: 64em) {\n.Toolbar-module_game__5-jY_ .Toolbar-module_list__1n5ny,\n.Toolbar-module_gameSurvey__1hQEz .Toolbar-module_list__1n5ny {\n margin-left: 0\n}\n }\n.Toolbar-module_dark__2Ejc9 .Toolbar-module_item__36x7d::before {\n border-left-color: rgba(255, 255, 255, 0.2);\n}\n[data-context=\"prodano\"] .Toolbar-module_root__2HF2r {\n display: none;\n}\n";
819
+ var styles$d = {"root":"Toolbar-module_root__2HF2r","list":"Toolbar-module_list__1n5ny","item":"Toolbar-module_item__36x7d","isInTopbar":"Toolbar-module_isInTopbar__223iP","center":"Toolbar-module_center__3_H8M","game":"Toolbar-module_game__5-jY_","gameSurvey":"Toolbar-module_gameSurvey__1hQEz","dark":"Toolbar-module_dark__2Ejc9"};
820
+ styleInject(css_248z$d);
821
+
822
+ var Toolbar = function Toolbar(_ref) {
823
+ var children = _ref.children,
824
+ styleContext = _ref.styleContext;
825
+ var classNames = [[styles$d.root, true]];
826
+
827
+ if (styleContext) {
828
+ classNames = makeStyleContext(classNames, styleContext, styles$d);
829
+ }
830
+
831
+ var renderItems = function renderItems() {
832
+ return Children.map(children, function (item, index) {
833
+ return React.createElement("li", {
834
+ className: styles$d.item,
835
+ key: index + "-" + item.props.type
836
+ }, React.cloneElement(item));
837
+ });
838
+ };
839
+
840
+ return React.createElement("div", {
841
+ "data-testid": "toolbar",
842
+ className: makeClassName(classNames)
843
+ }, React.createElement("ul", {
844
+ className: styles$d.list
845
+ }, renderItems()));
846
+ };
847
+
848
+ var css_248z$e = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.Popover-module_root__1v6f_ {\n position: fixed;\n z-index: 1000;\n top: 0;\n left: 0;\n\n display: -webkit-box;\n\n display: -webkit-flex;\n\n display: -ms-flexbox;\n\n display: flex;\n align-items: flex-end;\n flex-direction: row;\n\n width: 100%;\n height: 100%;\n min-height: 120px;\n padding: 10px 10px 0;\n\n -webkit-animation: Popover-module_fadeOut__3EZhx 250ms ease both 100ms;\n\n animation: Popover-module_fadeOut__3EZhx 250ms ease both 100ms;\n\n opacity: 1;\n}\n.Popover-module_root__1v6f_.Popover-module_visible__eK5ZQ {\n -webkit-animation: Popover-module_fadeIn__AkrSN 250ms ease both;\n animation: Popover-module_fadeIn__AkrSN 250ms ease both;\n}\n.Popover-module_overlay__2SBL0 {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n\n background-color: rgba(0, 0, 0, 0.7);\n\n contain: '';\n}\n.Popover-module_container__FnZT- {\n position: relative;\n\n flex: 1 1;\n\n max-width: 420px;\n min-height: 80px;\n margin: 0 auto;\n padding: 15px 20px 40px;\n\n -webkit-animation: Popover-module_disappear__3Q9LI 350ms ease both;\n\n animation: Popover-module_disappear__3Q9LI 350ms ease both;\n}\n.Popover-module_dismiss__3RnLj {\n position: absolute;\n top: -23px;\n left: 50%;\n\n width: 50px;\n height: 36px;\n padding: 0;\n\n transform: translateX(-50%);\n\n opacity: 0.4;\n border-width: 0;\n border-radius: 0;\n background-color: transparent;\n background-image: url(\"data:image/svg+xml,%3Csvg width='17' height='7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M.445 1.832l6.946 4.63a2 2 0 0 0 2.218 0l6.946-4.63a1 1 0 1 0-1.11-1.664L8.5 4.798 1.555.168a1 1 0 1 0-1.11 1.664z' fill='%23F7F7F7' fill-rule='nonzero'/%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: center;\n box-shadow: none;\n\n -webkit-appearance: none;\n\n -moz-appearance: none;\n\n appearance: none;\n}\n.Popover-module_background__1KKaP {\n position: absolute;\n z-index: -1;\n top: 0;\n left: 0;\n\n overflow: hidden;\n\n width: 100%;\n height: 100%;\n\n border-radius: 8px 8px 0 0;\n}\n.Popover-module_background__1KKaP rect {\n position: absolute;\n\n width: 100%;\n height: 100%;\n}\n.Popover-module_visible__eK5ZQ .Popover-module_container__FnZT- {\n -webkit-animation: Popover-module_appear__37vPd 350ms ease both;\n animation: Popover-module_appear__37vPd 350ms ease both;\n}\n@-webkit-keyframes Popover-module_appear__37vPd {\n 0% {\n transform: translateY(100%);\n }\n 100% {\n transform: translateY(0);\n }\n}\n@keyframes Popover-module_appear__37vPd {\n 0% {\n transform: translateY(100%);\n }\n 100% {\n transform: translateY(0);\n }\n}\n@-webkit-keyframes Popover-module_disappear__3Q9LI {\n 0% {\n transform: translateY(0);\n }\n 100% {\n transform: translateY(100%);\n }\n}\n@keyframes Popover-module_disappear__3Q9LI {\n 0% {\n transform: translateY(0);\n }\n 100% {\n transform: translateY(100%);\n }\n}\n@-webkit-keyframes Popover-module_fadeIn__AkrSN {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes Popover-module_fadeIn__AkrSN {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@-webkit-keyframes Popover-module_fadeOut__3EZhx {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n@keyframes Popover-module_fadeOut__3EZhx {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n";
849
+ var styles$e = {"root":"Popover-module_root__1v6f_","fadeOut":"Popover-module_fadeOut__3EZhx","visible":"Popover-module_visible__eK5ZQ","fadeIn":"Popover-module_fadeIn__AkrSN","overlay":"Popover-module_overlay__2SBL0","container":"Popover-module_container__FnZT-","disappear":"Popover-module_disappear__3Q9LI","dismiss":"Popover-module_dismiss__3RnLj","background":"Popover-module_background__1KKaP","appear":"Popover-module_appear__37vPd"};
850
+ styleInject(css_248z$e);
851
+
852
+ var Popover = function Popover(_ref) {
853
+ var children = _ref.children,
854
+ onClose = _ref.onClose;
855
+
856
+ var _useState = useState(true),
857
+ visible = _useState[0],
858
+ setVisible = _useState[1];
859
+
860
+ var handleClose = function handleClose() {
861
+ setVisible(false);
862
+ setTimeout(onClose, 350);
863
+ };
864
+
865
+ var handleScroll = function handleScroll() {
866
+ handleClose();
867
+ };
868
+
869
+ var escFunction = function escFunction(event) {
870
+ if (event.key === 'Escape') {
871
+ handleClose();
872
+ }
873
+ };
874
+
875
+ useEffect(function () {
876
+ window.addEventListener('keydown', escFunction, false);
877
+ window.addEventListener('scroll', handleScroll, false);
878
+ return function () {
879
+ window.removeEventListener('keydown', escFunction, false);
880
+ window.removeEventListener('scroll', handleScroll, false);
881
+ };
882
+ }, [visible]);
883
+ /* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */
884
+
885
+ return React.createElement("div", {
886
+ "data-testid": "popover",
887
+ className: makeClassName([[styles$e.root, true], [styles$e.visible, visible]])
888
+ }, React.createElement("div", {
889
+ className: styles$e.overlay,
890
+ onClick: function onClick() {
891
+ return handleClose();
892
+ }
893
+ }), React.createElement("div", {
894
+ className: styles$e.container
895
+ }, React.createElement("button", {
896
+ type: "button",
897
+ className: styles$e.dismiss,
898
+ onClick: function onClick() {
899
+ return handleClose();
900
+ },
901
+ "aria-label": "dismiss"
902
+ }), React.createElement("svg", {
903
+ width: "100%",
904
+ className: styles$e.background
905
+ }, React.createElement("defs", null, React.createElement("mask", {
906
+ id: "myMask",
907
+ x: "0",
908
+ y: "0",
909
+ width: "100%",
910
+ height: "100%"
911
+ }, React.createElement("rect", {
912
+ fill: "white",
913
+ y: "0",
914
+ width: "100%",
915
+ height: "100%",
916
+ x: "0"
917
+ }), React.createElement("svg", {
918
+ x: "50%",
919
+ overflow: "visible"
920
+ }, React.createElement("g", {
921
+ transform: "translate(-12 0)"
922
+ }, React.createElement("path", {
923
+ d: "M4.61852778e-14,9.76996262e-15 L9.84597532,5.80270273 C11.0992017,6.54128882 12.6546044,6.54128882 13.9078308,5.80270273 L23.7538061,9.76996262e-15 L4.61852778e-14,9.76996262e-15 Z"
924
+ }))))), React.createElement("rect", {
925
+ fill: "#F7F7F7",
926
+ id: "base-mask",
927
+ mask: "url(#myMask)",
928
+ x: "0",
929
+ y: "0",
930
+ width: "100%",
931
+ height: "100%"
932
+ })), children));
933
+ };
934
+
935
+ var css_248z$f = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.Meta-module_root__12AG7 {\n transform: translateZ(0);\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-size: 12px;\n line-height: 14px;\n\n fill: inherit;\n}\n.Meta-module_rich__1XBtZ,\n.Meta-module_podcast__1m4zo,\n.Meta-module_episode__1K2Xv,\n.Meta-module_simple__3vUiI,\n.Meta-module_slide__3g6fG,\n.Meta-module_card__LE1RK,\n.Meta-module_game__3aNlZ,\n.Meta-module_isInMaterial__zaYMy {\n width: 100%;\n\n color: #757575;\n}\n.Meta-module_podcast__1m4zo {\n fill: currentColor;\n}\n.Meta-module_isInSearchItem__1wbpx {\n color: rgba(255, 255, 255, 0.7);\n}\n@media only screen and (min-device-width: 64em) {\n.Meta-module_center__3BBPr.Meta-module_half__1xRkT {\n text-align: left\n}\n }\n@media only screen and (min-device-width: 32em) {\n.Meta-module_episode__1K2Xv,\n.Meta-module_card__LE1RK,\n.Meta-module_slide__3g6fG,\n.Meta-module_game__3aNlZ,\n.Meta-module_center__3BBPr {\n text-align: center\n}\n }\n.Meta-module_light__2baE- {\n color: rgba(255, 255, 255, 0.6);\n\n fill: currentColor;\n}\n.Meta-module_dark__24y9m {\n color: #757575;\n}\n.Meta-module_episode__1K2Xv,\n.Meta-module_card__LE1RK,\n.Meta-module_slide__3g6fG,\n.Meta-module_podcast__1m4zo {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n align-items: center;\n flex-flow: row wrap\n}\n@media only screen and (min-device-width: 48em) {\n.Meta-module_episode__1K2Xv,\n.Meta-module_card__LE1RK,\n.Meta-module_slide__3g6fG,\n.Meta-module_podcast__1m4zo {\n display: block\n}\n }\n@media only screen and (max-device-width: 32.1875em) {\n.Meta-module_hasSource__2lXiN {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n flex-flow: row wrap\n}\n }\n.Meta-module_bookmark__3ot3k {\n position: absolute;\n z-index: 10;\n right: -12px;\n bottom: -4px\n}\n@media only screen and (min-device-width: 32em) {\n.Meta-module_bookmark__3ot3k {\n display: none\n}\n }\n/* VISIBILITY */\n@media only screen and (min-device-width: 32em) {\n.Meta-module_mobile__22LGV {\n display: none\n}\n }\n.Meta-module_desktop__1ZGUS {\n display: none\n}\n@media only screen and (min-device-width: 32em) {\n.Meta-module_desktop__1ZGUS {\n display: block\n}\n }\n";
936
+ var styles$f = {"root":"Meta-module_root__12AG7","rich":"Meta-module_rich__1XBtZ","podcast":"Meta-module_podcast__1m4zo","episode":"Meta-module_episode__1K2Xv","simple":"Meta-module_simple__3vUiI","slide":"Meta-module_slide__3g6fG","card":"Meta-module_card__LE1RK","game":"Meta-module_game__3aNlZ","isInMaterial":"Meta-module_isInMaterial__zaYMy","isInSearchItem":"Meta-module_isInSearchItem__1wbpx","center":"Meta-module_center__3BBPr","half":"Meta-module_half__1xRkT","light":"Meta-module_light__2baE-","dark":"Meta-module_dark__24y9m","hasSource":"Meta-module_hasSource__2lXiN","bookmark":"Meta-module_bookmark__3ot3k","mobile":"Meta-module_mobile__22LGV","desktop":"Meta-module_desktop__1ZGUS"};
937
+ styleInject(css_248z$f);
938
+
939
+ var Meta = function Meta(_ref) {
940
+ var hasSource = _ref.hasSource,
941
+ theme = _ref.theme,
942
+ children = _ref.children,
943
+ onlyOn = _ref.onlyOn,
944
+ styleContext = _ref.styleContext;
945
+ var classNames = [[styles$f.root, true], [styles$f[theme], !!theme && !!styles$f[theme]], [styles$f[onlyOn], !!onlyOn], [styles$f.hasSource, hasSource]];
946
+
947
+ if (styleContext) {
948
+ classNames = makeStyleContext(classNames, styleContext, styles$f);
949
+ }
950
+
951
+ return React.createElement("div", {
952
+ "data-testid": "meta",
953
+ className: makeClassName(classNames)
954
+ }, children);
955
+ };
956
+
957
+ var css_248z$g = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.Timestamp-module_root__coOvT {\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-weight: normal;\n}\n";
958
+ var styles$g = {"root":"Timestamp-module_root__coOvT"};
959
+ styleInject(css_248z$g);
960
+
961
+ var Timestamp = function Timestamp(_ref) {
962
+ var publishedAt = _ref.publishedAt,
963
+ _ref$locale = _ref.locale,
964
+ locale = _ref$locale === void 0 ? 'ru' : _ref$locale,
965
+ type = _ref.type;
966
+ var published;
967
+ var timeFormat = locale === 'ru' ? 'HH:mm, D MMMM YYYY' : 'h:mm a, MMMM D, YYYY';
968
+ var preparedPublishedAt = publishedAt * 1000;
969
+ dayjs.locale(locale);
970
+ dayjs.extend(relativeTime);
971
+
972
+ if (type === 'fromNow') {
973
+ published = dayjs(preparedPublishedAt).fromNow();
974
+ } else if (type === 'format') {
975
+ published = dayjs(preparedPublishedAt).format('HH:mm');
976
+ } else if (type === 'date') {
977
+ published = dayjs(preparedPublishedAt).format(timeFormat);
978
+ } else {
979
+ throw new Error('Unknown time type');
980
+ }
981
+
982
+ return React.createElement("time", {
983
+ "data-testid": "timestamp",
984
+ className: styles$g.root
985
+ }, published);
986
+ };
987
+
988
+ var DangerousHTML = function DangerousHTML(_ref) {
989
+ var _ref$className = _ref.className,
990
+ className = _ref$className === void 0 ? '' : _ref$className,
991
+ _ref$tagName = _ref.tagName,
992
+ TagName = _ref$tagName === void 0 ? 'div' : _ref$tagName,
993
+ html = _ref.html;
994
+ var element = useRef(null);
995
+
996
+ var _useState = useState(false),
997
+ canRenderHtml = _useState[0],
998
+ setCanRenderHtml = _useState[1];
999
+
1000
+ useEffect(function () {
1001
+ setCanRenderHtml(true);
1002
+ }, []);
1003
+ var replaceScriptElementsRecursive = useCallback(function (node) {
1004
+ if (node.tagName === 'SCRIPT' && (!node.id || node.id.indexOf('script-') !== 0)) {
1005
+ var script = document.createElement('script');
1006
+ script.id = "script-" + Math.random().toString(16).slice(2);
1007
+ script.innerHTML = node.innerHTML;
1008
+ var attrs = node.attributes;
1009
+
1010
+ for (var i = 0; i < attrs.length; i += 1) {
1011
+ var _attrs$i = attrs[i],
1012
+ name = _attrs$i.name,
1013
+ value = _attrs$i.value;
1014
+ script.setAttribute(name, value);
1015
+ }
1016
+
1017
+ node.parentElement.replaceChild(script, node);
1018
+ } else {
1019
+ var _i = 0;
1020
+ var children = node.childNodes;
1021
+
1022
+ while (_i < children.length) {
1023
+ replaceScriptElementsRecursive(children[_i]);
1024
+ _i += 1;
1025
+ }
1026
+ }
1027
+ }, []);
1028
+ var prepareAnchors = useCallback(function () {
1029
+ var anchors = Array.from(element.current.querySelectorAll('a'));
1030
+ anchors.forEach(function (a) {
1031
+ a.setAttribute('target', '_blank');
1032
+ });
1033
+ }, []);
1034
+ useEffect(function () {
1035
+ if (canRenderHtml && html.indexOf('script') > -1 && element.current) {
1036
+ element.current.innerHTML = html;
1037
+ replaceScriptElementsRecursive(element.current);
1038
+ prepareAnchors();
1039
+ }
1040
+ }, [canRenderHtml, element, html]);
1041
+ return React.createElement(TagName // @ts-ignore
1042
+ , {
1043
+ // @ts-ignore
1044
+ ref: element,
1045
+ className: className,
1046
+ dangerouslySetInnerHTML: {
1047
+ __html: html
1048
+ }
1049
+ });
1050
+ };
1051
+
1052
+ var css_248z$h = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.EmbedBlock-module_root__28k9U {\n position: relative;\n\n margin: 15px 0\n}\n@media only screen and (min-device-width: 32em) {\n.EmbedBlock-module_root__28k9U {\n margin: 25px 0 20px\n}\n }\n.EmbedBlock-module_root__28k9U:first-child {\n margin-top: 0;\n}\n.EmbedBlock-module_root__28k9U:last-child {\n margin-bottom: 0;\n}\n.EmbedBlock-module_root__28k9U figcaption {\n width: 100%;\n max-width: 650px;\n margin-right: auto;\n margin-left: auto;\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n}\n.EmbedBlock-module_object__2_UZ7 {\n position: relative;\n}\n.EmbedBlock-module_objectWrap__1aDVd {\n position: relative;\n\n display: -webkit-box;\n\n display: -webkit-flex;\n\n display: -ms-flexbox;\n\n display: flex;\n flex-flow: column nowrap;\n}\n.EmbedBlock-module_objectWrap__1aDVd iframe {\n display: block;\n\n width: 100px;\n min-width: 100%;\n\n border-width: 0;\n}\n.EmbedBlock-module_proportional__3lAv4 iframe,\n.EmbedBlock-module_proportional__3lAv4 video {\n position: absolute;\n top: 0;\n left: 0;\n\n height: 100%;\n}\n.EmbedBlock-module_objectWrap__1aDVd img,\n.EmbedBlock-module_objectWrap__1aDVd video {\n width: 100%;\n height: auto;\n}\n.EmbedBlock-module_attachment__2pE0t {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n align-items: flex-end;\n flex-direction: row;\n flex-wrap: nowrap;\n}\n.EmbedBlock-module_attachment__2pE0t figcaption {\n padding-left: 12px;\n}\n.EmbedBlock-module_default__LSDny,\n.EmbedBlock-module_xs__1hFgW {\n max-width: 650px\n}\n@media only screen and (min-device-width: 32em) {\n.EmbedBlock-module_default__LSDny,\n.EmbedBlock-module_xs__1hFgW {\n margin-right: auto;\n margin-left: auto\n}\n }\n.EmbedBlock-module_full__1TEjx {\n max-width: 980px\n}\n@media only screen and (min-device-width: 32em) {\n.EmbedBlock-module_full__1TEjx {\n margin-right: auto;\n margin-left: auto\n}\n }\n.EmbedBlock-module_full__1TEjx .EmbedBlock-module_object__2_UZ7 {\n margin-right: -20px;\n margin-left: -20px\n}\n@media only screen and (min-device-width: 32em) {\n.EmbedBlock-module_full__1TEjx .EmbedBlock-module_object__2_UZ7 {\n margin-right: 0;\n margin-left: 0\n}\n }\n.EmbedBlock-module_super_full__1Fn9A {\n max-width: 100%;\n}\n@media only screen and (min-device-width: 32em) {\n.EmbedBlock-module_super_full__1Fn9A .EmbedBlock-module_figure__vAvcN {\n margin-right: -15px;\n margin-left: -15px\n}\n }\n.EmbedBlock-module_dark__1be2G iframe {\n background-color: transparent;\n}\n.EmbedBlock-module_isInGroupedBlock__3r_i- {\n max-width: none\n}\n@media only screen and (min-device-width: 32em) {\n.EmbedBlock-module_isInGroupedBlock__3r_i- {\n margin: 0\n}\n }\n@media only screen and (min-device-width: 32em) {\n.EmbedBlock-module_isInGroupedBlock__3r_i- .EmbedBlock-module_figure__vAvcN {\n margin: 0\n}\n }\n.EmbedBlock-module_isInGroupedBlock__3r_i- figcaption {\n max-width: none;\n margin-right: 0;\n margin-left: 0;\n}\n[data-frozen='true'] {\n position: relative;\n\n cursor: pointer;\n}\n[data-frozen='true']::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n\n content: '';\n pointer-events: none;\n\n background-image: url(\"data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Ccircle fill-opacity='.5' fill='%23000' cx='35' cy='35' r='35'/%3E%3Cpath d='M35 66.75c2.816 0 5.585-.367 8.256-1.084.667-.18 1.062-.865.883-1.532-.18-.666-.866-1.062-1.533-.883-2.46.662-5.01 1-7.607 1-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25zm15.946-4.29c2.41-1.4 4.624-3.114 6.587-5.092.487-.49.484-1.282-.006-1.768s-1.282-.484-1.768.006c-1.81 1.823-3.852 3.403-6.07 4.694-.598.347-.8 1.113-.453 1.71.347.596 1.112.798 1.71.45zm11.632-11.716c1.382-2.417 2.442-5.007 3.147-7.713.174-.667-.226-1.35-.894-1.524-.667-.174-1.35.227-1.524.895-.65 2.492-1.625 4.877-2.898 7.102-.343.6-.135 1.363.464 1.706.6.343 1.363.135 1.706-.464zm4.172-15.912c-.015-2.816-.397-5.583-1.128-8.25-.183-.666-.87-1.058-1.537-.875-.665.183-1.057.87-.874 1.536.675 2.457 1.026 5.006 1.04 7.602.003.69.566 1.247 1.256 1.243.69-.003 1.247-.566 1.244-1.256zM62.376 18.91c-1.414-2.402-3.14-4.608-5.128-6.56-.492-.485-1.283-.478-1.767.015-.483.492-.476 1.284.016 1.767 1.833 1.8 3.423 3.834 4.726 6.046.35.595 1.117.793 1.712.443.594-.35.793-1.116.442-1.71zM50.598 7.34c-2.424-1.37-5.02-2.416-7.73-3.107-.668-.17-1.35.233-1.52.902-.17.67.234 1.35.903 1.52 2.496.637 4.886 1.6 7.118 2.86.6.34 1.363.13 1.703-.472.34-.602.13-1.364-.472-1.704zM34.665 3.25c-2.815.03-5.58.425-8.244 1.17-.664.187-1.052.877-.865 1.542.186.664.875 1.052 1.54.866 2.454-.687 5-1.052 7.596-1.078.69-.008 1.245-.573 1.238-1.263-.007-.692-.573-1.245-1.263-1.238zm-15.903 4.46c-2.393 1.426-4.59 3.163-6.533 5.162-.482.495-.47 1.287.024 1.768.496.48 1.287.47 1.768-.026 1.79-1.842 3.815-3.443 6.02-4.758.594-.354.788-1.12.434-1.714-.353-.593-1.12-.787-1.714-.433zM7.256 19.55c-1.357 2.43-2.39 5.032-3.065 7.745-.166.67.242 1.348.912 1.515.67.167 1.348-.24 1.515-.91.623-2.5 1.573-4.894 2.822-7.133.335-.603.12-1.365-.484-1.7-.603-.338-1.364-.122-1.7.48zM3.254 35.5c.043 2.813.454 5.577 1.214 8.237.19.663.882 1.047 1.545.857.664-.19 1.05-.88.86-1.545-.7-2.45-1.08-4.995-1.12-7.59-.01-.69-.578-1.24-1.27-1.23-.69.01-1.24.58-1.23 1.27zm4.543 15.88c1.44 2.385 3.188 4.573 5.197 6.505.497.478 1.29.463 1.767-.035.48-.497.464-1.29-.033-1.767-1.85-1.78-3.463-3.797-4.79-5.995-.356-.59-1.125-.78-1.716-.425-.59.357-.78 1.125-.423 1.716zm11.9 11.444c2.44 1.343 5.046 2.36 7.763 3.023.67.162 1.347-.25 1.51-.92.164-.67-.247-1.347-.918-1.51-2.502-.61-4.902-1.547-7.147-2.784-.605-.333-1.365-.113-1.698.492-.334.604-.114 1.365.49 1.698z' fill='%23FFF' fill-rule='nonzero'/%3E%3Cpath d='M19.838 34.99c0 4.39 3.297 7.265 7.35 7.265 2.437 0 4.39-1.008 5.776-2.54v-5.25h-6.636v2.162h4.178v2.184c-.63.59-1.89 1.26-3.317 1.26-2.774.002-4.832-2.14-4.832-5.08s2.058-5.062 4.83-5.062c1.576 0 2.9.82 3.634 1.87l2.015-1.134c-1.134-1.617-2.92-2.92-5.65-2.92-4.052 0-7.35 2.857-7.35 7.245zm15.487 6.992h2.457V27.977h-2.456v14.007zm5.24 0h2.457v-6.047h6.992v-2.163h-6.992V30.14l7.14-.002v-2.163h-9.597v14.008z' fill='%23FFF'/%3E%3C/g%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: center;\n background-size: 70px 70px;\n}\n.EmbedBlock-module_gameEmbed__AZQSo {\n width: 100%;\n max-width: 650px;\n margin: 0 auto;\n\n border-radius: 2px;\n background: #fff;\n box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);\n}\n.EmbedBlock-module_gameEmbed__AZQSo iframe {\n display: block;\n\n width: 100%;\n\n border-width: 0;\n}\n@media only screen and (min-device-width: 32em) {\n.EmbedBlock-module_mobile__1P-eo {\n display: none\n}\n }\n.EmbedBlock-module_mobile__1P-eo .EmbedBlock-module_figure__vAvcN {\n overflow: hidden;\n\n border-radius: 8px 8px 0 0;\n}\n.EmbedBlock-module_desktop__SF5a_ {\n display: none\n}\n@media only screen and (min-device-width: 32em) {\n.EmbedBlock-module_desktop__SF5a_ {\n display: block\n}\n }\n.EmbedBlock-module_control__xr8dZ {\n position: absolute;\n z-index: 10;\n right: -8px;\n bottom: 12px;\n\n width: 28px;\n height: 28px;\n margin: 0;\n padding: 0;\n\n color: #fff;\n border-width: 0;\n border-radius: 14px;\n background-color: rgba(0, 0, 0, 0.7);\n background-image: url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E %3Cg fill='%23FEFEFE' fill-rule='evenodd' opacity='.7'%3E %3Cpath d='M12.726 16H3.275A3.276 3.276 0 0 1 0 12.725v-9.45A3.276 3.276 0 0 1 3.275 0h9.45A3.275 3.275 0 0 1 16 3.275v9.45A3.275 3.275 0 0 1 12.726 16zm0-2c.703 0 1.274-.571 1.274-1.275v-9.45C14 2.571 13.429 2 12.726 2H3.275C2.57 2 2 2.571 2 3.275v9.45C2 13.429 2.57 14 3.275 14h9.45z' fill-rule='nonzero'/%3E %3Cpath d='M4.97 8.307l7.046 7.046a.5.5 0 0 0 .708-.707l-7.4-7.4a.5.5 0 0 0-.708 0l-3.97 3.97a.5.5 0 0 0 .708.707L4.97 8.307z' fill-rule='nonzero'/%3E %3Cpath d='M10.875 5.832l3.771 3.771a.5.5 0 0 0 .707-.707l-4.125-4.125a.5.5 0 0 0-.707 0l-4.19 4.19a.5.5 0 1 0 .707.707l3.837-3.836z' fill-rule='nonzero'/%3E %3Cpath d='M5.865 4.269a.894.894 0 1 1-1.787 0 .894.894 0 0 1 1.787 0'/%3E %3C/g%3E %3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: center;\n box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.15);\n}\n.EmbedBlock-module_raw_html__MQoAA {\n margin: 0 auto;\n}\n.EmbedBlock-module_youtube__3gGQ5 .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_vimeo__kpH1s .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_onetv__3o33d .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_coub__38Mva .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_facebook_video__1_M05 .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_figure__vAvcN {\n margin-right: -20px;\n margin-left: -20px\n}\n@media only screen and (min-device-width: 32em) {\n.EmbedBlock-module_youtube__3gGQ5 .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_vimeo__kpH1s .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_onetv__3o33d .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_coub__38Mva .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_facebook_video__1_M05 .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_figure__vAvcN {\n margin-right: auto;\n margin-left: auto\n}\n }\n.EmbedBlock-module_card__KTbvp.EmbedBlock-module_youtube__3gGQ5 .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_card__KTbvp.EmbedBlock-module_vimeo__kpH1s .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_card__KTbvp.EmbedBlock-module_onetv__3o33d .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_card__KTbvp.EmbedBlock-module_coub__38Mva .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_card__KTbvp.EmbedBlock-module_facebook_video__1_M05 .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_card__KTbvp .EmbedBlock-module_figure__vAvcN,\n.EmbedBlock-module_slide__3cL3M.EmbedBlock-module_youtube__3gGQ5 .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_slide__3cL3M.EmbedBlock-module_vimeo__kpH1s .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_slide__3cL3M.EmbedBlock-module_onetv__3o33d .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_slide__3cL3M.EmbedBlock-module_coub__38Mva .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_slide__3cL3M.EmbedBlock-module_facebook_video__1_M05 .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_slide__3cL3M .EmbedBlock-module_figure__vAvcN {\n margin-right: -11px;\n margin-left: -11px\n}\n@media only screen and (min-device-width: 64em) {\n.EmbedBlock-module_card__KTbvp.EmbedBlock-module_youtube__3gGQ5 .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_card__KTbvp.EmbedBlock-module_vimeo__kpH1s .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_card__KTbvp.EmbedBlock-module_onetv__3o33d .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_card__KTbvp.EmbedBlock-module_coub__38Mva .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_card__KTbvp.EmbedBlock-module_facebook_video__1_M05 .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_card__KTbvp .EmbedBlock-module_figure__vAvcN,\n.EmbedBlock-module_slide__3cL3M.EmbedBlock-module_youtube__3gGQ5 .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_slide__3cL3M.EmbedBlock-module_vimeo__kpH1s .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_slide__3cL3M.EmbedBlock-module_onetv__3o33d .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_slide__3cL3M.EmbedBlock-module_coub__38Mva .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_slide__3cL3M.EmbedBlock-module_facebook_video__1_M05 .EmbedBlock-module_object__2_UZ7,\n.EmbedBlock-module_slide__3cL3M .EmbedBlock-module_figure__vAvcN {\n margin-right: auto;\n margin-left: auto\n}\n }\n.EmbedBlock-module_card__KTbvp:not(.EmbedBlock-module_cc__1BQ5g):last-child,\n.EmbedBlock-module_slide__3cL3M:not(.EmbedBlock-module_cc__1BQ5g):last-child {\n overflow: hidden;\n\n margin-bottom: -16px;\n\n border-radius: 0 0 8px 8px\n}\n@media only screen and (min-device-width: 64em) {\n.EmbedBlock-module_card__KTbvp:not(.EmbedBlock-module_cc__1BQ5g):last-child,\n.EmbedBlock-module_slide__3cL3M:not(.EmbedBlock-module_cc__1BQ5g):last-child {\n margin-bottom: -24px\n}\n }\n.EmbedBlock-module_isInAnswer__tLlgs {\n margin-top: 12px;\n margin-bottom: 12px\n}\n@media only screen and (min-device-width: 64em) {\n.EmbedBlock-module_isInAnswer__tLlgs {\n margin-top: 10px;\n margin-bottom: 10px\n}\n }\n.EmbedBlock-module_isInAnswer__tLlgs .EmbedBlock-module_figure__vAvcN {\n margin-right: 0;\n margin-left: 0;\n}\n.EmbedBlock-module_picture__186q0.EmbedBlock-module_default__LSDny .EmbedBlock-module_figure__vAvcN {\n margin-right: 0;\n margin-left: 0;\n}\n.EmbedBlock-module_picture__186q0.EmbedBlock-module_default__LSDny img {\n border-radius: 2px;\n}\n.EmbedBlock-module_wrapper__33XvX {\n position: relative;\n}\n.EmbedBlock-module_wrapper__33XvX .EmbedBlock-module_objectWrap__1aDVd {\n position: static;\n}\n/* VISIBILITY */\n@media only screen and (min-device-width: 32em) {\n.EmbedBlock-module_mobile__1P-eo {\n display: none\n}\n }\n.EmbedBlock-module_desktop__SF5a_ {\n display: none\n}\n@media only screen and (min-device-width: 32em) {\n.EmbedBlock-module_desktop__SF5a_ {\n display: block\n}\n }\n/* XS */\n@media only screen and (min-device-width: 40.625em) {\n.EmbedBlock-module_xs__1hFgW {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n align-items: center;\n flex-flow: row nowrap\n}\n }\n.EmbedBlock-module_xs__1hFgW .EmbedBlock-module_figure__vAvcN {\n flex-shrink: 0;\n\n max-width: 33.3333333%;\n margin-right: 0;\n margin-left: 0\n}\n@media only screen and (min-device-width: 40.625em) {\n.EmbedBlock-module_xs__1hFgW .EmbedBlock-module_figure__vAvcN {\n width: 216px;\n margin-right: 15px\n}\n }\n.EmbedBlock-module_xs__1hFgW .EmbedBlock-module_figure__vAvcN figcaption {\n padding-top: 12px;\n}\n.EmbedBlock-module_xs__1hFgW + h3,\n.EmbedBlock-module_xs__1hFgW + h4 {\n margin-top: 0;\n}\n";
1053
+ var styles$h = {"root":"EmbedBlock-module_root__28k9U","object":"EmbedBlock-module_object__2_UZ7","objectWrap":"EmbedBlock-module_objectWrap__1aDVd","proportional":"EmbedBlock-module_proportional__3lAv4","attachment":"EmbedBlock-module_attachment__2pE0t","default":"EmbedBlock-module_default__LSDny","xs":"EmbedBlock-module_xs__1hFgW","full":"EmbedBlock-module_full__1TEjx","super_full":"EmbedBlock-module_super_full__1Fn9A","figure":"EmbedBlock-module_figure__vAvcN","dark":"EmbedBlock-module_dark__1be2G","isInGroupedBlock":"EmbedBlock-module_isInGroupedBlock__3r_i-","gameEmbed":"EmbedBlock-module_gameEmbed__AZQSo","mobile":"EmbedBlock-module_mobile__1P-eo","desktop":"EmbedBlock-module_desktop__SF5a_","control":"EmbedBlock-module_control__xr8dZ","raw_html":"EmbedBlock-module_raw_html__MQoAA","youtube":"EmbedBlock-module_youtube__3gGQ5","vimeo":"EmbedBlock-module_vimeo__kpH1s","onetv":"EmbedBlock-module_onetv__3o33d","coub":"EmbedBlock-module_coub__38Mva","facebook_video":"EmbedBlock-module_facebook_video__1_M05","card":"EmbedBlock-module_card__KTbvp","slide":"EmbedBlock-module_slide__3cL3M","cc":"EmbedBlock-module_cc__1BQ5g","isInAnswer":"EmbedBlock-module_isInAnswer__tLlgs","picture":"EmbedBlock-module_picture__186q0","wrapper":"EmbedBlock-module_wrapper__33XvX"};
1054
+ styleInject(css_248z$h);
1055
+
1056
+ var EmbedBlock = function EmbedBlock(_ref) {
1057
+ var block = _ref.block,
1058
+ _ref$block = _ref.block,
1059
+ data = _ref$block.data,
1060
+ _ref$block$data = _ref$block.data,
1061
+ display = _ref$block$data.display,
1062
+ onlyOn = _ref$block$data.only_on,
1063
+ provider = _ref$block$data.provider,
1064
+ cc = _ref$block$data.cc,
1065
+ optimized = _ref$block$data.optimized,
1066
+ small = _ref$block$data.small_url,
1067
+ large = _ref$block$data.large_url,
1068
+ styleContext = _ref.styleContext,
1069
+ children = _ref.children;
1070
+
1071
+ var _useState = useState(false),
1072
+ isPopoverShown = _useState[0],
1073
+ setIsPopoverShown = _useState[1];
1074
+
1075
+ var _useState2 = useState(false),
1076
+ videoFrozen = _useState2[0],
1077
+ setVideoFrozen = _useState2[1];
1078
+
1079
+ var videoElem = useRef(null);
1080
+ var wrapperElem = useRef(null);
1081
+
1082
+ var handleVideoTouch = function handleVideoTouch() {
1083
+ videoElem.current.play();
1084
+ setVideoFrozen(false);
1085
+ };
1086
+
1087
+ var handleVideoError = function handleVideoError() {
1088
+ var video = videoElem.current;
1089
+ video.setAttribute('poster', video.dataset.gif);
1090
+ setVideoFrozen(false);
1091
+ };
1092
+
1093
+ useEffect(function () {
1094
+ var video = videoElem.current;
1095
+
1096
+ if (block.type === 'gif' && video) {
1097
+ var _viewportSize = viewportSize(),
1098
+ viewportWidth = _viewportSize.width;
1099
+
1100
+ enableInlineVideo(video);
1101
+
1102
+ if (viewportWidth >= MediaQuerySizes.MOBILE) {
1103
+ video.setAttribute('autoplay', true);
1104
+ video.play();
1105
+ } else {
1106
+ setVideoFrozen(true);
1107
+ video.pause();
1108
+ video.addEventListener('touchstart', handleVideoTouch);
1109
+ }
1110
+
1111
+ video.addEventListener('error', handleVideoError);
1112
+ }
1113
+
1114
+ return function () {
1115
+ if (video) {
1116
+ video.removeEventListener('touchstart', handleVideoTouch);
1117
+ video.removeEventListener('error', handleVideoError);
1118
+ }
1119
+ };
1120
+ }, []);
1121
+
1122
+ var renderCC = function renderCC(context) {
1123
+ return React.createElement(MediaCaption, {
1124
+ credit: data.credit,
1125
+ caption: data.caption,
1126
+ styleContext: context || styleContext
1127
+ });
1128
+ };
1129
+
1130
+ var renderEmbed = function renderEmbed(style) {
1131
+ var html = block.data.html;
1132
+
1133
+ switch (block.type) {
1134
+ case 'gif':
1135
+ {
1136
+ return React.createElement("div", {
1137
+ className: styles$h.figure
1138
+ }, React.createElement("div", {
1139
+ className: styles$h.objectWrap,
1140
+ style: style,
1141
+ ref: wrapperElem,
1142
+ "data-frozen": videoFrozen
1143
+ }, React.createElement("video", {
1144
+ playsInline: true,
1145
+ muted: true,
1146
+ loop: true,
1147
+ autoPlay: true,
1148
+ preload: "metadata",
1149
+ "data-gif": block.data.gif_url,
1150
+ ref: videoElem
1151
+ }, React.createElement("source", {
1152
+ src: "https://meduza.io" + block.data.mp4_url,
1153
+ type: "video/mp4"
1154
+ }))));
1155
+ }
1156
+
1157
+ case 'image':
1158
+ {
1159
+ return React.createElement("div", {
1160
+ className: styles$h.figure
1161
+ }, (small || optimized) && React.createElement(Image, {
1162
+ fullscreen: block.data.fullscreen,
1163
+ source: !optimized && [small, large],
1164
+ optimized: block.data.optimized,
1165
+ width: block.data.width,
1166
+ height: block.data.height,
1167
+ alt: block.data.caption,
1168
+ display: block.data.display,
1169
+ lazy: block.data.lazy
1170
+ }));
1171
+ }
1172
+
1173
+ case 'game_embed':
1174
+ {
1175
+ return React.createElement("div", {
1176
+ className: styles$h.gameEmbed
1177
+ }, React.createElement("iframe", {
1178
+ src: block.data.game_src,
1179
+ id: block.data.game_id,
1180
+ title: "Game embed"
1181
+ }));
1182
+ }
1183
+
1184
+ default:
1185
+ {
1186
+ return React.createElement("div", {
1187
+ className: styles$h.object
1188
+ }, React.createElement("div", {
1189
+ className: styles$h.wrapper,
1190
+ style: style
1191
+ }, React.createElement(DangerousHTML, {
1192
+ className: styles$h.objectWrap,
1193
+ html: html
1194
+ })));
1195
+ }
1196
+ }
1197
+ };
1198
+
1199
+ var style = {};
1200
+ var isProportional; // @TODO: Разобраться зачем это было нужно
1201
+ // const className = Object.keys(styleContext)
1202
+ // .filter(key => key.startsWith('isIn') && styles[key])
1203
+ // .reduce((acc, key) => {
1204
+ // acc.push([styles[key], true])
1205
+ // return acc
1206
+ // }, [])
1207
+
1208
+ /* eslint-disable react/no-array-index-key, no-mixed-operators */
1209
+
1210
+ if (block.data.height && block.data.width) {
1211
+ style.paddingBottom = block.data.height / block.data.width * 100 + "%";
1212
+ style.height = 0;
1213
+ isProportional = true;
1214
+ }
1215
+
1216
+ var classNames = [[styles$h.root, true], [styles$h.cc, cc], [styles$h[display], !!display && styles$h[display]], [styles$h[provider], !!provider && !!styles$h[provider]], [styles$h[onlyOn], !!onlyOn && styles$h[onlyOn]], [styles$h.proportional, !!styles$h.proportional && isProportional]];
1217
+
1218
+ if (styleContext) {
1219
+ classNames = makeStyleContext(classNames, styleContext, styles$h);
1220
+ }
1221
+
1222
+ return React.createElement("figure", {
1223
+ className: makeClassName(classNames)
1224
+ }, children && React.createElement("div", {
1225
+ className: styles$h.object
1226
+ }, React.createElement("div", {
1227
+ className: styles$h.wrapper,
1228
+ style: style
1229
+ }, React.createElement("div", {
1230
+ className: styles$h.objectWrap
1231
+ }, children))), !children && renderEmbed(style), cc === 'default' && React.createElement("figcaption", null, renderCC()), cc === 'button' && React.createElement("button", {
1232
+ className: styles$h.control,
1233
+ type: "button",
1234
+ "aria-label": "Open",
1235
+ onClick: function onClick() {
1236
+ setIsPopoverShown(!isPopoverShown);
1237
+ }
1238
+ }), cc === 'button' && isPopoverShown && React.createElement(Popover, {
1239
+ onClose: function onClose() {
1240
+ setIsPopoverShown(false);
1241
+ }
1242
+ }, renderCC('isInPopover')));
1243
+ };
1244
+
1245
+ var IframeBlock = function IframeBlock(_ref) {
1246
+ var block = _ref.block,
1247
+ id = _ref.block.id,
1248
+ styleContext = _ref.styleContext,
1249
+ _ref$lang = _ref.lang,
1250
+ lang = _ref$lang === void 0 ? 'ru' : _ref$lang;
1251
+ var element = useRef(null);
1252
+
1253
+ var renderIframe = function renderIframe() {
1254
+ var rootEl = document.createElement('div');
1255
+ var contentEl = document.createElement('div');
1256
+ var scriptEl = document.createElement('script');
1257
+ var style = document.createElement('style');
1258
+ var range = document.createRange();
1259
+ range.setStart(contentEl, 0);
1260
+ contentEl.setAttribute('id', 'content');
1261
+ scriptEl.textContent = "\n function getDocHeight() {\n var doc = document;\n var body = doc.body;\n var html = doc.documentElement;\n var height = Math.max( body.scrollHeight, body.offsetHeight,\n html.clientHeight, html.scrollHeight, html.offsetHeight );\n\n doc.body.style.margin=\"0\";\n\n return document.getElementById('content') ? document.getElementById('content').offsetHeight : height;\n }\n\n function sendDocHeightMsg() {\n var height = getDocHeight();\n var message = JSON.stringify({\n action: {\n type: \"UPDATE_HEIGHT\",\n payload: {\n id: \"" + block.id + "\",\n height: height\n }\n }\n });\n parent.postMessage(\"mdzMaterialEmbedHeight=\" + message, '*');\n }\n\n setInterval(sendDocHeightMsg, 300);\n ";
1262
+ style.type = 'text/css';
1263
+ style.innerHTML = block.type === 'embed_code' ? '.twitter-tweet { padding-top: 15px; margin: 0 !important; }' : '.twitter-tweet { margin: 0 !important; } .fb-post { display: block; } .instagram-media { min-width: 0 !important; }';
1264
+ contentEl.appendChild(range.createContextualFragment(block.data.html));
1265
+ rootEl.appendChild(scriptEl);
1266
+ rootEl.appendChild(contentEl);
1267
+ contentEl.appendChild(style);
1268
+ var frame = element.current.querySelector('iframe').contentDocument;
1269
+ frame.open();
1270
+ frame.close();
1271
+ frame.documentElement.setAttribute('lang', lang);
1272
+ frame.body.appendChild(rootEl);
1273
+ };
1274
+
1275
+ useEffect(function () {
1276
+ renderIframe();
1277
+ }, []);
1278
+ return React.createElement(EmbedBlock, {
1279
+ block: block,
1280
+ styleContext: styleContext
1281
+ }, React.createElement("div", {
1282
+ ref: element,
1283
+ dangerouslySetInnerHTML: {
1284
+ __html: "<iframe id=" + id + " frameBorder=\"0\" scrolling=\"no\"></iframe>"
1285
+ }
1286
+ }));
1287
+ };
1288
+
1289
+ var EmbedBlockContainer = function EmbedBlockContainer(_ref) {
1290
+ var block = _ref.block,
1291
+ styleContext = _ref.styleContext,
1292
+ lang = _ref.lang;
1293
+
1294
+ if (block.data.wrap_with_iframe) {
1295
+ return React.createElement(IframeBlock, {
1296
+ block: block,
1297
+ styleContext: styleContext,
1298
+ lang: lang
1299
+ });
1300
+ }
1301
+
1302
+ return React.createElement(EmbedBlock, {
1303
+ block: block,
1304
+ styleContext: styleContext
1305
+ });
1306
+ };
1307
+
1308
+ var css_248z$i = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.QuoteBlock-module_root__2GrcC {\n position: relative;\n\n margin-bottom: 14px;\n padding-left: 18px;\n\n font-family: 'PF Regal', 'PF Regal Text Pro', 'Georgia', serif;\n font-size: 18px;\n line-height: 24px\n}\n@media only screen and (min-device-width: 32em) {\n.QuoteBlock-module_root__2GrcC {\n margin: 0 0 20px;\n padding-left: 36px;\n\n font-size: 20px;\n line-height: 28px\n}\n }\n.QuoteBlock-module_root__2GrcC + .QuoteBlock-module_root__2GrcC {\n margin-top: -14px;\n padding-top: 14px\n}\n@media only screen and (min-device-width: 32em) {\n.QuoteBlock-module_root__2GrcC + .QuoteBlock-module_root__2GrcC {\n margin-top: -20px;\n padding-top: 20px\n}\n }\n.QuoteBlock-module_root__2GrcC + .QuoteBlock-module_root__2GrcC::before {\n top: -10px;\n}\n.QuoteBlock-module_root__2GrcC:before {\n position: absolute;\n top: 5px;\n bottom: 7px;\n left: 0;\n\n width: 4px;\n\n content: '';\n\n border-radius: 2px;\n background-color: #ebebeb\n}\n@media only screen and (min-device-width: 32em) {\n.QuoteBlock-module_root__2GrcC:before {\n top: 4px;\n bottom: 6px\n}\n }\n.QuoteBlock-module_root__2GrcC:last-child {\n margin-bottom: 0;\n}\n.QuoteBlock-module_root__2GrcC p {\n margin: 0;\n}\n.QuoteBlock-module_root__2GrcC a {\n text-decoration: none;\n\n color: inherit;\n box-shadow: inset 0 -1px #b88b59;\n}\n.QuoteBlock-module_root__2GrcC a:hover {\n color: #b88b59;\n}\n.QuoteBlock-module_center__cTFNy {\n width: 100%;\n max-width: 650px;\n margin-right: auto;\n margin-left: auto;\n}\n";
1309
+ var styles$i = {"root":"QuoteBlock-module_root__2GrcC","center":"QuoteBlock-module_center__cTFNy"};
1310
+ styleInject(css_248z$i);
1311
+
1312
+ var QuoteBlock = function QuoteBlock(_ref) {
1313
+ var data = _ref.block.data,
1314
+ styleContext = _ref.styleContext;
1315
+ var classNames = [[styles$i.root, true]];
1316
+
1317
+ if (styleContext) {
1318
+ classNames = makeStyleContext(classNames, styleContext, styles$i);
1319
+ }
1320
+
1321
+ return React.createElement("div", {
1322
+ "data-testid": "quote-block",
1323
+ className: makeClassName(classNames)
1324
+ }, React.createElement("p", {
1325
+ dangerouslySetInnerHTML: {
1326
+ __html: data
1327
+ }
1328
+ }));
1329
+ };
1330
+
1331
+ var css_248z$j = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.CardTitle-module_root__1uqqF {\n margin-bottom: 11px\n}\n@media only screen and (min-device-width: 64em) {\n.CardTitle-module_root__1uqqF {\n margin-bottom: 10px;\n\n text-align: center\n}\n }\n.CardTitle-module_index__4FsTf {\n margin-bottom: 7px;\n\n color: #b88b59;\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-size: 20px;\n font-weight: 700;\n line-height: 24px;\n}\n.CardTitle-module_title__2iTI6 {\n color: #1d1d1d;\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-size: 20px;\n font-weight: 700;\n line-height: 24px\n}\n@media only screen and (min-device-width: 64em) {\n.CardTitle-module_title__2iTI6 {\n font-size: 28px;\n line-height: 34px\n}\n }\n/* VISIBILITY */\n@media only screen and (min-device-width: 32em) {\n.CardTitle-module_mobile__1_kij {\n display: none\n}\n }\n.CardTitle-module_desktop__1l3_n {\n display: none\n}\n@media only screen and (min-device-width: 32em) {\n.CardTitle-module_desktop__1l3_n {\n display: block\n}\n }\n";
1332
+ var styles$j = {"root":"CardTitle-module_root__1uqqF","index":"CardTitle-module_index__4FsTf","title":"CardTitle-module_title__2iTI6","mobile":"CardTitle-module_mobile__1_kij","desktop":"CardTitle-module_desktop__1l3_n"};
1333
+ styleInject(css_248z$j);
1334
+
1335
+ var CardTitle = function CardTitle(_ref) {
1336
+ var _ref$block = _ref.block,
1337
+ onlyOn = _ref$block.only_on,
1338
+ index = _ref$block.index,
1339
+ text = _ref$block.text,
1340
+ styleContext = _ref.styleContext;
1341
+ return React.createElement("div", {
1342
+ "data-testid": "card-title",
1343
+ className: makeClassName([[styles$j.root, true], [styles$j[onlyOn], !!onlyOn], [styles$j[styleContext], !!styleContext && !!styles$j[styleContext]]])
1344
+ }, React.createElement("div", {
1345
+ className: styles$j.index
1346
+ }, index), React.createElement("h3", {
1347
+ className: styles$j.title
1348
+ }, text));
1349
+ };
1350
+
1351
+ var css_248z$k = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.ChapterBlock-module_root__1WyVn {\n position: relative;\n\n margin: 38px auto 7px\n}\n@media only screen and (min-device-width: 32em) {\n.ChapterBlock-module_root__1WyVn {\n max-width: 650px;\n margin-top: 70px\n}\n }\n.ChapterBlock-module_root__1WyVn:first-child {\n margin-top: 0;\n}\n.ChapterBlock-module_root__1WyVn:last-child {\n margin-bottom: 0;\n}\n.ChapterBlock-module_subtitle__3TXll {\n display: inline-block;\n\n vertical-align: top;\n letter-spacing: 1px;\n text-transform: uppercase;\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-size: 12px;\n font-weight: 600;\n line-height: 12px\n}\n@media only screen and (min-device-width: 32em) {\n.ChapterBlock-module_subtitle__3TXll {\n font-size: 13px;\n line-height: 16px\n}\n }\n.ChapterBlock-module_subtitle__3TXll::after {\n display: block;\n\n width: 120px;\n padding: 0 0 7px;\n\n content: '';\n\n border-bottom: 1px solid #ccc\n}\n@media only screen and (min-device-width: 32em) {\n.ChapterBlock-module_subtitle__3TXll::after {\n padding: 0 0 6px\n}\n }\n/* VISIBILITY */\n@media only screen and (min-device-width: 32em) {\n.ChapterBlock-module_mobile__CiO0w {\n display: none\n}\n }\n.ChapterBlock-module_desktop__tk1Nk {\n display: none\n}\n@media only screen and (min-device-width: 32em) {\n.ChapterBlock-module_desktop__tk1Nk {\n display: block\n}\n }\n\n";
1352
+ var styles$k = {"root":"ChapterBlock-module_root__1WyVn","subtitle":"ChapterBlock-module_subtitle__3TXll","mobile":"ChapterBlock-module_mobile__CiO0w","desktop":"ChapterBlock-module_desktop__tk1Nk"};
1353
+ styleInject(css_248z$k);
1354
+
1355
+ var ChapterBlock = function ChapterBlock(_ref) {
1356
+ var block = _ref.block,
1357
+ onlyOn = _ref.block.only_on,
1358
+ styleContext = _ref.styleContext;
1359
+ return React.createElement("div", {
1360
+ "data-testid": "chapter-block",
1361
+ className: makeClassName([[styles$k.root, true], [styles$k[onlyOn], !!onlyOn]])
1362
+ }, React.createElement(DangerousHTML, {
1363
+ className: makeClassName([[styles$k.subtitle, true], [styles$k[styleContext], !!styleContext && !!styles$k[styleContext]]]),
1364
+ html: block.data
1365
+ }));
1366
+ };
1367
+
1368
+ var generateGradient = function generateGradient(color) {
1369
+ var gradientSteps = [[0, 7], [0.08, 12], [0.16, 17], [0.22, 21], [0.32, 26], [0.42, 32], [0.52, 38], [0.62, 47], [0.72, 57], [0.82, 65], [1, 82]];
1370
+ var gradient = gradientSteps.map(function (i) {
1371
+ return "rgba(" + color + ", " + i[0] + ") " + i[1] + "%";
1372
+ });
1373
+ return "linear-gradient(-180deg, " + gradient + ")";
1374
+ };
1375
+
1376
+ var css_248z$l = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.Cover-module_root__18Z8J {\n display: block;\n}\n";
1377
+ var styles$l = {"root":"Cover-module_root__18Z8J"};
1378
+ styleInject(css_248z$l);
1379
+
1380
+ var css_248z$m = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.SimpleTitle-module_root__2jVQN {\n margin: 0 0 18px;\n\n font-family: 'PF Regal', 'PF Regal Text Pro', 'Georgia', serif;\n font-size: 20px;\n font-weight: normal;\n line-height: 23px\n}\n@media only screen and (min-device-width: 48em) {\n.SimpleTitle-module_root__2jVQN {\n margin-bottom: 15px;\n\n font-size: 36px;\n line-height: 40px\n}\n }\n/* VISIBILITY */\n@media only screen and (min-device-width: 32em) {\n.SimpleTitle-module_mobile__11gBz {\n display: none\n}\n }\n.SimpleTitle-module_desktop__3yXgy {\n display: none\n}\n@media only screen and (min-device-width: 32em) {\n.SimpleTitle-module_desktop__3yXgy {\n display: block\n}\n }\n";
1381
+ var styles$m = {"root":"SimpleTitle-module_root__2jVQN","mobile":"SimpleTitle-module_mobile__11gBz","desktop":"SimpleTitle-module_desktop__3yXgy"};
1382
+ styleInject(css_248z$m);
1383
+
1384
+ var SimpleTitle = function SimpleTitle(_ref) {
1385
+ var _ref$block = _ref.block,
1386
+ first = _ref$block.data.first,
1387
+ onlyOn = _ref$block.only_on,
1388
+ styleContext = _ref.styleContext;
1389
+ var classNames = [[styles$m.root, true], [styles$m[onlyOn], true]];
1390
+
1391
+ if (styleContext) {
1392
+ classNames = makeStyleContext(classNames, styleContext, styles$m);
1393
+ }
1394
+
1395
+ return React.createElement("div", {
1396
+ "data-testid": "simple-title",
1397
+ className: makeClassName(classNames)
1398
+ }, first);
1399
+ };
1400
+
1401
+ var css_248z$n = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.RichTitle-module_root__BK_WT {\n margin: 0 0 18px;\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-size: 19px;\n font-weight: 700;\n line-height: 23px\n}\n@media only screen and (min-device-width: 48em) {\n.RichTitle-module_root__BK_WT {\n margin-bottom: 15px;\n\n font-size: 37px;\n line-height: 42px\n}\n }\n.RichTitle-module_root__BK_WT:last-child {\n margin-bottom: 0;\n}\n.RichTitle-module_root__BK_WT span {\n font-family: 'PF Regal', 'PF Regal Text Pro', 'Georgia', serif;\n font-size: 20px;\n font-weight: normal\n}\n@media only screen and (min-device-width: 48em) {\n.RichTitle-module_root__BK_WT span {\n font-size: 38px\n}\n }\n@media only screen and (min-device-width: 32em) {\n.RichTitle-module_slide__1A-gB,\n.RichTitle-module_game__1g8Bn {\n text-align: center\n}\n }\n@media only screen and (min-device-width: 64em) {\n.RichTitle-module_half__10GRI {\n font-size: 33px;\n line-height: 36px\n}\n }\n@media only screen and (min-device-width: 64em) {\n.RichTitle-module_half__10GRI span {\n font-size: 34px\n}\n }\n.RichTitle-module_game__1g8Bn:first-child {\n padding-top: 9px;\n}\n.RichTitle-module_featured__wJfaQ {\n letter-spacing: 0.3px;\n\n font-size: 28px;\n line-height: 30px;\n}\n.RichTitle-module_featured__wJfaQ span {\n display: block;\n\n padding-top: 2px;\n\n font-size: 18px;\n line-height: 24px;\n}\n@media only screen and (min-device-width: 32em) {\n.RichTitle-module_mobile__1Cb6E {\n display: none\n}\n }\n.RichTitle-module_desktop__2ixSQ {\n display: none\n}\n@media only screen and (min-device-width: 32em) {\n.RichTitle-module_desktop__2ixSQ {\n display: block\n}\n }\n";
1402
+ var styles$n = {"root":"RichTitle-module_root__BK_WT","slide":"RichTitle-module_slide__1A-gB","game":"RichTitle-module_game__1g8Bn","half":"RichTitle-module_half__10GRI","featured":"RichTitle-module_featured__wJfaQ","mobile":"RichTitle-module_mobile__1Cb6E","desktop":"RichTitle-module_desktop__2ixSQ"};
1403
+ styleInject(css_248z$n);
1404
+
1405
+ var RichTitle = function RichTitle(_ref) {
1406
+ var _ref$block = _ref.block,
1407
+ onlyOn = _ref$block.only_on,
1408
+ _ref$block$data = _ref$block.data,
1409
+ featured = _ref$block$data.featured,
1410
+ first = _ref$block$data.first,
1411
+ second = _ref$block$data.second,
1412
+ styleContext = _ref.styleContext;
1413
+ var classNames = [[styles$n.root, true], [styles$n[onlyOn], true], [styles$n.featured, !!featured]];
1414
+
1415
+ if (styleContext) {
1416
+ classNames = makeStyleContext(classNames, styleContext, styles$n);
1417
+ }
1418
+
1419
+ return React.createElement("h1", {
1420
+ "data-testid": "rich-title",
1421
+ className: makeClassName(classNames)
1422
+ }, first, second && React.createElement("span", null, " ", second));
1423
+ };
1424
+
1425
+ var css_248z$o = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n/* stylelint-disable declaration-empty-line-before */\nspan[data-body] {\n position: relative;\n\n padding: 0 4px;\n\n cursor: pointer;\n white-space: pre-wrap;\n\n border-radius: 4px;\n background: #F8F8F8;\n box-shadow: inset 1px 0 #b3b3b3, inset 0 1px #b3b3b3, inset -1px 0 #b3b3b3, inset 0 -1px #b3b3b3\n}\n@media only screen and (min-device-width: 48em) {\nspan[data-body] {\n padding-bottom: 1px\n}\n }\nspan[data-body]:hover {\n background: #F3F3F3;\n box-shadow: inset 1px 0 #999, inset 0 1px #999, inset -1px 0 #999, inset 0 -1px #999;\n}\n.dark span[data-body] {\n background-color: #5B5B5B;\n box-shadow: inset 1px 0 #8B8B8B, inset 0 1px #8B8B8B, inset -1px 0 #8B8B8B, inset 0 -1px #8B8B8B;\n}\n.dark span[data-body]:hover {\n background-color: #5B5B5B;\n box-shadow: inset 1px 0 #747474, inset 0 1px #747474, inset -1px 0 #747474, inset 0 -1px #747474;\n}\n.SimpleBlock-module_p__Q3azD {\n margin: 0 0 14px;\n\n font-family: 'PF Regal', 'PF Regal Text Pro', 'Georgia', serif;\n font-size: 18px;\n line-height: 24px\n}\n@media only screen and (min-device-width: 32em) {\n.SimpleBlock-module_p__Q3azD {\n margin: 0 0 20px;\n\n font-size: 20px;\n line-height: 28px\n}\n }\n.SimpleBlock-module_p__Q3azD a,\n.SimpleBlock-module_h2__S0LRs a,\n.SimpleBlock-module_h3__2Kv7Y a,\n.SimpleBlock-module_h4__2TJO3 a,\n.SimpleBlock-module_lead__35nXx a,\n.SimpleBlock-module_lead_hr__1yD5v a,\n.SimpleBlock-module_context_p__33saY a {\n text-decoration: none;\n\n color: inherit;\n box-shadow: inset 0 -1px #b88b59;\n}\n.SimpleBlock-module_p__Q3azD a:hover,\n.SimpleBlock-module_h2__S0LRs a:hover,\n.SimpleBlock-module_h3__2Kv7Y a:hover,\n.SimpleBlock-module_h4__2TJO3 a:hover,\n.SimpleBlock-module_lead__35nXx a:hover,\n.SimpleBlock-module_lead_hr__1yD5v a:hover,\n.SimpleBlock-module_context_p__33saY a:hover {\n color: #b88b59;\n}\n.SimpleBlock-module_h3__2Kv7Y:first-child,\n.SimpleBlock-module_h4__2TJO3:first-child,\n.SimpleBlock-module_p__Q3azD:first-child,\n.SimpleBlock-module_lead__35nXx:first-child,\n.SimpleBlock-module_blockquote__pwpcX:first-child {\n margin-top: 0;\n}\n.SimpleBlock-module_p__Q3azD:last-child,\n.SimpleBlock-module_blockquote__pwpcX:last-child,\n.SimpleBlock-module_lead__35nXx:last-child,\n.SimpleBlock-module_game__2sjgl.SimpleBlock-module_lead__35nXx:last-child,\n.SimpleBlock-module_slide__Aqgfu.SimpleBlock-module_lead__35nXx:last-child,\n.SimpleBlock-module_h2__S0LRs:last-child {\n margin-bottom: 0;\n}\n.SimpleBlock-module_h2__S0LRs {\n max-width: 520px;\n margin: 0 0 15px;\n\n font-family: 'PF Regal', 'PF Regal Text Pro', 'Georgia', serif;\n font-size: 25px;\n font-weight: bold;\n line-height: 28px\n}\n@media only screen and (min-device-width: 32em) {\n.SimpleBlock-module_h2__S0LRs {\n margin: 0 0 45px;\n\n font-size: 37px;\n line-height: 39px\n}\n }\n.SimpleBlock-module_h2__S0LRs + figure {\n margin-top: 15px\n}\n@media only screen and (min-device-width: 32em) {\n.SimpleBlock-module_h2__S0LRs + figure {\n margin-top: -20px\n}\n }\n.SimpleBlock-module_h3__2Kv7Y {\n margin-top: 29px;\n margin-bottom: 10px;\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-size: 20px;\n font-weight: bold;\n line-height: 24px\n}\n@media only screen and (min-device-width: 32em) {\n.SimpleBlock-module_h3__2Kv7Y {\n margin-top: 45px;\n margin-bottom: 15px;\n\n font-size: 28px;\n line-height: 34px\n}\n }\n.SimpleBlock-module_h4__2TJO3 {\n margin-top: 26px;\n margin-bottom: 11px;\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-size: 17px;\n font-weight: bold;\n line-height: 21px\n}\n@media only screen and (min-device-width: 32em) {\n.SimpleBlock-module_h4__2TJO3 {\n margin-top: 45px;\n margin-bottom: 15px;\n\n font-size: 21px;\n line-height: 28px\n}\n }\n.SimpleBlock-module_h3__2Kv7Y + .SimpleBlock-module_h3__2Kv7Y,\n.SimpleBlock-module_h2__S0LRs + .SimpleBlock-module_h2__S0LRs {\n margin-top: 0;\n}\n.SimpleBlock-module_h3__2Kv7Y + .SimpleBlock-module_h4__2TJO3 {\n margin-top: 15px\n}\n@media only screen and (min-device-width: 32em) {\n.SimpleBlock-module_h3__2Kv7Y + .SimpleBlock-module_h4__2TJO3 {\n margin-top: 15px\n}\n }\n.SimpleBlock-module_p__Q3azD + ul,\n.SimpleBlock-module_p__Q3azD + ol,\n.SimpleBlock-module_game__2sjgl.SimpleBlock-module_lead__35nXx + ul,\n.SimpleBlock-module_game__2sjgl.SimpleBlock-module_lead__35nXx + ol {\n margin-top: -9px;\n}\n.SimpleBlock-module_blockquote__pwpcX {\n margin: 16px 0;\n padding: 12px 12px 13px;\n\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 8px;\n background: #fff8c4;\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-size: 16px;\n font-weight: normal;\n line-height: 22px\n}\n@media only screen and (min-device-width: 32em) {\n.SimpleBlock-module_blockquote__pwpcX {\n margin: 25px 0;\n padding: 12px 15px 13px;\n\n font-size: 18px;\n line-height: 26px\n}\n }\n.SimpleBlock-module_blockquote__pwpcX a {\n text-decoration: none;\n\n color: #000;\n box-shadow: inset 0 -1px #000;\n}\n.SimpleBlock-module_blockquote__pwpcX a:hover {\n color: #b88b59;\n box-shadow: inset 0 -1px #b88b59;\n}\n.SimpleBlock-module_blockquote__pwpcX.SimpleBlock-module_dark__1J_ov {\n color: #000;\n}\n.SimpleBlock-module_lead__35nXx {\n position: relative;\n\n margin-top: 30px;\n margin-bottom: 0;\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-size: 16px;\n line-height: 22px\n}\n@media only screen and (min-device-width: 32em) {\n.SimpleBlock-module_lead__35nXx {\n margin-top: 25px;\n\n font-size: 20px;\n line-height: 28px\n}\n }\n.SimpleBlock-module_lead__35nXx [data-body] {\n padding-top: 1px;\n}\n.SimpleBlock-module_lead_hr__1yD5v {\n display: block;\n\n width: 100%;\n max-width: 650px;\n margin: 30px auto;\n\n border-bottom: 1px solid #e5e5e5\n}\n@media only screen and (min-device-width: 32em) {\n.SimpleBlock-module_lead_hr__1yD5v {\n margin: 45px auto\n}\n }\nmark {\n position: relative;\n\n white-space: pre-wrap;\n\n background-color: #fff3bc;\n\n font-weight: inherit;\n font-style: inherit\n}\n@media only screen and (min-device-width: 32em) {\nmark {\n padding-bottom: 1px\n}\n }\na mark {\n z-index: 1;\n\n padding-bottom: 0;\n\n color: inherit;\n box-shadow: inset 0 -1px #b88b59, 0 1px #fff3bc;\n}\n.SimpleBlock-module_context_p__33saY {\n position: relative;\n\n margin: 0 0 15px;\n padding: 0 0 0 23px;\n\n font-family: 'PF Regal', 'PF Regal Text Pro', 'Georgia', serif;\n font-size: 18px;\n line-height: 22px\n}\n@media only screen and (min-device-width: 48em) {\n.SimpleBlock-module_context_p__33saY {\n padding: 0 0 0 38px;\n\n font-size: 20px;\n line-height: 27px\n}\n }\n.SimpleBlock-module_context_p__33saY::before {\n position: absolute;\n top: 0;\n left: 5px;\n\n width: 8px;\n\n content: '\\2022';\n text-align: center;\n\n color: #b88b59;\n\n font-size: 18px;\n line-height: inherit\n}\n@media only screen and (min-device-width: 48em) {\n.SimpleBlock-module_context_p__33saY::before {\n left: 0;\n\n width: 36px;\n\n text-align: center;\n\n font-size: 20px\n}\n }\n.SimpleBlock-module_isInIntro__DfutD.SimpleBlock-module_lead__35nXx::after {\n content: none;\n}\n.SimpleBlock-module_center__2rjif {\n max-width: 650px;\n margin-right: auto;\n margin-left: auto;\n}\n@media only screen and (min-device-width: 48em) {\n.SimpleBlock-module_center__2rjif.SimpleBlock-module_lead__35nXx {\n font-size: 20px;\n line-height: 28px\n}\n }\n.SimpleBlock-module_game__2sjgl.SimpleBlock-module_lead__35nXx {\n margin-bottom: 18px\n}\n@media only screen and (min-device-width: 48em) {\n.SimpleBlock-module_game__2sjgl.SimpleBlock-module_lead__35nXx {\n margin-top: 27px;\n margin-bottom: 20px;\n\n font-size: 20px;\n line-height: 28px\n}\n }\n.SimpleBlock-module_slide__Aqgfu.SimpleBlock-module_lead__35nXx {\n margin-bottom: 15px\n}\n@media only screen and (min-device-width: 48em) {\n.SimpleBlock-module_slide__Aqgfu.SimpleBlock-module_lead__35nXx {\n margin-top: 20px;\n\n font-size: 20px;\n line-height: 28px\n}\n }\n.SimpleBlock-module_slide__Aqgfu.SimpleBlock-module_lead__35nXx + .SimpleBlock-module_lead__35nXx,\n.SimpleBlock-module_game__2sjgl.SimpleBlock-module_lead__35nXx + .SimpleBlock-module_lead__35nXx {\n margin-top: 0;\n}\n.SimpleBlock-module_isInImportantLead__3VGzT {\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-size: 16px;\n line-height: 22px\n}\n@media only screen and (min-device-width: 48em) {\n.SimpleBlock-module_isInImportantLead__3VGzT {\n font-size: 18px;\n line-height: 26px\n}\n }\n.SimpleBlock-module_slide__Aqgfu {\n max-width: 650px;\n margin-right: auto;\n margin-left: auto;\n}\n.SimpleBlock-module_isInAnswer__3aX6X.SimpleBlock-module_p__Q3azD {\n margin-top: 6px;\n margin-bottom: 6px;\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-size: 16px;\n line-height: 22px\n}\n@media only screen and (min-device-width: 48em) {\n.SimpleBlock-module_isInAnswer__3aX6X.SimpleBlock-module_p__Q3azD {\n margin-top: 12px;\n margin-bottom: 12px;\n\n font-size: 18px;\n line-height: 26px\n}\n }\n.SimpleBlock-module_isInAnswer__3aX6X.SimpleBlock-module_blockquote__pwpcX {\n margin-top: 12px;\n margin-bottom: 12px\n}\n@media only screen and (min-device-width: 48em) {\n.SimpleBlock-module_isInAnswer__3aX6X.SimpleBlock-module_blockquote__pwpcX {\n margin-top: 10px;\n margin-bottom: 10px\n}\n }\n.SimpleBlock-module_isInAnswer__3aX6X:first-child {\n margin-top: 6px;\n}\n.SimpleBlock-module_isInAnswer__3aX6X:last-child {\n margin-bottom: 0;\n}\n/* VISIBILITY */\n@media only screen and (min-device-width: 32em) {\n.SimpleBlock-module_mobile__Ckgek {\n display: none\n}\n }\n.SimpleBlock-module_desktop__2se2o {\n display: none\n}\n@media only screen and (min-device-width: 32em) {\n.SimpleBlock-module_desktop__2se2o {\n display: block\n}\n }\n";
1426
+ var styles$o = {"p":"SimpleBlock-module_p__Q3azD","h2":"SimpleBlock-module_h2__S0LRs","h3":"SimpleBlock-module_h3__2Kv7Y","h4":"SimpleBlock-module_h4__2TJO3","lead":"SimpleBlock-module_lead__35nXx","lead_hr":"SimpleBlock-module_lead_hr__1yD5v","context_p":"SimpleBlock-module_context_p__33saY","blockquote":"SimpleBlock-module_blockquote__pwpcX","game":"SimpleBlock-module_game__2sjgl","slide":"SimpleBlock-module_slide__Aqgfu","dark":"SimpleBlock-module_dark__1J_ov","isInIntro":"SimpleBlock-module_isInIntro__DfutD","center":"SimpleBlock-module_center__2rjif","isInImportantLead":"SimpleBlock-module_isInImportantLead__3VGzT","isInAnswer":"SimpleBlock-module_isInAnswer__3aX6X","mobile":"SimpleBlock-module_mobile__Ckgek","desktop":"SimpleBlock-module_desktop__2se2o"};
1427
+ styleInject(css_248z$o);
1428
+
1429
+ var SimpleBlock = function SimpleBlock(_ref) {
1430
+ var _ref$block = _ref.block,
1431
+ data = _ref$block.data,
1432
+ type = _ref$block.type,
1433
+ onlyOn = _ref$block.only_on,
1434
+ styleContext = _ref.styleContext;
1435
+ var tagName;
1436
+ var classNames = [[styles$o[type], !!type && !!styles$o[type]], [styles$o[onlyOn], true]];
1437
+
1438
+ if (styleContext) {
1439
+ classNames = makeStyleContext(classNames, styleContext, styles$o);
1440
+ }
1441
+
1442
+ switch (type) {
1443
+ case 'context_p':
1444
+ case 'lead':
1445
+ case 'note_caption':
1446
+ case 'note_credit':
1447
+ {
1448
+ tagName = 'p';
1449
+ break;
1450
+ }
1451
+
1452
+ case 'lead_hr':
1453
+ {
1454
+ tagName = 'div';
1455
+ break;
1456
+ }
1457
+
1458
+ default:
1459
+ tagName = type;
1460
+ }
1461
+
1462
+ return React.createElement(DangerousHTML, {
1463
+ className: makeClassName(classNames),
1464
+ html: data || '',
1465
+ tagName: tagName
1466
+ });
1467
+ };
1468
+
1469
+ var css_248z$p = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.ListBlock-module_root__3Q3Ga {\n margin: 15px 0;\n padding: 0;\n\n list-style: none;\n\n font-family: 'PF Regal', 'PF Regal Text Pro', 'Georgia', serif;\n font-size: 18px;\n line-height: 24px\n}\n@media only screen and (min-device-width: 32em) {\n.ListBlock-module_root__3Q3Ga {\n font-size: 20px;\n line-height: 28px\n}\n }\n@media only screen and (min-device-width: 48em) {\n.ListBlock-module_root__3Q3Ga {\n margin: 20px 0\n}\n }\n.ListBlock-module_root__3Q3Ga:first-child {\n margin-top: 0;\n}\n.ListBlock-module_root__3Q3Ga:last-child {\n margin-bottom: 0;\n}\n.ListBlock-module_root__3Q3Ga a {\n color: inherit;\n box-shadow: inset 0 -1px #b88b59;\n}\n.ListBlock-module_root__3Q3Ga a:hover {\n color: #b88b59;\n}\n.ListBlock-module_root__3Q3Ga li {\n position: relative;\n\n margin-bottom: 6px;\n}\n.ListBlock-module_root__3Q3Ga mark {\n position: relative;\n\n white-space: pre-wrap;\n\n background-color: #fff3bc;\n\n font-weight: inherit;\n font-style: inherit\n}\n@media only screen and (min-device-width: 32em) {\n.ListBlock-module_root__3Q3Ga mark {\n padding-bottom: 1px\n}\n }\n.ListBlock-module_root__3Q3Ga a mark {\n color: inherit;\n box-shadow: inset 0 -1px #b88b59;\n}\n.ListBlock-module_ol__21CgV {\n counter-reset: list 0;\n}\n.ListBlock-module_ol__21CgV li {\n padding: 0 0 0 33px;\n}\n.ListBlock-module_ol__21CgV li::before {\n position: absolute;\n left: 0;\n\n width: 23px;\n\n content: counter(list) '. ';\n counter-increment: list;\n text-align: right;\n white-space: nowrap;\n}\n.ListBlock-module_ul__2MRrS li {\n padding: 0 0 0 23px\n}\n@media only screen and (min-device-width: 48em) {\n.ListBlock-module_ul__2MRrS li {\n padding: 0 0 0 38px\n}\n }\n.ListBlock-module_ul__2MRrS li:last-child {\n margin-bottom: 0;\n}\n.ListBlock-module_ul__2MRrS li::before {\n position: absolute;\n top: 0;\n left: 5px;\n\n width: 8px;\n\n content: '\\2022';\n text-align: center;\n\n color: #b88b59;\n\n font-size: 18px;\n line-height: inherit\n}\n@media only screen and (min-device-width: 48em) {\n.ListBlock-module_ul__2MRrS li::before {\n left: 0;\n\n width: 36px;\n\n text-align: center;\n\n font-size: 20px\n}\n }\n.ListBlock-module_center__tdIwd {\n max-width: 650px;\n margin-right: auto;\n margin-left: auto;\n}\n.ListBlock-module_isInImportantLead__UP0ic {\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-size: 16px;\n line-height: 20px\n}\n@media only screen and (min-device-width: 48em) {\n.ListBlock-module_isInImportantLead__UP0ic {\n font-size: 17px;\n line-height: 24px\n}\n }\n.ListBlock-module_dark__3E3tV a {\n color: inherit;\n}\n.ListBlock-module_dark__3E3tV a:hover {\n color: #b88b59;\n}\n/* VISIBILITY */\n@media only screen and (min-device-width: 32em) {\n.ListBlock-module_mobile__2-nuV {\n display: none\n}\n }\n.ListBlock-module_desktop__1EE0g {\n display: none\n}\n@media only screen and (min-device-width: 32em) {\n.ListBlock-module_desktop__1EE0g {\n display: block\n}\n }\n";
1470
+ var styles$p = {"root":"ListBlock-module_root__3Q3Ga","ol":"ListBlock-module_ol__21CgV","ul":"ListBlock-module_ul__2MRrS","center":"ListBlock-module_center__tdIwd","isInImportantLead":"ListBlock-module_isInImportantLead__UP0ic","dark":"ListBlock-module_dark__3E3tV","mobile":"ListBlock-module_mobile__2-nuV","desktop":"ListBlock-module_desktop__1EE0g"};
1471
+ styleInject(css_248z$p);
1472
+
1473
+ var ListBlock = function ListBlock(_ref) {
1474
+ var _ref$block = _ref.block,
1475
+ type = _ref$block.type,
1476
+ data = _ref$block.data,
1477
+ onlyOn = _ref$block.only_on,
1478
+ styleContext = _ref.styleContext;
1479
+ var TagName = type;
1480
+ var classNames = [[styles$p.root, true], [styles$p[onlyOn], true], [styles$p[type], !!type && !!styles$p[type]]];
1481
+
1482
+ if (styleContext) {
1483
+ classNames = makeStyleContext(classNames, styleContext, styles$p);
1484
+ }
1485
+
1486
+ return React.createElement(TagName, {
1487
+ className: makeClassName(classNames)
1488
+ }, data.map(function (item, index) {
1489
+ return React.createElement(DangerousHTML, {
1490
+ key: index,
1491
+ html: item,
1492
+ tagName: "li"
1493
+ });
1494
+ }));
1495
+ };
1496
+
1497
+ var css_248z$q = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.RelatedBlock-module_root__IKcQq {\n margin: 16px 0;\n\n border-radius: 8px;\n background-color: #f5f5f5;\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), inset 0 4px 0 0 #b78b5c\n}\n@media only screen and (min-device-width: 48em) {\n.RelatedBlock-module_root__IKcQq {\n margin: 25px 0\n}\n }\n.RelatedBlock-module_root__IKcQq:last-child {\n margin-bottom: 0;\n}\n.RelatedBlock-module_root__IKcQq:first-child {\n margin-top: 0;\n}\n.RelatedBlock-module_root__IKcQq a {\n display: block;\n\n padding: 12px 12px 13px;\n\n transition: color 0.15s;\n text-decoration: none;\n\n color: #000;\n box-shadow: none;\n\n font-size: 17px;\n line-height: 20px\n}\n@media only screen and (min-device-width: 48em) {\n.RelatedBlock-module_root__IKcQq a {\n padding: 15px 20px 17px;\n\n font-size: 19px;\n line-height: 23px\n}\n }\n.RelatedBlock-module_root__IKcQq a:hover {\n color: #5c5c5c;\n}\n.RelatedBlock-module_header__2SuWP {\n margin: 0;\n padding: 14px 12px 3px;\n\n letter-spacing: 1px;\n text-transform: uppercase;\n\n color: #7F7F7F;\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-size: 12px;\n font-weight: 600;\n line-height: 17px\n}\n@media only screen and (min-device-width: 48em) {\n.RelatedBlock-module_header__2SuWP {\n padding: 20px 20px 14px;\n\n font-size: 14px;\n line-height: 16px\n}\n }\n.RelatedBlock-module_items__2V-Ap {\n margin: 0;\n padding-left: 0;\n\n list-style: none;\n}\n.RelatedBlock-module_items__2V-Ap li {\n padding: 0;\n}\n.RelatedBlock-module_items__2V-Ap li + li {\n border-top: 1px solid #e6e6e6;\n}\n.RelatedBlock-module_rich__ddaHq .RelatedBlock-module_first__BKItW {\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-size: 16px;\n font-weight: 700;\n line-height: 18px\n}\n@media only screen and (min-device-width: 48em) {\n.RelatedBlock-module_rich__ddaHq .RelatedBlock-module_first__BKItW {\n font-size: 18px\n}\n }\n.RelatedBlock-module_simple__29HVO {\n}\n.RelatedBlock-module_center__1LmW8 {\n max-width: 650px;\n margin-right: auto;\n margin-left: auto;\n}\n.RelatedBlock-module_isInSlideMaterial__2YSYG:first-child {\n margin-top: 0;\n}\n.RelatedBlock-module_isInSlideMaterial__2YSYG:last-child {\n margin-bottom: 0;\n}\n/* VISIBILITY */\n@media only screen and (min-device-width: 32em) {\n.RelatedBlock-module_mobile__2XM5a {\n display: none\n}\n }\n.RelatedBlock-module_desktop__2mXeq {\n display: none\n}\n@media only screen and (min-device-width: 32em) {\n.RelatedBlock-module_desktop__2mXeq {\n display: block\n}\n }\n\n";
1498
+ var styles$q = {"root":"RelatedBlock-module_root__IKcQq","header":"RelatedBlock-module_header__2SuWP","items":"RelatedBlock-module_items__2V-Ap","rich":"RelatedBlock-module_rich__ddaHq","first":"RelatedBlock-module_first__BKItW","simple":"RelatedBlock-module_simple__29HVO","center":"RelatedBlock-module_center__1LmW8","isInSlideMaterial":"RelatedBlock-module_isInSlideMaterial__2YSYG","mobile":"RelatedBlock-module_mobile__2XM5a","desktop":"RelatedBlock-module_desktop__2mXeq"};
1499
+ styleInject(css_248z$q);
1500
+
1501
+ var RelatedBlock = function RelatedBlock(_ref) {
1502
+ var _ref$block = _ref.block,
1503
+ _ref$block$data = _ref$block.data,
1504
+ title = _ref$block$data.title,
1505
+ related = _ref$block$data.related,
1506
+ onlyOn = _ref$block.only_on,
1507
+ styleContext = _ref.styleContext;
1508
+ var classNames = [[styles$q.root, true], [styles$q[onlyOn], true]];
1509
+
1510
+ if (styleContext) {
1511
+ classNames = makeStyleContext(classNames, styleContext, styles$q);
1512
+ }
1513
+
1514
+ return React.createElement("div", {
1515
+ "data-testid": "related-block",
1516
+ className: makeClassName(classNames)
1517
+ }, React.createElement("h3", {
1518
+ className: styles$q.header
1519
+ }, title), React.createElement("ul", {
1520
+ className: styles$q.items
1521
+ }, related.map(function (item, index) {
1522
+ return React.createElement("li", {
1523
+ key: item.id || index,
1524
+ className: styles$q[item.layout]
1525
+ }, React.createElement("a", {
1526
+ href: item.full_url || "/" + item.url,
1527
+ target: "_blank",
1528
+ rel: "noopener noreferrer"
1529
+ }, React.createElement("span", {
1530
+ className: styles$q.first
1531
+ }, item.title), item.second_title && ' ', item.second_title && React.createElement("span", null, item.second_title)));
1532
+ })));
1533
+ };
1534
+
1535
+ var css_248z$r = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.SourceBlock-module_root__1P3XD {\n display: block;\n\n margin: 18px 0 15px;\n padding: 12px 11px 13px;\n\n color: #000;\n border-left: 4px solid #b88b59;\n border-radius: 2px 8px 8px 2px;\n background-color: #f5f5f5;\n\n font-size: 16px;\n line-height: 20px\n}\n@media only screen and (min-device-width: 48em) {\n.SourceBlock-module_root__1P3XD {\n margin-top: 25px;\n margin-bottom: 25px;\n padding: 18px 16px 12px\n}\n }\n.SourceBlock-module_root__1P3XD:hover,\n.SourceBlock-module_root__1P3XD:visited {\n background-color: #ededed;\n}\n.SourceBlock-module_root__1P3XD blockquote {\n margin: 0;\n}\n.SourceBlock-module_root__1P3XD a {\n text-decoration: none;\n\n color: inherit;\n}\n.SourceBlock-module_text__Si4vm {\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n}\n.SourceBlock-module_text__Si4vm p {\n margin: 0;\n\n font-size: 16px;\n line-height: 22px\n}\n@media only screen and (min-device-width: 48em) {\n.SourceBlock-module_text__Si4vm p {\n font-size: 18px;\n line-height: 26px\n}\n }\n.SourceBlock-module_root__1P3XD p + p {\n margin-top: 12px;\n}\n.SourceBlock-module_root__1P3XD footer {\n margin-top: 12px;\n padding-top: 10px;\n\n border-top: 1px solid #d6d6d6\n}\n@media only screen and (min-device-width: 48em) {\n.SourceBlock-module_root__1P3XD footer {\n margin-top: 18px;\n padding-top: 12px\n}\n }\n.SourceBlock-module_origin__l3JbO {\n letter-spacing: 1px;\n text-transform: uppercase;\n pointer-events: none;\n\n color: #292929;\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-size: 16px;\n font-weight: bold;\n font-style: normal;\n line-height: 22px\n}\n@media only screen and (min-device-width: 48em) {\n.SourceBlock-module_origin__l3JbO {\n font-size: 18px;\n line-height: 26px\n}\n }\n.SourceBlock-module_center__3P93B {\n max-width: 650px;\n margin-right: auto;\n margin-left: auto;\n}\n/* VISIBILITY */\n@media only screen and (min-device-width: 32em) {\n.SourceBlock-module_mobile__2gw4S {\n display: none\n}\n }\n.SourceBlock-module_desktop__DecT6 {\n display: none\n}\n@media only screen and (min-device-width: 32em) {\n.SourceBlock-module_desktop__DecT6 {\n display: block\n}\n }\n";
1536
+ var styles$r = {"root":"SourceBlock-module_root__1P3XD","text":"SourceBlock-module_text__Si4vm","origin":"SourceBlock-module_origin__l3JbO","center":"SourceBlock-module_center__3P93B","mobile":"SourceBlock-module_mobile__2gw4S","desktop":"SourceBlock-module_desktop__DecT6"};
1537
+ styleInject(css_248z$r);
1538
+
1539
+ var SourceBlock = function SourceBlock(_ref) {
1540
+ var _ref$block = _ref.block,
1541
+ onlyOn = _ref$block.only_on,
1542
+ quote = _ref$block.quote,
1543
+ origin = _ref$block.origin,
1544
+ url = _ref$block.url,
1545
+ styleContext = _ref.styleContext;
1546
+ var classNames = [[styles$r.root, true], [styles$r[onlyOn], true]];
1547
+
1548
+ if (styleContext) {
1549
+ classNames = makeStyleContext(classNames, styleContext, styles$r);
1550
+ }
1551
+
1552
+ return React.createElement("blockquote", {
1553
+ "data-testid": "source-block",
1554
+ cite: url,
1555
+ className: makeClassName(classNames)
1556
+ }, React.createElement("a", {
1557
+ className: styles$r.text,
1558
+ href: url,
1559
+ target: "_blank",
1560
+ rel: "noopener noreferrer"
1561
+ }, quote.map(function (item, index) {
1562
+ return React.createElement(DangerousHTML, {
1563
+ key: index,
1564
+ html: item.data,
1565
+ tagName: "p"
1566
+ });
1567
+ }), React.createElement("footer", null, React.createElement("cite", {
1568
+ className: styles$r.origin
1569
+ }, origin))));
1570
+ };
1571
+
1572
+ var css_248z$s = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.GroupedBlock-module_root__2qfQA {\n max-width: 644px;\n margin: 15px auto 0\n}\n@media only screen and (min-device-width: 48em) {\n.GroupedBlock-module_root__2qfQA {\n max-width: none;\n margin-top: 25px;\n margin-bottom: 20px\n}\n }\n.GroupedBlock-module_hasFigcaption__2_mcf {\n margin-bottom: 15px;\n}\n@media only screen and (min-device-width: 48em) {\n.GroupedBlock-module_hasFigcaption__2_mcf + .GroupedBlock-module_root__2qfQA {\n margin-top: 25px\n}\n }\n.GroupedBlock-module_hasFigcaption__2_mcf .GroupedBlock-module_item__3sz9_:last-child {\n margin-bottom: 0;\n}\n.GroupedBlock-module_items__2DV2X {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap\n}\n@media only screen and (min-device-width: 48em) {\n.GroupedBlock-module_items__2DV2X {\n flex-direction: row\n}\n }\n.GroupedBlock-module_item__3sz9_ {\n flex-grow: 1;\n\n width: 100%;\n min-width: 100%;\n max-width: 100%;\n margin-bottom: 20px\n}\n@media only screen and (min-device-width: 48em) {\n.GroupedBlock-module_item__3sz9_ {\n min-width: 0;\n max-width: none;\n margin-bottom: 0\n}\n }\n@media only screen and (min-device-width: 48em) {\n.GroupedBlock-module_item__3sz9_ + .GroupedBlock-module_item__3sz9_ {\n margin-left: 15px\n}\n }\n.GroupedBlock-module_figcaption__2Q_wf {\n max-width: 650px;\n margin-right: auto;\n margin-left: auto;\n}\n/* DISPLAY */\n@media only screen and (min-device-width: 48em) {\n.GroupedBlock-module_default__3ylw_ {\n max-width: 650px\n}\n }\n.GroupedBlock-module_full__1dzQR {\n max-width: 980px;\n}\n.GroupedBlock-module_super_full__1PU72 {\n max-width: 1680px;\n}\n/* VISIBILITY */\n@media only screen and (min-device-width: 32em) {\n.GroupedBlock-module_mobile__3n8Ub {\n display: none\n}\n }\n.GroupedBlock-module_desktop__6ZRpA {\n display: none\n}\n@media only screen and (min-device-width: 32em) {\n.GroupedBlock-module_desktop__6ZRpA {\n display: block\n}\n }\n\n";
1573
+ var styles$s = {"root":"GroupedBlock-module_root__2qfQA","hasFigcaption":"GroupedBlock-module_hasFigcaption__2_mcf","item":"GroupedBlock-module_item__3sz9_","items":"GroupedBlock-module_items__2DV2X","figcaption":"GroupedBlock-module_figcaption__2Q_wf","default":"GroupedBlock-module_default__3ylw_","full":"GroupedBlock-module_full__1dzQR","super_full":"GroupedBlock-module_super_full__1PU72","mobile":"GroupedBlock-module_mobile__3n8Ub","desktop":"GroupedBlock-module_desktop__6ZRpA"};
1574
+ styleInject(css_248z$s);
1575
+
1576
+ var GroupedBlock = function GroupedBlock(_ref) {
1577
+ var block = _ref.block,
1578
+ onlyOn = _ref.block.only_on,
1579
+ styleContext = _ref.styleContext;
1580
+ var maxHeight = Math.min.apply(Math, block.data.map(function (item) {
1581
+ return item.data.height;
1582
+ }));
1583
+ var normalizedBoxesWidth = block.data.map(function (item) {
1584
+ return item.data.width / (item.data.height / maxHeight);
1585
+ });
1586
+ var sumWidth = normalizedBoxesWidth.reduce(function (sum, x) {
1587
+ return sum + x;
1588
+ });
1589
+ var classNames = [[styles$s.root, true], [styles$s[onlyOn], true], [styles$s.hasFigcaption, block.cc === 'default'], [styles$s[block.display], !!block.display && styles$s[block.display]]];
1590
+
1591
+ if (styleContext) {
1592
+ classNames = makeStyleContext(classNames, styleContext, styles$s);
1593
+ }
1594
+
1595
+ return React.createElement("div", {
1596
+ "data-testid": "grouped-block",
1597
+ className: makeClassName(classNames)
1598
+ }, React.createElement("div", {
1599
+ className: styles$s.items
1600
+ }, block.data.map(function (item, index) {
1601
+ var percentWidth = normalizedBoxesWidth[index] / sumWidth * 100;
1602
+ return React.createElement("div", {
1603
+ className: styles$s.item,
1604
+ key: item.id,
1605
+ style: {
1606
+ width: percentWidth + "%"
1607
+ }
1608
+ }, React.createElement(EmbedBlockContainer, {
1609
+ block: item,
1610
+ styleContext: "isInGroupedBlock"
1611
+ }));
1612
+ })), block.cc && React.createElement("figcaption", {
1613
+ className: styles$s.figcaption
1614
+ }, React.createElement(MediaCaption, {
1615
+ credit: block.credit,
1616
+ caption: block.caption,
1617
+ styleContext: styleContext
1618
+ })));
1619
+ };
1620
+
1621
+ var css_248z$t = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.MetaItem-module_root__2VQom {\n display: inline;\n\n margin-right: 15px;\n}\n.MetaItem-module_root__2VQom > svg {\n display: inline-block;\n\n margin-right: 1px;\n\n vertical-align: top;\n\n color: inherit;\n\n fill: currentColor;\n}\n.MetaItem-module_root__2VQom a {\n display: inline;\n\n text-decoration: underline;\n\n color: inherit;\n\n -webkit-text-decoration-skip: auto;\n}\n.MetaItem-module_root__2VQom a:hover {\n color: #b88b59;\n}\n.MetaItem-module_hasBullets__CkQPI {\n margin-right: 0;\n}\n.MetaItem-module_hasBullets__CkQPI:nth-child(n + 2)::before {\n display: inline-block;\n\n padding-right: 0.4em;\n padding-left: 0.4em;\n\n content: '\\B7';\n}\n@media only screen and (max-device-width: 32.1875em) {\n.MetaItem-module_hasSource__1DmCI {\n width: 100%;\n margin-top: 3px;\n margin-bottom: 3px\n}\n }\n@media only screen and (max-device-width: 32.1875em) {\n.MetaItem-module_hasSource__1DmCI:first-child {\n margin-top: 0\n}\n }\n.MetaItem-module_hasSource__1DmCI:last-child {\n margin-bottom: 0;\n}\n@media only screen and (max-device-width: 32.1875em) {\n.MetaItem-module_hasSource__1DmCI:nth-child(n + 2)::before {\n display: none\n}\n }\n@media only screen and (max-device-width: 32.1875em) {\n.MetaItem-module_hasSource__1DmCI.MetaItem-module_listened__lwvAO::before,\n.MetaItem-module_hasSource__1DmCI.MetaItem-module_read__5eAIG::before {\n display: inline-block\n}\n }\n@media only screen and (max-device-width: 32.1875em) {\n.MetaItem-module_datetime__3tOWm,\n.MetaItem-module_listened__lwvAO,\n.MetaItem-module_read__5eAIG {\n width: auto\n}\n }\n@media only screen and (max-device-width: 32.1875em) {\n.MetaItem-module_hasSource__1DmCI.MetaItem-module_datetime__3tOWm:first-child {\n order: -2\n}\n }\n@media only screen and (max-device-width: 32.1875em) {\n.MetaItem-module_hasSource__1DmCI.MetaItem-module_listened__lwvAO,\n.MetaItem-module_hasSource__1DmCI.MetaItem-module_read__5eAIG {\n order: -1;\n\n margin-top: 0\n}\n }\n.MetaItem-module_read__5eAIG svg {\n margin-top: -1px;\n}\n";
1622
+ var styles$t = {"root":"MetaItem-module_root__2VQom","hasBullets":"MetaItem-module_hasBullets__CkQPI","hasSource":"MetaItem-module_hasSource__1DmCI","listened":"MetaItem-module_listened__lwvAO","read":"MetaItem-module_read__5eAIG","datetime":"MetaItem-module_datetime__3tOWm"};
1623
+ styleInject(css_248z$t);
1624
+
1625
+ var MetaItem = function MetaItem(_ref) {
1626
+ var hasSource = _ref.hasSource,
1627
+ type = _ref.type,
1628
+ children = _ref.children,
1629
+ bullets = _ref.bullets;
1630
+ var classNames = [[styles$t.root, true], [styles$t[type], !!type && !!styles$t[type]], [styles$t.hasSource, !!hasSource], [styles$t.hasBullets, !!bullets]];
1631
+ return React.createElement("div", {
1632
+ "data-testid": "meta-item",
1633
+ className: makeClassName(classNames)
1634
+ }, children);
1635
+ };
1636
+
1637
+ var css_248z$u = "/* stylelint-disable declaration-empty-line-before */\n/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.MetaItemLive-module_root__2mpD3 {\n position: relative;\n\n display: inline-block;\n\n width: 18px;\n height: 18px;\n\n vertical-align: middle;\n}\n.MetaItemLive-module_gold__3yZEV {\n color: #b88b59;\n}\n.MetaItemLive-module_root__2mpD3::before,\n.MetaItemLive-module_root__2mpD3::after,\n.MetaItemLive-module_frame__1H_Ha {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 0;\n}\n.MetaItemLive-module_root__2mpD3 {\n margin-top: -4px;\n margin-right: 1px;\n\n transform: translateY(1px);\n}\n.MetaItemLive-module_root__2mpD3::before,\n.MetaItemLive-module_root__2mpD3::after,\n.MetaItemLive-module_frame__1H_Ha {\n\n border-radius: 50%;\n transform: scale(0);\n\n -webkit-animation-duration: 1.05s;\n\n animation-duration: 1.05s;\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n}\n.MetaItemLive-module_frame__1H_Ha {\n\n background: currentColor;\n\n -webkit-animation-name: MetaItemLive-module_liveMiddle__wyuV3;\n\n animation-name: MetaItemLive-module_liveMiddle__wyuV3;\n}\n.MetaItemLive-module_root__2mpD3::before,\n.MetaItemLive-module_root__2mpD3::after {\n\n border: 1px solid currentColor;\n\n content: '';\n}\n.MetaItemLive-module_root__2mpD3::before {\n -webkit-animation-name: MetaItemLive-module_liveFirstWave__3dbvz;\n animation-name: MetaItemLive-module_liveFirstWave__3dbvz;\n}\n.MetaItemLive-module_root__2mpD3::after {\n -webkit-animation-name: MetaItemLive-module_liveSecondWave__12g57;\n animation-name: MetaItemLive-module_liveSecondWave__12g57;\n}\n@-webkit-keyframes MetaItemLive-module_liveMiddle__wyuV3 {\n 14% {\n transform: scale(0);\n }\n\n 30% {\n transform: scale(0.22);\n }\n\n 63% {\n transform: scale(0.22);\n }\n\n 70% {\n transform: scale(0);\n }\n\n 100% {\n transform: scale(0);\n }\n}\n@keyframes MetaItemLive-module_liveMiddle__wyuV3 {\n 14% {\n transform: scale(0);\n }\n\n 30% {\n transform: scale(0.22);\n }\n\n 63% {\n transform: scale(0.22);\n }\n\n 70% {\n transform: scale(0);\n }\n\n 100% {\n transform: scale(0);\n }\n}\n@-webkit-keyframes MetaItemLive-module_liveFirstWave__3dbvz {\n 21% {\n transform: scale(0.1);\n }\n\n 53% {\n transform: scale(0.33);\n }\n\n 100% {\n transform: scale(0.66);\n\n opacity: 0;\n }\n}\n@keyframes MetaItemLive-module_liveFirstWave__3dbvz {\n 21% {\n transform: scale(0.1);\n }\n\n 53% {\n transform: scale(0.33);\n }\n\n 100% {\n transform: scale(0.66);\n\n opacity: 0;\n }\n}\n@-webkit-keyframes MetaItemLive-module_liveSecondWave__12g57 {\n 21% {\n transform: scale(0.22);\n }\n\n 53% {\n transform: scale(0.55);\n }\n\n 100% {\n transform: scale(0.88);\n\n opacity: 0;\n }\n}\n@keyframes MetaItemLive-module_liveSecondWave__12g57 {\n 21% {\n transform: scale(0.22);\n }\n\n 53% {\n transform: scale(0.55);\n }\n\n 100% {\n transform: scale(0.88);\n\n opacity: 0;\n }\n}\n";
1638
+ var styles$u = {"root":"MetaItemLive-module_root__2mpD3","gold":"MetaItemLive-module_gold__3yZEV","frame":"MetaItemLive-module_frame__1H_Ha","liveMiddle":"MetaItemLive-module_liveMiddle__wyuV3","liveFirstWave":"MetaItemLive-module_liveFirstWave__3dbvz","liveSecondWave":"MetaItemLive-module_liveSecondWave__12g57"};
1639
+ styleInject(css_248z$u);
1640
+
1641
+ var MetaItemLive = function MetaItemLive(_ref) {
1642
+ var _ref$theme = _ref.theme,
1643
+ theme = _ref$theme === void 0 ? 'gold' : _ref$theme;
1644
+ var classNames = [[styles$u.root, true], [styles$u[theme], !!theme && styles$u[theme]]];
1645
+ return React.createElement("div", {
1646
+ "data-testid": "meta-item-live",
1647
+ "data-meta": "live",
1648
+ className: makeClassName(classNames)
1649
+ }, React.createElement("div", {
1650
+ className: styles$u.frame
1651
+ }));
1652
+ };
1653
+
1654
+ var pluralize = function pluralize(number, one, two, five) {
1655
+ var n = Math.abs(number);
1656
+ n %= 100;
1657
+
1658
+ if (n >= 5 && n <= 20) {
1659
+ return five;
1660
+ }
1661
+
1662
+ n %= 10;
1663
+
1664
+ if (n === 1) {
1665
+ return one;
1666
+ }
1667
+
1668
+ if (n >= 2 && n <= 4) {
1669
+ return two;
1670
+ }
1671
+
1672
+ return five;
1673
+ };
1674
+
1675
+ var css_248z$v = "/* stylelint-disable declaration-empty-line-before */\n/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.DocumentItemsCount-module_root__P3q-z {\n display: inline;\n\n line-height: inherit;\n}\n.DocumentItemsCount-module_root__P3q-z svg {\n vertical-align: top;\n}\n.DocumentItemsCount-module_items__3pfxW {\n margin-left: 1px;\n\n vertical-align: top;\n}\n";
1676
+ var styles$v = {"root":"DocumentItemsCount-module_root__P3q-z","items":"DocumentItemsCount-module_items__3pfxW"};
1677
+ styleInject(css_248z$v);
1678
+
1679
+ var DocumentItemsCount = function DocumentItemsCount(_ref) {
1680
+ var type = _ref.type,
1681
+ _ref$lang = _ref.lang,
1682
+ lang = _ref$lang === void 0 ? 'ru' : _ref$lang,
1683
+ items = _ref.items,
1684
+ children = _ref.children;
1685
+ var i18n = {
1686
+ ru: {
1687
+ card: {
1688
+ one: 'карточка',
1689
+ two: 'карточки',
1690
+ five: 'карточек'
1691
+ },
1692
+ podcast: {
1693
+ one: 'эпизод',
1694
+ two: 'эпизода',
1695
+ five: 'эпизодов'
1696
+ }
1697
+ },
1698
+ en: {
1699
+ card: {
1700
+ one: 'card',
1701
+ two: 'cards',
1702
+ five: 'cards'
1703
+ },
1704
+ podcast: {
1705
+ one: 'episode',
1706
+ two: 'episodes',
1707
+ five: 'episodes'
1708
+ }
1709
+ }
1710
+ };
1711
+ var itemsCount = items + " " + pluralize(items, i18n[lang][type].one, i18n[lang][type].two, i18n[lang][type].five);
1712
+ return React.createElement("div", {
1713
+ "data-testid": "document-items-count",
1714
+ className: styles$v.root
1715
+ }, children, React.createElement("span", {
1716
+ className: styles$v.items
1717
+ }, itemsCount));
1718
+ };
1719
+
1720
+ var MetaContainer = function MetaContainer(_ref) {
1721
+ var lang = _ref.lang,
1722
+ block = _ref.block,
1723
+ isRead = _ref.isRead,
1724
+ isListened = _ref.isListened,
1725
+ bookmarkAction = _ref.bookmarkAction,
1726
+ isInBookmarks = _ref.isInBookmarks,
1727
+ _ref$block$data = _ref.block.data,
1728
+ components = _ref$block$data.components,
1729
+ theme = _ref$block$data.theme,
1730
+ styleContext = _ref.styleContext;
1731
+ var themeColor = styleContext && styleContext.indexOf('dark') !== -1 ? 'light' : 'unset';
1732
+ var isPodcast = styleContext && styleContext.indexOf('podcast') !== -1;
1733
+ var isSlides = styleContext && styleContext.indexOf('slide') !== -1;
1734
+ var hasSource = !!components.find(function (item) {
1735
+ return item.type === 'source_name';
1736
+ });
1737
+ return React.createElement(Meta, {
1738
+ styleContext: styleContext,
1739
+ theme: theme || themeColor,
1740
+ onlyOn: block.only_on,
1741
+ hasSource: hasSource
1742
+ }, components.map(function (component) {
1743
+ switch (component.type) {
1744
+ case 'source_name':
1745
+ {
1746
+ return React.createElement(MetaItem, {
1747
+ hasSource: hasSource,
1748
+ bullets: true,
1749
+ key: component.id
1750
+ }, React.createElement(React.Fragment, null, lang === 'ru' ? 'Источник: ' : 'Source: ', component.url && React.createElement("a", {
1751
+ href: component.url,
1752
+ rel: "noopener noreferrer",
1753
+ target: "_blank"
1754
+ }, component.text), !component.url && component.text));
1755
+ }
1756
+
1757
+ case 'duration':
1758
+ {
1759
+ return React.createElement(MetaItem, {
1760
+ hasSource: hasSource,
1761
+ bullets: true,
1762
+ key: component.id
1763
+ }, React.createElement(React.Fragment, null, React.createElement(SvgSymbol, {
1764
+ icon: "podcast",
1765
+ size: "small"
1766
+ }), component.text));
1767
+ }
1768
+
1769
+ case 'datetime':
1770
+ {
1771
+ return React.createElement(MetaItem, {
1772
+ hasSource: hasSource,
1773
+ bullets: true,
1774
+ key: component.id,
1775
+ type: "datetime"
1776
+ }, React.createElement(Timestamp, {
1777
+ publishedAt: component.datetime,
1778
+ type: "date",
1779
+ locale: lang
1780
+ }));
1781
+ }
1782
+
1783
+ case 'items_count':
1784
+ {
1785
+ return React.createElement(MetaItem, {
1786
+ hasSource: hasSource,
1787
+ bullets: true,
1788
+ key: component.id
1789
+ }, React.createElement(DocumentItemsCount, {
1790
+ items: component.count,
1791
+ type: isPodcast ? 'podcast' : 'card',
1792
+ lang: lang
1793
+ }, React.createElement(SvgSymbol, {
1794
+ icon: "card",
1795
+ size: "unset"
1796
+ })));
1797
+ }
1798
+
1799
+ case 'broadcast_active':
1800
+ {
1801
+ return React.createElement(MetaItem, {
1802
+ hasSource: hasSource,
1803
+ bullets: true,
1804
+ key: component.id
1805
+ }, React.createElement(React.Fragment, null, React.createElement(MetaItemLive, null), " \u041F\u0440\u044F\u043C\u043E\u0439 \u044D\u0444\u0438\u0440"));
1806
+ }
1807
+
1808
+ case 'broadcast':
1809
+ {
1810
+ return React.createElement(MetaItem, {
1811
+ hasSource: hasSource,
1812
+ bullets: true,
1813
+ key: component.id
1814
+ }, React.createElement(React.Fragment, null, component.with_icon && React.createElement(MetaItemLive, null), component.label));
1815
+ }
1816
+
1817
+ default:
1818
+ {
1819
+ return null;
1820
+ }
1821
+ }
1822
+ }), (isRead || isListened) && React.createElement(MetaItem, {
1823
+ hasSource: hasSource,
1824
+ bullets: true,
1825
+ type: isListened ? 'listened' : 'read'
1826
+ }, React.createElement(SvgSymbol, {
1827
+ icon: isListened ? 'listened' : 'read',
1828
+ size: "unset"
1829
+ })), isSlides && lang === 'ru' && React.createElement("div", {
1830
+ className: styles$f.bookmark
1831
+ }, React.createElement(BookmarkButton, {
1832
+ isInBookmarks: isInBookmarks,
1833
+ onClick: function onClick() {
1834
+ return bookmarkAction('bookmark', 'top');
1835
+ }
1836
+ })));
1837
+ };
1838
+
1839
+ var RenderBlocks = function RenderBlocks(_ref) {
1840
+ var block = _ref.block,
1841
+ styleContext = _ref.styleContext,
1842
+ lang = _ref.lang,
1843
+ isRead = _ref.isRead,
1844
+ isListened = _ref.isListened,
1845
+ bookmarkAction = _ref.bookmarkAction,
1846
+ isInBookmarks = _ref.isInBookmarks;
1847
+
1848
+ switch (block.type) {
1849
+ case 'tag':
1850
+ {
1851
+ return React.createElement(Tag, {
1852
+ size: "large",
1853
+ onlyOn: block.only_on,
1854
+ theme: block.data.theme,
1855
+ styleContext: styleContext
1856
+ }, block.data.text);
1857
+ }
1858
+
1859
+ case 'simple_title':
1860
+ {
1861
+ return React.createElement(SimpleTitle, {
1862
+ block: block,
1863
+ styleContext: styleContext
1864
+ });
1865
+ }
1866
+
1867
+ case 'rich_title':
1868
+ {
1869
+ return React.createElement(RichTitle, {
1870
+ block: block,
1871
+ styleContext: styleContext
1872
+ });
1873
+ }
1874
+
1875
+ case 'meta':
1876
+ {
1877
+ return React.createElement(MetaContainer, {
1878
+ block: block,
1879
+ lang: block.data.lang,
1880
+ styleContext: styleContext,
1881
+ isRead: isRead,
1882
+ isListened: isListened,
1883
+ isInBookmarks: isInBookmarks,
1884
+ bookmarkAction: bookmarkAction
1885
+ });
1886
+ }
1887
+
1888
+ case 'h1':
1889
+ case 'h2':
1890
+ case 'h3':
1891
+ case 'h4':
1892
+ case 'blockquote':
1893
+ case 'p':
1894
+ case 'context_p':
1895
+ case 'lead':
1896
+ case 'lead_hr':
1897
+ {
1898
+ return React.createElement(SimpleBlock, {
1899
+ block: block,
1900
+ styleContext: styleContext
1901
+ });
1902
+ }
1903
+
1904
+ case 'quote':
1905
+ return React.createElement(QuoteBlock, {
1906
+ block: block,
1907
+ styleContext: styleContext
1908
+ });
1909
+
1910
+ case 'ol':
1911
+ case 'ul':
1912
+ {
1913
+ return React.createElement(ListBlock, {
1914
+ block: block,
1915
+ styleContext: styleContext
1916
+ });
1917
+ }
1918
+
1919
+ case 'chapter-subtitle':
1920
+ {
1921
+ return React.createElement(ChapterBlock, {
1922
+ block: block,
1923
+ styleContext: styleContext
1924
+ });
1925
+ }
1926
+
1927
+ case 'card_title':
1928
+ {
1929
+ return React.createElement(CardTitle, {
1930
+ block: block,
1931
+ styleContext: styleContext
1932
+ });
1933
+ }
1934
+
1935
+ case 'related':
1936
+ {
1937
+ return React.createElement(RelatedBlock, {
1938
+ block: block,
1939
+ styleContext: styleContext
1940
+ });
1941
+ }
1942
+
1943
+ case 'source':
1944
+ return React.createElement(SourceBlock, {
1945
+ block: block,
1946
+ styleContext: styleContext
1947
+ });
1948
+
1949
+ case 'table':
1950
+ return React.createElement(Table, {
1951
+ block: block,
1952
+ styleContext: styleContext
1953
+ });
1954
+
1955
+ case 'embed':
1956
+ case 'embed_code':
1957
+ case 'game_embed':
1958
+ case 'image':
1959
+ case 'gif':
1960
+ return React.createElement(EmbedBlockContainer, {
1961
+ block: block,
1962
+ styleContext: styleContext,
1963
+ lang: lang
1964
+ });
1965
+
1966
+ case 'grouped':
1967
+ return React.createElement(GroupedBlock, {
1968
+ block: block,
1969
+ styleContext: styleContext
1970
+ });
1971
+
1972
+ case 'material_note':
1973
+ return React.createElement(MaterialNote, {
1974
+ block: block,
1975
+ styleContext: styleContext
1976
+ });
1977
+
1978
+ default:
1979
+ {
1980
+ return null;
1981
+ }
1982
+ }
1983
+ };
1984
+
1985
+ var Cover = function Cover(_ref) {
1986
+ var _ref$block = _ref.block,
1987
+ onlyOn = _ref$block.only_on,
1988
+ _ref$block$data = _ref$block.data,
1989
+ blocks = _ref$block$data.blocks,
1990
+ _ref$block$data$cover = _ref$block$data.cover,
1991
+ credit = _ref$block$data$cover.credit,
1992
+ caption = _ref$block$data$cover.caption,
1993
+ urls = _ref$block$data$cover.urls,
1994
+ mobileRatio = _ref$block$data$cover.mobile_ratio,
1995
+ gradients = _ref$block$data$cover.gradients,
1996
+ cc = _ref$block$data$cover.cc,
1997
+ styleContext = _ref.styleContext;
1998
+
1999
+ var _useState = useState(false),
2000
+ isPopoverShown = _useState[0],
2001
+ setIsPopoverShown = _useState[1];
2002
+
2003
+ var style = {};
2004
+ var theme;
2005
+ var classNames = [[styles$l.root, true], [styles$l[theme], true], [styles$l[onlyOn], !!onlyOn && !!styles$l[onlyOn]]];
2006
+
2007
+ if (styleContext) {
2008
+ classNames = makeStyleContext(classNames, styleContext, styles$l);
2009
+ }
2010
+
2011
+ if (gradients) {
2012
+ theme = gradients.text_rgb === '0,0,0' ? 'dark' : 'light';
2013
+ style.backgroundImage = generateGradient(gradients.bg_rgb);
2014
+ }
2015
+
2016
+ var renderCC = function renderCC(context) {
2017
+ return React.createElement(MediaCaption, {
2018
+ credit: credit,
2019
+ caption: caption,
2020
+ styleContext: context || styleContext
2021
+ });
2022
+ };
2023
+
2024
+ return React.createElement("div", {
2025
+ "data-testid": "cover",
2026
+ className: makeClassName(classNames)
2027
+ }, React.createElement("div", {
2028
+ className: styles$l.image
2029
+ }, React.createElement(Image, {
2030
+ optimized: urls,
2031
+ ratio: mobileRatio,
2032
+ display: "narrow"
2033
+ })), React.createElement("div", {
2034
+ className: styles$l.body,
2035
+ style: style
2036
+ }, blocks.map(function (item) {
2037
+ return React.createElement(RenderBlocks, {
2038
+ key: item.id,
2039
+ block: item,
2040
+ styleContext: styleContext
2041
+ });
2042
+ })), cc === 'button' && React.createElement("button", {
2043
+ className: styles$l.control,
2044
+ type: "button",
2045
+ "aria-label": "Open",
2046
+ onClick: function onClick() {
2047
+ setIsPopoverShown(!isPopoverShown);
2048
+ }
2049
+ }), cc === 'button' && isPopoverShown && React.createElement(Popover, {
2050
+ onClose: function onClose() {
2051
+ setIsPopoverShown(false);
2052
+ }
2053
+ }, renderCC('isInPopover')));
2054
+ };
2055
+
2056
+ var css_248z$w = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.HalfBlock-module_root__2frv2 {\n position: relative;\n\n text-align: left;\n}\n.HalfBlock-module_main__2XX73 {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n flex-flow: column nowrap\n}\n@media only screen and (min-device-width: 64em) {\n.HalfBlock-module_main__2XX73 {\n align-items: center;\n flex-flow: row nowrap\n}\n }\n.HalfBlock-module_body__3MnEN {\n order: -1;\n\n max-width: 860px;\n margin: 0 auto\n}\n@media only screen and (min-device-width: 48em) {\n.HalfBlock-module_body__3MnEN {\n text-align: center\n}\n }\n@media only screen and (min-device-width: 64em) {\n.HalfBlock-module_body__3MnEN {\n align-items: flex-start;\n justify-content: center;\n order: 0;\n\n width: 50%;\n max-width: none;\n height: 100%;\n margin-left: 25px;\n\n text-align: left\n}\n }\n.HalfBlock-module_footer__1C0yp {\n width: 100%;\n max-width: 650px;\n margin: 0 auto;\n padding-top: 3px\n}\n@media only screen and (min-device-width: 64em) {\n.HalfBlock-module_footer__1C0yp {\n max-width: 1000px;\n margin: auto;\n padding-top: 0;\n\n border-top: 1px solid #e6e6e6\n}\n }\n.HalfBlock-module_image__2lYel {\n flex-grow: 1;\n\n margin: 0 -20px 0;\n margin-top: 18px\n}\n@media only screen and (min-device-width: 32em) {\n.HalfBlock-module_image__2lYel {\n margin: 31px 0 -5px\n}\n }\n@media only screen and (min-device-width: 64em) {\n.HalfBlock-module_image__2lYel {\n width: 50%;\n margin: 0\n}\n }\n/* VISIBILITY */\n@media only screen and (min-device-width: 32em) {\n.HalfBlock-module_mobile__2latf {\n display: none\n}\n }\n.HalfBlock-module_desktop__3B1Ej {\n display: none\n}\n@media only screen and (min-device-width: 32em) {\n.HalfBlock-module_desktop__3B1Ej {\n display: block\n}\n }\n";
2057
+ var styles$w = {"root":"HalfBlock-module_root__2frv2","main":"HalfBlock-module_main__2XX73","body":"HalfBlock-module_body__3MnEN","footer":"HalfBlock-module_footer__1C0yp","image":"HalfBlock-module_image__2lYel","mobile":"HalfBlock-module_mobile__2latf","desktop":"HalfBlock-module_desktop__3B1Ej"};
2058
+ styleInject(css_248z$w);
2059
+
2060
+ var HalfBlock = function HalfBlock(_ref) {
2061
+ var _ref$block = _ref.block,
2062
+ onlyOn = _ref$block.only_on,
2063
+ data = _ref$block.data,
2064
+ _ref$block$data$cover = _ref$block.data.cover,
2065
+ optimized = _ref$block$data$cover.optimized,
2066
+ ratio = _ref$block$data$cover.ratio,
2067
+ credit = _ref$block$data$cover.credit,
2068
+ caption = _ref$block$data$cover.caption,
2069
+ styleContext = _ref.styleContext;
2070
+ var classNames = [[styles$w.root, true], [styles$w[onlyOn], true]];
2071
+
2072
+ if (styleContext) {
2073
+ classNames = makeStyleContext(classNames, styleContext, styles$w);
2074
+ }
2075
+
2076
+ return React.createElement("div", {
2077
+ "data-testid": "half-block",
2078
+ className: makeClassName(classNames)
2079
+ }, React.createElement("div", {
2080
+ className: styles$w.main
2081
+ }, React.createElement("div", {
2082
+ className: styles$w.image
2083
+ }, React.createElement(Image, {
2084
+ optimized: optimized,
2085
+ ratio: ratio,
2086
+ display: "super_full"
2087
+ })), React.createElement("div", {
2088
+ className: styles$w.body
2089
+ }, data.blocks.map(function (item) {
2090
+ return React.createElement(RenderBlocks, {
2091
+ key: item.id,
2092
+ block: item,
2093
+ styleContext: ['rich']
2094
+ });
2095
+ }))), React.createElement("div", {
2096
+ className: styles$w.footer
2097
+ }, React.createElement(MediaCaption, {
2098
+ credit: credit,
2099
+ caption: caption,
2100
+ styleContext: styleContext
2101
+ })));
2102
+ };
2103
+
2104
+ var css_248z$x = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.ImportantLead-module_root__2BdT3 {\n margin: 18px 0;\n padding: 12px 12px 13px;\n\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: 4px;\n border-radius: 8px;\n background: #FFF8C4;\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-size: 16px;\n font-weight: normal;\n line-height: 20px\n}\n@media only screen and (min-device-width: 32em) {\n.ImportantLead-module_root__2BdT3 {\n margin: 25px 0;\n padding: 12px 15px 13px;\n\n font-size: 17px;\n line-height: 24px\n}\n }\n.ImportantLead-module_root__2BdT3:last-child {\n margin-bottom: 0;\n}\n.ImportantLead-module_root__2BdT3:first-child {\n margin-top: 0;\n}\n.ImportantLead-module_root__2BdT3 a {\n color: #000;\n box-shadow: inset 0 -1px #000;\n}\n.ImportantLead-module_root__2BdT3 a:hover {\n color: #b88b59;\n box-shadow: inset 0 -1px #b88b59;\n}\n.ImportantLead-module_slide__3kQ9x {\n max-width: 650px;\n margin-right: auto;\n margin-left: auto;\n}\n/* VISIBILITY */\n@media only screen and (min-device-width: 32em) {\n.ImportantLead-module_mobile__3BXbm {\n display: none\n}\n }\n.ImportantLead-module_desktop__3Zljc {\n display: none\n}\n@media only screen and (min-device-width: 32em) {\n.ImportantLead-module_desktop__3Zljc {\n display: block\n}\n }\n\n";
2105
+ var styles$x = {"root":"ImportantLead-module_root__2BdT3","slide":"ImportantLead-module_slide__3kQ9x","mobile":"ImportantLead-module_mobile__3BXbm","desktop":"ImportantLead-module_desktop__3Zljc"};
2106
+ styleInject(css_248z$x);
2107
+
2108
+ var ImportantLead = function ImportantLead(_ref) {
2109
+ var _ref$block = _ref.block,
2110
+ onlyOn = _ref$block.only_on,
2111
+ data = _ref$block.data,
2112
+ styleContext = _ref.styleContext;
2113
+ var classNames = [[styles$x.root, true], [styles$x[onlyOn], !!onlyOn]];
2114
+
2115
+ if (styleContext) {
2116
+ classNames = makeStyleContext(classNames, styleContext, styles$x);
2117
+ }
2118
+
2119
+ return React.createElement("div", {
2120
+ "data-testid": "important-lead",
2121
+ className: makeClassName(classNames)
2122
+ }, data.map(function (item) {
2123
+ return React.createElement(RenderBlocks, {
2124
+ key: item.id,
2125
+ block: item,
2126
+ styleContext: "isInImportantLead"
2127
+ });
2128
+ }));
2129
+ };
2130
+
2131
+ var POST_MESSAGE_PREFIX = 'mdzKitMsg';
2132
+
2133
+ var postMessage$1 = function postMessage(element, action) {
2134
+ var target = window.top;
2135
+ var msg = POST_MESSAGE_PREFIX + "=" + JSON.stringify({
2136
+ element: element,
2137
+ action: action
2138
+ });
2139
+
2140
+ if (typeof target !== 'undefined') {
2141
+ target.postMessage(msg, '*');
2142
+ }
2143
+ };
2144
+
2145
+ var css_248z$y = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.Spoiler-module_root__1OfSR {\n width: 100%;\n margin: 15px 0;\n padding: 21px 0 22px;\n\n border-top: 3px solid rgba(0, 0, 0, 0.1);\n border-bottom: 3px solid rgba(0, 0, 0, 0.1)\n}\n@media only screen and (min-device-width: 32em) {\n.Spoiler-module_root__1OfSR {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n flex-flow: column nowrap;\n\n margin: 25px auto 20px;\n padding: 20px 0\n}\n }\n.Spoiler-module_root__1OfSR:last-child {\n margin-bottom: 0;\n}\n.Spoiler-module_root__1OfSR:first-child {\n margin-top: 0;\n}\n.Spoiler-module_header__1rZUs {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n flex-flow: column nowrap;\n justify-content: center;\n}\n.Spoiler-module_header__1rZUs h3 {\n margin-top: 0;\n margin-bottom: 18px;\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-size: 21px;\n font-weight: 700;\n line-height: 26px\n}\n@media only screen and (min-device-width: 32em) {\n.Spoiler-module_header__1rZUs h3 {\n margin-bottom: 20px;\n\n font-size: 28px;\n line-height: 34px\n}\n }\n.Spoiler-module_body__Q1e_c {\n display: none;\n\n width: 100%;\n margin-right: auto;\n margin-left: auto;\n padding-bottom: 13px\n}\n@media only screen and (min-device-width: 32em) {\n.Spoiler-module_body__Q1e_c {\n order: 2;\n\n padding-top: 25px;\n padding-bottom: 0\n}\n }\n.Spoiler-module_spoiled__1A5r4 {\n min-height: auto;\n}\n.Spoiler-module_spoiled__1A5r4 .Spoiler-module_body__Q1e_c {\n display: block;\n}\n.Spoiler-module_footer__23mh7 {\n position: static;\n}\n.Spoiler-module_spoiled__1A5r4 .Spoiler-module_footer__23mh7 {\n position: -webkit-sticky;\n position: sticky;\n z-index: 10;\n bottom: 0;\n\n margin-right: -20px;\n margin-left: -20px;\n padding: 12px 20px 20px;\n\n -webkit-animation: Spoiler-module_spoilerSticky__3Kd30 500ms ease both;\n\n animation: Spoiler-module_spoilerSticky__3Kd30 500ms ease both;\n\n background-image: -webkit-gradient( linear, left top, left bottom, from(rgba(255, 255, 255, 0)), color-stop(64%, #fff) );\n\n background-image: -o-linear-gradient( top, rgba(255, 255, 255, 0) 0%, #fff 64% );\n\n background-image: linear-gradient( 180deg, rgba(255, 255, 255, 0) 0%, #fff 64% )\n}\n@media only screen and (min-device-width: 32em) {\n.Spoiler-module_spoiled__1A5r4 .Spoiler-module_footer__23mh7 {\n position: static;\n\n margin-right: 0;\n margin-left: 0;\n padding: 0;\n\n -webkit-animation: none;\n\n animation: none;\n\n background-image: none\n}\n }\n.Spoiler-module_spoiled__1A5r4 .Spoiler-module_footer__23mh7::after {\n position: absolute;\n z-index: -1;\n top: 100%;\n right: 0;\n left: 0;\n\n height: 16px;\n\n content: '';\n\n background-color: #fff\n}\n@media only screen and (min-device-width: 32em) {\n.Spoiler-module_spoiled__1A5r4 .Spoiler-module_footer__23mh7::after {\n content: none\n}\n }\n.Spoiler-module_spoiled__1A5r4 .Spoiler-module_footer__23mh7 svg {\n transform: rotate(180deg) translateY(1px);\n}\n@media only screen and (min-device-width: 32em) {\n.Spoiler-module_center__tq1m0 {\n max-width: 980px;\n margin-right: auto;\n margin-left: auto\n}\n }\n.Spoiler-module_full__1QFqR {\n max-width: 980px;\n}\n.Spoiler-module_default__2Kjx8 {\n max-width: 650px;\n}\n@-webkit-keyframes Spoiler-module_spoilerSticky__3Kd30 {\n 0% {\n transform: translateY(62px);\n }\n 50% {\n transform: translateY(-16px);\n }\n 100% {\n transform: translateY(0);\n }\n}\n@keyframes Spoiler-module_spoilerSticky__3Kd30 {\n 0% {\n transform: translateY(62px);\n }\n 50% {\n transform: translateY(-16px);\n }\n 100% {\n transform: translateY(0);\n }\n}\n[data-gdpr-panel='true'] .Spoiler-module_spoiled__1A5r4 .Spoiler-module_footer__23mh7 {\n bottom: 45px\n}\n@media only screen and (min-device-width: 32em) {\n[data-gdpr-panel='true'] .Spoiler-module_spoiled__1A5r4 .Spoiler-module_footer__23mh7 {\n bottom: 46px\n}\n }\n/* VISIBILITY */\n@media only screen and (min-device-width: 32em) {\n.Spoiler-module_mobile__2BPt8 {\n display: none\n}\n }\n.Spoiler-module_desktop__1BIFJ {\n display: none\n}\n@media only screen and (min-device-width: 32em) {\n.Spoiler-module_desktop__1BIFJ {\n display: block\n}\n }\n";
2146
+ var styles$y = {"root":"Spoiler-module_root__1OfSR","header":"Spoiler-module_header__1rZUs","body":"Spoiler-module_body__Q1e_c","spoiled":"Spoiler-module_spoiled__1A5r4","footer":"Spoiler-module_footer__23mh7","spoilerSticky":"Spoiler-module_spoilerSticky__3Kd30","center":"Spoiler-module_center__tq1m0","full":"Spoiler-module_full__1QFqR","default":"Spoiler-module_default__2Kjx8","mobile":"Spoiler-module_mobile__2BPt8","desktop":"Spoiler-module_desktop__1BIFJ"};
2147
+ styleInject(css_248z$y);
2148
+
2149
+ var Spoiler = function Spoiler(_ref) {
2150
+ var _ref$block = _ref.block,
2151
+ display = _ref$block.display,
2152
+ button = _ref$block.button,
2153
+ onlyOn = _ref$block.only_on,
2154
+ buttonTitle = _ref$block.btn_title,
2155
+ title = _ref$block.title,
2156
+ blocks = _ref$block.blocks,
2157
+ styleContext = _ref.styleContext;
2158
+
2159
+ var _useState = useState(false),
2160
+ spoiled = _useState[0],
2161
+ setSpoiled = _useState[1];
2162
+
2163
+ var ref = useRef(null);
2164
+
2165
+ var handleButtonClick = function handleButtonClick() {
2166
+ setSpoiled(!spoiled);
2167
+
2168
+ if (spoiled) {
2169
+ postMessage$1('closeSpoiler', 'click');
2170
+ var rect = ref.current.getBoundingClientRect();
2171
+
2172
+ if (rect.top < 0) {
2173
+ ref.current.scrollIntoView({
2174
+ behavior: 'smooth'
2175
+ });
2176
+ }
2177
+ } else {
2178
+ postMessage$1('openSpoiler', 'click');
2179
+ }
2180
+ };
2181
+
2182
+ var classNames = [[styles$y.root, true], [styles$y[onlyOn], !!onlyOn], [styles$y[display], !!display && styles$y[display]], [[styles$y.spoiled], !!spoiled]];
2183
+
2184
+ if (styleContext) {
2185
+ classNames = makeStyleContext(classNames, styleContext, styles$y);
2186
+ }
2187
+
2188
+ var buttonCollapse = button ? button.collapse : 'Свернуть';
2189
+ var buttonExpande = button ? button.expand : buttonTitle;
2190
+ return React.createElement("div", {
2191
+ ref: ref,
2192
+ className: makeClassName(classNames),
2193
+ "data-testid": "spoiler"
2194
+ }, React.createElement("div", {
2195
+ className: styles$y.header
2196
+ }, title && React.createElement("h3", null, title)), React.createElement("div", {
2197
+ className: styles$y.body
2198
+ }, blocks.map(function (item) {
2199
+ return React.createElement(RenderBlocks, {
2200
+ key: item.id,
2201
+ block: item,
2202
+ styleContext: styleContext
2203
+ });
2204
+ })), React.createElement("div", {
2205
+ className: styles$y.footer
2206
+ }, React.createElement(Button, {
2207
+ size: "default",
2208
+ theme: "gray",
2209
+ onClick: function onClick() {
2210
+ return handleButtonClick();
2211
+ },
2212
+ styleContext: "isInSpoiler"
2213
+ }, spoiled ? buttonCollapse : buttonExpande, React.createElement(SvgSymbol, {
2214
+ icon: "arrow"
2215
+ }))));
2216
+ };
2217
+
2218
+ var RawHtmlBlock = function RawHtmlBlock(_ref) {
2219
+ var block = _ref.block,
2220
+ styleContext = _ref.styleContext,
2221
+ isRead = _ref.isRead,
2222
+ isListened = _ref.isListened,
2223
+ isInBookmarks = _ref.isInBookmarks,
2224
+ bookmarkAction = _ref.bookmarkAction,
2225
+ lightBox = _ref.lightBox;
2226
+ var context = {
2227
+ lightBox: lightBox || null
2228
+ };
2229
+
2230
+ switch (block.type) {
2231
+ case 'important_lead':
2232
+ {
2233
+ return React.createElement(ImportantLead, {
2234
+ block: block,
2235
+ styleContext: styleContext
2236
+ });
2237
+ }
2238
+
2239
+ case 'spoiler':
2240
+ {
2241
+ return React.createElement(Spoiler, {
2242
+ block: block,
2243
+ styleContext: styleContext
2244
+ });
2245
+ }
2246
+
2247
+ case 'cover':
2248
+ {
2249
+ return React.createElement(Cover, {
2250
+ block: block,
2251
+ styleContext: styleContext
2252
+ });
2253
+ }
2254
+
2255
+ case 'half':
2256
+ {
2257
+ return React.createElement(HalfBlock, {
2258
+ block: block,
2259
+ styleContext: styleContext
2260
+ });
2261
+ }
2262
+
2263
+ default:
2264
+ {
2265
+ return React.createElement(BlockProvider, {
2266
+ value: context
2267
+ }, React.createElement(RenderBlocks, {
2268
+ block: block,
2269
+ styleContext: styleContext,
2270
+ isRead: isRead,
2271
+ isListened: isListened,
2272
+ isInBookmarks: isInBookmarks,
2273
+ bookmarkAction: bookmarkAction
2274
+ }));
2275
+ }
2276
+ }
2277
+ };
2278
+
2279
+ var css_248z$z = "/* Colors */\n/* Fonts */\n/* Gap */\n/* Media */\n/* 512 */\n/* 650 */\n/* 768 */\n/* 1024 */\n/* 1010 */\n/* 1200 */\n/* 511 */\n/* 1023 */\n/* Zindex */\n.ToolbarButton-module_root__xN-fq {\n height: 100%;\n margin: 0;\n padding: 0 1px 0 0;\n\n cursor: pointer;\n\n color: inherit;\n border-width: 0;\n outline: none;\n background-color: transparent;\n\n font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;\n font-size: 12px;\n font-weight: 600;\n line-height: 1;\n\n -webkit-appearance: none;\n\n -moz-appearance: none;\n\n appearance: none;\n}\n.ToolbarButton-module_root__xN-fq::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n\n content: '';\n}\n.ToolbarButton-module_root__xN-fq:hover {\n opacity: 0.6;\n}\n.ToolbarButton-module_dark__GrIOr {\n color: #fff;\n}\n.ToolbarButton-module_dark__GrIOr:hover {\n opacity: 0.6;\n}\n.ToolbarButton-module_dark__GrIOr svg {\n color: #262626;\n\n fill: #fff;\n}\n.ToolbarButton-module_dark__GrIOr.ToolbarButton-module_bookmark__3369b svg {\n color: #fff;\n\n fill: transparent;\n}\n.ToolbarButton-module_dark__GrIOr.ToolbarButton-module_bookmark__3369b.ToolbarButton-module_isActive__3NLAE svg {\n fill: currentColor;\n}\n.ToolbarButton-module_dark__GrIOr::before {\n border-left-color: rgba(255, 255, 255, 0.2);\n}\n.ToolbarButton-module_root__xN-fq [data-theme='dark'] {\n visibility: hidden;\n}\n.ToolbarButton-module_dark__GrIOr [data-theme='dark'] {\n visibility: visible;\n}\n.ToolbarButton-module_dark__GrIOr [data-theme='light'] {\n visibility: hidden;\n}\n.ToolbarButton-module_text__32m6s {\n display: inline-block;\n\n padding-left: 5px;\n\n vertical-align: middle;\n}\n.ToolbarButton-module_text__32m6s:empty {\n display: none;\n}\n.ToolbarButton-module_bookmark__3369b {\n color: #999;\n\n fill: transparent;\n}\n.ToolbarButton-module_isActive__3NLAE {\n fill: currentColor;\n}\n";
2280
+ var styles$z = {"root":"ToolbarButton-module_root__xN-fq","dark":"ToolbarButton-module_dark__GrIOr","bookmark":"ToolbarButton-module_bookmark__3369b","isActive":"ToolbarButton-module_isActive__3NLAE","text":"ToolbarButton-module_text__32m6s"};
2281
+ styleInject(css_248z$z);
2282
+
2283
+ var ToolbarButton = function ToolbarButton(_ref) {
2284
+ var children = _ref.children,
2285
+ type = _ref.type,
2286
+ theme = _ref.theme,
2287
+ isActive = _ref.isActive,
2288
+ _onClick = _ref.onClick;
2289
+ var classNames = [[styles$z.root, true], [styles$z[type], !!styles$z[type]], [styles$z[theme], !!styles$z[theme] && !!theme], [styles$z.isActive, !!isActive]];
2290
+ return React.createElement("button", {
2291
+ "data-testid": "toolbar-button",
2292
+ className: makeClassName(classNames),
2293
+ type: "button",
2294
+ onClick: function onClick() {
2295
+ return _onClick(type);
2296
+ }
2297
+ }, React.createElement(SvgSymbol, {
2298
+ size: "medium",
2299
+ icon: type,
2300
+ styleContext: "isInToolbar"
2301
+ }), children && React.createElement("span", {
2302
+ className: styles$z.text
2303
+ }, children));
2304
+ };
2305
+
2306
+ export { BookmarkButton, Button, CardTitle, ChapterBlock, Cover, DocumentItemsCount, DotsOnImage, Dropdown, EmbedBlockContainer, GroupedBlock, HalfBlock, Image, ImportantLead, Lazy, ListBlock, MaterialNote, MaterialTitle, MediaCaption, Menu, Meta, MetaItem, MetaItemLive, Popover, Primary, QuoteBlock, RawHtmlBlock, RelatedBlock, RenderBlocks, RichTitle, Secondary, SimpleBlock, SimpleTitle, SourceBlock, Spoiler, SvgSymbol, Switcher, Table, Tag, Timestamp, Toolbar, ToolbarButton };
101
2307
  //# sourceMappingURL=ui-kit-2.esm.js.map