@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
@@ -4,7 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
6
 
7
- var React = _interopDefault(require('react'));
7
+ var React = require('react');
8
+ var React__default = _interopDefault(React);
9
+ var reactIntersectionObserver = require('react-intersection-observer');
10
+ var dayjs = _interopDefault(require('dayjs'));
11
+ require('dayjs/locale/ru');
12
+ var relativeTime = _interopDefault(require('dayjs/plugin/relativeTime'));
13
+ var enableInlineVideo = _interopDefault(require('iphone-inline-video'));
8
14
 
9
15
  var makeClassName = function makeClassName(list) {
10
16
  return list.filter(function (_ref) {
@@ -17,24 +23,24 @@ var makeClassName = function makeClassName(list) {
17
23
  };
18
24
 
19
25
  var Loader = function Loader() {
20
- return React.createElement("svg", {
26
+ return React__default.createElement("svg", {
21
27
  width: "30px",
22
28
  height: "30px",
23
29
  viewBox: "0 0 30 30",
24
30
  xmlns: "http://www.w3.org/2000/svg"
25
- }, React.createElement("g", null, React.createElement("path", {
31
+ }, React__default.createElement("g", null, React__default.createElement("path", {
26
32
  d: "M15 0C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15 8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15zm0 2c7.18 0 13 5.82 13 13s-5.82 13-13 13S2 22.18 2 15 7.82 2 15 2z",
27
33
  opacity: "0.3"
28
- })), React.createElement("g", {
34
+ })), React__default.createElement("g", {
29
35
  fillRule: "evenodd"
30
- }, React.createElement("animateTransform", {
36
+ }, React__default.createElement("animateTransform", {
31
37
  attributeName: "transform",
32
38
  type: "rotate",
33
39
  from: "0 15 15",
34
40
  to: "360 15 15",
35
41
  dur: "1000ms",
36
42
  repeatCount: "indefinite"
37
- }), React.createElement("path", {
43
+ }), React__default.createElement("path", {
38
44
  d: "M15 0c8.18 0 14.83 6.547 14.997 14.686L30 15h-2c0-7.077-5.655-12.833-12.693-12.996L15 2V0z"
39
45
  })));
40
46
  };
@@ -76,7 +82,7 @@ var Button = function Button(_ref) {
76
82
  _ref$size = _ref.size,
77
83
  size = _ref$size === void 0 ? 'default' : _ref$size,
78
84
  _ref$state = _ref.state,
79
- state = _ref$state === void 0 ? 'default' : _ref$state,
85
+ state = _ref$state === void 0 ? 'isDefault' : _ref$state,
80
86
  _ref$styleContext = _ref.styleContext,
81
87
  styleContext = _ref$styleContext === void 0 ? 'isInToolbar' : _ref$styleContext,
82
88
  _ref$disabled = _ref.disabled,
@@ -92,16 +98,2257 @@ var Button = function Button(_ref) {
92
98
  onClick();
93
99
  };
94
100
 
95
- return React.createElement("button", {
101
+ return React__default.createElement("button", {
96
102
  "data-testid": "button",
97
103
  className: makeClassName([[styles.root, true], [styles[size], !!size], [styles[theme], !!theme], [styles[state], !!state && !!styles[state]], [styles[styleContext], !!styleContext]]),
98
104
  disabled: disabled,
99
105
  onClick: handleClick,
100
106
  type: "button"
101
- }, state === 'isLoading' ? React.createElement("span", {
107
+ }, state === 'isLoading' ? React__default.createElement("span", {
102
108
  className: styles.loader
103
- }, React.createElement(Loader, null)) : children);
109
+ }, React__default.createElement(Loader, null)) : children);
104
110
  };
105
111
 
112
+ 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";
113
+ 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"};
114
+ styleInject(css_248z$1);
115
+
116
+ var icons = {
117
+ meduzaLogo: {
118
+ width: 544,
119
+ height: 115,
120
+ 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" />'
121
+ },
122
+ menu: {
123
+ width: 24,
124
+ height: 24,
125
+ content: '<path d="M2 21h20M2 12h20M2 3h20" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" vector-effect="non-scaling-stroke" />'
126
+ },
127
+ fb: {
128
+ width: 16,
129
+ height: 18,
130
+ 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" />'
131
+ },
132
+ tw: {
133
+ width: 20,
134
+ height: 18,
135
+ 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"/>'
136
+ },
137
+ vk: {
138
+ width: 20,
139
+ height: 18,
140
+ 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"/>'
141
+ },
142
+ ok: {
143
+ width: 9,
144
+ height: 18,
145
+ 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"/>'
146
+ },
147
+ tg: {
148
+ width: 18,
149
+ height: 18,
150
+ 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"/>'
151
+ },
152
+ meduzaSymbol: {
153
+ width: 24,
154
+ height: 18,
155
+ 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" />'
156
+ },
157
+ backward: {
158
+ width: 25,
159
+ height: 27,
160
+ 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"/>'
161
+ },
162
+ forward: {
163
+ width: 25,
164
+ height: 27,
165
+ 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"/>'
166
+ },
167
+ download: {
168
+ width: 25,
169
+ height: 27,
170
+ 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" />'
171
+ },
172
+ play: {
173
+ width: 62,
174
+ height: 62,
175
+ 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"/>'
176
+ },
177
+ pause: {
178
+ width: 22,
179
+ height: 22,
180
+ 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" />'
181
+ },
182
+ speedHalf: {
183
+ width: 25,
184
+ height: 27,
185
+ 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" />'
186
+ },
187
+ speedOne: {
188
+ width: 25,
189
+ height: 27,
190
+ 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"/>'
191
+ },
192
+ speedOneHalf: {
193
+ width: 25,
194
+ height: 27,
195
+ 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"/>'
196
+ },
197
+ speedTwo: {
198
+ width: 25,
199
+ height: 27,
200
+ 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"/>'
201
+ },
202
+ podcastBookmark: {
203
+ width: 25,
204
+ height: 27,
205
+ 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" />'
206
+ },
207
+ reaction: {
208
+ width: 16,
209
+ height: 16,
210
+ 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" />'
211
+ },
212
+ cross: {
213
+ width: 18,
214
+ height: 18,
215
+ 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" />'
216
+ },
217
+ link: {
218
+ width: 24,
219
+ height: 24,
220
+ 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" />'
221
+ },
222
+ search: {
223
+ width: 16,
224
+ height: 16,
225
+ 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>'
226
+ },
227
+ card: {
228
+ width: 15,
229
+ height: 15,
230
+ 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"/>'
231
+ },
232
+ podcast: {
233
+ width: 15,
234
+ height: 15,
235
+ 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" />'
236
+ },
237
+ arrow: {
238
+ width: 12,
239
+ height: 12,
240
+ 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" />'
241
+ },
242
+ brent: {
243
+ width: 9,
244
+ height: 12,
245
+ 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> '
246
+ },
247
+ user: {
248
+ width: 16,
249
+ height: 16,
250
+ 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" />'
251
+ },
252
+ bookmark: {
253
+ width: 17,
254
+ height: 21,
255
+ content: '<path d="M16 20l-7.5-6.333L1 20V1h15z" stroke="currentColor" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"/>'
256
+ },
257
+ receipt: {
258
+ width: 10,
259
+ height: 13,
260
+ 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>'
261
+ },
262
+ read: {
263
+ width: 15,
264
+ height: 15,
265
+ 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>'
266
+ },
267
+ listened: {
268
+ width: 15,
269
+ height: 15,
270
+ 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>'
271
+ }
272
+ };
273
+
274
+ var SvgSymbol = function SvgSymbol(_ref) {
275
+ var icon = _ref.icon,
276
+ size = _ref.size,
277
+ styleContext = _ref.styleContext;
278
+ var data = icons[icon];
279
+ return React__default.createElement("svg", {
280
+ "data-testid": "svg-symbol",
281
+ xmlns: "http://www.w3.org/2000/svg",
282
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
283
+ className: makeClassName([[styles$1.root, true], [styles$1[size], !!styles$1[size]], [styles$1[icon], !!styles$1[icon]], [styles$1[styleContext], !!styles$1[styleContext]]]),
284
+ width: data.width,
285
+ height: data.height,
286
+ viewBox: "0 0 " + data.width + " " + data.height,
287
+ dangerouslySetInnerHTML: {
288
+ __html: data.content
289
+ }
290
+ });
291
+ };
292
+
293
+ 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";
294
+ 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"};
295
+ styleInject(css_248z$2);
296
+
297
+ var Switcher = function Switcher(_ref) {
298
+ var enabled = _ref.enabled,
299
+ children = _ref.children,
300
+ _ref$childrenPosition = _ref.childrenPosition,
301
+ childrenPosition = _ref$childrenPosition === void 0 ? 'left' : _ref$childrenPosition,
302
+ onChange = _ref.onChange,
303
+ styleContext = _ref.styleContext,
304
+ _ref$theme = _ref.theme,
305
+ theme = _ref$theme === void 0 ? 'light' : _ref$theme;
306
+ return React__default.createElement("label", {
307
+ "data-testid": "switcher",
308
+ className: makeClassName([[styles$2.root, true], [styles$2[theme], !!styles$2[theme]], [styles$2[styleContext], !!styles$2[styleContext]]])
309
+ }, children && childrenPosition === 'left' && React__default.createElement("div", {
310
+ className: makeClassName([[styles$2.children, true], [styles$2.left, true]])
311
+ }, children), React__default.createElement("input", {
312
+ className: styles$2.input,
313
+ type: "checkbox",
314
+ checked: enabled,
315
+ onChange: onChange
316
+ }), React__default.createElement("span", {
317
+ className: styles$2.control
318
+ }, React__default.createElement("span", {
319
+ className: styles$2.knob
320
+ })), children && childrenPosition === 'right' && React__default.createElement("div", {
321
+ className: makeClassName([[styles$2.children, true], [styles$2.right, true]])
322
+ }, children));
323
+ };
324
+
325
+ var BlockContext = /*#__PURE__*/React__default.createContext({
326
+ lightBox: null
327
+ });
328
+ var BlockProvider = BlockContext.Provider;
329
+
330
+ var viewportSize = (function () {
331
+ return {
332
+ width: window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth,
333
+ height: window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
334
+ };
335
+ });
336
+
337
+ var MediaQuerySizes = {
338
+ MOBILE: 512,
339
+ PORTRAIT_TABLET: 768,
340
+ LANDSCAPE_TABLET: 1024,
341
+ DESKTOP: 1010,
342
+ WIDE_DESKTOP: 1200
343
+ };
344
+ var imageBreakpoints = {
345
+ 325: '(min-width: 0)',
346
+ 520: '(min-width: 325px)',
347
+ 600: '(min-width: 600px)',
348
+ 650: '(min-width: 650px)',
349
+ 980: '(min-width: 1000px)',
350
+ 1335: '(min-width: 1000px)'
351
+ };
352
+ var imageConditionalKeys = {
353
+ xs: [325],
354
+ superFull: [1335, 650, 520, 325],
355
+ full: [980, 650, 520, 325],
356
+ "default": [650, 520, 325],
357
+ narrow: [600, 325]
358
+ };
359
+
360
+ 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";
361
+ var styles$3 = {"root":"Lazy-module_root__2Z72l","visible":"Lazy-module_visible__3-SdX"};
362
+ styleInject(css_248z$3);
363
+
364
+ var Lazy = function Lazy(_ref) {
365
+ var children = _ref.children,
366
+ threshold = _ref.threshold;
367
+
368
+ var _useInView = reactIntersectionObserver.useInView({
369
+ threshold: threshold || 0
370
+ }),
371
+ ref = _useInView[0],
372
+ inView = _useInView[1],
373
+ entry = _useInView[2];
374
+
375
+ var _useState = React.useState(false),
376
+ visible = _useState[0],
377
+ setVisible = _useState[1];
378
+
379
+ React.useEffect(function () {
380
+ if (entry && entry.boundingClientRect && entry.boundingClientRect.y < 0) {
381
+ setVisible(true);
382
+ }
383
+ }, [entry]);
384
+ React.useEffect(function () {
385
+ if (inView) {
386
+ setVisible(true);
387
+ }
388
+ }, [inView]);
389
+ return React__default.createElement("div", {
390
+ className: makeClassName([[styles$3.root, true], [styles$3.visible, visible]]),
391
+ ref: ref,
392
+ "data-testid": "lazy"
393
+ }, visible && children);
394
+ };
395
+
396
+ var toCamel = function toCamel(s) {
397
+ return s.replace(/([_][a-z])/gi, function (str) {
398
+ return str.toUpperCase().replace('_', '');
399
+ });
400
+ };
401
+
402
+ var RenderPicture = function RenderPicture(_ref) {
403
+ var source = _ref.source,
404
+ fallbackSource = _ref.fallbackSource,
405
+ optimized = _ref.optimized,
406
+ alt = _ref.alt,
407
+ display = _ref.display;
408
+
409
+ var _useState = React.useState(false),
410
+ fallback = _useState[0],
411
+ setFallback = _useState[1];
412
+
413
+ React.useEffect(function () {
414
+ setFallback(!window.HTMLPictureElement);
415
+ }, []);
416
+ var keys = imageConditionalKeys[toCamel(display)] || imageConditionalKeys["default"];
417
+ return React__default.createElement("picture", null, source && React__default.createElement("source", {
418
+ media: "(min-width: 325px)",
419
+ srcSet: source[1] + " 2x"
420
+ }), optimized && !optimized.w325 && React__default.createElement("source", {
421
+ media: "(min-width: 0)",
422
+ srcSet: "" + optimized.original
423
+ }), optimized && keys.map(function (key) {
424
+ var breakpoint = optimized["w" + key];
425
+
426
+ if (!breakpoint) {
427
+ return null;
428
+ }
429
+
430
+ return React__default.createElement(React__default.Fragment, {
431
+ key: key
432
+ }, React__default.createElement("source", {
433
+ type: "image/webp",
434
+ media: imageBreakpoints[key],
435
+ srcSet: breakpoint['2x_webp'] + " 2x, " + breakpoint['1x_webp'] + " 1x "
436
+ }), React__default.createElement("source", {
437
+ type: "image/png",
438
+ media: imageBreakpoints[key],
439
+ srcSet: breakpoint['2x'] + " 2x, " + breakpoint['1x'] + " 1x "
440
+ }));
441
+ }), React__default.createElement("img", {
442
+ src: fallback ? fallbackSource : 'data:image/gif;base64,R0lGODlhAQABAPAAAPLy8gAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==',
443
+ alt: alt
444
+ }));
445
+ };
446
+
447
+ 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";
448
+ 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"};
449
+ styleInject(css_248z$4);
450
+
451
+ var Image = function Image(_ref) {
452
+ var alt = _ref.alt,
453
+ display = _ref.display,
454
+ optimized = _ref.optimized,
455
+ width = _ref.width,
456
+ height = _ref.height,
457
+ source = _ref.source,
458
+ lazy = _ref.lazy,
459
+ fullscreen = _ref.fullscreen,
460
+ ratio = _ref.ratio;
461
+
462
+ var _useContext = React.useContext(BlockContext),
463
+ lightBox = _useContext.lightBox;
464
+
465
+ var handleClick = function handleClick() {
466
+ var _viewportSize = viewportSize(),
467
+ viewportWidth = _viewportSize.width;
468
+
469
+ if (optimized && !optimized.original || !lightBox || viewportWidth >= MediaQuerySizes.LANDSCAPE_TABLET && !fullscreen) {
470
+ return;
471
+ }
472
+
473
+ postMessage('fullscreen_click', 'click');
474
+ lightBox.show(optimized, width, height, alt);
475
+ };
476
+
477
+ var pictureStyles = {
478
+ paddingBottom: 100 / (ratio || width / height) + "%"
479
+ };
480
+ var blockStyles = {
481
+ maxWidth: width <= 649 ? width : '100%'
482
+ };
483
+ /* fallback w325 url until w6 was released */
484
+
485
+ var fallbackSource = source && source[0] || optimized.w325 && optimized.w325['1x'] || optimized.original;
486
+ return React__default.createElement("div", {
487
+ className: makeClassName([[styles$4.root, true], [styles$4.fullscreen, fullscreen]]),
488
+ style: blockStyles,
489
+ "data-testid": "image"
490
+ }, React__default.createElement("div", {
491
+ className: styles$4.wrapper,
492
+ style: pictureStyles,
493
+ onClick: function onClick() {
494
+ return handleClick();
495
+ },
496
+ onKeyPress: function onKeyPress() {
497
+ return handleClick();
498
+ },
499
+ role: "button",
500
+ tabIndex: 0
501
+ }, lazy ? React__default.createElement(React__default.Fragment, null, React__default.createElement(Lazy, {
502
+ threshold: 0.25
503
+ }, React__default.createElement(RenderPicture, {
504
+ fallbackSource: fallbackSource,
505
+ source: source,
506
+ optimized: optimized,
507
+ alt: alt,
508
+ display: display
509
+ })), React__default.createElement("noscript", null, React__default.createElement("img", {
510
+ src: fallbackSource,
511
+ alt: alt
512
+ }))) : React__default.createElement(RenderPicture, {
513
+ fallbackSource: fallbackSource,
514
+ source: source,
515
+ optimized: optimized,
516
+ alt: alt,
517
+ display: display
518
+ })));
519
+ };
520
+
521
+ 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";
522
+ var styles$5 = {"root":"DotsOnImage-module_root__2XP3Q","dot":"DotsOnImage-module_dot__H1wua","popover":"DotsOnImage-module_popover__35Cpj","popoverTitle":"DotsOnImage-module_popoverTitle__343d8"};
523
+ styleInject(css_248z$5);
524
+
525
+ var DotsOnImage = function DotsOnImage(_ref) {
526
+ var block = _ref.block;
527
+ var optimized = block.optimized,
528
+ width = block.width,
529
+ height = block.height,
530
+ credit = block.credit,
531
+ display = block.display,
532
+ dots = block.dots;
533
+
534
+ var _useState = React.useState({
535
+ title: null,
536
+ body: null,
537
+ show: false,
538
+ id: null
539
+ }),
540
+ popover = _useState[0],
541
+ setPopover = _useState[1];
542
+
543
+ var handleDotClick = function handleDotClick(dot) {
544
+ var shouldShow = dot.id !== popover.id;
545
+ setPopover({
546
+ title: dot.title,
547
+ body: dot.body,
548
+ show: shouldShow,
549
+ id: shouldShow ? dot.id : null
550
+ });
551
+ };
552
+
553
+ return React__default.createElement("div", {
554
+ "data-testid": "dots-on-image",
555
+ className: makeClassName([[styles$5.root, true]])
556
+ }, React__default.createElement("div", {
557
+ className: styles$5.dots
558
+ }, dots.map(function (dot) {
559
+ return React__default.createElement("button", {
560
+ className: styles$5.dot,
561
+ type: "button",
562
+ key: dot.id,
563
+ style: {
564
+ top: dot.position.y + "%",
565
+ left: dot.position.x + "%",
566
+ backgroundColor: dot.icon.color
567
+ },
568
+ onClick: function onClick() {
569
+ return handleDotClick(dot);
570
+ }
571
+ }, dot.icon.type === 'svg' && React__default.createElement("div", {
572
+ className: styles$5.icon,
573
+ dangerouslySetInnerHTML: {
574
+ __html: dot.icon.svg_string
575
+ }
576
+ }), dot.icon.type === 'number' && dot.icon.number);
577
+ })), React__default.createElement("div", {
578
+ className: styles$5.image
579
+ }, React__default.createElement(Image, {
580
+ optimized: optimized,
581
+ width: width,
582
+ height: height,
583
+ alt: credit,
584
+ display: display
585
+ })), popover.show && React__default.createElement("div", {
586
+ className: styles$5.popover
587
+ }, React__default.createElement("div", {
588
+ className: styles$5.popoverTitle
589
+ }, popover.title), React__default.createElement("div", {
590
+ className: styles$5.popoverBody,
591
+ dangerouslySetInnerHTML: {
592
+ __html: popover.body
593
+ }
594
+ })));
595
+ };
596
+
597
+ var makeStyleContext = function makeStyleContext(classNames, styleContext, styles) {
598
+ var context = Array.isArray(styleContext) ? styleContext.filter(function (ctx) {
599
+ return styles[ctx];
600
+ }).map(function (ctx) {
601
+ return [[styles[ctx]], true];
602
+ }) : [[styles[styleContext], !!styleContext && !!styles[styleContext]]];
603
+ return classNames.concat(context);
604
+ };
605
+
606
+ 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";
607
+ 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"};
608
+ styleInject(css_248z$6);
609
+
610
+ var Tag = function Tag(_ref) {
611
+ var children = _ref.children,
612
+ _ref$size = _ref.size,
613
+ size = _ref$size === void 0 ? 'small' : _ref$size,
614
+ _ref$theme = _ref.theme,
615
+ theme = _ref$theme === void 0 ? 'gold' : _ref$theme,
616
+ styleContext = _ref.styleContext,
617
+ correlation = _ref.correlation,
618
+ onlyOn = _ref.onlyOn;
619
+ 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]]];
620
+
621
+ if (styleContext) {
622
+ classNames = makeStyleContext(classNames, styleContext, styles$6);
623
+ }
624
+
625
+ return React__default.createElement("div", {
626
+ "data-testid": "tag",
627
+ className: makeClassName(classNames)
628
+ }, children);
629
+ };
630
+
631
+ 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";
632
+ 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"};
633
+ styleInject(css_248z$7);
634
+
635
+ var MediaCaption = function MediaCaption(_ref) {
636
+ var credit = _ref.credit,
637
+ caption = _ref.caption,
638
+ styleContext = _ref.styleContext;
639
+ var classNames = [[styles$7.root, true]];
640
+
641
+ if (styleContext) {
642
+ classNames = makeStyleContext(classNames, styleContext, styles$7);
643
+ }
644
+
645
+ return React__default.createElement("div", {
646
+ "data-testid": "media-caption",
647
+ className: makeClassName(classNames)
648
+ }, caption && React__default.createElement("div", {
649
+ className: styles$7.caption,
650
+ dangerouslySetInnerHTML: {
651
+ __html: caption
652
+ }
653
+ }), credit && React__default.createElement("div", {
654
+ className: styles$7.credit,
655
+ dangerouslySetInnerHTML: {
656
+ __html: credit
657
+ }
658
+ }));
659
+ };
660
+
661
+ 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";
662
+ 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"};
663
+ styleInject(css_248z$8);
664
+
665
+ var Table = function Table(_ref) {
666
+ var styleContext = _ref.styleContext,
667
+ _ref$block = _ref.block,
668
+ rows = _ref$block.rows,
669
+ options = _ref$block.options,
670
+ display = _ref$block.display,
671
+ columnsWidth = _ref$block.columns_widths,
672
+ tableCredit = _ref$block.table_credit;
673
+ var colors = {
674
+ '#ffffff': 'white',
675
+ '#f5f5f5': 'gray',
676
+ '#feeeee': 'pink',
677
+ '#e6f3ff': 'blue',
678
+ '#fffde6': 'yellow',
679
+ '#fff9f2': 'orange',
680
+ '#e7f2ef': 'green',
681
+ '#f4f0f8': 'violet'
682
+ };
683
+ var classNames = [[styles$8.root, true], [styles$8[display], !!display && !!styles$8[display]]];
684
+
685
+ if (styleContext) {
686
+ classNames = makeStyleContext(classNames, styleContext, styles$8);
687
+ }
688
+
689
+ return React__default.createElement("div", {
690
+ "data-testid": "table",
691
+ className: makeClassName(classNames)
692
+ }, React__default.createElement("div", {
693
+ className: styles$8.wrapper
694
+ }, React__default.createElement("div", {
695
+ className: styles$8.table
696
+ }, React__default.createElement("div", {
697
+ className: styles$8.tracks
698
+ }, rows.map(function (row, i) {
699
+ return React__default.createElement("div", {
700
+ key: row.key,
701
+ className: styles$8.row
702
+ }, row.cells.map(function (cell, j) {
703
+ return React__default.createElement("div", {
704
+ key: cell.key,
705
+ 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]]),
706
+ dangerouslySetInnerHTML: {
707
+ __html: cell.val
708
+ }
709
+ });
710
+ }));
711
+ })))), tableCredit && React__default.createElement(MediaCaption, {
712
+ credit: tableCredit,
713
+ styleContext: styleContext
714
+ }));
715
+ };
716
+
717
+ 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";
718
+ 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-"};
719
+ styleInject(css_248z$9);
720
+
721
+ var MaterialNote = function MaterialNote(_ref) {
722
+ var data = _ref.block.data,
723
+ styleContext = _ref.styleContext;
724
+ var classNames = [[styles$9.root, true]];
725
+
726
+ if (styleContext) {
727
+ classNames = makeStyleContext(classNames, styleContext, styles$9);
728
+ }
729
+
730
+ return React__default.createElement("div", {
731
+ "data-testid": "material-note",
732
+ className: makeClassName(classNames)
733
+ }, data && data.map(function (item) {
734
+ return React__default.createElement("p", {
735
+ className: styles$9[item.type],
736
+ key: item.id,
737
+ dangerouslySetInnerHTML: {
738
+ __html: item.data
739
+ }
740
+ });
741
+ }));
742
+ };
743
+
744
+ 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";
745
+ 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"};
746
+ styleInject(css_248z$a);
747
+
748
+ var BookmarkButton = function BookmarkButton(_ref) {
749
+ var styleContext = _ref.styleContext,
750
+ theme = _ref.theme,
751
+ isInBookmarks = _ref.isInBookmarks,
752
+ _onClick = _ref.onClick;
753
+ var classNames = [[styles$a.root, true], [styles$a.isInBookmarks, isInBookmarks], [styles$a[theme], !!theme && !!styles$a[theme]]];
754
+
755
+ if (styleContext) {
756
+ classNames = makeStyleContext(classNames, styleContext, styles$a);
757
+ }
758
+
759
+ return React__default.createElement("div", {
760
+ "data-testid": "bookmark-button",
761
+ className: makeClassName(classNames)
762
+ }, React__default.createElement("button", {
763
+ className: styles$a.control,
764
+ onClick: function onClick() {
765
+ return _onClick();
766
+ },
767
+ type: "button"
768
+ }, React__default.createElement(SvgSymbol, {
769
+ icon: "bookmark",
770
+ size: "unset"
771
+ })));
772
+ };
773
+
774
+ 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";
775
+ var styles$b = {"root":"MaterialTitle-module_root__18ku-","primary":"MaterialTitle-module_primary__2Sfmx","secondary":"MaterialTitle-module_secondary__3uDp4"};
776
+ styleInject(css_248z$b);
777
+
778
+ var Primary = function Primary(_ref) {
779
+ var children = _ref.children;
780
+ return React__default.createElement("span", {
781
+ className: styles$b.primary
782
+ }, children);
783
+ };
784
+ var Secondary = function Secondary(_ref2) {
785
+ var children = _ref2.children;
786
+ return React__default.createElement("span", {
787
+ className: styles$b.secondary
788
+ }, children);
789
+ };
790
+ var MaterialTitle = function MaterialTitle(_ref3) {
791
+ var children = _ref3.children;
792
+ return React__default.createElement("h1", {
793
+ className: styles$b.root,
794
+ "data-testid": "material-title"
795
+ }, children);
796
+ };
797
+
798
+ 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";
799
+ var styles$c = {"root":"Dropdown-module_root__11PNk","active":"Dropdown-module_active__3IwAl","menu":"Dropdown-module_menu__3PIqD","isInAudioPanel":"Dropdown-module_isInAudioPanel__1zv7F"};
800
+ styleInject(css_248z$c);
801
+
802
+ var Menu = function Menu(_ref) {
803
+ var children = _ref.children;
804
+ return React__default.createElement("div", {
805
+ "data-testid": "dropdown",
806
+ className: styles$c.menu
807
+ }, children);
808
+ };
809
+ var Dropdown = function Dropdown(_ref2) {
810
+ var children = _ref2.children,
811
+ active = _ref2.active,
812
+ styleContext = _ref2.styleContext;
813
+ var classNames = [[styles$c.root, true], [styles$c.active, !!active && !!styles$c.active]];
814
+
815
+ if (styleContext) {
816
+ classNames = makeStyleContext(classNames, styleContext, styles$c);
817
+ }
818
+
819
+ return React__default.createElement("div", {
820
+ "data-testid": "dropdown",
821
+ className: makeClassName(classNames)
822
+ }, children);
823
+ };
824
+
825
+ 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";
826
+ 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"};
827
+ styleInject(css_248z$d);
828
+
829
+ var Toolbar = function Toolbar(_ref) {
830
+ var children = _ref.children,
831
+ styleContext = _ref.styleContext;
832
+ var classNames = [[styles$d.root, true]];
833
+
834
+ if (styleContext) {
835
+ classNames = makeStyleContext(classNames, styleContext, styles$d);
836
+ }
837
+
838
+ var renderItems = function renderItems() {
839
+ return React.Children.map(children, function (item, index) {
840
+ return React__default.createElement("li", {
841
+ className: styles$d.item,
842
+ key: index + "-" + item.props.type
843
+ }, React__default.cloneElement(item));
844
+ });
845
+ };
846
+
847
+ return React__default.createElement("div", {
848
+ "data-testid": "toolbar",
849
+ className: makeClassName(classNames)
850
+ }, React__default.createElement("ul", {
851
+ className: styles$d.list
852
+ }, renderItems()));
853
+ };
854
+
855
+ 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";
856
+ 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"};
857
+ styleInject(css_248z$e);
858
+
859
+ var Popover = function Popover(_ref) {
860
+ var children = _ref.children,
861
+ onClose = _ref.onClose;
862
+
863
+ var _useState = React.useState(true),
864
+ visible = _useState[0],
865
+ setVisible = _useState[1];
866
+
867
+ var handleClose = function handleClose() {
868
+ setVisible(false);
869
+ setTimeout(onClose, 350);
870
+ };
871
+
872
+ var handleScroll = function handleScroll() {
873
+ handleClose();
874
+ };
875
+
876
+ var escFunction = function escFunction(event) {
877
+ if (event.key === 'Escape') {
878
+ handleClose();
879
+ }
880
+ };
881
+
882
+ React.useEffect(function () {
883
+ window.addEventListener('keydown', escFunction, false);
884
+ window.addEventListener('scroll', handleScroll, false);
885
+ return function () {
886
+ window.removeEventListener('keydown', escFunction, false);
887
+ window.removeEventListener('scroll', handleScroll, false);
888
+ };
889
+ }, [visible]);
890
+ /* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */
891
+
892
+ return React__default.createElement("div", {
893
+ "data-testid": "popover",
894
+ className: makeClassName([[styles$e.root, true], [styles$e.visible, visible]])
895
+ }, React__default.createElement("div", {
896
+ className: styles$e.overlay,
897
+ onClick: function onClick() {
898
+ return handleClose();
899
+ }
900
+ }), React__default.createElement("div", {
901
+ className: styles$e.container
902
+ }, React__default.createElement("button", {
903
+ type: "button",
904
+ className: styles$e.dismiss,
905
+ onClick: function onClick() {
906
+ return handleClose();
907
+ },
908
+ "aria-label": "dismiss"
909
+ }), React__default.createElement("svg", {
910
+ width: "100%",
911
+ className: styles$e.background
912
+ }, React__default.createElement("defs", null, React__default.createElement("mask", {
913
+ id: "myMask",
914
+ x: "0",
915
+ y: "0",
916
+ width: "100%",
917
+ height: "100%"
918
+ }, React__default.createElement("rect", {
919
+ fill: "white",
920
+ y: "0",
921
+ width: "100%",
922
+ height: "100%",
923
+ x: "0"
924
+ }), React__default.createElement("svg", {
925
+ x: "50%",
926
+ overflow: "visible"
927
+ }, React__default.createElement("g", {
928
+ transform: "translate(-12 0)"
929
+ }, React__default.createElement("path", {
930
+ 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"
931
+ }))))), React__default.createElement("rect", {
932
+ fill: "#F7F7F7",
933
+ id: "base-mask",
934
+ mask: "url(#myMask)",
935
+ x: "0",
936
+ y: "0",
937
+ width: "100%",
938
+ height: "100%"
939
+ })), children));
940
+ };
941
+
942
+ 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";
943
+ 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"};
944
+ styleInject(css_248z$f);
945
+
946
+ var Meta = function Meta(_ref) {
947
+ var hasSource = _ref.hasSource,
948
+ theme = _ref.theme,
949
+ children = _ref.children,
950
+ onlyOn = _ref.onlyOn,
951
+ styleContext = _ref.styleContext;
952
+ var classNames = [[styles$f.root, true], [styles$f[theme], !!theme && !!styles$f[theme]], [styles$f[onlyOn], !!onlyOn], [styles$f.hasSource, hasSource]];
953
+
954
+ if (styleContext) {
955
+ classNames = makeStyleContext(classNames, styleContext, styles$f);
956
+ }
957
+
958
+ return React__default.createElement("div", {
959
+ "data-testid": "meta",
960
+ className: makeClassName(classNames)
961
+ }, children);
962
+ };
963
+
964
+ 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";
965
+ var styles$g = {"root":"Timestamp-module_root__coOvT"};
966
+ styleInject(css_248z$g);
967
+
968
+ var Timestamp = function Timestamp(_ref) {
969
+ var publishedAt = _ref.publishedAt,
970
+ _ref$locale = _ref.locale,
971
+ locale = _ref$locale === void 0 ? 'ru' : _ref$locale,
972
+ type = _ref.type;
973
+ var published;
974
+ var timeFormat = locale === 'ru' ? 'HH:mm, D MMMM YYYY' : 'h:mm a, MMMM D, YYYY';
975
+ var preparedPublishedAt = publishedAt * 1000;
976
+ dayjs.locale(locale);
977
+ dayjs.extend(relativeTime);
978
+
979
+ if (type === 'fromNow') {
980
+ published = dayjs(preparedPublishedAt).fromNow();
981
+ } else if (type === 'format') {
982
+ published = dayjs(preparedPublishedAt).format('HH:mm');
983
+ } else if (type === 'date') {
984
+ published = dayjs(preparedPublishedAt).format(timeFormat);
985
+ } else {
986
+ throw new Error('Unknown time type');
987
+ }
988
+
989
+ return React__default.createElement("time", {
990
+ "data-testid": "timestamp",
991
+ className: styles$g.root
992
+ }, published);
993
+ };
994
+
995
+ var DangerousHTML = function DangerousHTML(_ref) {
996
+ var _ref$className = _ref.className,
997
+ className = _ref$className === void 0 ? '' : _ref$className,
998
+ _ref$tagName = _ref.tagName,
999
+ TagName = _ref$tagName === void 0 ? 'div' : _ref$tagName,
1000
+ html = _ref.html;
1001
+ var element = React.useRef(null);
1002
+
1003
+ var _useState = React.useState(false),
1004
+ canRenderHtml = _useState[0],
1005
+ setCanRenderHtml = _useState[1];
1006
+
1007
+ React.useEffect(function () {
1008
+ setCanRenderHtml(true);
1009
+ }, []);
1010
+ var replaceScriptElementsRecursive = React.useCallback(function (node) {
1011
+ if (node.tagName === 'SCRIPT' && (!node.id || node.id.indexOf('script-') !== 0)) {
1012
+ var script = document.createElement('script');
1013
+ script.id = "script-" + Math.random().toString(16).slice(2);
1014
+ script.innerHTML = node.innerHTML;
1015
+ var attrs = node.attributes;
1016
+
1017
+ for (var i = 0; i < attrs.length; i += 1) {
1018
+ var _attrs$i = attrs[i],
1019
+ name = _attrs$i.name,
1020
+ value = _attrs$i.value;
1021
+ script.setAttribute(name, value);
1022
+ }
1023
+
1024
+ node.parentElement.replaceChild(script, node);
1025
+ } else {
1026
+ var _i = 0;
1027
+ var children = node.childNodes;
1028
+
1029
+ while (_i < children.length) {
1030
+ replaceScriptElementsRecursive(children[_i]);
1031
+ _i += 1;
1032
+ }
1033
+ }
1034
+ }, []);
1035
+ var prepareAnchors = React.useCallback(function () {
1036
+ var anchors = Array.from(element.current.querySelectorAll('a'));
1037
+ anchors.forEach(function (a) {
1038
+ a.setAttribute('target', '_blank');
1039
+ });
1040
+ }, []);
1041
+ React.useEffect(function () {
1042
+ if (canRenderHtml && html.indexOf('script') > -1 && element.current) {
1043
+ element.current.innerHTML = html;
1044
+ replaceScriptElementsRecursive(element.current);
1045
+ prepareAnchors();
1046
+ }
1047
+ }, [canRenderHtml, element, html]);
1048
+ return React__default.createElement(TagName // @ts-ignore
1049
+ , {
1050
+ // @ts-ignore
1051
+ ref: element,
1052
+ className: className,
1053
+ dangerouslySetInnerHTML: {
1054
+ __html: html
1055
+ }
1056
+ });
1057
+ };
1058
+
1059
+ 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";
1060
+ 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"};
1061
+ styleInject(css_248z$h);
1062
+
1063
+ var EmbedBlock = function EmbedBlock(_ref) {
1064
+ var block = _ref.block,
1065
+ _ref$block = _ref.block,
1066
+ data = _ref$block.data,
1067
+ _ref$block$data = _ref$block.data,
1068
+ display = _ref$block$data.display,
1069
+ onlyOn = _ref$block$data.only_on,
1070
+ provider = _ref$block$data.provider,
1071
+ cc = _ref$block$data.cc,
1072
+ optimized = _ref$block$data.optimized,
1073
+ small = _ref$block$data.small_url,
1074
+ large = _ref$block$data.large_url,
1075
+ styleContext = _ref.styleContext,
1076
+ children = _ref.children;
1077
+
1078
+ var _useState = React.useState(false),
1079
+ isPopoverShown = _useState[0],
1080
+ setIsPopoverShown = _useState[1];
1081
+
1082
+ var _useState2 = React.useState(false),
1083
+ videoFrozen = _useState2[0],
1084
+ setVideoFrozen = _useState2[1];
1085
+
1086
+ var videoElem = React.useRef(null);
1087
+ var wrapperElem = React.useRef(null);
1088
+
1089
+ var handleVideoTouch = function handleVideoTouch() {
1090
+ videoElem.current.play();
1091
+ setVideoFrozen(false);
1092
+ };
1093
+
1094
+ var handleVideoError = function handleVideoError() {
1095
+ var video = videoElem.current;
1096
+ video.setAttribute('poster', video.dataset.gif);
1097
+ setVideoFrozen(false);
1098
+ };
1099
+
1100
+ React.useEffect(function () {
1101
+ var video = videoElem.current;
1102
+
1103
+ if (block.type === 'gif' && video) {
1104
+ var _viewportSize = viewportSize(),
1105
+ viewportWidth = _viewportSize.width;
1106
+
1107
+ enableInlineVideo(video);
1108
+
1109
+ if (viewportWidth >= MediaQuerySizes.MOBILE) {
1110
+ video.setAttribute('autoplay', true);
1111
+ video.play();
1112
+ } else {
1113
+ setVideoFrozen(true);
1114
+ video.pause();
1115
+ video.addEventListener('touchstart', handleVideoTouch);
1116
+ }
1117
+
1118
+ video.addEventListener('error', handleVideoError);
1119
+ }
1120
+
1121
+ return function () {
1122
+ if (video) {
1123
+ video.removeEventListener('touchstart', handleVideoTouch);
1124
+ video.removeEventListener('error', handleVideoError);
1125
+ }
1126
+ };
1127
+ }, []);
1128
+
1129
+ var renderCC = function renderCC(context) {
1130
+ return React__default.createElement(MediaCaption, {
1131
+ credit: data.credit,
1132
+ caption: data.caption,
1133
+ styleContext: context || styleContext
1134
+ });
1135
+ };
1136
+
1137
+ var renderEmbed = function renderEmbed(style) {
1138
+ var html = block.data.html;
1139
+
1140
+ switch (block.type) {
1141
+ case 'gif':
1142
+ {
1143
+ return React__default.createElement("div", {
1144
+ className: styles$h.figure
1145
+ }, React__default.createElement("div", {
1146
+ className: styles$h.objectWrap,
1147
+ style: style,
1148
+ ref: wrapperElem,
1149
+ "data-frozen": videoFrozen
1150
+ }, React__default.createElement("video", {
1151
+ playsInline: true,
1152
+ muted: true,
1153
+ loop: true,
1154
+ autoPlay: true,
1155
+ preload: "metadata",
1156
+ "data-gif": block.data.gif_url,
1157
+ ref: videoElem
1158
+ }, React__default.createElement("source", {
1159
+ src: "https://meduza.io" + block.data.mp4_url,
1160
+ type: "video/mp4"
1161
+ }))));
1162
+ }
1163
+
1164
+ case 'image':
1165
+ {
1166
+ return React__default.createElement("div", {
1167
+ className: styles$h.figure
1168
+ }, (small || optimized) && React__default.createElement(Image, {
1169
+ fullscreen: block.data.fullscreen,
1170
+ source: !optimized && [small, large],
1171
+ optimized: block.data.optimized,
1172
+ width: block.data.width,
1173
+ height: block.data.height,
1174
+ alt: block.data.caption,
1175
+ display: block.data.display,
1176
+ lazy: block.data.lazy
1177
+ }));
1178
+ }
1179
+
1180
+ case 'game_embed':
1181
+ {
1182
+ return React__default.createElement("div", {
1183
+ className: styles$h.gameEmbed
1184
+ }, React__default.createElement("iframe", {
1185
+ src: block.data.game_src,
1186
+ id: block.data.game_id,
1187
+ title: "Game embed"
1188
+ }));
1189
+ }
1190
+
1191
+ default:
1192
+ {
1193
+ return React__default.createElement("div", {
1194
+ className: styles$h.object
1195
+ }, React__default.createElement("div", {
1196
+ className: styles$h.wrapper,
1197
+ style: style
1198
+ }, React__default.createElement(DangerousHTML, {
1199
+ className: styles$h.objectWrap,
1200
+ html: html
1201
+ })));
1202
+ }
1203
+ }
1204
+ };
1205
+
1206
+ var style = {};
1207
+ var isProportional; // @TODO: Разобраться зачем это было нужно
1208
+ // const className = Object.keys(styleContext)
1209
+ // .filter(key => key.startsWith('isIn') && styles[key])
1210
+ // .reduce((acc, key) => {
1211
+ // acc.push([styles[key], true])
1212
+ // return acc
1213
+ // }, [])
1214
+
1215
+ /* eslint-disable react/no-array-index-key, no-mixed-operators */
1216
+
1217
+ if (block.data.height && block.data.width) {
1218
+ style.paddingBottom = block.data.height / block.data.width * 100 + "%";
1219
+ style.height = 0;
1220
+ isProportional = true;
1221
+ }
1222
+
1223
+ 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]];
1224
+
1225
+ if (styleContext) {
1226
+ classNames = makeStyleContext(classNames, styleContext, styles$h);
1227
+ }
1228
+
1229
+ return React__default.createElement("figure", {
1230
+ className: makeClassName(classNames)
1231
+ }, children && React__default.createElement("div", {
1232
+ className: styles$h.object
1233
+ }, React__default.createElement("div", {
1234
+ className: styles$h.wrapper,
1235
+ style: style
1236
+ }, React__default.createElement("div", {
1237
+ className: styles$h.objectWrap
1238
+ }, children))), !children && renderEmbed(style), cc === 'default' && React__default.createElement("figcaption", null, renderCC()), cc === 'button' && React__default.createElement("button", {
1239
+ className: styles$h.control,
1240
+ type: "button",
1241
+ "aria-label": "Open",
1242
+ onClick: function onClick() {
1243
+ setIsPopoverShown(!isPopoverShown);
1244
+ }
1245
+ }), cc === 'button' && isPopoverShown && React__default.createElement(Popover, {
1246
+ onClose: function onClose() {
1247
+ setIsPopoverShown(false);
1248
+ }
1249
+ }, renderCC('isInPopover')));
1250
+ };
1251
+
1252
+ var IframeBlock = function IframeBlock(_ref) {
1253
+ var block = _ref.block,
1254
+ id = _ref.block.id,
1255
+ styleContext = _ref.styleContext,
1256
+ _ref$lang = _ref.lang,
1257
+ lang = _ref$lang === void 0 ? 'ru' : _ref$lang;
1258
+ var element = React.useRef(null);
1259
+
1260
+ var renderIframe = function renderIframe() {
1261
+ var rootEl = document.createElement('div');
1262
+ var contentEl = document.createElement('div');
1263
+ var scriptEl = document.createElement('script');
1264
+ var style = document.createElement('style');
1265
+ var range = document.createRange();
1266
+ range.setStart(contentEl, 0);
1267
+ contentEl.setAttribute('id', 'content');
1268
+ 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 ";
1269
+ style.type = 'text/css';
1270
+ 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; }';
1271
+ contentEl.appendChild(range.createContextualFragment(block.data.html));
1272
+ rootEl.appendChild(scriptEl);
1273
+ rootEl.appendChild(contentEl);
1274
+ contentEl.appendChild(style);
1275
+ var frame = element.current.querySelector('iframe').contentDocument;
1276
+ frame.open();
1277
+ frame.close();
1278
+ frame.documentElement.setAttribute('lang', lang);
1279
+ frame.body.appendChild(rootEl);
1280
+ };
1281
+
1282
+ React.useEffect(function () {
1283
+ renderIframe();
1284
+ }, []);
1285
+ return React__default.createElement(EmbedBlock, {
1286
+ block: block,
1287
+ styleContext: styleContext
1288
+ }, React__default.createElement("div", {
1289
+ ref: element,
1290
+ dangerouslySetInnerHTML: {
1291
+ __html: "<iframe id=" + id + " frameBorder=\"0\" scrolling=\"no\"></iframe>"
1292
+ }
1293
+ }));
1294
+ };
1295
+
1296
+ var EmbedBlockContainer = function EmbedBlockContainer(_ref) {
1297
+ var block = _ref.block,
1298
+ styleContext = _ref.styleContext,
1299
+ lang = _ref.lang;
1300
+
1301
+ if (block.data.wrap_with_iframe) {
1302
+ return React__default.createElement(IframeBlock, {
1303
+ block: block,
1304
+ styleContext: styleContext,
1305
+ lang: lang
1306
+ });
1307
+ }
1308
+
1309
+ return React__default.createElement(EmbedBlock, {
1310
+ block: block,
1311
+ styleContext: styleContext
1312
+ });
1313
+ };
1314
+
1315
+ 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";
1316
+ var styles$i = {"root":"QuoteBlock-module_root__2GrcC","center":"QuoteBlock-module_center__cTFNy"};
1317
+ styleInject(css_248z$i);
1318
+
1319
+ var QuoteBlock = function QuoteBlock(_ref) {
1320
+ var data = _ref.block.data,
1321
+ styleContext = _ref.styleContext;
1322
+ var classNames = [[styles$i.root, true]];
1323
+
1324
+ if (styleContext) {
1325
+ classNames = makeStyleContext(classNames, styleContext, styles$i);
1326
+ }
1327
+
1328
+ return React__default.createElement("div", {
1329
+ "data-testid": "quote-block",
1330
+ className: makeClassName(classNames)
1331
+ }, React__default.createElement("p", {
1332
+ dangerouslySetInnerHTML: {
1333
+ __html: data
1334
+ }
1335
+ }));
1336
+ };
1337
+
1338
+ 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";
1339
+ 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"};
1340
+ styleInject(css_248z$j);
1341
+
1342
+ var CardTitle = function CardTitle(_ref) {
1343
+ var _ref$block = _ref.block,
1344
+ onlyOn = _ref$block.only_on,
1345
+ index = _ref$block.index,
1346
+ text = _ref$block.text,
1347
+ styleContext = _ref.styleContext;
1348
+ return React__default.createElement("div", {
1349
+ "data-testid": "card-title",
1350
+ className: makeClassName([[styles$j.root, true], [styles$j[onlyOn], !!onlyOn], [styles$j[styleContext], !!styleContext && !!styles$j[styleContext]]])
1351
+ }, React__default.createElement("div", {
1352
+ className: styles$j.index
1353
+ }, index), React__default.createElement("h3", {
1354
+ className: styles$j.title
1355
+ }, text));
1356
+ };
1357
+
1358
+ 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";
1359
+ var styles$k = {"root":"ChapterBlock-module_root__1WyVn","subtitle":"ChapterBlock-module_subtitle__3TXll","mobile":"ChapterBlock-module_mobile__CiO0w","desktop":"ChapterBlock-module_desktop__tk1Nk"};
1360
+ styleInject(css_248z$k);
1361
+
1362
+ var ChapterBlock = function ChapterBlock(_ref) {
1363
+ var block = _ref.block,
1364
+ onlyOn = _ref.block.only_on,
1365
+ styleContext = _ref.styleContext;
1366
+ return React__default.createElement("div", {
1367
+ "data-testid": "chapter-block",
1368
+ className: makeClassName([[styles$k.root, true], [styles$k[onlyOn], !!onlyOn]])
1369
+ }, React__default.createElement(DangerousHTML, {
1370
+ className: makeClassName([[styles$k.subtitle, true], [styles$k[styleContext], !!styleContext && !!styles$k[styleContext]]]),
1371
+ html: block.data
1372
+ }));
1373
+ };
1374
+
1375
+ var generateGradient = function generateGradient(color) {
1376
+ 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]];
1377
+ var gradient = gradientSteps.map(function (i) {
1378
+ return "rgba(" + color + ", " + i[0] + ") " + i[1] + "%";
1379
+ });
1380
+ return "linear-gradient(-180deg, " + gradient + ")";
1381
+ };
1382
+
1383
+ 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";
1384
+ var styles$l = {"root":"Cover-module_root__18Z8J"};
1385
+ styleInject(css_248z$l);
1386
+
1387
+ 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";
1388
+ var styles$m = {"root":"SimpleTitle-module_root__2jVQN","mobile":"SimpleTitle-module_mobile__11gBz","desktop":"SimpleTitle-module_desktop__3yXgy"};
1389
+ styleInject(css_248z$m);
1390
+
1391
+ var SimpleTitle = function SimpleTitle(_ref) {
1392
+ var _ref$block = _ref.block,
1393
+ first = _ref$block.data.first,
1394
+ onlyOn = _ref$block.only_on,
1395
+ styleContext = _ref.styleContext;
1396
+ var classNames = [[styles$m.root, true], [styles$m[onlyOn], true]];
1397
+
1398
+ if (styleContext) {
1399
+ classNames = makeStyleContext(classNames, styleContext, styles$m);
1400
+ }
1401
+
1402
+ return React__default.createElement("div", {
1403
+ "data-testid": "simple-title",
1404
+ className: makeClassName(classNames)
1405
+ }, first);
1406
+ };
1407
+
1408
+ 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";
1409
+ 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"};
1410
+ styleInject(css_248z$n);
1411
+
1412
+ var RichTitle = function RichTitle(_ref) {
1413
+ var _ref$block = _ref.block,
1414
+ onlyOn = _ref$block.only_on,
1415
+ _ref$block$data = _ref$block.data,
1416
+ featured = _ref$block$data.featured,
1417
+ first = _ref$block$data.first,
1418
+ second = _ref$block$data.second,
1419
+ styleContext = _ref.styleContext;
1420
+ var classNames = [[styles$n.root, true], [styles$n[onlyOn], true], [styles$n.featured, !!featured]];
1421
+
1422
+ if (styleContext) {
1423
+ classNames = makeStyleContext(classNames, styleContext, styles$n);
1424
+ }
1425
+
1426
+ return React__default.createElement("h1", {
1427
+ "data-testid": "rich-title",
1428
+ className: makeClassName(classNames)
1429
+ }, first, second && React__default.createElement("span", null, " ", second));
1430
+ };
1431
+
1432
+ 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";
1433
+ 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"};
1434
+ styleInject(css_248z$o);
1435
+
1436
+ var SimpleBlock = function SimpleBlock(_ref) {
1437
+ var _ref$block = _ref.block,
1438
+ data = _ref$block.data,
1439
+ type = _ref$block.type,
1440
+ onlyOn = _ref$block.only_on,
1441
+ styleContext = _ref.styleContext;
1442
+ var tagName;
1443
+ var classNames = [[styles$o[type], !!type && !!styles$o[type]], [styles$o[onlyOn], true]];
1444
+
1445
+ if (styleContext) {
1446
+ classNames = makeStyleContext(classNames, styleContext, styles$o);
1447
+ }
1448
+
1449
+ switch (type) {
1450
+ case 'context_p':
1451
+ case 'lead':
1452
+ case 'note_caption':
1453
+ case 'note_credit':
1454
+ {
1455
+ tagName = 'p';
1456
+ break;
1457
+ }
1458
+
1459
+ case 'lead_hr':
1460
+ {
1461
+ tagName = 'div';
1462
+ break;
1463
+ }
1464
+
1465
+ default:
1466
+ tagName = type;
1467
+ }
1468
+
1469
+ return React__default.createElement(DangerousHTML, {
1470
+ className: makeClassName(classNames),
1471
+ html: data || '',
1472
+ tagName: tagName
1473
+ });
1474
+ };
1475
+
1476
+ 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";
1477
+ 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"};
1478
+ styleInject(css_248z$p);
1479
+
1480
+ var ListBlock = function ListBlock(_ref) {
1481
+ var _ref$block = _ref.block,
1482
+ type = _ref$block.type,
1483
+ data = _ref$block.data,
1484
+ onlyOn = _ref$block.only_on,
1485
+ styleContext = _ref.styleContext;
1486
+ var TagName = type;
1487
+ var classNames = [[styles$p.root, true], [styles$p[onlyOn], true], [styles$p[type], !!type && !!styles$p[type]]];
1488
+
1489
+ if (styleContext) {
1490
+ classNames = makeStyleContext(classNames, styleContext, styles$p);
1491
+ }
1492
+
1493
+ return React__default.createElement(TagName, {
1494
+ className: makeClassName(classNames)
1495
+ }, data.map(function (item, index) {
1496
+ return React__default.createElement(DangerousHTML, {
1497
+ key: index,
1498
+ html: item,
1499
+ tagName: "li"
1500
+ });
1501
+ }));
1502
+ };
1503
+
1504
+ 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";
1505
+ 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"};
1506
+ styleInject(css_248z$q);
1507
+
1508
+ var RelatedBlock = function RelatedBlock(_ref) {
1509
+ var _ref$block = _ref.block,
1510
+ _ref$block$data = _ref$block.data,
1511
+ title = _ref$block$data.title,
1512
+ related = _ref$block$data.related,
1513
+ onlyOn = _ref$block.only_on,
1514
+ styleContext = _ref.styleContext;
1515
+ var classNames = [[styles$q.root, true], [styles$q[onlyOn], true]];
1516
+
1517
+ if (styleContext) {
1518
+ classNames = makeStyleContext(classNames, styleContext, styles$q);
1519
+ }
1520
+
1521
+ return React__default.createElement("div", {
1522
+ "data-testid": "related-block",
1523
+ className: makeClassName(classNames)
1524
+ }, React__default.createElement("h3", {
1525
+ className: styles$q.header
1526
+ }, title), React__default.createElement("ul", {
1527
+ className: styles$q.items
1528
+ }, related.map(function (item, index) {
1529
+ return React__default.createElement("li", {
1530
+ key: item.id || index,
1531
+ className: styles$q[item.layout]
1532
+ }, React__default.createElement("a", {
1533
+ href: item.full_url || "/" + item.url,
1534
+ target: "_blank",
1535
+ rel: "noopener noreferrer"
1536
+ }, React__default.createElement("span", {
1537
+ className: styles$q.first
1538
+ }, item.title), item.second_title && ' ', item.second_title && React__default.createElement("span", null, item.second_title)));
1539
+ })));
1540
+ };
1541
+
1542
+ 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";
1543
+ 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"};
1544
+ styleInject(css_248z$r);
1545
+
1546
+ var SourceBlock = function SourceBlock(_ref) {
1547
+ var _ref$block = _ref.block,
1548
+ onlyOn = _ref$block.only_on,
1549
+ quote = _ref$block.quote,
1550
+ origin = _ref$block.origin,
1551
+ url = _ref$block.url,
1552
+ styleContext = _ref.styleContext;
1553
+ var classNames = [[styles$r.root, true], [styles$r[onlyOn], true]];
1554
+
1555
+ if (styleContext) {
1556
+ classNames = makeStyleContext(classNames, styleContext, styles$r);
1557
+ }
1558
+
1559
+ return React__default.createElement("blockquote", {
1560
+ "data-testid": "source-block",
1561
+ cite: url,
1562
+ className: makeClassName(classNames)
1563
+ }, React__default.createElement("a", {
1564
+ className: styles$r.text,
1565
+ href: url,
1566
+ target: "_blank",
1567
+ rel: "noopener noreferrer"
1568
+ }, quote.map(function (item, index) {
1569
+ return React__default.createElement(DangerousHTML, {
1570
+ key: index,
1571
+ html: item.data,
1572
+ tagName: "p"
1573
+ });
1574
+ }), React__default.createElement("footer", null, React__default.createElement("cite", {
1575
+ className: styles$r.origin
1576
+ }, origin))));
1577
+ };
1578
+
1579
+ 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";
1580
+ 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"};
1581
+ styleInject(css_248z$s);
1582
+
1583
+ var GroupedBlock = function GroupedBlock(_ref) {
1584
+ var block = _ref.block,
1585
+ onlyOn = _ref.block.only_on,
1586
+ styleContext = _ref.styleContext;
1587
+ var maxHeight = Math.min.apply(Math, block.data.map(function (item) {
1588
+ return item.data.height;
1589
+ }));
1590
+ var normalizedBoxesWidth = block.data.map(function (item) {
1591
+ return item.data.width / (item.data.height / maxHeight);
1592
+ });
1593
+ var sumWidth = normalizedBoxesWidth.reduce(function (sum, x) {
1594
+ return sum + x;
1595
+ });
1596
+ 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]]];
1597
+
1598
+ if (styleContext) {
1599
+ classNames = makeStyleContext(classNames, styleContext, styles$s);
1600
+ }
1601
+
1602
+ return React__default.createElement("div", {
1603
+ "data-testid": "grouped-block",
1604
+ className: makeClassName(classNames)
1605
+ }, React__default.createElement("div", {
1606
+ className: styles$s.items
1607
+ }, block.data.map(function (item, index) {
1608
+ var percentWidth = normalizedBoxesWidth[index] / sumWidth * 100;
1609
+ return React__default.createElement("div", {
1610
+ className: styles$s.item,
1611
+ key: item.id,
1612
+ style: {
1613
+ width: percentWidth + "%"
1614
+ }
1615
+ }, React__default.createElement(EmbedBlockContainer, {
1616
+ block: item,
1617
+ styleContext: "isInGroupedBlock"
1618
+ }));
1619
+ })), block.cc && React__default.createElement("figcaption", {
1620
+ className: styles$s.figcaption
1621
+ }, React__default.createElement(MediaCaption, {
1622
+ credit: block.credit,
1623
+ caption: block.caption,
1624
+ styleContext: styleContext
1625
+ })));
1626
+ };
1627
+
1628
+ 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";
1629
+ 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"};
1630
+ styleInject(css_248z$t);
1631
+
1632
+ var MetaItem = function MetaItem(_ref) {
1633
+ var hasSource = _ref.hasSource,
1634
+ type = _ref.type,
1635
+ children = _ref.children,
1636
+ bullets = _ref.bullets;
1637
+ var classNames = [[styles$t.root, true], [styles$t[type], !!type && !!styles$t[type]], [styles$t.hasSource, !!hasSource], [styles$t.hasBullets, !!bullets]];
1638
+ return React__default.createElement("div", {
1639
+ "data-testid": "meta-item",
1640
+ className: makeClassName(classNames)
1641
+ }, children);
1642
+ };
1643
+
1644
+ 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";
1645
+ 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"};
1646
+ styleInject(css_248z$u);
1647
+
1648
+ var MetaItemLive = function MetaItemLive(_ref) {
1649
+ var _ref$theme = _ref.theme,
1650
+ theme = _ref$theme === void 0 ? 'gold' : _ref$theme;
1651
+ var classNames = [[styles$u.root, true], [styles$u[theme], !!theme && styles$u[theme]]];
1652
+ return React__default.createElement("div", {
1653
+ "data-testid": "meta-item-live",
1654
+ "data-meta": "live",
1655
+ className: makeClassName(classNames)
1656
+ }, React__default.createElement("div", {
1657
+ className: styles$u.frame
1658
+ }));
1659
+ };
1660
+
1661
+ var pluralize = function pluralize(number, one, two, five) {
1662
+ var n = Math.abs(number);
1663
+ n %= 100;
1664
+
1665
+ if (n >= 5 && n <= 20) {
1666
+ return five;
1667
+ }
1668
+
1669
+ n %= 10;
1670
+
1671
+ if (n === 1) {
1672
+ return one;
1673
+ }
1674
+
1675
+ if (n >= 2 && n <= 4) {
1676
+ return two;
1677
+ }
1678
+
1679
+ return five;
1680
+ };
1681
+
1682
+ 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";
1683
+ var styles$v = {"root":"DocumentItemsCount-module_root__P3q-z","items":"DocumentItemsCount-module_items__3pfxW"};
1684
+ styleInject(css_248z$v);
1685
+
1686
+ var DocumentItemsCount = function DocumentItemsCount(_ref) {
1687
+ var type = _ref.type,
1688
+ _ref$lang = _ref.lang,
1689
+ lang = _ref$lang === void 0 ? 'ru' : _ref$lang,
1690
+ items = _ref.items,
1691
+ children = _ref.children;
1692
+ var i18n = {
1693
+ ru: {
1694
+ card: {
1695
+ one: 'карточка',
1696
+ two: 'карточки',
1697
+ five: 'карточек'
1698
+ },
1699
+ podcast: {
1700
+ one: 'эпизод',
1701
+ two: 'эпизода',
1702
+ five: 'эпизодов'
1703
+ }
1704
+ },
1705
+ en: {
1706
+ card: {
1707
+ one: 'card',
1708
+ two: 'cards',
1709
+ five: 'cards'
1710
+ },
1711
+ podcast: {
1712
+ one: 'episode',
1713
+ two: 'episodes',
1714
+ five: 'episodes'
1715
+ }
1716
+ }
1717
+ };
1718
+ var itemsCount = items + " " + pluralize(items, i18n[lang][type].one, i18n[lang][type].two, i18n[lang][type].five);
1719
+ return React__default.createElement("div", {
1720
+ "data-testid": "document-items-count",
1721
+ className: styles$v.root
1722
+ }, children, React__default.createElement("span", {
1723
+ className: styles$v.items
1724
+ }, itemsCount));
1725
+ };
1726
+
1727
+ var MetaContainer = function MetaContainer(_ref) {
1728
+ var lang = _ref.lang,
1729
+ block = _ref.block,
1730
+ isRead = _ref.isRead,
1731
+ isListened = _ref.isListened,
1732
+ bookmarkAction = _ref.bookmarkAction,
1733
+ isInBookmarks = _ref.isInBookmarks,
1734
+ _ref$block$data = _ref.block.data,
1735
+ components = _ref$block$data.components,
1736
+ theme = _ref$block$data.theme,
1737
+ styleContext = _ref.styleContext;
1738
+ var themeColor = styleContext && styleContext.indexOf('dark') !== -1 ? 'light' : 'unset';
1739
+ var isPodcast = styleContext && styleContext.indexOf('podcast') !== -1;
1740
+ var isSlides = styleContext && styleContext.indexOf('slide') !== -1;
1741
+ var hasSource = !!components.find(function (item) {
1742
+ return item.type === 'source_name';
1743
+ });
1744
+ return React__default.createElement(Meta, {
1745
+ styleContext: styleContext,
1746
+ theme: theme || themeColor,
1747
+ onlyOn: block.only_on,
1748
+ hasSource: hasSource
1749
+ }, components.map(function (component) {
1750
+ switch (component.type) {
1751
+ case 'source_name':
1752
+ {
1753
+ return React__default.createElement(MetaItem, {
1754
+ hasSource: hasSource,
1755
+ bullets: true,
1756
+ key: component.id
1757
+ }, React__default.createElement(React__default.Fragment, null, lang === 'ru' ? 'Источник: ' : 'Source: ', component.url && React__default.createElement("a", {
1758
+ href: component.url,
1759
+ rel: "noopener noreferrer",
1760
+ target: "_blank"
1761
+ }, component.text), !component.url && component.text));
1762
+ }
1763
+
1764
+ case 'duration':
1765
+ {
1766
+ return React__default.createElement(MetaItem, {
1767
+ hasSource: hasSource,
1768
+ bullets: true,
1769
+ key: component.id
1770
+ }, React__default.createElement(React__default.Fragment, null, React__default.createElement(SvgSymbol, {
1771
+ icon: "podcast",
1772
+ size: "small"
1773
+ }), component.text));
1774
+ }
1775
+
1776
+ case 'datetime':
1777
+ {
1778
+ return React__default.createElement(MetaItem, {
1779
+ hasSource: hasSource,
1780
+ bullets: true,
1781
+ key: component.id,
1782
+ type: "datetime"
1783
+ }, React__default.createElement(Timestamp, {
1784
+ publishedAt: component.datetime,
1785
+ type: "date",
1786
+ locale: lang
1787
+ }));
1788
+ }
1789
+
1790
+ case 'items_count':
1791
+ {
1792
+ return React__default.createElement(MetaItem, {
1793
+ hasSource: hasSource,
1794
+ bullets: true,
1795
+ key: component.id
1796
+ }, React__default.createElement(DocumentItemsCount, {
1797
+ items: component.count,
1798
+ type: isPodcast ? 'podcast' : 'card',
1799
+ lang: lang
1800
+ }, React__default.createElement(SvgSymbol, {
1801
+ icon: "card",
1802
+ size: "unset"
1803
+ })));
1804
+ }
1805
+
1806
+ case 'broadcast_active':
1807
+ {
1808
+ return React__default.createElement(MetaItem, {
1809
+ hasSource: hasSource,
1810
+ bullets: true,
1811
+ key: component.id
1812
+ }, React__default.createElement(React__default.Fragment, null, React__default.createElement(MetaItemLive, null), " \u041F\u0440\u044F\u043C\u043E\u0439 \u044D\u0444\u0438\u0440"));
1813
+ }
1814
+
1815
+ case 'broadcast':
1816
+ {
1817
+ return React__default.createElement(MetaItem, {
1818
+ hasSource: hasSource,
1819
+ bullets: true,
1820
+ key: component.id
1821
+ }, React__default.createElement(React__default.Fragment, null, component.with_icon && React__default.createElement(MetaItemLive, null), component.label));
1822
+ }
1823
+
1824
+ default:
1825
+ {
1826
+ return null;
1827
+ }
1828
+ }
1829
+ }), (isRead || isListened) && React__default.createElement(MetaItem, {
1830
+ hasSource: hasSource,
1831
+ bullets: true,
1832
+ type: isListened ? 'listened' : 'read'
1833
+ }, React__default.createElement(SvgSymbol, {
1834
+ icon: isListened ? 'listened' : 'read',
1835
+ size: "unset"
1836
+ })), isSlides && lang === 'ru' && React__default.createElement("div", {
1837
+ className: styles$f.bookmark
1838
+ }, React__default.createElement(BookmarkButton, {
1839
+ isInBookmarks: isInBookmarks,
1840
+ onClick: function onClick() {
1841
+ return bookmarkAction('bookmark', 'top');
1842
+ }
1843
+ })));
1844
+ };
1845
+
1846
+ var RenderBlocks = function RenderBlocks(_ref) {
1847
+ var block = _ref.block,
1848
+ styleContext = _ref.styleContext,
1849
+ lang = _ref.lang,
1850
+ isRead = _ref.isRead,
1851
+ isListened = _ref.isListened,
1852
+ bookmarkAction = _ref.bookmarkAction,
1853
+ isInBookmarks = _ref.isInBookmarks;
1854
+
1855
+ switch (block.type) {
1856
+ case 'tag':
1857
+ {
1858
+ return React__default.createElement(Tag, {
1859
+ size: "large",
1860
+ onlyOn: block.only_on,
1861
+ theme: block.data.theme,
1862
+ styleContext: styleContext
1863
+ }, block.data.text);
1864
+ }
1865
+
1866
+ case 'simple_title':
1867
+ {
1868
+ return React__default.createElement(SimpleTitle, {
1869
+ block: block,
1870
+ styleContext: styleContext
1871
+ });
1872
+ }
1873
+
1874
+ case 'rich_title':
1875
+ {
1876
+ return React__default.createElement(RichTitle, {
1877
+ block: block,
1878
+ styleContext: styleContext
1879
+ });
1880
+ }
1881
+
1882
+ case 'meta':
1883
+ {
1884
+ return React__default.createElement(MetaContainer, {
1885
+ block: block,
1886
+ lang: block.data.lang,
1887
+ styleContext: styleContext,
1888
+ isRead: isRead,
1889
+ isListened: isListened,
1890
+ isInBookmarks: isInBookmarks,
1891
+ bookmarkAction: bookmarkAction
1892
+ });
1893
+ }
1894
+
1895
+ case 'h1':
1896
+ case 'h2':
1897
+ case 'h3':
1898
+ case 'h4':
1899
+ case 'blockquote':
1900
+ case 'p':
1901
+ case 'context_p':
1902
+ case 'lead':
1903
+ case 'lead_hr':
1904
+ {
1905
+ return React__default.createElement(SimpleBlock, {
1906
+ block: block,
1907
+ styleContext: styleContext
1908
+ });
1909
+ }
1910
+
1911
+ case 'quote':
1912
+ return React__default.createElement(QuoteBlock, {
1913
+ block: block,
1914
+ styleContext: styleContext
1915
+ });
1916
+
1917
+ case 'ol':
1918
+ case 'ul':
1919
+ {
1920
+ return React__default.createElement(ListBlock, {
1921
+ block: block,
1922
+ styleContext: styleContext
1923
+ });
1924
+ }
1925
+
1926
+ case 'chapter-subtitle':
1927
+ {
1928
+ return React__default.createElement(ChapterBlock, {
1929
+ block: block,
1930
+ styleContext: styleContext
1931
+ });
1932
+ }
1933
+
1934
+ case 'card_title':
1935
+ {
1936
+ return React__default.createElement(CardTitle, {
1937
+ block: block,
1938
+ styleContext: styleContext
1939
+ });
1940
+ }
1941
+
1942
+ case 'related':
1943
+ {
1944
+ return React__default.createElement(RelatedBlock, {
1945
+ block: block,
1946
+ styleContext: styleContext
1947
+ });
1948
+ }
1949
+
1950
+ case 'source':
1951
+ return React__default.createElement(SourceBlock, {
1952
+ block: block,
1953
+ styleContext: styleContext
1954
+ });
1955
+
1956
+ case 'table':
1957
+ return React__default.createElement(Table, {
1958
+ block: block,
1959
+ styleContext: styleContext
1960
+ });
1961
+
1962
+ case 'embed':
1963
+ case 'embed_code':
1964
+ case 'game_embed':
1965
+ case 'image':
1966
+ case 'gif':
1967
+ return React__default.createElement(EmbedBlockContainer, {
1968
+ block: block,
1969
+ styleContext: styleContext,
1970
+ lang: lang
1971
+ });
1972
+
1973
+ case 'grouped':
1974
+ return React__default.createElement(GroupedBlock, {
1975
+ block: block,
1976
+ styleContext: styleContext
1977
+ });
1978
+
1979
+ case 'material_note':
1980
+ return React__default.createElement(MaterialNote, {
1981
+ block: block,
1982
+ styleContext: styleContext
1983
+ });
1984
+
1985
+ default:
1986
+ {
1987
+ return null;
1988
+ }
1989
+ }
1990
+ };
1991
+
1992
+ var Cover = function Cover(_ref) {
1993
+ var _ref$block = _ref.block,
1994
+ onlyOn = _ref$block.only_on,
1995
+ _ref$block$data = _ref$block.data,
1996
+ blocks = _ref$block$data.blocks,
1997
+ _ref$block$data$cover = _ref$block$data.cover,
1998
+ credit = _ref$block$data$cover.credit,
1999
+ caption = _ref$block$data$cover.caption,
2000
+ urls = _ref$block$data$cover.urls,
2001
+ mobileRatio = _ref$block$data$cover.mobile_ratio,
2002
+ gradients = _ref$block$data$cover.gradients,
2003
+ cc = _ref$block$data$cover.cc,
2004
+ styleContext = _ref.styleContext;
2005
+
2006
+ var _useState = React.useState(false),
2007
+ isPopoverShown = _useState[0],
2008
+ setIsPopoverShown = _useState[1];
2009
+
2010
+ var style = {};
2011
+ var theme;
2012
+ var classNames = [[styles$l.root, true], [styles$l[theme], true], [styles$l[onlyOn], !!onlyOn && !!styles$l[onlyOn]]];
2013
+
2014
+ if (styleContext) {
2015
+ classNames = makeStyleContext(classNames, styleContext, styles$l);
2016
+ }
2017
+
2018
+ if (gradients) {
2019
+ theme = gradients.text_rgb === '0,0,0' ? 'dark' : 'light';
2020
+ style.backgroundImage = generateGradient(gradients.bg_rgb);
2021
+ }
2022
+
2023
+ var renderCC = function renderCC(context) {
2024
+ return React__default.createElement(MediaCaption, {
2025
+ credit: credit,
2026
+ caption: caption,
2027
+ styleContext: context || styleContext
2028
+ });
2029
+ };
2030
+
2031
+ return React__default.createElement("div", {
2032
+ "data-testid": "cover",
2033
+ className: makeClassName(classNames)
2034
+ }, React__default.createElement("div", {
2035
+ className: styles$l.image
2036
+ }, React__default.createElement(Image, {
2037
+ optimized: urls,
2038
+ ratio: mobileRatio,
2039
+ display: "narrow"
2040
+ })), React__default.createElement("div", {
2041
+ className: styles$l.body,
2042
+ style: style
2043
+ }, blocks.map(function (item) {
2044
+ return React__default.createElement(RenderBlocks, {
2045
+ key: item.id,
2046
+ block: item,
2047
+ styleContext: styleContext
2048
+ });
2049
+ })), cc === 'button' && React__default.createElement("button", {
2050
+ className: styles$l.control,
2051
+ type: "button",
2052
+ "aria-label": "Open",
2053
+ onClick: function onClick() {
2054
+ setIsPopoverShown(!isPopoverShown);
2055
+ }
2056
+ }), cc === 'button' && isPopoverShown && React__default.createElement(Popover, {
2057
+ onClose: function onClose() {
2058
+ setIsPopoverShown(false);
2059
+ }
2060
+ }, renderCC('isInPopover')));
2061
+ };
2062
+
2063
+ 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";
2064
+ 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"};
2065
+ styleInject(css_248z$w);
2066
+
2067
+ var HalfBlock = function HalfBlock(_ref) {
2068
+ var _ref$block = _ref.block,
2069
+ onlyOn = _ref$block.only_on,
2070
+ data = _ref$block.data,
2071
+ _ref$block$data$cover = _ref$block.data.cover,
2072
+ optimized = _ref$block$data$cover.optimized,
2073
+ ratio = _ref$block$data$cover.ratio,
2074
+ credit = _ref$block$data$cover.credit,
2075
+ caption = _ref$block$data$cover.caption,
2076
+ styleContext = _ref.styleContext;
2077
+ var classNames = [[styles$w.root, true], [styles$w[onlyOn], true]];
2078
+
2079
+ if (styleContext) {
2080
+ classNames = makeStyleContext(classNames, styleContext, styles$w);
2081
+ }
2082
+
2083
+ return React__default.createElement("div", {
2084
+ "data-testid": "half-block",
2085
+ className: makeClassName(classNames)
2086
+ }, React__default.createElement("div", {
2087
+ className: styles$w.main
2088
+ }, React__default.createElement("div", {
2089
+ className: styles$w.image
2090
+ }, React__default.createElement(Image, {
2091
+ optimized: optimized,
2092
+ ratio: ratio,
2093
+ display: "super_full"
2094
+ })), React__default.createElement("div", {
2095
+ className: styles$w.body
2096
+ }, data.blocks.map(function (item) {
2097
+ return React__default.createElement(RenderBlocks, {
2098
+ key: item.id,
2099
+ block: item,
2100
+ styleContext: ['rich']
2101
+ });
2102
+ }))), React__default.createElement("div", {
2103
+ className: styles$w.footer
2104
+ }, React__default.createElement(MediaCaption, {
2105
+ credit: credit,
2106
+ caption: caption,
2107
+ styleContext: styleContext
2108
+ })));
2109
+ };
2110
+
2111
+ 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";
2112
+ var styles$x = {"root":"ImportantLead-module_root__2BdT3","slide":"ImportantLead-module_slide__3kQ9x","mobile":"ImportantLead-module_mobile__3BXbm","desktop":"ImportantLead-module_desktop__3Zljc"};
2113
+ styleInject(css_248z$x);
2114
+
2115
+ var ImportantLead = function ImportantLead(_ref) {
2116
+ var _ref$block = _ref.block,
2117
+ onlyOn = _ref$block.only_on,
2118
+ data = _ref$block.data,
2119
+ styleContext = _ref.styleContext;
2120
+ var classNames = [[styles$x.root, true], [styles$x[onlyOn], !!onlyOn]];
2121
+
2122
+ if (styleContext) {
2123
+ classNames = makeStyleContext(classNames, styleContext, styles$x);
2124
+ }
2125
+
2126
+ return React__default.createElement("div", {
2127
+ "data-testid": "important-lead",
2128
+ className: makeClassName(classNames)
2129
+ }, data.map(function (item) {
2130
+ return React__default.createElement(RenderBlocks, {
2131
+ key: item.id,
2132
+ block: item,
2133
+ styleContext: "isInImportantLead"
2134
+ });
2135
+ }));
2136
+ };
2137
+
2138
+ var POST_MESSAGE_PREFIX = 'mdzKitMsg';
2139
+
2140
+ var postMessage$1 = function postMessage(element, action) {
2141
+ var target = window.top;
2142
+ var msg = POST_MESSAGE_PREFIX + "=" + JSON.stringify({
2143
+ element: element,
2144
+ action: action
2145
+ });
2146
+
2147
+ if (typeof target !== 'undefined') {
2148
+ target.postMessage(msg, '*');
2149
+ }
2150
+ };
2151
+
2152
+ 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";
2153
+ 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"};
2154
+ styleInject(css_248z$y);
2155
+
2156
+ var Spoiler = function Spoiler(_ref) {
2157
+ var _ref$block = _ref.block,
2158
+ display = _ref$block.display,
2159
+ button = _ref$block.button,
2160
+ onlyOn = _ref$block.only_on,
2161
+ buttonTitle = _ref$block.btn_title,
2162
+ title = _ref$block.title,
2163
+ blocks = _ref$block.blocks,
2164
+ styleContext = _ref.styleContext;
2165
+
2166
+ var _useState = React.useState(false),
2167
+ spoiled = _useState[0],
2168
+ setSpoiled = _useState[1];
2169
+
2170
+ var ref = React.useRef(null);
2171
+
2172
+ var handleButtonClick = function handleButtonClick() {
2173
+ setSpoiled(!spoiled);
2174
+
2175
+ if (spoiled) {
2176
+ postMessage$1('closeSpoiler', 'click');
2177
+ var rect = ref.current.getBoundingClientRect();
2178
+
2179
+ if (rect.top < 0) {
2180
+ ref.current.scrollIntoView({
2181
+ behavior: 'smooth'
2182
+ });
2183
+ }
2184
+ } else {
2185
+ postMessage$1('openSpoiler', 'click');
2186
+ }
2187
+ };
2188
+
2189
+ var classNames = [[styles$y.root, true], [styles$y[onlyOn], !!onlyOn], [styles$y[display], !!display && styles$y[display]], [[styles$y.spoiled], !!spoiled]];
2190
+
2191
+ if (styleContext) {
2192
+ classNames = makeStyleContext(classNames, styleContext, styles$y);
2193
+ }
2194
+
2195
+ var buttonCollapse = button ? button.collapse : 'Свернуть';
2196
+ var buttonExpande = button ? button.expand : buttonTitle;
2197
+ return React__default.createElement("div", {
2198
+ ref: ref,
2199
+ className: makeClassName(classNames),
2200
+ "data-testid": "spoiler"
2201
+ }, React__default.createElement("div", {
2202
+ className: styles$y.header
2203
+ }, title && React__default.createElement("h3", null, title)), React__default.createElement("div", {
2204
+ className: styles$y.body
2205
+ }, blocks.map(function (item) {
2206
+ return React__default.createElement(RenderBlocks, {
2207
+ key: item.id,
2208
+ block: item,
2209
+ styleContext: styleContext
2210
+ });
2211
+ })), React__default.createElement("div", {
2212
+ className: styles$y.footer
2213
+ }, React__default.createElement(Button, {
2214
+ size: "default",
2215
+ theme: "gray",
2216
+ onClick: function onClick() {
2217
+ return handleButtonClick();
2218
+ },
2219
+ styleContext: "isInSpoiler"
2220
+ }, spoiled ? buttonCollapse : buttonExpande, React__default.createElement(SvgSymbol, {
2221
+ icon: "arrow"
2222
+ }))));
2223
+ };
2224
+
2225
+ var RawHtmlBlock = function RawHtmlBlock(_ref) {
2226
+ var block = _ref.block,
2227
+ styleContext = _ref.styleContext,
2228
+ isRead = _ref.isRead,
2229
+ isListened = _ref.isListened,
2230
+ isInBookmarks = _ref.isInBookmarks,
2231
+ bookmarkAction = _ref.bookmarkAction,
2232
+ lightBox = _ref.lightBox;
2233
+ var context = {
2234
+ lightBox: lightBox || null
2235
+ };
2236
+
2237
+ switch (block.type) {
2238
+ case 'important_lead':
2239
+ {
2240
+ return React__default.createElement(ImportantLead, {
2241
+ block: block,
2242
+ styleContext: styleContext
2243
+ });
2244
+ }
2245
+
2246
+ case 'spoiler':
2247
+ {
2248
+ return React__default.createElement(Spoiler, {
2249
+ block: block,
2250
+ styleContext: styleContext
2251
+ });
2252
+ }
2253
+
2254
+ case 'cover':
2255
+ {
2256
+ return React__default.createElement(Cover, {
2257
+ block: block,
2258
+ styleContext: styleContext
2259
+ });
2260
+ }
2261
+
2262
+ case 'half':
2263
+ {
2264
+ return React__default.createElement(HalfBlock, {
2265
+ block: block,
2266
+ styleContext: styleContext
2267
+ });
2268
+ }
2269
+
2270
+ default:
2271
+ {
2272
+ return React__default.createElement(BlockProvider, {
2273
+ value: context
2274
+ }, React__default.createElement(RenderBlocks, {
2275
+ block: block,
2276
+ styleContext: styleContext,
2277
+ isRead: isRead,
2278
+ isListened: isListened,
2279
+ isInBookmarks: isInBookmarks,
2280
+ bookmarkAction: bookmarkAction
2281
+ }));
2282
+ }
2283
+ }
2284
+ };
2285
+
2286
+ 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";
2287
+ 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"};
2288
+ styleInject(css_248z$z);
2289
+
2290
+ var ToolbarButton = function ToolbarButton(_ref) {
2291
+ var children = _ref.children,
2292
+ type = _ref.type,
2293
+ theme = _ref.theme,
2294
+ isActive = _ref.isActive,
2295
+ _onClick = _ref.onClick;
2296
+ var classNames = [[styles$z.root, true], [styles$z[type], !!styles$z[type]], [styles$z[theme], !!styles$z[theme] && !!theme], [styles$z.isActive, !!isActive]];
2297
+ return React__default.createElement("button", {
2298
+ "data-testid": "toolbar-button",
2299
+ className: makeClassName(classNames),
2300
+ type: "button",
2301
+ onClick: function onClick() {
2302
+ return _onClick(type);
2303
+ }
2304
+ }, React__default.createElement(SvgSymbol, {
2305
+ size: "medium",
2306
+ icon: type,
2307
+ styleContext: "isInToolbar"
2308
+ }), children && React__default.createElement("span", {
2309
+ className: styles$z.text
2310
+ }, children));
2311
+ };
2312
+
2313
+ exports.BookmarkButton = BookmarkButton;
106
2314
  exports.Button = Button;
2315
+ exports.CardTitle = CardTitle;
2316
+ exports.ChapterBlock = ChapterBlock;
2317
+ exports.Cover = Cover;
2318
+ exports.DocumentItemsCount = DocumentItemsCount;
2319
+ exports.DotsOnImage = DotsOnImage;
2320
+ exports.Dropdown = Dropdown;
2321
+ exports.EmbedBlockContainer = EmbedBlockContainer;
2322
+ exports.GroupedBlock = GroupedBlock;
2323
+ exports.HalfBlock = HalfBlock;
2324
+ exports.Image = Image;
2325
+ exports.ImportantLead = ImportantLead;
2326
+ exports.Lazy = Lazy;
2327
+ exports.ListBlock = ListBlock;
2328
+ exports.MaterialNote = MaterialNote;
2329
+ exports.MaterialTitle = MaterialTitle;
2330
+ exports.MediaCaption = MediaCaption;
2331
+ exports.Menu = Menu;
2332
+ exports.Meta = Meta;
2333
+ exports.MetaItem = MetaItem;
2334
+ exports.MetaItemLive = MetaItemLive;
2335
+ exports.Popover = Popover;
2336
+ exports.Primary = Primary;
2337
+ exports.QuoteBlock = QuoteBlock;
2338
+ exports.RawHtmlBlock = RawHtmlBlock;
2339
+ exports.RelatedBlock = RelatedBlock;
2340
+ exports.RenderBlocks = RenderBlocks;
2341
+ exports.RichTitle = RichTitle;
2342
+ exports.Secondary = Secondary;
2343
+ exports.SimpleBlock = SimpleBlock;
2344
+ exports.SimpleTitle = SimpleTitle;
2345
+ exports.SourceBlock = SourceBlock;
2346
+ exports.Spoiler = Spoiler;
2347
+ exports.SvgSymbol = SvgSymbol;
2348
+ exports.Switcher = Switcher;
2349
+ exports.Table = Table;
2350
+ exports.Tag = Tag;
2351
+ exports.Timestamp = Timestamp;
2352
+ exports.Toolbar = Toolbar;
2353
+ exports.ToolbarButton = ToolbarButton;
107
2354
  //# sourceMappingURL=ui-kit-2.cjs.development.js.map