@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,2982 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var components = require('@quintype/components');
6
- var PropTypes = require('prop-types');
7
- var React = require('react');
8
- require('react-timeago');
9
- require('date-fns-tz');
10
- var reactRedux = require('react-redux');
11
-
12
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
-
14
- function _interopNamespace(e) {
15
- if (e && e.__esModule) return e;
16
- var n = Object.create(null);
17
- if (e) {
18
- Object.keys(e).forEach(function (k) {
19
- if (k !== 'default') {
20
- var d = Object.getOwnPropertyDescriptor(e, k);
21
- Object.defineProperty(n, k, d.get ? d : {
22
- enumerable: true,
23
- get: function () { return e[k]; }
24
- });
25
- }
26
- });
27
- }
28
- n["default"] = e;
29
- return Object.freeze(n);
30
- }
31
-
32
- var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
33
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
34
-
35
- /**
36
- * Checks if `value` is classified as an `Array` object.
37
- *
38
- * @static
39
- * @memberOf _
40
- * @since 0.1.0
41
- * @category Lang
42
- * @param {*} value The value to check.
43
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
44
- * @example
45
- *
46
- * _.isArray([1, 2, 3]);
47
- * // => true
48
- *
49
- * _.isArray(document.body.children);
50
- * // => false
51
- *
52
- * _.isArray('abc');
53
- * // => false
54
- *
55
- * _.isArray(_.noop);
56
- * // => false
57
- */
58
- var isArray = Array.isArray;
59
-
60
- var isArray_1 = isArray;
61
-
62
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
63
-
64
- function getDefaultExportFromCjs (x) {
65
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
66
- }
67
-
68
- function createCommonjsModule(fn) {
69
- var module = { exports: {} };
70
- return fn(module, module.exports), module.exports;
71
- }
72
-
73
- /** Detect free variable `global` from Node.js. */
74
-
75
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
76
-
77
- var _freeGlobal = freeGlobal;
78
-
79
- /** Detect free variable `self`. */
80
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
81
-
82
- /** Used as a reference to the global object. */
83
- var root = _freeGlobal || freeSelf || Function('return this')();
84
-
85
- var _root = root;
86
-
87
- /** Built-in value references. */
88
- var Symbol$1 = _root.Symbol;
89
-
90
- var _Symbol = Symbol$1;
91
-
92
- /** Used for built-in method references. */
93
- var objectProto$4 = Object.prototype;
94
-
95
- /** Used to check objects for own properties. */
96
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
97
-
98
- /**
99
- * Used to resolve the
100
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
101
- * of values.
102
- */
103
- var nativeObjectToString$1 = objectProto$4.toString;
104
-
105
- /** Built-in value references. */
106
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
107
-
108
- /**
109
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
110
- *
111
- * @private
112
- * @param {*} value The value to query.
113
- * @returns {string} Returns the raw `toStringTag`.
114
- */
115
- function getRawTag(value) {
116
- var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
117
- tag = value[symToStringTag$1];
118
-
119
- try {
120
- value[symToStringTag$1] = undefined;
121
- var unmasked = true;
122
- } catch (e) {}
123
-
124
- var result = nativeObjectToString$1.call(value);
125
- if (unmasked) {
126
- if (isOwn) {
127
- value[symToStringTag$1] = tag;
128
- } else {
129
- delete value[symToStringTag$1];
130
- }
131
- }
132
- return result;
133
- }
134
-
135
- var _getRawTag = getRawTag;
136
-
137
- /** Used for built-in method references. */
138
- var objectProto$3 = Object.prototype;
139
-
140
- /**
141
- * Used to resolve the
142
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
143
- * of values.
144
- */
145
- var nativeObjectToString = objectProto$3.toString;
146
-
147
- /**
148
- * Converts `value` to a string using `Object.prototype.toString`.
149
- *
150
- * @private
151
- * @param {*} value The value to convert.
152
- * @returns {string} Returns the converted string.
153
- */
154
- function objectToString(value) {
155
- return nativeObjectToString.call(value);
156
- }
157
-
158
- var _objectToString = objectToString;
159
-
160
- /** `Object#toString` result references. */
161
- var nullTag = '[object Null]',
162
- undefinedTag = '[object Undefined]';
163
-
164
- /** Built-in value references. */
165
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
166
-
167
- /**
168
- * The base implementation of `getTag` without fallbacks for buggy environments.
169
- *
170
- * @private
171
- * @param {*} value The value to query.
172
- * @returns {string} Returns the `toStringTag`.
173
- */
174
- function baseGetTag(value) {
175
- if (value == null) {
176
- return value === undefined ? undefinedTag : nullTag;
177
- }
178
- return (symToStringTag && symToStringTag in Object(value))
179
- ? _getRawTag(value)
180
- : _objectToString(value);
181
- }
182
-
183
- var _baseGetTag = baseGetTag;
184
-
185
- /**
186
- * Checks if `value` is object-like. A value is object-like if it's not `null`
187
- * and has a `typeof` result of "object".
188
- *
189
- * @static
190
- * @memberOf _
191
- * @since 4.0.0
192
- * @category Lang
193
- * @param {*} value The value to check.
194
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
195
- * @example
196
- *
197
- * _.isObjectLike({});
198
- * // => true
199
- *
200
- * _.isObjectLike([1, 2, 3]);
201
- * // => true
202
- *
203
- * _.isObjectLike(_.noop);
204
- * // => false
205
- *
206
- * _.isObjectLike(null);
207
- * // => false
208
- */
209
- function isObjectLike(value) {
210
- return value != null && typeof value == 'object';
211
- }
212
-
213
- var isObjectLike_1 = isObjectLike;
214
-
215
- /** `Object#toString` result references. */
216
- var symbolTag = '[object Symbol]';
217
-
218
- /**
219
- * Checks if `value` is classified as a `Symbol` primitive or object.
220
- *
221
- * @static
222
- * @memberOf _
223
- * @since 4.0.0
224
- * @category Lang
225
- * @param {*} value The value to check.
226
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
227
- * @example
228
- *
229
- * _.isSymbol(Symbol.iterator);
230
- * // => true
231
- *
232
- * _.isSymbol('abc');
233
- * // => false
234
- */
235
- function isSymbol(value) {
236
- return typeof value == 'symbol' ||
237
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
238
- }
239
-
240
- var isSymbol_1 = isSymbol;
241
-
242
- /** Used to match property names within property paths. */
243
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
244
- reIsPlainProp = /^\w*$/;
245
-
246
- /**
247
- * Checks if `value` is a property name and not a property path.
248
- *
249
- * @private
250
- * @param {*} value The value to check.
251
- * @param {Object} [object] The object to query keys on.
252
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
253
- */
254
- function isKey(value, object) {
255
- if (isArray_1(value)) {
256
- return false;
257
- }
258
- var type = typeof value;
259
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
260
- value == null || isSymbol_1(value)) {
261
- return true;
262
- }
263
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
264
- (object != null && value in Object(object));
265
- }
266
-
267
- var _isKey = isKey;
268
-
269
- /**
270
- * Checks if `value` is the
271
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
272
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
273
- *
274
- * @static
275
- * @memberOf _
276
- * @since 0.1.0
277
- * @category Lang
278
- * @param {*} value The value to check.
279
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
280
- * @example
281
- *
282
- * _.isObject({});
283
- * // => true
284
- *
285
- * _.isObject([1, 2, 3]);
286
- * // => true
287
- *
288
- * _.isObject(_.noop);
289
- * // => true
290
- *
291
- * _.isObject(null);
292
- * // => false
293
- */
294
- function isObject(value) {
295
- var type = typeof value;
296
- return value != null && (type == 'object' || type == 'function');
297
- }
298
-
299
- var isObject_1 = isObject;
300
-
301
- /** `Object#toString` result references. */
302
- var asyncTag = '[object AsyncFunction]',
303
- funcTag = '[object Function]',
304
- genTag = '[object GeneratorFunction]',
305
- proxyTag = '[object Proxy]';
306
-
307
- /**
308
- * Checks if `value` is classified as a `Function` object.
309
- *
310
- * @static
311
- * @memberOf _
312
- * @since 0.1.0
313
- * @category Lang
314
- * @param {*} value The value to check.
315
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
316
- * @example
317
- *
318
- * _.isFunction(_);
319
- * // => true
320
- *
321
- * _.isFunction(/abc/);
322
- * // => false
323
- */
324
- function isFunction(value) {
325
- if (!isObject_1(value)) {
326
- return false;
327
- }
328
- // The use of `Object#toString` avoids issues with the `typeof` operator
329
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
330
- var tag = _baseGetTag(value);
331
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
332
- }
333
-
334
- var isFunction_1 = isFunction;
335
-
336
- /** Used to detect overreaching core-js shims. */
337
- var coreJsData = _root['__core-js_shared__'];
338
-
339
- var _coreJsData = coreJsData;
340
-
341
- /** Used to detect methods masquerading as native. */
342
- var maskSrcKey = (function() {
343
- var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
344
- return uid ? ('Symbol(src)_1.' + uid) : '';
345
- }());
346
-
347
- /**
348
- * Checks if `func` has its source masked.
349
- *
350
- * @private
351
- * @param {Function} func The function to check.
352
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
353
- */
354
- function isMasked(func) {
355
- return !!maskSrcKey && (maskSrcKey in func);
356
- }
357
-
358
- var _isMasked = isMasked;
359
-
360
- /** Used for built-in method references. */
361
- var funcProto$1 = Function.prototype;
362
-
363
- /** Used to resolve the decompiled source of functions. */
364
- var funcToString$1 = funcProto$1.toString;
365
-
366
- /**
367
- * Converts `func` to its source code.
368
- *
369
- * @private
370
- * @param {Function} func The function to convert.
371
- * @returns {string} Returns the source code.
372
- */
373
- function toSource(func) {
374
- if (func != null) {
375
- try {
376
- return funcToString$1.call(func);
377
- } catch (e) {}
378
- try {
379
- return (func + '');
380
- } catch (e) {}
381
- }
382
- return '';
383
- }
384
-
385
- var _toSource = toSource;
386
-
387
- /**
388
- * Used to match `RegExp`
389
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
390
- */
391
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
392
-
393
- /** Used to detect host constructors (Safari). */
394
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
395
-
396
- /** Used for built-in method references. */
397
- var funcProto = Function.prototype,
398
- objectProto$2 = Object.prototype;
399
-
400
- /** Used to resolve the decompiled source of functions. */
401
- var funcToString = funcProto.toString;
402
-
403
- /** Used to check objects for own properties. */
404
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
405
-
406
- /** Used to detect if a method is native. */
407
- var reIsNative = RegExp('^' +
408
- funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
409
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
410
- );
411
-
412
- /**
413
- * The base implementation of `_.isNative` without bad shim checks.
414
- *
415
- * @private
416
- * @param {*} value The value to check.
417
- * @returns {boolean} Returns `true` if `value` is a native function,
418
- * else `false`.
419
- */
420
- function baseIsNative(value) {
421
- if (!isObject_1(value) || _isMasked(value)) {
422
- return false;
423
- }
424
- var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
425
- return pattern.test(_toSource(value));
426
- }
427
-
428
- var _baseIsNative = baseIsNative;
429
-
430
- /**
431
- * Gets the value at `key` of `object`.
432
- *
433
- * @private
434
- * @param {Object} [object] The object to query.
435
- * @param {string} key The key of the property to get.
436
- * @returns {*} Returns the property value.
437
- */
438
- function getValue(object, key) {
439
- return object == null ? undefined : object[key];
440
- }
441
-
442
- var _getValue = getValue;
443
-
444
- /**
445
- * Gets the native function at `key` of `object`.
446
- *
447
- * @private
448
- * @param {Object} object The object to query.
449
- * @param {string} key The key of the method to get.
450
- * @returns {*} Returns the function if it's native, else `undefined`.
451
- */
452
- function getNative(object, key) {
453
- var value = _getValue(object, key);
454
- return _baseIsNative(value) ? value : undefined;
455
- }
456
-
457
- var _getNative = getNative;
458
-
459
- /* Built-in method references that are verified to be native. */
460
- var nativeCreate = _getNative(Object, 'create');
461
-
462
- var _nativeCreate = nativeCreate;
463
-
464
- /**
465
- * Removes all key-value entries from the hash.
466
- *
467
- * @private
468
- * @name clear
469
- * @memberOf Hash
470
- */
471
- function hashClear() {
472
- this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
473
- this.size = 0;
474
- }
475
-
476
- var _hashClear = hashClear;
477
-
478
- /**
479
- * Removes `key` and its value from the hash.
480
- *
481
- * @private
482
- * @name delete
483
- * @memberOf Hash
484
- * @param {Object} hash The hash to modify.
485
- * @param {string} key The key of the value to remove.
486
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
487
- */
488
- function hashDelete(key) {
489
- var result = this.has(key) && delete this.__data__[key];
490
- this.size -= result ? 1 : 0;
491
- return result;
492
- }
493
-
494
- var _hashDelete = hashDelete;
495
-
496
- /** Used to stand-in for `undefined` hash values. */
497
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
498
-
499
- /** Used for built-in method references. */
500
- var objectProto$1 = Object.prototype;
501
-
502
- /** Used to check objects for own properties. */
503
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
504
-
505
- /**
506
- * Gets the hash value for `key`.
507
- *
508
- * @private
509
- * @name get
510
- * @memberOf Hash
511
- * @param {string} key The key of the value to get.
512
- * @returns {*} Returns the entry value.
513
- */
514
- function hashGet(key) {
515
- var data = this.__data__;
516
- if (_nativeCreate) {
517
- var result = data[key];
518
- return result === HASH_UNDEFINED$1 ? undefined : result;
519
- }
520
- return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
521
- }
522
-
523
- var _hashGet = hashGet;
524
-
525
- /** Used for built-in method references. */
526
- var objectProto = Object.prototype;
527
-
528
- /** Used to check objects for own properties. */
529
- var hasOwnProperty = objectProto.hasOwnProperty;
530
-
531
- /**
532
- * Checks if a hash value for `key` exists.
533
- *
534
- * @private
535
- * @name has
536
- * @memberOf Hash
537
- * @param {string} key The key of the entry to check.
538
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
539
- */
540
- function hashHas(key) {
541
- var data = this.__data__;
542
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
543
- }
544
-
545
- var _hashHas = hashHas;
546
-
547
- /** Used to stand-in for `undefined` hash values. */
548
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
549
-
550
- /**
551
- * Sets the hash `key` to `value`.
552
- *
553
- * @private
554
- * @name set
555
- * @memberOf Hash
556
- * @param {string} key The key of the value to set.
557
- * @param {*} value The value to set.
558
- * @returns {Object} Returns the hash instance.
559
- */
560
- function hashSet(key, value) {
561
- var data = this.__data__;
562
- this.size += this.has(key) ? 0 : 1;
563
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
564
- return this;
565
- }
566
-
567
- var _hashSet = hashSet;
568
-
569
- /**
570
- * Creates a hash object.
571
- *
572
- * @private
573
- * @constructor
574
- * @param {Array} [entries] The key-value pairs to cache.
575
- */
576
- function Hash(entries) {
577
- var index = -1,
578
- length = entries == null ? 0 : entries.length;
579
-
580
- this.clear();
581
- while (++index < length) {
582
- var entry = entries[index];
583
- this.set(entry[0], entry[1]);
584
- }
585
- }
586
-
587
- // Add methods to `Hash`.
588
- Hash.prototype.clear = _hashClear;
589
- Hash.prototype['delete'] = _hashDelete;
590
- Hash.prototype.get = _hashGet;
591
- Hash.prototype.has = _hashHas;
592
- Hash.prototype.set = _hashSet;
593
-
594
- var _Hash = Hash;
595
-
596
- /**
597
- * Removes all key-value entries from the list cache.
598
- *
599
- * @private
600
- * @name clear
601
- * @memberOf ListCache
602
- */
603
- function listCacheClear() {
604
- this.__data__ = [];
605
- this.size = 0;
606
- }
607
-
608
- var _listCacheClear = listCacheClear;
609
-
610
- /**
611
- * Performs a
612
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
613
- * comparison between two values to determine if they are equivalent.
614
- *
615
- * @static
616
- * @memberOf _
617
- * @since 4.0.0
618
- * @category Lang
619
- * @param {*} value The value to compare.
620
- * @param {*} other The other value to compare.
621
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
622
- * @example
623
- *
624
- * var object = { 'a': 1 };
625
- * var other = { 'a': 1 };
626
- *
627
- * _.eq(object, object);
628
- * // => true
629
- *
630
- * _.eq(object, other);
631
- * // => false
632
- *
633
- * _.eq('a', 'a');
634
- * // => true
635
- *
636
- * _.eq('a', Object('a'));
637
- * // => false
638
- *
639
- * _.eq(NaN, NaN);
640
- * // => true
641
- */
642
- function eq(value, other) {
643
- return value === other || (value !== value && other !== other);
644
- }
645
-
646
- var eq_1 = eq;
647
-
648
- /**
649
- * Gets the index at which the `key` is found in `array` of key-value pairs.
650
- *
651
- * @private
652
- * @param {Array} array The array to inspect.
653
- * @param {*} key The key to search for.
654
- * @returns {number} Returns the index of the matched value, else `-1`.
655
- */
656
- function assocIndexOf(array, key) {
657
- var length = array.length;
658
- while (length--) {
659
- if (eq_1(array[length][0], key)) {
660
- return length;
661
- }
662
- }
663
- return -1;
664
- }
665
-
666
- var _assocIndexOf = assocIndexOf;
667
-
668
- /** Used for built-in method references. */
669
- var arrayProto = Array.prototype;
670
-
671
- /** Built-in value references. */
672
- var splice = arrayProto.splice;
673
-
674
- /**
675
- * Removes `key` and its value from the list cache.
676
- *
677
- * @private
678
- * @name delete
679
- * @memberOf ListCache
680
- * @param {string} key The key of the value to remove.
681
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
682
- */
683
- function listCacheDelete(key) {
684
- var data = this.__data__,
685
- index = _assocIndexOf(data, key);
686
-
687
- if (index < 0) {
688
- return false;
689
- }
690
- var lastIndex = data.length - 1;
691
- if (index == lastIndex) {
692
- data.pop();
693
- } else {
694
- splice.call(data, index, 1);
695
- }
696
- --this.size;
697
- return true;
698
- }
699
-
700
- var _listCacheDelete = listCacheDelete;
701
-
702
- /**
703
- * Gets the list cache value for `key`.
704
- *
705
- * @private
706
- * @name get
707
- * @memberOf ListCache
708
- * @param {string} key The key of the value to get.
709
- * @returns {*} Returns the entry value.
710
- */
711
- function listCacheGet(key) {
712
- var data = this.__data__,
713
- index = _assocIndexOf(data, key);
714
-
715
- return index < 0 ? undefined : data[index][1];
716
- }
717
-
718
- var _listCacheGet = listCacheGet;
719
-
720
- /**
721
- * Checks if a list cache value for `key` exists.
722
- *
723
- * @private
724
- * @name has
725
- * @memberOf ListCache
726
- * @param {string} key The key of the entry to check.
727
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
728
- */
729
- function listCacheHas(key) {
730
- return _assocIndexOf(this.__data__, key) > -1;
731
- }
732
-
733
- var _listCacheHas = listCacheHas;
734
-
735
- /**
736
- * Sets the list cache `key` to `value`.
737
- *
738
- * @private
739
- * @name set
740
- * @memberOf ListCache
741
- * @param {string} key The key of the value to set.
742
- * @param {*} value The value to set.
743
- * @returns {Object} Returns the list cache instance.
744
- */
745
- function listCacheSet(key, value) {
746
- var data = this.__data__,
747
- index = _assocIndexOf(data, key);
748
-
749
- if (index < 0) {
750
- ++this.size;
751
- data.push([key, value]);
752
- } else {
753
- data[index][1] = value;
754
- }
755
- return this;
756
- }
757
-
758
- var _listCacheSet = listCacheSet;
759
-
760
- /**
761
- * Creates an list cache object.
762
- *
763
- * @private
764
- * @constructor
765
- * @param {Array} [entries] The key-value pairs to cache.
766
- */
767
- function ListCache(entries) {
768
- var index = -1,
769
- length = entries == null ? 0 : entries.length;
770
-
771
- this.clear();
772
- while (++index < length) {
773
- var entry = entries[index];
774
- this.set(entry[0], entry[1]);
775
- }
776
- }
777
-
778
- // Add methods to `ListCache`.
779
- ListCache.prototype.clear = _listCacheClear;
780
- ListCache.prototype['delete'] = _listCacheDelete;
781
- ListCache.prototype.get = _listCacheGet;
782
- ListCache.prototype.has = _listCacheHas;
783
- ListCache.prototype.set = _listCacheSet;
784
-
785
- var _ListCache = ListCache;
786
-
787
- /* Built-in method references that are verified to be native. */
788
- var Map = _getNative(_root, 'Map');
789
-
790
- var _Map = Map;
791
-
792
- /**
793
- * Removes all key-value entries from the map.
794
- *
795
- * @private
796
- * @name clear
797
- * @memberOf MapCache
798
- */
799
- function mapCacheClear() {
800
- this.size = 0;
801
- this.__data__ = {
802
- 'hash': new _Hash,
803
- 'map': new (_Map || _ListCache),
804
- 'string': new _Hash
805
- };
806
- }
807
-
808
- var _mapCacheClear = mapCacheClear;
809
-
810
- /**
811
- * Checks if `value` is suitable for use as unique object key.
812
- *
813
- * @private
814
- * @param {*} value The value to check.
815
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
816
- */
817
- function isKeyable(value) {
818
- var type = typeof value;
819
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
820
- ? (value !== '__proto__')
821
- : (value === null);
822
- }
823
-
824
- var _isKeyable = isKeyable;
825
-
826
- /**
827
- * Gets the data for `map`.
828
- *
829
- * @private
830
- * @param {Object} map The map to query.
831
- * @param {string} key The reference key.
832
- * @returns {*} Returns the map data.
833
- */
834
- function getMapData(map, key) {
835
- var data = map.__data__;
836
- return _isKeyable(key)
837
- ? data[typeof key == 'string' ? 'string' : 'hash']
838
- : data.map;
839
- }
840
-
841
- var _getMapData = getMapData;
842
-
843
- /**
844
- * Removes `key` and its value from the map.
845
- *
846
- * @private
847
- * @name delete
848
- * @memberOf MapCache
849
- * @param {string} key The key of the value to remove.
850
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
851
- */
852
- function mapCacheDelete(key) {
853
- var result = _getMapData(this, key)['delete'](key);
854
- this.size -= result ? 1 : 0;
855
- return result;
856
- }
857
-
858
- var _mapCacheDelete = mapCacheDelete;
859
-
860
- /**
861
- * Gets the map value for `key`.
862
- *
863
- * @private
864
- * @name get
865
- * @memberOf MapCache
866
- * @param {string} key The key of the value to get.
867
- * @returns {*} Returns the entry value.
868
- */
869
- function mapCacheGet(key) {
870
- return _getMapData(this, key).get(key);
871
- }
872
-
873
- var _mapCacheGet = mapCacheGet;
874
-
875
- /**
876
- * Checks if a map value for `key` exists.
877
- *
878
- * @private
879
- * @name has
880
- * @memberOf MapCache
881
- * @param {string} key The key of the entry to check.
882
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
883
- */
884
- function mapCacheHas(key) {
885
- return _getMapData(this, key).has(key);
886
- }
887
-
888
- var _mapCacheHas = mapCacheHas;
889
-
890
- /**
891
- * Sets the map `key` to `value`.
892
- *
893
- * @private
894
- * @name set
895
- * @memberOf MapCache
896
- * @param {string} key The key of the value to set.
897
- * @param {*} value The value to set.
898
- * @returns {Object} Returns the map cache instance.
899
- */
900
- function mapCacheSet(key, value) {
901
- var data = _getMapData(this, key),
902
- size = data.size;
903
-
904
- data.set(key, value);
905
- this.size += data.size == size ? 0 : 1;
906
- return this;
907
- }
908
-
909
- var _mapCacheSet = mapCacheSet;
910
-
911
- /**
912
- * Creates a map cache object to store key-value pairs.
913
- *
914
- * @private
915
- * @constructor
916
- * @param {Array} [entries] The key-value pairs to cache.
917
- */
918
- function MapCache(entries) {
919
- var index = -1,
920
- length = entries == null ? 0 : entries.length;
921
-
922
- this.clear();
923
- while (++index < length) {
924
- var entry = entries[index];
925
- this.set(entry[0], entry[1]);
926
- }
927
- }
928
-
929
- // Add methods to `MapCache`.
930
- MapCache.prototype.clear = _mapCacheClear;
931
- MapCache.prototype['delete'] = _mapCacheDelete;
932
- MapCache.prototype.get = _mapCacheGet;
933
- MapCache.prototype.has = _mapCacheHas;
934
- MapCache.prototype.set = _mapCacheSet;
935
-
936
- var _MapCache = MapCache;
937
-
938
- /** Error message constants. */
939
- var FUNC_ERROR_TEXT = 'Expected a function';
940
-
941
- /**
942
- * Creates a function that memoizes the result of `func`. If `resolver` is
943
- * provided, it determines the cache key for storing the result based on the
944
- * arguments provided to the memoized function. By default, the first argument
945
- * provided to the memoized function is used as the map cache key. The `func`
946
- * is invoked with the `this` binding of the memoized function.
947
- *
948
- * **Note:** The cache is exposed as the `cache` property on the memoized
949
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
950
- * constructor with one whose instances implement the
951
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
952
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
953
- *
954
- * @static
955
- * @memberOf _
956
- * @since 0.1.0
957
- * @category Function
958
- * @param {Function} func The function to have its output memoized.
959
- * @param {Function} [resolver] The function to resolve the cache key.
960
- * @returns {Function} Returns the new memoized function.
961
- * @example
962
- *
963
- * var object = { 'a': 1, 'b': 2 };
964
- * var other = { 'c': 3, 'd': 4 };
965
- *
966
- * var values = _.memoize(_.values);
967
- * values(object);
968
- * // => [1, 2]
969
- *
970
- * values(other);
971
- * // => [3, 4]
972
- *
973
- * object.a = 2;
974
- * values(object);
975
- * // => [1, 2]
976
- *
977
- * // Modify the result cache.
978
- * values.cache.set(object, ['a', 'b']);
979
- * values(object);
980
- * // => ['a', 'b']
981
- *
982
- * // Replace `_.memoize.Cache`.
983
- * _.memoize.Cache = WeakMap;
984
- */
985
- function memoize(func, resolver) {
986
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
987
- throw new TypeError(FUNC_ERROR_TEXT);
988
- }
989
- var memoized = function() {
990
- var args = arguments,
991
- key = resolver ? resolver.apply(this, args) : args[0],
992
- cache = memoized.cache;
993
-
994
- if (cache.has(key)) {
995
- return cache.get(key);
996
- }
997
- var result = func.apply(this, args);
998
- memoized.cache = cache.set(key, result) || cache;
999
- return result;
1000
- };
1001
- memoized.cache = new (memoize.Cache || _MapCache);
1002
- return memoized;
1003
- }
1004
-
1005
- // Expose `MapCache`.
1006
- memoize.Cache = _MapCache;
1007
-
1008
- var memoize_1 = memoize;
1009
-
1010
- /** Used as the maximum memoize cache size. */
1011
- var MAX_MEMOIZE_SIZE = 500;
1012
-
1013
- /**
1014
- * A specialized version of `_.memoize` which clears the memoized function's
1015
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1016
- *
1017
- * @private
1018
- * @param {Function} func The function to have its output memoized.
1019
- * @returns {Function} Returns the new memoized function.
1020
- */
1021
- function memoizeCapped(func) {
1022
- var result = memoize_1(func, function(key) {
1023
- if (cache.size === MAX_MEMOIZE_SIZE) {
1024
- cache.clear();
1025
- }
1026
- return key;
1027
- });
1028
-
1029
- var cache = result.cache;
1030
- return result;
1031
- }
1032
-
1033
- var _memoizeCapped = memoizeCapped;
1034
-
1035
- /** Used to match property names within property paths. */
1036
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1037
-
1038
- /** Used to match backslashes in property paths. */
1039
- var reEscapeChar = /\\(\\)?/g;
1040
-
1041
- /**
1042
- * Converts `string` to a property path array.
1043
- *
1044
- * @private
1045
- * @param {string} string The string to convert.
1046
- * @returns {Array} Returns the property path array.
1047
- */
1048
- var stringToPath = _memoizeCapped(function(string) {
1049
- var result = [];
1050
- if (string.charCodeAt(0) === 46 /* . */) {
1051
- result.push('');
1052
- }
1053
- string.replace(rePropName, function(match, number, quote, subString) {
1054
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1055
- });
1056
- return result;
1057
- });
1058
-
1059
- var _stringToPath = stringToPath;
1060
-
1061
- /**
1062
- * A specialized version of `_.map` for arrays without support for iteratee
1063
- * shorthands.
1064
- *
1065
- * @private
1066
- * @param {Array} [array] The array to iterate over.
1067
- * @param {Function} iteratee The function invoked per iteration.
1068
- * @returns {Array} Returns the new mapped array.
1069
- */
1070
- function arrayMap(array, iteratee) {
1071
- var index = -1,
1072
- length = array == null ? 0 : array.length,
1073
- result = Array(length);
1074
-
1075
- while (++index < length) {
1076
- result[index] = iteratee(array[index], index, array);
1077
- }
1078
- return result;
1079
- }
1080
-
1081
- var _arrayMap = arrayMap;
1082
-
1083
- /** Used as references for various `Number` constants. */
1084
- var INFINITY$1 = 1 / 0;
1085
-
1086
- /** Used to convert symbols to primitives and strings. */
1087
- var symbolProto = _Symbol ? _Symbol.prototype : undefined,
1088
- symbolToString = symbolProto ? symbolProto.toString : undefined;
1089
-
1090
- /**
1091
- * The base implementation of `_.toString` which doesn't convert nullish
1092
- * values to empty strings.
1093
- *
1094
- * @private
1095
- * @param {*} value The value to process.
1096
- * @returns {string} Returns the string.
1097
- */
1098
- function baseToString(value) {
1099
- // Exit early for strings to avoid a performance hit in some environments.
1100
- if (typeof value == 'string') {
1101
- return value;
1102
- }
1103
- if (isArray_1(value)) {
1104
- // Recursively convert values (susceptible to call stack limits).
1105
- return _arrayMap(value, baseToString) + '';
1106
- }
1107
- if (isSymbol_1(value)) {
1108
- return symbolToString ? symbolToString.call(value) : '';
1109
- }
1110
- var result = (value + '');
1111
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
1112
- }
1113
-
1114
- var _baseToString = baseToString;
1115
-
1116
- /**
1117
- * Converts `value` to a string. An empty string is returned for `null`
1118
- * and `undefined` values. The sign of `-0` is preserved.
1119
- *
1120
- * @static
1121
- * @memberOf _
1122
- * @since 4.0.0
1123
- * @category Lang
1124
- * @param {*} value The value to convert.
1125
- * @returns {string} Returns the converted string.
1126
- * @example
1127
- *
1128
- * _.toString(null);
1129
- * // => ''
1130
- *
1131
- * _.toString(-0);
1132
- * // => '-0'
1133
- *
1134
- * _.toString([1, 2, 3]);
1135
- * // => '1,2,3'
1136
- */
1137
- function toString(value) {
1138
- return value == null ? '' : _baseToString(value);
1139
- }
1140
-
1141
- var toString_1 = toString;
1142
-
1143
- /**
1144
- * Casts `value` to a path array if it's not one.
1145
- *
1146
- * @private
1147
- * @param {*} value The value to inspect.
1148
- * @param {Object} [object] The object to query keys on.
1149
- * @returns {Array} Returns the cast property path array.
1150
- */
1151
- function castPath(value, object) {
1152
- if (isArray_1(value)) {
1153
- return value;
1154
- }
1155
- return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
1156
- }
1157
-
1158
- var _castPath = castPath;
1159
-
1160
- /** Used as references for various `Number` constants. */
1161
- var INFINITY = 1 / 0;
1162
-
1163
- /**
1164
- * Converts `value` to a string key if it's not a string or symbol.
1165
- *
1166
- * @private
1167
- * @param {*} value The value to inspect.
1168
- * @returns {string|symbol} Returns the key.
1169
- */
1170
- function toKey(value) {
1171
- if (typeof value == 'string' || isSymbol_1(value)) {
1172
- return value;
1173
- }
1174
- var result = (value + '');
1175
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
1176
- }
1177
-
1178
- var _toKey = toKey;
1179
-
1180
- /**
1181
- * The base implementation of `_.get` without support for default values.
1182
- *
1183
- * @private
1184
- * @param {Object} object The object to query.
1185
- * @param {Array|string} path The path of the property to get.
1186
- * @returns {*} Returns the resolved value.
1187
- */
1188
- function baseGet(object, path) {
1189
- path = _castPath(path, object);
1190
-
1191
- var index = 0,
1192
- length = path.length;
1193
-
1194
- while (object != null && index < length) {
1195
- object = object[_toKey(path[index++])];
1196
- }
1197
- return (index && index == length) ? object : undefined;
1198
- }
1199
-
1200
- var _baseGet = baseGet;
1201
-
1202
- /**
1203
- * Gets the value at `path` of `object`. If the resolved value is
1204
- * `undefined`, the `defaultValue` is returned in its place.
1205
- *
1206
- * @static
1207
- * @memberOf _
1208
- * @since 3.7.0
1209
- * @category Object
1210
- * @param {Object} object The object to query.
1211
- * @param {Array|string} path The path of the property to get.
1212
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
1213
- * @returns {*} Returns the resolved value.
1214
- * @example
1215
- *
1216
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
1217
- *
1218
- * _.get(object, 'a[0].b.c');
1219
- * // => 3
1220
- *
1221
- * _.get(object, ['a', '0', 'b', 'c']);
1222
- * // => 3
1223
- *
1224
- * _.get(object, 'a.b.c', 'default');
1225
- * // => 'default'
1226
- */
1227
- function get(object, path, defaultValue) {
1228
- var result = object == null ? undefined : _baseGet(object, path);
1229
- return result === undefined ? defaultValue : result;
1230
- }
1231
-
1232
- var get_1 = get;
1233
-
1234
- /**
1235
- * Copyright (c) 2014-present, Facebook, Inc.
1236
- *
1237
- * This source code is licensed under the MIT license found in the
1238
- * LICENSE file in the root directory of this source tree.
1239
- */
1240
-
1241
- createCommonjsModule(function (module) {
1242
- var runtime = (function (exports) {
1243
-
1244
- var Op = Object.prototype;
1245
- var hasOwn = Op.hasOwnProperty;
1246
- var undefined$1; // More compressible than void 0.
1247
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
1248
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
1249
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
1250
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
1251
-
1252
- function define(obj, key, value) {
1253
- Object.defineProperty(obj, key, {
1254
- value: value,
1255
- enumerable: true,
1256
- configurable: true,
1257
- writable: true
1258
- });
1259
- return obj[key];
1260
- }
1261
- try {
1262
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
1263
- define({}, "");
1264
- } catch (err) {
1265
- define = function(obj, key, value) {
1266
- return obj[key] = value;
1267
- };
1268
- }
1269
-
1270
- function wrap(innerFn, outerFn, self, tryLocsList) {
1271
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
1272
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
1273
- var generator = Object.create(protoGenerator.prototype);
1274
- var context = new Context(tryLocsList || []);
1275
-
1276
- // The ._invoke method unifies the implementations of the .next,
1277
- // .throw, and .return methods.
1278
- generator._invoke = makeInvokeMethod(innerFn, self, context);
1279
-
1280
- return generator;
1281
- }
1282
- exports.wrap = wrap;
1283
-
1284
- // Try/catch helper to minimize deoptimizations. Returns a completion
1285
- // record like context.tryEntries[i].completion. This interface could
1286
- // have been (and was previously) designed to take a closure to be
1287
- // invoked without arguments, but in all the cases we care about we
1288
- // already have an existing method we want to call, so there's no need
1289
- // to create a new function object. We can even get away with assuming
1290
- // the method takes exactly one argument, since that happens to be true
1291
- // in every case, so we don't have to touch the arguments object. The
1292
- // only additional allocation required is the completion record, which
1293
- // has a stable shape and so hopefully should be cheap to allocate.
1294
- function tryCatch(fn, obj, arg) {
1295
- try {
1296
- return { type: "normal", arg: fn.call(obj, arg) };
1297
- } catch (err) {
1298
- return { type: "throw", arg: err };
1299
- }
1300
- }
1301
-
1302
- var GenStateSuspendedStart = "suspendedStart";
1303
- var GenStateSuspendedYield = "suspendedYield";
1304
- var GenStateExecuting = "executing";
1305
- var GenStateCompleted = "completed";
1306
-
1307
- // Returning this object from the innerFn has the same effect as
1308
- // breaking out of the dispatch switch statement.
1309
- var ContinueSentinel = {};
1310
-
1311
- // Dummy constructor functions that we use as the .constructor and
1312
- // .constructor.prototype properties for functions that return Generator
1313
- // objects. For full spec compliance, you may wish to configure your
1314
- // minifier not to mangle the names of these two functions.
1315
- function Generator() {}
1316
- function GeneratorFunction() {}
1317
- function GeneratorFunctionPrototype() {}
1318
-
1319
- // This is a polyfill for %IteratorPrototype% for environments that
1320
- // don't natively support it.
1321
- var IteratorPrototype = {};
1322
- define(IteratorPrototype, iteratorSymbol, function () {
1323
- return this;
1324
- });
1325
-
1326
- var getProto = Object.getPrototypeOf;
1327
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
1328
- if (NativeIteratorPrototype &&
1329
- NativeIteratorPrototype !== Op &&
1330
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
1331
- // This environment has a native %IteratorPrototype%; use it instead
1332
- // of the polyfill.
1333
- IteratorPrototype = NativeIteratorPrototype;
1334
- }
1335
-
1336
- var Gp = GeneratorFunctionPrototype.prototype =
1337
- Generator.prototype = Object.create(IteratorPrototype);
1338
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
1339
- define(Gp, "constructor", GeneratorFunctionPrototype);
1340
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
1341
- GeneratorFunction.displayName = define(
1342
- GeneratorFunctionPrototype,
1343
- toStringTagSymbol,
1344
- "GeneratorFunction"
1345
- );
1346
-
1347
- // Helper for defining the .next, .throw, and .return methods of the
1348
- // Iterator interface in terms of a single ._invoke method.
1349
- function defineIteratorMethods(prototype) {
1350
- ["next", "throw", "return"].forEach(function(method) {
1351
- define(prototype, method, function(arg) {
1352
- return this._invoke(method, arg);
1353
- });
1354
- });
1355
- }
1356
-
1357
- exports.isGeneratorFunction = function(genFun) {
1358
- var ctor = typeof genFun === "function" && genFun.constructor;
1359
- return ctor
1360
- ? ctor === GeneratorFunction ||
1361
- // For the native GeneratorFunction constructor, the best we can
1362
- // do is to check its .name property.
1363
- (ctor.displayName || ctor.name) === "GeneratorFunction"
1364
- : false;
1365
- };
1366
-
1367
- exports.mark = function(genFun) {
1368
- if (Object.setPrototypeOf) {
1369
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
1370
- } else {
1371
- genFun.__proto__ = GeneratorFunctionPrototype;
1372
- define(genFun, toStringTagSymbol, "GeneratorFunction");
1373
- }
1374
- genFun.prototype = Object.create(Gp);
1375
- return genFun;
1376
- };
1377
-
1378
- // Within the body of any async function, `await x` is transformed to
1379
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
1380
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
1381
- // meant to be awaited.
1382
- exports.awrap = function(arg) {
1383
- return { __await: arg };
1384
- };
1385
-
1386
- function AsyncIterator(generator, PromiseImpl) {
1387
- function invoke(method, arg, resolve, reject) {
1388
- var record = tryCatch(generator[method], generator, arg);
1389
- if (record.type === "throw") {
1390
- reject(record.arg);
1391
- } else {
1392
- var result = record.arg;
1393
- var value = result.value;
1394
- if (value &&
1395
- typeof value === "object" &&
1396
- hasOwn.call(value, "__await")) {
1397
- return PromiseImpl.resolve(value.__await).then(function(value) {
1398
- invoke("next", value, resolve, reject);
1399
- }, function(err) {
1400
- invoke("throw", err, resolve, reject);
1401
- });
1402
- }
1403
-
1404
- return PromiseImpl.resolve(value).then(function(unwrapped) {
1405
- // When a yielded Promise is resolved, its final value becomes
1406
- // the .value of the Promise<{value,done}> result for the
1407
- // current iteration.
1408
- result.value = unwrapped;
1409
- resolve(result);
1410
- }, function(error) {
1411
- // If a rejected Promise was yielded, throw the rejection back
1412
- // into the async generator function so it can be handled there.
1413
- return invoke("throw", error, resolve, reject);
1414
- });
1415
- }
1416
- }
1417
-
1418
- var previousPromise;
1419
-
1420
- function enqueue(method, arg) {
1421
- function callInvokeWithMethodAndArg() {
1422
- return new PromiseImpl(function(resolve, reject) {
1423
- invoke(method, arg, resolve, reject);
1424
- });
1425
- }
1426
-
1427
- return previousPromise =
1428
- // If enqueue has been called before, then we want to wait until
1429
- // all previous Promises have been resolved before calling invoke,
1430
- // so that results are always delivered in the correct order. If
1431
- // enqueue has not been called before, then it is important to
1432
- // call invoke immediately, without waiting on a callback to fire,
1433
- // so that the async generator function has the opportunity to do
1434
- // any necessary setup in a predictable way. This predictability
1435
- // is why the Promise constructor synchronously invokes its
1436
- // executor callback, and why async functions synchronously
1437
- // execute code before the first await. Since we implement simple
1438
- // async functions in terms of async generators, it is especially
1439
- // important to get this right, even though it requires care.
1440
- previousPromise ? previousPromise.then(
1441
- callInvokeWithMethodAndArg,
1442
- // Avoid propagating failures to Promises returned by later
1443
- // invocations of the iterator.
1444
- callInvokeWithMethodAndArg
1445
- ) : callInvokeWithMethodAndArg();
1446
- }
1447
-
1448
- // Define the unified helper method that is used to implement .next,
1449
- // .throw, and .return (see defineIteratorMethods).
1450
- this._invoke = enqueue;
1451
- }
1452
-
1453
- defineIteratorMethods(AsyncIterator.prototype);
1454
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
1455
- return this;
1456
- });
1457
- exports.AsyncIterator = AsyncIterator;
1458
-
1459
- // Note that simple async functions are implemented on top of
1460
- // AsyncIterator objects; they just return a Promise for the value of
1461
- // the final result produced by the iterator.
1462
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
1463
- if (PromiseImpl === void 0) PromiseImpl = Promise;
1464
-
1465
- var iter = new AsyncIterator(
1466
- wrap(innerFn, outerFn, self, tryLocsList),
1467
- PromiseImpl
1468
- );
1469
-
1470
- return exports.isGeneratorFunction(outerFn)
1471
- ? iter // If outerFn is a generator, return the full iterator.
1472
- : iter.next().then(function(result) {
1473
- return result.done ? result.value : iter.next();
1474
- });
1475
- };
1476
-
1477
- function makeInvokeMethod(innerFn, self, context) {
1478
- var state = GenStateSuspendedStart;
1479
-
1480
- return function invoke(method, arg) {
1481
- if (state === GenStateExecuting) {
1482
- throw new Error("Generator is already running");
1483
- }
1484
-
1485
- if (state === GenStateCompleted) {
1486
- if (method === "throw") {
1487
- throw arg;
1488
- }
1489
-
1490
- // Be forgiving, per 25.3.3.3.3 of the spec:
1491
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
1492
- return doneResult();
1493
- }
1494
-
1495
- context.method = method;
1496
- context.arg = arg;
1497
-
1498
- while (true) {
1499
- var delegate = context.delegate;
1500
- if (delegate) {
1501
- var delegateResult = maybeInvokeDelegate(delegate, context);
1502
- if (delegateResult) {
1503
- if (delegateResult === ContinueSentinel) continue;
1504
- return delegateResult;
1505
- }
1506
- }
1507
-
1508
- if (context.method === "next") {
1509
- // Setting context._sent for legacy support of Babel's
1510
- // function.sent implementation.
1511
- context.sent = context._sent = context.arg;
1512
-
1513
- } else if (context.method === "throw") {
1514
- if (state === GenStateSuspendedStart) {
1515
- state = GenStateCompleted;
1516
- throw context.arg;
1517
- }
1518
-
1519
- context.dispatchException(context.arg);
1520
-
1521
- } else if (context.method === "return") {
1522
- context.abrupt("return", context.arg);
1523
- }
1524
-
1525
- state = GenStateExecuting;
1526
-
1527
- var record = tryCatch(innerFn, self, context);
1528
- if (record.type === "normal") {
1529
- // If an exception is thrown from innerFn, we leave state ===
1530
- // GenStateExecuting and loop back for another invocation.
1531
- state = context.done
1532
- ? GenStateCompleted
1533
- : GenStateSuspendedYield;
1534
-
1535
- if (record.arg === ContinueSentinel) {
1536
- continue;
1537
- }
1538
-
1539
- return {
1540
- value: record.arg,
1541
- done: context.done
1542
- };
1543
-
1544
- } else if (record.type === "throw") {
1545
- state = GenStateCompleted;
1546
- // Dispatch the exception by looping back around to the
1547
- // context.dispatchException(context.arg) call above.
1548
- context.method = "throw";
1549
- context.arg = record.arg;
1550
- }
1551
- }
1552
- };
1553
- }
1554
-
1555
- // Call delegate.iterator[context.method](context.arg) and handle the
1556
- // result, either by returning a { value, done } result from the
1557
- // delegate iterator, or by modifying context.method and context.arg,
1558
- // setting context.delegate to null, and returning the ContinueSentinel.
1559
- function maybeInvokeDelegate(delegate, context) {
1560
- var method = delegate.iterator[context.method];
1561
- if (method === undefined$1) {
1562
- // A .throw or .return when the delegate iterator has no .throw
1563
- // method always terminates the yield* loop.
1564
- context.delegate = null;
1565
-
1566
- if (context.method === "throw") {
1567
- // Note: ["return"] must be used for ES3 parsing compatibility.
1568
- if (delegate.iterator["return"]) {
1569
- // If the delegate iterator has a return method, give it a
1570
- // chance to clean up.
1571
- context.method = "return";
1572
- context.arg = undefined$1;
1573
- maybeInvokeDelegate(delegate, context);
1574
-
1575
- if (context.method === "throw") {
1576
- // If maybeInvokeDelegate(context) changed context.method from
1577
- // "return" to "throw", let that override the TypeError below.
1578
- return ContinueSentinel;
1579
- }
1580
- }
1581
-
1582
- context.method = "throw";
1583
- context.arg = new TypeError(
1584
- "The iterator does not provide a 'throw' method");
1585
- }
1586
-
1587
- return ContinueSentinel;
1588
- }
1589
-
1590
- var record = tryCatch(method, delegate.iterator, context.arg);
1591
-
1592
- if (record.type === "throw") {
1593
- context.method = "throw";
1594
- context.arg = record.arg;
1595
- context.delegate = null;
1596
- return ContinueSentinel;
1597
- }
1598
-
1599
- var info = record.arg;
1600
-
1601
- if (! info) {
1602
- context.method = "throw";
1603
- context.arg = new TypeError("iterator result is not an object");
1604
- context.delegate = null;
1605
- return ContinueSentinel;
1606
- }
1607
-
1608
- if (info.done) {
1609
- // Assign the result of the finished delegate to the temporary
1610
- // variable specified by delegate.resultName (see delegateYield).
1611
- context[delegate.resultName] = info.value;
1612
-
1613
- // Resume execution at the desired location (see delegateYield).
1614
- context.next = delegate.nextLoc;
1615
-
1616
- // If context.method was "throw" but the delegate handled the
1617
- // exception, let the outer generator proceed normally. If
1618
- // context.method was "next", forget context.arg since it has been
1619
- // "consumed" by the delegate iterator. If context.method was
1620
- // "return", allow the original .return call to continue in the
1621
- // outer generator.
1622
- if (context.method !== "return") {
1623
- context.method = "next";
1624
- context.arg = undefined$1;
1625
- }
1626
-
1627
- } else {
1628
- // Re-yield the result returned by the delegate method.
1629
- return info;
1630
- }
1631
-
1632
- // The delegate iterator is finished, so forget it and continue with
1633
- // the outer generator.
1634
- context.delegate = null;
1635
- return ContinueSentinel;
1636
- }
1637
-
1638
- // Define Generator.prototype.{next,throw,return} in terms of the
1639
- // unified ._invoke helper method.
1640
- defineIteratorMethods(Gp);
1641
-
1642
- define(Gp, toStringTagSymbol, "Generator");
1643
-
1644
- // A Generator should always return itself as the iterator object when the
1645
- // @@iterator function is called on it. Some browsers' implementations of the
1646
- // iterator prototype chain incorrectly implement this, causing the Generator
1647
- // object to not be returned from this call. This ensures that doesn't happen.
1648
- // See https://github.com/facebook/regenerator/issues/274 for more details.
1649
- define(Gp, iteratorSymbol, function() {
1650
- return this;
1651
- });
1652
-
1653
- define(Gp, "toString", function() {
1654
- return "[object Generator]";
1655
- });
1656
-
1657
- function pushTryEntry(locs) {
1658
- var entry = { tryLoc: locs[0] };
1659
-
1660
- if (1 in locs) {
1661
- entry.catchLoc = locs[1];
1662
- }
1663
-
1664
- if (2 in locs) {
1665
- entry.finallyLoc = locs[2];
1666
- entry.afterLoc = locs[3];
1667
- }
1668
-
1669
- this.tryEntries.push(entry);
1670
- }
1671
-
1672
- function resetTryEntry(entry) {
1673
- var record = entry.completion || {};
1674
- record.type = "normal";
1675
- delete record.arg;
1676
- entry.completion = record;
1677
- }
1678
-
1679
- function Context(tryLocsList) {
1680
- // The root entry object (effectively a try statement without a catch
1681
- // or a finally block) gives us a place to store values thrown from
1682
- // locations where there is no enclosing try statement.
1683
- this.tryEntries = [{ tryLoc: "root" }];
1684
- tryLocsList.forEach(pushTryEntry, this);
1685
- this.reset(true);
1686
- }
1687
-
1688
- exports.keys = function(object) {
1689
- var keys = [];
1690
- for (var key in object) {
1691
- keys.push(key);
1692
- }
1693
- keys.reverse();
1694
-
1695
- // Rather than returning an object with a next method, we keep
1696
- // things simple and return the next function itself.
1697
- return function next() {
1698
- while (keys.length) {
1699
- var key = keys.pop();
1700
- if (key in object) {
1701
- next.value = key;
1702
- next.done = false;
1703
- return next;
1704
- }
1705
- }
1706
-
1707
- // To avoid creating an additional object, we just hang the .value
1708
- // and .done properties off the next function object itself. This
1709
- // also ensures that the minifier will not anonymize the function.
1710
- next.done = true;
1711
- return next;
1712
- };
1713
- };
1714
-
1715
- function values(iterable) {
1716
- if (iterable) {
1717
- var iteratorMethod = iterable[iteratorSymbol];
1718
- if (iteratorMethod) {
1719
- return iteratorMethod.call(iterable);
1720
- }
1721
-
1722
- if (typeof iterable.next === "function") {
1723
- return iterable;
1724
- }
1725
-
1726
- if (!isNaN(iterable.length)) {
1727
- var i = -1, next = function next() {
1728
- while (++i < iterable.length) {
1729
- if (hasOwn.call(iterable, i)) {
1730
- next.value = iterable[i];
1731
- next.done = false;
1732
- return next;
1733
- }
1734
- }
1735
-
1736
- next.value = undefined$1;
1737
- next.done = true;
1738
-
1739
- return next;
1740
- };
1741
-
1742
- return next.next = next;
1743
- }
1744
- }
1745
-
1746
- // Return an iterator with no values.
1747
- return { next: doneResult };
1748
- }
1749
- exports.values = values;
1750
-
1751
- function doneResult() {
1752
- return { value: undefined$1, done: true };
1753
- }
1754
-
1755
- Context.prototype = {
1756
- constructor: Context,
1757
-
1758
- reset: function(skipTempReset) {
1759
- this.prev = 0;
1760
- this.next = 0;
1761
- // Resetting context._sent for legacy support of Babel's
1762
- // function.sent implementation.
1763
- this.sent = this._sent = undefined$1;
1764
- this.done = false;
1765
- this.delegate = null;
1766
-
1767
- this.method = "next";
1768
- this.arg = undefined$1;
1769
-
1770
- this.tryEntries.forEach(resetTryEntry);
1771
-
1772
- if (!skipTempReset) {
1773
- for (var name in this) {
1774
- // Not sure about the optimal order of these conditions:
1775
- if (name.charAt(0) === "t" &&
1776
- hasOwn.call(this, name) &&
1777
- !isNaN(+name.slice(1))) {
1778
- this[name] = undefined$1;
1779
- }
1780
- }
1781
- }
1782
- },
1783
-
1784
- stop: function() {
1785
- this.done = true;
1786
-
1787
- var rootEntry = this.tryEntries[0];
1788
- var rootRecord = rootEntry.completion;
1789
- if (rootRecord.type === "throw") {
1790
- throw rootRecord.arg;
1791
- }
1792
-
1793
- return this.rval;
1794
- },
1795
-
1796
- dispatchException: function(exception) {
1797
- if (this.done) {
1798
- throw exception;
1799
- }
1800
-
1801
- var context = this;
1802
- function handle(loc, caught) {
1803
- record.type = "throw";
1804
- record.arg = exception;
1805
- context.next = loc;
1806
-
1807
- if (caught) {
1808
- // If the dispatched exception was caught by a catch block,
1809
- // then let that catch block handle the exception normally.
1810
- context.method = "next";
1811
- context.arg = undefined$1;
1812
- }
1813
-
1814
- return !! caught;
1815
- }
1816
-
1817
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1818
- var entry = this.tryEntries[i];
1819
- var record = entry.completion;
1820
-
1821
- if (entry.tryLoc === "root") {
1822
- // Exception thrown outside of any try block that could handle
1823
- // it, so set the completion value of the entire function to
1824
- // throw the exception.
1825
- return handle("end");
1826
- }
1827
-
1828
- if (entry.tryLoc <= this.prev) {
1829
- var hasCatch = hasOwn.call(entry, "catchLoc");
1830
- var hasFinally = hasOwn.call(entry, "finallyLoc");
1831
-
1832
- if (hasCatch && hasFinally) {
1833
- if (this.prev < entry.catchLoc) {
1834
- return handle(entry.catchLoc, true);
1835
- } else if (this.prev < entry.finallyLoc) {
1836
- return handle(entry.finallyLoc);
1837
- }
1838
-
1839
- } else if (hasCatch) {
1840
- if (this.prev < entry.catchLoc) {
1841
- return handle(entry.catchLoc, true);
1842
- }
1843
-
1844
- } else if (hasFinally) {
1845
- if (this.prev < entry.finallyLoc) {
1846
- return handle(entry.finallyLoc);
1847
- }
1848
-
1849
- } else {
1850
- throw new Error("try statement without catch or finally");
1851
- }
1852
- }
1853
- }
1854
- },
1855
-
1856
- abrupt: function(type, arg) {
1857
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1858
- var entry = this.tryEntries[i];
1859
- if (entry.tryLoc <= this.prev &&
1860
- hasOwn.call(entry, "finallyLoc") &&
1861
- this.prev < entry.finallyLoc) {
1862
- var finallyEntry = entry;
1863
- break;
1864
- }
1865
- }
1866
-
1867
- if (finallyEntry &&
1868
- (type === "break" ||
1869
- type === "continue") &&
1870
- finallyEntry.tryLoc <= arg &&
1871
- arg <= finallyEntry.finallyLoc) {
1872
- // Ignore the finally entry if control is not jumping to a
1873
- // location outside the try/catch block.
1874
- finallyEntry = null;
1875
- }
1876
-
1877
- var record = finallyEntry ? finallyEntry.completion : {};
1878
- record.type = type;
1879
- record.arg = arg;
1880
-
1881
- if (finallyEntry) {
1882
- this.method = "next";
1883
- this.next = finallyEntry.finallyLoc;
1884
- return ContinueSentinel;
1885
- }
1886
-
1887
- return this.complete(record);
1888
- },
1889
-
1890
- complete: function(record, afterLoc) {
1891
- if (record.type === "throw") {
1892
- throw record.arg;
1893
- }
1894
-
1895
- if (record.type === "break" ||
1896
- record.type === "continue") {
1897
- this.next = record.arg;
1898
- } else if (record.type === "return") {
1899
- this.rval = this.arg = record.arg;
1900
- this.method = "return";
1901
- this.next = "end";
1902
- } else if (record.type === "normal" && afterLoc) {
1903
- this.next = afterLoc;
1904
- }
1905
-
1906
- return ContinueSentinel;
1907
- },
1908
-
1909
- finish: function(finallyLoc) {
1910
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1911
- var entry = this.tryEntries[i];
1912
- if (entry.finallyLoc === finallyLoc) {
1913
- this.complete(entry.completion, entry.afterLoc);
1914
- resetTryEntry(entry);
1915
- return ContinueSentinel;
1916
- }
1917
- }
1918
- },
1919
-
1920
- "catch": function(tryLoc) {
1921
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1922
- var entry = this.tryEntries[i];
1923
- if (entry.tryLoc === tryLoc) {
1924
- var record = entry.completion;
1925
- if (record.type === "throw") {
1926
- var thrown = record.arg;
1927
- resetTryEntry(entry);
1928
- }
1929
- return thrown;
1930
- }
1931
- }
1932
-
1933
- // The context.catch method must only be called with a location
1934
- // argument that corresponds to a known catch block.
1935
- throw new Error("illegal catch attempt");
1936
- },
1937
-
1938
- delegateYield: function(iterable, resultName, nextLoc) {
1939
- this.delegate = {
1940
- iterator: values(iterable),
1941
- resultName: resultName,
1942
- nextLoc: nextLoc
1943
- };
1944
-
1945
- if (this.method === "next") {
1946
- // Deliberately forget the last sent value so that we don't
1947
- // accidentally pass it on to the delegate.
1948
- this.arg = undefined$1;
1949
- }
1950
-
1951
- return ContinueSentinel;
1952
- }
1953
- };
1954
-
1955
- // Regardless of whether this script is executing as a CommonJS module
1956
- // or not, return the runtime object so that we can declare the variable
1957
- // regeneratorRuntime in the outer scope, which allows this module to be
1958
- // injected easily by `bin/regenerator --include-runtime script.js`.
1959
- return exports;
1960
-
1961
- }(
1962
- // If this script is executing as a CommonJS module, use module.exports
1963
- // as the regeneratorRuntime namespace. Otherwise create a new empty
1964
- // object. Either way, the resulting object will be used to initialize
1965
- // the regeneratorRuntime variable at the top of this file.
1966
- module.exports
1967
- ));
1968
-
1969
- try {
1970
- regeneratorRuntime = runtime;
1971
- } catch (accidentalStrictMode) {
1972
- // This module should not be running in strict mode, so the above
1973
- // assignment should always work unless something is misconfigured. Just
1974
- // in case runtime.js accidentally runs in strict mode, in modern engines
1975
- // we can explicitly access globalThis. In older engines we can escape
1976
- // strict mode using a global Function call. This could conceivably fail
1977
- // if a Content Security Policy forbids using Function, but in that case
1978
- // the proper solution is to fix the accidental strict mode problem. If
1979
- // you've misconfigured your bundler to force strict mode and applied a
1980
- // CSP to forbid Function, and you're not willing to fix either of those
1981
- // problems, please detail your unique predicament in a GitHub issue.
1982
- if (typeof globalThis === "object") {
1983
- globalThis.regeneratorRuntime = runtime;
1984
- } else {
1985
- Function("r", "regeneratorRuntime = r")(runtime);
1986
- }
1987
- }
1988
- });
1989
-
1990
- var hexToRGB = function hexToRGB(hex) {
1991
- var r = parseInt(hex.slice(1, 3), 16);
1992
- var g = parseInt(hex.slice(3, 5), 16);
1993
- var b = parseInt(hex.slice(5, 7), 16);
1994
- return {
1995
- r: r,
1996
- g: g,
1997
- b: b
1998
- };
1999
- };
2000
- var getLuminanceOfColor = function getLuminanceOfColor(hex) {
2001
- var _hexToRGB = hexToRGB(hex),
2002
- r = _hexToRGB.r,
2003
- g = _hexToRGB.g,
2004
- b = _hexToRGB.b;
2005
-
2006
- return r * 0.299 + g * 0.587 + b * 0.114;
2007
- };
2008
- var rgbToHex = function rgbToHex() {
2009
- var color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "rgba(255, 255, 255, 0)";
2010
- var rgba = color.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);
2011
- 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;
2012
- };
2013
- var getTextColor = function getTextColor() {
2014
- var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "rgb(255,255,255)";
2015
- var isRegexCheck = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(theme);
2016
- var getHexValue = !isRegexCheck ? rgbToHex(theme) : theme;
2017
- var textColor = getLuminanceOfColor(getHexValue) < 155 ? "light" : "dark";
2018
- return textColor;
2019
- };
2020
- PropTypes__default["default"].shape({
2021
- "sketches-host": PropTypes__default["default"].string,
2022
- "cdn-name": PropTypes__default["default"].string,
2023
- "cdn-image": PropTypes__default["default"].string
2024
- });
2025
- var shapeStory = PropTypes__default["default"].shape({
2026
- headline: PropTypes__default["default"].string,
2027
- "last-published-at": PropTypes__default["default"].number,
2028
- subheadline: PropTypes__default["default"].string
2029
- });
2030
-
2031
- function _extends() {
2032
- _extends = Object.assign || function (target) {
2033
- for (var i = 1; i < arguments.length; i++) {
2034
- var source = arguments[i];
2035
-
2036
- for (var key in source) {
2037
- if (Object.prototype.hasOwnProperty.call(source, key)) {
2038
- target[key] = source[key];
2039
- }
2040
- }
2041
- }
2042
-
2043
- return target;
2044
- };
2045
-
2046
- return _extends.apply(this, arguments);
2047
- }
2048
-
2049
- function _defineProperty(obj, key, value) {
2050
- if (key in obj) {
2051
- Object.defineProperty(obj, key, {
2052
- value: value,
2053
- enumerable: true,
2054
- configurable: true,
2055
- writable: true
2056
- });
2057
- } else {
2058
- obj[key] = value;
2059
- }
2060
-
2061
- return obj;
2062
- }
2063
-
2064
- function _arrayWithHoles(arr) {
2065
- if (Array.isArray(arr)) return arr;
2066
- }
2067
-
2068
- function _iterableToArrayLimit(arr, i) {
2069
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
2070
-
2071
- if (_i == null) return;
2072
- var _arr = [];
2073
- var _n = true;
2074
- var _d = false;
2075
-
2076
- var _s, _e;
2077
-
2078
- try {
2079
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
2080
- _arr.push(_s.value);
2081
-
2082
- if (i && _arr.length === i) break;
2083
- }
2084
- } catch (err) {
2085
- _d = true;
2086
- _e = err;
2087
- } finally {
2088
- try {
2089
- if (!_n && _i["return"] != null) _i["return"]();
2090
- } finally {
2091
- if (_d) throw _e;
2092
- }
2093
- }
2094
-
2095
- return _arr;
2096
- }
2097
-
2098
- function _arrayLikeToArray(arr, len) {
2099
- if (len == null || len > arr.length) len = arr.length;
2100
-
2101
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
2102
- arr2[i] = arr[i];
2103
- }
2104
-
2105
- return arr2;
2106
- }
2107
-
2108
- function _unsupportedIterableToArray(o, minLen) {
2109
- if (!o) return;
2110
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
2111
- var n = Object.prototype.toString.call(o).slice(8, -1);
2112
- if (n === "Object" && o.constructor) n = o.constructor.name;
2113
- if (n === "Map" || n === "Set") return Array.from(o);
2114
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
2115
- }
2116
-
2117
- function _nonIterableRest() {
2118
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2119
- }
2120
-
2121
- function _slicedToArray(arr, i) {
2122
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
2123
- }
2124
-
2125
- var Loading = function Loading(_ref) {
2126
- _ref.width;
2127
- _ref.height;
2128
- _ref.iconColor;
2129
- return /*#__PURE__*/React__default["default"].createElement("div", {
2130
- className: "loading-m_loading-indicator__2Dlst"
2131
- }, /*#__PURE__*/React__default["default"].createElement("svg", {
2132
- width: "40",
2133
- height: "40",
2134
- xmlns: "http://www.w3.org/2000/svg",
2135
- viewBox: "0 0 100 100",
2136
- preserveAspectRatio: "xMidYMid"
2137
- }, /*#__PURE__*/React__default["default"].createElement("circle", {
2138
- cx: "84",
2139
- cy: "50",
2140
- r: "0",
2141
- fill: "currentColor"
2142
- }, /*#__PURE__*/React__default["default"].createElement("animate", {
2143
- attributeName: "r",
2144
- values: "10;0;0;0;0",
2145
- keyTimes: "0;0.25;0.5;0.75;1",
2146
- keySplines: "0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",
2147
- calcMode: "spline",
2148
- dur: "2s",
2149
- repeatCount: "indefinite",
2150
- begin: "0s"
2151
- }), /*#__PURE__*/React__default["default"].createElement("animate", {
2152
- attributeName: "cx",
2153
- values: "84;84;84;84;84",
2154
- keyTimes: "0;0.25;0.5;0.75;1",
2155
- keySplines: "0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",
2156
- calcMode: "spline",
2157
- dur: "2s",
2158
- repeatCount: "indefinite",
2159
- begin: "0s"
2160
- })), /*#__PURE__*/React__default["default"].createElement("circle", {
2161
- cx: "84",
2162
- cy: "50",
2163
- r: ".709",
2164
- fill: "currentColor"
2165
- }, /*#__PURE__*/React__default["default"].createElement("animate", {
2166
- attributeName: "r",
2167
- values: "0;10;10;10;0",
2168
- keyTimes: "0;0.25;0.5;0.75;1",
2169
- keySplines: "0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",
2170
- calcMode: "spline",
2171
- dur: "2s",
2172
- repeatCount: "indefinite",
2173
- begin: "-1s"
2174
- }), /*#__PURE__*/React__default["default"].createElement("animate", {
2175
- attributeName: "cx",
2176
- values: "16;16;50;84;84",
2177
- keyTimes: "0;0.25;0.5;0.75;1",
2178
- keySplines: "0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",
2179
- calcMode: "spline",
2180
- dur: "2s",
2181
- repeatCount: "indefinite",
2182
- begin: "-1s"
2183
- })), /*#__PURE__*/React__default["default"].createElement("circle", {
2184
- cx: "81.59",
2185
- cy: "50",
2186
- r: "10",
2187
- fill: "currentColor"
2188
- }, /*#__PURE__*/React__default["default"].createElement("animate", {
2189
- attributeName: "r",
2190
- values: "0;10;10;10;0",
2191
- keyTimes: "0;0.25;0.5;0.75;1",
2192
- keySplines: "0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",
2193
- calcMode: "spline",
2194
- dur: "2s",
2195
- repeatCount: "indefinite",
2196
- begin: "-0.5s"
2197
- }), /*#__PURE__*/React__default["default"].createElement("animate", {
2198
- attributeName: "cx",
2199
- values: "16;16;50;84;84",
2200
- keyTimes: "0;0.25;0.5;0.75;1",
2201
- keySplines: "0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",
2202
- calcMode: "spline",
2203
- dur: "2s",
2204
- repeatCount: "indefinite",
2205
- begin: "-0.5s"
2206
- })), /*#__PURE__*/React__default["default"].createElement("circle", {
2207
- cx: "47.59",
2208
- cy: "50",
2209
- r: "10",
2210
- fill: "currentColor"
2211
- }, /*#__PURE__*/React__default["default"].createElement("animate", {
2212
- attributeName: "r",
2213
- values: "0;10;10;10;0",
2214
- keyTimes: "0;0.25;0.5;0.75;1",
2215
- keySplines: "0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",
2216
- calcMode: "spline",
2217
- dur: "2s",
2218
- repeatCount: "indefinite",
2219
- begin: "0s"
2220
- }), /*#__PURE__*/React__default["default"].createElement("animate", {
2221
- attributeName: "cx",
2222
- values: "16;16;50;84;84",
2223
- keyTimes: "0;0.25;0.5;0.75;1",
2224
- keySplines: "0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",
2225
- calcMode: "spline",
2226
- dur: "2s",
2227
- repeatCount: "indefinite",
2228
- begin: "0s"
2229
- })), /*#__PURE__*/React__default["default"].createElement("circle", {
2230
- cx: "16",
2231
- cy: "50",
2232
- r: "9.291",
2233
- fill: "currentColor"
2234
- }, /*#__PURE__*/React__default["default"].createElement("animate", {
2235
- attributeName: "r",
2236
- values: "0;0;10;10;10",
2237
- keyTimes: "0;0.25;0.5;0.75;1",
2238
- keySplines: "0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",
2239
- calcMode: "spline",
2240
- dur: "2s",
2241
- repeatCount: "indefinite",
2242
- begin: "0s"
2243
- }), /*#__PURE__*/React__default["default"].createElement("animate", {
2244
- attributeName: "cx",
2245
- values: "16;16;16;50;84",
2246
- keyTimes: "0;0.25;0.5;0.75;1",
2247
- keySplines: "0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1",
2248
- calcMode: "spline",
2249
- dur: "2s",
2250
- repeatCount: "indefinite",
2251
- begin: "0s"
2252
- }))));
2253
- };
2254
- Loading.propTypes = {
2255
- width: PropTypes__default["default"].object,
2256
- height: PropTypes__default["default"].object,
2257
- iconColor: PropTypes__default["default"].object
2258
- };
2259
-
2260
- var HyperLinkIcon = function HyperLinkIcon() {
2261
- return /*#__PURE__*/React__default["default"].createElement("svg", {
2262
- xmlns: "http://www.w3.org/2000/svg",
2263
- width: "36",
2264
- height: "28"
2265
- }, /*#__PURE__*/React__default["default"].createElement("g", {
2266
- fill: "none",
2267
- fillRule: "evenodd"
2268
- }, /*#__PURE__*/React__default["default"].createElement("rect", {
2269
- width: "36",
2270
- height: "28",
2271
- fill: "#3D6FCF",
2272
- rx: "4"
2273
- }), /*#__PURE__*/React__default["default"].createElement("path", {
2274
- stroke: "#FFF",
2275
- strokeLinecap: "round",
2276
- strokeLinejoin: "round",
2277
- strokeWidth: "2",
2278
- d: "M22 14.667v4c0 .736-.597 1.333-1.333 1.333h-7.334A1.333 1.333 0 0112 18.667v-7.334c0-.736.597-1.333 1.333-1.333h4M20 8h4v4m-7.333 3.333L24 8"
2279
- })));
2280
- };
2281
-
2282
- var HyperLink = function HyperLink(_ref) {
2283
- var _ref$hyperLink = _ref.hyperLink,
2284
- hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
2285
- if (!hyperLink) return null;
2286
- return /*#__PURE__*/React__default["default"].createElement(components.Link, {
2287
- href: hyperLink,
2288
- "aria-label": "hyperlink-button",
2289
- className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
2290
- target: "_blank",
2291
- rel: "noopener noreferrer"
2292
- }, /*#__PURE__*/React__default["default"].createElement(HyperLinkIcon, null));
2293
- };
2294
- HyperLink.propTypes = {
2295
- hyperLink: PropTypes__default["default"].string
2296
- };
2297
-
2298
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2299
-
2300
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2301
- var Lightbox = /*#__PURE__*/React.lazy(function () {
2302
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-image-lightbox')); });
2303
- });
2304
- var FullScreenImages = function FullScreenImages(_ref) {
2305
- var _ref$imageSlug = _ref.imageSlug,
2306
- imageSlug = _ref$imageSlug === void 0 ? "" : _ref$imageSlug,
2307
- template = _ref.template,
2308
- _ref$element = _ref.element,
2309
- element = _ref$element === void 0 ? {} : _ref$element,
2310
- props = _ref.props;
2311
- var cdnImage = reactRedux.useSelector(function (state) {
2312
- return get_1(state, ["qt", "config", "cdn-image"]);
2313
- });
2314
-
2315
- var _useState = React.useState(0),
2316
- _useState2 = _slicedToArray(_useState, 2),
2317
- photoIndex = _useState2[0],
2318
- handleImage = _useState2[1];
2319
-
2320
- var _useState3 = React.useState(false),
2321
- _useState4 = _slicedToArray(_useState3, 2),
2322
- isOpen = _useState4[0],
2323
- handleOpen = _useState4[1];
2324
-
2325
- var deviceWidth = get_1(global, ["innerWidth"], 0);
2326
- var hyperlinks = get_1(element, ["story-elements"], []).map(function (image) {
2327
- return image.hyperlink;
2328
- });
2329
- var imageUrlList = [];
2330
-
2331
- if (!imageSlug) {
2332
- imageUrlList = get_1(element, ["story-elements"], []).map(function (image) {
2333
- return "//".concat(cdnImage, "/").concat(image["image-s3-key"], "?w=").concat(deviceWidth);
2334
- });
2335
- }
2336
-
2337
- var onClickHandler = function onClickHandler(index) {
2338
- handleOpen(true);
2339
- handleImage(index);
2340
- };
2341
-
2342
- var onClickKey = imageSlug ? "onClick" : "onClickHandler";
2343
- var imageUrlListLength = imageUrlList.length;
2344
-
2345
- var onMoveNext = function onMoveNext(imageUrlListLength) {
2346
- var next = (photoIndex + 1) % imageUrlListLength;
2347
- handleImage(next);
2348
- };
2349
-
2350
- var onMovePrev = function onMovePrev(imageUrlListLength) {
2351
- var prev = (photoIndex + imageUrlListLength - 1) % imageUrlListLength;
2352
- handleImage(prev);
2353
- };
2354
-
2355
- var onClose = function onClose() {
2356
- handleImage(0);
2357
- handleOpen(false);
2358
- };
2359
-
2360
- var getHyperLink = function getHyperLink() {
2361
- if (element.hyperlink || hyperlinks[photoIndex]) {
2362
- return /*#__PURE__*/React__default["default"].createElement(HyperLink, {
2363
- hyperLink: element.hyperlink || hyperlinks[photoIndex]
2364
- });
2365
- }
2366
-
2367
- return null;
2368
- };
2369
-
2370
- var lightboxProps = imageSlug ? {
2371
- mainSrc: "//".concat(cdnImage, "/").concat(imageSlug, "?w=").concat(deviceWidth),
2372
- toolbarButtons: [getHyperLink()]
2373
- } : {
2374
- mainSrc: imageUrlList[photoIndex],
2375
- nextSrc: imageUrlList[(photoIndex + 1) % imageUrlListLength],
2376
- prevSrc: imageUrlList[(photoIndex + imageUrlListLength - 1) % imageUrlListLength],
2377
- onMoveNextRequest: function onMoveNextRequest() {
2378
- return onMoveNext(imageUrlListLength);
2379
- },
2380
- onMovePrevRequest: function onMovePrevRequest() {
2381
- return onMovePrev(imageUrlListLength);
2382
- },
2383
- toolbarButtons: [getHyperLink()]
2384
- };
2385
-
2386
- var LoadingScreen = function LoadingScreen() {
2387
- return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Loading, null));
2388
- };
2389
-
2390
- return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(template, _objectSpread(_defineProperty({}, onClickKey, onClickHandler), props)), isOpen ? /*#__PURE__*/React__default["default"].createElement(React.Suspense, {
2391
- fallback: /*#__PURE__*/React__default["default"].createElement(LoadingScreen, null)
2392
- }, /*#__PURE__*/React__default["default"].createElement(Lightbox, _extends({
2393
- wrapperClassName: "arr--image-lightbox",
2394
- onCloseRequest: onClose
2395
- }, lightboxProps))) : null);
2396
- };
2397
- FullScreenImages.propTypes = {
2398
- imageSlug: PropTypes__default["default"].string,
2399
- template: PropTypes__default["default"].func,
2400
- element: PropTypes__default["default"].shape({
2401
- "story-elements": PropTypes__default["default"].array
2402
- }),
2403
- props: PropTypes__default["default"].object
2404
- };
2405
-
2406
- function _objectWithoutPropertiesLoose(source, excluded) {
2407
- if (source == null) return {};
2408
- var target = {};
2409
- var sourceKeys = Object.keys(source);
2410
- var key, i;
2411
-
2412
- for (i = 0; i < sourceKeys.length; i++) {
2413
- key = sourceKeys[i];
2414
- if (excluded.indexOf(key) >= 0) continue;
2415
- target[key] = source[key];
2416
- }
2417
-
2418
- return target;
2419
- }
2420
-
2421
- function _objectWithoutProperties(source, excluded) {
2422
- if (source == null) return {};
2423
- var target = _objectWithoutPropertiesLoose(source, excluded);
2424
- var key, i;
2425
-
2426
- if (Object.getOwnPropertySymbols) {
2427
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
2428
-
2429
- for (i = 0; i < sourceSymbolKeys.length; i++) {
2430
- key = sourceSymbolKeys[i];
2431
- if (excluded.indexOf(key) >= 0) continue;
2432
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
2433
- target[key] = source[key];
2434
- }
2435
- }
2436
-
2437
- return target;
2438
- }
2439
-
2440
- var _excluded = ["element", "render"];
2441
- var withElementWrapper = function withElementWrapper(StoryElement) {
2442
- return function (props) {
2443
- var element = props.element,
2444
- render = props.render,
2445
- restProps = _objectWithoutProperties(props, _excluded);
2446
-
2447
- if (!element) return null;
2448
- if (render && typeof render === "function") return render(props);
2449
- return /*#__PURE__*/React__default["default"].createElement(StoryElement, _extends({}, restProps, {
2450
- element: element
2451
- }));
2452
- };
2453
- };
2454
- withElementWrapper.propTypes = {
2455
- StoryElement: PropTypes__default["default"].element
2456
- };
2457
-
2458
- var optionsDefaults_1 = createCommonjsModule(function (module, exports) {
2459
-
2460
- Object.defineProperty(exports, "__esModule", {
2461
- value: true
2462
- });
2463
- exports["default"] = void 0;
2464
- var optionsDefaults = {
2465
- attributeNames: {
2466
- styleName: 'className'
2467
- },
2468
- generateScopedName: '[path]___[name]__[local]___[hash:base64:5]',
2469
- handleMissingStyleName: 'throw'
2470
- };
2471
- var _default = optionsDefaults;
2472
- exports["default"] = _default;
2473
-
2474
-
2475
- });
2476
-
2477
- var getClassName = createCommonjsModule(function (module, exports) {
2478
-
2479
- Object.defineProperty(exports, "__esModule", {
2480
- value: true
2481
- });
2482
- exports["default"] = void 0;
2483
-
2484
- var _optionsDefaults = _interopRequireDefault(optionsDefaults_1);
2485
-
2486
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
2487
-
2488
- var isNamespacedStyleName = function isNamespacedStyleName(styleName) {
2489
- return styleName.indexOf('.') !== -1;
2490
- };
2491
-
2492
- var handleError = function handleError(message, handleMissingStyleName) {
2493
- if (handleMissingStyleName === 'throw') {
2494
- throw new Error(message);
2495
- } else if (handleMissingStyleName === 'warn') {
2496
- // eslint-disable-next-line no-console
2497
- console.warn(message);
2498
- }
2499
-
2500
- return null;
2501
- };
2502
-
2503
- var getClassNameForNamespacedStyleName = function getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
2504
- // Note:
2505
- // Do not use the desctructing syntax with Babel.
2506
- // Desctructing adds _slicedToArray helper.
2507
- var styleNameParts = styleName.split('.');
2508
- var importName = styleNameParts[0];
2509
- var moduleName = styleNameParts[1];
2510
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
2511
-
2512
- if (!moduleName) {
2513
- return handleError('Invalid style name: ' + styleName, handleMissingStyleName);
2514
- }
2515
-
2516
- if (!styleModuleImportMap[importName]) {
2517
- return handleError('CSS module import does not exist: ' + importName, handleMissingStyleName);
2518
- }
2519
-
2520
- if (!styleModuleImportMap[importName][moduleName]) {
2521
- return handleError('CSS module does not exist: ' + moduleName, handleMissingStyleName);
2522
- }
2523
-
2524
- return styleModuleImportMap[importName][moduleName];
2525
- };
2526
-
2527
- var getClassNameFromMultipleImports = function getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
2528
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
2529
- var importKeysWithMatches = Object.keys(styleModuleImportMap).map(function (importKey) {
2530
- return styleModuleImportMap[importKey][styleName] && importKey;
2531
- }).filter(function (importKey) {
2532
- return importKey;
2533
- });
2534
-
2535
- if (importKeysWithMatches.length > 1) {
2536
- 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');
2537
- }
2538
-
2539
- if (importKeysWithMatches.length === 0) {
2540
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
2541
- }
2542
-
2543
- return styleModuleImportMap[importKeysWithMatches[0]][styleName];
2544
- };
2545
-
2546
- var _default = function _default(styleNameValue, styleModuleImportMap, options) {
2547
- var styleModuleImportMapKeys = Object.keys(styleModuleImportMap);
2548
-
2549
- var _ref = options || {},
2550
- _ref$handleMissingSty = _ref.handleMissingStyleName,
2551
- handleMissingStyleName = _ref$handleMissingSty === void 0 ? _optionsDefaults["default"].handleMissingStyleName : _ref$handleMissingSty,
2552
- _ref$autoResolveMulti = _ref.autoResolveMultipleImports,
2553
- autoResolveMultipleImports = _ref$autoResolveMulti === void 0 ? _optionsDefaults["default"].autoResolveMultipleImports : _ref$autoResolveMulti;
2554
-
2555
- if (!styleNameValue) {
2556
- return '';
2557
- }
2558
-
2559
- return styleNameValue.split(' ').filter(function (styleName) {
2560
- return styleName;
2561
- }).map(function (styleName) {
2562
- if (isNamespacedStyleName(styleName)) {
2563
- return getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleName);
2564
- }
2565
-
2566
- if (styleModuleImportMapKeys.length === 0) {
2567
- throw new Error('Cannot use styleName attribute for style name \'' + styleName + '\' without importing at least one stylesheet.');
2568
- }
2569
-
2570
- if (styleModuleImportMapKeys.length > 1) {
2571
- if (!autoResolveMultipleImports) {
2572
- throw new Error('Cannot use anonymous style name \'' + styleName + '\' with more than one stylesheet import without setting \'autoResolveMultipleImports\' to true.');
2573
- }
2574
-
2575
- return getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleName);
2576
- }
2577
-
2578
- var styleModuleMap = styleModuleImportMap[styleModuleImportMapKeys[0]];
2579
-
2580
- if (!styleModuleMap[styleName]) {
2581
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
2582
- }
2583
-
2584
- return styleModuleMap[styleName];
2585
- }).filter(function (className) {
2586
- // Remove any styles which could not be found (if handleMissingStyleName === 'ignore')
2587
- return className;
2588
- }).join(' ');
2589
- };
2590
-
2591
- exports["default"] = _default;
2592
-
2593
-
2594
- });
2595
-
2596
- var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
2597
-
2598
- var LeftArrow = function LeftArrow(_ref) {
2599
- var _ref$color = _ref.color,
2600
- color = _ref$color === void 0 ? "#333" : _ref$color;
2601
- return /*#__PURE__*/React__default["default"].createElement("svg", {
2602
- xmlns: "http://www.w3.org/2000/svg",
2603
- width: "16",
2604
- height: "16",
2605
- viewBox: "0 0 10 16"
2606
- }, /*#__PURE__*/React__default["default"].createElement("g", {
2607
- fill: "none",
2608
- fillRule: "nonzero"
2609
- }, /*#__PURE__*/React__default["default"].createElement("path", {
2610
- d: "M17 20H-7V-4h24z",
2611
- opacity: ".384"
2612
- }), /*#__PURE__*/React__default["default"].createElement("path", {
2613
- stroke: color,
2614
- d: "M9 16L1 8l8-8"
2615
- })));
2616
- };
2617
- LeftArrow.propTypes = {
2618
- color: PropTypes__default["default"].string
2619
- };
2620
-
2621
- var RightArrow = function RightArrow(_ref) {
2622
- var _ref$color = _ref.color,
2623
- color = _ref$color === void 0 ? "#333" : _ref$color;
2624
- return /*#__PURE__*/React__default["default"].createElement("svg", {
2625
- xmlns: "http://www.w3.org/2000/svg",
2626
- width: "16",
2627
- height: "16",
2628
- viewBox: "0 0 10 16"
2629
- }, /*#__PURE__*/React__default["default"].createElement("g", {
2630
- fill: "none",
2631
- fillRule: "nonzero"
2632
- }, /*#__PURE__*/React__default["default"].createElement("path", {
2633
- d: "M-7-4h24v24H-7z",
2634
- opacity: ".384"
2635
- }), /*#__PURE__*/React__default["default"].createElement("path", {
2636
- stroke: color,
2637
- d: "M1 0l8 8-8 8"
2638
- })));
2639
- };
2640
- RightArrow.propTypes = {
2641
- color: PropTypes__default["default"].string
2642
- };
2643
-
2644
- var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
2645
- var useStateValue = function useStateValue() {
2646
- return React.useContext(StateContext);
2647
- };
2648
-
2649
- var _styleModuleImportMap$1 = {
2650
- "./slider-arrow.m.css": {
2651
- "arrow": "slider-arrow-m_arrow__1eBUU",
2652
- "left-arrow-dark": "slider-arrow-m_left-arrow-dark__3mTJS",
2653
- "right-arrow-dark": "slider-arrow-m_right-arrow-dark__3hWZe",
2654
- "left-arrow-light": "slider-arrow-m_left-arrow-light__2ipUK",
2655
- "right-arrow-light": "slider-arrow-m_right-arrow-light__3omMU",
2656
- "left-arrow-ltr": "slider-arrow-m_left-arrow-ltr__1ngNF",
2657
- "right-arrow-ltr": "slider-arrow-m_right-arrow-ltr__2svWX",
2658
- "left-arrow-rtl": "slider-arrow-m_left-arrow-rtl__2ynyn",
2659
- "right-arrow-rtl": "slider-arrow-m_right-arrow-rtl__1GjPz"
2660
- }
2661
- };
2662
- var SliderArrow = function SliderArrow(_ref) {
2663
- var selectedIndex = _ref.selectedIndex,
2664
- previousClick = _ref.previousClick,
2665
- nextClick = _ref.nextClick,
2666
- noOfItems = _ref.noOfItems,
2667
- perView = _ref.perView,
2668
- languageDirection = _ref.languageDirection;
2669
-
2670
- if (noOfItems < 1) {
2671
- return null;
2672
- }
2673
-
2674
- var config = useStateValue() || {};
2675
- var textColor = getTextColor(config.theme);
2676
-
2677
- var rightArrowView = function rightArrowView() {
2678
- if (selectedIndex >= noOfItems - perView) return false;
2679
- return true;
2680
- };
2681
-
2682
- var getLeftArrowClassName = languageDirection === "rtl" ? "left-arrow-rtl" : "left-arrow-ltr";
2683
- var getRightArrowClassName = languageDirection === "rtl" ? "right-arrow-rtl" : "right-arrow-ltr";
2684
- return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, selectedIndex !== 0 ? /*#__PURE__*/React__default["default"].createElement("button", {
2685
- onClick: previousClick,
2686
- className: ("left-arrow ".concat(getLeftArrowClassName) ? "left-arrow ".concat(getLeftArrowClassName) + " " : "") + _getClassName("arrow left-arrow-".concat(textColor, " ").concat(getLeftArrowClassName), _styleModuleImportMap$1)
2687
- }, /*#__PURE__*/React__default["default"].createElement(LeftArrow, {
2688
- color: textColor === "dark" ? "#fff" : "#333"
2689
- })) : null, selectedIndex < noOfItems - 1 && rightArrowView() ? /*#__PURE__*/React__default["default"].createElement("button", {
2690
- onClick: nextClick,
2691
- className: ("right-arrow ".concat(getRightArrowClassName) ? "right-arrow ".concat(getRightArrowClassName) + " " : "") + _getClassName("arrow right-arrow-".concat(textColor, " ").concat(getRightArrowClassName), _styleModuleImportMap$1)
2692
- }, /*#__PURE__*/React__default["default"].createElement(RightArrow, {
2693
- color: textColor === "dark" ? "#fff" : "#333"
2694
- })) : null);
2695
- };
2696
- SliderArrow.propTypes = {
2697
- noOfItems: PropTypes.number,
2698
- perView: PropTypes.number,
2699
- slideIndicator: PropTypes.string,
2700
- previousClick: PropTypes.func,
2701
- nextClick: PropTypes.func,
2702
- selectedIndex: PropTypes.number,
2703
- languageDirection: PropTypes.string
2704
- };
2705
-
2706
- var _styleModuleImportMap = {
2707
- "./slider-indicator.m.css": {
2708
- "indicators": "slider-indicator-m_indicators__3MNXc",
2709
- "indicator": "slider-indicator-m_indicator__gTv3x",
2710
- "indicator-button": "slider-indicator-m_indicator-button__1e82r",
2711
- "indicator-dots": "slider-indicator-m_indicator-dots__2TR3H",
2712
- "indicator-dots-dark": "slider-indicator-m_indicator-dots-dark__sGrev",
2713
- "indicator-dots-light": "slider-indicator-m_indicator-dots-light__2nPn-",
2714
- "indicator-dashes": "slider-indicator-m_indicator-dashes__DyNCE",
2715
- "indicator-dashes-dark": "slider-indicator-m_indicator-dashes-dark__VrqJI",
2716
- "indicator-dashes-light": "slider-indicator-m_indicator-dashes-light__34ESx"
2717
- }
2718
- };
2719
- var SliderIndicator = function SliderIndicator(_ref) {
2720
- var indicatorItems = _ref.indicatorItems,
2721
- indicatorClick = _ref.indicatorClick,
2722
- selectedIndex = _ref.selectedIndex,
2723
- indicatorType = _ref.indicatorType;
2724
-
2725
- if (indicatorItems.length < 1) {
2726
- return null;
2727
- }
2728
-
2729
- var config = useStateValue() || {};
2730
- var textColor = getTextColor(config.theme);
2731
- return /*#__PURE__*/React__default["default"].createElement("ul", {
2732
- className: "slider-indicators slider-indicator-m_indicators__3MNXc"
2733
- }, indicatorItems.map(function (_, index) {
2734
- return /*#__PURE__*/React__default["default"].createElement("li", {
2735
- key: "slider-".concat(index),
2736
- className: "indicator slider-indicator-m_indicator__gTv3x",
2737
- onClick: function onClick(e) {
2738
- return indicatorClick(e, index);
2739
- }
2740
- }, /*#__PURE__*/React__default["default"].createElement("button", {
2741
- "aria-pressed": selectedIndex === index ? "true" : "false",
2742
- className: ("indicator-button indicator-".concat(indicatorType) ? "indicator-button indicator-".concat(indicatorType) + " " : "") + _getClassName("indicator-button indicator-".concat(indicatorType, " indicator-").concat(indicatorType, "-").concat(textColor), _styleModuleImportMap)
2743
- }));
2744
- }));
2745
- };
2746
- SliderIndicator.propTypes = {
2747
- indicatorItems: PropTypes.array,
2748
- perView: PropTypes.number,
2749
- indicatorType: PropTypes.string,
2750
- indicatorClick: PropTypes.func,
2751
- selectedIndex: PropTypes.number
2752
- };
2753
-
2754
- var smoothScroll = function smoothScroll(node, topOrLeft, horizontal) {
2755
- var _node$scrollTo;
2756
-
2757
- node.scrollTo((_node$scrollTo = {}, _defineProperty(_node$scrollTo, horizontal ? "left" : "top", topOrLeft), _defineProperty(_node$scrollTo, "behavior", "smooth"), _node$scrollTo));
2758
- };
2759
-
2760
- var updateItemSelection = function updateItemSelection(index, languageDirection, scroller, noOfItems) {
2761
- var getScrollValue = Math.floor(scroller.current.scrollWidth * (index / noOfItems));
2762
- var scrollValue = languageDirection === "rtl" ? getScrollValue * -1 : getScrollValue;
2763
- smoothScroll(scroller.current, scrollValue, true);
2764
- };
2765
-
2766
- var setIndicatorValue = function setIndicatorValue(func, ms) {
2767
- var timeout;
2768
- return function () {
2769
- clearTimeout(timeout);
2770
- timeout = setTimeout(function () {
2771
- timeout = null;
2772
- func();
2773
- }, ms);
2774
- };
2775
- };
2776
-
2777
- var ScrollSnap = function ScrollSnap(_ref) {
2778
- var children = _ref.children,
2779
- isArrow = _ref.isArrow,
2780
- interval = _ref.interval,
2781
- isInfinite = _ref.isInfinite,
2782
- pauseOnHover = _ref.pauseOnHover,
2783
- perView = _ref.perView,
2784
- slideIndicator = _ref.slideIndicator;
2785
-
2786
- var _useState = React.useState(0),
2787
- _useState2 = _slicedToArray(_useState, 2),
2788
- selectedIndex = _useState2[0],
2789
- setSelectedIndex = _useState2[1];
2790
-
2791
- var _useState3 = React.useState(false),
2792
- _useState4 = _slicedToArray(_useState3, 2),
2793
- autoScroll = _useState4[0],
2794
- setAutoScroll = _useState4[1];
2795
-
2796
- var languageDirection = reactRedux.useSelector(function (state) {
2797
- return get_1(state, ["qt", "config", "language", "direction"], "ltr");
2798
- });
2799
- var noOfItems = children ? children.length : 0;
2800
- var scroller = React.useRef(null);
2801
- var numberOfIndicatorsToShow = children.length - (perView - 1);
2802
- var indicatorItems = children.slice(0, numberOfIndicatorsToShow);
2803
- React.useEffect(function () {
2804
- if (scroller.current) {
2805
- scroller.current.addEventListener("scroll", setIndicatorValue(function () {
2806
- var value = Math.round(scroller.current.scrollLeft / scroller.current.scrollWidth * noOfItems);
2807
- setSelectedIndex(Math.abs(value));
2808
- }, 150)); // For Default Selection if selectedIndex is not 0 then manually select it
2809
-
2810
- if (selectedIndex !== 0) {
2811
- updateItemSelection(selectedIndex);
2812
- }
2813
- }
2814
-
2815
- return function () {
2816
- scroller.current.removeEventListener("scroll", setIndicatorValue);
2817
- };
2818
- }, []); // Infinite scroll
2819
-
2820
- React.useEffect(function () {
2821
- if (isInfinite && !autoScroll) {
2822
- var timer = setInterval(function () {
2823
- infiniteScroll();
2824
- }, interval);
2825
- return function () {
2826
- clearInterval(timer);
2827
- };
2828
- }
2829
- }, [isInfinite, autoScroll]);
2830
-
2831
- var infiniteScroll = function infiniteScroll() {
2832
- setSelectedIndex(function (value) {
2833
- var newIndex = value === noOfItems - perView ? 0 : value + 1;
2834
- updateItemSelection(newIndex, languageDirection, scroller, noOfItems);
2835
- return newIndex;
2836
- });
2837
- };
2838
-
2839
- var pauseAutoPlay = function pauseAutoPlay() {
2840
- pauseOnHover && setAutoScroll(!autoScroll);
2841
- };
2842
-
2843
- var indicatorClick = function indicatorClick(e, newIndex) {
2844
- e.preventDefault();
2845
- e.stopPropagation();
2846
- setSelectedIndex(newIndex);
2847
- updateItemSelection(newIndex, languageDirection, scroller, noOfItems);
2848
- };
2849
-
2850
- var nextClick = function nextClick(e) {
2851
- e.preventDefault();
2852
- e.stopPropagation();
2853
-
2854
- if (selectedIndex < noOfItems) {
2855
- var newIndex = selectedIndex + 1;
2856
- setSelectedIndex(newIndex);
2857
- updateItemSelection(newIndex, languageDirection, scroller, noOfItems);
2858
- }
2859
- };
2860
-
2861
- var previousClick = function previousClick(e) {
2862
- e.preventDefault();
2863
- e.stopPropagation();
2864
- var newIndex = selectedIndex - 1;
2865
- setSelectedIndex(newIndex);
2866
- updateItemSelection(newIndex, languageDirection, scroller, noOfItems);
2867
- };
2868
-
2869
- return /*#__PURE__*/React__default["default"].createElement("div", {
2870
- className: "scroll-snap-container"
2871
- }, /*#__PURE__*/React__default["default"].createElement("div", {
2872
- className: "scroll-snap-wrapper scroll-snap-m_wrapper__1Rz9v",
2873
- onMouseEnter: pauseAutoPlay,
2874
- onMouseLeave: pauseAutoPlay
2875
- }, /*#__PURE__*/React__default["default"].createElement("div", {
2876
- ref: scroller,
2877
- className: "scroll-snap-carousel scroll-snap-m_carousel__2m3cg"
2878
- }, children), isArrow && /*#__PURE__*/React__default["default"].createElement(SliderArrow, {
2879
- noOfItems: noOfItems,
2880
- perView: perView,
2881
- previousClick: previousClick,
2882
- nextClick: nextClick,
2883
- selectedIndex: selectedIndex,
2884
- languageDirection: languageDirection
2885
- })), children.length > perView && slideIndicator !== "none" && /*#__PURE__*/React__default["default"].createElement(SliderIndicator, {
2886
- indicatorItems: indicatorItems,
2887
- indicatorClick: indicatorClick,
2888
- selectedIndex: selectedIndex,
2889
- indicatorType: slideIndicator
2890
- }));
2891
- };
2892
- ScrollSnap.defaultProps = {
2893
- isArrow: true,
2894
- isInfinite: false,
2895
- interval: 4000,
2896
- pauseOnHover: true,
2897
- perView: 1,
2898
- slideIndicator: "dots"
2899
- };
2900
- ScrollSnap.propTypes = {
2901
- children: PropTypes.array.isRequired,
2902
- isArrow: PropTypes.bool,
2903
- isInfinite: PropTypes.bool,
2904
- interval: PropTypes.number,
2905
- pauseOnHover: PropTypes.bool,
2906
- perView: PropTypes.number,
2907
- slideIndicator: PropTypes.string
2908
- };
2909
-
2910
- var ImageSlideshowBase = function ImageSlideshowBase(props) {
2911
- if (!props.element) return null;
2912
-
2913
- var Slide = function Slide(image, index, onClickHandler) {
2914
- var id = image.id,
2915
- imageS3Key = image["image-s3-key"],
2916
- metadata = image.metadata,
2917
- title = image.title,
2918
- _image$hyperlink = image.hyperlink,
2919
- hyperlink = _image$hyperlink === void 0 ? "" : _image$hyperlink;
2920
- return /*#__PURE__*/React__default["default"].createElement("div", {
2921
- className: "image-slideshow-m_slide__3URCC",
2922
- key: id
2923
- }, /*#__PURE__*/React__default["default"].createElement("figure", {
2924
- key: id,
2925
- className: "image-slideshow-m_image-container__2VTEK",
2926
- onClick: function onClick() {
2927
- return onClickHandler(index);
2928
- }
2929
- }, /*#__PURE__*/React__default["default"].createElement(components.LazyLoadImages, {
2930
- margin: "0px"
2931
- }, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
2932
- slug: imageS3Key,
2933
- metadata: metadata,
2934
- "aspect-ratio": [16, 9],
2935
- defaultWidth: 480,
2936
- widths: [250, 480, 640],
2937
- imgParams: {
2938
- auto: ["format", "compress"]
2939
- },
2940
- className: "image-slideshow-m_image__1p1fO",
2941
- alt: title
2942
- }))), hyperlink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
2943
- hyperLink: hyperlink
2944
- }), /*#__PURE__*/React__default["default"].createElement("p", {
2945
- className: "image-slideshow-m_caption__mWpmc",
2946
- dangerouslySetInnerHTML: {
2947
- __html: title
2948
- }
2949
- }));
2950
- };
2951
-
2952
- var ImageSlideshowTemplate = function ImageSlideshowTemplate(_ref) {
2953
- var onClickHandler = _ref.onClickHandler;
2954
- var storyElements = get_1(props, ["element", "story-elements"], []);
2955
- return /*#__PURE__*/React__default["default"].createElement("div", {
2956
- className: "arr--image-slideshow-element image-slideshow-m_slideshow__3jRFX",
2957
- "data-test-id": "image-slideshow"
2958
- }, /*#__PURE__*/React__default["default"].createElement(ScrollSnap, {
2959
- slideIndicator: "none"
2960
- }, storyElements.map(function (image, index) {
2961
- return Slide(image, index, onClickHandler);
2962
- })));
2963
- };
2964
-
2965
- ImageSlideshowTemplate.propTypes = {
2966
- onClickHandler: PropTypes__default["default"].func
2967
- };
2968
- return /*#__PURE__*/React__default["default"].createElement(FullScreenImages, {
2969
- template: ImageSlideshowTemplate,
2970
- element: props.element
2971
- });
2972
- };
2973
-
2974
- ImageSlideshowBase.propTypes = {
2975
- element: PropTypes__default["default"].shape({
2976
- "story-elements": PropTypes__default["default"].array
2977
- }),
2978
- story: shapeStory
2979
- };
2980
- var ImageSlideshow = withElementWrapper(ImageSlideshowBase);
2981
-
2982
- exports.ImageSlideshow = ImageSlideshow;