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