@quintype/arrow 3.15.1-perf.3 → 3.15.1-perf.7

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 (611) hide show
  1. package/cjs/index.js +14589 -0
  2. package/esm/components/Atoms/AdPlaceholder/ads.m.css +13 -0
  3. package/esm/components/Atoms/AdPlaceholder/index.js +28 -0
  4. package/esm/components/Atoms/Author/README.md +19 -0
  5. package/esm/components/Atoms/Author/author.m.css +65 -0
  6. package/esm/components/Atoms/Author/index.js +109 -0
  7. package/esm/components/Atoms/Author/stories.js +28 -0
  8. package/esm/components/Atoms/AuthorCard/README.md +47 -0
  9. package/esm/components/Atoms/AuthorCard/author-card.m.css +174 -0
  10. package/esm/components/Atoms/AuthorCard/author-card.test.js +93 -0
  11. package/esm/components/Atoms/AuthorCard/index.js +133 -0
  12. package/esm/components/Atoms/AuthorCard/stories.js +68 -0
  13. package/esm/components/Atoms/AuthorImage/README.md +31 -0
  14. package/esm/components/Atoms/AuthorImage/author-image.m.css +53 -0
  15. package/esm/components/Atoms/AuthorImage/index.js +69 -0
  16. package/esm/components/Atoms/AuthorImage/stories.js +26 -0
  17. package/esm/components/Atoms/AuthorWithTimestamp/README.md +12 -0
  18. package/esm/components/Atoms/AuthorWithTimestamp/author-with-timestamp.m.css +42 -0
  19. package/esm/components/Atoms/AuthorWithTimestamp/index.js +95 -0
  20. package/esm/components/Atoms/AuthorWithTimestamp/stories.js +22 -0
  21. package/esm/components/Atoms/BulletPoint/README.md +9 -0
  22. package/esm/components/Atoms/BulletPoint/bullet-point.m.css +14 -0
  23. package/esm/components/Atoms/BulletPoint/index.js +27 -0
  24. package/esm/components/Atoms/BulletPoint/stories.js +9 -0
  25. package/esm/components/Atoms/CaptionAttribution/README.md +15 -0
  26. package/esm/components/Atoms/CaptionAttribution/caption-attribution.m.css +40 -0
  27. package/esm/components/Atoms/CaptionAttribution/caption-attribution.test.js +50 -0
  28. package/esm/components/Atoms/CaptionAttribution/index.js +66 -0
  29. package/esm/components/Atoms/CaptionAttribution/stories.js +47 -0
  30. package/esm/components/Atoms/CollectionName/README.md +11 -0
  31. package/esm/components/Atoms/CollectionName/collection-name.m.css +94 -0
  32. package/esm/components/Atoms/CollectionName/index.js +152 -0
  33. package/esm/components/Atoms/CollectionName/stories.js +41 -0
  34. package/esm/components/Atoms/Divider/__snapshots__/divider.test.js.snap +18 -0
  35. package/esm/components/Atoms/Divider/divider.m.css +6 -0
  36. package/esm/components/Atoms/Divider/divider.test.js +9 -0
  37. package/esm/components/Atoms/Divider/index.js +34 -0
  38. package/esm/components/Atoms/Dot/dot.js +39 -0
  39. package/esm/components/Atoms/Dot/dot.m.css +6 -0
  40. package/esm/components/Atoms/ExtendedLoadMore/README.md +9 -0
  41. package/esm/components/Atoms/ExtendedLoadMore/__snapshots__/extended-load-more.test.js.snap +11 -0
  42. package/esm/components/Atoms/ExtendedLoadMore/extended-load-more.test.js +14 -0
  43. package/esm/components/Atoms/ExtendedLoadMore/index.js +183 -0
  44. package/esm/components/Atoms/FallbackImage/fallback.m.css +33 -0
  45. package/esm/components/Atoms/FallbackImage/index.js +29 -0
  46. package/esm/components/Atoms/Headline/README.md +7 -0
  47. package/esm/components/Atoms/Headline/headline.m.css +26 -0
  48. package/esm/components/Atoms/Headline/index.js +97 -0
  49. package/esm/components/Atoms/Headline/stories.js +39 -0
  50. package/esm/components/Atoms/HeroImage/README.md +13 -0
  51. package/esm/components/Atoms/HeroImage/hero-image.m.css +72 -0
  52. package/esm/components/Atoms/HeroImage/index.js +175 -0
  53. package/esm/components/Atoms/HeroImage/stories.js +23 -0
  54. package/esm/components/Atoms/Hyperlink/hyperlink.m.css +10 -0
  55. package/esm/components/Atoms/Hyperlink/index.js +20 -0
  56. package/esm/components/Atoms/LoadMoreTarget/index.js +24 -0
  57. package/esm/components/Atoms/Loadmore/README.md +0 -0
  58. package/esm/components/Atoms/Loadmore/__snapshots__/load-more.test.js.snap +25 -0
  59. package/esm/components/Atoms/Loadmore/index.js +61 -0
  60. package/esm/components/Atoms/Loadmore/load-more.m.css +23 -0
  61. package/esm/components/Atoms/Loadmore/load-more.test.js +26 -0
  62. package/esm/components/Atoms/Loadmore/stories.js +17 -0
  63. package/esm/components/Atoms/MagazineCoverImage/README.md +21 -0
  64. package/esm/components/Atoms/MagazineCoverImage/index.js +58 -0
  65. package/esm/components/Atoms/MagazineCoverImage/magazine-cover-image.m.css +24 -0
  66. package/esm/components/Atoms/MagazineCoverImage/stories.js +22 -0
  67. package/esm/components/Atoms/PremiumStoryIcon/index.js +54 -0
  68. package/esm/components/Atoms/PublishDetail/README.md +15 -0
  69. package/esm/components/Atoms/PublishDetail/index.js +104 -0
  70. package/esm/components/Atoms/PublishDetail/publish-details.m.css +47 -0
  71. package/esm/components/Atoms/PublishDetail/publish-details.test.js +38 -0
  72. package/esm/components/Atoms/PublishDetail/stories.js +20 -0
  73. package/esm/components/Atoms/ReadTime/README.md +13 -0
  74. package/esm/components/Atoms/ReadTime/index.js +46 -0
  75. package/esm/components/Atoms/ReadTime/read-time.m.css +25 -0
  76. package/esm/components/Atoms/ReadTime/read-time.test.js +29 -0
  77. package/esm/components/Atoms/ReadTime/stories.js +15 -0
  78. package/esm/components/Atoms/ScrollSnap/SliderArrow/index.js +64 -0
  79. package/esm/components/Atoms/ScrollSnap/SliderArrow/slider-arrow.m.css +45 -0
  80. package/esm/components/Atoms/ScrollSnap/SliderIndicator/index.js +53 -0
  81. package/esm/components/Atoms/ScrollSnap/SliderIndicator/slider-indicator.m.css +71 -0
  82. package/esm/components/Atoms/ScrollSnap/index.js +165 -0
  83. package/esm/components/Atoms/ScrollSnap/scroll-snap.m.css +27 -0
  84. package/esm/components/Atoms/SectionTag/README.md +11 -0
  85. package/esm/components/Atoms/SectionTag/index.js +79 -0
  86. package/esm/components/Atoms/SectionTag/section.m.css +53 -0
  87. package/esm/components/Atoms/SectionTag/stories.js +22 -0
  88. package/esm/components/Atoms/SocialSharePopup/README.md +25 -0
  89. package/esm/components/Atoms/SocialSharePopup/__snapshots__/social-share-popup.test.js.snap +653 -0
  90. package/esm/components/Atoms/SocialSharePopup/index.js +100 -0
  91. package/esm/components/Atoms/SocialSharePopup/social-share-popup.m.css +109 -0
  92. package/esm/components/Atoms/SocialSharePopup/social-share-popup.test.js +87 -0
  93. package/esm/components/Atoms/SocialSharePopup/stories.js +18 -0
  94. package/esm/components/Atoms/StoryElements/AlsoRead/README.md +49 -0
  95. package/esm/components/Atoms/StoryElements/AlsoRead/also-read.m.css +135 -0
  96. package/esm/components/Atoms/StoryElements/AlsoRead/also-read.test.js +97 -0
  97. package/esm/components/Atoms/StoryElements/AlsoRead/index.js +156 -0
  98. package/esm/components/Atoms/StoryElements/AlsoRead/stories.js +47 -0
  99. package/esm/components/Atoms/StoryElements/Attachment/README.md +21 -0
  100. package/esm/components/Atoms/StoryElements/Attachment/__snapshots__/attachment.test.js.snap +47 -0
  101. package/esm/components/Atoms/StoryElements/Attachment/attachment.m.css +125 -0
  102. package/esm/components/Atoms/StoryElements/Attachment/attachment.test.js +66 -0
  103. package/esm/components/Atoms/StoryElements/Attachment/index.js +86 -0
  104. package/esm/components/Atoms/StoryElements/Attachment/stories.js +62 -0
  105. package/esm/components/Atoms/StoryElements/BigFact/README.md +9 -0
  106. package/esm/components/Atoms/StoryElements/BigFact/big-fact.m.css +41 -0
  107. package/esm/components/Atoms/StoryElements/BigFact/big-fact.test.js +28 -0
  108. package/esm/components/Atoms/StoryElements/BigFact/index.js +56 -0
  109. package/esm/components/Atoms/StoryElements/BigFact/stories.js +11 -0
  110. package/esm/components/Atoms/StoryElements/BlockQuote/README.md +49 -0
  111. package/esm/components/Atoms/StoryElements/BlockQuote/Svg/curve.js +32 -0
  112. package/esm/components/Atoms/StoryElements/BlockQuote/Svg/edge.js +32 -0
  113. package/esm/components/Atoms/StoryElements/BlockQuote/Svg/icon.m.css +4 -0
  114. package/esm/components/Atoms/StoryElements/BlockQuote/block-quote.m.css +161 -0
  115. package/esm/components/Atoms/StoryElements/BlockQuote/block-quote.test.js +71 -0
  116. package/esm/components/Atoms/StoryElements/BlockQuote/index.js +154 -0
  117. package/esm/components/Atoms/StoryElements/BlockQuote/stories.js +42 -0
  118. package/esm/components/Atoms/StoryElements/Blurb/README.md +43 -0
  119. package/esm/components/Atoms/StoryElements/Blurb/blurb.m.css +55 -0
  120. package/esm/components/Atoms/StoryElements/Blurb/blurb.test.js +76 -0
  121. package/esm/components/Atoms/StoryElements/Blurb/index.js +96 -0
  122. package/esm/components/Atoms/StoryElements/Blurb/stories.js +38 -0
  123. package/esm/components/Atoms/StoryElements/Image/README.md +13 -0
  124. package/esm/components/Atoms/StoryElements/Image/image.m.css +21 -0
  125. package/esm/components/Atoms/StoryElements/Image/image.test.js +19 -0
  126. package/esm/components/Atoms/StoryElements/Image/index.js +87 -0
  127. package/esm/components/Atoms/StoryElements/Image/stories.js +28 -0
  128. package/esm/components/Atoms/StoryElements/ImageSlideshow/README.md +13 -0
  129. package/esm/components/Atoms/StoryElements/ImageSlideshow/image-slideshow.m.css +49 -0
  130. package/esm/components/Atoms/StoryElements/ImageSlideshow/index.js +82 -0
  131. package/esm/components/Atoms/StoryElements/ImageSlideshow/stories.js +31 -0
  132. package/esm/components/Atoms/StoryElements/QuestionAnswer/README.md +56 -0
  133. package/esm/components/Atoms/StoryElements/QuestionAnswer/index.js +176 -0
  134. package/esm/components/Atoms/StoryElements/QuestionAnswer/question-answer.m.css +106 -0
  135. package/esm/components/Atoms/StoryElements/QuestionAnswer/question-answer.test.js +130 -0
  136. package/esm/components/Atoms/StoryElements/QuestionAnswer/stories.js +102 -0
  137. package/esm/components/Atoms/StoryElements/Quote/README.md +41 -0
  138. package/esm/components/Atoms/StoryElements/Quote/index.js +87 -0
  139. package/esm/components/Atoms/StoryElements/Quote/quote.m.css +111 -0
  140. package/esm/components/Atoms/StoryElements/Quote/quote.test.js +61 -0
  141. package/esm/components/Atoms/StoryElements/Quote/stories.js +39 -0
  142. package/esm/components/Atoms/StoryElements/Reference/README.md +9 -0
  143. package/esm/components/Atoms/StoryElements/Reference/index.js +80 -0
  144. package/esm/components/Atoms/StoryElements/Reference/reference.m.css +42 -0
  145. package/esm/components/Atoms/StoryElements/Reference/reference.test.js +38 -0
  146. package/esm/components/Atoms/StoryElements/Reference/stories.js +16 -0
  147. package/esm/components/Atoms/StoryElements/StoryElement/README.md +10 -0
  148. package/esm/components/Atoms/StoryElements/StoryElement/index.js +30 -0
  149. package/esm/components/Atoms/StoryElements/StoryElement/stories.js +17 -0
  150. package/esm/components/Atoms/StoryElements/StoryElement/storyelement.test.js +14 -0
  151. package/esm/components/Atoms/StoryElements/Summary/README.md +56 -0
  152. package/esm/components/Atoms/StoryElements/Summary/index.js +98 -0
  153. package/esm/components/Atoms/StoryElements/Summary/stories.js +41 -0
  154. package/esm/components/Atoms/StoryElements/Summary/summary.m.css +121 -0
  155. package/esm/components/Atoms/StoryElements/Summary/summary.test.js +83 -0
  156. package/esm/components/Atoms/StoryElements/Text/README.md +32 -0
  157. package/esm/components/Atoms/StoryElements/Text/index.js +74 -0
  158. package/esm/components/Atoms/StoryElements/Text/stories.js +56 -0
  159. package/esm/components/Atoms/StoryElements/Text/text.m.css +78 -0
  160. package/esm/components/Atoms/StoryElements/Text/text.test.js +70 -0
  161. package/esm/components/Atoms/StoryElements/Video/README.md +9 -0
  162. package/esm/components/Atoms/StoryElements/Video/index.js +37 -0
  163. package/esm/components/Atoms/StoryElements/Video/stories.js +29 -0
  164. package/esm/components/Atoms/StoryElements/Video/video.m.css +89 -0
  165. package/esm/components/Atoms/StoryElements/Video/video.test.js +14 -0
  166. package/esm/components/Atoms/StoryElements/imageGallery/README.md +18 -0
  167. package/esm/components/Atoms/StoryElements/imageGallery/image-gallery.m.css +52 -0
  168. package/esm/components/Atoms/StoryElements/imageGallery/image-gallery.test.js +17 -0
  169. package/esm/components/Atoms/StoryElements/imageGallery/index.js +112 -0
  170. package/esm/components/Atoms/StoryElements/imageGallery/stories.js +22 -0
  171. package/esm/components/Atoms/StoryElements/withElementWrapper.js +21 -0
  172. package/esm/components/Atoms/StoryElements/withElementWrapper.test.js +49 -0
  173. package/esm/components/Atoms/StoryHeadline/index.js +57 -0
  174. package/esm/components/Atoms/StoryHeadline/story-headline.m.css +36 -0
  175. package/esm/components/Atoms/StoryTags/README.md +9 -0
  176. package/esm/components/Atoms/StoryTags/index.js +47 -0
  177. package/esm/components/Atoms/StoryTags/stories.js +23 -0
  178. package/esm/components/Atoms/StoryTags/story-tags.test.js +16 -0
  179. package/esm/components/Atoms/StoryTags/tags.m.css +34 -0
  180. package/esm/components/Atoms/Subheadline/README.md +17 -0
  181. package/esm/components/Atoms/Subheadline/index.js +52 -0
  182. package/esm/components/Atoms/Subheadline/stories.js +21 -0
  183. package/esm/components/Atoms/Subheadline/subheadline.m.css +17 -0
  184. package/esm/components/Atoms/TimeStamp/README.md +9 -0
  185. package/esm/components/Atoms/TimeStamp/index.js +39 -0
  186. package/esm/components/Atoms/TimeStamp/stories.js +11 -0
  187. package/esm/components/Atoms/TimeStamp/timestamp.m.css +22 -0
  188. package/esm/components/Fixture/config.json +2703 -0
  189. package/esm/components/Fixture/dummy-collection.js +2547 -0
  190. package/esm/components/Fixture/dummyStory.js +2089 -0
  191. package/esm/components/Fixture/index.js +433 -0
  192. package/esm/components/Fixture/slot-config.js +26 -0
  193. package/esm/components/Molecules/FullScreenImages/fullscreenimages.scss +56 -0
  194. package/esm/components/Molecules/FullScreenImages/index.js +119 -0
  195. package/esm/components/Molecules/KeyEvents/README.md +21 -0
  196. package/esm/components/Molecules/KeyEvents/index.js +152 -0
  197. package/esm/components/Molecules/KeyEvents/key-events.m.css +89 -0
  198. package/esm/components/Molecules/KeyEvents/stories.js +25 -0
  199. package/esm/components/Molecules/PageIntroductionCard/README.md +25 -0
  200. package/esm/components/Molecules/PageIntroductionCard/index.js +77 -0
  201. package/esm/components/Molecules/PageIntroductionCard/page-intro-card.m.css +61 -0
  202. package/esm/components/Molecules/PageIntroductionCard/stories.js +17 -0
  203. package/esm/components/Molecules/PortraitStoryCard/README.md +10 -0
  204. package/esm/components/Molecules/PortraitStoryCard/index.js +52 -0
  205. package/esm/components/Molecules/PortraitStoryCard/portrait-story-card.m.css +38 -0
  206. package/esm/components/Molecules/PortraitStoryCard/stories.js +24 -0
  207. package/esm/components/Molecules/SliderHorizontalCard/README.md +14 -0
  208. package/esm/components/Molecules/SliderHorizontalCard/index.js +69 -0
  209. package/esm/components/Molecules/SliderHorizontalCard/slider-horizontal-card.m.css +42 -0
  210. package/esm/components/Molecules/SliderHorizontalCard/stories.js +27 -0
  211. package/esm/components/Molecules/SocialShareTemplate/README.md +118 -0
  212. package/esm/components/Molecules/SocialShareTemplate/__snapshots__/social-share-template.test.js.snap +738 -0
  213. package/esm/components/Molecules/SocialShareTemplate/index.js +164 -0
  214. package/esm/components/Molecules/SocialShareTemplate/social-share-data.js +90 -0
  215. package/esm/components/Molecules/SocialShareTemplate/social-share-template.m.css +174 -0
  216. package/esm/components/Molecules/SocialShareTemplate/social-share-template.test.js +108 -0
  217. package/esm/components/Molecules/SocialShareTemplate/stories.js +38 -0
  218. package/esm/components/Molecules/StoryCard/README.md +75 -0
  219. package/esm/components/Molecules/StoryCard/READMEBGIMAGE.md +25 -0
  220. package/esm/components/Molecules/StoryCard/READMEBORDER.md +61 -0
  221. package/esm/components/Molecules/StoryCard/index.js +200 -0
  222. package/esm/components/Molecules/StoryCard/stories.js +274 -0
  223. package/esm/components/Molecules/StoryCard/storycard.m.css +158 -0
  224. package/esm/components/Molecules/StoryCardWithBulletPoint/README.md +9 -0
  225. package/esm/components/Molecules/StoryCardWithBulletPoint/index.js +43 -0
  226. package/esm/components/Molecules/StoryCardWithBulletPoint/stories.js +28 -0
  227. package/esm/components/Molecules/StoryCardWithBulletPoint/story-card-with-bullet-point.m.css +7 -0
  228. package/esm/components/Molecules/StoryElementCard/README.md +9 -0
  229. package/esm/components/Molecules/StoryElementCard/index.js +494 -0
  230. package/esm/components/Molecules/StoryElementCard/stories.js +25 -0
  231. package/esm/components/Molecules/StoryElementCard/story-element-card.m.css +78 -0
  232. package/esm/components/Molecules/StorycardContent/README.md +34 -0
  233. package/esm/components/Molecules/StorycardContent/index.js +86 -0
  234. package/esm/components/Molecules/StorycardContent/stories.js +45 -0
  235. package/esm/components/Molecules/StorycardContent/storycardContent.m.css +21 -0
  236. package/esm/components/Rows/AlternateCollectionFilter/README.md +38 -0
  237. package/esm/components/Rows/AlternateCollectionFilter/alternate-collection-filter.m.css +254 -0
  238. package/esm/components/Rows/AlternateCollectionFilter/index.js +288 -0
  239. package/esm/components/Rows/AlternateCollectionFilter/stories.js +68 -0
  240. package/esm/components/Rows/AsideCollection/README.md +27 -0
  241. package/esm/components/Rows/AsideCollection/aside-collection.m.css +103 -0
  242. package/esm/components/Rows/AsideCollection/aside-collection.test.js +32 -0
  243. package/esm/components/Rows/AsideCollection/index.js +253 -0
  244. package/esm/components/Rows/AsideCollection/stories.js +48 -0
  245. package/esm/components/Rows/AstrologyCollection/README.md +40 -0
  246. package/esm/components/Rows/AstrologyCollection/astrology-collection.m.css +165 -0
  247. package/esm/components/Rows/AstrologyCollection/index.js +272 -0
  248. package/esm/components/Rows/AstrologyCollection/stories.js +61 -0
  249. package/esm/components/Rows/AuthorIntroductionCard/README.md +43 -0
  250. package/esm/components/Rows/AuthorIntroductionCard/author-intro.m.css +278 -0
  251. package/esm/components/Rows/AuthorIntroductionCard/author-intro.test.js +148 -0
  252. package/esm/components/Rows/AuthorIntroductionCard/index.js +157 -0
  253. package/esm/components/Rows/AuthorIntroductionCard/stories.js +46 -0
  254. package/esm/components/Rows/AuthorsList/README.md +24 -0
  255. package/esm/components/Rows/AuthorsList/author-list.test.js +66 -0
  256. package/esm/components/Rows/AuthorsList/authors-list.m.css +22 -0
  257. package/esm/components/Rows/AuthorsList/index.js +64 -0
  258. package/esm/components/Rows/AuthorsList/stories.js +62 -0
  259. package/esm/components/Rows/CollectionFilter/README.md +39 -0
  260. package/esm/components/Rows/CollectionFilter/collection-filter.m.css +213 -0
  261. package/esm/components/Rows/CollectionFilter/index.js +366 -0
  262. package/esm/components/Rows/CollectionFilter/stories.js +78 -0
  263. package/esm/components/Rows/ElevenStories/11-stories.m.css +85 -0
  264. package/esm/components/Rows/ElevenStories/README.md +39 -0
  265. package/esm/components/Rows/ElevenStories/index.js +418 -0
  266. package/esm/components/Rows/ElevenStories/stories.js +71 -0
  267. package/esm/components/Rows/FourColFiveStories/README.md +37 -0
  268. package/esm/components/Rows/FourColFiveStories/four-col-five-stories.m.css +112 -0
  269. package/{atoms/ExtendedLoadMore/index-3976fac4.js → esm/components/Rows/FourColFiveStories/index.js} +54 -64
  270. package/esm/components/Rows/FourColFiveStories/stories.js +67 -0
  271. package/esm/components/Rows/FourColGrid/README.md +39 -0
  272. package/esm/components/Rows/FourColGrid/four-col.m.css +50 -0
  273. package/{atoms/ExtendedLoadMore/index-bc129cb8.js → esm/components/Rows/FourColGrid/index.js} +52 -59
  274. package/esm/components/Rows/FourColGrid/stories.js +68 -0
  275. package/esm/components/Rows/FourColPortraitStories/README.md +38 -0
  276. package/esm/components/Rows/FourColPortraitStories/four-col-portrait-stories.m.css +45 -0
  277. package/esm/components/Rows/FourColPortraitStories/index.js +153 -0
  278. package/esm/components/Rows/FourColPortraitStories/stories.js +68 -0
  279. package/esm/components/Rows/FourColSixteenStories/README.md +35 -0
  280. package/esm/components/Rows/FourColSixteenStories/four-col-sixteen-stories.m.css +141 -0
  281. package/esm/components/Rows/FourColSixteenStories/index.js +157 -0
  282. package/esm/components/Rows/FourColSixteenStories/stories.js +43 -0
  283. package/esm/components/Rows/FourColTwelveStory/README.md +39 -0
  284. package/esm/components/Rows/FourColTwelveStory/four-col-twelve-story.m.css +71 -0
  285. package/esm/components/Rows/FourColTwelveStory/index.js +219 -0
  286. package/esm/components/Rows/FourColTwelveStory/stories.js +107 -0
  287. package/esm/components/Rows/FourStorySlider/README.md +45 -0
  288. package/esm/components/Rows/FourStorySlider/four-story-slider.m.css +78 -0
  289. package/esm/components/Rows/FourStorySlider/index.js +145 -0
  290. package/esm/components/Rows/FourStorySlider/stories.js +125 -0
  291. package/esm/components/Rows/FourStorySliderPortrait/README.md +45 -0
  292. package/esm/components/Rows/FourStorySliderPortrait/four-story-slider-portrait.m.css +221 -0
  293. package/esm/components/Rows/FourStorySliderPortrait/index.js +148 -0
  294. package/esm/components/Rows/FourStorySliderPortrait/stories.js +125 -0
  295. package/esm/components/Rows/FourTabbedBigStorySlider/README.md +39 -0
  296. package/esm/components/Rows/FourTabbedBigStorySlider/four-tabbed-big-story-slider.m.css +265 -0
  297. package/esm/components/Rows/FourTabbedBigStorySlider/index.js +221 -0
  298. package/esm/components/Rows/FourTabbedBigStorySlider/stories.js +59 -0
  299. package/esm/components/Rows/FullScreenSlider/README.md +46 -0
  300. package/esm/components/Rows/FullScreenSlider/full-screen-slider.m.css +155 -0
  301. package/esm/components/Rows/FullScreenSlider/index.js +140 -0
  302. package/esm/components/Rows/FullScreenSlider/stories.js +113 -0
  303. package/esm/components/Rows/HalfScreenSlider/README.md +43 -0
  304. package/esm/components/Rows/HalfScreenSlider/half-screen-slider.m.css +80 -0
  305. package/esm/components/Rows/HalfScreenSlider/index.js +124 -0
  306. package/esm/components/Rows/HalfScreenSlider/stories.js +118 -0
  307. package/esm/components/Rows/ListComponent/README.md +48 -0
  308. package/esm/components/Rows/ListComponent/index.js +176 -0
  309. package/esm/components/Rows/ListComponent/list-component.m.css +65 -0
  310. package/esm/components/Rows/ListComponent/stories.js +65 -0
  311. package/esm/components/Rows/Listicles/README.md +32 -0
  312. package/esm/components/Rows/Listicles/index.js +240 -0
  313. package/esm/components/Rows/Listicles/listicles.m.css +149 -0
  314. package/esm/components/Rows/Listicles/stories.js +53 -0
  315. package/esm/components/Rows/MagazineEditions/README.md +21 -0
  316. package/esm/components/Rows/MagazineEditions/index.js +123 -0
  317. package/esm/components/Rows/MagazineEditions/magazine-editions.m.css +50 -0
  318. package/esm/components/Rows/MagazineEditions/magazine-editions.test.js +30 -0
  319. package/esm/components/Rows/MagazineEditions/stories.js +41 -0
  320. package/esm/components/Rows/MagazineHeaderCard/README.md +21 -0
  321. package/esm/components/Rows/MagazineHeaderCard/index.js +117 -0
  322. package/esm/components/Rows/MagazineHeaderCard/magazine-cards.m.css +106 -0
  323. package/esm/components/Rows/MagazineHeaderCard/stories.js +34 -0
  324. package/esm/components/Rows/MagazineWidget/README.md +21 -0
  325. package/esm/components/Rows/MagazineWidget/index.js +177 -0
  326. package/esm/components/Rows/MagazineWidget/stories.js +40 -0
  327. package/esm/components/Rows/OneColStoryList/README.md +48 -0
  328. package/{atoms/ExtendedLoadMore/index-a5c95f84.js → esm/components/Rows/OneColStoryList/index.js} +69 -72
  329. package/esm/components/Rows/OneColStoryList/one-col-story-list.m.css +81 -0
  330. package/esm/components/Rows/OneColStoryList/stories.js +78 -0
  331. package/esm/components/Rows/OpinionCollection/README.md +36 -0
  332. package/esm/components/Rows/OpinionCollection/index.js +205 -0
  333. package/esm/components/Rows/OpinionCollection/opinion-collection.m.css +226 -0
  334. package/esm/components/Rows/OpinionCollection/stories.js +92 -0
  335. package/esm/components/Rows/SixColSixStories/README.md +37 -0
  336. package/{atoms/ExtendedLoadMore/index-6ecceae4.js → esm/components/Rows/SixColSixStories/index.js} +57 -61
  337. package/esm/components/Rows/SixColSixStories/six-col-six-stories.m.css +75 -0
  338. package/esm/components/Rows/SixColSixStories/stories.js +74 -0
  339. package/esm/components/Rows/StoryTemplates/ListicleStoryTemplates/README.md +19 -0
  340. package/esm/components/Rows/StoryTemplates/ListicleStoryTemplates/__snapshots__/listicle-story.test.js.snap +841 -0
  341. package/esm/components/Rows/StoryTemplates/ListicleStoryTemplates/index.js +330 -0
  342. package/esm/components/Rows/StoryTemplates/ListicleStoryTemplates/listicle-story.m.css +249 -0
  343. package/esm/components/Rows/StoryTemplates/ListicleStoryTemplates/listicle-story.test.js +46 -0
  344. package/esm/components/Rows/StoryTemplates/ListicleStoryTemplates/stories.js +119 -0
  345. package/esm/components/Rows/StoryTemplates/LiveBlogStoryTemplates/README.md +25 -0
  346. package/esm/components/Rows/StoryTemplates/LiveBlogStoryTemplates/index.js +97 -0
  347. package/esm/components/Rows/StoryTemplates/LiveBlogStoryTemplates/live-blog.m.css +326 -0
  348. package/esm/components/Rows/StoryTemplates/LiveBlogStoryTemplates/stories.js +118 -0
  349. package/esm/components/Rows/StoryTemplates/LiveBlogStoryTemplates/templates.js +418 -0
  350. package/esm/components/Rows/StoryTemplates/PhotoStoryTemplates/index.js +294 -0
  351. package/esm/components/Rows/StoryTemplates/PhotoStoryTemplates/photo-story.test.js +163 -0
  352. package/esm/components/Rows/StoryTemplates/PhotoStoryTemplates/photo.m.css +175 -0
  353. package/esm/components/Rows/StoryTemplates/PhotoStoryTemplates/stories.js +124 -0
  354. package/esm/components/Rows/StoryTemplates/TextStoryTemplates/README.md +49 -0
  355. package/esm/components/Rows/StoryTemplates/TextStoryTemplates/index.js +100 -0
  356. package/esm/components/Rows/StoryTemplates/TextStoryTemplates/stories.js +124 -0
  357. package/esm/components/Rows/StoryTemplates/TextStoryTemplates/templates.js +285 -0
  358. package/esm/components/Rows/StoryTemplates/TextStoryTemplates/text-story.m.css +449 -0
  359. package/esm/components/Rows/StoryTemplates/TextStoryTemplates/text-story.test.js +242 -0
  360. package/esm/components/Rows/StoryTemplates/VideoStoryTemplates/README.md +31 -0
  361. package/esm/components/Rows/StoryTemplates/VideoStoryTemplates/index.js +239 -0
  362. package/esm/components/Rows/StoryTemplates/VideoStoryTemplates/stories.js +214 -0
  363. package/esm/components/Rows/StoryTemplates/VideoStoryTemplates/video-story.m.css +195 -0
  364. package/esm/components/Rows/TagIntroductionCard/README.md +11 -0
  365. package/esm/components/Rows/TagIntroductionCard/index.js +45 -0
  366. package/esm/components/Rows/TagIntroductionCard/stories.js +20 -0
  367. package/esm/components/Rows/TagIntroductionCard/tag-intro-card.module.css +25 -0
  368. package/esm/components/Rows/ThreeColFlexStories/README.md +38 -0
  369. package/{atoms/ExtendedLoadMore/index-b5936059.js → esm/components/Rows/ThreeColFlexStories/index.js} +70 -74
  370. package/esm/components/Rows/ThreeColFlexStories/stories.js +74 -0
  371. package/esm/components/Rows/ThreeColFlexStories/three-col-flex-stories.m.css +60 -0
  372. package/esm/components/Rows/ThreeColFourteenStory/README.md +28 -0
  373. package/esm/components/Rows/ThreeColFourteenStory/index.js +154 -0
  374. package/esm/components/Rows/ThreeColFourteenStory/stories.js +65 -0
  375. package/esm/components/Rows/ThreeColFourteenStory/three-col-fourteen-story.m.css +51 -0
  376. package/esm/components/Rows/ThreeColGrid/README.md +36 -0
  377. package/{atoms/ExtendedLoadMore/index-6e083738.js → esm/components/Rows/ThreeColGrid/index.js} +55 -62
  378. package/esm/components/Rows/ThreeColGrid/stories.js +78 -0
  379. package/esm/components/Rows/ThreeColGrid/three-col.m.css +43 -0
  380. package/esm/components/Rows/ThreeColSevenStory/README.md +36 -0
  381. package/esm/components/Rows/ThreeColSevenStory/index.js +201 -0
  382. package/esm/components/Rows/ThreeColSevenStory/stories.js +74 -0
  383. package/esm/components/Rows/ThreeColSevenStory/three-col-seven-story.m.css +44 -0
  384. package/esm/components/Rows/ThreeColSixStories/README.md +40 -0
  385. package/esm/components/Rows/ThreeColSixStories/index.js +183 -0
  386. package/esm/components/Rows/ThreeColSixStories/stories.js +74 -0
  387. package/esm/components/Rows/ThreeColSixStories/three-col-six-stories.m.css +32 -0
  388. package/esm/components/Rows/ThreeColTwelveStories/README.md +41 -0
  389. package/esm/components/Rows/ThreeColTwelveStories/index.js +165 -0
  390. package/esm/components/Rows/ThreeColTwelveStories/stories.js +53 -0
  391. package/esm/components/Rows/ThreeColTwelveStories/three-col-twelve-stories.m.css +83 -0
  392. package/esm/components/Rows/TwoColFourStory/README.md +33 -0
  393. package/esm/components/Rows/TwoColFourStory/index.js +174 -0
  394. package/esm/components/Rows/TwoColFourStory/stories.js +63 -0
  395. package/esm/components/Rows/TwoColFourStory/two-col-four-story.m.css +64 -0
  396. package/esm/components/Rows/TwoColFourStoryHighlight/README.md +35 -0
  397. package/esm/components/Rows/TwoColFourStoryHighlight/index.js +164 -0
  398. package/esm/components/Rows/TwoColFourStoryHighlight/stories.js +50 -0
  399. package/esm/components/Rows/TwoColFourStoryHighlight/two-col-four-story-highlight.m.css +116 -0
  400. package/esm/components/Rows/TwoColSevenStories/README.md +37 -0
  401. package/esm/components/Rows/TwoColSevenStories/index.js +193 -0
  402. package/esm/components/Rows/TwoColSevenStories/stories.js +102 -0
  403. package/esm/components/Rows/TwoColSevenStories/two-col-seven-stories.m.css +175 -0
  404. package/esm/components/Rows/TwoColSixStories/README.md +36 -0
  405. package/esm/components/Rows/TwoColSixStories/index.js +185 -0
  406. package/esm/components/Rows/TwoColSixStories/stories.js +67 -0
  407. package/esm/components/Rows/TwoColSixStories/two-col-six-stories.m.css +135 -0
  408. package/esm/components/Rows/TwoColTenStoriesSidebar/README.md +34 -0
  409. package/esm/components/Rows/TwoColTenStoriesSidebar/index.js +191 -0
  410. package/esm/components/Rows/TwoColTenStoriesSidebar/stories.js +53 -0
  411. package/esm/components/Rows/TwoColTenStoriesSidebar/two-col-ten-stories-sidebar.m.css +52 -0
  412. package/esm/components/Rows/TwoColThreeStory/README.md +40 -0
  413. package/esm/components/Rows/TwoColThreeStory/index.js +146 -0
  414. package/esm/components/Rows/TwoColThreeStory/stories.js +63 -0
  415. package/esm/components/Rows/TwoColThreeStory/two-col-three-story.m.css +36 -0
  416. package/esm/components/SharedContext.js +17 -0
  417. package/esm/components/Svgs/Loading/loading.js +140 -0
  418. package/esm/components/Svgs/Loading/loading.m.css +5 -0
  419. package/esm/components/Svgs/SocialIcons/facebook.js +18 -0
  420. package/esm/components/Svgs/SocialIcons/instagram.js +33 -0
  421. package/esm/components/Svgs/SocialIcons/linkedin.js +18 -0
  422. package/esm/components/Svgs/SocialIcons/pinterest.js +12 -0
  423. package/esm/components/Svgs/SocialIcons/twitter.js +18 -0
  424. package/esm/components/Svgs/SocialIcons/whatsapp.js +19 -0
  425. package/esm/components/Svgs/SocialIcons/youtube.js +19 -0
  426. package/esm/components/Svgs/caret-right.svg +3 -0
  427. package/esm/components/Svgs/clock-icon.js +19 -0
  428. package/esm/components/Svgs/close-icon.js +22 -0
  429. package/esm/components/Svgs/crown.js +40 -0
  430. package/esm/components/Svgs/fallbackImage.js +45 -0
  431. package/esm/components/Svgs/hyperlink.js +22 -0
  432. package/esm/components/Svgs/key.js +39 -0
  433. package/esm/components/Svgs/left-arrow.js +24 -0
  434. package/esm/components/Svgs/liveicon.js +16 -0
  435. package/esm/components/Svgs/lock.js +40 -0
  436. package/esm/components/Svgs/right-arrow.js +24 -0
  437. package/esm/components/Svgs/share-icon.js +19 -0
  438. package/esm/components/Svgs/star.js +34 -0
  439. package/esm/components/Svgs/user-fallback-icon.js +22 -0
  440. package/esm/components/Typography/README.md +7 -0
  441. package/esm/components/Typography/index.js +33 -0
  442. package/esm/components/Typography/stories.js +15 -0
  443. package/esm/components/Typography/style.m.css +11 -0
  444. package/esm/entry-points.js +291 -0
  445. package/esm/guide/stories.js +22 -0
  446. package/esm/hydration-component/index.js +41 -0
  447. package/esm/hydration-component/useNearScreen.js +71 -0
  448. package/esm/index.js +88 -0
  449. package/esm/rows.js +40 -0
  450. package/esm/utils/testing-utils.js +8 -0
  451. package/esm/utils/utils.js +363 -0
  452. package/esm/utils/utils.test.js +46 -0
  453. package/package.json +1 -1
  454. package/atoms/Author/index.js +0 -2259
  455. package/atoms/Author/styles.arrow.css +0 -1
  456. package/atoms/AuthorWithTime/index.js +0 -2964
  457. package/atoms/AuthorWithTime/styles.arrow.css +0 -1
  458. package/atoms/CollectionName/index.js +0 -2344
  459. package/atoms/CollectionName/styles.arrow.css +0 -1
  460. package/atoms/ExtendedLoadMore/index-3c4ac692.js +0 -1025
  461. package/atoms/ExtendedLoadMore/index-4ddfe28d.js +0 -93
  462. package/atoms/ExtendedLoadMore/index-5c8eda4a.js +0 -358
  463. package/atoms/ExtendedLoadMore/index-9e0d32b7.js +0 -290
  464. package/atoms/ExtendedLoadMore/index-b22f1843.js +0 -251
  465. package/atoms/ExtendedLoadMore/index-e7cde739.js +0 -3051
  466. package/atoms/ExtendedLoadMore/index-fee73a14.js +0 -207
  467. package/atoms/ExtendedLoadMore/index.js +0 -13
  468. package/atoms/ExtendedLoadMore/styles.arrow.css +0 -1
  469. package/atoms/Headline/index.js +0 -2468
  470. package/atoms/Headline/styles.arrow.css +0 -1
  471. package/atoms/HeroImage/index.js +0 -2484
  472. package/atoms/HeroImage/styles.arrow.css +0 -1
  473. package/atoms/LoadmoreButton/index.js +0 -2277
  474. package/atoms/LoadmoreButton/styles.arrow.css +0 -1
  475. package/atoms/ScrollSnap/index.js +0 -2540
  476. package/atoms/ScrollSnap/styles.arrow.css +0 -1
  477. package/atoms/SectionTag/index.js +0 -2229
  478. package/atoms/SectionTag/styles.arrow.css +0 -1
  479. package/atoms/Subheadline/index.js +0 -2209
  480. package/atoms/Subheadline/styles.arrow.css +0 -1
  481. package/atoms/TimeStamp/index.js +0 -2671
  482. package/atoms/TimeStamp/styles.arrow.css +0 -1
  483. package/molecules/KeyEvents/index.js +0 -2979
  484. package/molecules/KeyEvents/styles.arrow.css +0 -1
  485. package/molecules/PageIntroductionCard/index.js +0 -2685
  486. package/molecules/PageIntroductionCard/styles.arrow.css +0 -1
  487. package/molecules/SocialShareTemplate/index.js +0 -3102
  488. package/molecules/SocialShareTemplate/styles.arrow.css +0 -1
  489. package/molecules/StoryCard/index.js +0 -3948
  490. package/molecules/StoryCard/styles.arrow.css +0 -1
  491. package/molecules/StoryElementCard/index.js +0 -5861
  492. package/molecules/StoryElementCard/styles.arrow.css +0 -1
  493. package/molecules/StorycardContent/index.js +0 -3426
  494. package/molecules/StorycardContent/styles.arrow.css +0 -1
  495. package/rows/AlternateCollectionFilter/index.js +0 -4756
  496. package/rows/AlternateCollectionFilter/styles.arrow.css +0 -1
  497. package/rows/AsideCollection/index.js +0 -4702
  498. package/rows/AsideCollection/styles.arrow.css +0 -1
  499. package/rows/AstrologyCollection/index.js +0 -4673
  500. package/rows/AstrologyCollection/styles.arrow.css +0 -1
  501. package/rows/AuthorIntroductionCard/index.js +0 -3529
  502. package/rows/AuthorIntroductionCard/styles.arrow.css +0 -1
  503. package/rows/AuthorsList/index.js +0 -3725
  504. package/rows/AuthorsList/styles.arrow.css +0 -1
  505. package/rows/CollectionFilter/index.js +0 -4846
  506. package/rows/CollectionFilter/styles.arrow.css +0 -1
  507. package/rows/ElevenStories/index.js +0 -4649
  508. package/rows/ElevenStories/styles.arrow.css +0 -1
  509. package/rows/FourColFiveStories/index.js +0 -4389
  510. package/rows/FourColFiveStories/styles.arrow.css +0 -1
  511. package/rows/FourColGrid/index.js +0 -4614
  512. package/rows/FourColGrid/styles.arrow.css +0 -1
  513. package/rows/FourColPortraitStories/index.js +0 -4647
  514. package/rows/FourColPortraitStories/styles.arrow.css +0 -1
  515. package/rows/FourColSixteenStories/index.js +0 -4386
  516. package/rows/FourColSixteenStories/styles.arrow.css +0 -1
  517. package/rows/FourColTwelveStories/index.js +0 -4346
  518. package/rows/FourColTwelveStories/styles.arrow.css +0 -1
  519. package/rows/FourStorySlider/index.js +0 -4754
  520. package/rows/FourStorySlider/styles.arrow.css +0 -1
  521. package/rows/FourStorySliderPortrait/index.js +0 -4757
  522. package/rows/FourStorySliderPortrait/styles.arrow.css +0 -1
  523. package/rows/FourTabbedBigStorySlider/index.js +0 -4516
  524. package/rows/FourTabbedBigStorySlider/styles.arrow.css +0 -1
  525. package/rows/FullScreenSlider/index.js +0 -4672
  526. package/rows/FullScreenSlider/styles.arrow.css +0 -1
  527. package/rows/HalfScreenSlider/index.js +0 -4525
  528. package/rows/HalfScreenSlider/styles.arrow.css +0 -1
  529. package/rows/ListComponent/index.js +0 -4473
  530. package/rows/ListComponent/styles.arrow.css +0 -1
  531. package/rows/Listicles/index.js +0 -3142
  532. package/rows/Listicles/styles.arrow.css +0 -1
  533. package/rows/MagazineEditions/index.js +0 -3153
  534. package/rows/MagazineEditions/styles.arrow.css +0 -1
  535. package/rows/MagazineHeaderCard/index.js +0 -3147
  536. package/rows/MagazineHeaderCard/styles.arrow.css +0 -1
  537. package/rows/MagazineWidget/index.js +0 -4525
  538. package/rows/MagazineWidget/styles.arrow.css +0 -1
  539. package/rows/OneColStoryList/index.js +0 -4700
  540. package/rows/OneColStoryList/styles.arrow.css +0 -1
  541. package/rows/OpinionCollection/index.js +0 -4067
  542. package/rows/OpinionCollection/styles.arrow.css +0 -1
  543. package/rows/SixColSixStories/index.js +0 -4545
  544. package/rows/SixColSixStories/styles.arrow.css +0 -1
  545. package/rows/StoryCollection/index.js +0 -4702
  546. package/rows/StoryCollection/styles.arrow.css +0 -1
  547. package/rows/TagIntroductionCard/index.js +0 -1910
  548. package/rows/TagIntroductionCard/styles.arrow.css +0 -1
  549. package/rows/ThreeColFlexStories/index.js +0 -4605
  550. package/rows/ThreeColFlexStories/styles.arrow.css +0 -1
  551. package/rows/ThreeColFourteenStories/index.js +0 -4294
  552. package/rows/ThreeColFourteenStories/styles.arrow.css +0 -1
  553. package/rows/ThreeColGrid/index.js +0 -4635
  554. package/rows/ThreeColGrid/styles.arrow.css +0 -1
  555. package/rows/ThreeColSevenStory/index.js +0 -4513
  556. package/rows/ThreeColSevenStory/styles.arrow.css +0 -1
  557. package/rows/ThreeColSixStories/index.js +0 -4496
  558. package/rows/ThreeColSixStories/styles.arrow.css +0 -1
  559. package/rows/ThreeColTwelveStories/index.js +0 -4391
  560. package/rows/ThreeColTwelveStories/styles.arrow.css +0 -1
  561. package/rows/TwoColFourStories/index.js +0 -4474
  562. package/rows/TwoColFourStories/styles.arrow.css +0 -1
  563. package/rows/TwoColFourStoryHighlight/index.js +0 -4467
  564. package/rows/TwoColFourStoryHighlight/styles.arrow.css +0 -1
  565. package/rows/TwoColSevenStories/index.js +0 -4501
  566. package/rows/TwoColSevenStories/styles.arrow.css +0 -1
  567. package/rows/TwoColSixStories/index.js +0 -4500
  568. package/rows/TwoColSixStories/styles.arrow.css +0 -1
  569. package/rows/TwoColTenStoriesSidebar/index.js +0 -4560
  570. package/rows/TwoColTenStoriesSidebar/styles.arrow.css +0 -1
  571. package/rows/TwoColThreeStories/index.js +0 -4447
  572. package/rows/TwoColThreeStories/styles.arrow.css +0 -1
  573. package/story-elements/AlsoRead/index.js +0 -2466
  574. package/story-elements/AlsoRead/styles.arrow.css +0 -1
  575. package/story-elements/Attachment/index.js +0 -2022
  576. package/story-elements/Attachment/styles.arrow.css +0 -1
  577. package/story-elements/BigFact/index.js +0 -1992
  578. package/story-elements/BigFact/styles.arrow.css +0 -1
  579. package/story-elements/BlockQuote/index.js +0 -2441
  580. package/story-elements/BlockQuote/styles.arrow.css +0 -1
  581. package/story-elements/Blurb/index.js +0 -2103
  582. package/story-elements/Blurb/styles.arrow.css +0 -1
  583. package/story-elements/Image/index.js +0 -2738
  584. package/story-elements/Image/styles.arrow.css +0 -1
  585. package/story-elements/ImageGallery/index.js +0 -2671
  586. package/story-elements/ImageGallery/styles.arrow.css +0 -1
  587. package/story-elements/ImageSlideshow/index.js +0 -2982
  588. package/story-elements/ImageSlideshow/styles.arrow.css +0 -1
  589. package/story-elements/QuestionAnswer/index.js +0 -2404
  590. package/story-elements/QuestionAnswer/styles.arrow.css +0 -1
  591. package/story-elements/Quote/index.js +0 -2021
  592. package/story-elements/Quote/styles.arrow.css +0 -1
  593. package/story-elements/Reference/index.js +0 -2015
  594. package/story-elements/Reference/styles.arrow.css +0 -1
  595. package/story-elements/StoryElement/index.js +0 -1788
  596. package/story-elements/Summary/index.js +0 -2045
  597. package/story-elements/Summary/styles.arrow.css +0 -1
  598. package/story-elements/Text/index.js +0 -2302
  599. package/story-elements/Text/styles.arrow.css +0 -1
  600. package/story-elements/Video/index.js +0 -1794
  601. package/story-elements/Video/styles.arrow.css +0 -1
  602. package/story-templates/ListicleStoryTemplate/index.js +0 -8471
  603. package/story-templates/ListicleStoryTemplate/styles.arrow.css +0 -1
  604. package/story-templates/LiveBlogStoryTemplate/index.js +0 -8647
  605. package/story-templates/LiveBlogStoryTemplate/styles.arrow.css +0 -1
  606. package/story-templates/PhotoStoryTemplate/index.js +0 -8449
  607. package/story-templates/PhotoStoryTemplate/styles.arrow.css +0 -1
  608. package/story-templates/TextStoryTemplate/index.js +0 -8522
  609. package/story-templates/TextStoryTemplate/styles.arrow.css +0 -1
  610. package/story-templates/VideoStoryTemplate/index.js +0 -8381
  611. package/story-templates/VideoStoryTemplate/styles.arrow.css +0 -1
@@ -1,2466 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var React = require('react');
6
- var components = require('@quintype/components');
7
- var PropTypes = require('prop-types');
8
- require('react-timeago');
9
- require('date-fns-tz');
10
-
11
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
-
13
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
14
- var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
15
-
16
- function _extends() {
17
- _extends = Object.assign || function (target) {
18
- for (var i = 1; i < arguments.length; i++) {
19
- var source = arguments[i];
20
-
21
- for (var key in source) {
22
- if (Object.prototype.hasOwnProperty.call(source, key)) {
23
- target[key] = source[key];
24
- }
25
- }
26
- }
27
-
28
- return target;
29
- };
30
-
31
- return _extends.apply(this, arguments);
32
- }
33
-
34
- function _objectWithoutPropertiesLoose(source, excluded) {
35
- if (source == null) return {};
36
- var target = {};
37
- var sourceKeys = Object.keys(source);
38
- var key, i;
39
-
40
- for (i = 0; i < sourceKeys.length; i++) {
41
- key = sourceKeys[i];
42
- if (excluded.indexOf(key) >= 0) continue;
43
- target[key] = source[key];
44
- }
45
-
46
- return target;
47
- }
48
-
49
- function _objectWithoutProperties(source, excluded) {
50
- if (source == null) return {};
51
- var target = _objectWithoutPropertiesLoose(source, excluded);
52
- var key, i;
53
-
54
- if (Object.getOwnPropertySymbols) {
55
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
56
-
57
- for (i = 0; i < sourceSymbolKeys.length; i++) {
58
- key = sourceSymbolKeys[i];
59
- if (excluded.indexOf(key) >= 0) continue;
60
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
61
- target[key] = source[key];
62
- }
63
- }
64
-
65
- return target;
66
- }
67
-
68
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
69
-
70
- function getDefaultExportFromCjs (x) {
71
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
72
- }
73
-
74
- function createCommonjsModule(fn) {
75
- var module = { exports: {} };
76
- return fn(module, module.exports), module.exports;
77
- }
78
-
79
- var optionsDefaults_1 = createCommonjsModule(function (module, exports) {
80
-
81
- Object.defineProperty(exports, "__esModule", {
82
- value: true
83
- });
84
- exports["default"] = void 0;
85
- var optionsDefaults = {
86
- attributeNames: {
87
- styleName: 'className'
88
- },
89
- generateScopedName: '[path]___[name]__[local]___[hash:base64:5]',
90
- handleMissingStyleName: 'throw'
91
- };
92
- var _default = optionsDefaults;
93
- exports["default"] = _default;
94
-
95
-
96
- });
97
-
98
- var getClassName = createCommonjsModule(function (module, exports) {
99
-
100
- Object.defineProperty(exports, "__esModule", {
101
- value: true
102
- });
103
- exports["default"] = void 0;
104
-
105
- var _optionsDefaults = _interopRequireDefault(optionsDefaults_1);
106
-
107
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
108
-
109
- var isNamespacedStyleName = function isNamespacedStyleName(styleName) {
110
- return styleName.indexOf('.') !== -1;
111
- };
112
-
113
- var handleError = function handleError(message, handleMissingStyleName) {
114
- if (handleMissingStyleName === 'throw') {
115
- throw new Error(message);
116
- } else if (handleMissingStyleName === 'warn') {
117
- // eslint-disable-next-line no-console
118
- console.warn(message);
119
- }
120
-
121
- return null;
122
- };
123
-
124
- var getClassNameForNamespacedStyleName = function getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
125
- // Note:
126
- // Do not use the desctructing syntax with Babel.
127
- // Desctructing adds _slicedToArray helper.
128
- var styleNameParts = styleName.split('.');
129
- var importName = styleNameParts[0];
130
- var moduleName = styleNameParts[1];
131
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
132
-
133
- if (!moduleName) {
134
- return handleError('Invalid style name: ' + styleName, handleMissingStyleName);
135
- }
136
-
137
- if (!styleModuleImportMap[importName]) {
138
- return handleError('CSS module import does not exist: ' + importName, handleMissingStyleName);
139
- }
140
-
141
- if (!styleModuleImportMap[importName][moduleName]) {
142
- return handleError('CSS module does not exist: ' + moduleName, handleMissingStyleName);
143
- }
144
-
145
- return styleModuleImportMap[importName][moduleName];
146
- };
147
-
148
- var getClassNameFromMultipleImports = function getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
149
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
150
- var importKeysWithMatches = Object.keys(styleModuleImportMap).map(function (importKey) {
151
- return styleModuleImportMap[importKey][styleName] && importKey;
152
- }).filter(function (importKey) {
153
- return importKey;
154
- });
155
-
156
- if (importKeysWithMatches.length > 1) {
157
- throw new Error('Cannot resolve styleName "' + styleName + '" because it is present in multiple imports:' + '\n\n\t' + importKeysWithMatches.join('\n\t') + '\n\nYou can resolve this by using a named import, e.g:' + '\n\n\timport foo from "' + importKeysWithMatches[0] + '";' + '\n\t<div styleName="foo.' + styleName + '" />' + '\n\n');
158
- }
159
-
160
- if (importKeysWithMatches.length === 0) {
161
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
162
- }
163
-
164
- return styleModuleImportMap[importKeysWithMatches[0]][styleName];
165
- };
166
-
167
- var _default = function _default(styleNameValue, styleModuleImportMap, options) {
168
- var styleModuleImportMapKeys = Object.keys(styleModuleImportMap);
169
-
170
- var _ref = options || {},
171
- _ref$handleMissingSty = _ref.handleMissingStyleName,
172
- handleMissingStyleName = _ref$handleMissingSty === void 0 ? _optionsDefaults["default"].handleMissingStyleName : _ref$handleMissingSty,
173
- _ref$autoResolveMulti = _ref.autoResolveMultipleImports,
174
- autoResolveMultipleImports = _ref$autoResolveMulti === void 0 ? _optionsDefaults["default"].autoResolveMultipleImports : _ref$autoResolveMulti;
175
-
176
- if (!styleNameValue) {
177
- return '';
178
- }
179
-
180
- return styleNameValue.split(' ').filter(function (styleName) {
181
- return styleName;
182
- }).map(function (styleName) {
183
- if (isNamespacedStyleName(styleName)) {
184
- return getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleName);
185
- }
186
-
187
- if (styleModuleImportMapKeys.length === 0) {
188
- throw new Error('Cannot use styleName attribute for style name \'' + styleName + '\' without importing at least one stylesheet.');
189
- }
190
-
191
- if (styleModuleImportMapKeys.length > 1) {
192
- if (!autoResolveMultipleImports) {
193
- throw new Error('Cannot use anonymous style name \'' + styleName + '\' with more than one stylesheet import without setting \'autoResolveMultipleImports\' to true.');
194
- }
195
-
196
- return getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleName);
197
- }
198
-
199
- var styleModuleMap = styleModuleImportMap[styleModuleImportMapKeys[0]];
200
-
201
- if (!styleModuleMap[styleName]) {
202
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
203
- }
204
-
205
- return styleModuleMap[styleName];
206
- }).filter(function (className) {
207
- // Remove any styles which could not be found (if handleMissingStyleName === 'ignore')
208
- return className;
209
- }).join(' ');
210
- };
211
-
212
- exports["default"] = _default;
213
-
214
-
215
- });
216
-
217
- var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
218
-
219
- /**
220
- * Checks if `value` is classified as an `Array` object.
221
- *
222
- * @static
223
- * @memberOf _
224
- * @since 0.1.0
225
- * @category Lang
226
- * @param {*} value The value to check.
227
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
228
- * @example
229
- *
230
- * _.isArray([1, 2, 3]);
231
- * // => true
232
- *
233
- * _.isArray(document.body.children);
234
- * // => false
235
- *
236
- * _.isArray('abc');
237
- * // => false
238
- *
239
- * _.isArray(_.noop);
240
- * // => false
241
- */
242
- var isArray = Array.isArray;
243
-
244
- var isArray_1 = isArray;
245
-
246
- /** Detect free variable `global` from Node.js. */
247
-
248
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
249
-
250
- var _freeGlobal = freeGlobal;
251
-
252
- /** Detect free variable `self`. */
253
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
254
-
255
- /** Used as a reference to the global object. */
256
- var root = _freeGlobal || freeSelf || Function('return this')();
257
-
258
- var _root = root;
259
-
260
- /** Built-in value references. */
261
- var Symbol$1 = _root.Symbol;
262
-
263
- var _Symbol = Symbol$1;
264
-
265
- /** Used for built-in method references. */
266
- var objectProto$4 = Object.prototype;
267
-
268
- /** Used to check objects for own properties. */
269
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
270
-
271
- /**
272
- * Used to resolve the
273
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
274
- * of values.
275
- */
276
- var nativeObjectToString$1 = objectProto$4.toString;
277
-
278
- /** Built-in value references. */
279
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
280
-
281
- /**
282
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
283
- *
284
- * @private
285
- * @param {*} value The value to query.
286
- * @returns {string} Returns the raw `toStringTag`.
287
- */
288
- function getRawTag(value) {
289
- var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
290
- tag = value[symToStringTag$1];
291
-
292
- try {
293
- value[symToStringTag$1] = undefined;
294
- var unmasked = true;
295
- } catch (e) {}
296
-
297
- var result = nativeObjectToString$1.call(value);
298
- if (unmasked) {
299
- if (isOwn) {
300
- value[symToStringTag$1] = tag;
301
- } else {
302
- delete value[symToStringTag$1];
303
- }
304
- }
305
- return result;
306
- }
307
-
308
- var _getRawTag = getRawTag;
309
-
310
- /** Used for built-in method references. */
311
- var objectProto$3 = Object.prototype;
312
-
313
- /**
314
- * Used to resolve the
315
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
316
- * of values.
317
- */
318
- var nativeObjectToString = objectProto$3.toString;
319
-
320
- /**
321
- * Converts `value` to a string using `Object.prototype.toString`.
322
- *
323
- * @private
324
- * @param {*} value The value to convert.
325
- * @returns {string} Returns the converted string.
326
- */
327
- function objectToString(value) {
328
- return nativeObjectToString.call(value);
329
- }
330
-
331
- var _objectToString = objectToString;
332
-
333
- /** `Object#toString` result references. */
334
- var nullTag = '[object Null]',
335
- undefinedTag = '[object Undefined]';
336
-
337
- /** Built-in value references. */
338
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
339
-
340
- /**
341
- * The base implementation of `getTag` without fallbacks for buggy environments.
342
- *
343
- * @private
344
- * @param {*} value The value to query.
345
- * @returns {string} Returns the `toStringTag`.
346
- */
347
- function baseGetTag(value) {
348
- if (value == null) {
349
- return value === undefined ? undefinedTag : nullTag;
350
- }
351
- return (symToStringTag && symToStringTag in Object(value))
352
- ? _getRawTag(value)
353
- : _objectToString(value);
354
- }
355
-
356
- var _baseGetTag = baseGetTag;
357
-
358
- /**
359
- * Checks if `value` is object-like. A value is object-like if it's not `null`
360
- * and has a `typeof` result of "object".
361
- *
362
- * @static
363
- * @memberOf _
364
- * @since 4.0.0
365
- * @category Lang
366
- * @param {*} value The value to check.
367
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
368
- * @example
369
- *
370
- * _.isObjectLike({});
371
- * // => true
372
- *
373
- * _.isObjectLike([1, 2, 3]);
374
- * // => true
375
- *
376
- * _.isObjectLike(_.noop);
377
- * // => false
378
- *
379
- * _.isObjectLike(null);
380
- * // => false
381
- */
382
- function isObjectLike(value) {
383
- return value != null && typeof value == 'object';
384
- }
385
-
386
- var isObjectLike_1 = isObjectLike;
387
-
388
- /** `Object#toString` result references. */
389
- var symbolTag = '[object Symbol]';
390
-
391
- /**
392
- * Checks if `value` is classified as a `Symbol` primitive or object.
393
- *
394
- * @static
395
- * @memberOf _
396
- * @since 4.0.0
397
- * @category Lang
398
- * @param {*} value The value to check.
399
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
400
- * @example
401
- *
402
- * _.isSymbol(Symbol.iterator);
403
- * // => true
404
- *
405
- * _.isSymbol('abc');
406
- * // => false
407
- */
408
- function isSymbol(value) {
409
- return typeof value == 'symbol' ||
410
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
411
- }
412
-
413
- var isSymbol_1 = isSymbol;
414
-
415
- /** Used to match property names within property paths. */
416
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
417
- reIsPlainProp = /^\w*$/;
418
-
419
- /**
420
- * Checks if `value` is a property name and not a property path.
421
- *
422
- * @private
423
- * @param {*} value The value to check.
424
- * @param {Object} [object] The object to query keys on.
425
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
426
- */
427
- function isKey(value, object) {
428
- if (isArray_1(value)) {
429
- return false;
430
- }
431
- var type = typeof value;
432
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
433
- value == null || isSymbol_1(value)) {
434
- return true;
435
- }
436
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
437
- (object != null && value in Object(object));
438
- }
439
-
440
- var _isKey = isKey;
441
-
442
- /**
443
- * Checks if `value` is the
444
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
445
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
446
- *
447
- * @static
448
- * @memberOf _
449
- * @since 0.1.0
450
- * @category Lang
451
- * @param {*} value The value to check.
452
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
453
- * @example
454
- *
455
- * _.isObject({});
456
- * // => true
457
- *
458
- * _.isObject([1, 2, 3]);
459
- * // => true
460
- *
461
- * _.isObject(_.noop);
462
- * // => true
463
- *
464
- * _.isObject(null);
465
- * // => false
466
- */
467
- function isObject(value) {
468
- var type = typeof value;
469
- return value != null && (type == 'object' || type == 'function');
470
- }
471
-
472
- var isObject_1 = isObject;
473
-
474
- /** `Object#toString` result references. */
475
- var asyncTag = '[object AsyncFunction]',
476
- funcTag = '[object Function]',
477
- genTag = '[object GeneratorFunction]',
478
- proxyTag = '[object Proxy]';
479
-
480
- /**
481
- * Checks if `value` is classified as a `Function` object.
482
- *
483
- * @static
484
- * @memberOf _
485
- * @since 0.1.0
486
- * @category Lang
487
- * @param {*} value The value to check.
488
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
489
- * @example
490
- *
491
- * _.isFunction(_);
492
- * // => true
493
- *
494
- * _.isFunction(/abc/);
495
- * // => false
496
- */
497
- function isFunction(value) {
498
- if (!isObject_1(value)) {
499
- return false;
500
- }
501
- // The use of `Object#toString` avoids issues with the `typeof` operator
502
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
503
- var tag = _baseGetTag(value);
504
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
505
- }
506
-
507
- var isFunction_1 = isFunction;
508
-
509
- /** Used to detect overreaching core-js shims. */
510
- var coreJsData = _root['__core-js_shared__'];
511
-
512
- var _coreJsData = coreJsData;
513
-
514
- /** Used to detect methods masquerading as native. */
515
- var maskSrcKey = (function() {
516
- var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
517
- return uid ? ('Symbol(src)_1.' + uid) : '';
518
- }());
519
-
520
- /**
521
- * Checks if `func` has its source masked.
522
- *
523
- * @private
524
- * @param {Function} func The function to check.
525
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
526
- */
527
- function isMasked(func) {
528
- return !!maskSrcKey && (maskSrcKey in func);
529
- }
530
-
531
- var _isMasked = isMasked;
532
-
533
- /** Used for built-in method references. */
534
- var funcProto$1 = Function.prototype;
535
-
536
- /** Used to resolve the decompiled source of functions. */
537
- var funcToString$1 = funcProto$1.toString;
538
-
539
- /**
540
- * Converts `func` to its source code.
541
- *
542
- * @private
543
- * @param {Function} func The function to convert.
544
- * @returns {string} Returns the source code.
545
- */
546
- function toSource(func) {
547
- if (func != null) {
548
- try {
549
- return funcToString$1.call(func);
550
- } catch (e) {}
551
- try {
552
- return (func + '');
553
- } catch (e) {}
554
- }
555
- return '';
556
- }
557
-
558
- var _toSource = toSource;
559
-
560
- /**
561
- * Used to match `RegExp`
562
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
563
- */
564
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
565
-
566
- /** Used to detect host constructors (Safari). */
567
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
568
-
569
- /** Used for built-in method references. */
570
- var funcProto = Function.prototype,
571
- objectProto$2 = Object.prototype;
572
-
573
- /** Used to resolve the decompiled source of functions. */
574
- var funcToString = funcProto.toString;
575
-
576
- /** Used to check objects for own properties. */
577
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
578
-
579
- /** Used to detect if a method is native. */
580
- var reIsNative = RegExp('^' +
581
- funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
582
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
583
- );
584
-
585
- /**
586
- * The base implementation of `_.isNative` without bad shim checks.
587
- *
588
- * @private
589
- * @param {*} value The value to check.
590
- * @returns {boolean} Returns `true` if `value` is a native function,
591
- * else `false`.
592
- */
593
- function baseIsNative(value) {
594
- if (!isObject_1(value) || _isMasked(value)) {
595
- return false;
596
- }
597
- var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
598
- return pattern.test(_toSource(value));
599
- }
600
-
601
- var _baseIsNative = baseIsNative;
602
-
603
- /**
604
- * Gets the value at `key` of `object`.
605
- *
606
- * @private
607
- * @param {Object} [object] The object to query.
608
- * @param {string} key The key of the property to get.
609
- * @returns {*} Returns the property value.
610
- */
611
- function getValue(object, key) {
612
- return object == null ? undefined : object[key];
613
- }
614
-
615
- var _getValue = getValue;
616
-
617
- /**
618
- * Gets the native function at `key` of `object`.
619
- *
620
- * @private
621
- * @param {Object} object The object to query.
622
- * @param {string} key The key of the method to get.
623
- * @returns {*} Returns the function if it's native, else `undefined`.
624
- */
625
- function getNative(object, key) {
626
- var value = _getValue(object, key);
627
- return _baseIsNative(value) ? value : undefined;
628
- }
629
-
630
- var _getNative = getNative;
631
-
632
- /* Built-in method references that are verified to be native. */
633
- var nativeCreate = _getNative(Object, 'create');
634
-
635
- var _nativeCreate = nativeCreate;
636
-
637
- /**
638
- * Removes all key-value entries from the hash.
639
- *
640
- * @private
641
- * @name clear
642
- * @memberOf Hash
643
- */
644
- function hashClear() {
645
- this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
646
- this.size = 0;
647
- }
648
-
649
- var _hashClear = hashClear;
650
-
651
- /**
652
- * Removes `key` and its value from the hash.
653
- *
654
- * @private
655
- * @name delete
656
- * @memberOf Hash
657
- * @param {Object} hash The hash to modify.
658
- * @param {string} key The key of the value to remove.
659
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
660
- */
661
- function hashDelete(key) {
662
- var result = this.has(key) && delete this.__data__[key];
663
- this.size -= result ? 1 : 0;
664
- return result;
665
- }
666
-
667
- var _hashDelete = hashDelete;
668
-
669
- /** Used to stand-in for `undefined` hash values. */
670
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
671
-
672
- /** Used for built-in method references. */
673
- var objectProto$1 = Object.prototype;
674
-
675
- /** Used to check objects for own properties. */
676
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
677
-
678
- /**
679
- * Gets the hash value for `key`.
680
- *
681
- * @private
682
- * @name get
683
- * @memberOf Hash
684
- * @param {string} key The key of the value to get.
685
- * @returns {*} Returns the entry value.
686
- */
687
- function hashGet(key) {
688
- var data = this.__data__;
689
- if (_nativeCreate) {
690
- var result = data[key];
691
- return result === HASH_UNDEFINED$1 ? undefined : result;
692
- }
693
- return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
694
- }
695
-
696
- var _hashGet = hashGet;
697
-
698
- /** Used for built-in method references. */
699
- var objectProto = Object.prototype;
700
-
701
- /** Used to check objects for own properties. */
702
- var hasOwnProperty = objectProto.hasOwnProperty;
703
-
704
- /**
705
- * Checks if a hash value for `key` exists.
706
- *
707
- * @private
708
- * @name has
709
- * @memberOf Hash
710
- * @param {string} key The key of the entry to check.
711
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
712
- */
713
- function hashHas(key) {
714
- var data = this.__data__;
715
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
716
- }
717
-
718
- var _hashHas = hashHas;
719
-
720
- /** Used to stand-in for `undefined` hash values. */
721
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
722
-
723
- /**
724
- * Sets the hash `key` to `value`.
725
- *
726
- * @private
727
- * @name set
728
- * @memberOf Hash
729
- * @param {string} key The key of the value to set.
730
- * @param {*} value The value to set.
731
- * @returns {Object} Returns the hash instance.
732
- */
733
- function hashSet(key, value) {
734
- var data = this.__data__;
735
- this.size += this.has(key) ? 0 : 1;
736
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
737
- return this;
738
- }
739
-
740
- var _hashSet = hashSet;
741
-
742
- /**
743
- * Creates a hash object.
744
- *
745
- * @private
746
- * @constructor
747
- * @param {Array} [entries] The key-value pairs to cache.
748
- */
749
- function Hash(entries) {
750
- var index = -1,
751
- length = entries == null ? 0 : entries.length;
752
-
753
- this.clear();
754
- while (++index < length) {
755
- var entry = entries[index];
756
- this.set(entry[0], entry[1]);
757
- }
758
- }
759
-
760
- // Add methods to `Hash`.
761
- Hash.prototype.clear = _hashClear;
762
- Hash.prototype['delete'] = _hashDelete;
763
- Hash.prototype.get = _hashGet;
764
- Hash.prototype.has = _hashHas;
765
- Hash.prototype.set = _hashSet;
766
-
767
- var _Hash = Hash;
768
-
769
- /**
770
- * Removes all key-value entries from the list cache.
771
- *
772
- * @private
773
- * @name clear
774
- * @memberOf ListCache
775
- */
776
- function listCacheClear() {
777
- this.__data__ = [];
778
- this.size = 0;
779
- }
780
-
781
- var _listCacheClear = listCacheClear;
782
-
783
- /**
784
- * Performs a
785
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
786
- * comparison between two values to determine if they are equivalent.
787
- *
788
- * @static
789
- * @memberOf _
790
- * @since 4.0.0
791
- * @category Lang
792
- * @param {*} value The value to compare.
793
- * @param {*} other The other value to compare.
794
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
795
- * @example
796
- *
797
- * var object = { 'a': 1 };
798
- * var other = { 'a': 1 };
799
- *
800
- * _.eq(object, object);
801
- * // => true
802
- *
803
- * _.eq(object, other);
804
- * // => false
805
- *
806
- * _.eq('a', 'a');
807
- * // => true
808
- *
809
- * _.eq('a', Object('a'));
810
- * // => false
811
- *
812
- * _.eq(NaN, NaN);
813
- * // => true
814
- */
815
- function eq(value, other) {
816
- return value === other || (value !== value && other !== other);
817
- }
818
-
819
- var eq_1 = eq;
820
-
821
- /**
822
- * Gets the index at which the `key` is found in `array` of key-value pairs.
823
- *
824
- * @private
825
- * @param {Array} array The array to inspect.
826
- * @param {*} key The key to search for.
827
- * @returns {number} Returns the index of the matched value, else `-1`.
828
- */
829
- function assocIndexOf(array, key) {
830
- var length = array.length;
831
- while (length--) {
832
- if (eq_1(array[length][0], key)) {
833
- return length;
834
- }
835
- }
836
- return -1;
837
- }
838
-
839
- var _assocIndexOf = assocIndexOf;
840
-
841
- /** Used for built-in method references. */
842
- var arrayProto = Array.prototype;
843
-
844
- /** Built-in value references. */
845
- var splice = arrayProto.splice;
846
-
847
- /**
848
- * Removes `key` and its value from the list cache.
849
- *
850
- * @private
851
- * @name delete
852
- * @memberOf ListCache
853
- * @param {string} key The key of the value to remove.
854
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
855
- */
856
- function listCacheDelete(key) {
857
- var data = this.__data__,
858
- index = _assocIndexOf(data, key);
859
-
860
- if (index < 0) {
861
- return false;
862
- }
863
- var lastIndex = data.length - 1;
864
- if (index == lastIndex) {
865
- data.pop();
866
- } else {
867
- splice.call(data, index, 1);
868
- }
869
- --this.size;
870
- return true;
871
- }
872
-
873
- var _listCacheDelete = listCacheDelete;
874
-
875
- /**
876
- * Gets the list cache value for `key`.
877
- *
878
- * @private
879
- * @name get
880
- * @memberOf ListCache
881
- * @param {string} key The key of the value to get.
882
- * @returns {*} Returns the entry value.
883
- */
884
- function listCacheGet(key) {
885
- var data = this.__data__,
886
- index = _assocIndexOf(data, key);
887
-
888
- return index < 0 ? undefined : data[index][1];
889
- }
890
-
891
- var _listCacheGet = listCacheGet;
892
-
893
- /**
894
- * Checks if a list cache value for `key` exists.
895
- *
896
- * @private
897
- * @name has
898
- * @memberOf ListCache
899
- * @param {string} key The key of the entry to check.
900
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
901
- */
902
- function listCacheHas(key) {
903
- return _assocIndexOf(this.__data__, key) > -1;
904
- }
905
-
906
- var _listCacheHas = listCacheHas;
907
-
908
- /**
909
- * Sets the list cache `key` to `value`.
910
- *
911
- * @private
912
- * @name set
913
- * @memberOf ListCache
914
- * @param {string} key The key of the value to set.
915
- * @param {*} value The value to set.
916
- * @returns {Object} Returns the list cache instance.
917
- */
918
- function listCacheSet(key, value) {
919
- var data = this.__data__,
920
- index = _assocIndexOf(data, key);
921
-
922
- if (index < 0) {
923
- ++this.size;
924
- data.push([key, value]);
925
- } else {
926
- data[index][1] = value;
927
- }
928
- return this;
929
- }
930
-
931
- var _listCacheSet = listCacheSet;
932
-
933
- /**
934
- * Creates an list cache object.
935
- *
936
- * @private
937
- * @constructor
938
- * @param {Array} [entries] The key-value pairs to cache.
939
- */
940
- function ListCache(entries) {
941
- var index = -1,
942
- length = entries == null ? 0 : entries.length;
943
-
944
- this.clear();
945
- while (++index < length) {
946
- var entry = entries[index];
947
- this.set(entry[0], entry[1]);
948
- }
949
- }
950
-
951
- // Add methods to `ListCache`.
952
- ListCache.prototype.clear = _listCacheClear;
953
- ListCache.prototype['delete'] = _listCacheDelete;
954
- ListCache.prototype.get = _listCacheGet;
955
- ListCache.prototype.has = _listCacheHas;
956
- ListCache.prototype.set = _listCacheSet;
957
-
958
- var _ListCache = ListCache;
959
-
960
- /* Built-in method references that are verified to be native. */
961
- var Map = _getNative(_root, 'Map');
962
-
963
- var _Map = Map;
964
-
965
- /**
966
- * Removes all key-value entries from the map.
967
- *
968
- * @private
969
- * @name clear
970
- * @memberOf MapCache
971
- */
972
- function mapCacheClear() {
973
- this.size = 0;
974
- this.__data__ = {
975
- 'hash': new _Hash,
976
- 'map': new (_Map || _ListCache),
977
- 'string': new _Hash
978
- };
979
- }
980
-
981
- var _mapCacheClear = mapCacheClear;
982
-
983
- /**
984
- * Checks if `value` is suitable for use as unique object key.
985
- *
986
- * @private
987
- * @param {*} value The value to check.
988
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
989
- */
990
- function isKeyable(value) {
991
- var type = typeof value;
992
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
993
- ? (value !== '__proto__')
994
- : (value === null);
995
- }
996
-
997
- var _isKeyable = isKeyable;
998
-
999
- /**
1000
- * Gets the data for `map`.
1001
- *
1002
- * @private
1003
- * @param {Object} map The map to query.
1004
- * @param {string} key The reference key.
1005
- * @returns {*} Returns the map data.
1006
- */
1007
- function getMapData(map, key) {
1008
- var data = map.__data__;
1009
- return _isKeyable(key)
1010
- ? data[typeof key == 'string' ? 'string' : 'hash']
1011
- : data.map;
1012
- }
1013
-
1014
- var _getMapData = getMapData;
1015
-
1016
- /**
1017
- * Removes `key` and its value from the map.
1018
- *
1019
- * @private
1020
- * @name delete
1021
- * @memberOf MapCache
1022
- * @param {string} key The key of the value to remove.
1023
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1024
- */
1025
- function mapCacheDelete(key) {
1026
- var result = _getMapData(this, key)['delete'](key);
1027
- this.size -= result ? 1 : 0;
1028
- return result;
1029
- }
1030
-
1031
- var _mapCacheDelete = mapCacheDelete;
1032
-
1033
- /**
1034
- * Gets the map value for `key`.
1035
- *
1036
- * @private
1037
- * @name get
1038
- * @memberOf MapCache
1039
- * @param {string} key The key of the value to get.
1040
- * @returns {*} Returns the entry value.
1041
- */
1042
- function mapCacheGet(key) {
1043
- return _getMapData(this, key).get(key);
1044
- }
1045
-
1046
- var _mapCacheGet = mapCacheGet;
1047
-
1048
- /**
1049
- * Checks if a map value for `key` exists.
1050
- *
1051
- * @private
1052
- * @name has
1053
- * @memberOf MapCache
1054
- * @param {string} key The key of the entry to check.
1055
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1056
- */
1057
- function mapCacheHas(key) {
1058
- return _getMapData(this, key).has(key);
1059
- }
1060
-
1061
- var _mapCacheHas = mapCacheHas;
1062
-
1063
- /**
1064
- * Sets the map `key` to `value`.
1065
- *
1066
- * @private
1067
- * @name set
1068
- * @memberOf MapCache
1069
- * @param {string} key The key of the value to set.
1070
- * @param {*} value The value to set.
1071
- * @returns {Object} Returns the map cache instance.
1072
- */
1073
- function mapCacheSet(key, value) {
1074
- var data = _getMapData(this, key),
1075
- size = data.size;
1076
-
1077
- data.set(key, value);
1078
- this.size += data.size == size ? 0 : 1;
1079
- return this;
1080
- }
1081
-
1082
- var _mapCacheSet = mapCacheSet;
1083
-
1084
- /**
1085
- * Creates a map cache object to store key-value pairs.
1086
- *
1087
- * @private
1088
- * @constructor
1089
- * @param {Array} [entries] The key-value pairs to cache.
1090
- */
1091
- function MapCache(entries) {
1092
- var index = -1,
1093
- length = entries == null ? 0 : entries.length;
1094
-
1095
- this.clear();
1096
- while (++index < length) {
1097
- var entry = entries[index];
1098
- this.set(entry[0], entry[1]);
1099
- }
1100
- }
1101
-
1102
- // Add methods to `MapCache`.
1103
- MapCache.prototype.clear = _mapCacheClear;
1104
- MapCache.prototype['delete'] = _mapCacheDelete;
1105
- MapCache.prototype.get = _mapCacheGet;
1106
- MapCache.prototype.has = _mapCacheHas;
1107
- MapCache.prototype.set = _mapCacheSet;
1108
-
1109
- var _MapCache = MapCache;
1110
-
1111
- /** Error message constants. */
1112
- var FUNC_ERROR_TEXT = 'Expected a function';
1113
-
1114
- /**
1115
- * Creates a function that memoizes the result of `func`. If `resolver` is
1116
- * provided, it determines the cache key for storing the result based on the
1117
- * arguments provided to the memoized function. By default, the first argument
1118
- * provided to the memoized function is used as the map cache key. The `func`
1119
- * is invoked with the `this` binding of the memoized function.
1120
- *
1121
- * **Note:** The cache is exposed as the `cache` property on the memoized
1122
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
1123
- * constructor with one whose instances implement the
1124
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
1125
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
1126
- *
1127
- * @static
1128
- * @memberOf _
1129
- * @since 0.1.0
1130
- * @category Function
1131
- * @param {Function} func The function to have its output memoized.
1132
- * @param {Function} [resolver] The function to resolve the cache key.
1133
- * @returns {Function} Returns the new memoized function.
1134
- * @example
1135
- *
1136
- * var object = { 'a': 1, 'b': 2 };
1137
- * var other = { 'c': 3, 'd': 4 };
1138
- *
1139
- * var values = _.memoize(_.values);
1140
- * values(object);
1141
- * // => [1, 2]
1142
- *
1143
- * values(other);
1144
- * // => [3, 4]
1145
- *
1146
- * object.a = 2;
1147
- * values(object);
1148
- * // => [1, 2]
1149
- *
1150
- * // Modify the result cache.
1151
- * values.cache.set(object, ['a', 'b']);
1152
- * values(object);
1153
- * // => ['a', 'b']
1154
- *
1155
- * // Replace `_.memoize.Cache`.
1156
- * _.memoize.Cache = WeakMap;
1157
- */
1158
- function memoize(func, resolver) {
1159
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
1160
- throw new TypeError(FUNC_ERROR_TEXT);
1161
- }
1162
- var memoized = function() {
1163
- var args = arguments,
1164
- key = resolver ? resolver.apply(this, args) : args[0],
1165
- cache = memoized.cache;
1166
-
1167
- if (cache.has(key)) {
1168
- return cache.get(key);
1169
- }
1170
- var result = func.apply(this, args);
1171
- memoized.cache = cache.set(key, result) || cache;
1172
- return result;
1173
- };
1174
- memoized.cache = new (memoize.Cache || _MapCache);
1175
- return memoized;
1176
- }
1177
-
1178
- // Expose `MapCache`.
1179
- memoize.Cache = _MapCache;
1180
-
1181
- var memoize_1 = memoize;
1182
-
1183
- /** Used as the maximum memoize cache size. */
1184
- var MAX_MEMOIZE_SIZE = 500;
1185
-
1186
- /**
1187
- * A specialized version of `_.memoize` which clears the memoized function's
1188
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1189
- *
1190
- * @private
1191
- * @param {Function} func The function to have its output memoized.
1192
- * @returns {Function} Returns the new memoized function.
1193
- */
1194
- function memoizeCapped(func) {
1195
- var result = memoize_1(func, function(key) {
1196
- if (cache.size === MAX_MEMOIZE_SIZE) {
1197
- cache.clear();
1198
- }
1199
- return key;
1200
- });
1201
-
1202
- var cache = result.cache;
1203
- return result;
1204
- }
1205
-
1206
- var _memoizeCapped = memoizeCapped;
1207
-
1208
- /** Used to match property names within property paths. */
1209
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1210
-
1211
- /** Used to match backslashes in property paths. */
1212
- var reEscapeChar = /\\(\\)?/g;
1213
-
1214
- /**
1215
- * Converts `string` to a property path array.
1216
- *
1217
- * @private
1218
- * @param {string} string The string to convert.
1219
- * @returns {Array} Returns the property path array.
1220
- */
1221
- var stringToPath = _memoizeCapped(function(string) {
1222
- var result = [];
1223
- if (string.charCodeAt(0) === 46 /* . */) {
1224
- result.push('');
1225
- }
1226
- string.replace(rePropName, function(match, number, quote, subString) {
1227
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1228
- });
1229
- return result;
1230
- });
1231
-
1232
- var _stringToPath = stringToPath;
1233
-
1234
- /**
1235
- * A specialized version of `_.map` for arrays without support for iteratee
1236
- * shorthands.
1237
- *
1238
- * @private
1239
- * @param {Array} [array] The array to iterate over.
1240
- * @param {Function} iteratee The function invoked per iteration.
1241
- * @returns {Array} Returns the new mapped array.
1242
- */
1243
- function arrayMap(array, iteratee) {
1244
- var index = -1,
1245
- length = array == null ? 0 : array.length,
1246
- result = Array(length);
1247
-
1248
- while (++index < length) {
1249
- result[index] = iteratee(array[index], index, array);
1250
- }
1251
- return result;
1252
- }
1253
-
1254
- var _arrayMap = arrayMap;
1255
-
1256
- /** Used as references for various `Number` constants. */
1257
- var INFINITY$1 = 1 / 0;
1258
-
1259
- /** Used to convert symbols to primitives and strings. */
1260
- var symbolProto = _Symbol ? _Symbol.prototype : undefined,
1261
- symbolToString = symbolProto ? symbolProto.toString : undefined;
1262
-
1263
- /**
1264
- * The base implementation of `_.toString` which doesn't convert nullish
1265
- * values to empty strings.
1266
- *
1267
- * @private
1268
- * @param {*} value The value to process.
1269
- * @returns {string} Returns the string.
1270
- */
1271
- function baseToString(value) {
1272
- // Exit early for strings to avoid a performance hit in some environments.
1273
- if (typeof value == 'string') {
1274
- return value;
1275
- }
1276
- if (isArray_1(value)) {
1277
- // Recursively convert values (susceptible to call stack limits).
1278
- return _arrayMap(value, baseToString) + '';
1279
- }
1280
- if (isSymbol_1(value)) {
1281
- return symbolToString ? symbolToString.call(value) : '';
1282
- }
1283
- var result = (value + '');
1284
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
1285
- }
1286
-
1287
- var _baseToString = baseToString;
1288
-
1289
- /**
1290
- * Converts `value` to a string. An empty string is returned for `null`
1291
- * and `undefined` values. The sign of `-0` is preserved.
1292
- *
1293
- * @static
1294
- * @memberOf _
1295
- * @since 4.0.0
1296
- * @category Lang
1297
- * @param {*} value The value to convert.
1298
- * @returns {string} Returns the converted string.
1299
- * @example
1300
- *
1301
- * _.toString(null);
1302
- * // => ''
1303
- *
1304
- * _.toString(-0);
1305
- * // => '-0'
1306
- *
1307
- * _.toString([1, 2, 3]);
1308
- * // => '1,2,3'
1309
- */
1310
- function toString(value) {
1311
- return value == null ? '' : _baseToString(value);
1312
- }
1313
-
1314
- var toString_1 = toString;
1315
-
1316
- /**
1317
- * Casts `value` to a path array if it's not one.
1318
- *
1319
- * @private
1320
- * @param {*} value The value to inspect.
1321
- * @param {Object} [object] The object to query keys on.
1322
- * @returns {Array} Returns the cast property path array.
1323
- */
1324
- function castPath(value, object) {
1325
- if (isArray_1(value)) {
1326
- return value;
1327
- }
1328
- return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
1329
- }
1330
-
1331
- var _castPath = castPath;
1332
-
1333
- /** Used as references for various `Number` constants. */
1334
- var INFINITY = 1 / 0;
1335
-
1336
- /**
1337
- * Converts `value` to a string key if it's not a string or symbol.
1338
- *
1339
- * @private
1340
- * @param {*} value The value to inspect.
1341
- * @returns {string|symbol} Returns the key.
1342
- */
1343
- function toKey(value) {
1344
- if (typeof value == 'string' || isSymbol_1(value)) {
1345
- return value;
1346
- }
1347
- var result = (value + '');
1348
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
1349
- }
1350
-
1351
- var _toKey = toKey;
1352
-
1353
- /**
1354
- * The base implementation of `_.get` without support for default values.
1355
- *
1356
- * @private
1357
- * @param {Object} object The object to query.
1358
- * @param {Array|string} path The path of the property to get.
1359
- * @returns {*} Returns the resolved value.
1360
- */
1361
- function baseGet(object, path) {
1362
- path = _castPath(path, object);
1363
-
1364
- var index = 0,
1365
- length = path.length;
1366
-
1367
- while (object != null && index < length) {
1368
- object = object[_toKey(path[index++])];
1369
- }
1370
- return (index && index == length) ? object : undefined;
1371
- }
1372
-
1373
- var _baseGet = baseGet;
1374
-
1375
- /**
1376
- * Gets the value at `path` of `object`. If the resolved value is
1377
- * `undefined`, the `defaultValue` is returned in its place.
1378
- *
1379
- * @static
1380
- * @memberOf _
1381
- * @since 3.7.0
1382
- * @category Object
1383
- * @param {Object} object The object to query.
1384
- * @param {Array|string} path The path of the property to get.
1385
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
1386
- * @returns {*} Returns the resolved value.
1387
- * @example
1388
- *
1389
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
1390
- *
1391
- * _.get(object, 'a[0].b.c');
1392
- * // => 3
1393
- *
1394
- * _.get(object, ['a', '0', 'b', 'c']);
1395
- * // => 3
1396
- *
1397
- * _.get(object, 'a.b.c', 'default');
1398
- * // => 'default'
1399
- */
1400
- function get(object, path, defaultValue) {
1401
- var result = object == null ? undefined : _baseGet(object, path);
1402
- return result === undefined ? defaultValue : result;
1403
- }
1404
-
1405
- var get_1 = get;
1406
-
1407
- var _excluded$1 = ["element", "render"];
1408
- var withElementWrapper = function withElementWrapper(StoryElement) {
1409
- return function (props) {
1410
- var element = props.element,
1411
- render = props.render,
1412
- restProps = _objectWithoutProperties(props, _excluded$1);
1413
-
1414
- if (!element) return null;
1415
- if (render && typeof render === "function") return render(props);
1416
- return /*#__PURE__*/React__default["default"].createElement(StoryElement, _extends({}, restProps, {
1417
- element: element
1418
- }));
1419
- };
1420
- };
1421
- withElementWrapper.propTypes = {
1422
- StoryElement: PropTypes__default["default"].element
1423
- };
1424
-
1425
- var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
1426
- var _ref$width = _ref.width,
1427
- width = _ref$width === void 0 ? 40 : _ref$width,
1428
- _ref$height = _ref.height,
1429
- height = _ref$height === void 0 ? 30 : _ref$height,
1430
- _ref$iconColor = _ref.iconColor,
1431
- iconColor = _ref$iconColor === void 0 ? "#99B0CB" : _ref$iconColor;
1432
- return /*#__PURE__*/React__default["default"].createElement("svg", {
1433
- width: width,
1434
- height: height,
1435
- viewBox: "0 0 102 76",
1436
- version: "1.1"
1437
- }, /*#__PURE__*/React__default["default"].createElement("g", {
1438
- id: "demo-home-copy",
1439
- stroke: "none",
1440
- strokeWidth: "1",
1441
- fill: "none",
1442
- fillRule: "evenodd",
1443
- transform: "translate(-377.000000, -314.000000)"
1444
- }, /*#__PURE__*/React__default["default"].createElement("g", {
1445
- id: "Group-13",
1446
- transform: "translate(377.000000, 314.000000)"
1447
- }, /*#__PURE__*/React__default["default"].createElement("path", {
1448
- d: "M43.2,49.7 L62.2,19.2 L87.2,59.4 L17,59.4 L32.8,39.4 L43.2,49.7 Z M29.9,28.6 C25.8683213,28.6 22.6,25.3316787 22.6,21.3 C22.6,17.2683213 25.8683213,14 29.9,14 C33.9316787,14 37.2,17.2683213 37.2,21.3 C37.2,25.3316787 33.9316787,28.6 29.9,28.6 Z",
1449
- id: "Combined-Shape",
1450
- fill: iconColor,
1451
- fillRule: "nonzero"
1452
- }), /*#__PURE__*/React__default["default"].createElement("rect", {
1453
- id: "Rectangle-19",
1454
- stroke: iconColor,
1455
- strokeWidth: "3",
1456
- x: "1.5",
1457
- y: "1.5",
1458
- width: "99",
1459
- height: "73",
1460
- rx: "3"
1461
- }))));
1462
- };
1463
- ImageFallbackIcon.propTypes = {
1464
- width: PropTypes__default["default"].object,
1465
- height: PropTypes__default["default"].object,
1466
- iconColor: PropTypes__default["default"].object
1467
- };
1468
-
1469
- var imageFallback = function imageFallback() {
1470
- return /*#__PURE__*/React__default["default"].createElement("div", {
1471
- className: "arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"
1472
- }, /*#__PURE__*/React__default["default"].createElement("figure", {
1473
- className: "arr--fallback-svg fallback-m_fallback-svg__tK9fL"
1474
- }, /*#__PURE__*/React__default["default"].createElement(ImageFallbackIcon, null)));
1475
- };
1476
-
1477
- var FallbackImage = function FallbackImage(_ref) {
1478
- var slug = _ref.slug;
1479
-
1480
- if (slug) {
1481
- return /*#__PURE__*/React__default["default"].createElement(components.Link, {
1482
- href: slug,
1483
- "aria-label": "image-fallback"
1484
- }, imageFallback());
1485
- } else {
1486
- return imageFallback();
1487
- }
1488
- };
1489
- FallbackImage.propTypes = {
1490
- slug: PropTypes__default["default"].string
1491
- };
1492
-
1493
- function _typeof(obj) {
1494
- "@babel/helpers - typeof";
1495
-
1496
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1497
- return typeof obj;
1498
- } : function (obj) {
1499
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1500
- }, _typeof(obj);
1501
- }
1502
-
1503
- /**
1504
- * Copyright (c) 2014-present, Facebook, Inc.
1505
- *
1506
- * This source code is licensed under the MIT license found in the
1507
- * LICENSE file in the root directory of this source tree.
1508
- */
1509
-
1510
- createCommonjsModule(function (module) {
1511
- var runtime = (function (exports) {
1512
-
1513
- var Op = Object.prototype;
1514
- var hasOwn = Op.hasOwnProperty;
1515
- var undefined$1; // More compressible than void 0.
1516
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
1517
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
1518
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
1519
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
1520
-
1521
- function define(obj, key, value) {
1522
- Object.defineProperty(obj, key, {
1523
- value: value,
1524
- enumerable: true,
1525
- configurable: true,
1526
- writable: true
1527
- });
1528
- return obj[key];
1529
- }
1530
- try {
1531
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
1532
- define({}, "");
1533
- } catch (err) {
1534
- define = function(obj, key, value) {
1535
- return obj[key] = value;
1536
- };
1537
- }
1538
-
1539
- function wrap(innerFn, outerFn, self, tryLocsList) {
1540
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
1541
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
1542
- var generator = Object.create(protoGenerator.prototype);
1543
- var context = new Context(tryLocsList || []);
1544
-
1545
- // The ._invoke method unifies the implementations of the .next,
1546
- // .throw, and .return methods.
1547
- generator._invoke = makeInvokeMethod(innerFn, self, context);
1548
-
1549
- return generator;
1550
- }
1551
- exports.wrap = wrap;
1552
-
1553
- // Try/catch helper to minimize deoptimizations. Returns a completion
1554
- // record like context.tryEntries[i].completion. This interface could
1555
- // have been (and was previously) designed to take a closure to be
1556
- // invoked without arguments, but in all the cases we care about we
1557
- // already have an existing method we want to call, so there's no need
1558
- // to create a new function object. We can even get away with assuming
1559
- // the method takes exactly one argument, since that happens to be true
1560
- // in every case, so we don't have to touch the arguments object. The
1561
- // only additional allocation required is the completion record, which
1562
- // has a stable shape and so hopefully should be cheap to allocate.
1563
- function tryCatch(fn, obj, arg) {
1564
- try {
1565
- return { type: "normal", arg: fn.call(obj, arg) };
1566
- } catch (err) {
1567
- return { type: "throw", arg: err };
1568
- }
1569
- }
1570
-
1571
- var GenStateSuspendedStart = "suspendedStart";
1572
- var GenStateSuspendedYield = "suspendedYield";
1573
- var GenStateExecuting = "executing";
1574
- var GenStateCompleted = "completed";
1575
-
1576
- // Returning this object from the innerFn has the same effect as
1577
- // breaking out of the dispatch switch statement.
1578
- var ContinueSentinel = {};
1579
-
1580
- // Dummy constructor functions that we use as the .constructor and
1581
- // .constructor.prototype properties for functions that return Generator
1582
- // objects. For full spec compliance, you may wish to configure your
1583
- // minifier not to mangle the names of these two functions.
1584
- function Generator() {}
1585
- function GeneratorFunction() {}
1586
- function GeneratorFunctionPrototype() {}
1587
-
1588
- // This is a polyfill for %IteratorPrototype% for environments that
1589
- // don't natively support it.
1590
- var IteratorPrototype = {};
1591
- define(IteratorPrototype, iteratorSymbol, function () {
1592
- return this;
1593
- });
1594
-
1595
- var getProto = Object.getPrototypeOf;
1596
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
1597
- if (NativeIteratorPrototype &&
1598
- NativeIteratorPrototype !== Op &&
1599
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
1600
- // This environment has a native %IteratorPrototype%; use it instead
1601
- // of the polyfill.
1602
- IteratorPrototype = NativeIteratorPrototype;
1603
- }
1604
-
1605
- var Gp = GeneratorFunctionPrototype.prototype =
1606
- Generator.prototype = Object.create(IteratorPrototype);
1607
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
1608
- define(Gp, "constructor", GeneratorFunctionPrototype);
1609
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
1610
- GeneratorFunction.displayName = define(
1611
- GeneratorFunctionPrototype,
1612
- toStringTagSymbol,
1613
- "GeneratorFunction"
1614
- );
1615
-
1616
- // Helper for defining the .next, .throw, and .return methods of the
1617
- // Iterator interface in terms of a single ._invoke method.
1618
- function defineIteratorMethods(prototype) {
1619
- ["next", "throw", "return"].forEach(function(method) {
1620
- define(prototype, method, function(arg) {
1621
- return this._invoke(method, arg);
1622
- });
1623
- });
1624
- }
1625
-
1626
- exports.isGeneratorFunction = function(genFun) {
1627
- var ctor = typeof genFun === "function" && genFun.constructor;
1628
- return ctor
1629
- ? ctor === GeneratorFunction ||
1630
- // For the native GeneratorFunction constructor, the best we can
1631
- // do is to check its .name property.
1632
- (ctor.displayName || ctor.name) === "GeneratorFunction"
1633
- : false;
1634
- };
1635
-
1636
- exports.mark = function(genFun) {
1637
- if (Object.setPrototypeOf) {
1638
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
1639
- } else {
1640
- genFun.__proto__ = GeneratorFunctionPrototype;
1641
- define(genFun, toStringTagSymbol, "GeneratorFunction");
1642
- }
1643
- genFun.prototype = Object.create(Gp);
1644
- return genFun;
1645
- };
1646
-
1647
- // Within the body of any async function, `await x` is transformed to
1648
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
1649
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
1650
- // meant to be awaited.
1651
- exports.awrap = function(arg) {
1652
- return { __await: arg };
1653
- };
1654
-
1655
- function AsyncIterator(generator, PromiseImpl) {
1656
- function invoke(method, arg, resolve, reject) {
1657
- var record = tryCatch(generator[method], generator, arg);
1658
- if (record.type === "throw") {
1659
- reject(record.arg);
1660
- } else {
1661
- var result = record.arg;
1662
- var value = result.value;
1663
- if (value &&
1664
- typeof value === "object" &&
1665
- hasOwn.call(value, "__await")) {
1666
- return PromiseImpl.resolve(value.__await).then(function(value) {
1667
- invoke("next", value, resolve, reject);
1668
- }, function(err) {
1669
- invoke("throw", err, resolve, reject);
1670
- });
1671
- }
1672
-
1673
- return PromiseImpl.resolve(value).then(function(unwrapped) {
1674
- // When a yielded Promise is resolved, its final value becomes
1675
- // the .value of the Promise<{value,done}> result for the
1676
- // current iteration.
1677
- result.value = unwrapped;
1678
- resolve(result);
1679
- }, function(error) {
1680
- // If a rejected Promise was yielded, throw the rejection back
1681
- // into the async generator function so it can be handled there.
1682
- return invoke("throw", error, resolve, reject);
1683
- });
1684
- }
1685
- }
1686
-
1687
- var previousPromise;
1688
-
1689
- function enqueue(method, arg) {
1690
- function callInvokeWithMethodAndArg() {
1691
- return new PromiseImpl(function(resolve, reject) {
1692
- invoke(method, arg, resolve, reject);
1693
- });
1694
- }
1695
-
1696
- return previousPromise =
1697
- // If enqueue has been called before, then we want to wait until
1698
- // all previous Promises have been resolved before calling invoke,
1699
- // so that results are always delivered in the correct order. If
1700
- // enqueue has not been called before, then it is important to
1701
- // call invoke immediately, without waiting on a callback to fire,
1702
- // so that the async generator function has the opportunity to do
1703
- // any necessary setup in a predictable way. This predictability
1704
- // is why the Promise constructor synchronously invokes its
1705
- // executor callback, and why async functions synchronously
1706
- // execute code before the first await. Since we implement simple
1707
- // async functions in terms of async generators, it is especially
1708
- // important to get this right, even though it requires care.
1709
- previousPromise ? previousPromise.then(
1710
- callInvokeWithMethodAndArg,
1711
- // Avoid propagating failures to Promises returned by later
1712
- // invocations of the iterator.
1713
- callInvokeWithMethodAndArg
1714
- ) : callInvokeWithMethodAndArg();
1715
- }
1716
-
1717
- // Define the unified helper method that is used to implement .next,
1718
- // .throw, and .return (see defineIteratorMethods).
1719
- this._invoke = enqueue;
1720
- }
1721
-
1722
- defineIteratorMethods(AsyncIterator.prototype);
1723
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
1724
- return this;
1725
- });
1726
- exports.AsyncIterator = AsyncIterator;
1727
-
1728
- // Note that simple async functions are implemented on top of
1729
- // AsyncIterator objects; they just return a Promise for the value of
1730
- // the final result produced by the iterator.
1731
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
1732
- if (PromiseImpl === void 0) PromiseImpl = Promise;
1733
-
1734
- var iter = new AsyncIterator(
1735
- wrap(innerFn, outerFn, self, tryLocsList),
1736
- PromiseImpl
1737
- );
1738
-
1739
- return exports.isGeneratorFunction(outerFn)
1740
- ? iter // If outerFn is a generator, return the full iterator.
1741
- : iter.next().then(function(result) {
1742
- return result.done ? result.value : iter.next();
1743
- });
1744
- };
1745
-
1746
- function makeInvokeMethod(innerFn, self, context) {
1747
- var state = GenStateSuspendedStart;
1748
-
1749
- return function invoke(method, arg) {
1750
- if (state === GenStateExecuting) {
1751
- throw new Error("Generator is already running");
1752
- }
1753
-
1754
- if (state === GenStateCompleted) {
1755
- if (method === "throw") {
1756
- throw arg;
1757
- }
1758
-
1759
- // Be forgiving, per 25.3.3.3.3 of the spec:
1760
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
1761
- return doneResult();
1762
- }
1763
-
1764
- context.method = method;
1765
- context.arg = arg;
1766
-
1767
- while (true) {
1768
- var delegate = context.delegate;
1769
- if (delegate) {
1770
- var delegateResult = maybeInvokeDelegate(delegate, context);
1771
- if (delegateResult) {
1772
- if (delegateResult === ContinueSentinel) continue;
1773
- return delegateResult;
1774
- }
1775
- }
1776
-
1777
- if (context.method === "next") {
1778
- // Setting context._sent for legacy support of Babel's
1779
- // function.sent implementation.
1780
- context.sent = context._sent = context.arg;
1781
-
1782
- } else if (context.method === "throw") {
1783
- if (state === GenStateSuspendedStart) {
1784
- state = GenStateCompleted;
1785
- throw context.arg;
1786
- }
1787
-
1788
- context.dispatchException(context.arg);
1789
-
1790
- } else if (context.method === "return") {
1791
- context.abrupt("return", context.arg);
1792
- }
1793
-
1794
- state = GenStateExecuting;
1795
-
1796
- var record = tryCatch(innerFn, self, context);
1797
- if (record.type === "normal") {
1798
- // If an exception is thrown from innerFn, we leave state ===
1799
- // GenStateExecuting and loop back for another invocation.
1800
- state = context.done
1801
- ? GenStateCompleted
1802
- : GenStateSuspendedYield;
1803
-
1804
- if (record.arg === ContinueSentinel) {
1805
- continue;
1806
- }
1807
-
1808
- return {
1809
- value: record.arg,
1810
- done: context.done
1811
- };
1812
-
1813
- } else if (record.type === "throw") {
1814
- state = GenStateCompleted;
1815
- // Dispatch the exception by looping back around to the
1816
- // context.dispatchException(context.arg) call above.
1817
- context.method = "throw";
1818
- context.arg = record.arg;
1819
- }
1820
- }
1821
- };
1822
- }
1823
-
1824
- // Call delegate.iterator[context.method](context.arg) and handle the
1825
- // result, either by returning a { value, done } result from the
1826
- // delegate iterator, or by modifying context.method and context.arg,
1827
- // setting context.delegate to null, and returning the ContinueSentinel.
1828
- function maybeInvokeDelegate(delegate, context) {
1829
- var method = delegate.iterator[context.method];
1830
- if (method === undefined$1) {
1831
- // A .throw or .return when the delegate iterator has no .throw
1832
- // method always terminates the yield* loop.
1833
- context.delegate = null;
1834
-
1835
- if (context.method === "throw") {
1836
- // Note: ["return"] must be used for ES3 parsing compatibility.
1837
- if (delegate.iterator["return"]) {
1838
- // If the delegate iterator has a return method, give it a
1839
- // chance to clean up.
1840
- context.method = "return";
1841
- context.arg = undefined$1;
1842
- maybeInvokeDelegate(delegate, context);
1843
-
1844
- if (context.method === "throw") {
1845
- // If maybeInvokeDelegate(context) changed context.method from
1846
- // "return" to "throw", let that override the TypeError below.
1847
- return ContinueSentinel;
1848
- }
1849
- }
1850
-
1851
- context.method = "throw";
1852
- context.arg = new TypeError(
1853
- "The iterator does not provide a 'throw' method");
1854
- }
1855
-
1856
- return ContinueSentinel;
1857
- }
1858
-
1859
- var record = tryCatch(method, delegate.iterator, context.arg);
1860
-
1861
- if (record.type === "throw") {
1862
- context.method = "throw";
1863
- context.arg = record.arg;
1864
- context.delegate = null;
1865
- return ContinueSentinel;
1866
- }
1867
-
1868
- var info = record.arg;
1869
-
1870
- if (! info) {
1871
- context.method = "throw";
1872
- context.arg = new TypeError("iterator result is not an object");
1873
- context.delegate = null;
1874
- return ContinueSentinel;
1875
- }
1876
-
1877
- if (info.done) {
1878
- // Assign the result of the finished delegate to the temporary
1879
- // variable specified by delegate.resultName (see delegateYield).
1880
- context[delegate.resultName] = info.value;
1881
-
1882
- // Resume execution at the desired location (see delegateYield).
1883
- context.next = delegate.nextLoc;
1884
-
1885
- // If context.method was "throw" but the delegate handled the
1886
- // exception, let the outer generator proceed normally. If
1887
- // context.method was "next", forget context.arg since it has been
1888
- // "consumed" by the delegate iterator. If context.method was
1889
- // "return", allow the original .return call to continue in the
1890
- // outer generator.
1891
- if (context.method !== "return") {
1892
- context.method = "next";
1893
- context.arg = undefined$1;
1894
- }
1895
-
1896
- } else {
1897
- // Re-yield the result returned by the delegate method.
1898
- return info;
1899
- }
1900
-
1901
- // The delegate iterator is finished, so forget it and continue with
1902
- // the outer generator.
1903
- context.delegate = null;
1904
- return ContinueSentinel;
1905
- }
1906
-
1907
- // Define Generator.prototype.{next,throw,return} in terms of the
1908
- // unified ._invoke helper method.
1909
- defineIteratorMethods(Gp);
1910
-
1911
- define(Gp, toStringTagSymbol, "Generator");
1912
-
1913
- // A Generator should always return itself as the iterator object when the
1914
- // @@iterator function is called on it. Some browsers' implementations of the
1915
- // iterator prototype chain incorrectly implement this, causing the Generator
1916
- // object to not be returned from this call. This ensures that doesn't happen.
1917
- // See https://github.com/facebook/regenerator/issues/274 for more details.
1918
- define(Gp, iteratorSymbol, function() {
1919
- return this;
1920
- });
1921
-
1922
- define(Gp, "toString", function() {
1923
- return "[object Generator]";
1924
- });
1925
-
1926
- function pushTryEntry(locs) {
1927
- var entry = { tryLoc: locs[0] };
1928
-
1929
- if (1 in locs) {
1930
- entry.catchLoc = locs[1];
1931
- }
1932
-
1933
- if (2 in locs) {
1934
- entry.finallyLoc = locs[2];
1935
- entry.afterLoc = locs[3];
1936
- }
1937
-
1938
- this.tryEntries.push(entry);
1939
- }
1940
-
1941
- function resetTryEntry(entry) {
1942
- var record = entry.completion || {};
1943
- record.type = "normal";
1944
- delete record.arg;
1945
- entry.completion = record;
1946
- }
1947
-
1948
- function Context(tryLocsList) {
1949
- // The root entry object (effectively a try statement without a catch
1950
- // or a finally block) gives us a place to store values thrown from
1951
- // locations where there is no enclosing try statement.
1952
- this.tryEntries = [{ tryLoc: "root" }];
1953
- tryLocsList.forEach(pushTryEntry, this);
1954
- this.reset(true);
1955
- }
1956
-
1957
- exports.keys = function(object) {
1958
- var keys = [];
1959
- for (var key in object) {
1960
- keys.push(key);
1961
- }
1962
- keys.reverse();
1963
-
1964
- // Rather than returning an object with a next method, we keep
1965
- // things simple and return the next function itself.
1966
- return function next() {
1967
- while (keys.length) {
1968
- var key = keys.pop();
1969
- if (key in object) {
1970
- next.value = key;
1971
- next.done = false;
1972
- return next;
1973
- }
1974
- }
1975
-
1976
- // To avoid creating an additional object, we just hang the .value
1977
- // and .done properties off the next function object itself. This
1978
- // also ensures that the minifier will not anonymize the function.
1979
- next.done = true;
1980
- return next;
1981
- };
1982
- };
1983
-
1984
- function values(iterable) {
1985
- if (iterable) {
1986
- var iteratorMethod = iterable[iteratorSymbol];
1987
- if (iteratorMethod) {
1988
- return iteratorMethod.call(iterable);
1989
- }
1990
-
1991
- if (typeof iterable.next === "function") {
1992
- return iterable;
1993
- }
1994
-
1995
- if (!isNaN(iterable.length)) {
1996
- var i = -1, next = function next() {
1997
- while (++i < iterable.length) {
1998
- if (hasOwn.call(iterable, i)) {
1999
- next.value = iterable[i];
2000
- next.done = false;
2001
- return next;
2002
- }
2003
- }
2004
-
2005
- next.value = undefined$1;
2006
- next.done = true;
2007
-
2008
- return next;
2009
- };
2010
-
2011
- return next.next = next;
2012
- }
2013
- }
2014
-
2015
- // Return an iterator with no values.
2016
- return { next: doneResult };
2017
- }
2018
- exports.values = values;
2019
-
2020
- function doneResult() {
2021
- return { value: undefined$1, done: true };
2022
- }
2023
-
2024
- Context.prototype = {
2025
- constructor: Context,
2026
-
2027
- reset: function(skipTempReset) {
2028
- this.prev = 0;
2029
- this.next = 0;
2030
- // Resetting context._sent for legacy support of Babel's
2031
- // function.sent implementation.
2032
- this.sent = this._sent = undefined$1;
2033
- this.done = false;
2034
- this.delegate = null;
2035
-
2036
- this.method = "next";
2037
- this.arg = undefined$1;
2038
-
2039
- this.tryEntries.forEach(resetTryEntry);
2040
-
2041
- if (!skipTempReset) {
2042
- for (var name in this) {
2043
- // Not sure about the optimal order of these conditions:
2044
- if (name.charAt(0) === "t" &&
2045
- hasOwn.call(this, name) &&
2046
- !isNaN(+name.slice(1))) {
2047
- this[name] = undefined$1;
2048
- }
2049
- }
2050
- }
2051
- },
2052
-
2053
- stop: function() {
2054
- this.done = true;
2055
-
2056
- var rootEntry = this.tryEntries[0];
2057
- var rootRecord = rootEntry.completion;
2058
- if (rootRecord.type === "throw") {
2059
- throw rootRecord.arg;
2060
- }
2061
-
2062
- return this.rval;
2063
- },
2064
-
2065
- dispatchException: function(exception) {
2066
- if (this.done) {
2067
- throw exception;
2068
- }
2069
-
2070
- var context = this;
2071
- function handle(loc, caught) {
2072
- record.type = "throw";
2073
- record.arg = exception;
2074
- context.next = loc;
2075
-
2076
- if (caught) {
2077
- // If the dispatched exception was caught by a catch block,
2078
- // then let that catch block handle the exception normally.
2079
- context.method = "next";
2080
- context.arg = undefined$1;
2081
- }
2082
-
2083
- return !! caught;
2084
- }
2085
-
2086
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2087
- var entry = this.tryEntries[i];
2088
- var record = entry.completion;
2089
-
2090
- if (entry.tryLoc === "root") {
2091
- // Exception thrown outside of any try block that could handle
2092
- // it, so set the completion value of the entire function to
2093
- // throw the exception.
2094
- return handle("end");
2095
- }
2096
-
2097
- if (entry.tryLoc <= this.prev) {
2098
- var hasCatch = hasOwn.call(entry, "catchLoc");
2099
- var hasFinally = hasOwn.call(entry, "finallyLoc");
2100
-
2101
- if (hasCatch && hasFinally) {
2102
- if (this.prev < entry.catchLoc) {
2103
- return handle(entry.catchLoc, true);
2104
- } else if (this.prev < entry.finallyLoc) {
2105
- return handle(entry.finallyLoc);
2106
- }
2107
-
2108
- } else if (hasCatch) {
2109
- if (this.prev < entry.catchLoc) {
2110
- return handle(entry.catchLoc, true);
2111
- }
2112
-
2113
- } else if (hasFinally) {
2114
- if (this.prev < entry.finallyLoc) {
2115
- return handle(entry.finallyLoc);
2116
- }
2117
-
2118
- } else {
2119
- throw new Error("try statement without catch or finally");
2120
- }
2121
- }
2122
- }
2123
- },
2124
-
2125
- abrupt: function(type, arg) {
2126
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2127
- var entry = this.tryEntries[i];
2128
- if (entry.tryLoc <= this.prev &&
2129
- hasOwn.call(entry, "finallyLoc") &&
2130
- this.prev < entry.finallyLoc) {
2131
- var finallyEntry = entry;
2132
- break;
2133
- }
2134
- }
2135
-
2136
- if (finallyEntry &&
2137
- (type === "break" ||
2138
- type === "continue") &&
2139
- finallyEntry.tryLoc <= arg &&
2140
- arg <= finallyEntry.finallyLoc) {
2141
- // Ignore the finally entry if control is not jumping to a
2142
- // location outside the try/catch block.
2143
- finallyEntry = null;
2144
- }
2145
-
2146
- var record = finallyEntry ? finallyEntry.completion : {};
2147
- record.type = type;
2148
- record.arg = arg;
2149
-
2150
- if (finallyEntry) {
2151
- this.method = "next";
2152
- this.next = finallyEntry.finallyLoc;
2153
- return ContinueSentinel;
2154
- }
2155
-
2156
- return this.complete(record);
2157
- },
2158
-
2159
- complete: function(record, afterLoc) {
2160
- if (record.type === "throw") {
2161
- throw record.arg;
2162
- }
2163
-
2164
- if (record.type === "break" ||
2165
- record.type === "continue") {
2166
- this.next = record.arg;
2167
- } else if (record.type === "return") {
2168
- this.rval = this.arg = record.arg;
2169
- this.method = "return";
2170
- this.next = "end";
2171
- } else if (record.type === "normal" && afterLoc) {
2172
- this.next = afterLoc;
2173
- }
2174
-
2175
- return ContinueSentinel;
2176
- },
2177
-
2178
- finish: function(finallyLoc) {
2179
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2180
- var entry = this.tryEntries[i];
2181
- if (entry.finallyLoc === finallyLoc) {
2182
- this.complete(entry.completion, entry.afterLoc);
2183
- resetTryEntry(entry);
2184
- return ContinueSentinel;
2185
- }
2186
- }
2187
- },
2188
-
2189
- "catch": function(tryLoc) {
2190
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2191
- var entry = this.tryEntries[i];
2192
- if (entry.tryLoc === tryLoc) {
2193
- var record = entry.completion;
2194
- if (record.type === "throw") {
2195
- var thrown = record.arg;
2196
- resetTryEntry(entry);
2197
- }
2198
- return thrown;
2199
- }
2200
- }
2201
-
2202
- // The context.catch method must only be called with a location
2203
- // argument that corresponds to a known catch block.
2204
- throw new Error("illegal catch attempt");
2205
- },
2206
-
2207
- delegateYield: function(iterable, resultName, nextLoc) {
2208
- this.delegate = {
2209
- iterator: values(iterable),
2210
- resultName: resultName,
2211
- nextLoc: nextLoc
2212
- };
2213
-
2214
- if (this.method === "next") {
2215
- // Deliberately forget the last sent value so that we don't
2216
- // accidentally pass it on to the delegate.
2217
- this.arg = undefined$1;
2218
- }
2219
-
2220
- return ContinueSentinel;
2221
- }
2222
- };
2223
-
2224
- // Regardless of whether this script is executing as a CommonJS module
2225
- // or not, return the runtime object so that we can declare the variable
2226
- // regeneratorRuntime in the outer scope, which allows this module to be
2227
- // injected easily by `bin/regenerator --include-runtime script.js`.
2228
- return exports;
2229
-
2230
- }(
2231
- // If this script is executing as a CommonJS module, use module.exports
2232
- // as the regeneratorRuntime namespace. Otherwise create a new empty
2233
- // object. Either way, the resulting object will be used to initialize
2234
- // the regeneratorRuntime variable at the top of this file.
2235
- module.exports
2236
- ));
2237
-
2238
- try {
2239
- regeneratorRuntime = runtime;
2240
- } catch (accidentalStrictMode) {
2241
- // This module should not be running in strict mode, so the above
2242
- // assignment should always work unless something is misconfigured. Just
2243
- // in case runtime.js accidentally runs in strict mode, in modern engines
2244
- // we can explicitly access globalThis. In older engines we can escape
2245
- // strict mode using a global Function call. This could conceivably fail
2246
- // if a Content Security Policy forbids using Function, but in that case
2247
- // the proper solution is to fix the accidental strict mode problem. If
2248
- // you've misconfigured your bundler to force strict mode and applied a
2249
- // CSP to forbid Function, and you're not willing to fix either of those
2250
- // problems, please detail your unique predicament in a GitHub issue.
2251
- if (typeof globalThis === "object") {
2252
- globalThis.regeneratorRuntime = runtime;
2253
- } else {
2254
- Function("r", "regeneratorRuntime = r")(runtime);
2255
- }
2256
- }
2257
- });
2258
-
2259
- var hexToRGB = function hexToRGB(hex) {
2260
- var r = parseInt(hex.slice(1, 3), 16);
2261
- var g = parseInt(hex.slice(3, 5), 16);
2262
- var b = parseInt(hex.slice(5, 7), 16);
2263
- return {
2264
- r: r,
2265
- g: g,
2266
- b: b
2267
- };
2268
- };
2269
- var getLuminanceOfColor = function getLuminanceOfColor(hex) {
2270
- var _hexToRGB = hexToRGB(hex),
2271
- r = _hexToRGB.r,
2272
- g = _hexToRGB.g,
2273
- b = _hexToRGB.b;
2274
-
2275
- return r * 0.299 + g * 0.587 + b * 0.114;
2276
- };
2277
- var rgbToHex = function rgbToHex() {
2278
- var color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "rgba(255, 255, 255, 0)";
2279
- var rgba = color.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);
2280
- return rgba && rgba.length === 4 ? "#" + ("0" + parseInt(rgba[1], 10).toString(16)).slice(-2) + ("0" + parseInt(rgba[2], 10).toString(16)).slice(-2) + ("0" + parseInt(rgba[3], 10).toString(16)).slice(-2) : color;
2281
- };
2282
- var clientWidths = {
2283
- mobile: 767,
2284
- tablet: 1024
2285
- };
2286
- var clientWidth = function clientWidth(device) {
2287
- var foundDeviceWidth = get_1(clientWidths, device);
2288
-
2289
- if (foundDeviceWidth) {
2290
- return get_1(global, "document.documentElement.clientWidth") <= foundDeviceWidth;
2291
- }
2292
-
2293
- return false;
2294
- };
2295
- var getTextColor = function getTextColor() {
2296
- var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "rgb(255,255,255)";
2297
- var isRegexCheck = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(theme);
2298
- var getHexValue = !isRegexCheck ? rgbToHex(theme) : theme;
2299
- var textColor = getLuminanceOfColor(getHexValue) < 155 ? "light" : "dark";
2300
- return textColor;
2301
- };
2302
- var isEmpty = function isEmpty(value) {
2303
- return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
2304
- _typeof(value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
2305
- };
2306
- var shapeConfig = PropTypes__default["default"].shape({
2307
- "sketches-host": PropTypes__default["default"].string,
2308
- "cdn-name": PropTypes__default["default"].string,
2309
- "cdn-image": PropTypes__default["default"].string
2310
- });
2311
- PropTypes__default["default"].shape({
2312
- headline: PropTypes__default["default"].string,
2313
- "last-published-at": PropTypes__default["default"].number,
2314
- subheadline: PropTypes__default["default"].string
2315
- });
2316
-
2317
- var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
2318
- var useStateValue = function useStateValue() {
2319
- return React.useContext(StateContext);
2320
- };
2321
-
2322
- var _excluded = ["story", "element", "template", "opts", "css", "config", "render"];
2323
- var _styleModuleImportMap = {
2324
- "./also-read.m.css": {
2325
- "viewports": "\"../../../../../assets/stylesheets/viewports.m.css\"",
2326
- "mobile": "768px",
2327
- "card-image": "also-read-m_card-image__3CwAv",
2328
- "default-text": "also-read-m_default-text__hp2dp",
2329
- "alsoread-textLeftAlign": "also-read-m_alsoread-textLeftAlign__S0Dxe",
2330
- "alsoread-imageRightAlign": "also-read-m_alsoread-imageRightAlign__1bsF3",
2331
- "headline": "also-read-m_headline__VzF-c",
2332
- "alsoread-default": "also-read-m_alsoread-default__3cYER",
2333
- "card-image-wrapper": "also-read-m_card-image-wrapper__3GFzu",
2334
- "image": "also-read-m_image__2jdRP",
2335
- "content-wrapper": "also-read-m_content-wrapper__26AZX",
2336
- "alsoread": "also-read-m_alsoread__1crOV",
2337
- "dark": "also-read-m_dark__1pUib",
2338
- "light": "also-read-m_light__bTCze"
2339
- }
2340
- };
2341
-
2342
- var DisplayImage = function DisplayImage(_ref) {
2343
- var story = _ref.story,
2344
- linkedImage = _ref.linkedImage,
2345
- template = _ref.template,
2346
- isRightAlign = _ref.isRightAlign;
2347
- var isLeftAlign = template === "textLeftAlign";
2348
- var isMobile = clientWidth("mobile");
2349
- var rightAlignAspectRatio = isRightAlign && isMobile ? [4, 3] : [16, 9];
2350
- var imageAspectRatio = isLeftAlign ? [16, 9] : rightAlignAspectRatio;
2351
- var alternateText = story["hero-image-caption"] || story["headline"];
2352
- return /*#__PURE__*/React__default["default"].createElement("div", {
2353
- className: "also-read-m_card-image-wrapper__3GFzu"
2354
- }, !isEmpty(linkedImage) ? /*#__PURE__*/React__default["default"].createElement("figure", {
2355
- className: "also-read-m_card-image__3CwAv"
2356
- }, /*#__PURE__*/React__default["default"].createElement(components.LazyLoadImages, null, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
2357
- slug: linkedImage,
2358
- "aspect-ratio": imageAspectRatio,
2359
- defaultWidth: 480,
2360
- widths: [250, 480, 640],
2361
- imgParams: {
2362
- auto: ["format", "compress"]
2363
- },
2364
- alt: alternateText
2365
- }))) : /*#__PURE__*/React__default["default"].createElement("div", {
2366
- className: "arr--fallback-also-read also-read-m_image__2jdRP"
2367
- }, /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)));
2368
- };
2369
-
2370
- DisplayImage.propTypes = {
2371
- story: PropTypes__default["default"].shape({
2372
- "hero-image-caption": PropTypes__default["default"].string,
2373
- headline: PropTypes__default["default"].string
2374
- }),
2375
- linkedImage: PropTypes__default["default"].string,
2376
- template: PropTypes__default["default"].string,
2377
- isRightAlign: PropTypes__default["default"].bool
2378
- };
2379
-
2380
- var AlsoReadBase = function AlsoReadBase(_ref2) {
2381
- var _ref2$story = _ref2.story,
2382
- story = _ref2$story === void 0 ? {} : _ref2$story,
2383
- element = _ref2.element,
2384
- _ref2$template = _ref2.template,
2385
- template = _ref2$template === void 0 ? "" : _ref2$template,
2386
- _ref2$opts = _ref2.opts,
2387
- opts = _ref2$opts === void 0 ? {} : _ref2$opts,
2388
- _ref2$css = _ref2.css,
2389
- css = _ref2$css === void 0 ? {} : _ref2$css;
2390
- _ref2.config;
2391
- _ref2.render;
2392
- var restProps = _objectWithoutProperties(_ref2, _excluded);
2393
-
2394
- var content = element.text;
2395
- if (!content) return null;
2396
- var linkedStories = get_1(story, ["linked-stories"], {});
2397
- var linkedStoryId = get_1(element, ["metadata", "linked-story-id"]);
2398
- var linkedStorySlug = get_1(linkedStories, [linkedStoryId, "url"]);
2399
- var linkedImage = get_1(linkedStories, [linkedStoryId, "hero-image-s3-key"], "");
2400
- var storyUrl = linkedStorySlug && linkedStorySlug;
2401
- var configData = useStateValue() || {};
2402
- var textInvertColor = getTextColor(configData.theme);
2403
- var _opts$title = opts.title,
2404
- title = _opts$title === void 0 ? "" : _opts$title;
2405
- var textColor = css.textColor;
2406
- var displayTitle = title || "Also Read";
2407
- var isDefault = template === "" || template === "default";
2408
- var isRightAlign = template === "imageRightAlign";
2409
- var templateStyle = template ? "alsoread-".concat(template) : "alsoread-default";
2410
- return /*#__PURE__*/React__default["default"].createElement(components.Link, _extends({
2411
- "data-test-id": "also-read",
2412
- href: storyUrl,
2413
- "aria-label": "also-read"
2414
- }, restProps, {
2415
- className: "arrow-component arr--also-read-element " + _getClassName(templateStyle, _styleModuleImportMap) + (" " + (restProps ? restProps.className || "" : ""))
2416
- }), !isDefault && /*#__PURE__*/React__default["default"].createElement("div", {
2417
- className: _getClassName("default-text ".concat(textInvertColor), _styleModuleImportMap)
2418
- }, displayTitle), isDefault && /*#__PURE__*/React__default["default"].createElement(DisplayImage, {
2419
- story: story,
2420
- linkedImage: linkedImage,
2421
- template: template,
2422
- isRightAlign: isRightAlign
2423
- }), /*#__PURE__*/React__default["default"].createElement("div", {
2424
- className: "also-read-m_content-wrapper__26AZX"
2425
- }, /*#__PURE__*/React__default["default"].createElement("div", {
2426
- className: "also-read-m_headline__VzF-c",
2427
- style: textColor ? {
2428
- color: textColor
2429
- } : {
2430
- color: textInvertColor
2431
- },
2432
- dangerouslySetInnerHTML: {
2433
- __html: content
2434
- }
2435
- }), isRightAlign && /*#__PURE__*/React__default["default"].createElement(DisplayImage, {
2436
- story: story,
2437
- linkedImage: linkedImage,
2438
- template: template
2439
- })));
2440
- };
2441
-
2442
- AlsoReadBase.propTypes = {
2443
- /** template can be default, textLeftAlign or imageRightAlign */
2444
- template: PropTypes__default["default"].string,
2445
- story: PropTypes__default["default"].shape({
2446
- "linked-stories": PropTypes__default["default"].object
2447
- }),
2448
- element: PropTypes__default["default"].shape({
2449
- text: PropTypes__default["default"].string,
2450
- metadata: PropTypes__default["default"].shape({
2451
- linkedStoryId: PropTypes__default["default"].shape({
2452
- url: PropTypes__default["default"].string,
2453
- "hero-image-s3-key": PropTypes__default["default"].string
2454
- })
2455
- })
2456
- }),
2457
- opts: PropTypes__default["default"].shape({
2458
- title: PropTypes__default["default"].string
2459
- }),
2460
- config: shapeConfig,
2461
- render: PropTypes__default["default"].func,
2462
- css: PropTypes__default["default"].object
2463
- };
2464
- var AlsoRead = withElementWrapper(AlsoReadBase);
2465
-
2466
- exports.AlsoRead = AlsoRead;