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