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