@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,3102 +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
- require('react-timeago');
8
- require('date-fns-tz');
9
-
10
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
-
12
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
- var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
14
-
15
- function _extends() {
16
- _extends = Object.assign || function (target) {
17
- for (var i = 1; i < arguments.length; i++) {
18
- var source = arguments[i];
19
-
20
- for (var key in source) {
21
- if (Object.prototype.hasOwnProperty.call(source, key)) {
22
- target[key] = source[key];
23
- }
24
- }
25
- }
26
-
27
- return target;
28
- };
29
-
30
- return _extends.apply(this, arguments);
31
- }
32
-
33
- function _arrayWithHoles(arr) {
34
- if (Array.isArray(arr)) return arr;
35
- }
36
-
37
- function _iterableToArrayLimit(arr, i) {
38
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
39
-
40
- if (_i == null) return;
41
- var _arr = [];
42
- var _n = true;
43
- var _d = false;
44
-
45
- var _s, _e;
46
-
47
- try {
48
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
49
- _arr.push(_s.value);
50
-
51
- if (i && _arr.length === i) break;
52
- }
53
- } catch (err) {
54
- _d = true;
55
- _e = err;
56
- } finally {
57
- try {
58
- if (!_n && _i["return"] != null) _i["return"]();
59
- } finally {
60
- if (_d) throw _e;
61
- }
62
- }
63
-
64
- return _arr;
65
- }
66
-
67
- function _arrayLikeToArray(arr, len) {
68
- if (len == null || len > arr.length) len = arr.length;
69
-
70
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
71
- arr2[i] = arr[i];
72
- }
73
-
74
- return arr2;
75
- }
76
-
77
- function _unsupportedIterableToArray(o, minLen) {
78
- if (!o) return;
79
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
80
- var n = Object.prototype.toString.call(o).slice(8, -1);
81
- if (n === "Object" && o.constructor) n = o.constructor.name;
82
- if (n === "Map" || n === "Set") return Array.from(o);
83
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
84
- }
85
-
86
- function _nonIterableRest() {
87
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
88
- }
89
-
90
- function _slicedToArray(arr, i) {
91
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
92
- }
93
-
94
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
95
-
96
- function getDefaultExportFromCjs (x) {
97
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
98
- }
99
-
100
- function createCommonjsModule(fn) {
101
- var module = { exports: {} };
102
- return fn(module, module.exports), module.exports;
103
- }
104
-
105
- var optionsDefaults_1 = createCommonjsModule(function (module, exports) {
106
-
107
- Object.defineProperty(exports, "__esModule", {
108
- value: true
109
- });
110
- exports["default"] = void 0;
111
- var optionsDefaults = {
112
- attributeNames: {
113
- styleName: 'className'
114
- },
115
- generateScopedName: '[path]___[name]__[local]___[hash:base64:5]',
116
- handleMissingStyleName: 'throw'
117
- };
118
- var _default = optionsDefaults;
119
- exports["default"] = _default;
120
-
121
-
122
- });
123
-
124
- var getClassName = createCommonjsModule(function (module, exports) {
125
-
126
- Object.defineProperty(exports, "__esModule", {
127
- value: true
128
- });
129
- exports["default"] = void 0;
130
-
131
- var _optionsDefaults = _interopRequireDefault(optionsDefaults_1);
132
-
133
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
134
-
135
- var isNamespacedStyleName = function isNamespacedStyleName(styleName) {
136
- return styleName.indexOf('.') !== -1;
137
- };
138
-
139
- var handleError = function handleError(message, handleMissingStyleName) {
140
- if (handleMissingStyleName === 'throw') {
141
- throw new Error(message);
142
- } else if (handleMissingStyleName === 'warn') {
143
- // eslint-disable-next-line no-console
144
- console.warn(message);
145
- }
146
-
147
- return null;
148
- };
149
-
150
- var getClassNameForNamespacedStyleName = function getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
151
- // Note:
152
- // Do not use the desctructing syntax with Babel.
153
- // Desctructing adds _slicedToArray helper.
154
- var styleNameParts = styleName.split('.');
155
- var importName = styleNameParts[0];
156
- var moduleName = styleNameParts[1];
157
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
158
-
159
- if (!moduleName) {
160
- return handleError('Invalid style name: ' + styleName, handleMissingStyleName);
161
- }
162
-
163
- if (!styleModuleImportMap[importName]) {
164
- return handleError('CSS module import does not exist: ' + importName, handleMissingStyleName);
165
- }
166
-
167
- if (!styleModuleImportMap[importName][moduleName]) {
168
- return handleError('CSS module does not exist: ' + moduleName, handleMissingStyleName);
169
- }
170
-
171
- return styleModuleImportMap[importName][moduleName];
172
- };
173
-
174
- var getClassNameFromMultipleImports = function getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
175
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
176
- var importKeysWithMatches = Object.keys(styleModuleImportMap).map(function (importKey) {
177
- return styleModuleImportMap[importKey][styleName] && importKey;
178
- }).filter(function (importKey) {
179
- return importKey;
180
- });
181
-
182
- if (importKeysWithMatches.length > 1) {
183
- 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');
184
- }
185
-
186
- if (importKeysWithMatches.length === 0) {
187
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
188
- }
189
-
190
- return styleModuleImportMap[importKeysWithMatches[0]][styleName];
191
- };
192
-
193
- var _default = function _default(styleNameValue, styleModuleImportMap, options) {
194
- var styleModuleImportMapKeys = Object.keys(styleModuleImportMap);
195
-
196
- var _ref = options || {},
197
- _ref$handleMissingSty = _ref.handleMissingStyleName,
198
- handleMissingStyleName = _ref$handleMissingSty === void 0 ? _optionsDefaults["default"].handleMissingStyleName : _ref$handleMissingSty,
199
- _ref$autoResolveMulti = _ref.autoResolveMultipleImports,
200
- autoResolveMultipleImports = _ref$autoResolveMulti === void 0 ? _optionsDefaults["default"].autoResolveMultipleImports : _ref$autoResolveMulti;
201
-
202
- if (!styleNameValue) {
203
- return '';
204
- }
205
-
206
- return styleNameValue.split(' ').filter(function (styleName) {
207
- return styleName;
208
- }).map(function (styleName) {
209
- if (isNamespacedStyleName(styleName)) {
210
- return getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleName);
211
- }
212
-
213
- if (styleModuleImportMapKeys.length === 0) {
214
- throw new Error('Cannot use styleName attribute for style name \'' + styleName + '\' without importing at least one stylesheet.');
215
- }
216
-
217
- if (styleModuleImportMapKeys.length > 1) {
218
- if (!autoResolveMultipleImports) {
219
- throw new Error('Cannot use anonymous style name \'' + styleName + '\' with more than one stylesheet import without setting \'autoResolveMultipleImports\' to true.');
220
- }
221
-
222
- return getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleName);
223
- }
224
-
225
- var styleModuleMap = styleModuleImportMap[styleModuleImportMapKeys[0]];
226
-
227
- if (!styleModuleMap[styleName]) {
228
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
229
- }
230
-
231
- return styleModuleMap[styleName];
232
- }).filter(function (className) {
233
- // Remove any styles which could not be found (if handleMissingStyleName === 'ignore')
234
- return className;
235
- }).join(' ');
236
- };
237
-
238
- exports["default"] = _default;
239
-
240
-
241
- });
242
-
243
- var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
244
-
245
- var Twitter = function Twitter(_ref) {
246
- var _ref$color = _ref.color,
247
- color = _ref$color === void 0 ? "#1CB7EB" : _ref$color;
248
- return /*#__PURE__*/React__default["default"].createElement("svg", {
249
- xmlns: "http://www.w3.org/2000/svg",
250
- width: "24",
251
- height: "24",
252
- viewBox: "0 0 24 24"
253
- }, /*#__PURE__*/React__default["default"].createElement("path", {
254
- fill: color,
255
- d: "M19.137 8.594c.023.094.035.246.035.457 0 1.687-.41 3.316-1.23 4.887-.844 1.664-2.028 2.988-3.551 3.972-1.664 1.102-3.575 1.652-5.73 1.652-2.063 0-3.95-.55-5.661-1.652.258.024.55.035.879.035 1.71 0 3.246-.527 4.605-1.582-.82 0-1.54-.24-2.162-.72a3.673 3.673 0 01-1.283-1.811c.234.023.457.035.668.035.328 0 .656-.035.984-.105a3.724 3.724 0 01-2.109-1.301 3.542 3.542 0 01-.844-2.32v-.07a3.493 3.493 0 001.653.492 4.097 4.097 0 01-1.196-1.336 3.557 3.557 0 01-.457-1.776c0-.644.176-1.26.528-1.845a10.188 10.188 0 003.357 2.742 10.222 10.222 0 004.236 1.125 5.122 5.122 0 01-.07-.844c0-.656.164-1.272.492-1.846a3.615 3.615 0 011.336-1.353 3.568 3.568 0 011.828-.492c.54 0 1.037.105 1.494.316.457.21.862.492 1.213.844a7.479 7.479 0 002.356-.88c-.281.868-.82 1.548-1.617 2.04A7.926 7.926 0 0021 6.66a8.132 8.132 0 01-1.863 1.934z"
256
- }));
257
- };
258
- Twitter.propTypes = {
259
- color: PropTypes__default["default"].string
260
- };
261
-
262
- var Facebook = function Facebook(_ref) {
263
- var _ref$color = _ref.color,
264
- color = _ref$color === void 0 ? "#3B5998" : _ref$color;
265
- return /*#__PURE__*/React__default["default"].createElement("svg", {
266
- xmlns: "http://www.w3.org/2000/svg",
267
- width: "24",
268
- height: "24",
269
- viewBox: "0 0 24 24"
270
- }, /*#__PURE__*/React__default["default"].createElement("path", {
271
- fill: color,
272
- d: "M9.906 20v-7.156H7.5V10h2.406V7.75c0-1.187.334-2.11 1-2.766.667-.656 1.552-.984 2.656-.984.896 0 1.625.042 2.188.125v2.531h-1.5c-.563 0-.948.125-1.156.375-.167.209-.25.542-.25 1V10H15.5l-.375 2.844h-2.281V20H9.906z"
273
- }));
274
- };
275
- Facebook.propTypes = {
276
- color: PropTypes__default["default"].string
277
- };
278
-
279
- var LinkedIn = function LinkedIn(_ref) {
280
- var _ref$color = _ref.color,
281
- color = _ref$color === void 0 ? "#0077B5" : _ref$color;
282
- return /*#__PURE__*/React__default["default"].createElement("svg", {
283
- xmlns: "http://www.w3.org/2000/svg",
284
- width: "24",
285
- height: "24",
286
- viewBox: "0 0 24 24"
287
- }, /*#__PURE__*/React__default["default"].createElement("path", {
288
- fill: color,
289
- d: "M6.71 19H3.26V7.904h3.45V19zM5.005 6.383a1.926 1.926 0 01-1.41-.594A1.923 1.923 0 013 4.38c0-.544.198-1.014.594-1.41a1.926 1.926 0 011.41-.594c.544 0 1.014.198 1.41.594.396.396.594.866.594 1.41 0 .544-.198 1.014-.594 1.41a1.926 1.926 0 01-1.41.594zM19.625 19h-3.451v-5.418c0-.89-.074-1.534-.223-1.93-.272-.668-.804-1.002-1.596-1.002-.791 0-1.348.297-1.67.891-.247.445-.37 1.1-.37 1.967V19H8.9V7.904h3.303v1.522h.037c.248-.495.643-.903 1.188-1.225.593-.396 1.286-.594 2.078-.594 1.608 0 2.734.508 3.377 1.522.495.816.742 2.078.742 3.785V19z"
290
- }));
291
- };
292
- LinkedIn.propTypes = {
293
- color: PropTypes__default["default"].string
294
- };
295
-
296
- var WhatsApp = function WhatsApp(_ref) {
297
- var _ref$color = _ref.color,
298
- color = _ref$color === void 0 ? "#4AC959" : _ref$color;
299
- return /*#__PURE__*/React__default["default"].createElement("svg", {
300
- xmlns: "http://www.w3.org/2000/svg",
301
- width: "24",
302
- height: "24",
303
- viewBox: "0 0 24 24"
304
- }, /*#__PURE__*/React__default["default"].createElement("path", {
305
- fill: color,
306
- fillRule: "evenodd",
307
- d: "M18.404 5.505a9.457 9.457 0 012.02 2.96 8.587 8.587 0 01.715 3.449 8.665 8.665 0 01-1.245 4.53 9.282 9.282 0 01-3.347 3.307 8.894 8.894 0 01-4.552 1.225 8.835 8.835 0 01-4.327-1.102l-4.817 1.265 1.307-4.694a8.775 8.775 0 01-1.225-4.531 8.77 8.77 0 011.225-4.531 9.17 9.17 0 013.306-3.307 8.781 8.781 0 014.531-1.224c1.198 0 2.347.23 3.45.693a9.515 9.515 0 012.959 1.96zm-6.409 13.96c1.36 0 2.626-.34 3.797-1.02a7.75 7.75 0 002.796-2.756 7.202 7.202 0 001.04-3.775c0-.98-.203-1.933-.612-2.858a8.088 8.088 0 00-1.694-2.47 7.565 7.565 0 00-2.449-1.653 7.405 7.405 0 00-2.878-.571c-1.36 0-2.62.34-3.776 1.02a7.646 7.646 0 00-2.755 2.756 7.316 7.316 0 00-1.02 3.776c0 1.442.394 2.775 1.183 4l.164.286-.776 2.775 2.857-.734.286.163a7.275 7.275 0 003.837 1.061zm4.123-5.674l.123.082c.19.082.299.15.326.204.027.054.034.19.02.408a2.11 2.11 0 01-.163.674c-.095.231-.313.462-.653.694-.34.231-.633.36-.878.388-.38.054-.748.054-1.102 0-.408-.082-.952-.273-1.632-.572-1.388-.599-2.654-1.714-3.797-3.347l-.081-.082c-.6-.843-.898-1.62-.898-2.327 0-.707.244-1.32.734-1.837l.041-.04c.19-.19.395-.286.612-.286h.49c.11 0 .198.02.266.061.068.041.129.143.183.306l.694 1.674c.082.163.095.3.041.408a2.832 2.832 0 01-.53.735.917.917 0 00-.205.265c-.027.068 0 .143.082.225.38.707.83 1.265 1.347 1.673.381.3.952.64 1.714 1.02.218.11.381.096.49-.04.354-.408.599-.707.735-.898.054-.109.123-.163.204-.163.082 0 .177.013.286.04.218.082.735.327 1.551.735z"
308
- }));
309
- };
310
- WhatsApp.propTypes = {
311
- color: PropTypes__default["default"].string
312
- };
313
-
314
- var getSocialIcons = function getSocialIcons(color, iconType) {
315
- switch (iconType) {
316
- case "plain-color-svg":
317
- return {
318
- facebook: /*#__PURE__*/React__default["default"].createElement(Facebook, {
319
- key: iconType
320
- }),
321
- twitter: /*#__PURE__*/React__default["default"].createElement(Twitter, {
322
- key: iconType
323
- }),
324
- linkedin: /*#__PURE__*/React__default["default"].createElement(LinkedIn, {
325
- key: iconType
326
- }),
327
- whatsapp: /*#__PURE__*/React__default["default"].createElement(WhatsApp, {
328
- key: iconType
329
- })
330
- };
331
-
332
- default:
333
- return {
334
- facebook: /*#__PURE__*/React__default["default"].createElement(Facebook, {
335
- color: color,
336
- key: iconType
337
- }),
338
- twitter: /*#__PURE__*/React__default["default"].createElement(Twitter, {
339
- color: color,
340
- key: iconType
341
- }),
342
- linkedin: /*#__PURE__*/React__default["default"].createElement(LinkedIn, {
343
- color: color,
344
- key: iconType
345
- }),
346
- whatsapp: /*#__PURE__*/React__default["default"].createElement(WhatsApp, {
347
- color: color,
348
- key: iconType
349
- })
350
- };
351
- }
352
- };
353
-
354
- var socialShareData = function socialShareData(_ref) {
355
- var fbUrl = _ref.fbUrl,
356
- twitterUrl = _ref.twitterUrl,
357
- linkedinUrl = _ref.linkedinUrl,
358
- whatsappUrl = _ref.whatsappUrl,
359
- iconColor = _ref.iconColor,
360
- _ref$iconType = _ref.iconType,
361
- iconType = _ref$iconType === void 0 ? "plain-svg" : _ref$iconType;
362
- var socialIcons = getSocialIcons(iconColor, iconType);
363
-
364
- var getOptions = function getOptions() {
365
- return [{
366
- name: "facebook",
367
- url: fbUrl,
368
- icon: socialIcons["facebook"],
369
- text: "Facebook",
370
- bgColor: "#4e71a8",
371
- alt: "fb icon"
372
- }, {
373
- name: "twitter",
374
- url: twitterUrl,
375
- icon: socialIcons["twitter"],
376
- text: "Twitter",
377
- bgColor: "#1db7eb",
378
- alt: "twitter icon"
379
- }, {
380
- name: "linkedin",
381
- url: linkedinUrl,
382
- icon: socialIcons["linkedin"],
383
- text: "LinkedIn",
384
- bgColor: "#0077B5",
385
- alt: "linkedin icon"
386
- }, {
387
- name: "whatsapp",
388
- url: whatsappUrl,
389
- icon: socialIcons["whatsapp"],
390
- text: "Whatsapp",
391
- bgColor: "#25d366",
392
- alt: "whatsapp share"
393
- }];
394
- };
395
-
396
- return getOptions();
397
- };
398
-
399
- var CloseIcon = function CloseIcon(_ref) {
400
- var _ref$color = _ref.color,
401
- color = _ref$color === void 0 ? "#333" : _ref$color;
402
- return /*#__PURE__*/React__default["default"].createElement("svg", {
403
- xmlns: "http://www.w3.org/2000/svg",
404
- width: "24",
405
- height: "24",
406
- viewBox: "0 0 24 24"
407
- }, /*#__PURE__*/React__default["default"].createElement("g", {
408
- fill: "none",
409
- stroke: color,
410
- strokeLinecap: "square",
411
- strokeWidth: "2"
412
- }, /*#__PURE__*/React__default["default"].createElement("path", {
413
- d: "M16.95 6.914l-9.9 9.9M16.95 17.107l-9.9-9.9"
414
- })));
415
- };
416
- CloseIcon.propTypes = {
417
- color: PropTypes__default["default"].string
418
- };
419
-
420
- /**
421
- * Copyright (c) 2014-present, Facebook, Inc.
422
- *
423
- * This source code is licensed under the MIT license found in the
424
- * LICENSE file in the root directory of this source tree.
425
- */
426
-
427
- createCommonjsModule(function (module) {
428
- var runtime = (function (exports) {
429
-
430
- var Op = Object.prototype;
431
- var hasOwn = Op.hasOwnProperty;
432
- var undefined$1; // More compressible than void 0.
433
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
434
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
435
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
436
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
437
-
438
- function define(obj, key, value) {
439
- Object.defineProperty(obj, key, {
440
- value: value,
441
- enumerable: true,
442
- configurable: true,
443
- writable: true
444
- });
445
- return obj[key];
446
- }
447
- try {
448
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
449
- define({}, "");
450
- } catch (err) {
451
- define = function(obj, key, value) {
452
- return obj[key] = value;
453
- };
454
- }
455
-
456
- function wrap(innerFn, outerFn, self, tryLocsList) {
457
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
458
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
459
- var generator = Object.create(protoGenerator.prototype);
460
- var context = new Context(tryLocsList || []);
461
-
462
- // The ._invoke method unifies the implementations of the .next,
463
- // .throw, and .return methods.
464
- generator._invoke = makeInvokeMethod(innerFn, self, context);
465
-
466
- return generator;
467
- }
468
- exports.wrap = wrap;
469
-
470
- // Try/catch helper to minimize deoptimizations. Returns a completion
471
- // record like context.tryEntries[i].completion. This interface could
472
- // have been (and was previously) designed to take a closure to be
473
- // invoked without arguments, but in all the cases we care about we
474
- // already have an existing method we want to call, so there's no need
475
- // to create a new function object. We can even get away with assuming
476
- // the method takes exactly one argument, since that happens to be true
477
- // in every case, so we don't have to touch the arguments object. The
478
- // only additional allocation required is the completion record, which
479
- // has a stable shape and so hopefully should be cheap to allocate.
480
- function tryCatch(fn, obj, arg) {
481
- try {
482
- return { type: "normal", arg: fn.call(obj, arg) };
483
- } catch (err) {
484
- return { type: "throw", arg: err };
485
- }
486
- }
487
-
488
- var GenStateSuspendedStart = "suspendedStart";
489
- var GenStateSuspendedYield = "suspendedYield";
490
- var GenStateExecuting = "executing";
491
- var GenStateCompleted = "completed";
492
-
493
- // Returning this object from the innerFn has the same effect as
494
- // breaking out of the dispatch switch statement.
495
- var ContinueSentinel = {};
496
-
497
- // Dummy constructor functions that we use as the .constructor and
498
- // .constructor.prototype properties for functions that return Generator
499
- // objects. For full spec compliance, you may wish to configure your
500
- // minifier not to mangle the names of these two functions.
501
- function Generator() {}
502
- function GeneratorFunction() {}
503
- function GeneratorFunctionPrototype() {}
504
-
505
- // This is a polyfill for %IteratorPrototype% for environments that
506
- // don't natively support it.
507
- var IteratorPrototype = {};
508
- define(IteratorPrototype, iteratorSymbol, function () {
509
- return this;
510
- });
511
-
512
- var getProto = Object.getPrototypeOf;
513
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
514
- if (NativeIteratorPrototype &&
515
- NativeIteratorPrototype !== Op &&
516
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
517
- // This environment has a native %IteratorPrototype%; use it instead
518
- // of the polyfill.
519
- IteratorPrototype = NativeIteratorPrototype;
520
- }
521
-
522
- var Gp = GeneratorFunctionPrototype.prototype =
523
- Generator.prototype = Object.create(IteratorPrototype);
524
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
525
- define(Gp, "constructor", GeneratorFunctionPrototype);
526
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
527
- GeneratorFunction.displayName = define(
528
- GeneratorFunctionPrototype,
529
- toStringTagSymbol,
530
- "GeneratorFunction"
531
- );
532
-
533
- // Helper for defining the .next, .throw, and .return methods of the
534
- // Iterator interface in terms of a single ._invoke method.
535
- function defineIteratorMethods(prototype) {
536
- ["next", "throw", "return"].forEach(function(method) {
537
- define(prototype, method, function(arg) {
538
- return this._invoke(method, arg);
539
- });
540
- });
541
- }
542
-
543
- exports.isGeneratorFunction = function(genFun) {
544
- var ctor = typeof genFun === "function" && genFun.constructor;
545
- return ctor
546
- ? ctor === GeneratorFunction ||
547
- // For the native GeneratorFunction constructor, the best we can
548
- // do is to check its .name property.
549
- (ctor.displayName || ctor.name) === "GeneratorFunction"
550
- : false;
551
- };
552
-
553
- exports.mark = function(genFun) {
554
- if (Object.setPrototypeOf) {
555
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
556
- } else {
557
- genFun.__proto__ = GeneratorFunctionPrototype;
558
- define(genFun, toStringTagSymbol, "GeneratorFunction");
559
- }
560
- genFun.prototype = Object.create(Gp);
561
- return genFun;
562
- };
563
-
564
- // Within the body of any async function, `await x` is transformed to
565
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
566
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
567
- // meant to be awaited.
568
- exports.awrap = function(arg) {
569
- return { __await: arg };
570
- };
571
-
572
- function AsyncIterator(generator, PromiseImpl) {
573
- function invoke(method, arg, resolve, reject) {
574
- var record = tryCatch(generator[method], generator, arg);
575
- if (record.type === "throw") {
576
- reject(record.arg);
577
- } else {
578
- var result = record.arg;
579
- var value = result.value;
580
- if (value &&
581
- typeof value === "object" &&
582
- hasOwn.call(value, "__await")) {
583
- return PromiseImpl.resolve(value.__await).then(function(value) {
584
- invoke("next", value, resolve, reject);
585
- }, function(err) {
586
- invoke("throw", err, resolve, reject);
587
- });
588
- }
589
-
590
- return PromiseImpl.resolve(value).then(function(unwrapped) {
591
- // When a yielded Promise is resolved, its final value becomes
592
- // the .value of the Promise<{value,done}> result for the
593
- // current iteration.
594
- result.value = unwrapped;
595
- resolve(result);
596
- }, function(error) {
597
- // If a rejected Promise was yielded, throw the rejection back
598
- // into the async generator function so it can be handled there.
599
- return invoke("throw", error, resolve, reject);
600
- });
601
- }
602
- }
603
-
604
- var previousPromise;
605
-
606
- function enqueue(method, arg) {
607
- function callInvokeWithMethodAndArg() {
608
- return new PromiseImpl(function(resolve, reject) {
609
- invoke(method, arg, resolve, reject);
610
- });
611
- }
612
-
613
- return previousPromise =
614
- // If enqueue has been called before, then we want to wait until
615
- // all previous Promises have been resolved before calling invoke,
616
- // so that results are always delivered in the correct order. If
617
- // enqueue has not been called before, then it is important to
618
- // call invoke immediately, without waiting on a callback to fire,
619
- // so that the async generator function has the opportunity to do
620
- // any necessary setup in a predictable way. This predictability
621
- // is why the Promise constructor synchronously invokes its
622
- // executor callback, and why async functions synchronously
623
- // execute code before the first await. Since we implement simple
624
- // async functions in terms of async generators, it is especially
625
- // important to get this right, even though it requires care.
626
- previousPromise ? previousPromise.then(
627
- callInvokeWithMethodAndArg,
628
- // Avoid propagating failures to Promises returned by later
629
- // invocations of the iterator.
630
- callInvokeWithMethodAndArg
631
- ) : callInvokeWithMethodAndArg();
632
- }
633
-
634
- // Define the unified helper method that is used to implement .next,
635
- // .throw, and .return (see defineIteratorMethods).
636
- this._invoke = enqueue;
637
- }
638
-
639
- defineIteratorMethods(AsyncIterator.prototype);
640
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
641
- return this;
642
- });
643
- exports.AsyncIterator = AsyncIterator;
644
-
645
- // Note that simple async functions are implemented on top of
646
- // AsyncIterator objects; they just return a Promise for the value of
647
- // the final result produced by the iterator.
648
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
649
- if (PromiseImpl === void 0) PromiseImpl = Promise;
650
-
651
- var iter = new AsyncIterator(
652
- wrap(innerFn, outerFn, self, tryLocsList),
653
- PromiseImpl
654
- );
655
-
656
- return exports.isGeneratorFunction(outerFn)
657
- ? iter // If outerFn is a generator, return the full iterator.
658
- : iter.next().then(function(result) {
659
- return result.done ? result.value : iter.next();
660
- });
661
- };
662
-
663
- function makeInvokeMethod(innerFn, self, context) {
664
- var state = GenStateSuspendedStart;
665
-
666
- return function invoke(method, arg) {
667
- if (state === GenStateExecuting) {
668
- throw new Error("Generator is already running");
669
- }
670
-
671
- if (state === GenStateCompleted) {
672
- if (method === "throw") {
673
- throw arg;
674
- }
675
-
676
- // Be forgiving, per 25.3.3.3.3 of the spec:
677
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
678
- return doneResult();
679
- }
680
-
681
- context.method = method;
682
- context.arg = arg;
683
-
684
- while (true) {
685
- var delegate = context.delegate;
686
- if (delegate) {
687
- var delegateResult = maybeInvokeDelegate(delegate, context);
688
- if (delegateResult) {
689
- if (delegateResult === ContinueSentinel) continue;
690
- return delegateResult;
691
- }
692
- }
693
-
694
- if (context.method === "next") {
695
- // Setting context._sent for legacy support of Babel's
696
- // function.sent implementation.
697
- context.sent = context._sent = context.arg;
698
-
699
- } else if (context.method === "throw") {
700
- if (state === GenStateSuspendedStart) {
701
- state = GenStateCompleted;
702
- throw context.arg;
703
- }
704
-
705
- context.dispatchException(context.arg);
706
-
707
- } else if (context.method === "return") {
708
- context.abrupt("return", context.arg);
709
- }
710
-
711
- state = GenStateExecuting;
712
-
713
- var record = tryCatch(innerFn, self, context);
714
- if (record.type === "normal") {
715
- // If an exception is thrown from innerFn, we leave state ===
716
- // GenStateExecuting and loop back for another invocation.
717
- state = context.done
718
- ? GenStateCompleted
719
- : GenStateSuspendedYield;
720
-
721
- if (record.arg === ContinueSentinel) {
722
- continue;
723
- }
724
-
725
- return {
726
- value: record.arg,
727
- done: context.done
728
- };
729
-
730
- } else if (record.type === "throw") {
731
- state = GenStateCompleted;
732
- // Dispatch the exception by looping back around to the
733
- // context.dispatchException(context.arg) call above.
734
- context.method = "throw";
735
- context.arg = record.arg;
736
- }
737
- }
738
- };
739
- }
740
-
741
- // Call delegate.iterator[context.method](context.arg) and handle the
742
- // result, either by returning a { value, done } result from the
743
- // delegate iterator, or by modifying context.method and context.arg,
744
- // setting context.delegate to null, and returning the ContinueSentinel.
745
- function maybeInvokeDelegate(delegate, context) {
746
- var method = delegate.iterator[context.method];
747
- if (method === undefined$1) {
748
- // A .throw or .return when the delegate iterator has no .throw
749
- // method always terminates the yield* loop.
750
- context.delegate = null;
751
-
752
- if (context.method === "throw") {
753
- // Note: ["return"] must be used for ES3 parsing compatibility.
754
- if (delegate.iterator["return"]) {
755
- // If the delegate iterator has a return method, give it a
756
- // chance to clean up.
757
- context.method = "return";
758
- context.arg = undefined$1;
759
- maybeInvokeDelegate(delegate, context);
760
-
761
- if (context.method === "throw") {
762
- // If maybeInvokeDelegate(context) changed context.method from
763
- // "return" to "throw", let that override the TypeError below.
764
- return ContinueSentinel;
765
- }
766
- }
767
-
768
- context.method = "throw";
769
- context.arg = new TypeError(
770
- "The iterator does not provide a 'throw' method");
771
- }
772
-
773
- return ContinueSentinel;
774
- }
775
-
776
- var record = tryCatch(method, delegate.iterator, context.arg);
777
-
778
- if (record.type === "throw") {
779
- context.method = "throw";
780
- context.arg = record.arg;
781
- context.delegate = null;
782
- return ContinueSentinel;
783
- }
784
-
785
- var info = record.arg;
786
-
787
- if (! info) {
788
- context.method = "throw";
789
- context.arg = new TypeError("iterator result is not an object");
790
- context.delegate = null;
791
- return ContinueSentinel;
792
- }
793
-
794
- if (info.done) {
795
- // Assign the result of the finished delegate to the temporary
796
- // variable specified by delegate.resultName (see delegateYield).
797
- context[delegate.resultName] = info.value;
798
-
799
- // Resume execution at the desired location (see delegateYield).
800
- context.next = delegate.nextLoc;
801
-
802
- // If context.method was "throw" but the delegate handled the
803
- // exception, let the outer generator proceed normally. If
804
- // context.method was "next", forget context.arg since it has been
805
- // "consumed" by the delegate iterator. If context.method was
806
- // "return", allow the original .return call to continue in the
807
- // outer generator.
808
- if (context.method !== "return") {
809
- context.method = "next";
810
- context.arg = undefined$1;
811
- }
812
-
813
- } else {
814
- // Re-yield the result returned by the delegate method.
815
- return info;
816
- }
817
-
818
- // The delegate iterator is finished, so forget it and continue with
819
- // the outer generator.
820
- context.delegate = null;
821
- return ContinueSentinel;
822
- }
823
-
824
- // Define Generator.prototype.{next,throw,return} in terms of the
825
- // unified ._invoke helper method.
826
- defineIteratorMethods(Gp);
827
-
828
- define(Gp, toStringTagSymbol, "Generator");
829
-
830
- // A Generator should always return itself as the iterator object when the
831
- // @@iterator function is called on it. Some browsers' implementations of the
832
- // iterator prototype chain incorrectly implement this, causing the Generator
833
- // object to not be returned from this call. This ensures that doesn't happen.
834
- // See https://github.com/facebook/regenerator/issues/274 for more details.
835
- define(Gp, iteratorSymbol, function() {
836
- return this;
837
- });
838
-
839
- define(Gp, "toString", function() {
840
- return "[object Generator]";
841
- });
842
-
843
- function pushTryEntry(locs) {
844
- var entry = { tryLoc: locs[0] };
845
-
846
- if (1 in locs) {
847
- entry.catchLoc = locs[1];
848
- }
849
-
850
- if (2 in locs) {
851
- entry.finallyLoc = locs[2];
852
- entry.afterLoc = locs[3];
853
- }
854
-
855
- this.tryEntries.push(entry);
856
- }
857
-
858
- function resetTryEntry(entry) {
859
- var record = entry.completion || {};
860
- record.type = "normal";
861
- delete record.arg;
862
- entry.completion = record;
863
- }
864
-
865
- function Context(tryLocsList) {
866
- // The root entry object (effectively a try statement without a catch
867
- // or a finally block) gives us a place to store values thrown from
868
- // locations where there is no enclosing try statement.
869
- this.tryEntries = [{ tryLoc: "root" }];
870
- tryLocsList.forEach(pushTryEntry, this);
871
- this.reset(true);
872
- }
873
-
874
- exports.keys = function(object) {
875
- var keys = [];
876
- for (var key in object) {
877
- keys.push(key);
878
- }
879
- keys.reverse();
880
-
881
- // Rather than returning an object with a next method, we keep
882
- // things simple and return the next function itself.
883
- return function next() {
884
- while (keys.length) {
885
- var key = keys.pop();
886
- if (key in object) {
887
- next.value = key;
888
- next.done = false;
889
- return next;
890
- }
891
- }
892
-
893
- // To avoid creating an additional object, we just hang the .value
894
- // and .done properties off the next function object itself. This
895
- // also ensures that the minifier will not anonymize the function.
896
- next.done = true;
897
- return next;
898
- };
899
- };
900
-
901
- function values(iterable) {
902
- if (iterable) {
903
- var iteratorMethod = iterable[iteratorSymbol];
904
- if (iteratorMethod) {
905
- return iteratorMethod.call(iterable);
906
- }
907
-
908
- if (typeof iterable.next === "function") {
909
- return iterable;
910
- }
911
-
912
- if (!isNaN(iterable.length)) {
913
- var i = -1, next = function next() {
914
- while (++i < iterable.length) {
915
- if (hasOwn.call(iterable, i)) {
916
- next.value = iterable[i];
917
- next.done = false;
918
- return next;
919
- }
920
- }
921
-
922
- next.value = undefined$1;
923
- next.done = true;
924
-
925
- return next;
926
- };
927
-
928
- return next.next = next;
929
- }
930
- }
931
-
932
- // Return an iterator with no values.
933
- return { next: doneResult };
934
- }
935
- exports.values = values;
936
-
937
- function doneResult() {
938
- return { value: undefined$1, done: true };
939
- }
940
-
941
- Context.prototype = {
942
- constructor: Context,
943
-
944
- reset: function(skipTempReset) {
945
- this.prev = 0;
946
- this.next = 0;
947
- // Resetting context._sent for legacy support of Babel's
948
- // function.sent implementation.
949
- this.sent = this._sent = undefined$1;
950
- this.done = false;
951
- this.delegate = null;
952
-
953
- this.method = "next";
954
- this.arg = undefined$1;
955
-
956
- this.tryEntries.forEach(resetTryEntry);
957
-
958
- if (!skipTempReset) {
959
- for (var name in this) {
960
- // Not sure about the optimal order of these conditions:
961
- if (name.charAt(0) === "t" &&
962
- hasOwn.call(this, name) &&
963
- !isNaN(+name.slice(1))) {
964
- this[name] = undefined$1;
965
- }
966
- }
967
- }
968
- },
969
-
970
- stop: function() {
971
- this.done = true;
972
-
973
- var rootEntry = this.tryEntries[0];
974
- var rootRecord = rootEntry.completion;
975
- if (rootRecord.type === "throw") {
976
- throw rootRecord.arg;
977
- }
978
-
979
- return this.rval;
980
- },
981
-
982
- dispatchException: function(exception) {
983
- if (this.done) {
984
- throw exception;
985
- }
986
-
987
- var context = this;
988
- function handle(loc, caught) {
989
- record.type = "throw";
990
- record.arg = exception;
991
- context.next = loc;
992
-
993
- if (caught) {
994
- // If the dispatched exception was caught by a catch block,
995
- // then let that catch block handle the exception normally.
996
- context.method = "next";
997
- context.arg = undefined$1;
998
- }
999
-
1000
- return !! caught;
1001
- }
1002
-
1003
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1004
- var entry = this.tryEntries[i];
1005
- var record = entry.completion;
1006
-
1007
- if (entry.tryLoc === "root") {
1008
- // Exception thrown outside of any try block that could handle
1009
- // it, so set the completion value of the entire function to
1010
- // throw the exception.
1011
- return handle("end");
1012
- }
1013
-
1014
- if (entry.tryLoc <= this.prev) {
1015
- var hasCatch = hasOwn.call(entry, "catchLoc");
1016
- var hasFinally = hasOwn.call(entry, "finallyLoc");
1017
-
1018
- if (hasCatch && hasFinally) {
1019
- if (this.prev < entry.catchLoc) {
1020
- return handle(entry.catchLoc, true);
1021
- } else if (this.prev < entry.finallyLoc) {
1022
- return handle(entry.finallyLoc);
1023
- }
1024
-
1025
- } else if (hasCatch) {
1026
- if (this.prev < entry.catchLoc) {
1027
- return handle(entry.catchLoc, true);
1028
- }
1029
-
1030
- } else if (hasFinally) {
1031
- if (this.prev < entry.finallyLoc) {
1032
- return handle(entry.finallyLoc);
1033
- }
1034
-
1035
- } else {
1036
- throw new Error("try statement without catch or finally");
1037
- }
1038
- }
1039
- }
1040
- },
1041
-
1042
- abrupt: function(type, arg) {
1043
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1044
- var entry = this.tryEntries[i];
1045
- if (entry.tryLoc <= this.prev &&
1046
- hasOwn.call(entry, "finallyLoc") &&
1047
- this.prev < entry.finallyLoc) {
1048
- var finallyEntry = entry;
1049
- break;
1050
- }
1051
- }
1052
-
1053
- if (finallyEntry &&
1054
- (type === "break" ||
1055
- type === "continue") &&
1056
- finallyEntry.tryLoc <= arg &&
1057
- arg <= finallyEntry.finallyLoc) {
1058
- // Ignore the finally entry if control is not jumping to a
1059
- // location outside the try/catch block.
1060
- finallyEntry = null;
1061
- }
1062
-
1063
- var record = finallyEntry ? finallyEntry.completion : {};
1064
- record.type = type;
1065
- record.arg = arg;
1066
-
1067
- if (finallyEntry) {
1068
- this.method = "next";
1069
- this.next = finallyEntry.finallyLoc;
1070
- return ContinueSentinel;
1071
- }
1072
-
1073
- return this.complete(record);
1074
- },
1075
-
1076
- complete: function(record, afterLoc) {
1077
- if (record.type === "throw") {
1078
- throw record.arg;
1079
- }
1080
-
1081
- if (record.type === "break" ||
1082
- record.type === "continue") {
1083
- this.next = record.arg;
1084
- } else if (record.type === "return") {
1085
- this.rval = this.arg = record.arg;
1086
- this.method = "return";
1087
- this.next = "end";
1088
- } else if (record.type === "normal" && afterLoc) {
1089
- this.next = afterLoc;
1090
- }
1091
-
1092
- return ContinueSentinel;
1093
- },
1094
-
1095
- finish: function(finallyLoc) {
1096
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1097
- var entry = this.tryEntries[i];
1098
- if (entry.finallyLoc === finallyLoc) {
1099
- this.complete(entry.completion, entry.afterLoc);
1100
- resetTryEntry(entry);
1101
- return ContinueSentinel;
1102
- }
1103
- }
1104
- },
1105
-
1106
- "catch": function(tryLoc) {
1107
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1108
- var entry = this.tryEntries[i];
1109
- if (entry.tryLoc === tryLoc) {
1110
- var record = entry.completion;
1111
- if (record.type === "throw") {
1112
- var thrown = record.arg;
1113
- resetTryEntry(entry);
1114
- }
1115
- return thrown;
1116
- }
1117
- }
1118
-
1119
- // The context.catch method must only be called with a location
1120
- // argument that corresponds to a known catch block.
1121
- throw new Error("illegal catch attempt");
1122
- },
1123
-
1124
- delegateYield: function(iterable, resultName, nextLoc) {
1125
- this.delegate = {
1126
- iterator: values(iterable),
1127
- resultName: resultName,
1128
- nextLoc: nextLoc
1129
- };
1130
-
1131
- if (this.method === "next") {
1132
- // Deliberately forget the last sent value so that we don't
1133
- // accidentally pass it on to the delegate.
1134
- this.arg = undefined$1;
1135
- }
1136
-
1137
- return ContinueSentinel;
1138
- }
1139
- };
1140
-
1141
- // Regardless of whether this script is executing as a CommonJS module
1142
- // or not, return the runtime object so that we can declare the variable
1143
- // regeneratorRuntime in the outer scope, which allows this module to be
1144
- // injected easily by `bin/regenerator --include-runtime script.js`.
1145
- return exports;
1146
-
1147
- }(
1148
- // If this script is executing as a CommonJS module, use module.exports
1149
- // as the regeneratorRuntime namespace. Otherwise create a new empty
1150
- // object. Either way, the resulting object will be used to initialize
1151
- // the regeneratorRuntime variable at the top of this file.
1152
- module.exports
1153
- ));
1154
-
1155
- try {
1156
- regeneratorRuntime = runtime;
1157
- } catch (accidentalStrictMode) {
1158
- // This module should not be running in strict mode, so the above
1159
- // assignment should always work unless something is misconfigured. Just
1160
- // in case runtime.js accidentally runs in strict mode, in modern engines
1161
- // we can explicitly access globalThis. In older engines we can escape
1162
- // strict mode using a global Function call. This could conceivably fail
1163
- // if a Content Security Policy forbids using Function, but in that case
1164
- // the proper solution is to fix the accidental strict mode problem. If
1165
- // you've misconfigured your bundler to force strict mode and applied a
1166
- // CSP to forbid Function, and you're not willing to fix either of those
1167
- // problems, please detail your unique predicament in a GitHub issue.
1168
- if (typeof globalThis === "object") {
1169
- globalThis.regeneratorRuntime = runtime;
1170
- } else {
1171
- Function("r", "regeneratorRuntime = r")(runtime);
1172
- }
1173
- }
1174
- });
1175
-
1176
- /**
1177
- * Checks if `value` is classified as an `Array` object.
1178
- *
1179
- * @static
1180
- * @memberOf _
1181
- * @since 0.1.0
1182
- * @category Lang
1183
- * @param {*} value The value to check.
1184
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1185
- * @example
1186
- *
1187
- * _.isArray([1, 2, 3]);
1188
- * // => true
1189
- *
1190
- * _.isArray(document.body.children);
1191
- * // => false
1192
- *
1193
- * _.isArray('abc');
1194
- * // => false
1195
- *
1196
- * _.isArray(_.noop);
1197
- * // => false
1198
- */
1199
- var isArray = Array.isArray;
1200
-
1201
- var isArray_1 = isArray;
1202
-
1203
- /** Detect free variable `global` from Node.js. */
1204
-
1205
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
1206
-
1207
- var _freeGlobal = freeGlobal;
1208
-
1209
- /** Detect free variable `self`. */
1210
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
1211
-
1212
- /** Used as a reference to the global object. */
1213
- var root = _freeGlobal || freeSelf || Function('return this')();
1214
-
1215
- var _root = root;
1216
-
1217
- /** Built-in value references. */
1218
- var Symbol$1 = _root.Symbol;
1219
-
1220
- var _Symbol = Symbol$1;
1221
-
1222
- /** Used for built-in method references. */
1223
- var objectProto$4 = Object.prototype;
1224
-
1225
- /** Used to check objects for own properties. */
1226
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
1227
-
1228
- /**
1229
- * Used to resolve the
1230
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1231
- * of values.
1232
- */
1233
- var nativeObjectToString$1 = objectProto$4.toString;
1234
-
1235
- /** Built-in value references. */
1236
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
1237
-
1238
- /**
1239
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
1240
- *
1241
- * @private
1242
- * @param {*} value The value to query.
1243
- * @returns {string} Returns the raw `toStringTag`.
1244
- */
1245
- function getRawTag(value) {
1246
- var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
1247
- tag = value[symToStringTag$1];
1248
-
1249
- try {
1250
- value[symToStringTag$1] = undefined;
1251
- var unmasked = true;
1252
- } catch (e) {}
1253
-
1254
- var result = nativeObjectToString$1.call(value);
1255
- if (unmasked) {
1256
- if (isOwn) {
1257
- value[symToStringTag$1] = tag;
1258
- } else {
1259
- delete value[symToStringTag$1];
1260
- }
1261
- }
1262
- return result;
1263
- }
1264
-
1265
- var _getRawTag = getRawTag;
1266
-
1267
- /** Used for built-in method references. */
1268
- var objectProto$3 = Object.prototype;
1269
-
1270
- /**
1271
- * Used to resolve the
1272
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1273
- * of values.
1274
- */
1275
- var nativeObjectToString = objectProto$3.toString;
1276
-
1277
- /**
1278
- * Converts `value` to a string using `Object.prototype.toString`.
1279
- *
1280
- * @private
1281
- * @param {*} value The value to convert.
1282
- * @returns {string} Returns the converted string.
1283
- */
1284
- function objectToString(value) {
1285
- return nativeObjectToString.call(value);
1286
- }
1287
-
1288
- var _objectToString = objectToString;
1289
-
1290
- /** `Object#toString` result references. */
1291
- var nullTag = '[object Null]',
1292
- undefinedTag = '[object Undefined]';
1293
-
1294
- /** Built-in value references. */
1295
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
1296
-
1297
- /**
1298
- * The base implementation of `getTag` without fallbacks for buggy environments.
1299
- *
1300
- * @private
1301
- * @param {*} value The value to query.
1302
- * @returns {string} Returns the `toStringTag`.
1303
- */
1304
- function baseGetTag(value) {
1305
- if (value == null) {
1306
- return value === undefined ? undefinedTag : nullTag;
1307
- }
1308
- return (symToStringTag && symToStringTag in Object(value))
1309
- ? _getRawTag(value)
1310
- : _objectToString(value);
1311
- }
1312
-
1313
- var _baseGetTag = baseGetTag;
1314
-
1315
- /**
1316
- * Checks if `value` is object-like. A value is object-like if it's not `null`
1317
- * and has a `typeof` result of "object".
1318
- *
1319
- * @static
1320
- * @memberOf _
1321
- * @since 4.0.0
1322
- * @category Lang
1323
- * @param {*} value The value to check.
1324
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
1325
- * @example
1326
- *
1327
- * _.isObjectLike({});
1328
- * // => true
1329
- *
1330
- * _.isObjectLike([1, 2, 3]);
1331
- * // => true
1332
- *
1333
- * _.isObjectLike(_.noop);
1334
- * // => false
1335
- *
1336
- * _.isObjectLike(null);
1337
- * // => false
1338
- */
1339
- function isObjectLike(value) {
1340
- return value != null && typeof value == 'object';
1341
- }
1342
-
1343
- var isObjectLike_1 = isObjectLike;
1344
-
1345
- /** `Object#toString` result references. */
1346
- var symbolTag = '[object Symbol]';
1347
-
1348
- /**
1349
- * Checks if `value` is classified as a `Symbol` primitive or object.
1350
- *
1351
- * @static
1352
- * @memberOf _
1353
- * @since 4.0.0
1354
- * @category Lang
1355
- * @param {*} value The value to check.
1356
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
1357
- * @example
1358
- *
1359
- * _.isSymbol(Symbol.iterator);
1360
- * // => true
1361
- *
1362
- * _.isSymbol('abc');
1363
- * // => false
1364
- */
1365
- function isSymbol(value) {
1366
- return typeof value == 'symbol' ||
1367
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
1368
- }
1369
-
1370
- var isSymbol_1 = isSymbol;
1371
-
1372
- /**
1373
- * Checks if `value` is the
1374
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1375
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1376
- *
1377
- * @static
1378
- * @memberOf _
1379
- * @since 0.1.0
1380
- * @category Lang
1381
- * @param {*} value The value to check.
1382
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1383
- * @example
1384
- *
1385
- * _.isObject({});
1386
- * // => true
1387
- *
1388
- * _.isObject([1, 2, 3]);
1389
- * // => true
1390
- *
1391
- * _.isObject(_.noop);
1392
- * // => true
1393
- *
1394
- * _.isObject(null);
1395
- * // => false
1396
- */
1397
- function isObject(value) {
1398
- var type = typeof value;
1399
- return value != null && (type == 'object' || type == 'function');
1400
- }
1401
-
1402
- var isObject_1 = isObject;
1403
-
1404
- /** `Object#toString` result references. */
1405
- var asyncTag = '[object AsyncFunction]',
1406
- funcTag = '[object Function]',
1407
- genTag = '[object GeneratorFunction]',
1408
- proxyTag = '[object Proxy]';
1409
-
1410
- /**
1411
- * Checks if `value` is classified as a `Function` object.
1412
- *
1413
- * @static
1414
- * @memberOf _
1415
- * @since 0.1.0
1416
- * @category Lang
1417
- * @param {*} value The value to check.
1418
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
1419
- * @example
1420
- *
1421
- * _.isFunction(_);
1422
- * // => true
1423
- *
1424
- * _.isFunction(/abc/);
1425
- * // => false
1426
- */
1427
- function isFunction(value) {
1428
- if (!isObject_1(value)) {
1429
- return false;
1430
- }
1431
- // The use of `Object#toString` avoids issues with the `typeof` operator
1432
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
1433
- var tag = _baseGetTag(value);
1434
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
1435
- }
1436
-
1437
- var isFunction_1 = isFunction;
1438
-
1439
- /** Used to detect overreaching core-js shims. */
1440
- var coreJsData = _root['__core-js_shared__'];
1441
-
1442
- var _coreJsData = coreJsData;
1443
-
1444
- /** Used to detect methods masquerading as native. */
1445
- var maskSrcKey = (function() {
1446
- var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
1447
- return uid ? ('Symbol(src)_1.' + uid) : '';
1448
- }());
1449
-
1450
- /**
1451
- * Checks if `func` has its source masked.
1452
- *
1453
- * @private
1454
- * @param {Function} func The function to check.
1455
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
1456
- */
1457
- function isMasked(func) {
1458
- return !!maskSrcKey && (maskSrcKey in func);
1459
- }
1460
-
1461
- var _isMasked = isMasked;
1462
-
1463
- /** Used for built-in method references. */
1464
- var funcProto$1 = Function.prototype;
1465
-
1466
- /** Used to resolve the decompiled source of functions. */
1467
- var funcToString$1 = funcProto$1.toString;
1468
-
1469
- /**
1470
- * Converts `func` to its source code.
1471
- *
1472
- * @private
1473
- * @param {Function} func The function to convert.
1474
- * @returns {string} Returns the source code.
1475
- */
1476
- function toSource(func) {
1477
- if (func != null) {
1478
- try {
1479
- return funcToString$1.call(func);
1480
- } catch (e) {}
1481
- try {
1482
- return (func + '');
1483
- } catch (e) {}
1484
- }
1485
- return '';
1486
- }
1487
-
1488
- var _toSource = toSource;
1489
-
1490
- /**
1491
- * Used to match `RegExp`
1492
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
1493
- */
1494
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
1495
-
1496
- /** Used to detect host constructors (Safari). */
1497
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
1498
-
1499
- /** Used for built-in method references. */
1500
- var funcProto = Function.prototype,
1501
- objectProto$2 = Object.prototype;
1502
-
1503
- /** Used to resolve the decompiled source of functions. */
1504
- var funcToString = funcProto.toString;
1505
-
1506
- /** Used to check objects for own properties. */
1507
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
1508
-
1509
- /** Used to detect if a method is native. */
1510
- var reIsNative = RegExp('^' +
1511
- funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
1512
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
1513
- );
1514
-
1515
- /**
1516
- * The base implementation of `_.isNative` without bad shim checks.
1517
- *
1518
- * @private
1519
- * @param {*} value The value to check.
1520
- * @returns {boolean} Returns `true` if `value` is a native function,
1521
- * else `false`.
1522
- */
1523
- function baseIsNative(value) {
1524
- if (!isObject_1(value) || _isMasked(value)) {
1525
- return false;
1526
- }
1527
- var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
1528
- return pattern.test(_toSource(value));
1529
- }
1530
-
1531
- var _baseIsNative = baseIsNative;
1532
-
1533
- /**
1534
- * Gets the value at `key` of `object`.
1535
- *
1536
- * @private
1537
- * @param {Object} [object] The object to query.
1538
- * @param {string} key The key of the property to get.
1539
- * @returns {*} Returns the property value.
1540
- */
1541
- function getValue(object, key) {
1542
- return object == null ? undefined : object[key];
1543
- }
1544
-
1545
- var _getValue = getValue;
1546
-
1547
- /**
1548
- * Gets the native function at `key` of `object`.
1549
- *
1550
- * @private
1551
- * @param {Object} object The object to query.
1552
- * @param {string} key The key of the method to get.
1553
- * @returns {*} Returns the function if it's native, else `undefined`.
1554
- */
1555
- function getNative(object, key) {
1556
- var value = _getValue(object, key);
1557
- return _baseIsNative(value) ? value : undefined;
1558
- }
1559
-
1560
- var _getNative = getNative;
1561
-
1562
- /* Built-in method references that are verified to be native. */
1563
- var nativeCreate = _getNative(Object, 'create');
1564
-
1565
- var _nativeCreate = nativeCreate;
1566
-
1567
- /**
1568
- * Removes all key-value entries from the hash.
1569
- *
1570
- * @private
1571
- * @name clear
1572
- * @memberOf Hash
1573
- */
1574
- function hashClear() {
1575
- this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
1576
- this.size = 0;
1577
- }
1578
-
1579
- var _hashClear = hashClear;
1580
-
1581
- /**
1582
- * Removes `key` and its value from the hash.
1583
- *
1584
- * @private
1585
- * @name delete
1586
- * @memberOf Hash
1587
- * @param {Object} hash The hash to modify.
1588
- * @param {string} key The key of the value to remove.
1589
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1590
- */
1591
- function hashDelete(key) {
1592
- var result = this.has(key) && delete this.__data__[key];
1593
- this.size -= result ? 1 : 0;
1594
- return result;
1595
- }
1596
-
1597
- var _hashDelete = hashDelete;
1598
-
1599
- /** Used to stand-in for `undefined` hash values. */
1600
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
1601
-
1602
- /** Used for built-in method references. */
1603
- var objectProto$1 = Object.prototype;
1604
-
1605
- /** Used to check objects for own properties. */
1606
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
1607
-
1608
- /**
1609
- * Gets the hash value for `key`.
1610
- *
1611
- * @private
1612
- * @name get
1613
- * @memberOf Hash
1614
- * @param {string} key The key of the value to get.
1615
- * @returns {*} Returns the entry value.
1616
- */
1617
- function hashGet(key) {
1618
- var data = this.__data__;
1619
- if (_nativeCreate) {
1620
- var result = data[key];
1621
- return result === HASH_UNDEFINED$1 ? undefined : result;
1622
- }
1623
- return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
1624
- }
1625
-
1626
- var _hashGet = hashGet;
1627
-
1628
- /** Used for built-in method references. */
1629
- var objectProto = Object.prototype;
1630
-
1631
- /** Used to check objects for own properties. */
1632
- var hasOwnProperty = objectProto.hasOwnProperty;
1633
-
1634
- /**
1635
- * Checks if a hash value for `key` exists.
1636
- *
1637
- * @private
1638
- * @name has
1639
- * @memberOf Hash
1640
- * @param {string} key The key of the entry to check.
1641
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1642
- */
1643
- function hashHas(key) {
1644
- var data = this.__data__;
1645
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
1646
- }
1647
-
1648
- var _hashHas = hashHas;
1649
-
1650
- /** Used to stand-in for `undefined` hash values. */
1651
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
1652
-
1653
- /**
1654
- * Sets the hash `key` to `value`.
1655
- *
1656
- * @private
1657
- * @name set
1658
- * @memberOf Hash
1659
- * @param {string} key The key of the value to set.
1660
- * @param {*} value The value to set.
1661
- * @returns {Object} Returns the hash instance.
1662
- */
1663
- function hashSet(key, value) {
1664
- var data = this.__data__;
1665
- this.size += this.has(key) ? 0 : 1;
1666
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
1667
- return this;
1668
- }
1669
-
1670
- var _hashSet = hashSet;
1671
-
1672
- /**
1673
- * Creates a hash object.
1674
- *
1675
- * @private
1676
- * @constructor
1677
- * @param {Array} [entries] The key-value pairs to cache.
1678
- */
1679
- function Hash(entries) {
1680
- var index = -1,
1681
- length = entries == null ? 0 : entries.length;
1682
-
1683
- this.clear();
1684
- while (++index < length) {
1685
- var entry = entries[index];
1686
- this.set(entry[0], entry[1]);
1687
- }
1688
- }
1689
-
1690
- // Add methods to `Hash`.
1691
- Hash.prototype.clear = _hashClear;
1692
- Hash.prototype['delete'] = _hashDelete;
1693
- Hash.prototype.get = _hashGet;
1694
- Hash.prototype.has = _hashHas;
1695
- Hash.prototype.set = _hashSet;
1696
-
1697
- var _Hash = Hash;
1698
-
1699
- /**
1700
- * Removes all key-value entries from the list cache.
1701
- *
1702
- * @private
1703
- * @name clear
1704
- * @memberOf ListCache
1705
- */
1706
- function listCacheClear() {
1707
- this.__data__ = [];
1708
- this.size = 0;
1709
- }
1710
-
1711
- var _listCacheClear = listCacheClear;
1712
-
1713
- /**
1714
- * Performs a
1715
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1716
- * comparison between two values to determine if they are equivalent.
1717
- *
1718
- * @static
1719
- * @memberOf _
1720
- * @since 4.0.0
1721
- * @category Lang
1722
- * @param {*} value The value to compare.
1723
- * @param {*} other The other value to compare.
1724
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1725
- * @example
1726
- *
1727
- * var object = { 'a': 1 };
1728
- * var other = { 'a': 1 };
1729
- *
1730
- * _.eq(object, object);
1731
- * // => true
1732
- *
1733
- * _.eq(object, other);
1734
- * // => false
1735
- *
1736
- * _.eq('a', 'a');
1737
- * // => true
1738
- *
1739
- * _.eq('a', Object('a'));
1740
- * // => false
1741
- *
1742
- * _.eq(NaN, NaN);
1743
- * // => true
1744
- */
1745
- function eq(value, other) {
1746
- return value === other || (value !== value && other !== other);
1747
- }
1748
-
1749
- var eq_1 = eq;
1750
-
1751
- /**
1752
- * Gets the index at which the `key` is found in `array` of key-value pairs.
1753
- *
1754
- * @private
1755
- * @param {Array} array The array to inspect.
1756
- * @param {*} key The key to search for.
1757
- * @returns {number} Returns the index of the matched value, else `-1`.
1758
- */
1759
- function assocIndexOf(array, key) {
1760
- var length = array.length;
1761
- while (length--) {
1762
- if (eq_1(array[length][0], key)) {
1763
- return length;
1764
- }
1765
- }
1766
- return -1;
1767
- }
1768
-
1769
- var _assocIndexOf = assocIndexOf;
1770
-
1771
- /** Used for built-in method references. */
1772
- var arrayProto = Array.prototype;
1773
-
1774
- /** Built-in value references. */
1775
- var splice = arrayProto.splice;
1776
-
1777
- /**
1778
- * Removes `key` and its value from the list cache.
1779
- *
1780
- * @private
1781
- * @name delete
1782
- * @memberOf ListCache
1783
- * @param {string} key The key of the value to remove.
1784
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1785
- */
1786
- function listCacheDelete(key) {
1787
- var data = this.__data__,
1788
- index = _assocIndexOf(data, key);
1789
-
1790
- if (index < 0) {
1791
- return false;
1792
- }
1793
- var lastIndex = data.length - 1;
1794
- if (index == lastIndex) {
1795
- data.pop();
1796
- } else {
1797
- splice.call(data, index, 1);
1798
- }
1799
- --this.size;
1800
- return true;
1801
- }
1802
-
1803
- var _listCacheDelete = listCacheDelete;
1804
-
1805
- /**
1806
- * Gets the list cache value for `key`.
1807
- *
1808
- * @private
1809
- * @name get
1810
- * @memberOf ListCache
1811
- * @param {string} key The key of the value to get.
1812
- * @returns {*} Returns the entry value.
1813
- */
1814
- function listCacheGet(key) {
1815
- var data = this.__data__,
1816
- index = _assocIndexOf(data, key);
1817
-
1818
- return index < 0 ? undefined : data[index][1];
1819
- }
1820
-
1821
- var _listCacheGet = listCacheGet;
1822
-
1823
- /**
1824
- * Checks if a list cache value for `key` exists.
1825
- *
1826
- * @private
1827
- * @name has
1828
- * @memberOf ListCache
1829
- * @param {string} key The key of the entry to check.
1830
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1831
- */
1832
- function listCacheHas(key) {
1833
- return _assocIndexOf(this.__data__, key) > -1;
1834
- }
1835
-
1836
- var _listCacheHas = listCacheHas;
1837
-
1838
- /**
1839
- * Sets the list cache `key` to `value`.
1840
- *
1841
- * @private
1842
- * @name set
1843
- * @memberOf ListCache
1844
- * @param {string} key The key of the value to set.
1845
- * @param {*} value The value to set.
1846
- * @returns {Object} Returns the list cache instance.
1847
- */
1848
- function listCacheSet(key, value) {
1849
- var data = this.__data__,
1850
- index = _assocIndexOf(data, key);
1851
-
1852
- if (index < 0) {
1853
- ++this.size;
1854
- data.push([key, value]);
1855
- } else {
1856
- data[index][1] = value;
1857
- }
1858
- return this;
1859
- }
1860
-
1861
- var _listCacheSet = listCacheSet;
1862
-
1863
- /**
1864
- * Creates an list cache object.
1865
- *
1866
- * @private
1867
- * @constructor
1868
- * @param {Array} [entries] The key-value pairs to cache.
1869
- */
1870
- function ListCache(entries) {
1871
- var index = -1,
1872
- length = entries == null ? 0 : entries.length;
1873
-
1874
- this.clear();
1875
- while (++index < length) {
1876
- var entry = entries[index];
1877
- this.set(entry[0], entry[1]);
1878
- }
1879
- }
1880
-
1881
- // Add methods to `ListCache`.
1882
- ListCache.prototype.clear = _listCacheClear;
1883
- ListCache.prototype['delete'] = _listCacheDelete;
1884
- ListCache.prototype.get = _listCacheGet;
1885
- ListCache.prototype.has = _listCacheHas;
1886
- ListCache.prototype.set = _listCacheSet;
1887
-
1888
- var _ListCache = ListCache;
1889
-
1890
- /* Built-in method references that are verified to be native. */
1891
- var Map = _getNative(_root, 'Map');
1892
-
1893
- var _Map = Map;
1894
-
1895
- /**
1896
- * Removes all key-value entries from the map.
1897
- *
1898
- * @private
1899
- * @name clear
1900
- * @memberOf MapCache
1901
- */
1902
- function mapCacheClear() {
1903
- this.size = 0;
1904
- this.__data__ = {
1905
- 'hash': new _Hash,
1906
- 'map': new (_Map || _ListCache),
1907
- 'string': new _Hash
1908
- };
1909
- }
1910
-
1911
- var _mapCacheClear = mapCacheClear;
1912
-
1913
- /**
1914
- * Checks if `value` is suitable for use as unique object key.
1915
- *
1916
- * @private
1917
- * @param {*} value The value to check.
1918
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1919
- */
1920
- function isKeyable(value) {
1921
- var type = typeof value;
1922
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1923
- ? (value !== '__proto__')
1924
- : (value === null);
1925
- }
1926
-
1927
- var _isKeyable = isKeyable;
1928
-
1929
- /**
1930
- * Gets the data for `map`.
1931
- *
1932
- * @private
1933
- * @param {Object} map The map to query.
1934
- * @param {string} key The reference key.
1935
- * @returns {*} Returns the map data.
1936
- */
1937
- function getMapData(map, key) {
1938
- var data = map.__data__;
1939
- return _isKeyable(key)
1940
- ? data[typeof key == 'string' ? 'string' : 'hash']
1941
- : data.map;
1942
- }
1943
-
1944
- var _getMapData = getMapData;
1945
-
1946
- /**
1947
- * Removes `key` and its value from the map.
1948
- *
1949
- * @private
1950
- * @name delete
1951
- * @memberOf MapCache
1952
- * @param {string} key The key of the value to remove.
1953
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1954
- */
1955
- function mapCacheDelete(key) {
1956
- var result = _getMapData(this, key)['delete'](key);
1957
- this.size -= result ? 1 : 0;
1958
- return result;
1959
- }
1960
-
1961
- var _mapCacheDelete = mapCacheDelete;
1962
-
1963
- /**
1964
- * Gets the map value for `key`.
1965
- *
1966
- * @private
1967
- * @name get
1968
- * @memberOf MapCache
1969
- * @param {string} key The key of the value to get.
1970
- * @returns {*} Returns the entry value.
1971
- */
1972
- function mapCacheGet(key) {
1973
- return _getMapData(this, key).get(key);
1974
- }
1975
-
1976
- var _mapCacheGet = mapCacheGet;
1977
-
1978
- /**
1979
- * Checks if a map value for `key` exists.
1980
- *
1981
- * @private
1982
- * @name has
1983
- * @memberOf MapCache
1984
- * @param {string} key The key of the entry to check.
1985
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1986
- */
1987
- function mapCacheHas(key) {
1988
- return _getMapData(this, key).has(key);
1989
- }
1990
-
1991
- var _mapCacheHas = mapCacheHas;
1992
-
1993
- /**
1994
- * Sets the map `key` to `value`.
1995
- *
1996
- * @private
1997
- * @name set
1998
- * @memberOf MapCache
1999
- * @param {string} key The key of the value to set.
2000
- * @param {*} value The value to set.
2001
- * @returns {Object} Returns the map cache instance.
2002
- */
2003
- function mapCacheSet(key, value) {
2004
- var data = _getMapData(this, key),
2005
- size = data.size;
2006
-
2007
- data.set(key, value);
2008
- this.size += data.size == size ? 0 : 1;
2009
- return this;
2010
- }
2011
-
2012
- var _mapCacheSet = mapCacheSet;
2013
-
2014
- /**
2015
- * Creates a map cache object to store key-value pairs.
2016
- *
2017
- * @private
2018
- * @constructor
2019
- * @param {Array} [entries] The key-value pairs to cache.
2020
- */
2021
- function MapCache(entries) {
2022
- var index = -1,
2023
- length = entries == null ? 0 : entries.length;
2024
-
2025
- this.clear();
2026
- while (++index < length) {
2027
- var entry = entries[index];
2028
- this.set(entry[0], entry[1]);
2029
- }
2030
- }
2031
-
2032
- // Add methods to `MapCache`.
2033
- MapCache.prototype.clear = _mapCacheClear;
2034
- MapCache.prototype['delete'] = _mapCacheDelete;
2035
- MapCache.prototype.get = _mapCacheGet;
2036
- MapCache.prototype.has = _mapCacheHas;
2037
- MapCache.prototype.set = _mapCacheSet;
2038
-
2039
- var _MapCache = MapCache;
2040
-
2041
- /** Error message constants. */
2042
- var FUNC_ERROR_TEXT = 'Expected a function';
2043
-
2044
- /**
2045
- * Creates a function that memoizes the result of `func`. If `resolver` is
2046
- * provided, it determines the cache key for storing the result based on the
2047
- * arguments provided to the memoized function. By default, the first argument
2048
- * provided to the memoized function is used as the map cache key. The `func`
2049
- * is invoked with the `this` binding of the memoized function.
2050
- *
2051
- * **Note:** The cache is exposed as the `cache` property on the memoized
2052
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
2053
- * constructor with one whose instances implement the
2054
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
2055
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
2056
- *
2057
- * @static
2058
- * @memberOf _
2059
- * @since 0.1.0
2060
- * @category Function
2061
- * @param {Function} func The function to have its output memoized.
2062
- * @param {Function} [resolver] The function to resolve the cache key.
2063
- * @returns {Function} Returns the new memoized function.
2064
- * @example
2065
- *
2066
- * var object = { 'a': 1, 'b': 2 };
2067
- * var other = { 'c': 3, 'd': 4 };
2068
- *
2069
- * var values = _.memoize(_.values);
2070
- * values(object);
2071
- * // => [1, 2]
2072
- *
2073
- * values(other);
2074
- * // => [3, 4]
2075
- *
2076
- * object.a = 2;
2077
- * values(object);
2078
- * // => [1, 2]
2079
- *
2080
- * // Modify the result cache.
2081
- * values.cache.set(object, ['a', 'b']);
2082
- * values(object);
2083
- * // => ['a', 'b']
2084
- *
2085
- * // Replace `_.memoize.Cache`.
2086
- * _.memoize.Cache = WeakMap;
2087
- */
2088
- function memoize(func, resolver) {
2089
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
2090
- throw new TypeError(FUNC_ERROR_TEXT);
2091
- }
2092
- var memoized = function() {
2093
- var args = arguments,
2094
- key = resolver ? resolver.apply(this, args) : args[0],
2095
- cache = memoized.cache;
2096
-
2097
- if (cache.has(key)) {
2098
- return cache.get(key);
2099
- }
2100
- var result = func.apply(this, args);
2101
- memoized.cache = cache.set(key, result) || cache;
2102
- return result;
2103
- };
2104
- memoized.cache = new (memoize.Cache || _MapCache);
2105
- return memoized;
2106
- }
2107
-
2108
- // Expose `MapCache`.
2109
- memoize.Cache = _MapCache;
2110
-
2111
- var memoize_1 = memoize;
2112
-
2113
- /** Used as the maximum memoize cache size. */
2114
- var MAX_MEMOIZE_SIZE = 500;
2115
-
2116
- /**
2117
- * A specialized version of `_.memoize` which clears the memoized function's
2118
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
2119
- *
2120
- * @private
2121
- * @param {Function} func The function to have its output memoized.
2122
- * @returns {Function} Returns the new memoized function.
2123
- */
2124
- function memoizeCapped(func) {
2125
- var result = memoize_1(func, function(key) {
2126
- if (cache.size === MAX_MEMOIZE_SIZE) {
2127
- cache.clear();
2128
- }
2129
- return key;
2130
- });
2131
-
2132
- var cache = result.cache;
2133
- return result;
2134
- }
2135
-
2136
- var _memoizeCapped = memoizeCapped;
2137
-
2138
- /** Used to match property names within property paths. */
2139
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
2140
-
2141
- /** Used to match backslashes in property paths. */
2142
- var reEscapeChar = /\\(\\)?/g;
2143
-
2144
- /**
2145
- * Converts `string` to a property path array.
2146
- *
2147
- * @private
2148
- * @param {string} string The string to convert.
2149
- * @returns {Array} Returns the property path array.
2150
- */
2151
- _memoizeCapped(function(string) {
2152
- var result = [];
2153
- if (string.charCodeAt(0) === 46 /* . */) {
2154
- result.push('');
2155
- }
2156
- string.replace(rePropName, function(match, number, quote, subString) {
2157
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
2158
- });
2159
- return result;
2160
- });
2161
-
2162
- /**
2163
- * A specialized version of `_.map` for arrays without support for iteratee
2164
- * shorthands.
2165
- *
2166
- * @private
2167
- * @param {Array} [array] The array to iterate over.
2168
- * @param {Function} iteratee The function invoked per iteration.
2169
- * @returns {Array} Returns the new mapped array.
2170
- */
2171
- function arrayMap(array, iteratee) {
2172
- var index = -1,
2173
- length = array == null ? 0 : array.length,
2174
- result = Array(length);
2175
-
2176
- while (++index < length) {
2177
- result[index] = iteratee(array[index], index, array);
2178
- }
2179
- return result;
2180
- }
2181
-
2182
- var _arrayMap = arrayMap;
2183
-
2184
- /** Used as references for various `Number` constants. */
2185
- var INFINITY = 1 / 0;
2186
-
2187
- /** Used to convert symbols to primitives and strings. */
2188
- var symbolProto = _Symbol ? _Symbol.prototype : undefined,
2189
- symbolToString = symbolProto ? symbolProto.toString : undefined;
2190
-
2191
- /**
2192
- * The base implementation of `_.toString` which doesn't convert nullish
2193
- * values to empty strings.
2194
- *
2195
- * @private
2196
- * @param {*} value The value to process.
2197
- * @returns {string} Returns the string.
2198
- */
2199
- function baseToString(value) {
2200
- // Exit early for strings to avoid a performance hit in some environments.
2201
- if (typeof value == 'string') {
2202
- return value;
2203
- }
2204
- if (isArray_1(value)) {
2205
- // Recursively convert values (susceptible to call stack limits).
2206
- return _arrayMap(value, baseToString) + '';
2207
- }
2208
- if (isSymbol_1(value)) {
2209
- return symbolToString ? symbolToString.call(value) : '';
2210
- }
2211
- var result = (value + '');
2212
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
2213
- }
2214
-
2215
- var _baseToString = baseToString;
2216
-
2217
- /**
2218
- * Converts `value` to a string. An empty string is returned for `null`
2219
- * and `undefined` values. The sign of `-0` is preserved.
2220
- *
2221
- * @static
2222
- * @memberOf _
2223
- * @since 4.0.0
2224
- * @category Lang
2225
- * @param {*} value The value to convert.
2226
- * @returns {string} Returns the converted string.
2227
- * @example
2228
- *
2229
- * _.toString(null);
2230
- * // => ''
2231
- *
2232
- * _.toString(-0);
2233
- * // => '-0'
2234
- *
2235
- * _.toString([1, 2, 3]);
2236
- * // => '1,2,3'
2237
- */
2238
- function toString(value) {
2239
- return value == null ? '' : _baseToString(value);
2240
- }
2241
-
2242
- var toString_1 = toString;
2243
-
2244
- /**
2245
- * A specialized version of `_.reduce` for arrays without support for
2246
- * iteratee shorthands.
2247
- *
2248
- * @private
2249
- * @param {Array} [array] The array to iterate over.
2250
- * @param {Function} iteratee The function invoked per iteration.
2251
- * @param {*} [accumulator] The initial value.
2252
- * @param {boolean} [initAccum] Specify using the first element of `array` as
2253
- * the initial value.
2254
- * @returns {*} Returns the accumulated value.
2255
- */
2256
- function arrayReduce(array, iteratee, accumulator, initAccum) {
2257
- var index = -1,
2258
- length = array == null ? 0 : array.length;
2259
-
2260
- if (initAccum && length) {
2261
- accumulator = array[++index];
2262
- }
2263
- while (++index < length) {
2264
- accumulator = iteratee(accumulator, array[index], index, array);
2265
- }
2266
- return accumulator;
2267
- }
2268
-
2269
- var _arrayReduce = arrayReduce;
2270
-
2271
- /**
2272
- * The base implementation of `_.propertyOf` without support for deep paths.
2273
- *
2274
- * @private
2275
- * @param {Object} object The object to query.
2276
- * @returns {Function} Returns the new accessor function.
2277
- */
2278
- function basePropertyOf(object) {
2279
- return function(key) {
2280
- return object == null ? undefined : object[key];
2281
- };
2282
- }
2283
-
2284
- var _basePropertyOf = basePropertyOf;
2285
-
2286
- /** Used to map Latin Unicode letters to basic Latin letters. */
2287
- var deburredLetters = {
2288
- // Latin-1 Supplement block.
2289
- '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
2290
- '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
2291
- '\xc7': 'C', '\xe7': 'c',
2292
- '\xd0': 'D', '\xf0': 'd',
2293
- '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
2294
- '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
2295
- '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
2296
- '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
2297
- '\xd1': 'N', '\xf1': 'n',
2298
- '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
2299
- '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
2300
- '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
2301
- '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
2302
- '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
2303
- '\xc6': 'Ae', '\xe6': 'ae',
2304
- '\xde': 'Th', '\xfe': 'th',
2305
- '\xdf': 'ss',
2306
- // Latin Extended-A block.
2307
- '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
2308
- '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
2309
- '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
2310
- '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
2311
- '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
2312
- '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
2313
- '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
2314
- '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
2315
- '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
2316
- '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
2317
- '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
2318
- '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
2319
- '\u0134': 'J', '\u0135': 'j',
2320
- '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
2321
- '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
2322
- '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
2323
- '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
2324
- '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
2325
- '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
2326
- '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
2327
- '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
2328
- '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
2329
- '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
2330
- '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
2331
- '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
2332
- '\u0163': 't', '\u0165': 't', '\u0167': 't',
2333
- '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
2334
- '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
2335
- '\u0174': 'W', '\u0175': 'w',
2336
- '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
2337
- '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
2338
- '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
2339
- '\u0132': 'IJ', '\u0133': 'ij',
2340
- '\u0152': 'Oe', '\u0153': 'oe',
2341
- '\u0149': "'n", '\u017f': 's'
2342
- };
2343
-
2344
- /**
2345
- * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
2346
- * letters to basic Latin letters.
2347
- *
2348
- * @private
2349
- * @param {string} letter The matched letter to deburr.
2350
- * @returns {string} Returns the deburred letter.
2351
- */
2352
- var deburrLetter = _basePropertyOf(deburredLetters);
2353
-
2354
- var _deburrLetter = deburrLetter;
2355
-
2356
- /** Used to match Latin Unicode letters (excluding mathematical operators). */
2357
- var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
2358
-
2359
- /** Used to compose unicode character classes. */
2360
- var rsComboMarksRange$3 = '\\u0300-\\u036f',
2361
- reComboHalfMarksRange$3 = '\\ufe20-\\ufe2f',
2362
- rsComboSymbolsRange$3 = '\\u20d0-\\u20ff',
2363
- rsComboRange$3 = rsComboMarksRange$3 + reComboHalfMarksRange$3 + rsComboSymbolsRange$3;
2364
-
2365
- /** Used to compose unicode capture groups. */
2366
- var rsCombo$2 = '[' + rsComboRange$3 + ']';
2367
-
2368
- /**
2369
- * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
2370
- * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
2371
- */
2372
- var reComboMark = RegExp(rsCombo$2, 'g');
2373
-
2374
- /**
2375
- * Deburrs `string` by converting
2376
- * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
2377
- * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
2378
- * letters to basic Latin letters and removing
2379
- * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
2380
- *
2381
- * @static
2382
- * @memberOf _
2383
- * @since 3.0.0
2384
- * @category String
2385
- * @param {string} [string=''] The string to deburr.
2386
- * @returns {string} Returns the deburred string.
2387
- * @example
2388
- *
2389
- * _.deburr('déjà vu');
2390
- * // => 'deja vu'
2391
- */
2392
- function deburr(string) {
2393
- string = toString_1(string);
2394
- return string && string.replace(reLatin, _deburrLetter).replace(reComboMark, '');
2395
- }
2396
-
2397
- var deburr_1 = deburr;
2398
-
2399
- /** Used to match words composed of alphanumeric characters. */
2400
- var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
2401
-
2402
- /**
2403
- * Splits an ASCII `string` into an array of its words.
2404
- *
2405
- * @private
2406
- * @param {string} The string to inspect.
2407
- * @returns {Array} Returns the words of `string`.
2408
- */
2409
- function asciiWords(string) {
2410
- return string.match(reAsciiWord) || [];
2411
- }
2412
-
2413
- var _asciiWords = asciiWords;
2414
-
2415
- /** Used to detect strings that need a more robust regexp to match words. */
2416
- 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 ]/;
2417
-
2418
- /**
2419
- * Checks if `string` contains a word composed of Unicode symbols.
2420
- *
2421
- * @private
2422
- * @param {string} string The string to inspect.
2423
- * @returns {boolean} Returns `true` if a word is found, else `false`.
2424
- */
2425
- function hasUnicodeWord(string) {
2426
- return reHasUnicodeWord.test(string);
2427
- }
2428
-
2429
- var _hasUnicodeWord = hasUnicodeWord;
2430
-
2431
- /** Used to compose unicode character classes. */
2432
- var rsAstralRange$2 = '\\ud800-\\udfff',
2433
- rsComboMarksRange$2 = '\\u0300-\\u036f',
2434
- reComboHalfMarksRange$2 = '\\ufe20-\\ufe2f',
2435
- rsComboSymbolsRange$2 = '\\u20d0-\\u20ff',
2436
- rsComboRange$2 = rsComboMarksRange$2 + reComboHalfMarksRange$2 + rsComboSymbolsRange$2,
2437
- rsDingbatRange = '\\u2700-\\u27bf',
2438
- rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
2439
- rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
2440
- rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
2441
- rsPunctuationRange = '\\u2000-\\u206f',
2442
- 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',
2443
- rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
2444
- rsVarRange$2 = '\\ufe0e\\ufe0f',
2445
- rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
2446
-
2447
- /** Used to compose unicode capture groups. */
2448
- var rsApos$1 = "['\u2019]",
2449
- rsBreak = '[' + rsBreakRange + ']',
2450
- rsCombo$1 = '[' + rsComboRange$2 + ']',
2451
- rsDigits = '\\d+',
2452
- rsDingbat = '[' + rsDingbatRange + ']',
2453
- rsLower = '[' + rsLowerRange + ']',
2454
- rsMisc = '[^' + rsAstralRange$2 + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
2455
- rsFitz$1 = '\\ud83c[\\udffb-\\udfff]',
2456
- rsModifier$1 = '(?:' + rsCombo$1 + '|' + rsFitz$1 + ')',
2457
- rsNonAstral$1 = '[^' + rsAstralRange$2 + ']',
2458
- rsRegional$1 = '(?:\\ud83c[\\udde6-\\uddff]){2}',
2459
- rsSurrPair$1 = '[\\ud800-\\udbff][\\udc00-\\udfff]',
2460
- rsUpper = '[' + rsUpperRange + ']',
2461
- rsZWJ$2 = '\\u200d';
2462
-
2463
- /** Used to compose unicode regexes. */
2464
- var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
2465
- rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
2466
- rsOptContrLower = '(?:' + rsApos$1 + '(?:d|ll|m|re|s|t|ve))?',
2467
- rsOptContrUpper = '(?:' + rsApos$1 + '(?:D|LL|M|RE|S|T|VE))?',
2468
- reOptMod$1 = rsModifier$1 + '?',
2469
- rsOptVar$1 = '[' + rsVarRange$2 + ']?',
2470
- rsOptJoin$1 = '(?:' + rsZWJ$2 + '(?:' + [rsNonAstral$1, rsRegional$1, rsSurrPair$1].join('|') + ')' + rsOptVar$1 + reOptMod$1 + ')*',
2471
- rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
2472
- rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
2473
- rsSeq$1 = rsOptVar$1 + reOptMod$1 + rsOptJoin$1,
2474
- rsEmoji = '(?:' + [rsDingbat, rsRegional$1, rsSurrPair$1].join('|') + ')' + rsSeq$1;
2475
-
2476
- /** Used to match complex or compound words. */
2477
- var reUnicodeWord = RegExp([
2478
- rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
2479
- rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
2480
- rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
2481
- rsUpper + '+' + rsOptContrUpper,
2482
- rsOrdUpper,
2483
- rsOrdLower,
2484
- rsDigits,
2485
- rsEmoji
2486
- ].join('|'), 'g');
2487
-
2488
- /**
2489
- * Splits a Unicode `string` into an array of its words.
2490
- *
2491
- * @private
2492
- * @param {string} The string to inspect.
2493
- * @returns {Array} Returns the words of `string`.
2494
- */
2495
- function unicodeWords(string) {
2496
- return string.match(reUnicodeWord) || [];
2497
- }
2498
-
2499
- var _unicodeWords = unicodeWords;
2500
-
2501
- /**
2502
- * Splits `string` into an array of its words.
2503
- *
2504
- * @static
2505
- * @memberOf _
2506
- * @since 3.0.0
2507
- * @category String
2508
- * @param {string} [string=''] The string to inspect.
2509
- * @param {RegExp|string} [pattern] The pattern to match words.
2510
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
2511
- * @returns {Array} Returns the words of `string`.
2512
- * @example
2513
- *
2514
- * _.words('fred, barney, & pebbles');
2515
- * // => ['fred', 'barney', 'pebbles']
2516
- *
2517
- * _.words('fred, barney, & pebbles', /[^, ]+/g);
2518
- * // => ['fred', 'barney', '&', 'pebbles']
2519
- */
2520
- function words(string, pattern, guard) {
2521
- string = toString_1(string);
2522
- pattern = guard ? undefined : pattern;
2523
-
2524
- if (pattern === undefined) {
2525
- return _hasUnicodeWord(string) ? _unicodeWords(string) : _asciiWords(string);
2526
- }
2527
- return string.match(pattern) || [];
2528
- }
2529
-
2530
- var words_1 = words;
2531
-
2532
- /** Used to compose unicode capture groups. */
2533
- var rsApos = "['\u2019]";
2534
-
2535
- /** Used to match apostrophes. */
2536
- var reApos = RegExp(rsApos, 'g');
2537
-
2538
- /**
2539
- * Creates a function like `_.camelCase`.
2540
- *
2541
- * @private
2542
- * @param {Function} callback The function to combine each word.
2543
- * @returns {Function} Returns the new compounder function.
2544
- */
2545
- function createCompounder(callback) {
2546
- return function(string) {
2547
- return _arrayReduce(words_1(deburr_1(string).replace(reApos, '')), callback, '');
2548
- };
2549
- }
2550
-
2551
- var _createCompounder = createCompounder;
2552
-
2553
- var hexToRGB = function hexToRGB(hex) {
2554
- var r = parseInt(hex.slice(1, 3), 16);
2555
- var g = parseInt(hex.slice(3, 5), 16);
2556
- var b = parseInt(hex.slice(5, 7), 16);
2557
- return {
2558
- r: r,
2559
- g: g,
2560
- b: b
2561
- };
2562
- };
2563
- var getLuminanceOfColor = function getLuminanceOfColor(hex) {
2564
- var _hexToRGB = hexToRGB(hex),
2565
- r = _hexToRGB.r,
2566
- g = _hexToRGB.g,
2567
- b = _hexToRGB.b;
2568
-
2569
- return r * 0.299 + g * 0.587 + b * 0.114;
2570
- };
2571
- var rgbToHex = function rgbToHex() {
2572
- var color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "rgba(255, 255, 255, 0)";
2573
- var rgba = color.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);
2574
- 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;
2575
- };
2576
- var getTextColor = function getTextColor() {
2577
- var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "rgb(255,255,255)";
2578
- var isRegexCheck = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(theme);
2579
- var getHexValue = !isRegexCheck ? rgbToHex(theme) : theme;
2580
- var textColor = getLuminanceOfColor(getHexValue) < 155 ? "light" : "dark";
2581
- return textColor;
2582
- };
2583
- PropTypes__default["default"].shape({
2584
- "sketches-host": PropTypes__default["default"].string,
2585
- "cdn-name": PropTypes__default["default"].string,
2586
- "cdn-image": PropTypes__default["default"].string
2587
- });
2588
- PropTypes__default["default"].shape({
2589
- headline: PropTypes__default["default"].string,
2590
- "last-published-at": PropTypes__default["default"].number,
2591
- subheadline: PropTypes__default["default"].string
2592
- });
2593
-
2594
- var _styleModuleImportMap$1 = {
2595
- "./social-share-popup.m.css": {
2596
- "share-popup-wrapper": "social-share-popup-m_share-popup-wrapper__GEJqD",
2597
- "light": "social-share-popup-m_light__gQmxf",
2598
- "dark": "social-share-popup-m_dark__26Igp",
2599
- "share-popup": "social-share-popup-m_share-popup__QRt3l social-share-popup-m_share-popup-wrapper__GEJqD",
2600
- "social-wrapper": "social-share-popup-m_social-wrapper__1lPzr",
2601
- "social-icon-wrapper": "social-share-popup-m_social-icon-wrapper__36jyV",
2602
- "wrapper": "social-share-popup-m_wrapper__3Ytce",
2603
- "top-bar": "social-share-popup-m_top-bar__174Um",
2604
- "share-text": "social-share-popup-m_share-text__19E-F",
2605
- "close": "social-share-popup-m_close__3k-Hj",
2606
- "social-icon": "social-share-popup-m_social-icon__2a4nT",
2607
- "social-text": "social-share-popup-m_social-text__1QPXb"
2608
- }
2609
- };
2610
-
2611
- var popupSocialShareItem = function popupSocialShareItem(url, icon, text, index) {
2612
- return url ? /*#__PURE__*/React__default["default"].createElement("li", {
2613
- className: "social-share-popup-m_social-icon-wrapper__36jyV",
2614
- "data-testid": text,
2615
- key: "popup-item-".concat(index)
2616
- }, /*#__PURE__*/React__default["default"].createElement("a", {
2617
- href: url,
2618
- target: "_blank",
2619
- rel: "noopener noreferrer",
2620
- className: "social-share-popup-m_social-wrapper__1lPzr",
2621
- "aria-label": "social-icon"
2622
- }, icon, /*#__PURE__*/React__default["default"].createElement("span", {
2623
- className: "social-share-popup-m_social-text__1QPXb"
2624
- }, text))) : null;
2625
- };
2626
-
2627
- var SocialSharePopup = function SocialSharePopup(_ref) {
2628
- var _ref$fbUrl = _ref.fbUrl,
2629
- fbUrl = _ref$fbUrl === void 0 ? "" : _ref$fbUrl,
2630
- _ref$twitterUrl = _ref.twitterUrl,
2631
- twitterUrl = _ref$twitterUrl === void 0 ? "" : _ref$twitterUrl,
2632
- _ref$linkedinUrl = _ref.linkedinUrl,
2633
- linkedinUrl = _ref$linkedinUrl === void 0 ? "" : _ref$linkedinUrl,
2634
- _ref$whatsappUrl = _ref.whatsappUrl,
2635
- whatsappUrl = _ref$whatsappUrl === void 0 ? "" : _ref$whatsappUrl,
2636
- theme = _ref.theme,
2637
- _ref$closePopup = _ref.closePopup,
2638
- closePopup = _ref$closePopup === void 0 ? "" : _ref$closePopup,
2639
- _ref$iconType = _ref.iconType,
2640
- iconType = _ref$iconType === void 0 ? "plain-color-svg" : _ref$iconType;
2641
- var textColor = getTextColor(theme);
2642
- var iconColor = textColor === "dark" ? "#000000" : "#ffffff";
2643
- var options = {
2644
- fbUrl: fbUrl,
2645
- twitterUrl: twitterUrl,
2646
- linkedinUrl: linkedinUrl,
2647
- whatsappUrl: whatsappUrl,
2648
- iconColor: iconColor,
2649
- iconType: iconType
2650
- };
2651
- var popupItemsList = socialShareData(options);
2652
- return /*#__PURE__*/React__default["default"].createElement("div", {
2653
- className: _getClassName("share-popup-wrapper ".concat(textColor), _styleModuleImportMap$1)
2654
- }, /*#__PURE__*/React__default["default"].createElement("div", {
2655
- className: "social-share-popup-m_share-popup__QRt3l social-share-popup-m_share-popup-wrapper__GEJqD"
2656
- }, /*#__PURE__*/React__default["default"].createElement("div", {
2657
- className: "social-share-popup-m_top-bar__174Um"
2658
- }, /*#__PURE__*/React__default["default"].createElement("span", {
2659
- className: "social-share-popup-m_share-text__19E-F"
2660
- }, "Share via"), /*#__PURE__*/React__default["default"].createElement("span", {
2661
- className: "social-share-popup-m_close__3k-Hj",
2662
- onClick: closePopup
2663
- }, /*#__PURE__*/React__default["default"].createElement(CloseIcon, {
2664
- color: iconColor
2665
- }))), /*#__PURE__*/React__default["default"].createElement("ul", {
2666
- className: "social-share-popup-m_wrapper__3Ytce"
2667
- }, popupItemsList.map(function (_ref2, index) {
2668
- var url = _ref2.url,
2669
- icon = _ref2.icon,
2670
- text = _ref2.text,
2671
- bgColor = _ref2.bgColor;
2672
- _ref2.alt;
2673
- return popupSocialShareItem(url, icon, text, bgColor);
2674
- }))));
2675
- };
2676
- SocialSharePopup.propTypes = {
2677
- fbUrl: PropTypes__default["default"].string,
2678
- twitterUrl: PropTypes__default["default"].string,
2679
- linkedinUrl: PropTypes__default["default"].string,
2680
- whatsappUrl: PropTypes__default["default"].string,
2681
- grey: PropTypes__default["default"].string,
2682
- primaryColor: PropTypes__default["default"].string,
2683
- closePopup: PropTypes__default["default"].bool,
2684
- theme: PropTypes__default["default"].string,
2685
- iconType: PropTypes__default["default"].string
2686
- };
2687
-
2688
- var ShareIcon = function ShareIcon(_ref) {
2689
- var _ref$color = _ref.color,
2690
- color = _ref$color === void 0 ? "#0D0D0D" : _ref$color;
2691
- return /*#__PURE__*/React__default["default"].createElement("svg", {
2692
- xmlns: "http://www.w3.org/2000/svg",
2693
- width: "24",
2694
- height: "24",
2695
- viewBox: "0 0 24 24"
2696
- }, /*#__PURE__*/React__default["default"].createElement("path", {
2697
- fill: color,
2698
- fillRule: "evenodd",
2699
- d: "M15.843 3.189c-1.478 0-2.689 1.239-2.689 2.75 0 .293.046.58.13.846L8.844 9.31a2.638 2.638 0 00-1.687-.621c-1.477 0-2.688 1.238-2.688 2.75 0 1.51 1.21 2.75 2.688 2.75.638 0 1.224-.231 1.687-.615l4.446 2.525a2.778 2.778 0 00-.136.84c0 1.51 1.211 2.75 2.689 2.75 1.477 0 2.688-1.24 2.688-2.75 0-1.512-1.21-2.75-2.688-2.75-.742 0-1.419.317-1.907.82l-4.323-2.46a2.763 2.763 0 000-2.221l4.317-2.459c.488.506 1.168.82 1.913.82 1.477 0 2.688-1.239 2.688-2.75s-1.21-2.75-2.688-2.75z"
2700
- }));
2701
- };
2702
- ShareIcon.propTypes = {
2703
- color: PropTypes__default["default"].string
2704
- };
2705
-
2706
- /**
2707
- * The base implementation of `_.slice` without an iteratee call guard.
2708
- *
2709
- * @private
2710
- * @param {Array} array The array to slice.
2711
- * @param {number} [start=0] The start position.
2712
- * @param {number} [end=array.length] The end position.
2713
- * @returns {Array} Returns the slice of `array`.
2714
- */
2715
- function baseSlice(array, start, end) {
2716
- var index = -1,
2717
- length = array.length;
2718
-
2719
- if (start < 0) {
2720
- start = -start > length ? 0 : (length + start);
2721
- }
2722
- end = end > length ? length : end;
2723
- if (end < 0) {
2724
- end += length;
2725
- }
2726
- length = start > end ? 0 : ((end - start) >>> 0);
2727
- start >>>= 0;
2728
-
2729
- var result = Array(length);
2730
- while (++index < length) {
2731
- result[index] = array[index + start];
2732
- }
2733
- return result;
2734
- }
2735
-
2736
- var _baseSlice = baseSlice;
2737
-
2738
- /**
2739
- * Casts `array` to a slice if it's needed.
2740
- *
2741
- * @private
2742
- * @param {Array} array The array to inspect.
2743
- * @param {number} start The start position.
2744
- * @param {number} [end=array.length] The end position.
2745
- * @returns {Array} Returns the cast slice.
2746
- */
2747
- function castSlice(array, start, end) {
2748
- var length = array.length;
2749
- end = end === undefined ? length : end;
2750
- return (!start && end >= length) ? array : _baseSlice(array, start, end);
2751
- }
2752
-
2753
- var _castSlice = castSlice;
2754
-
2755
- /** Used to compose unicode character classes. */
2756
- var rsAstralRange$1 = '\\ud800-\\udfff',
2757
- rsComboMarksRange$1 = '\\u0300-\\u036f',
2758
- reComboHalfMarksRange$1 = '\\ufe20-\\ufe2f',
2759
- rsComboSymbolsRange$1 = '\\u20d0-\\u20ff',
2760
- rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1,
2761
- rsVarRange$1 = '\\ufe0e\\ufe0f';
2762
-
2763
- /** Used to compose unicode capture groups. */
2764
- var rsZWJ$1 = '\\u200d';
2765
-
2766
- /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
2767
- var reHasUnicode = RegExp('[' + rsZWJ$1 + rsAstralRange$1 + rsComboRange$1 + rsVarRange$1 + ']');
2768
-
2769
- /**
2770
- * Checks if `string` contains Unicode symbols.
2771
- *
2772
- * @private
2773
- * @param {string} string The string to inspect.
2774
- * @returns {boolean} Returns `true` if a symbol is found, else `false`.
2775
- */
2776
- function hasUnicode(string) {
2777
- return reHasUnicode.test(string);
2778
- }
2779
-
2780
- var _hasUnicode = hasUnicode;
2781
-
2782
- /**
2783
- * Converts an ASCII `string` to an array.
2784
- *
2785
- * @private
2786
- * @param {string} string The string to convert.
2787
- * @returns {Array} Returns the converted array.
2788
- */
2789
- function asciiToArray(string) {
2790
- return string.split('');
2791
- }
2792
-
2793
- var _asciiToArray = asciiToArray;
2794
-
2795
- /** Used to compose unicode character classes. */
2796
- var rsAstralRange = '\\ud800-\\udfff',
2797
- rsComboMarksRange = '\\u0300-\\u036f',
2798
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
2799
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
2800
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
2801
- rsVarRange = '\\ufe0e\\ufe0f';
2802
-
2803
- /** Used to compose unicode capture groups. */
2804
- var rsAstral = '[' + rsAstralRange + ']',
2805
- rsCombo = '[' + rsComboRange + ']',
2806
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
2807
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
2808
- rsNonAstral = '[^' + rsAstralRange + ']',
2809
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
2810
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
2811
- rsZWJ = '\\u200d';
2812
-
2813
- /** Used to compose unicode regexes. */
2814
- var reOptMod = rsModifier + '?',
2815
- rsOptVar = '[' + rsVarRange + ']?',
2816
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
2817
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
2818
- rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
2819
-
2820
- /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
2821
- var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
2822
-
2823
- /**
2824
- * Converts a Unicode `string` to an array.
2825
- *
2826
- * @private
2827
- * @param {string} string The string to convert.
2828
- * @returns {Array} Returns the converted array.
2829
- */
2830
- function unicodeToArray(string) {
2831
- return string.match(reUnicode) || [];
2832
- }
2833
-
2834
- var _unicodeToArray = unicodeToArray;
2835
-
2836
- /**
2837
- * Converts `string` to an array.
2838
- *
2839
- * @private
2840
- * @param {string} string The string to convert.
2841
- * @returns {Array} Returns the converted array.
2842
- */
2843
- function stringToArray(string) {
2844
- return _hasUnicode(string)
2845
- ? _unicodeToArray(string)
2846
- : _asciiToArray(string);
2847
- }
2848
-
2849
- var _stringToArray = stringToArray;
2850
-
2851
- /**
2852
- * Creates a function like `_.lowerFirst`.
2853
- *
2854
- * @private
2855
- * @param {string} methodName The name of the `String` case method to use.
2856
- * @returns {Function} Returns the new case function.
2857
- */
2858
- function createCaseFirst(methodName) {
2859
- return function(string) {
2860
- string = toString_1(string);
2861
-
2862
- var strSymbols = _hasUnicode(string)
2863
- ? _stringToArray(string)
2864
- : undefined;
2865
-
2866
- var chr = strSymbols
2867
- ? strSymbols[0]
2868
- : string.charAt(0);
2869
-
2870
- var trailing = strSymbols
2871
- ? _castSlice(strSymbols, 1).join('')
2872
- : string.slice(1);
2873
-
2874
- return chr[methodName]() + trailing;
2875
- };
2876
- }
2877
-
2878
- var _createCaseFirst = createCaseFirst;
2879
-
2880
- /**
2881
- * Converts the first character of `string` to upper case.
2882
- *
2883
- * @static
2884
- * @memberOf _
2885
- * @since 4.0.0
2886
- * @category String
2887
- * @param {string} [string=''] The string to convert.
2888
- * @returns {string} Returns the converted string.
2889
- * @example
2890
- *
2891
- * _.upperFirst('fred');
2892
- * // => 'Fred'
2893
- *
2894
- * _.upperFirst('FRED');
2895
- * // => 'FRED'
2896
- */
2897
- var upperFirst = _createCaseFirst('toUpperCase');
2898
-
2899
- var upperFirst_1 = upperFirst;
2900
-
2901
- /**
2902
- * Converts the first character of `string` to upper case and the remaining
2903
- * to lower case.
2904
- *
2905
- * @static
2906
- * @memberOf _
2907
- * @since 3.0.0
2908
- * @category String
2909
- * @param {string} [string=''] The string to capitalize.
2910
- * @returns {string} Returns the capitalized string.
2911
- * @example
2912
- *
2913
- * _.capitalize('FRED');
2914
- * // => 'Fred'
2915
- */
2916
- function capitalize(string) {
2917
- return upperFirst_1(toString_1(string).toLowerCase());
2918
- }
2919
-
2920
- var capitalize_1 = capitalize;
2921
-
2922
- /**
2923
- * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
2924
- *
2925
- * @static
2926
- * @memberOf _
2927
- * @since 3.0.0
2928
- * @category String
2929
- * @param {string} [string=''] The string to convert.
2930
- * @returns {string} Returns the camel cased string.
2931
- * @example
2932
- *
2933
- * _.camelCase('Foo Bar');
2934
- * // => 'fooBar'
2935
- *
2936
- * _.camelCase('--foo-bar--');
2937
- * // => 'fooBar'
2938
- *
2939
- * _.camelCase('__FOO_BAR__');
2940
- * // => 'fooBar'
2941
- */
2942
- var camelCase = _createCompounder(function(result, word, index) {
2943
- word = word.toLowerCase();
2944
- return result + (index ? capitalize_1(word) : word);
2945
- });
2946
-
2947
- var camelCase_1 = camelCase;
2948
-
2949
- var _styleModuleImportMap = {
2950
- "./social-share-template.m.css": {
2951
- "desktop-view": "social-share-template-m_desktop-view__3TmkO",
2952
- "tablet-view": "social-share-template-m_tablet-view__kATzi",
2953
- "wrapper": "social-share-template-m_wrapper__1wXin",
2954
- "horizontal": "social-share-template-m_horizontal__1c9Kt",
2955
- "vertical": "social-share-template-m_vertical__VU5JY",
2956
- "light": "social-share-template-m_light__3-V_k",
2957
- "dark": "social-share-template-m_dark__1lmTM",
2958
- "icon": "social-share-template-m_icon__1Mnu5",
2959
- "open": "social-share-template-m_open__3xObA",
2960
- "popup-wrapper": "social-share-template-m_popup-wrapper__1Zv3e",
2961
- "popup-open": "social-share-template-m_popup-open__21UNo",
2962
- "overlay": "social-share-template-m_overlay__1nBp-",
2963
- "tablet-view-popup": "social-share-template-m_tablet-view-popup__1hXU9"
2964
- }
2965
- };
2966
-
2967
- var ShareItem = function ShareItem(_ref) {
2968
- var name = _ref.name,
2969
- url = _ref.url,
2970
- icon = _ref.icon,
2971
- dataTestId = _ref.dataTestId;
2972
- return url ? /*#__PURE__*/React__default["default"].createElement("li", {
2973
- "data-testid": dataTestId,
2974
- className: "social-share-template-m_icon__1Mnu5"
2975
- }, /*#__PURE__*/React__default["default"].createElement("a", {
2976
- href: url,
2977
- target: "_blank",
2978
- rel: "noopener noreferrer",
2979
- "data-share-icon": name,
2980
- "aria-label": "share-icon"
2981
- }, icon)) : null;
2982
- };
2983
-
2984
- ShareItem.propTypes = {
2985
- name: PropTypes__default["default"].string,
2986
- url: PropTypes__default["default"].string,
2987
- icon: PropTypes__default["default"].node,
2988
- dataTestId: PropTypes__default["default"].string
2989
- };
2990
-
2991
- function getActionIcon(open, color) {
2992
- if (!open) return /*#__PURE__*/React__default["default"].createElement(ShareIcon, {
2993
- color: color
2994
- });
2995
- return /*#__PURE__*/React__default["default"].createElement(CloseIcon, {
2996
- color: color
2997
- });
2998
- }
2999
-
3000
- var SocialShareTemplate = function SocialShareTemplate(props) {
3001
- var _props$fbUrl = props.fbUrl,
3002
- fbUrl = _props$fbUrl === void 0 ? "" : _props$fbUrl,
3003
- _props$twitterUrl = props.twitterUrl,
3004
- twitterUrl = _props$twitterUrl === void 0 ? "" : _props$twitterUrl,
3005
- _props$linkedinUrl = props.linkedinUrl,
3006
- linkedinUrl = _props$linkedinUrl === void 0 ? "" : _props$linkedinUrl,
3007
- _props$whatsappUrl = props.whatsappUrl,
3008
- whatsappUrl = _props$whatsappUrl === void 0 ? "" : _props$whatsappUrl,
3009
- _props$vertical = props.vertical,
3010
- vertical = _props$vertical === void 0 ? false : _props$vertical,
3011
- theme = props.theme,
3012
- _props$iconType = props.iconType,
3013
- iconType = _props$iconType === void 0 ? "plain-color-svg" : _props$iconType,
3014
- _props$open = props.open,
3015
- open = _props$open === void 0 ? false : _props$open;
3016
- if (!fbUrl && !twitterUrl && !linkedinUrl && !whatsappUrl) return null;
3017
- var iconShade = getTextColor(theme);
3018
- var iconColor = iconShade === "dark" ? "#000000" : "#ffffff";
3019
- var options = {
3020
- fbUrl: fbUrl,
3021
- twitterUrl: twitterUrl,
3022
- linkedinUrl: linkedinUrl,
3023
- whatsappUrl: whatsappUrl,
3024
- iconColor: iconColor,
3025
- iconType: iconType
3026
- };
3027
- var iconsList = socialShareData(options);
3028
-
3029
- var _useState = React.useState(open),
3030
- _useState2 = _slicedToArray(_useState, 2),
3031
- isOpen = _useState2[0],
3032
- setIsOpen = _useState2[1];
3033
-
3034
- var verticalShare = vertical ? "vertical" : "horizontal";
3035
- React.useEffect(function () {
3036
- return setIsOpen(open);
3037
- }, [open]);
3038
-
3039
- var shareIcon = function shareIcon() {
3040
- return /*#__PURE__*/React__default["default"].createElement("li", {
3041
- className: "social-share-template-m_icon__1Mnu5",
3042
- key: "horizontal-0"
3043
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3044
- onClick: clickHandler
3045
- }, getActionIcon(isOpen, iconColor)));
3046
- };
3047
-
3048
- var clickHandler = function clickHandler() {
3049
- setIsOpen(!isOpen);
3050
- };
3051
-
3052
- var popUpWrapper = function popUpWrapper() {
3053
- return /*#__PURE__*/React__default["default"].createElement("div", {
3054
- className: "social-share-template-m_tablet-view__kATzi"
3055
- }, !isOpen && /*#__PURE__*/React__default["default"].createElement("ul", {
3056
- className: _getClassName("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap)
3057
- }, shareIcon()), isOpen && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3058
- className: "social-share-template-m_overlay__1nBp-",
3059
- onClick: clickHandler
3060
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3061
- className: "arr--popup " + _getClassName("popup-wrapper ".concat(isOpen ? "popup-open" : ""), _styleModuleImportMap)
3062
- }, /*#__PURE__*/React__default["default"].createElement(SocialSharePopup, {
3063
- fbUrl: fbUrl,
3064
- twitterUrl: twitterUrl,
3065
- linkedinUrl: linkedinUrl,
3066
- whatsappUrl: whatsappUrl,
3067
- iconType: iconType,
3068
- theme: theme,
3069
- closePopup: function closePopup() {
3070
- setIsOpen(false);
3071
- }
3072
- })))));
3073
- };
3074
-
3075
- var popupStyle = !isOpen && vertical ? "tablet-view-popup" : "";
3076
- return /*#__PURE__*/React__default["default"].createElement("div", {
3077
- "data-test-id": verticalShare,
3078
- className: "arr--share " + _getClassName("".concat(iconShade, " ").concat(verticalShare, " ").concat(popupStyle), _styleModuleImportMap)
3079
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3080
- className: "social-share-template-m_desktop-view__3TmkO"
3081
- }, /*#__PURE__*/React__default["default"].createElement("ul", {
3082
- "data-test-id": camelCase_1(iconType),
3083
- className: "desktop-share-wrapper " + _getClassName("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap)
3084
- }, shareIcon(), iconsList.map(function (iconData, index) {
3085
- return /*#__PURE__*/React__default["default"].createElement(ShareItem, _extends({}, iconData, {
3086
- key: iconData.name,
3087
- dataTestId: "card-share-".concat(index)
3088
- }));
3089
- }))), popUpWrapper());
3090
- };
3091
- SocialShareTemplate.propTypes = {
3092
- fbUrl: PropTypes__default["default"].string,
3093
- twitterUrl: PropTypes__default["default"].string,
3094
- linkedinUrl: PropTypes__default["default"].string,
3095
- whatsappUrl: PropTypes__default["default"].string,
3096
- vertical: PropTypes__default["default"].bool,
3097
- theme: PropTypes__default["default"].string,
3098
- iconType: PropTypes__default["default"].string,
3099
- open: PropTypes__default["default"]["boolean"]
3100
- };
3101
-
3102
- exports.SocialShareTemplate = SocialShareTemplate;