@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,3529 +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
- var components = require('@quintype/components');
10
-
11
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
-
13
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
14
- var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
15
-
16
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
17
-
18
- function getDefaultExportFromCjs (x) {
19
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
20
- }
21
-
22
- function createCommonjsModule(fn) {
23
- var module = { exports: {} };
24
- return fn(module, module.exports), module.exports;
25
- }
26
-
27
- var optionsDefaults_1 = createCommonjsModule(function (module, exports) {
28
-
29
- Object.defineProperty(exports, "__esModule", {
30
- value: true
31
- });
32
- exports["default"] = void 0;
33
- var optionsDefaults = {
34
- attributeNames: {
35
- styleName: 'className'
36
- },
37
- generateScopedName: '[path]___[name]__[local]___[hash:base64:5]',
38
- handleMissingStyleName: 'throw'
39
- };
40
- var _default = optionsDefaults;
41
- exports["default"] = _default;
42
-
43
-
44
- });
45
-
46
- var getClassName = createCommonjsModule(function (module, exports) {
47
-
48
- Object.defineProperty(exports, "__esModule", {
49
- value: true
50
- });
51
- exports["default"] = void 0;
52
-
53
- var _optionsDefaults = _interopRequireDefault(optionsDefaults_1);
54
-
55
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
56
-
57
- var isNamespacedStyleName = function isNamespacedStyleName(styleName) {
58
- return styleName.indexOf('.') !== -1;
59
- };
60
-
61
- var handleError = function handleError(message, handleMissingStyleName) {
62
- if (handleMissingStyleName === 'throw') {
63
- throw new Error(message);
64
- } else if (handleMissingStyleName === 'warn') {
65
- // eslint-disable-next-line no-console
66
- console.warn(message);
67
- }
68
-
69
- return null;
70
- };
71
-
72
- var getClassNameForNamespacedStyleName = function getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
73
- // Note:
74
- // Do not use the desctructing syntax with Babel.
75
- // Desctructing adds _slicedToArray helper.
76
- var styleNameParts = styleName.split('.');
77
- var importName = styleNameParts[0];
78
- var moduleName = styleNameParts[1];
79
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
80
-
81
- if (!moduleName) {
82
- return handleError('Invalid style name: ' + styleName, handleMissingStyleName);
83
- }
84
-
85
- if (!styleModuleImportMap[importName]) {
86
- return handleError('CSS module import does not exist: ' + importName, handleMissingStyleName);
87
- }
88
-
89
- if (!styleModuleImportMap[importName][moduleName]) {
90
- return handleError('CSS module does not exist: ' + moduleName, handleMissingStyleName);
91
- }
92
-
93
- return styleModuleImportMap[importName][moduleName];
94
- };
95
-
96
- var getClassNameFromMultipleImports = function getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
97
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
98
- var importKeysWithMatches = Object.keys(styleModuleImportMap).map(function (importKey) {
99
- return styleModuleImportMap[importKey][styleName] && importKey;
100
- }).filter(function (importKey) {
101
- return importKey;
102
- });
103
-
104
- if (importKeysWithMatches.length > 1) {
105
- 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');
106
- }
107
-
108
- if (importKeysWithMatches.length === 0) {
109
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
110
- }
111
-
112
- return styleModuleImportMap[importKeysWithMatches[0]][styleName];
113
- };
114
-
115
- var _default = function _default(styleNameValue, styleModuleImportMap, options) {
116
- var styleModuleImportMapKeys = Object.keys(styleModuleImportMap);
117
-
118
- var _ref = options || {},
119
- _ref$handleMissingSty = _ref.handleMissingStyleName,
120
- handleMissingStyleName = _ref$handleMissingSty === void 0 ? _optionsDefaults["default"].handleMissingStyleName : _ref$handleMissingSty,
121
- _ref$autoResolveMulti = _ref.autoResolveMultipleImports,
122
- autoResolveMultipleImports = _ref$autoResolveMulti === void 0 ? _optionsDefaults["default"].autoResolveMultipleImports : _ref$autoResolveMulti;
123
-
124
- if (!styleNameValue) {
125
- return '';
126
- }
127
-
128
- return styleNameValue.split(' ').filter(function (styleName) {
129
- return styleName;
130
- }).map(function (styleName) {
131
- if (isNamespacedStyleName(styleName)) {
132
- return getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleName);
133
- }
134
-
135
- if (styleModuleImportMapKeys.length === 0) {
136
- throw new Error('Cannot use styleName attribute for style name \'' + styleName + '\' without importing at least one stylesheet.');
137
- }
138
-
139
- if (styleModuleImportMapKeys.length > 1) {
140
- if (!autoResolveMultipleImports) {
141
- throw new Error('Cannot use anonymous style name \'' + styleName + '\' with more than one stylesheet import without setting \'autoResolveMultipleImports\' to true.');
142
- }
143
-
144
- return getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleName);
145
- }
146
-
147
- var styleModuleMap = styleModuleImportMap[styleModuleImportMapKeys[0]];
148
-
149
- if (!styleModuleMap[styleName]) {
150
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
151
- }
152
-
153
- return styleModuleMap[styleName];
154
- }).filter(function (className) {
155
- // Remove any styles which could not be found (if handleMissingStyleName === 'ignore')
156
- return className;
157
- }).join(' ');
158
- };
159
-
160
- exports["default"] = _default;
161
-
162
-
163
- });
164
-
165
- var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
166
-
167
- /**
168
- * Copyright (c) 2014-present, Facebook, Inc.
169
- *
170
- * This source code is licensed under the MIT license found in the
171
- * LICENSE file in the root directory of this source tree.
172
- */
173
-
174
- createCommonjsModule(function (module) {
175
- var runtime = (function (exports) {
176
-
177
- var Op = Object.prototype;
178
- var hasOwn = Op.hasOwnProperty;
179
- var undefined$1; // More compressible than void 0.
180
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
181
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
182
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
183
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
184
-
185
- function define(obj, key, value) {
186
- Object.defineProperty(obj, key, {
187
- value: value,
188
- enumerable: true,
189
- configurable: true,
190
- writable: true
191
- });
192
- return obj[key];
193
- }
194
- try {
195
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
196
- define({}, "");
197
- } catch (err) {
198
- define = function(obj, key, value) {
199
- return obj[key] = value;
200
- };
201
- }
202
-
203
- function wrap(innerFn, outerFn, self, tryLocsList) {
204
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
205
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
206
- var generator = Object.create(protoGenerator.prototype);
207
- var context = new Context(tryLocsList || []);
208
-
209
- // The ._invoke method unifies the implementations of the .next,
210
- // .throw, and .return methods.
211
- generator._invoke = makeInvokeMethod(innerFn, self, context);
212
-
213
- return generator;
214
- }
215
- exports.wrap = wrap;
216
-
217
- // Try/catch helper to minimize deoptimizations. Returns a completion
218
- // record like context.tryEntries[i].completion. This interface could
219
- // have been (and was previously) designed to take a closure to be
220
- // invoked without arguments, but in all the cases we care about we
221
- // already have an existing method we want to call, so there's no need
222
- // to create a new function object. We can even get away with assuming
223
- // the method takes exactly one argument, since that happens to be true
224
- // in every case, so we don't have to touch the arguments object. The
225
- // only additional allocation required is the completion record, which
226
- // has a stable shape and so hopefully should be cheap to allocate.
227
- function tryCatch(fn, obj, arg) {
228
- try {
229
- return { type: "normal", arg: fn.call(obj, arg) };
230
- } catch (err) {
231
- return { type: "throw", arg: err };
232
- }
233
- }
234
-
235
- var GenStateSuspendedStart = "suspendedStart";
236
- var GenStateSuspendedYield = "suspendedYield";
237
- var GenStateExecuting = "executing";
238
- var GenStateCompleted = "completed";
239
-
240
- // Returning this object from the innerFn has the same effect as
241
- // breaking out of the dispatch switch statement.
242
- var ContinueSentinel = {};
243
-
244
- // Dummy constructor functions that we use as the .constructor and
245
- // .constructor.prototype properties for functions that return Generator
246
- // objects. For full spec compliance, you may wish to configure your
247
- // minifier not to mangle the names of these two functions.
248
- function Generator() {}
249
- function GeneratorFunction() {}
250
- function GeneratorFunctionPrototype() {}
251
-
252
- // This is a polyfill for %IteratorPrototype% for environments that
253
- // don't natively support it.
254
- var IteratorPrototype = {};
255
- define(IteratorPrototype, iteratorSymbol, function () {
256
- return this;
257
- });
258
-
259
- var getProto = Object.getPrototypeOf;
260
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
261
- if (NativeIteratorPrototype &&
262
- NativeIteratorPrototype !== Op &&
263
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
264
- // This environment has a native %IteratorPrototype%; use it instead
265
- // of the polyfill.
266
- IteratorPrototype = NativeIteratorPrototype;
267
- }
268
-
269
- var Gp = GeneratorFunctionPrototype.prototype =
270
- Generator.prototype = Object.create(IteratorPrototype);
271
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
272
- define(Gp, "constructor", GeneratorFunctionPrototype);
273
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
274
- GeneratorFunction.displayName = define(
275
- GeneratorFunctionPrototype,
276
- toStringTagSymbol,
277
- "GeneratorFunction"
278
- );
279
-
280
- // Helper for defining the .next, .throw, and .return methods of the
281
- // Iterator interface in terms of a single ._invoke method.
282
- function defineIteratorMethods(prototype) {
283
- ["next", "throw", "return"].forEach(function(method) {
284
- define(prototype, method, function(arg) {
285
- return this._invoke(method, arg);
286
- });
287
- });
288
- }
289
-
290
- exports.isGeneratorFunction = function(genFun) {
291
- var ctor = typeof genFun === "function" && genFun.constructor;
292
- return ctor
293
- ? ctor === GeneratorFunction ||
294
- // For the native GeneratorFunction constructor, the best we can
295
- // do is to check its .name property.
296
- (ctor.displayName || ctor.name) === "GeneratorFunction"
297
- : false;
298
- };
299
-
300
- exports.mark = function(genFun) {
301
- if (Object.setPrototypeOf) {
302
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
303
- } else {
304
- genFun.__proto__ = GeneratorFunctionPrototype;
305
- define(genFun, toStringTagSymbol, "GeneratorFunction");
306
- }
307
- genFun.prototype = Object.create(Gp);
308
- return genFun;
309
- };
310
-
311
- // Within the body of any async function, `await x` is transformed to
312
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
313
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
314
- // meant to be awaited.
315
- exports.awrap = function(arg) {
316
- return { __await: arg };
317
- };
318
-
319
- function AsyncIterator(generator, PromiseImpl) {
320
- function invoke(method, arg, resolve, reject) {
321
- var record = tryCatch(generator[method], generator, arg);
322
- if (record.type === "throw") {
323
- reject(record.arg);
324
- } else {
325
- var result = record.arg;
326
- var value = result.value;
327
- if (value &&
328
- typeof value === "object" &&
329
- hasOwn.call(value, "__await")) {
330
- return PromiseImpl.resolve(value.__await).then(function(value) {
331
- invoke("next", value, resolve, reject);
332
- }, function(err) {
333
- invoke("throw", err, resolve, reject);
334
- });
335
- }
336
-
337
- return PromiseImpl.resolve(value).then(function(unwrapped) {
338
- // When a yielded Promise is resolved, its final value becomes
339
- // the .value of the Promise<{value,done}> result for the
340
- // current iteration.
341
- result.value = unwrapped;
342
- resolve(result);
343
- }, function(error) {
344
- // If a rejected Promise was yielded, throw the rejection back
345
- // into the async generator function so it can be handled there.
346
- return invoke("throw", error, resolve, reject);
347
- });
348
- }
349
- }
350
-
351
- var previousPromise;
352
-
353
- function enqueue(method, arg) {
354
- function callInvokeWithMethodAndArg() {
355
- return new PromiseImpl(function(resolve, reject) {
356
- invoke(method, arg, resolve, reject);
357
- });
358
- }
359
-
360
- return previousPromise =
361
- // If enqueue has been called before, then we want to wait until
362
- // all previous Promises have been resolved before calling invoke,
363
- // so that results are always delivered in the correct order. If
364
- // enqueue has not been called before, then it is important to
365
- // call invoke immediately, without waiting on a callback to fire,
366
- // so that the async generator function has the opportunity to do
367
- // any necessary setup in a predictable way. This predictability
368
- // is why the Promise constructor synchronously invokes its
369
- // executor callback, and why async functions synchronously
370
- // execute code before the first await. Since we implement simple
371
- // async functions in terms of async generators, it is especially
372
- // important to get this right, even though it requires care.
373
- previousPromise ? previousPromise.then(
374
- callInvokeWithMethodAndArg,
375
- // Avoid propagating failures to Promises returned by later
376
- // invocations of the iterator.
377
- callInvokeWithMethodAndArg
378
- ) : callInvokeWithMethodAndArg();
379
- }
380
-
381
- // Define the unified helper method that is used to implement .next,
382
- // .throw, and .return (see defineIteratorMethods).
383
- this._invoke = enqueue;
384
- }
385
-
386
- defineIteratorMethods(AsyncIterator.prototype);
387
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
388
- return this;
389
- });
390
- exports.AsyncIterator = AsyncIterator;
391
-
392
- // Note that simple async functions are implemented on top of
393
- // AsyncIterator objects; they just return a Promise for the value of
394
- // the final result produced by the iterator.
395
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
396
- if (PromiseImpl === void 0) PromiseImpl = Promise;
397
-
398
- var iter = new AsyncIterator(
399
- wrap(innerFn, outerFn, self, tryLocsList),
400
- PromiseImpl
401
- );
402
-
403
- return exports.isGeneratorFunction(outerFn)
404
- ? iter // If outerFn is a generator, return the full iterator.
405
- : iter.next().then(function(result) {
406
- return result.done ? result.value : iter.next();
407
- });
408
- };
409
-
410
- function makeInvokeMethod(innerFn, self, context) {
411
- var state = GenStateSuspendedStart;
412
-
413
- return function invoke(method, arg) {
414
- if (state === GenStateExecuting) {
415
- throw new Error("Generator is already running");
416
- }
417
-
418
- if (state === GenStateCompleted) {
419
- if (method === "throw") {
420
- throw arg;
421
- }
422
-
423
- // Be forgiving, per 25.3.3.3.3 of the spec:
424
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
425
- return doneResult();
426
- }
427
-
428
- context.method = method;
429
- context.arg = arg;
430
-
431
- while (true) {
432
- var delegate = context.delegate;
433
- if (delegate) {
434
- var delegateResult = maybeInvokeDelegate(delegate, context);
435
- if (delegateResult) {
436
- if (delegateResult === ContinueSentinel) continue;
437
- return delegateResult;
438
- }
439
- }
440
-
441
- if (context.method === "next") {
442
- // Setting context._sent for legacy support of Babel's
443
- // function.sent implementation.
444
- context.sent = context._sent = context.arg;
445
-
446
- } else if (context.method === "throw") {
447
- if (state === GenStateSuspendedStart) {
448
- state = GenStateCompleted;
449
- throw context.arg;
450
- }
451
-
452
- context.dispatchException(context.arg);
453
-
454
- } else if (context.method === "return") {
455
- context.abrupt("return", context.arg);
456
- }
457
-
458
- state = GenStateExecuting;
459
-
460
- var record = tryCatch(innerFn, self, context);
461
- if (record.type === "normal") {
462
- // If an exception is thrown from innerFn, we leave state ===
463
- // GenStateExecuting and loop back for another invocation.
464
- state = context.done
465
- ? GenStateCompleted
466
- : GenStateSuspendedYield;
467
-
468
- if (record.arg === ContinueSentinel) {
469
- continue;
470
- }
471
-
472
- return {
473
- value: record.arg,
474
- done: context.done
475
- };
476
-
477
- } else if (record.type === "throw") {
478
- state = GenStateCompleted;
479
- // Dispatch the exception by looping back around to the
480
- // context.dispatchException(context.arg) call above.
481
- context.method = "throw";
482
- context.arg = record.arg;
483
- }
484
- }
485
- };
486
- }
487
-
488
- // Call delegate.iterator[context.method](context.arg) and handle the
489
- // result, either by returning a { value, done } result from the
490
- // delegate iterator, or by modifying context.method and context.arg,
491
- // setting context.delegate to null, and returning the ContinueSentinel.
492
- function maybeInvokeDelegate(delegate, context) {
493
- var method = delegate.iterator[context.method];
494
- if (method === undefined$1) {
495
- // A .throw or .return when the delegate iterator has no .throw
496
- // method always terminates the yield* loop.
497
- context.delegate = null;
498
-
499
- if (context.method === "throw") {
500
- // Note: ["return"] must be used for ES3 parsing compatibility.
501
- if (delegate.iterator["return"]) {
502
- // If the delegate iterator has a return method, give it a
503
- // chance to clean up.
504
- context.method = "return";
505
- context.arg = undefined$1;
506
- maybeInvokeDelegate(delegate, context);
507
-
508
- if (context.method === "throw") {
509
- // If maybeInvokeDelegate(context) changed context.method from
510
- // "return" to "throw", let that override the TypeError below.
511
- return ContinueSentinel;
512
- }
513
- }
514
-
515
- context.method = "throw";
516
- context.arg = new TypeError(
517
- "The iterator does not provide a 'throw' method");
518
- }
519
-
520
- return ContinueSentinel;
521
- }
522
-
523
- var record = tryCatch(method, delegate.iterator, context.arg);
524
-
525
- if (record.type === "throw") {
526
- context.method = "throw";
527
- context.arg = record.arg;
528
- context.delegate = null;
529
- return ContinueSentinel;
530
- }
531
-
532
- var info = record.arg;
533
-
534
- if (! info) {
535
- context.method = "throw";
536
- context.arg = new TypeError("iterator result is not an object");
537
- context.delegate = null;
538
- return ContinueSentinel;
539
- }
540
-
541
- if (info.done) {
542
- // Assign the result of the finished delegate to the temporary
543
- // variable specified by delegate.resultName (see delegateYield).
544
- context[delegate.resultName] = info.value;
545
-
546
- // Resume execution at the desired location (see delegateYield).
547
- context.next = delegate.nextLoc;
548
-
549
- // If context.method was "throw" but the delegate handled the
550
- // exception, let the outer generator proceed normally. If
551
- // context.method was "next", forget context.arg since it has been
552
- // "consumed" by the delegate iterator. If context.method was
553
- // "return", allow the original .return call to continue in the
554
- // outer generator.
555
- if (context.method !== "return") {
556
- context.method = "next";
557
- context.arg = undefined$1;
558
- }
559
-
560
- } else {
561
- // Re-yield the result returned by the delegate method.
562
- return info;
563
- }
564
-
565
- // The delegate iterator is finished, so forget it and continue with
566
- // the outer generator.
567
- context.delegate = null;
568
- return ContinueSentinel;
569
- }
570
-
571
- // Define Generator.prototype.{next,throw,return} in terms of the
572
- // unified ._invoke helper method.
573
- defineIteratorMethods(Gp);
574
-
575
- define(Gp, toStringTagSymbol, "Generator");
576
-
577
- // A Generator should always return itself as the iterator object when the
578
- // @@iterator function is called on it. Some browsers' implementations of the
579
- // iterator prototype chain incorrectly implement this, causing the Generator
580
- // object to not be returned from this call. This ensures that doesn't happen.
581
- // See https://github.com/facebook/regenerator/issues/274 for more details.
582
- define(Gp, iteratorSymbol, function() {
583
- return this;
584
- });
585
-
586
- define(Gp, "toString", function() {
587
- return "[object Generator]";
588
- });
589
-
590
- function pushTryEntry(locs) {
591
- var entry = { tryLoc: locs[0] };
592
-
593
- if (1 in locs) {
594
- entry.catchLoc = locs[1];
595
- }
596
-
597
- if (2 in locs) {
598
- entry.finallyLoc = locs[2];
599
- entry.afterLoc = locs[3];
600
- }
601
-
602
- this.tryEntries.push(entry);
603
- }
604
-
605
- function resetTryEntry(entry) {
606
- var record = entry.completion || {};
607
- record.type = "normal";
608
- delete record.arg;
609
- entry.completion = record;
610
- }
611
-
612
- function Context(tryLocsList) {
613
- // The root entry object (effectively a try statement without a catch
614
- // or a finally block) gives us a place to store values thrown from
615
- // locations where there is no enclosing try statement.
616
- this.tryEntries = [{ tryLoc: "root" }];
617
- tryLocsList.forEach(pushTryEntry, this);
618
- this.reset(true);
619
- }
620
-
621
- exports.keys = function(object) {
622
- var keys = [];
623
- for (var key in object) {
624
- keys.push(key);
625
- }
626
- keys.reverse();
627
-
628
- // Rather than returning an object with a next method, we keep
629
- // things simple and return the next function itself.
630
- return function next() {
631
- while (keys.length) {
632
- var key = keys.pop();
633
- if (key in object) {
634
- next.value = key;
635
- next.done = false;
636
- return next;
637
- }
638
- }
639
-
640
- // To avoid creating an additional object, we just hang the .value
641
- // and .done properties off the next function object itself. This
642
- // also ensures that the minifier will not anonymize the function.
643
- next.done = true;
644
- return next;
645
- };
646
- };
647
-
648
- function values(iterable) {
649
- if (iterable) {
650
- var iteratorMethod = iterable[iteratorSymbol];
651
- if (iteratorMethod) {
652
- return iteratorMethod.call(iterable);
653
- }
654
-
655
- if (typeof iterable.next === "function") {
656
- return iterable;
657
- }
658
-
659
- if (!isNaN(iterable.length)) {
660
- var i = -1, next = function next() {
661
- while (++i < iterable.length) {
662
- if (hasOwn.call(iterable, i)) {
663
- next.value = iterable[i];
664
- next.done = false;
665
- return next;
666
- }
667
- }
668
-
669
- next.value = undefined$1;
670
- next.done = true;
671
-
672
- return next;
673
- };
674
-
675
- return next.next = next;
676
- }
677
- }
678
-
679
- // Return an iterator with no values.
680
- return { next: doneResult };
681
- }
682
- exports.values = values;
683
-
684
- function doneResult() {
685
- return { value: undefined$1, done: true };
686
- }
687
-
688
- Context.prototype = {
689
- constructor: Context,
690
-
691
- reset: function(skipTempReset) {
692
- this.prev = 0;
693
- this.next = 0;
694
- // Resetting context._sent for legacy support of Babel's
695
- // function.sent implementation.
696
- this.sent = this._sent = undefined$1;
697
- this.done = false;
698
- this.delegate = null;
699
-
700
- this.method = "next";
701
- this.arg = undefined$1;
702
-
703
- this.tryEntries.forEach(resetTryEntry);
704
-
705
- if (!skipTempReset) {
706
- for (var name in this) {
707
- // Not sure about the optimal order of these conditions:
708
- if (name.charAt(0) === "t" &&
709
- hasOwn.call(this, name) &&
710
- !isNaN(+name.slice(1))) {
711
- this[name] = undefined$1;
712
- }
713
- }
714
- }
715
- },
716
-
717
- stop: function() {
718
- this.done = true;
719
-
720
- var rootEntry = this.tryEntries[0];
721
- var rootRecord = rootEntry.completion;
722
- if (rootRecord.type === "throw") {
723
- throw rootRecord.arg;
724
- }
725
-
726
- return this.rval;
727
- },
728
-
729
- dispatchException: function(exception) {
730
- if (this.done) {
731
- throw exception;
732
- }
733
-
734
- var context = this;
735
- function handle(loc, caught) {
736
- record.type = "throw";
737
- record.arg = exception;
738
- context.next = loc;
739
-
740
- if (caught) {
741
- // If the dispatched exception was caught by a catch block,
742
- // then let that catch block handle the exception normally.
743
- context.method = "next";
744
- context.arg = undefined$1;
745
- }
746
-
747
- return !! caught;
748
- }
749
-
750
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
751
- var entry = this.tryEntries[i];
752
- var record = entry.completion;
753
-
754
- if (entry.tryLoc === "root") {
755
- // Exception thrown outside of any try block that could handle
756
- // it, so set the completion value of the entire function to
757
- // throw the exception.
758
- return handle("end");
759
- }
760
-
761
- if (entry.tryLoc <= this.prev) {
762
- var hasCatch = hasOwn.call(entry, "catchLoc");
763
- var hasFinally = hasOwn.call(entry, "finallyLoc");
764
-
765
- if (hasCatch && hasFinally) {
766
- if (this.prev < entry.catchLoc) {
767
- return handle(entry.catchLoc, true);
768
- } else if (this.prev < entry.finallyLoc) {
769
- return handle(entry.finallyLoc);
770
- }
771
-
772
- } else if (hasCatch) {
773
- if (this.prev < entry.catchLoc) {
774
- return handle(entry.catchLoc, true);
775
- }
776
-
777
- } else if (hasFinally) {
778
- if (this.prev < entry.finallyLoc) {
779
- return handle(entry.finallyLoc);
780
- }
781
-
782
- } else {
783
- throw new Error("try statement without catch or finally");
784
- }
785
- }
786
- }
787
- },
788
-
789
- abrupt: function(type, arg) {
790
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
791
- var entry = this.tryEntries[i];
792
- if (entry.tryLoc <= this.prev &&
793
- hasOwn.call(entry, "finallyLoc") &&
794
- this.prev < entry.finallyLoc) {
795
- var finallyEntry = entry;
796
- break;
797
- }
798
- }
799
-
800
- if (finallyEntry &&
801
- (type === "break" ||
802
- type === "continue") &&
803
- finallyEntry.tryLoc <= arg &&
804
- arg <= finallyEntry.finallyLoc) {
805
- // Ignore the finally entry if control is not jumping to a
806
- // location outside the try/catch block.
807
- finallyEntry = null;
808
- }
809
-
810
- var record = finallyEntry ? finallyEntry.completion : {};
811
- record.type = type;
812
- record.arg = arg;
813
-
814
- if (finallyEntry) {
815
- this.method = "next";
816
- this.next = finallyEntry.finallyLoc;
817
- return ContinueSentinel;
818
- }
819
-
820
- return this.complete(record);
821
- },
822
-
823
- complete: function(record, afterLoc) {
824
- if (record.type === "throw") {
825
- throw record.arg;
826
- }
827
-
828
- if (record.type === "break" ||
829
- record.type === "continue") {
830
- this.next = record.arg;
831
- } else if (record.type === "return") {
832
- this.rval = this.arg = record.arg;
833
- this.method = "return";
834
- this.next = "end";
835
- } else if (record.type === "normal" && afterLoc) {
836
- this.next = afterLoc;
837
- }
838
-
839
- return ContinueSentinel;
840
- },
841
-
842
- finish: function(finallyLoc) {
843
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
844
- var entry = this.tryEntries[i];
845
- if (entry.finallyLoc === finallyLoc) {
846
- this.complete(entry.completion, entry.afterLoc);
847
- resetTryEntry(entry);
848
- return ContinueSentinel;
849
- }
850
- }
851
- },
852
-
853
- "catch": function(tryLoc) {
854
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
855
- var entry = this.tryEntries[i];
856
- if (entry.tryLoc === tryLoc) {
857
- var record = entry.completion;
858
- if (record.type === "throw") {
859
- var thrown = record.arg;
860
- resetTryEntry(entry);
861
- }
862
- return thrown;
863
- }
864
- }
865
-
866
- // The context.catch method must only be called with a location
867
- // argument that corresponds to a known catch block.
868
- throw new Error("illegal catch attempt");
869
- },
870
-
871
- delegateYield: function(iterable, resultName, nextLoc) {
872
- this.delegate = {
873
- iterator: values(iterable),
874
- resultName: resultName,
875
- nextLoc: nextLoc
876
- };
877
-
878
- if (this.method === "next") {
879
- // Deliberately forget the last sent value so that we don't
880
- // accidentally pass it on to the delegate.
881
- this.arg = undefined$1;
882
- }
883
-
884
- return ContinueSentinel;
885
- }
886
- };
887
-
888
- // Regardless of whether this script is executing as a CommonJS module
889
- // or not, return the runtime object so that we can declare the variable
890
- // regeneratorRuntime in the outer scope, which allows this module to be
891
- // injected easily by `bin/regenerator --include-runtime script.js`.
892
- return exports;
893
-
894
- }(
895
- // If this script is executing as a CommonJS module, use module.exports
896
- // as the regeneratorRuntime namespace. Otherwise create a new empty
897
- // object. Either way, the resulting object will be used to initialize
898
- // the regeneratorRuntime variable at the top of this file.
899
- module.exports
900
- ));
901
-
902
- try {
903
- regeneratorRuntime = runtime;
904
- } catch (accidentalStrictMode) {
905
- // This module should not be running in strict mode, so the above
906
- // assignment should always work unless something is misconfigured. Just
907
- // in case runtime.js accidentally runs in strict mode, in modern engines
908
- // we can explicitly access globalThis. In older engines we can escape
909
- // strict mode using a global Function call. This could conceivably fail
910
- // if a Content Security Policy forbids using Function, but in that case
911
- // the proper solution is to fix the accidental strict mode problem. If
912
- // you've misconfigured your bundler to force strict mode and applied a
913
- // CSP to forbid Function, and you're not willing to fix either of those
914
- // problems, please detail your unique predicament in a GitHub issue.
915
- if (typeof globalThis === "object") {
916
- globalThis.regeneratorRuntime = runtime;
917
- } else {
918
- Function("r", "regeneratorRuntime = r")(runtime);
919
- }
920
- }
921
- });
922
-
923
- /**
924
- * Checks if `value` is classified as an `Array` object.
925
- *
926
- * @static
927
- * @memberOf _
928
- * @since 0.1.0
929
- * @category Lang
930
- * @param {*} value The value to check.
931
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
932
- * @example
933
- *
934
- * _.isArray([1, 2, 3]);
935
- * // => true
936
- *
937
- * _.isArray(document.body.children);
938
- * // => false
939
- *
940
- * _.isArray('abc');
941
- * // => false
942
- *
943
- * _.isArray(_.noop);
944
- * // => false
945
- */
946
- var isArray = Array.isArray;
947
-
948
- var isArray_1 = isArray;
949
-
950
- /** Detect free variable `global` from Node.js. */
951
-
952
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
953
-
954
- var _freeGlobal = freeGlobal;
955
-
956
- /** Detect free variable `self`. */
957
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
958
-
959
- /** Used as a reference to the global object. */
960
- var root = _freeGlobal || freeSelf || Function('return this')();
961
-
962
- var _root = root;
963
-
964
- /** Built-in value references. */
965
- var Symbol$1 = _root.Symbol;
966
-
967
- var _Symbol = Symbol$1;
968
-
969
- /** Used for built-in method references. */
970
- var objectProto$4 = Object.prototype;
971
-
972
- /** Used to check objects for own properties. */
973
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
974
-
975
- /**
976
- * Used to resolve the
977
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
978
- * of values.
979
- */
980
- var nativeObjectToString$1 = objectProto$4.toString;
981
-
982
- /** Built-in value references. */
983
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
984
-
985
- /**
986
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
987
- *
988
- * @private
989
- * @param {*} value The value to query.
990
- * @returns {string} Returns the raw `toStringTag`.
991
- */
992
- function getRawTag(value) {
993
- var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
994
- tag = value[symToStringTag$1];
995
-
996
- try {
997
- value[symToStringTag$1] = undefined;
998
- var unmasked = true;
999
- } catch (e) {}
1000
-
1001
- var result = nativeObjectToString$1.call(value);
1002
- if (unmasked) {
1003
- if (isOwn) {
1004
- value[symToStringTag$1] = tag;
1005
- } else {
1006
- delete value[symToStringTag$1];
1007
- }
1008
- }
1009
- return result;
1010
- }
1011
-
1012
- var _getRawTag = getRawTag;
1013
-
1014
- /** Used for built-in method references. */
1015
- var objectProto$3 = Object.prototype;
1016
-
1017
- /**
1018
- * Used to resolve the
1019
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1020
- * of values.
1021
- */
1022
- var nativeObjectToString = objectProto$3.toString;
1023
-
1024
- /**
1025
- * Converts `value` to a string using `Object.prototype.toString`.
1026
- *
1027
- * @private
1028
- * @param {*} value The value to convert.
1029
- * @returns {string} Returns the converted string.
1030
- */
1031
- function objectToString(value) {
1032
- return nativeObjectToString.call(value);
1033
- }
1034
-
1035
- var _objectToString = objectToString;
1036
-
1037
- /** `Object#toString` result references. */
1038
- var nullTag = '[object Null]',
1039
- undefinedTag = '[object Undefined]';
1040
-
1041
- /** Built-in value references. */
1042
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
1043
-
1044
- /**
1045
- * The base implementation of `getTag` without fallbacks for buggy environments.
1046
- *
1047
- * @private
1048
- * @param {*} value The value to query.
1049
- * @returns {string} Returns the `toStringTag`.
1050
- */
1051
- function baseGetTag(value) {
1052
- if (value == null) {
1053
- return value === undefined ? undefinedTag : nullTag;
1054
- }
1055
- return (symToStringTag && symToStringTag in Object(value))
1056
- ? _getRawTag(value)
1057
- : _objectToString(value);
1058
- }
1059
-
1060
- var _baseGetTag = baseGetTag;
1061
-
1062
- /**
1063
- * Checks if `value` is object-like. A value is object-like if it's not `null`
1064
- * and has a `typeof` result of "object".
1065
- *
1066
- * @static
1067
- * @memberOf _
1068
- * @since 4.0.0
1069
- * @category Lang
1070
- * @param {*} value The value to check.
1071
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
1072
- * @example
1073
- *
1074
- * _.isObjectLike({});
1075
- * // => true
1076
- *
1077
- * _.isObjectLike([1, 2, 3]);
1078
- * // => true
1079
- *
1080
- * _.isObjectLike(_.noop);
1081
- * // => false
1082
- *
1083
- * _.isObjectLike(null);
1084
- * // => false
1085
- */
1086
- function isObjectLike(value) {
1087
- return value != null && typeof value == 'object';
1088
- }
1089
-
1090
- var isObjectLike_1 = isObjectLike;
1091
-
1092
- /** `Object#toString` result references. */
1093
- var symbolTag = '[object Symbol]';
1094
-
1095
- /**
1096
- * Checks if `value` is classified as a `Symbol` primitive or object.
1097
- *
1098
- * @static
1099
- * @memberOf _
1100
- * @since 4.0.0
1101
- * @category Lang
1102
- * @param {*} value The value to check.
1103
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
1104
- * @example
1105
- *
1106
- * _.isSymbol(Symbol.iterator);
1107
- * // => true
1108
- *
1109
- * _.isSymbol('abc');
1110
- * // => false
1111
- */
1112
- function isSymbol(value) {
1113
- return typeof value == 'symbol' ||
1114
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
1115
- }
1116
-
1117
- var isSymbol_1 = isSymbol;
1118
-
1119
- /** Used to match property names within property paths. */
1120
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
1121
- reIsPlainProp = /^\w*$/;
1122
-
1123
- /**
1124
- * Checks if `value` is a property name and not a property path.
1125
- *
1126
- * @private
1127
- * @param {*} value The value to check.
1128
- * @param {Object} [object] The object to query keys on.
1129
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
1130
- */
1131
- function isKey(value, object) {
1132
- if (isArray_1(value)) {
1133
- return false;
1134
- }
1135
- var type = typeof value;
1136
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
1137
- value == null || isSymbol_1(value)) {
1138
- return true;
1139
- }
1140
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
1141
- (object != null && value in Object(object));
1142
- }
1143
-
1144
- var _isKey = isKey;
1145
-
1146
- /**
1147
- * Checks if `value` is the
1148
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1149
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1150
- *
1151
- * @static
1152
- * @memberOf _
1153
- * @since 0.1.0
1154
- * @category Lang
1155
- * @param {*} value The value to check.
1156
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1157
- * @example
1158
- *
1159
- * _.isObject({});
1160
- * // => true
1161
- *
1162
- * _.isObject([1, 2, 3]);
1163
- * // => true
1164
- *
1165
- * _.isObject(_.noop);
1166
- * // => true
1167
- *
1168
- * _.isObject(null);
1169
- * // => false
1170
- */
1171
- function isObject(value) {
1172
- var type = typeof value;
1173
- return value != null && (type == 'object' || type == 'function');
1174
- }
1175
-
1176
- var isObject_1 = isObject;
1177
-
1178
- /** `Object#toString` result references. */
1179
- var asyncTag = '[object AsyncFunction]',
1180
- funcTag = '[object Function]',
1181
- genTag = '[object GeneratorFunction]',
1182
- proxyTag = '[object Proxy]';
1183
-
1184
- /**
1185
- * Checks if `value` is classified as a `Function` object.
1186
- *
1187
- * @static
1188
- * @memberOf _
1189
- * @since 0.1.0
1190
- * @category Lang
1191
- * @param {*} value The value to check.
1192
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
1193
- * @example
1194
- *
1195
- * _.isFunction(_);
1196
- * // => true
1197
- *
1198
- * _.isFunction(/abc/);
1199
- * // => false
1200
- */
1201
- function isFunction(value) {
1202
- if (!isObject_1(value)) {
1203
- return false;
1204
- }
1205
- // The use of `Object#toString` avoids issues with the `typeof` operator
1206
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
1207
- var tag = _baseGetTag(value);
1208
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
1209
- }
1210
-
1211
- var isFunction_1 = isFunction;
1212
-
1213
- /** Used to detect overreaching core-js shims. */
1214
- var coreJsData = _root['__core-js_shared__'];
1215
-
1216
- var _coreJsData = coreJsData;
1217
-
1218
- /** Used to detect methods masquerading as native. */
1219
- var maskSrcKey = (function() {
1220
- var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
1221
- return uid ? ('Symbol(src)_1.' + uid) : '';
1222
- }());
1223
-
1224
- /**
1225
- * Checks if `func` has its source masked.
1226
- *
1227
- * @private
1228
- * @param {Function} func The function to check.
1229
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
1230
- */
1231
- function isMasked(func) {
1232
- return !!maskSrcKey && (maskSrcKey in func);
1233
- }
1234
-
1235
- var _isMasked = isMasked;
1236
-
1237
- /** Used for built-in method references. */
1238
- var funcProto$1 = Function.prototype;
1239
-
1240
- /** Used to resolve the decompiled source of functions. */
1241
- var funcToString$1 = funcProto$1.toString;
1242
-
1243
- /**
1244
- * Converts `func` to its source code.
1245
- *
1246
- * @private
1247
- * @param {Function} func The function to convert.
1248
- * @returns {string} Returns the source code.
1249
- */
1250
- function toSource(func) {
1251
- if (func != null) {
1252
- try {
1253
- return funcToString$1.call(func);
1254
- } catch (e) {}
1255
- try {
1256
- return (func + '');
1257
- } catch (e) {}
1258
- }
1259
- return '';
1260
- }
1261
-
1262
- var _toSource = toSource;
1263
-
1264
- /**
1265
- * Used to match `RegExp`
1266
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
1267
- */
1268
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
1269
-
1270
- /** Used to detect host constructors (Safari). */
1271
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
1272
-
1273
- /** Used for built-in method references. */
1274
- var funcProto = Function.prototype,
1275
- objectProto$2 = Object.prototype;
1276
-
1277
- /** Used to resolve the decompiled source of functions. */
1278
- var funcToString = funcProto.toString;
1279
-
1280
- /** Used to check objects for own properties. */
1281
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
1282
-
1283
- /** Used to detect if a method is native. */
1284
- var reIsNative = RegExp('^' +
1285
- funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
1286
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
1287
- );
1288
-
1289
- /**
1290
- * The base implementation of `_.isNative` without bad shim checks.
1291
- *
1292
- * @private
1293
- * @param {*} value The value to check.
1294
- * @returns {boolean} Returns `true` if `value` is a native function,
1295
- * else `false`.
1296
- */
1297
- function baseIsNative(value) {
1298
- if (!isObject_1(value) || _isMasked(value)) {
1299
- return false;
1300
- }
1301
- var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
1302
- return pattern.test(_toSource(value));
1303
- }
1304
-
1305
- var _baseIsNative = baseIsNative;
1306
-
1307
- /**
1308
- * Gets the value at `key` of `object`.
1309
- *
1310
- * @private
1311
- * @param {Object} [object] The object to query.
1312
- * @param {string} key The key of the property to get.
1313
- * @returns {*} Returns the property value.
1314
- */
1315
- function getValue(object, key) {
1316
- return object == null ? undefined : object[key];
1317
- }
1318
-
1319
- var _getValue = getValue;
1320
-
1321
- /**
1322
- * Gets the native function at `key` of `object`.
1323
- *
1324
- * @private
1325
- * @param {Object} object The object to query.
1326
- * @param {string} key The key of the method to get.
1327
- * @returns {*} Returns the function if it's native, else `undefined`.
1328
- */
1329
- function getNative(object, key) {
1330
- var value = _getValue(object, key);
1331
- return _baseIsNative(value) ? value : undefined;
1332
- }
1333
-
1334
- var _getNative = getNative;
1335
-
1336
- /* Built-in method references that are verified to be native. */
1337
- var nativeCreate = _getNative(Object, 'create');
1338
-
1339
- var _nativeCreate = nativeCreate;
1340
-
1341
- /**
1342
- * Removes all key-value entries from the hash.
1343
- *
1344
- * @private
1345
- * @name clear
1346
- * @memberOf Hash
1347
- */
1348
- function hashClear() {
1349
- this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
1350
- this.size = 0;
1351
- }
1352
-
1353
- var _hashClear = hashClear;
1354
-
1355
- /**
1356
- * Removes `key` and its value from the hash.
1357
- *
1358
- * @private
1359
- * @name delete
1360
- * @memberOf Hash
1361
- * @param {Object} hash The hash to modify.
1362
- * @param {string} key The key of the value to remove.
1363
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1364
- */
1365
- function hashDelete(key) {
1366
- var result = this.has(key) && delete this.__data__[key];
1367
- this.size -= result ? 1 : 0;
1368
- return result;
1369
- }
1370
-
1371
- var _hashDelete = hashDelete;
1372
-
1373
- /** Used to stand-in for `undefined` hash values. */
1374
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
1375
-
1376
- /** Used for built-in method references. */
1377
- var objectProto$1 = Object.prototype;
1378
-
1379
- /** Used to check objects for own properties. */
1380
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
1381
-
1382
- /**
1383
- * Gets the hash value for `key`.
1384
- *
1385
- * @private
1386
- * @name get
1387
- * @memberOf Hash
1388
- * @param {string} key The key of the value to get.
1389
- * @returns {*} Returns the entry value.
1390
- */
1391
- function hashGet(key) {
1392
- var data = this.__data__;
1393
- if (_nativeCreate) {
1394
- var result = data[key];
1395
- return result === HASH_UNDEFINED$1 ? undefined : result;
1396
- }
1397
- return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
1398
- }
1399
-
1400
- var _hashGet = hashGet;
1401
-
1402
- /** Used for built-in method references. */
1403
- var objectProto = Object.prototype;
1404
-
1405
- /** Used to check objects for own properties. */
1406
- var hasOwnProperty = objectProto.hasOwnProperty;
1407
-
1408
- /**
1409
- * Checks if a hash value for `key` exists.
1410
- *
1411
- * @private
1412
- * @name has
1413
- * @memberOf Hash
1414
- * @param {string} key The key of the entry to check.
1415
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1416
- */
1417
- function hashHas(key) {
1418
- var data = this.__data__;
1419
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
1420
- }
1421
-
1422
- var _hashHas = hashHas;
1423
-
1424
- /** Used to stand-in for `undefined` hash values. */
1425
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
1426
-
1427
- /**
1428
- * Sets the hash `key` to `value`.
1429
- *
1430
- * @private
1431
- * @name set
1432
- * @memberOf Hash
1433
- * @param {string} key The key of the value to set.
1434
- * @param {*} value The value to set.
1435
- * @returns {Object} Returns the hash instance.
1436
- */
1437
- function hashSet(key, value) {
1438
- var data = this.__data__;
1439
- this.size += this.has(key) ? 0 : 1;
1440
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
1441
- return this;
1442
- }
1443
-
1444
- var _hashSet = hashSet;
1445
-
1446
- /**
1447
- * Creates a hash object.
1448
- *
1449
- * @private
1450
- * @constructor
1451
- * @param {Array} [entries] The key-value pairs to cache.
1452
- */
1453
- function Hash(entries) {
1454
- var index = -1,
1455
- length = entries == null ? 0 : entries.length;
1456
-
1457
- this.clear();
1458
- while (++index < length) {
1459
- var entry = entries[index];
1460
- this.set(entry[0], entry[1]);
1461
- }
1462
- }
1463
-
1464
- // Add methods to `Hash`.
1465
- Hash.prototype.clear = _hashClear;
1466
- Hash.prototype['delete'] = _hashDelete;
1467
- Hash.prototype.get = _hashGet;
1468
- Hash.prototype.has = _hashHas;
1469
- Hash.prototype.set = _hashSet;
1470
-
1471
- var _Hash = Hash;
1472
-
1473
- /**
1474
- * Removes all key-value entries from the list cache.
1475
- *
1476
- * @private
1477
- * @name clear
1478
- * @memberOf ListCache
1479
- */
1480
- function listCacheClear() {
1481
- this.__data__ = [];
1482
- this.size = 0;
1483
- }
1484
-
1485
- var _listCacheClear = listCacheClear;
1486
-
1487
- /**
1488
- * Performs a
1489
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1490
- * comparison between two values to determine if they are equivalent.
1491
- *
1492
- * @static
1493
- * @memberOf _
1494
- * @since 4.0.0
1495
- * @category Lang
1496
- * @param {*} value The value to compare.
1497
- * @param {*} other The other value to compare.
1498
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1499
- * @example
1500
- *
1501
- * var object = { 'a': 1 };
1502
- * var other = { 'a': 1 };
1503
- *
1504
- * _.eq(object, object);
1505
- * // => true
1506
- *
1507
- * _.eq(object, other);
1508
- * // => false
1509
- *
1510
- * _.eq('a', 'a');
1511
- * // => true
1512
- *
1513
- * _.eq('a', Object('a'));
1514
- * // => false
1515
- *
1516
- * _.eq(NaN, NaN);
1517
- * // => true
1518
- */
1519
- function eq(value, other) {
1520
- return value === other || (value !== value && other !== other);
1521
- }
1522
-
1523
- var eq_1 = eq;
1524
-
1525
- /**
1526
- * Gets the index at which the `key` is found in `array` of key-value pairs.
1527
- *
1528
- * @private
1529
- * @param {Array} array The array to inspect.
1530
- * @param {*} key The key to search for.
1531
- * @returns {number} Returns the index of the matched value, else `-1`.
1532
- */
1533
- function assocIndexOf(array, key) {
1534
- var length = array.length;
1535
- while (length--) {
1536
- if (eq_1(array[length][0], key)) {
1537
- return length;
1538
- }
1539
- }
1540
- return -1;
1541
- }
1542
-
1543
- var _assocIndexOf = assocIndexOf;
1544
-
1545
- /** Used for built-in method references. */
1546
- var arrayProto = Array.prototype;
1547
-
1548
- /** Built-in value references. */
1549
- var splice = arrayProto.splice;
1550
-
1551
- /**
1552
- * Removes `key` and its value from the list cache.
1553
- *
1554
- * @private
1555
- * @name delete
1556
- * @memberOf ListCache
1557
- * @param {string} key The key of the value to remove.
1558
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1559
- */
1560
- function listCacheDelete(key) {
1561
- var data = this.__data__,
1562
- index = _assocIndexOf(data, key);
1563
-
1564
- if (index < 0) {
1565
- return false;
1566
- }
1567
- var lastIndex = data.length - 1;
1568
- if (index == lastIndex) {
1569
- data.pop();
1570
- } else {
1571
- splice.call(data, index, 1);
1572
- }
1573
- --this.size;
1574
- return true;
1575
- }
1576
-
1577
- var _listCacheDelete = listCacheDelete;
1578
-
1579
- /**
1580
- * Gets the list cache value for `key`.
1581
- *
1582
- * @private
1583
- * @name get
1584
- * @memberOf ListCache
1585
- * @param {string} key The key of the value to get.
1586
- * @returns {*} Returns the entry value.
1587
- */
1588
- function listCacheGet(key) {
1589
- var data = this.__data__,
1590
- index = _assocIndexOf(data, key);
1591
-
1592
- return index < 0 ? undefined : data[index][1];
1593
- }
1594
-
1595
- var _listCacheGet = listCacheGet;
1596
-
1597
- /**
1598
- * Checks if a list cache value for `key` exists.
1599
- *
1600
- * @private
1601
- * @name has
1602
- * @memberOf ListCache
1603
- * @param {string} key The key of the entry to check.
1604
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1605
- */
1606
- function listCacheHas(key) {
1607
- return _assocIndexOf(this.__data__, key) > -1;
1608
- }
1609
-
1610
- var _listCacheHas = listCacheHas;
1611
-
1612
- /**
1613
- * Sets the list cache `key` to `value`.
1614
- *
1615
- * @private
1616
- * @name set
1617
- * @memberOf ListCache
1618
- * @param {string} key The key of the value to set.
1619
- * @param {*} value The value to set.
1620
- * @returns {Object} Returns the list cache instance.
1621
- */
1622
- function listCacheSet(key, value) {
1623
- var data = this.__data__,
1624
- index = _assocIndexOf(data, key);
1625
-
1626
- if (index < 0) {
1627
- ++this.size;
1628
- data.push([key, value]);
1629
- } else {
1630
- data[index][1] = value;
1631
- }
1632
- return this;
1633
- }
1634
-
1635
- var _listCacheSet = listCacheSet;
1636
-
1637
- /**
1638
- * Creates an list cache object.
1639
- *
1640
- * @private
1641
- * @constructor
1642
- * @param {Array} [entries] The key-value pairs to cache.
1643
- */
1644
- function ListCache(entries) {
1645
- var index = -1,
1646
- length = entries == null ? 0 : entries.length;
1647
-
1648
- this.clear();
1649
- while (++index < length) {
1650
- var entry = entries[index];
1651
- this.set(entry[0], entry[1]);
1652
- }
1653
- }
1654
-
1655
- // Add methods to `ListCache`.
1656
- ListCache.prototype.clear = _listCacheClear;
1657
- ListCache.prototype['delete'] = _listCacheDelete;
1658
- ListCache.prototype.get = _listCacheGet;
1659
- ListCache.prototype.has = _listCacheHas;
1660
- ListCache.prototype.set = _listCacheSet;
1661
-
1662
- var _ListCache = ListCache;
1663
-
1664
- /* Built-in method references that are verified to be native. */
1665
- var Map = _getNative(_root, 'Map');
1666
-
1667
- var _Map = Map;
1668
-
1669
- /**
1670
- * Removes all key-value entries from the map.
1671
- *
1672
- * @private
1673
- * @name clear
1674
- * @memberOf MapCache
1675
- */
1676
- function mapCacheClear() {
1677
- this.size = 0;
1678
- this.__data__ = {
1679
- 'hash': new _Hash,
1680
- 'map': new (_Map || _ListCache),
1681
- 'string': new _Hash
1682
- };
1683
- }
1684
-
1685
- var _mapCacheClear = mapCacheClear;
1686
-
1687
- /**
1688
- * Checks if `value` is suitable for use as unique object key.
1689
- *
1690
- * @private
1691
- * @param {*} value The value to check.
1692
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1693
- */
1694
- function isKeyable(value) {
1695
- var type = typeof value;
1696
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1697
- ? (value !== '__proto__')
1698
- : (value === null);
1699
- }
1700
-
1701
- var _isKeyable = isKeyable;
1702
-
1703
- /**
1704
- * Gets the data for `map`.
1705
- *
1706
- * @private
1707
- * @param {Object} map The map to query.
1708
- * @param {string} key The reference key.
1709
- * @returns {*} Returns the map data.
1710
- */
1711
- function getMapData(map, key) {
1712
- var data = map.__data__;
1713
- return _isKeyable(key)
1714
- ? data[typeof key == 'string' ? 'string' : 'hash']
1715
- : data.map;
1716
- }
1717
-
1718
- var _getMapData = getMapData;
1719
-
1720
- /**
1721
- * Removes `key` and its value from the map.
1722
- *
1723
- * @private
1724
- * @name delete
1725
- * @memberOf MapCache
1726
- * @param {string} key The key of the value to remove.
1727
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1728
- */
1729
- function mapCacheDelete(key) {
1730
- var result = _getMapData(this, key)['delete'](key);
1731
- this.size -= result ? 1 : 0;
1732
- return result;
1733
- }
1734
-
1735
- var _mapCacheDelete = mapCacheDelete;
1736
-
1737
- /**
1738
- * Gets the map value for `key`.
1739
- *
1740
- * @private
1741
- * @name get
1742
- * @memberOf MapCache
1743
- * @param {string} key The key of the value to get.
1744
- * @returns {*} Returns the entry value.
1745
- */
1746
- function mapCacheGet(key) {
1747
- return _getMapData(this, key).get(key);
1748
- }
1749
-
1750
- var _mapCacheGet = mapCacheGet;
1751
-
1752
- /**
1753
- * Checks if a map value for `key` exists.
1754
- *
1755
- * @private
1756
- * @name has
1757
- * @memberOf MapCache
1758
- * @param {string} key The key of the entry to check.
1759
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1760
- */
1761
- function mapCacheHas(key) {
1762
- return _getMapData(this, key).has(key);
1763
- }
1764
-
1765
- var _mapCacheHas = mapCacheHas;
1766
-
1767
- /**
1768
- * Sets the map `key` to `value`.
1769
- *
1770
- * @private
1771
- * @name set
1772
- * @memberOf MapCache
1773
- * @param {string} key The key of the value to set.
1774
- * @param {*} value The value to set.
1775
- * @returns {Object} Returns the map cache instance.
1776
- */
1777
- function mapCacheSet(key, value) {
1778
- var data = _getMapData(this, key),
1779
- size = data.size;
1780
-
1781
- data.set(key, value);
1782
- this.size += data.size == size ? 0 : 1;
1783
- return this;
1784
- }
1785
-
1786
- var _mapCacheSet = mapCacheSet;
1787
-
1788
- /**
1789
- * Creates a map cache object to store key-value pairs.
1790
- *
1791
- * @private
1792
- * @constructor
1793
- * @param {Array} [entries] The key-value pairs to cache.
1794
- */
1795
- function MapCache(entries) {
1796
- var index = -1,
1797
- length = entries == null ? 0 : entries.length;
1798
-
1799
- this.clear();
1800
- while (++index < length) {
1801
- var entry = entries[index];
1802
- this.set(entry[0], entry[1]);
1803
- }
1804
- }
1805
-
1806
- // Add methods to `MapCache`.
1807
- MapCache.prototype.clear = _mapCacheClear;
1808
- MapCache.prototype['delete'] = _mapCacheDelete;
1809
- MapCache.prototype.get = _mapCacheGet;
1810
- MapCache.prototype.has = _mapCacheHas;
1811
- MapCache.prototype.set = _mapCacheSet;
1812
-
1813
- var _MapCache = MapCache;
1814
-
1815
- /** Error message constants. */
1816
- var FUNC_ERROR_TEXT = 'Expected a function';
1817
-
1818
- /**
1819
- * Creates a function that memoizes the result of `func`. If `resolver` is
1820
- * provided, it determines the cache key for storing the result based on the
1821
- * arguments provided to the memoized function. By default, the first argument
1822
- * provided to the memoized function is used as the map cache key. The `func`
1823
- * is invoked with the `this` binding of the memoized function.
1824
- *
1825
- * **Note:** The cache is exposed as the `cache` property on the memoized
1826
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
1827
- * constructor with one whose instances implement the
1828
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
1829
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
1830
- *
1831
- * @static
1832
- * @memberOf _
1833
- * @since 0.1.0
1834
- * @category Function
1835
- * @param {Function} func The function to have its output memoized.
1836
- * @param {Function} [resolver] The function to resolve the cache key.
1837
- * @returns {Function} Returns the new memoized function.
1838
- * @example
1839
- *
1840
- * var object = { 'a': 1, 'b': 2 };
1841
- * var other = { 'c': 3, 'd': 4 };
1842
- *
1843
- * var values = _.memoize(_.values);
1844
- * values(object);
1845
- * // => [1, 2]
1846
- *
1847
- * values(other);
1848
- * // => [3, 4]
1849
- *
1850
- * object.a = 2;
1851
- * values(object);
1852
- * // => [1, 2]
1853
- *
1854
- * // Modify the result cache.
1855
- * values.cache.set(object, ['a', 'b']);
1856
- * values(object);
1857
- * // => ['a', 'b']
1858
- *
1859
- * // Replace `_.memoize.Cache`.
1860
- * _.memoize.Cache = WeakMap;
1861
- */
1862
- function memoize(func, resolver) {
1863
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
1864
- throw new TypeError(FUNC_ERROR_TEXT);
1865
- }
1866
- var memoized = function() {
1867
- var args = arguments,
1868
- key = resolver ? resolver.apply(this, args) : args[0],
1869
- cache = memoized.cache;
1870
-
1871
- if (cache.has(key)) {
1872
- return cache.get(key);
1873
- }
1874
- var result = func.apply(this, args);
1875
- memoized.cache = cache.set(key, result) || cache;
1876
- return result;
1877
- };
1878
- memoized.cache = new (memoize.Cache || _MapCache);
1879
- return memoized;
1880
- }
1881
-
1882
- // Expose `MapCache`.
1883
- memoize.Cache = _MapCache;
1884
-
1885
- var memoize_1 = memoize;
1886
-
1887
- /** Used as the maximum memoize cache size. */
1888
- var MAX_MEMOIZE_SIZE = 500;
1889
-
1890
- /**
1891
- * A specialized version of `_.memoize` which clears the memoized function's
1892
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1893
- *
1894
- * @private
1895
- * @param {Function} func The function to have its output memoized.
1896
- * @returns {Function} Returns the new memoized function.
1897
- */
1898
- function memoizeCapped(func) {
1899
- var result = memoize_1(func, function(key) {
1900
- if (cache.size === MAX_MEMOIZE_SIZE) {
1901
- cache.clear();
1902
- }
1903
- return key;
1904
- });
1905
-
1906
- var cache = result.cache;
1907
- return result;
1908
- }
1909
-
1910
- var _memoizeCapped = memoizeCapped;
1911
-
1912
- /** Used to match property names within property paths. */
1913
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1914
-
1915
- /** Used to match backslashes in property paths. */
1916
- var reEscapeChar = /\\(\\)?/g;
1917
-
1918
- /**
1919
- * Converts `string` to a property path array.
1920
- *
1921
- * @private
1922
- * @param {string} string The string to convert.
1923
- * @returns {Array} Returns the property path array.
1924
- */
1925
- var stringToPath = _memoizeCapped(function(string) {
1926
- var result = [];
1927
- if (string.charCodeAt(0) === 46 /* . */) {
1928
- result.push('');
1929
- }
1930
- string.replace(rePropName, function(match, number, quote, subString) {
1931
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1932
- });
1933
- return result;
1934
- });
1935
-
1936
- var _stringToPath = stringToPath;
1937
-
1938
- /**
1939
- * A specialized version of `_.map` for arrays without support for iteratee
1940
- * shorthands.
1941
- *
1942
- * @private
1943
- * @param {Array} [array] The array to iterate over.
1944
- * @param {Function} iteratee The function invoked per iteration.
1945
- * @returns {Array} Returns the new mapped array.
1946
- */
1947
- function arrayMap(array, iteratee) {
1948
- var index = -1,
1949
- length = array == null ? 0 : array.length,
1950
- result = Array(length);
1951
-
1952
- while (++index < length) {
1953
- result[index] = iteratee(array[index], index, array);
1954
- }
1955
- return result;
1956
- }
1957
-
1958
- var _arrayMap = arrayMap;
1959
-
1960
- /** Used as references for various `Number` constants. */
1961
- var INFINITY$1 = 1 / 0;
1962
-
1963
- /** Used to convert symbols to primitives and strings. */
1964
- var symbolProto = _Symbol ? _Symbol.prototype : undefined,
1965
- symbolToString = symbolProto ? symbolProto.toString : undefined;
1966
-
1967
- /**
1968
- * The base implementation of `_.toString` which doesn't convert nullish
1969
- * values to empty strings.
1970
- *
1971
- * @private
1972
- * @param {*} value The value to process.
1973
- * @returns {string} Returns the string.
1974
- */
1975
- function baseToString(value) {
1976
- // Exit early for strings to avoid a performance hit in some environments.
1977
- if (typeof value == 'string') {
1978
- return value;
1979
- }
1980
- if (isArray_1(value)) {
1981
- // Recursively convert values (susceptible to call stack limits).
1982
- return _arrayMap(value, baseToString) + '';
1983
- }
1984
- if (isSymbol_1(value)) {
1985
- return symbolToString ? symbolToString.call(value) : '';
1986
- }
1987
- var result = (value + '');
1988
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
1989
- }
1990
-
1991
- var _baseToString = baseToString;
1992
-
1993
- /**
1994
- * Converts `value` to a string. An empty string is returned for `null`
1995
- * and `undefined` values. The sign of `-0` is preserved.
1996
- *
1997
- * @static
1998
- * @memberOf _
1999
- * @since 4.0.0
2000
- * @category Lang
2001
- * @param {*} value The value to convert.
2002
- * @returns {string} Returns the converted string.
2003
- * @example
2004
- *
2005
- * _.toString(null);
2006
- * // => ''
2007
- *
2008
- * _.toString(-0);
2009
- * // => '-0'
2010
- *
2011
- * _.toString([1, 2, 3]);
2012
- * // => '1,2,3'
2013
- */
2014
- function toString(value) {
2015
- return value == null ? '' : _baseToString(value);
2016
- }
2017
-
2018
- var toString_1 = toString;
2019
-
2020
- /**
2021
- * Casts `value` to a path array if it's not one.
2022
- *
2023
- * @private
2024
- * @param {*} value The value to inspect.
2025
- * @param {Object} [object] The object to query keys on.
2026
- * @returns {Array} Returns the cast property path array.
2027
- */
2028
- function castPath(value, object) {
2029
- if (isArray_1(value)) {
2030
- return value;
2031
- }
2032
- return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
2033
- }
2034
-
2035
- var _castPath = castPath;
2036
-
2037
- /** Used as references for various `Number` constants. */
2038
- var INFINITY = 1 / 0;
2039
-
2040
- /**
2041
- * Converts `value` to a string key if it's not a string or symbol.
2042
- *
2043
- * @private
2044
- * @param {*} value The value to inspect.
2045
- * @returns {string|symbol} Returns the key.
2046
- */
2047
- function toKey(value) {
2048
- if (typeof value == 'string' || isSymbol_1(value)) {
2049
- return value;
2050
- }
2051
- var result = (value + '');
2052
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
2053
- }
2054
-
2055
- var _toKey = toKey;
2056
-
2057
- /**
2058
- * The base implementation of `_.get` without support for default values.
2059
- *
2060
- * @private
2061
- * @param {Object} object The object to query.
2062
- * @param {Array|string} path The path of the property to get.
2063
- * @returns {*} Returns the resolved value.
2064
- */
2065
- function baseGet(object, path) {
2066
- path = _castPath(path, object);
2067
-
2068
- var index = 0,
2069
- length = path.length;
2070
-
2071
- while (object != null && index < length) {
2072
- object = object[_toKey(path[index++])];
2073
- }
2074
- return (index && index == length) ? object : undefined;
2075
- }
2076
-
2077
- var _baseGet = baseGet;
2078
-
2079
- /**
2080
- * Gets the value at `path` of `object`. If the resolved value is
2081
- * `undefined`, the `defaultValue` is returned in its place.
2082
- *
2083
- * @static
2084
- * @memberOf _
2085
- * @since 3.7.0
2086
- * @category Object
2087
- * @param {Object} object The object to query.
2088
- * @param {Array|string} path The path of the property to get.
2089
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
2090
- * @returns {*} Returns the resolved value.
2091
- * @example
2092
- *
2093
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
2094
- *
2095
- * _.get(object, 'a[0].b.c');
2096
- * // => 3
2097
- *
2098
- * _.get(object, ['a', '0', 'b', 'c']);
2099
- * // => 3
2100
- *
2101
- * _.get(object, 'a.b.c', 'default');
2102
- * // => 'default'
2103
- */
2104
- function get(object, path, defaultValue) {
2105
- var result = object == null ? undefined : _baseGet(object, path);
2106
- return result === undefined ? defaultValue : result;
2107
- }
2108
-
2109
- var get_1 = get;
2110
-
2111
- /**
2112
- * A specialized version of `_.reduce` for arrays without support for
2113
- * iteratee shorthands.
2114
- *
2115
- * @private
2116
- * @param {Array} [array] The array to iterate over.
2117
- * @param {Function} iteratee The function invoked per iteration.
2118
- * @param {*} [accumulator] The initial value.
2119
- * @param {boolean} [initAccum] Specify using the first element of `array` as
2120
- * the initial value.
2121
- * @returns {*} Returns the accumulated value.
2122
- */
2123
- function arrayReduce(array, iteratee, accumulator, initAccum) {
2124
- var index = -1,
2125
- length = array == null ? 0 : array.length;
2126
-
2127
- if (initAccum && length) {
2128
- accumulator = array[++index];
2129
- }
2130
- while (++index < length) {
2131
- accumulator = iteratee(accumulator, array[index], index, array);
2132
- }
2133
- return accumulator;
2134
- }
2135
-
2136
- var _arrayReduce = arrayReduce;
2137
-
2138
- /**
2139
- * The base implementation of `_.propertyOf` without support for deep paths.
2140
- *
2141
- * @private
2142
- * @param {Object} object The object to query.
2143
- * @returns {Function} Returns the new accessor function.
2144
- */
2145
- function basePropertyOf(object) {
2146
- return function(key) {
2147
- return object == null ? undefined : object[key];
2148
- };
2149
- }
2150
-
2151
- var _basePropertyOf = basePropertyOf;
2152
-
2153
- /** Used to map Latin Unicode letters to basic Latin letters. */
2154
- var deburredLetters = {
2155
- // Latin-1 Supplement block.
2156
- '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
2157
- '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
2158
- '\xc7': 'C', '\xe7': 'c',
2159
- '\xd0': 'D', '\xf0': 'd',
2160
- '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
2161
- '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
2162
- '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
2163
- '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
2164
- '\xd1': 'N', '\xf1': 'n',
2165
- '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
2166
- '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
2167
- '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
2168
- '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
2169
- '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
2170
- '\xc6': 'Ae', '\xe6': 'ae',
2171
- '\xde': 'Th', '\xfe': 'th',
2172
- '\xdf': 'ss',
2173
- // Latin Extended-A block.
2174
- '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
2175
- '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
2176
- '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
2177
- '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
2178
- '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
2179
- '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
2180
- '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
2181
- '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
2182
- '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
2183
- '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
2184
- '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
2185
- '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
2186
- '\u0134': 'J', '\u0135': 'j',
2187
- '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
2188
- '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
2189
- '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
2190
- '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
2191
- '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
2192
- '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
2193
- '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
2194
- '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
2195
- '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
2196
- '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
2197
- '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
2198
- '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
2199
- '\u0163': 't', '\u0165': 't', '\u0167': 't',
2200
- '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
2201
- '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
2202
- '\u0174': 'W', '\u0175': 'w',
2203
- '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
2204
- '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
2205
- '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
2206
- '\u0132': 'IJ', '\u0133': 'ij',
2207
- '\u0152': 'Oe', '\u0153': 'oe',
2208
- '\u0149': "'n", '\u017f': 's'
2209
- };
2210
-
2211
- /**
2212
- * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
2213
- * letters to basic Latin letters.
2214
- *
2215
- * @private
2216
- * @param {string} letter The matched letter to deburr.
2217
- * @returns {string} Returns the deburred letter.
2218
- */
2219
- var deburrLetter = _basePropertyOf(deburredLetters);
2220
-
2221
- var _deburrLetter = deburrLetter;
2222
-
2223
- /** Used to match Latin Unicode letters (excluding mathematical operators). */
2224
- var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
2225
-
2226
- /** Used to compose unicode character classes. */
2227
- var rsComboMarksRange$3 = '\\u0300-\\u036f',
2228
- reComboHalfMarksRange$3 = '\\ufe20-\\ufe2f',
2229
- rsComboSymbolsRange$3 = '\\u20d0-\\u20ff',
2230
- rsComboRange$3 = rsComboMarksRange$3 + reComboHalfMarksRange$3 + rsComboSymbolsRange$3;
2231
-
2232
- /** Used to compose unicode capture groups. */
2233
- var rsCombo$2 = '[' + rsComboRange$3 + ']';
2234
-
2235
- /**
2236
- * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
2237
- * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
2238
- */
2239
- var reComboMark = RegExp(rsCombo$2, 'g');
2240
-
2241
- /**
2242
- * Deburrs `string` by converting
2243
- * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
2244
- * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
2245
- * letters to basic Latin letters and removing
2246
- * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
2247
- *
2248
- * @static
2249
- * @memberOf _
2250
- * @since 3.0.0
2251
- * @category String
2252
- * @param {string} [string=''] The string to deburr.
2253
- * @returns {string} Returns the deburred string.
2254
- * @example
2255
- *
2256
- * _.deburr('déjà vu');
2257
- * // => 'deja vu'
2258
- */
2259
- function deburr(string) {
2260
- string = toString_1(string);
2261
- return string && string.replace(reLatin, _deburrLetter).replace(reComboMark, '');
2262
- }
2263
-
2264
- var deburr_1 = deburr;
2265
-
2266
- /** Used to match words composed of alphanumeric characters. */
2267
- var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
2268
-
2269
- /**
2270
- * Splits an ASCII `string` into an array of its words.
2271
- *
2272
- * @private
2273
- * @param {string} The string to inspect.
2274
- * @returns {Array} Returns the words of `string`.
2275
- */
2276
- function asciiWords(string) {
2277
- return string.match(reAsciiWord) || [];
2278
- }
2279
-
2280
- var _asciiWords = asciiWords;
2281
-
2282
- /** Used to detect strings that need a more robust regexp to match words. */
2283
- 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 ]/;
2284
-
2285
- /**
2286
- * Checks if `string` contains a word composed of Unicode symbols.
2287
- *
2288
- * @private
2289
- * @param {string} string The string to inspect.
2290
- * @returns {boolean} Returns `true` if a word is found, else `false`.
2291
- */
2292
- function hasUnicodeWord(string) {
2293
- return reHasUnicodeWord.test(string);
2294
- }
2295
-
2296
- var _hasUnicodeWord = hasUnicodeWord;
2297
-
2298
- /** Used to compose unicode character classes. */
2299
- var rsAstralRange$2 = '\\ud800-\\udfff',
2300
- rsComboMarksRange$2 = '\\u0300-\\u036f',
2301
- reComboHalfMarksRange$2 = '\\ufe20-\\ufe2f',
2302
- rsComboSymbolsRange$2 = '\\u20d0-\\u20ff',
2303
- rsComboRange$2 = rsComboMarksRange$2 + reComboHalfMarksRange$2 + rsComboSymbolsRange$2,
2304
- rsDingbatRange = '\\u2700-\\u27bf',
2305
- rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
2306
- rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
2307
- rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
2308
- rsPunctuationRange = '\\u2000-\\u206f',
2309
- 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',
2310
- rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
2311
- rsVarRange$2 = '\\ufe0e\\ufe0f',
2312
- rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
2313
-
2314
- /** Used to compose unicode capture groups. */
2315
- var rsApos$1 = "['\u2019]",
2316
- rsBreak = '[' + rsBreakRange + ']',
2317
- rsCombo$1 = '[' + rsComboRange$2 + ']',
2318
- rsDigits = '\\d+',
2319
- rsDingbat = '[' + rsDingbatRange + ']',
2320
- rsLower = '[' + rsLowerRange + ']',
2321
- rsMisc = '[^' + rsAstralRange$2 + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
2322
- rsFitz$1 = '\\ud83c[\\udffb-\\udfff]',
2323
- rsModifier$1 = '(?:' + rsCombo$1 + '|' + rsFitz$1 + ')',
2324
- rsNonAstral$1 = '[^' + rsAstralRange$2 + ']',
2325
- rsRegional$1 = '(?:\\ud83c[\\udde6-\\uddff]){2}',
2326
- rsSurrPair$1 = '[\\ud800-\\udbff][\\udc00-\\udfff]',
2327
- rsUpper = '[' + rsUpperRange + ']',
2328
- rsZWJ$2 = '\\u200d';
2329
-
2330
- /** Used to compose unicode regexes. */
2331
- var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
2332
- rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
2333
- rsOptContrLower = '(?:' + rsApos$1 + '(?:d|ll|m|re|s|t|ve))?',
2334
- rsOptContrUpper = '(?:' + rsApos$1 + '(?:D|LL|M|RE|S|T|VE))?',
2335
- reOptMod$1 = rsModifier$1 + '?',
2336
- rsOptVar$1 = '[' + rsVarRange$2 + ']?',
2337
- rsOptJoin$1 = '(?:' + rsZWJ$2 + '(?:' + [rsNonAstral$1, rsRegional$1, rsSurrPair$1].join('|') + ')' + rsOptVar$1 + reOptMod$1 + ')*',
2338
- rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
2339
- rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
2340
- rsSeq$1 = rsOptVar$1 + reOptMod$1 + rsOptJoin$1,
2341
- rsEmoji = '(?:' + [rsDingbat, rsRegional$1, rsSurrPair$1].join('|') + ')' + rsSeq$1;
2342
-
2343
- /** Used to match complex or compound words. */
2344
- var reUnicodeWord = RegExp([
2345
- rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
2346
- rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
2347
- rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
2348
- rsUpper + '+' + rsOptContrUpper,
2349
- rsOrdUpper,
2350
- rsOrdLower,
2351
- rsDigits,
2352
- rsEmoji
2353
- ].join('|'), 'g');
2354
-
2355
- /**
2356
- * Splits a Unicode `string` into an array of its words.
2357
- *
2358
- * @private
2359
- * @param {string} The string to inspect.
2360
- * @returns {Array} Returns the words of `string`.
2361
- */
2362
- function unicodeWords(string) {
2363
- return string.match(reUnicodeWord) || [];
2364
- }
2365
-
2366
- var _unicodeWords = unicodeWords;
2367
-
2368
- /**
2369
- * Splits `string` into an array of its words.
2370
- *
2371
- * @static
2372
- * @memberOf _
2373
- * @since 3.0.0
2374
- * @category String
2375
- * @param {string} [string=''] The string to inspect.
2376
- * @param {RegExp|string} [pattern] The pattern to match words.
2377
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
2378
- * @returns {Array} Returns the words of `string`.
2379
- * @example
2380
- *
2381
- * _.words('fred, barney, & pebbles');
2382
- * // => ['fred', 'barney', 'pebbles']
2383
- *
2384
- * _.words('fred, barney, & pebbles', /[^, ]+/g);
2385
- * // => ['fred', 'barney', '&', 'pebbles']
2386
- */
2387
- function words(string, pattern, guard) {
2388
- string = toString_1(string);
2389
- pattern = guard ? undefined : pattern;
2390
-
2391
- if (pattern === undefined) {
2392
- return _hasUnicodeWord(string) ? _unicodeWords(string) : _asciiWords(string);
2393
- }
2394
- return string.match(pattern) || [];
2395
- }
2396
-
2397
- var words_1 = words;
2398
-
2399
- /** Used to compose unicode capture groups. */
2400
- var rsApos = "['\u2019]";
2401
-
2402
- /** Used to match apostrophes. */
2403
- var reApos = RegExp(rsApos, 'g');
2404
-
2405
- /**
2406
- * Creates a function like `_.camelCase`.
2407
- *
2408
- * @private
2409
- * @param {Function} callback The function to combine each word.
2410
- * @returns {Function} Returns the new compounder function.
2411
- */
2412
- function createCompounder(callback) {
2413
- return function(string) {
2414
- return _arrayReduce(words_1(deburr_1(string).replace(reApos, '')), callback, '');
2415
- };
2416
- }
2417
-
2418
- var _createCompounder = createCompounder;
2419
-
2420
- var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
2421
- var sharePageUrl = canUseDOM && window.location.href;
2422
-
2423
- var hexToRGB = function hexToRGB(hex) {
2424
- var r = parseInt(hex.slice(1, 3), 16);
2425
- var g = parseInt(hex.slice(3, 5), 16);
2426
- var b = parseInt(hex.slice(5, 7), 16);
2427
- return {
2428
- r: r,
2429
- g: g,
2430
- b: b
2431
- };
2432
- };
2433
- var getLuminanceOfColor = function getLuminanceOfColor(hex) {
2434
- var _hexToRGB = hexToRGB(hex),
2435
- r = _hexToRGB.r,
2436
- g = _hexToRGB.g,
2437
- b = _hexToRGB.b;
2438
-
2439
- return r * 0.299 + g * 0.587 + b * 0.114;
2440
- };
2441
- var rgbToHex = function rgbToHex() {
2442
- var color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "rgba(255, 255, 255, 0)";
2443
- var rgba = color.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);
2444
- 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;
2445
- };
2446
- var clientWidths = {
2447
- mobile: 767,
2448
- tablet: 1024
2449
- };
2450
- var clientWidth = function clientWidth(device) {
2451
- var foundDeviceWidth = get_1(clientWidths, device);
2452
-
2453
- if (foundDeviceWidth) {
2454
- return get_1(global, "document.documentElement.clientWidth") <= foundDeviceWidth;
2455
- }
2456
-
2457
- return false;
2458
- };
2459
- var getTextColor = function getTextColor() {
2460
- var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "rgb(255,255,255)";
2461
- var isRegexCheck = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(theme);
2462
- var getHexValue = !isRegexCheck ? rgbToHex(theme) : theme;
2463
- var textColor = getLuminanceOfColor(getHexValue) < 155 ? "light" : "dark";
2464
- return textColor;
2465
- };
2466
- PropTypes__default["default"].shape({
2467
- "sketches-host": PropTypes__default["default"].string,
2468
- "cdn-name": PropTypes__default["default"].string,
2469
- "cdn-image": PropTypes__default["default"].string
2470
- });
2471
- PropTypes__default["default"].shape({
2472
- headline: PropTypes__default["default"].string,
2473
- "last-published-at": PropTypes__default["default"].number,
2474
- subheadline: PropTypes__default["default"].string
2475
- });
2476
-
2477
- var UserFallbackIcon = function UserFallbackIcon(_ref) {
2478
- var _ref$width = _ref.width,
2479
- width = _ref$width === void 0 ? 120 : _ref$width,
2480
- _ref$height = _ref.height,
2481
- height = _ref$height === void 0 ? 120 : _ref$height;
2482
- return /*#__PURE__*/React__default["default"].createElement("svg", {
2483
- width: width,
2484
- height: height,
2485
- viewBox: "0 0 120 120",
2486
- xmlns: "http://www.w3.org/2000/svg"
2487
- }, /*#__PURE__*/React__default["default"].createElement("path", {
2488
- d: "M93.28 108.98c-1.055-17.675-15.47-31.678-33.098-31.678-17.708 0-32.173 14.129-33.11 31.916 9.415 6.311 20.741 9.993 32.927 9.993 12.338 0 23.795-3.774 33.28-10.23l.001-.001zM58.584 73.283c9.928 0 17.977-8.275 17.977-18.483 0-10.209-8.049-18.484-17.977-18.484-9.929 0-17.977 8.275-17.977 18.484 0 10.208 8.048 18.483 17.977 18.483zM60 120C26.863 120 0 93.137 0 60S26.863 0 60 0s60 26.863 60 60-26.863 60-60 60z",
2489
- fill: "#DADADA",
2490
- fillRule: "nonzero"
2491
- }));
2492
- };
2493
- UserFallbackIcon.propTypes = {
2494
- width: PropTypes__default["default"].object,
2495
- height: PropTypes__default["default"].object
2496
- };
2497
-
2498
- var _styleModuleImportMap$3 = {
2499
- "./author-image.m.css": {
2500
- "viewports": "\"../../../../assets/stylesheets/viewports.m.css\"",
2501
- "mobile": "768px",
2502
- "tablet": "992px",
2503
- "image-container": "author-image-m_image-container__19WNd",
2504
- "author-image": "author-image-m_author-image__D8GMB",
2505
- "square": "author-image-m_square__bjK7M",
2506
- "small-circle": "author-image-m_small-circle__DbQMN",
2507
- "smaller-circle": "author-image-m_smaller-circle__2yMOZ"
2508
- }
2509
- };
2510
-
2511
- var authorWithImage = function authorWithImage(author, templateStyle) {
2512
- var avatarUrl = author["avatar-url"],
2513
- avatarS3Key = author["avatar-s3-key"],
2514
- name = author.name;
2515
- return /*#__PURE__*/React__default["default"].createElement("div", {
2516
- "data-test-id": "author-image",
2517
- className: "arr--author-image " + _getClassName("author-image ".concat(templateStyle), _styleModuleImportMap$3)
2518
- }, /*#__PURE__*/React__default["default"].createElement("figure", {
2519
- className: "author-image-m_image-container__19WNd"
2520
- }, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
2521
- slug: avatarS3Key,
2522
- alt: name,
2523
- defaultWidth: 250,
2524
- widths: [250, 480],
2525
- aspectRatio: [[1, 1], [1, 1]],
2526
- sizes: "98vw",
2527
- imgParams: {
2528
- auto: ["format", "compress"]
2529
- }
2530
- }) : avatarUrl ? /*#__PURE__*/React__default["default"].createElement("img", {
2531
- src: avatarUrl
2532
- }) : /*#__PURE__*/React__default["default"].createElement(UserFallbackIcon, null)));
2533
- };
2534
-
2535
- var AuthorImage = function AuthorImage(_ref) {
2536
- var _ref$author = _ref.author,
2537
- author = _ref$author === void 0 ? {} : _ref$author,
2538
- _ref$template = _ref.template,
2539
- template = _ref$template === void 0 ? "" : _ref$template,
2540
- _ref$config = _ref.config,
2541
- config = _ref$config === void 0 ? {} : _ref$config;
2542
- var slug = author.slug;
2543
- var mountAt = config.mountAt || "";
2544
- var templateStyle = "";
2545
- if (template === "smallerCircle") templateStyle = "smaller-circle";else if (template === "smallCircle") templateStyle = "small-circle";else if (template === "square") templateStyle = "square";
2546
- if (slug) return /*#__PURE__*/React__default["default"].createElement(components.Link, {
2547
- href: "".concat(mountAt, "/author/") + slug
2548
- }, authorWithImage(author, templateStyle));else return authorWithImage(author, templateStyle);
2549
- };
2550
-
2551
- AuthorImage.propTypes = {
2552
- author: PropTypes__default["default"].shape({
2553
- "avatar-url": PropTypes__default["default"].string,
2554
- "avatar-s3-key": PropTypes__default["default"].string,
2555
- name: PropTypes__default["default"].string,
2556
- slug: PropTypes__default["default"].string
2557
- }),
2558
- template: PropTypes__default["default"].string
2559
- };
2560
-
2561
- function _extends() {
2562
- _extends = Object.assign || function (target) {
2563
- for (var i = 1; i < arguments.length; i++) {
2564
- var source = arguments[i];
2565
-
2566
- for (var key in source) {
2567
- if (Object.prototype.hasOwnProperty.call(source, key)) {
2568
- target[key] = source[key];
2569
- }
2570
- }
2571
- }
2572
-
2573
- return target;
2574
- };
2575
-
2576
- return _extends.apply(this, arguments);
2577
- }
2578
-
2579
- function _arrayWithHoles(arr) {
2580
- if (Array.isArray(arr)) return arr;
2581
- }
2582
-
2583
- function _iterableToArrayLimit(arr, i) {
2584
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
2585
-
2586
- if (_i == null) return;
2587
- var _arr = [];
2588
- var _n = true;
2589
- var _d = false;
2590
-
2591
- var _s, _e;
2592
-
2593
- try {
2594
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
2595
- _arr.push(_s.value);
2596
-
2597
- if (i && _arr.length === i) break;
2598
- }
2599
- } catch (err) {
2600
- _d = true;
2601
- _e = err;
2602
- } finally {
2603
- try {
2604
- if (!_n && _i["return"] != null) _i["return"]();
2605
- } finally {
2606
- if (_d) throw _e;
2607
- }
2608
- }
2609
-
2610
- return _arr;
2611
- }
2612
-
2613
- function _arrayLikeToArray(arr, len) {
2614
- if (len == null || len > arr.length) len = arr.length;
2615
-
2616
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
2617
- arr2[i] = arr[i];
2618
- }
2619
-
2620
- return arr2;
2621
- }
2622
-
2623
- function _unsupportedIterableToArray(o, minLen) {
2624
- if (!o) return;
2625
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
2626
- var n = Object.prototype.toString.call(o).slice(8, -1);
2627
- if (n === "Object" && o.constructor) n = o.constructor.name;
2628
- if (n === "Map" || n === "Set") return Array.from(o);
2629
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
2630
- }
2631
-
2632
- function _nonIterableRest() {
2633
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2634
- }
2635
-
2636
- function _slicedToArray(arr, i) {
2637
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
2638
- }
2639
-
2640
- var Twitter = function Twitter(_ref) {
2641
- var _ref$color = _ref.color,
2642
- color = _ref$color === void 0 ? "#1CB7EB" : _ref$color;
2643
- return /*#__PURE__*/React__default["default"].createElement("svg", {
2644
- xmlns: "http://www.w3.org/2000/svg",
2645
- width: "24",
2646
- height: "24",
2647
- viewBox: "0 0 24 24"
2648
- }, /*#__PURE__*/React__default["default"].createElement("path", {
2649
- fill: color,
2650
- 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"
2651
- }));
2652
- };
2653
- Twitter.propTypes = {
2654
- color: PropTypes__default["default"].string
2655
- };
2656
-
2657
- var Facebook = function Facebook(_ref) {
2658
- var _ref$color = _ref.color,
2659
- color = _ref$color === void 0 ? "#3B5998" : _ref$color;
2660
- return /*#__PURE__*/React__default["default"].createElement("svg", {
2661
- xmlns: "http://www.w3.org/2000/svg",
2662
- width: "24",
2663
- height: "24",
2664
- viewBox: "0 0 24 24"
2665
- }, /*#__PURE__*/React__default["default"].createElement("path", {
2666
- fill: color,
2667
- 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"
2668
- }));
2669
- };
2670
- Facebook.propTypes = {
2671
- color: PropTypes__default["default"].string
2672
- };
2673
-
2674
- var LinkedIn = function LinkedIn(_ref) {
2675
- var _ref$color = _ref.color,
2676
- color = _ref$color === void 0 ? "#0077B5" : _ref$color;
2677
- return /*#__PURE__*/React__default["default"].createElement("svg", {
2678
- xmlns: "http://www.w3.org/2000/svg",
2679
- width: "24",
2680
- height: "24",
2681
- viewBox: "0 0 24 24"
2682
- }, /*#__PURE__*/React__default["default"].createElement("path", {
2683
- fill: color,
2684
- 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"
2685
- }));
2686
- };
2687
- LinkedIn.propTypes = {
2688
- color: PropTypes__default["default"].string
2689
- };
2690
-
2691
- var WhatsApp = function WhatsApp(_ref) {
2692
- var _ref$color = _ref.color,
2693
- color = _ref$color === void 0 ? "#4AC959" : _ref$color;
2694
- return /*#__PURE__*/React__default["default"].createElement("svg", {
2695
- xmlns: "http://www.w3.org/2000/svg",
2696
- width: "24",
2697
- height: "24",
2698
- viewBox: "0 0 24 24"
2699
- }, /*#__PURE__*/React__default["default"].createElement("path", {
2700
- fill: color,
2701
- fillRule: "evenodd",
2702
- 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"
2703
- }));
2704
- };
2705
- WhatsApp.propTypes = {
2706
- color: PropTypes__default["default"].string
2707
- };
2708
-
2709
- var getSocialIcons = function getSocialIcons(color, iconType) {
2710
- switch (iconType) {
2711
- case "plain-color-svg":
2712
- return {
2713
- facebook: /*#__PURE__*/React__default["default"].createElement(Facebook, {
2714
- key: iconType
2715
- }),
2716
- twitter: /*#__PURE__*/React__default["default"].createElement(Twitter, {
2717
- key: iconType
2718
- }),
2719
- linkedin: /*#__PURE__*/React__default["default"].createElement(LinkedIn, {
2720
- key: iconType
2721
- }),
2722
- whatsapp: /*#__PURE__*/React__default["default"].createElement(WhatsApp, {
2723
- key: iconType
2724
- })
2725
- };
2726
-
2727
- default:
2728
- return {
2729
- facebook: /*#__PURE__*/React__default["default"].createElement(Facebook, {
2730
- color: color,
2731
- key: iconType
2732
- }),
2733
- twitter: /*#__PURE__*/React__default["default"].createElement(Twitter, {
2734
- color: color,
2735
- key: iconType
2736
- }),
2737
- linkedin: /*#__PURE__*/React__default["default"].createElement(LinkedIn, {
2738
- color: color,
2739
- key: iconType
2740
- }),
2741
- whatsapp: /*#__PURE__*/React__default["default"].createElement(WhatsApp, {
2742
- color: color,
2743
- key: iconType
2744
- })
2745
- };
2746
- }
2747
- };
2748
-
2749
- var socialShareData = function socialShareData(_ref) {
2750
- var fbUrl = _ref.fbUrl,
2751
- twitterUrl = _ref.twitterUrl,
2752
- linkedinUrl = _ref.linkedinUrl,
2753
- whatsappUrl = _ref.whatsappUrl,
2754
- iconColor = _ref.iconColor,
2755
- _ref$iconType = _ref.iconType,
2756
- iconType = _ref$iconType === void 0 ? "plain-svg" : _ref$iconType;
2757
- var socialIcons = getSocialIcons(iconColor, iconType);
2758
-
2759
- var getOptions = function getOptions() {
2760
- return [{
2761
- name: "facebook",
2762
- url: fbUrl,
2763
- icon: socialIcons["facebook"],
2764
- text: "Facebook",
2765
- bgColor: "#4e71a8",
2766
- alt: "fb icon"
2767
- }, {
2768
- name: "twitter",
2769
- url: twitterUrl,
2770
- icon: socialIcons["twitter"],
2771
- text: "Twitter",
2772
- bgColor: "#1db7eb",
2773
- alt: "twitter icon"
2774
- }, {
2775
- name: "linkedin",
2776
- url: linkedinUrl,
2777
- icon: socialIcons["linkedin"],
2778
- text: "LinkedIn",
2779
- bgColor: "#0077B5",
2780
- alt: "linkedin icon"
2781
- }, {
2782
- name: "whatsapp",
2783
- url: whatsappUrl,
2784
- icon: socialIcons["whatsapp"],
2785
- text: "Whatsapp",
2786
- bgColor: "#25d366",
2787
- alt: "whatsapp share"
2788
- }];
2789
- };
2790
-
2791
- return getOptions();
2792
- };
2793
-
2794
- var CloseIcon = function CloseIcon(_ref) {
2795
- var _ref$color = _ref.color,
2796
- color = _ref$color === void 0 ? "#333" : _ref$color;
2797
- return /*#__PURE__*/React__default["default"].createElement("svg", {
2798
- xmlns: "http://www.w3.org/2000/svg",
2799
- width: "24",
2800
- height: "24",
2801
- viewBox: "0 0 24 24"
2802
- }, /*#__PURE__*/React__default["default"].createElement("g", {
2803
- fill: "none",
2804
- stroke: color,
2805
- strokeLinecap: "square",
2806
- strokeWidth: "2"
2807
- }, /*#__PURE__*/React__default["default"].createElement("path", {
2808
- d: "M16.95 6.914l-9.9 9.9M16.95 17.107l-9.9-9.9"
2809
- })));
2810
- };
2811
- CloseIcon.propTypes = {
2812
- color: PropTypes__default["default"].string
2813
- };
2814
-
2815
- var _styleModuleImportMap$2 = {
2816
- "./social-share-popup.m.css": {
2817
- "share-popup-wrapper": "social-share-popup-m_share-popup-wrapper__GEJqD",
2818
- "light": "social-share-popup-m_light__gQmxf",
2819
- "dark": "social-share-popup-m_dark__26Igp",
2820
- "share-popup": "social-share-popup-m_share-popup__QRt3l social-share-popup-m_share-popup-wrapper__GEJqD",
2821
- "social-wrapper": "social-share-popup-m_social-wrapper__1lPzr",
2822
- "social-icon-wrapper": "social-share-popup-m_social-icon-wrapper__36jyV",
2823
- "wrapper": "social-share-popup-m_wrapper__3Ytce",
2824
- "top-bar": "social-share-popup-m_top-bar__174Um",
2825
- "share-text": "social-share-popup-m_share-text__19E-F",
2826
- "close": "social-share-popup-m_close__3k-Hj",
2827
- "social-icon": "social-share-popup-m_social-icon__2a4nT",
2828
- "social-text": "social-share-popup-m_social-text__1QPXb"
2829
- }
2830
- };
2831
-
2832
- var popupSocialShareItem = function popupSocialShareItem(url, icon, text, index) {
2833
- return url ? /*#__PURE__*/React__default["default"].createElement("li", {
2834
- className: "social-share-popup-m_social-icon-wrapper__36jyV",
2835
- "data-testid": text,
2836
- key: "popup-item-".concat(index)
2837
- }, /*#__PURE__*/React__default["default"].createElement("a", {
2838
- href: url,
2839
- target: "_blank",
2840
- rel: "noopener noreferrer",
2841
- className: "social-share-popup-m_social-wrapper__1lPzr",
2842
- "aria-label": "social-icon"
2843
- }, icon, /*#__PURE__*/React__default["default"].createElement("span", {
2844
- className: "social-share-popup-m_social-text__1QPXb"
2845
- }, text))) : null;
2846
- };
2847
-
2848
- var SocialSharePopup = function SocialSharePopup(_ref) {
2849
- var _ref$fbUrl = _ref.fbUrl,
2850
- fbUrl = _ref$fbUrl === void 0 ? "" : _ref$fbUrl,
2851
- _ref$twitterUrl = _ref.twitterUrl,
2852
- twitterUrl = _ref$twitterUrl === void 0 ? "" : _ref$twitterUrl,
2853
- _ref$linkedinUrl = _ref.linkedinUrl,
2854
- linkedinUrl = _ref$linkedinUrl === void 0 ? "" : _ref$linkedinUrl,
2855
- _ref$whatsappUrl = _ref.whatsappUrl,
2856
- whatsappUrl = _ref$whatsappUrl === void 0 ? "" : _ref$whatsappUrl,
2857
- theme = _ref.theme,
2858
- _ref$closePopup = _ref.closePopup,
2859
- closePopup = _ref$closePopup === void 0 ? "" : _ref$closePopup,
2860
- _ref$iconType = _ref.iconType,
2861
- iconType = _ref$iconType === void 0 ? "plain-color-svg" : _ref$iconType;
2862
- var textColor = getTextColor(theme);
2863
- var iconColor = textColor === "dark" ? "#000000" : "#ffffff";
2864
- var options = {
2865
- fbUrl: fbUrl,
2866
- twitterUrl: twitterUrl,
2867
- linkedinUrl: linkedinUrl,
2868
- whatsappUrl: whatsappUrl,
2869
- iconColor: iconColor,
2870
- iconType: iconType
2871
- };
2872
- var popupItemsList = socialShareData(options);
2873
- return /*#__PURE__*/React__default["default"].createElement("div", {
2874
- className: _getClassName("share-popup-wrapper ".concat(textColor), _styleModuleImportMap$2)
2875
- }, /*#__PURE__*/React__default["default"].createElement("div", {
2876
- className: "social-share-popup-m_share-popup__QRt3l social-share-popup-m_share-popup-wrapper__GEJqD"
2877
- }, /*#__PURE__*/React__default["default"].createElement("div", {
2878
- className: "social-share-popup-m_top-bar__174Um"
2879
- }, /*#__PURE__*/React__default["default"].createElement("span", {
2880
- className: "social-share-popup-m_share-text__19E-F"
2881
- }, "Share via"), /*#__PURE__*/React__default["default"].createElement("span", {
2882
- className: "social-share-popup-m_close__3k-Hj",
2883
- onClick: closePopup
2884
- }, /*#__PURE__*/React__default["default"].createElement(CloseIcon, {
2885
- color: iconColor
2886
- }))), /*#__PURE__*/React__default["default"].createElement("ul", {
2887
- className: "social-share-popup-m_wrapper__3Ytce"
2888
- }, popupItemsList.map(function (_ref2, index) {
2889
- var url = _ref2.url,
2890
- icon = _ref2.icon,
2891
- text = _ref2.text,
2892
- bgColor = _ref2.bgColor;
2893
- _ref2.alt;
2894
- return popupSocialShareItem(url, icon, text, bgColor);
2895
- }))));
2896
- };
2897
- SocialSharePopup.propTypes = {
2898
- fbUrl: PropTypes__default["default"].string,
2899
- twitterUrl: PropTypes__default["default"].string,
2900
- linkedinUrl: PropTypes__default["default"].string,
2901
- whatsappUrl: PropTypes__default["default"].string,
2902
- grey: PropTypes__default["default"].string,
2903
- primaryColor: PropTypes__default["default"].string,
2904
- closePopup: PropTypes__default["default"].bool,
2905
- theme: PropTypes__default["default"].string,
2906
- iconType: PropTypes__default["default"].string
2907
- };
2908
-
2909
- var ShareIcon = function ShareIcon(_ref) {
2910
- var _ref$color = _ref.color,
2911
- color = _ref$color === void 0 ? "#0D0D0D" : _ref$color;
2912
- return /*#__PURE__*/React__default["default"].createElement("svg", {
2913
- xmlns: "http://www.w3.org/2000/svg",
2914
- width: "24",
2915
- height: "24",
2916
- viewBox: "0 0 24 24"
2917
- }, /*#__PURE__*/React__default["default"].createElement("path", {
2918
- fill: color,
2919
- fillRule: "evenodd",
2920
- 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"
2921
- }));
2922
- };
2923
- ShareIcon.propTypes = {
2924
- color: PropTypes__default["default"].string
2925
- };
2926
-
2927
- /**
2928
- * The base implementation of `_.slice` without an iteratee call guard.
2929
- *
2930
- * @private
2931
- * @param {Array} array The array to slice.
2932
- * @param {number} [start=0] The start position.
2933
- * @param {number} [end=array.length] The end position.
2934
- * @returns {Array} Returns the slice of `array`.
2935
- */
2936
- function baseSlice(array, start, end) {
2937
- var index = -1,
2938
- length = array.length;
2939
-
2940
- if (start < 0) {
2941
- start = -start > length ? 0 : (length + start);
2942
- }
2943
- end = end > length ? length : end;
2944
- if (end < 0) {
2945
- end += length;
2946
- }
2947
- length = start > end ? 0 : ((end - start) >>> 0);
2948
- start >>>= 0;
2949
-
2950
- var result = Array(length);
2951
- while (++index < length) {
2952
- result[index] = array[index + start];
2953
- }
2954
- return result;
2955
- }
2956
-
2957
- var _baseSlice = baseSlice;
2958
-
2959
- /**
2960
- * Casts `array` to a slice if it's needed.
2961
- *
2962
- * @private
2963
- * @param {Array} array The array to inspect.
2964
- * @param {number} start The start position.
2965
- * @param {number} [end=array.length] The end position.
2966
- * @returns {Array} Returns the cast slice.
2967
- */
2968
- function castSlice(array, start, end) {
2969
- var length = array.length;
2970
- end = end === undefined ? length : end;
2971
- return (!start && end >= length) ? array : _baseSlice(array, start, end);
2972
- }
2973
-
2974
- var _castSlice = castSlice;
2975
-
2976
- /** Used to compose unicode character classes. */
2977
- var rsAstralRange$1 = '\\ud800-\\udfff',
2978
- rsComboMarksRange$1 = '\\u0300-\\u036f',
2979
- reComboHalfMarksRange$1 = '\\ufe20-\\ufe2f',
2980
- rsComboSymbolsRange$1 = '\\u20d0-\\u20ff',
2981
- rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1,
2982
- rsVarRange$1 = '\\ufe0e\\ufe0f';
2983
-
2984
- /** Used to compose unicode capture groups. */
2985
- var rsZWJ$1 = '\\u200d';
2986
-
2987
- /** 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/). */
2988
- var reHasUnicode = RegExp('[' + rsZWJ$1 + rsAstralRange$1 + rsComboRange$1 + rsVarRange$1 + ']');
2989
-
2990
- /**
2991
- * Checks if `string` contains Unicode symbols.
2992
- *
2993
- * @private
2994
- * @param {string} string The string to inspect.
2995
- * @returns {boolean} Returns `true` if a symbol is found, else `false`.
2996
- */
2997
- function hasUnicode(string) {
2998
- return reHasUnicode.test(string);
2999
- }
3000
-
3001
- var _hasUnicode = hasUnicode;
3002
-
3003
- /**
3004
- * Converts an ASCII `string` to an array.
3005
- *
3006
- * @private
3007
- * @param {string} string The string to convert.
3008
- * @returns {Array} Returns the converted array.
3009
- */
3010
- function asciiToArray(string) {
3011
- return string.split('');
3012
- }
3013
-
3014
- var _asciiToArray = asciiToArray;
3015
-
3016
- /** Used to compose unicode character classes. */
3017
- var rsAstralRange = '\\ud800-\\udfff',
3018
- rsComboMarksRange = '\\u0300-\\u036f',
3019
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
3020
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
3021
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
3022
- rsVarRange = '\\ufe0e\\ufe0f';
3023
-
3024
- /** Used to compose unicode capture groups. */
3025
- var rsAstral = '[' + rsAstralRange + ']',
3026
- rsCombo = '[' + rsComboRange + ']',
3027
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
3028
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
3029
- rsNonAstral = '[^' + rsAstralRange + ']',
3030
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
3031
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
3032
- rsZWJ = '\\u200d';
3033
-
3034
- /** Used to compose unicode regexes. */
3035
- var reOptMod = rsModifier + '?',
3036
- rsOptVar = '[' + rsVarRange + ']?',
3037
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
3038
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
3039
- rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
3040
-
3041
- /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
3042
- var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
3043
-
3044
- /**
3045
- * Converts a Unicode `string` to an array.
3046
- *
3047
- * @private
3048
- * @param {string} string The string to convert.
3049
- * @returns {Array} Returns the converted array.
3050
- */
3051
- function unicodeToArray(string) {
3052
- return string.match(reUnicode) || [];
3053
- }
3054
-
3055
- var _unicodeToArray = unicodeToArray;
3056
-
3057
- /**
3058
- * Converts `string` to an array.
3059
- *
3060
- * @private
3061
- * @param {string} string The string to convert.
3062
- * @returns {Array} Returns the converted array.
3063
- */
3064
- function stringToArray(string) {
3065
- return _hasUnicode(string)
3066
- ? _unicodeToArray(string)
3067
- : _asciiToArray(string);
3068
- }
3069
-
3070
- var _stringToArray = stringToArray;
3071
-
3072
- /**
3073
- * Creates a function like `_.lowerFirst`.
3074
- *
3075
- * @private
3076
- * @param {string} methodName The name of the `String` case method to use.
3077
- * @returns {Function} Returns the new case function.
3078
- */
3079
- function createCaseFirst(methodName) {
3080
- return function(string) {
3081
- string = toString_1(string);
3082
-
3083
- var strSymbols = _hasUnicode(string)
3084
- ? _stringToArray(string)
3085
- : undefined;
3086
-
3087
- var chr = strSymbols
3088
- ? strSymbols[0]
3089
- : string.charAt(0);
3090
-
3091
- var trailing = strSymbols
3092
- ? _castSlice(strSymbols, 1).join('')
3093
- : string.slice(1);
3094
-
3095
- return chr[methodName]() + trailing;
3096
- };
3097
- }
3098
-
3099
- var _createCaseFirst = createCaseFirst;
3100
-
3101
- /**
3102
- * Converts the first character of `string` to upper case.
3103
- *
3104
- * @static
3105
- * @memberOf _
3106
- * @since 4.0.0
3107
- * @category String
3108
- * @param {string} [string=''] The string to convert.
3109
- * @returns {string} Returns the converted string.
3110
- * @example
3111
- *
3112
- * _.upperFirst('fred');
3113
- * // => 'Fred'
3114
- *
3115
- * _.upperFirst('FRED');
3116
- * // => 'FRED'
3117
- */
3118
- var upperFirst = _createCaseFirst('toUpperCase');
3119
-
3120
- var upperFirst_1 = upperFirst;
3121
-
3122
- /**
3123
- * Converts the first character of `string` to upper case and the remaining
3124
- * to lower case.
3125
- *
3126
- * @static
3127
- * @memberOf _
3128
- * @since 3.0.0
3129
- * @category String
3130
- * @param {string} [string=''] The string to capitalize.
3131
- * @returns {string} Returns the capitalized string.
3132
- * @example
3133
- *
3134
- * _.capitalize('FRED');
3135
- * // => 'Fred'
3136
- */
3137
- function capitalize(string) {
3138
- return upperFirst_1(toString_1(string).toLowerCase());
3139
- }
3140
-
3141
- var capitalize_1 = capitalize;
3142
-
3143
- /**
3144
- * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
3145
- *
3146
- * @static
3147
- * @memberOf _
3148
- * @since 3.0.0
3149
- * @category String
3150
- * @param {string} [string=''] The string to convert.
3151
- * @returns {string} Returns the camel cased string.
3152
- * @example
3153
- *
3154
- * _.camelCase('Foo Bar');
3155
- * // => 'fooBar'
3156
- *
3157
- * _.camelCase('--foo-bar--');
3158
- * // => 'fooBar'
3159
- *
3160
- * _.camelCase('__FOO_BAR__');
3161
- * // => 'fooBar'
3162
- */
3163
- var camelCase = _createCompounder(function(result, word, index) {
3164
- word = word.toLowerCase();
3165
- return result + (index ? capitalize_1(word) : word);
3166
- });
3167
-
3168
- var camelCase_1 = camelCase;
3169
-
3170
- var _styleModuleImportMap$1 = {
3171
- "./social-share-template.m.css": {
3172
- "desktop-view": "social-share-template-m_desktop-view__3TmkO",
3173
- "tablet-view": "social-share-template-m_tablet-view__kATzi",
3174
- "wrapper": "social-share-template-m_wrapper__1wXin",
3175
- "horizontal": "social-share-template-m_horizontal__1c9Kt",
3176
- "vertical": "social-share-template-m_vertical__VU5JY",
3177
- "light": "social-share-template-m_light__3-V_k",
3178
- "dark": "social-share-template-m_dark__1lmTM",
3179
- "icon": "social-share-template-m_icon__1Mnu5",
3180
- "open": "social-share-template-m_open__3xObA",
3181
- "popup-wrapper": "social-share-template-m_popup-wrapper__1Zv3e",
3182
- "popup-open": "social-share-template-m_popup-open__21UNo",
3183
- "overlay": "social-share-template-m_overlay__1nBp-",
3184
- "tablet-view-popup": "social-share-template-m_tablet-view-popup__1hXU9"
3185
- }
3186
- };
3187
-
3188
- var ShareItem = function ShareItem(_ref) {
3189
- var name = _ref.name,
3190
- url = _ref.url,
3191
- icon = _ref.icon,
3192
- dataTestId = _ref.dataTestId;
3193
- return url ? /*#__PURE__*/React__default["default"].createElement("li", {
3194
- "data-testid": dataTestId,
3195
- className: "social-share-template-m_icon__1Mnu5"
3196
- }, /*#__PURE__*/React__default["default"].createElement("a", {
3197
- href: url,
3198
- target: "_blank",
3199
- rel: "noopener noreferrer",
3200
- "data-share-icon": name,
3201
- "aria-label": "share-icon"
3202
- }, icon)) : null;
3203
- };
3204
-
3205
- ShareItem.propTypes = {
3206
- name: PropTypes__default["default"].string,
3207
- url: PropTypes__default["default"].string,
3208
- icon: PropTypes__default["default"].node,
3209
- dataTestId: PropTypes__default["default"].string
3210
- };
3211
-
3212
- function getActionIcon(open, color) {
3213
- if (!open) return /*#__PURE__*/React__default["default"].createElement(ShareIcon, {
3214
- color: color
3215
- });
3216
- return /*#__PURE__*/React__default["default"].createElement(CloseIcon, {
3217
- color: color
3218
- });
3219
- }
3220
-
3221
- var SocialShareTemplate = function SocialShareTemplate(props) {
3222
- var _props$fbUrl = props.fbUrl,
3223
- fbUrl = _props$fbUrl === void 0 ? "" : _props$fbUrl,
3224
- _props$twitterUrl = props.twitterUrl,
3225
- twitterUrl = _props$twitterUrl === void 0 ? "" : _props$twitterUrl,
3226
- _props$linkedinUrl = props.linkedinUrl,
3227
- linkedinUrl = _props$linkedinUrl === void 0 ? "" : _props$linkedinUrl,
3228
- _props$whatsappUrl = props.whatsappUrl,
3229
- whatsappUrl = _props$whatsappUrl === void 0 ? "" : _props$whatsappUrl,
3230
- _props$vertical = props.vertical,
3231
- vertical = _props$vertical === void 0 ? false : _props$vertical,
3232
- theme = props.theme,
3233
- _props$iconType = props.iconType,
3234
- iconType = _props$iconType === void 0 ? "plain-color-svg" : _props$iconType,
3235
- _props$open = props.open,
3236
- open = _props$open === void 0 ? false : _props$open;
3237
- if (!fbUrl && !twitterUrl && !linkedinUrl && !whatsappUrl) return null;
3238
- var iconShade = getTextColor(theme);
3239
- var iconColor = iconShade === "dark" ? "#000000" : "#ffffff";
3240
- var options = {
3241
- fbUrl: fbUrl,
3242
- twitterUrl: twitterUrl,
3243
- linkedinUrl: linkedinUrl,
3244
- whatsappUrl: whatsappUrl,
3245
- iconColor: iconColor,
3246
- iconType: iconType
3247
- };
3248
- var iconsList = socialShareData(options);
3249
-
3250
- var _useState = React.useState(open),
3251
- _useState2 = _slicedToArray(_useState, 2),
3252
- isOpen = _useState2[0],
3253
- setIsOpen = _useState2[1];
3254
-
3255
- var verticalShare = vertical ? "vertical" : "horizontal";
3256
- React.useEffect(function () {
3257
- return setIsOpen(open);
3258
- }, [open]);
3259
-
3260
- var shareIcon = function shareIcon() {
3261
- return /*#__PURE__*/React__default["default"].createElement("li", {
3262
- className: "social-share-template-m_icon__1Mnu5",
3263
- key: "horizontal-0"
3264
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3265
- onClick: clickHandler
3266
- }, getActionIcon(isOpen, iconColor)));
3267
- };
3268
-
3269
- var clickHandler = function clickHandler() {
3270
- setIsOpen(!isOpen);
3271
- };
3272
-
3273
- var popUpWrapper = function popUpWrapper() {
3274
- return /*#__PURE__*/React__default["default"].createElement("div", {
3275
- className: "social-share-template-m_tablet-view__kATzi"
3276
- }, !isOpen && /*#__PURE__*/React__default["default"].createElement("ul", {
3277
- className: _getClassName("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap$1)
3278
- }, shareIcon()), isOpen && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3279
- className: "social-share-template-m_overlay__1nBp-",
3280
- onClick: clickHandler
3281
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3282
- className: "arr--popup " + _getClassName("popup-wrapper ".concat(isOpen ? "popup-open" : ""), _styleModuleImportMap$1)
3283
- }, /*#__PURE__*/React__default["default"].createElement(SocialSharePopup, {
3284
- fbUrl: fbUrl,
3285
- twitterUrl: twitterUrl,
3286
- linkedinUrl: linkedinUrl,
3287
- whatsappUrl: whatsappUrl,
3288
- iconType: iconType,
3289
- theme: theme,
3290
- closePopup: function closePopup() {
3291
- setIsOpen(false);
3292
- }
3293
- })))));
3294
- };
3295
-
3296
- var popupStyle = !isOpen && vertical ? "tablet-view-popup" : "";
3297
- return /*#__PURE__*/React__default["default"].createElement("div", {
3298
- "data-test-id": verticalShare,
3299
- className: "arr--share " + _getClassName("".concat(iconShade, " ").concat(verticalShare, " ").concat(popupStyle), _styleModuleImportMap$1)
3300
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3301
- className: "social-share-template-m_desktop-view__3TmkO"
3302
- }, /*#__PURE__*/React__default["default"].createElement("ul", {
3303
- "data-test-id": camelCase_1(iconType),
3304
- className: "desktop-share-wrapper " + _getClassName("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap$1)
3305
- }, shareIcon(), iconsList.map(function (iconData, index) {
3306
- return /*#__PURE__*/React__default["default"].createElement(ShareItem, _extends({}, iconData, {
3307
- key: iconData.name,
3308
- dataTestId: "card-share-".concat(index)
3309
- }));
3310
- }))), popUpWrapper());
3311
- };
3312
- SocialShareTemplate.propTypes = {
3313
- fbUrl: PropTypes__default["default"].string,
3314
- twitterUrl: PropTypes__default["default"].string,
3315
- linkedinUrl: PropTypes__default["default"].string,
3316
- whatsappUrl: PropTypes__default["default"].string,
3317
- vertical: PropTypes__default["default"].bool,
3318
- theme: PropTypes__default["default"].string,
3319
- iconType: PropTypes__default["default"].string,
3320
- open: PropTypes__default["default"]["boolean"]
3321
- };
3322
-
3323
- var Youtube = function Youtube(_ref) {
3324
- var _ref$color = _ref.color,
3325
- color = _ref$color === void 0 ? "#F61C0D" : _ref$color;
3326
- return /*#__PURE__*/React__default["default"].createElement("svg", {
3327
- xmlns: "http://www.w3.org/2000/svg",
3328
- width: "24",
3329
- height: "24",
3330
- viewBox: "0 0 24 24"
3331
- }, /*#__PURE__*/React__default["default"].createElement("path", {
3332
- fill: color,
3333
- fillRule: "evenodd",
3334
- d: "M22.077 6.844c.18.703.308 1.77.385 3.203L22.5 12l-.038 1.953c-.077 1.458-.206 2.54-.385 3.242a2.733 2.733 0 01-.692 1.172 2.654 2.654 0 01-1.193.703c-.666.183-2.23.313-4.692.39l-3.5.04-3.5-.04c-2.462-.077-4.026-.207-4.692-.39a2.657 2.657 0 01-1.193-.703 2.733 2.733 0 01-.692-1.172c-.18-.703-.308-1.784-.385-3.242L1.5 12c0-.573.013-1.224.038-1.953.077-1.432.206-2.5.385-3.203A2.718 2.718 0 013.808 4.93c.666-.183 2.23-.313 4.692-.39L12 4.5l3.5.04c2.462.077 4.026.207 4.692.39a2.718 2.718 0 011.885 1.914zm-12.23 8.36l5.5-3.204-5.5-3.164v6.367z"
3335
- }));
3336
- };
3337
- Youtube.propTypes = {
3338
- color: PropTypes__default["default"].string
3339
- };
3340
-
3341
- var Instagram = function Instagram() {
3342
- return /*#__PURE__*/React__default["default"].createElement("svg", {
3343
- xmlns: "http://www.w3.org/2000/svg",
3344
- xmlnsXlink: "http://www.w3.org/1999/xlink",
3345
- width: "24",
3346
- height: "24",
3347
- viewBox: "0 0 24 24"
3348
- }, /*#__PURE__*/React__default["default"].createElement("defs", null, /*#__PURE__*/React__default["default"].createElement("linearGradient", {
3349
- id: "prefix__b",
3350
- x1: "0%",
3351
- x2: "110.694%",
3352
- y1: "0%",
3353
- y2: "109.202%"
3354
- }, /*#__PURE__*/React__default["default"].createElement("stop", {
3355
- offset: "0%",
3356
- stopColor: "#724AC6"
3357
- }), /*#__PURE__*/React__default["default"].createElement("stop", {
3358
- offset: "53.59%",
3359
- stopColor: "#E5375E"
3360
- }), /*#__PURE__*/React__default["default"].createElement("stop", {
3361
- offset: "100%",
3362
- stopColor: "#FC9949"
3363
- })), /*#__PURE__*/React__default["default"].createElement("path", {
3364
- id: "prefix__a",
3365
- d: "M9 4.636c.784 0 1.512.196 2.182.588.67.392 1.202.924 1.594 1.594.392.67.588 1.398.588 2.182s-.196 1.512-.588 2.182a4.382 4.382 0 01-1.594 1.594c-.67.392-1.398.588-2.182.588s-1.512-.196-2.182-.588a4.382 4.382 0 01-1.594-1.594c-.392-.67-.588-1.398-.588-2.182s.196-1.512.588-2.182a4.382 4.382 0 011.594-1.594A4.247 4.247 0 019 4.636zm0 7.21c.784 0 1.455-.278 2.011-.835.557-.556.835-1.227.835-2.011s-.278-1.455-.835-2.011c-.556-.557-1.227-.835-2.011-.835s-1.455.278-2.011.835c-.557.556-.835 1.227-.835 2.011s.278 1.455.835 2.011A2.739 2.739 0 009 11.846zm5.578-7.4a1.181 1.181 0 01-.322.721.923.923 0 01-.702.304.981.981 0 01-.721-.304.98.98 0 01-.304-.72c0-.279.101-.52.304-.722a.984.984 0 01.72-.303c.279 0 .52.101.722.303a.987.987 0 01.303.721zm2.884 1.025c.025.708.038 1.885.038 3.529s-.019 2.827-.057 3.548c-.038.721-.145 1.347-.322 1.878a4.425 4.425 0 01-1.044 1.651 4.429 4.429 0 01-1.65 1.044c-.532.177-1.158.284-1.879.322-.721.038-1.904.057-3.548.057-1.644 0-2.827-.019-3.548-.057-.721-.038-1.347-.158-1.878-.36a4.05 4.05 0 01-1.651-1.006 4.429 4.429 0 01-1.044-1.65c-.177-.532-.284-1.158-.322-1.879C.519 11.827.5 10.644.5 9c0-1.644.019-2.827.057-3.548.038-.721.145-1.347.322-1.878a4.425 4.425 0 011.044-1.651A4.429 4.429 0 013.573.879C4.106.702 4.732.595 5.453.557 6.173.519 7.356.5 9 .5c1.644 0 2.827.019 3.548.057.721.038 1.347.145 1.878.322a4.425 4.425 0 011.651 1.044 4.429 4.429 0 011.044 1.65c.177.532.29 1.164.341 1.898zm-1.821 8.538c.151-.43.253-1.113.303-2.05.025-.556.038-1.34.038-2.352V8.393a54.22 54.22 0 00-.038-2.353c-.05-.961-.152-1.644-.303-2.049a2.743 2.743 0 00-1.632-1.632c-.405-.151-1.088-.253-2.05-.303a55.796 55.796 0 00-2.352-.038H8.393c-1.012 0-1.796.013-2.353.038-.936.05-1.619.152-2.049.303a2.743 2.743 0 00-1.632 1.632c-.151.405-.253 1.088-.303 2.05-.025.556-.038 1.34-.038 2.352v1.214c0 1.012.013 1.796.038 2.353.05.936.152 1.619.303 2.049.33.784.873 1.328 1.632 1.632.43.151 1.113.253 2.05.303.556.025 1.34.038 2.352.038h1.214a54.22 54.22 0 002.353-.038c.961-.05 1.644-.152 2.049-.303.784-.33 1.328-.873 1.632-1.632z"
3366
- })), /*#__PURE__*/React__default["default"].createElement("use", {
3367
- fill: "url(#prefix__b)",
3368
- fillRule: "nonzero",
3369
- transform: "translate(3 3)",
3370
- xlinkHref: "#prefix__a"
3371
- }));
3372
- };
3373
-
3374
- var Pinterest = function Pinterest() {
3375
- return /*#__PURE__*/React__default["default"].createElement("svg", {
3376
- xmlns: "http://www.w3.org/2000/svg",
3377
- width: "24",
3378
- height: "24",
3379
- viewBox: "0 0 24 24"
3380
- }, /*#__PURE__*/React__default["default"].createElement("path", {
3381
- fill: "#E60023",
3382
- d: "M21.5 12a9.209 9.209 0 01-1.283 4.75 9.6 9.6 0 01-3.467 3.467A9.209 9.209 0 0112 21.5c-.97 0-1.903-.14-2.796-.421.613-1.022.996-1.852 1.149-2.49l.613-2.26c.153.306.434.561.842.766.41.204.856.306 1.341.306.92 0 1.756-.262 2.51-.785.753-.524 1.34-1.232 1.761-2.126.422-.894.632-1.87.632-2.93s-.255-2.012-.766-2.854a5.318 5.318 0 00-2.107-1.973c-.893-.473-1.89-.709-2.987-.709-1.303 0-2.452.268-3.448.805a5.465 5.465 0 00-2.088 2.087 5.704 5.704 0 00-.747 2.854c0 .74.185 1.475.556 2.203.37.728.836 1.22 1.398 1.475.179.076.28.038.306-.115l.268-1.073a.266.266 0 00-.076-.268 3.048 3.048 0 01-.498-.977 3.908 3.908 0 01-.192-1.207c0-.715.173-1.385.518-2.01a3.99 3.99 0 011.474-1.514c.664-.408 1.43-.613 2.299-.613 1.174 0 2.132.364 2.873 1.092.74.728 1.11 1.654 1.11 2.777 0 1.277-.287 2.324-.861 3.141-.575.818-1.284 1.226-2.126 1.226-.486 0-.869-.172-1.15-.517-.28-.345-.37-.747-.268-1.207.051-.28.166-.689.345-1.225.281-.945.421-1.603.421-1.973 0-.37-.102-.677-.306-.92-.204-.242-.498-.363-.881-.363-.485 0-.894.217-1.226.65-.332.435-.498.984-.498 1.648 0 .562.09 1.034.268 1.417L8.591 18.13c-.154.638-.166 1.545-.039 2.72-1.813-.69-3.275-1.839-4.386-3.448C3.056 15.792 2.5 13.991 2.5 12c0-1.711.428-3.294 1.283-4.75A9.6 9.6 0 017.25 3.783 9.209 9.209 0 0112 2.5c1.711 0 3.294.428 4.75 1.283a9.6 9.6 0 013.467 3.467A9.209 9.209 0 0121.5 12z"
3383
- }));
3384
- };
3385
-
3386
- var _styleModuleImportMap = {
3387
- "./author-intro.m.css": {
3388
- "viewports": "\"../../../../assets/stylesheets/viewports.m.css\"",
3389
- "mobile": "768px",
3390
- "tablet": "992px",
3391
- "connect": "author-intro-m_connect__15zIX",
3392
- "social-share": "author-intro-m_social-share__f5EpE",
3393
- "share-icon": "author-intro-m_share-icon__3gke5",
3394
- "default": "author-intro-m_default__1rQ_v",
3395
- "author-image": "author-intro-m_author-image__2jRxy",
3396
- "author-name": "author-intro-m_author-name__1L60a",
3397
- "author-description": "author-intro-m_author-description__2CTEw",
3398
- "wrapper": "author-intro-m_wrapper__2Bi-s",
3399
- "introduction-card": "author-intro-m_introduction-card__1kdGt",
3400
- "social-wrapper": "author-intro-m_social-wrapper__1F9jD",
3401
- "linkWrapper": "author-intro-m_linkWrapper__Au0nU",
3402
- "social-connect-wrapper": "author-intro-m_social-connect-wrapper__2B0QA",
3403
- "dark": "author-intro-m_dark__ALdDb",
3404
- "light": "author-intro-m_light__2SfeE",
3405
- "small-circle": "author-intro-m_small-circle__jyG1s",
3406
- "border": "author-intro-m_border__3Tii9",
3407
- "fade-out": "author-intro-m_fade-out__1EBqd"
3408
- }
3409
- };
3410
- var AuthorIntroductionCard = function AuthorIntroductionCard(_ref) {
3411
- var _ref$data = _ref.data,
3412
- data = _ref$data === void 0 ? {} : _ref$data,
3413
- _ref$config = _ref.config,
3414
- config = _ref$config === void 0 ? {} : _ref$config,
3415
- _ref$template = _ref.template,
3416
- template = _ref$template === void 0 ? "" : _ref$template;
3417
- var _config$theme = config.theme,
3418
- theme = _config$theme === void 0 ? "" : _config$theme,
3419
- _config$enableBio = config.enableBio,
3420
- enableBio = _config$enableBio === void 0 ? true : _config$enableBio,
3421
- _config$enableSocialL = config.enableSocialLinks,
3422
- enableSocialLinks = _config$enableSocialL === void 0 ? true : _config$enableSocialL,
3423
- _config$borderSupport = config.borderSupport,
3424
- borderSupport = _config$borderSupport === void 0 ? true : _config$borderSupport;
3425
- var textColor = getTextColor(theme);
3426
- var name = data.name,
3427
- bio = data.bio,
3428
- social = data.social;
3429
- var isSmallCircle = template === "smallCircle";
3430
- var authorCardStyle = isSmallCircle ? "small-circle" : "default";
3431
- var isMobile = clientWidth("mobile");
3432
- var isFullWidth = !isSmallCircle ? "full-width-with-padding" : "";
3433
- var supportBorder = isSmallCircle && borderSupport ? "border" : "";
3434
-
3435
- var getIcon = function getIcon(item) {
3436
- switch (item) {
3437
- case "twitter":
3438
- return /*#__PURE__*/React__default["default"].createElement(Twitter, null);
3439
-
3440
- case "facebook":
3441
- return /*#__PURE__*/React__default["default"].createElement(Facebook, null);
3442
-
3443
- case "youtube":
3444
- return /*#__PURE__*/React__default["default"].createElement(Youtube, null);
3445
-
3446
- case "linkedin":
3447
- return /*#__PURE__*/React__default["default"].createElement(LinkedIn, null);
3448
-
3449
- case "whatsapp":
3450
- return /*#__PURE__*/React__default["default"].createElement(WhatsApp, {
3451
- color: "#4AC959"
3452
- });
3453
-
3454
- case "instagram":
3455
- return /*#__PURE__*/React__default["default"].createElement(Instagram, null);
3456
-
3457
- case "pinterest":
3458
- return /*#__PURE__*/React__default["default"].createElement(Pinterest, null);
3459
- }
3460
- };
3461
-
3462
- return /*#__PURE__*/React__default["default"].createElement("div", {
3463
- "data-test-id": "author-intro",
3464
- style: {
3465
- backgroundColor: theme,
3466
- color: textColor
3467
- },
3468
- className: ("".concat(isFullWidth, " arrow-component arr--author-intro-card") ? "".concat(isFullWidth, " arrow-component arr--author-intro-card") + " " : "") + _getClassName("".concat(authorCardStyle, " ").concat(supportBorder, " ").concat(textColor), _styleModuleImportMap)
3469
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3470
- className: "arrow-author-intro-wrapper " + _getClassName("wrapper ".concat(textColor), _styleModuleImportMap)
3471
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3472
- className: "arrow-author-introduction-card author-intro-m_introduction-card__1kdGt"
3473
- }, isSmallCircle && isMobile ? null : /*#__PURE__*/React__default["default"].createElement("h2", {
3474
- className: _getClassName("author-name ".concat(textColor), _styleModuleImportMap)
3475
- }, name), enableBio && bio && /*#__PURE__*/React__default["default"].createElement("div", {
3476
- "data-test-id": "author-bio",
3477
- className: _getClassName("author-description ".concat(textColor), _styleModuleImportMap)
3478
- }, bio, isSmallCircle && /*#__PURE__*/React__default["default"].createElement("div", {
3479
- className: "author-intro-m_fade-out__1EBqd",
3480
- style: {
3481
- backgroundImage: "linear-gradient(to right, transparent, ".concat(theme, ")")
3482
- }
3483
- })), /*#__PURE__*/React__default["default"].createElement("div", {
3484
- className: "author-intro-m_social-wrapper__1F9jD"
3485
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3486
- className: "author-intro-m_social-connect-wrapper__2B0QA"
3487
- }, enableSocialLinks && social && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, template !== "smallCircle" && /*#__PURE__*/React__default["default"].createElement("div", {
3488
- className: _getClassName("connect ".concat(textColor), _styleModuleImportMap)
3489
- }, "Connect :"), Object.entries(social).map(function (item, index) {
3490
- return item.length > 0 && item[1] ? // can add Social Networks without the url so adding an additional check below
3491
- item[1].url ? /*#__PURE__*/React__default["default"].createElement("a", {
3492
- "data-test-id": "social-link",
3493
- href: item[1].url,
3494
- key: "".concat(item, "-").concat(index),
3495
- rel: "noopener noreferrer",
3496
- target: "_blank",
3497
- className: "author-intro-m_social-share__f5EpE"
3498
- }, getIcon(item[0])) : null : null;
3499
- }))), !isSmallCircle && /*#__PURE__*/React__default["default"].createElement(components.SocialShare, {
3500
- template: SocialShareTemplate,
3501
- fullUrl: sharePageUrl,
3502
- title: name,
3503
- theme: theme,
3504
- iconType: "plain-svg"
3505
- }))), /*#__PURE__*/React__default["default"].createElement("div", {
3506
- className: "arrow-author-image author-intro-m_author-image__2jRxy"
3507
- }, /*#__PURE__*/React__default["default"].createElement(AuthorImage, {
3508
- author: data,
3509
- template: template
3510
- }), isSmallCircle && isMobile && /*#__PURE__*/React__default["default"].createElement("h2", {
3511
- className: _getClassName("author-name ".concat(textColor), _styleModuleImportMap)
3512
- }, name))));
3513
- };
3514
- AuthorIntroductionCard.propTypes = {
3515
- data: PropTypes__default["default"].shape({
3516
- name: PropTypes__default["default"].string,
3517
- bio: PropTypes__default["default"].string,
3518
- social: PropTypes__default["default"].object
3519
- }),
3520
- config: PropTypes__default["default"].shape({
3521
- theme: PropTypes__default["default"].string,
3522
- enableBio: PropTypes__default["default"].bool,
3523
- enableSocialLinks: PropTypes__default["default"].bool,
3524
- borderSupport: PropTypes__default["default"].bool
3525
- }),
3526
- template: PropTypes__default["default"].string
3527
- };
3528
-
3529
- exports.AuthorIntroductionCard = AuthorIntroductionCard;