@mjhls/mjh-framework 1.0.815 → 1.0.816-beta.0

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 (314) hide show
  1. package/dist/cjs/AD.js +9 -10
  2. package/dist/cjs/AD300x250.js +30 -30
  3. package/dist/cjs/AD300x250x600.js +30 -30
  4. package/dist/cjs/AD728x90.js +33 -33
  5. package/dist/cjs/ADFloatingFooter.js +32 -32
  6. package/dist/cjs/ADFooter.js +14 -15
  7. package/dist/cjs/ADGutter.js +32 -32
  8. package/dist/cjs/{ADInfeed-7cf51090.js → ADInfeed-7c4b33b3.js} +13 -15
  9. package/dist/cjs/ADSkyscraper.js +32 -32
  10. package/dist/cjs/ADSponsoredResources.js +32 -32
  11. package/dist/cjs/ADWebcast.js +32 -32
  12. package/dist/cjs/ADWelcome.js +33 -33
  13. package/dist/cjs/{ADlgInfeed-bf24708d.js → ADlgInfeed-563e0168.js} +10 -11
  14. package/dist/cjs/AccordionPanel.js +29 -31
  15. package/dist/cjs/AdSlot.js +35 -35
  16. package/dist/cjs/AdSlotsProvider.js +912 -40
  17. package/dist/cjs/AlgoliaSearch.js +14122 -60
  18. package/dist/cjs/AlphabeticList.js +25 -26
  19. package/dist/cjs/ArticleCarousel.js +23 -24
  20. package/dist/cjs/ArticleProgramLandingPage.js +58 -58
  21. package/dist/cjs/ArticleSeriesLandingPage.js +41 -41
  22. package/dist/cjs/ArticleSeriesListing.js +61 -61
  23. package/dist/cjs/Auth.js +662 -686
  24. package/dist/cjs/AuthWrapper.js +268 -310
  25. package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-bb831b74.js} +13 -14
  26. package/dist/cjs/Beam.js +8 -8
  27. package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-091a991f.js} +55 -56
  28. package/dist/cjs/Breadcrumbs.js +27 -29
  29. package/dist/cjs/CMEDeck.js +84 -83
  30. package/dist/cjs/Column1.js +11 -14
  31. package/dist/cjs/Column2.js +33 -36
  32. package/dist/cjs/Column3.js +59 -61
  33. package/dist/cjs/ConferenceArticleCard.js +23 -24
  34. package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
  35. package/dist/cjs/DeckContent.js +96 -99
  36. package/dist/cjs/DeckQueue.js +89 -92
  37. package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-26baccf1.js} +34 -34
  38. package/dist/cjs/EventsDeck.js +135 -142
  39. package/dist/cjs/ExternalResources.js +80 -80
  40. package/dist/cjs/Feature.js +25 -27
  41. package/dist/cjs/ForbesHero.js +40 -41
  42. package/dist/cjs/GridContent.js +278 -184
  43. package/dist/cjs/GridHero.js +42 -43
  44. package/dist/cjs/GroupDeck.js +58 -59
  45. package/dist/cjs/HamMagazine.js +131 -136
  46. package/dist/cjs/Header.js +12 -14
  47. package/dist/cjs/Hero.js +12 -13
  48. package/dist/cjs/HighlightenVideo.js +17 -18
  49. package/dist/cjs/HorizontalArticleListing.js +71 -71
  50. package/dist/cjs/HorizontalHero.js +26 -27
  51. package/dist/cjs/IssueContentDeck.js +72 -77
  52. package/dist/cjs/IssueDeck.js +71 -76
  53. package/dist/cjs/IssueLanding.js +66 -66
  54. package/dist/cjs/LeftNav.js +39 -40
  55. package/dist/cjs/MasterDeck.js +72 -72
  56. package/dist/cjs/MediaSeriesLanding.js +1092 -1183
  57. package/dist/cjs/NavDvm.js +74 -79
  58. package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
  59. package/dist/cjs/NavMagazine.js +138 -143
  60. package/dist/cjs/NavNative.js +130 -138
  61. package/dist/cjs/NavNormal.js +48 -53
  62. package/dist/cjs/OncliveHero.js +20 -20
  63. package/dist/cjs/OncliveLargeHero.js +66 -67
  64. package/dist/cjs/PageFilter.js +14 -15
  65. package/dist/cjs/PartnerDetailListing.js +110 -110
  66. package/dist/cjs/PdfDownload.js +9 -10
  67. package/dist/cjs/PopUpModal.js +19 -21
  68. package/dist/cjs/PubSection.js +42 -42
  69. package/dist/cjs/PubToc.js +15 -16
  70. package/dist/cjs/PublicationDeck.js +61 -66
  71. package/dist/cjs/PublicationLanding.js +108 -112
  72. package/dist/cjs/QueueDeckExpanded.js +295 -294
  73. package/dist/cjs/RecentNews.js +24 -25
  74. package/dist/cjs/RelatedContent.js +24 -25
  75. package/dist/cjs/RelatedTopicsDropdown.js +19 -22
  76. package/dist/cjs/RolesDeck.js +27 -32
  77. package/dist/cjs/Search.js +18 -22
  78. package/dist/cjs/Segment.js +6 -6
  79. package/dist/cjs/SeriesListingDeck.js +39 -38
  80. package/dist/cjs/{SeriesSlider-2db54929.js → SeriesSlider-4abb21b4.js} +37 -38
  81. package/dist/cjs/SetCookie.js +1 -1
  82. package/dist/cjs/SideFooter.js +36 -37
  83. package/dist/cjs/SocialIcons.js +9 -10
  84. package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-cea213aa.js} +36 -40
  85. package/dist/cjs/SocialShare.js +29 -31
  86. package/dist/cjs/TaxonomyCard.js +58 -63
  87. package/dist/cjs/TaxonomyDescription.js +55 -55
  88. package/dist/cjs/TemplateNormal.js +76 -76
  89. package/dist/cjs/ThumbnailCard.js +20 -22
  90. package/dist/cjs/Ustream.js +30 -31
  91. package/dist/cjs/VerticalHero.js +17 -18
  92. package/dist/cjs/VideoProgramLandingPage.js +73 -76
  93. package/dist/cjs/VideoSeriesCard.js +32 -33
  94. package/dist/cjs/VideoSeriesFilter.js +18 -18
  95. package/dist/cjs/VideoSeriesLandingPage.js +50 -50
  96. package/dist/cjs/VideoSeriesListing.js +78 -78
  97. package/dist/cjs/View.js +262 -264
  98. package/dist/cjs/YahooHero.js +39 -40
  99. package/dist/cjs/YoutubeGroup.js +62 -63
  100. package/dist/cjs/{_is-array-6128bd56.js → _is-array-754e012d.js} +6 -6
  101. package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-60b2f026.js} +8 -8
  102. package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
  103. package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-5e74ba08.js} +1 -1
  104. package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-5762f850.js} +2 -2
  105. package/dist/cjs/{_to-object-6de10e57.js → _to-object-329a650b.js} +8 -8
  106. package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-140e5f89.js} +32 -32
  107. package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
  108. package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
  109. package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
  110. package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
  111. package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.js} +1 -1
  112. package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
  113. package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
  114. package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
  115. package/dist/cjs/events-1b438fe7.js +469 -0
  116. package/dist/cjs/{extends-29bdbc6d.js → extends-0a918631.js} +7 -7
  117. package/dist/cjs/faundadb.js +7 -7
  118. package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
  119. package/dist/cjs/getRelatedArticle.js +12 -425
  120. package/dist/cjs/getRootDocGroup.js +6 -6
  121. package/dist/cjs/getSerializers.js +45 -44
  122. package/dist/cjs/{getTargeting-a100d6e5.js → getTargeting-021d644c.js} +3 -3
  123. package/dist/cjs/getTargeting.js +8 -8
  124. package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
  125. package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
  126. package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
  127. package/dist/cjs/{index-0e4427c8.js → index-98e01cb9.js} +13 -479
  128. package/dist/cjs/{index-70971c54.js → index-a8c4e3fd.js} +995 -1018
  129. package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
  130. package/dist/cjs/index-e2e62963.js +89 -0
  131. package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
  132. package/dist/cjs/{index.esm-2bb721c8.js → index.esm-4d410430.js} +21 -21
  133. package/dist/cjs/{index.esm-9225638f.js → index.esm-66ffa47a.js} +10 -5
  134. package/dist/cjs/{index.esm-00a6aade.js → index.esm-90433435.js} +16 -7
  135. package/dist/cjs/{index.esm-f27f80d9.js → index.esm-ff47db6f.js} +13 -6
  136. package/dist/cjs/index.js +163 -166
  137. package/dist/cjs/{inherits-c2065b95.js → inherits-9953db94.js} +22 -22
  138. package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
  139. package/dist/cjs/keys-a586b7a0.js +25 -0
  140. package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
  141. package/dist/cjs/main-02daeefe.js +862 -0
  142. package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
  143. package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
  144. package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
  145. package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
  146. package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
  147. package/dist/cjs/stringify-7c5aff47.js +17 -0
  148. package/dist/cjs/timeDifferenceCalc.js +1 -1
  149. package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
  150. package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
  151. package/dist/cjs/{typeof-88a668c5.js → typeof-725500bc.js} +36 -36
  152. package/dist/cjs/urlFor.js +2 -2
  153. package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-d092dc31.js} +4 -4
  154. package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
  155. package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
  156. package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.js} +3 -3
  157. package/dist/esm/AD.js +1 -1
  158. package/dist/esm/AD300x250.js +24 -23
  159. package/dist/esm/AD300x250x600.js +24 -23
  160. package/dist/esm/AD728x90.js +27 -26
  161. package/dist/esm/ADFloatingFooter.js +23 -22
  162. package/dist/esm/ADFooter.js +6 -6
  163. package/dist/esm/ADGutter.js +23 -22
  164. package/dist/esm/{ADInfeed-f7d00a9a.js → ADInfeed-31055afd.js} +6 -6
  165. package/dist/esm/ADSkyscraper.js +23 -22
  166. package/dist/esm/ADSponsoredResources.js +23 -22
  167. package/dist/esm/ADWebcast.js +23 -22
  168. package/dist/esm/ADWelcome.js +20 -19
  169. package/dist/esm/{ADlgInfeed-db64f46d.js → ADlgInfeed-dcb27a6c.js} +4 -4
  170. package/dist/esm/AccordionPanel.js +8 -8
  171. package/dist/esm/AdSlot.js +24 -23
  172. package/dist/esm/AdSlotsProvider.js +911 -38
  173. package/dist/esm/AlgoliaSearch.js +14091 -28
  174. package/dist/esm/AlphabeticList.js +10 -10
  175. package/dist/esm/ArticleCarousel.js +17 -17
  176. package/dist/esm/ArticleProgramLandingPage.js +49 -48
  177. package/dist/esm/ArticleSeriesLandingPage.js +33 -32
  178. package/dist/esm/ArticleSeriesListing.js +34 -33
  179. package/dist/esm/Auth.js +575 -595
  180. package/dist/esm/AuthWrapper.js +246 -287
  181. package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-34b16174.js} +1 -1
  182. package/dist/esm/Beam.js +8 -8
  183. package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-e9b4ddcf.js} +34 -34
  184. package/dist/esm/Breadcrumbs.js +7 -7
  185. package/dist/esm/CMEDeck.js +25 -24
  186. package/dist/esm/Column1.js +4 -4
  187. package/dist/esm/Column2.js +21 -21
  188. package/dist/esm/Column3.js +39 -38
  189. package/dist/esm/ConferenceArticleCard.js +7 -7
  190. package/dist/esm/DeckContent.js +49 -48
  191. package/dist/esm/DeckQueue.js +48 -47
  192. package/dist/esm/{Dfp-be030f2a.js → Dfp-b7236041.js} +15 -14
  193. package/dist/esm/EventsDeck.js +50 -50
  194. package/dist/esm/ExternalResources.js +48 -47
  195. package/dist/esm/Feature.js +4 -4
  196. package/dist/esm/ForbesHero.js +11 -11
  197. package/dist/esm/GridContent.js +180 -82
  198. package/dist/esm/GridHero.js +12 -12
  199. package/dist/esm/GroupDeck.js +13 -13
  200. package/dist/esm/HamMagazine.js +29 -29
  201. package/dist/esm/Hero.js +3 -3
  202. package/dist/esm/HighlightenVideo.js +2 -2
  203. package/dist/esm/HorizontalArticleListing.js +46 -45
  204. package/dist/esm/HorizontalHero.js +5 -5
  205. package/dist/esm/IssueContentDeck.js +26 -26
  206. package/dist/esm/IssueDeck.js +36 -36
  207. package/dist/esm/IssueLanding.js +55 -54
  208. package/dist/esm/LeftNav.js +22 -21
  209. package/dist/esm/MasterDeck.js +37 -36
  210. package/dist/esm/MediaSeriesLanding.js +644 -732
  211. package/dist/esm/NavDvm.js +16 -16
  212. package/dist/esm/NavMagazine.js +34 -34
  213. package/dist/esm/NavNative.js +34 -34
  214. package/dist/esm/NavNormal.js +18 -18
  215. package/dist/esm/OncliveHero.js +5 -4
  216. package/dist/esm/OncliveLargeHero.js +12 -12
  217. package/dist/esm/PageFilter.js +6 -6
  218. package/dist/esm/PartnerDetailListing.js +58 -57
  219. package/dist/esm/PdfDownload.js +2 -2
  220. package/dist/esm/PopUpModal.js +6 -6
  221. package/dist/esm/PubSection.js +34 -33
  222. package/dist/esm/PubToc.js +8 -8
  223. package/dist/esm/PublicationDeck.js +23 -23
  224. package/dist/esm/PublicationLanding.js +49 -49
  225. package/dist/esm/QueueDeckExpanded.js +38 -37
  226. package/dist/esm/RecentNews.js +6 -6
  227. package/dist/esm/RelatedContent.js +6 -6
  228. package/dist/esm/RolesDeck.js +12 -12
  229. package/dist/esm/Search.js +8 -8
  230. package/dist/esm/Segment.js +6 -6
  231. package/dist/esm/SeriesListingDeck.js +20 -19
  232. package/dist/esm/{SeriesSlider-c8477bf3.js → SeriesSlider-36be7223.js} +10 -10
  233. package/dist/esm/SetCookie.js +1 -1
  234. package/dist/esm/SideFooter.js +15 -15
  235. package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-03c3e869.js} +12 -12
  236. package/dist/esm/TaxonomyCard.js +24 -24
  237. package/dist/esm/TaxonomyDescription.js +46 -45
  238. package/dist/esm/TemplateNormal.js +51 -50
  239. package/dist/esm/ThumbnailCard.js +6 -6
  240. package/dist/esm/Ustream.js +14 -14
  241. package/dist/esm/VerticalHero.js +3 -3
  242. package/dist/esm/VideoProgramLandingPage.js +53 -52
  243. package/dist/esm/VideoSeriesCard.js +12 -12
  244. package/dist/esm/VideoSeriesFilter.js +9 -9
  245. package/dist/esm/VideoSeriesLandingPage.js +38 -37
  246. package/dist/esm/VideoSeriesListing.js +35 -34
  247. package/dist/esm/View.js +92 -90
  248. package/dist/esm/YahooHero.js +14 -14
  249. package/dist/esm/YoutubeGroup.js +21 -21
  250. package/dist/esm/{_is-array-3e99e06e.js → _is-array-58e95429.js} +6 -6
  251. package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-5d49a330.js} +8 -8
  252. package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
  253. package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-964b6feb.js} +1 -1
  254. package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-7e804fce.js} +2 -2
  255. package/dist/esm/{_to-object-b50e61c3.js → _to-object-a4107da3.js} +9 -9
  256. package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-fc1c2e29.js} +32 -32
  257. package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
  258. package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-e1de7503.js} +2 -2
  259. package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
  260. package/dist/esm/{define-property-fe54dc9f.js → define-property-8af5f002.js} +6 -6
  261. package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-94fd8bfc.js} +1 -1
  262. package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
  263. package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
  264. package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-c990c18c.js} +7 -7
  265. package/dist/esm/events-6c3a7a63.js +467 -0
  266. package/dist/esm/{extends-60e0e1c6.js → extends-6f2fcc99.js} +7 -7
  267. package/dist/esm/faundadb.js +7 -7
  268. package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
  269. package/dist/esm/getRelatedArticle.js +12 -425
  270. package/dist/esm/getRootDocGroup.js +6 -6
  271. package/dist/esm/getSerializers.js +45 -44
  272. package/dist/esm/{getTargeting-05c216d6.js → getTargeting-82e86707.js} +2 -2
  273. package/dist/esm/getTargeting.js +8 -8
  274. package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
  275. package/dist/esm/{index-5cc7b406.js → index-41a678ea.js} +4 -469
  276. package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
  277. package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
  278. package/dist/esm/{index-a30e3b71.js → index-782e414a.js} +616 -632
  279. package/dist/esm/index-aaa2dae0.js +85 -0
  280. package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
  281. package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
  282. package/dist/esm/{index.esm-f6156a57.js → index.esm-29e48d38.js} +16 -7
  283. package/dist/esm/{index.esm-e874e770.js → index.esm-b08f4b04.js} +10 -5
  284. package/dist/esm/{index.esm-d4932dea.js → index.esm-cf08bf18.js} +13 -6
  285. package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
  286. package/dist/esm/index.js +120 -120
  287. package/dist/esm/{inherits-a41fe93f.js → inherits-cf8dde54.js} +19 -19
  288. package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
  289. package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
  290. package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
  291. package/dist/esm/main-e4a934b2.js +851 -0
  292. package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
  293. package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
  294. package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
  295. package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
  296. package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
  297. package/dist/esm/stringify-4330ccdc.js +15 -0
  298. package/dist/esm/timeDifferenceCalc.js +1 -1
  299. package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
  300. package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
  301. package/dist/esm/{typeof-a286cf0c.js → typeof-6435ba1c.js} +36 -36
  302. package/dist/esm/urlFor.js +1 -1
  303. package/dist/esm/{ustream-api-33a866b6.js → ustream-api-9a50644d.js} +4 -4
  304. package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
  305. package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
  306. package/package.json +1 -1
  307. package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
  308. package/dist/cjs/index-bd6c9f56.js +0 -211
  309. package/dist/cjs/keys-7f2c2108.js +0 -25
  310. package/dist/cjs/main-f1c77adb.js +0 -973
  311. package/dist/cjs/stringify-c9ac1214.js +0 -17
  312. package/dist/esm/index-db3bb315.js +0 -207
  313. package/dist/esm/main-d4165069.js +0 -961
  314. package/dist/esm/stringify-59c8f690.js +0 -15
@@ -1,17 +1,910 @@
1
- import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
2
- import { _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
3
- import React__default, { useEffect } from 'react';
4
- import ReactGA from 'react-ga';
5
- import { l as lib_3, b as lib_1 } from './index-5cc7b406.js';
6
- import { e as main_24, m as main_43 } from './main-d4165069.js';
7
1
  import './_commonjsHelpers-0c4b6f40.js';
8
- import './es6.string.iterator-bc33758b.js';
9
- import './_to-object-b50e61c3.js';
10
- import './web.dom.iterable-4109ff68.js';
2
+ import './_to-object-a4107da3.js';
3
+ import './es6.string.iterator-c990c18c.js';
11
4
  import './_library-528f1934.js';
12
- import './core.get-iterator-method-133dfacd.js';
13
- import './_iter-detect-7e5e5ce2.js';
14
- import 'prop-types';
5
+ import './_iter-detect-5d49a330.js';
6
+ import { _ as _toConsumableArray$1 } from './toConsumableArray-43aa614d.js';
7
+ import './core.get-iterator-method-e1de7503.js';
8
+ import './web.dom.iterable-4439f05a.js';
9
+ import React__default, { Component, useEffect } from 'react';
10
+ import './events-6c3a7a63.js';
11
+ import { l as lib_3, b as lib_1 } from './index-41a678ea.js';
12
+ import PropTypes from 'prop-types';
13
+ import { e as main_22, m as main_36 } from './main-e4a934b2.js';
14
+ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
15
+
16
+ function warn(s) {
17
+ console.warn('[react-ga]', s);
18
+ }
19
+
20
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
21
+
22
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
23
+
24
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
25
+
26
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
27
+
28
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
29
+
30
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
31
+
32
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
33
+
34
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
35
+
36
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
37
+
38
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
39
+
40
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
41
+
42
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
43
+
44
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
45
+
46
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
47
+
48
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
49
+
50
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
51
+ var NEWTAB = '_blank';
52
+ var MIDDLECLICK = 1;
53
+
54
+ var OutboundLink = /*#__PURE__*/function (_Component) {
55
+ _inherits(OutboundLink, _Component);
56
+
57
+ var _super = _createSuper(OutboundLink);
58
+
59
+ function OutboundLink() {
60
+ var _this;
61
+
62
+ _classCallCheck(this, OutboundLink);
63
+
64
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
65
+ args[_key] = arguments[_key];
66
+ }
67
+
68
+ _this = _super.call.apply(_super, [this].concat(args));
69
+
70
+ _defineProperty(_assertThisInitialized(_this), "handleClick", function (event) {
71
+ var _this$props = _this.props,
72
+ target = _this$props.target,
73
+ eventLabel = _this$props.eventLabel,
74
+ to = _this$props.to,
75
+ onClick = _this$props.onClick,
76
+ trackerNames = _this$props.trackerNames;
77
+ var eventMeta = {
78
+ label: eventLabel
79
+ };
80
+ var sameTarget = target !== NEWTAB;
81
+ var normalClick = !(event.ctrlKey || event.shiftKey || event.metaKey || event.button === MIDDLECLICK);
82
+
83
+ if (sameTarget && normalClick) {
84
+ event.preventDefault();
85
+ OutboundLink.trackLink(eventMeta, function () {
86
+ window.location.href = to;
87
+ }, trackerNames);
88
+ } else {
89
+ OutboundLink.trackLink(eventMeta, function () {}, trackerNames);
90
+ }
91
+
92
+ if (onClick) {
93
+ onClick(event);
94
+ }
95
+ });
96
+
97
+ return _this;
98
+ }
99
+
100
+ _createClass(OutboundLink, [{
101
+ key: "render",
102
+ value: function render() {
103
+ var _this$props2 = this.props,
104
+ href = _this$props2.to,
105
+ target = _this$props2.target,
106
+ oldProps = _objectWithoutProperties(_this$props2, ["to", "target"]);
107
+
108
+ var props = _objectSpread(_objectSpread({}, oldProps), {}, {
109
+ target: target,
110
+ href: href,
111
+ onClick: this.handleClick
112
+ });
113
+
114
+ if (target === NEWTAB) {
115
+ props.rel = "".concat(props.rel ? props.rel : '', " noopener noreferrer").trim();
116
+ }
117
+
118
+ delete props.eventLabel;
119
+ delete props.trackerNames;
120
+ return /*#__PURE__*/React__default.createElement('a', props);
121
+ }
122
+ }]);
123
+
124
+ return OutboundLink;
125
+ }(Component);
126
+
127
+ _defineProperty(OutboundLink, "trackLink", function () {
128
+ warn('ga tracking not enabled');
129
+ });
130
+ OutboundLink.propTypes = {
131
+ eventLabel: PropTypes.string.isRequired,
132
+ target: PropTypes.string,
133
+ to: PropTypes.string,
134
+ onClick: PropTypes.func,
135
+ trackerNames: PropTypes.arrayOf(PropTypes.string)
136
+ };
137
+ OutboundLink.defaultProps = {
138
+ target: null,
139
+ to: null,
140
+ onClick: null,
141
+ trackerNames: null
142
+ };
143
+
144
+ // See if s could be an email address. We don't want to send personal data like email.
145
+ // https://support.google.com/analytics/answer/2795983?hl=en
146
+ function mightBeEmail(s) {
147
+ // There's no point trying to validate rfc822 fully, just look for ...@...
148
+ return typeof s === 'string' && s.indexOf('@') !== -1;
149
+ }
150
+
151
+ var redacted = 'REDACTED (Potential Email Address)';
152
+ function redactEmail(string) {
153
+ if (mightBeEmail(string)) {
154
+ warn('This arg looks like an email address, redacting.');
155
+ return redacted;
156
+ }
157
+
158
+ return string;
159
+ }
160
+
161
+ // GA strings need to have leading/trailing whitespace trimmed, and not all
162
+ // browsers have String.prototoype.trim().
163
+ function trim(s) {
164
+ return s && s.toString().replace(/^\s+|\s+$/g, '');
165
+ }
166
+
167
+ /**
168
+ * To Title Case 2.1 - http://individed.com/code/to-title-case/
169
+ * Copyright 2008-2013 David Gouch. Licensed under the MIT License.
170
+ * https://github.com/gouch/to-title-case
171
+ */
172
+ var smallWords = /^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i; // test
173
+
174
+ function toTitleCase(string) {
175
+ return trim(string).replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g, function (match, index, title) {
176
+ if (index > 0 && index + match.length !== title.length && match.search(smallWords) > -1 && title.charAt(index - 2) !== ':' && (title.charAt(index + match.length) !== '-' || title.charAt(index - 1) === '-') && title.charAt(index - 1).search(/[^\s-]/) < 0) {
177
+ return match.toLowerCase();
178
+ }
179
+
180
+ if (match.substr(1).search(/[A-Z]|\../) > -1) {
181
+ return match;
182
+ }
183
+
184
+ return match.charAt(0).toUpperCase() + match.substr(1);
185
+ });
186
+ }
187
+
188
+ function format() {
189
+ var s = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
190
+ var titleCase = arguments.length > 1 ? arguments[1] : undefined;
191
+ var redactingEmail = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
192
+
193
+ var _str = s || '';
194
+
195
+ if (titleCase) {
196
+ _str = toTitleCase(s);
197
+ }
198
+
199
+ if (redactingEmail) {
200
+ _str = redactEmail(_str);
201
+ }
202
+
203
+ return _str;
204
+ }
205
+
206
+ function removeLeadingSlash(string) {
207
+ if (string.substring(0, 1) === '/') {
208
+ return string.substring(1);
209
+ }
210
+
211
+ return string;
212
+ }
213
+
214
+ var isLoaded = false;
215
+ function loadGA (options) {
216
+ if (isLoaded) return;
217
+ isLoaded = true;
218
+ var gaAddress = 'https://www.google-analytics.com/analytics.js';
219
+
220
+ if (options && options.gaAddress) {
221
+ gaAddress = options.gaAddress;
222
+ } else if (options && options.debug) {
223
+ gaAddress = 'https://www.google-analytics.com/analytics_debug.js';
224
+ }
225
+
226
+ var onerror = options && options.onerror; // https://developers.google.com/analytics/devguides/collection/analyticsjs/
227
+
228
+ /* eslint-disable */
229
+
230
+ (function (i, s, o, g, r, a, m) {
231
+ i['GoogleAnalyticsObject'] = r;
232
+ i[r] = i[r] || function () {
233
+ (i[r].q = i[r].q || []).push(arguments);
234
+ }, i[r].l = 1 * new Date();
235
+ a = s.createElement(o), m = s.getElementsByTagName(o)[0];
236
+ a.async = 1;
237
+ a.src = g;
238
+ a.onerror = onerror;
239
+ m.parentNode.insertBefore(a, m);
240
+ })(window, document, 'script', gaAddress, 'ga');
241
+ /* eslint-enable */
242
+
243
+ }
244
+
245
+ function log(s) {
246
+ console.info('[react-ga]', s);
247
+ }
248
+
249
+ var gaCalls = [];
250
+ var TestModeAPI = {
251
+ calls: gaCalls,
252
+ ga: function ga() {
253
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
254
+ args[_key] = arguments[_key];
255
+ }
256
+
257
+ gaCalls.push([].concat(args));
258
+ },
259
+ resetCalls: function resetCalls() {
260
+ gaCalls.length = 0;
261
+ }
262
+ };
263
+
264
+ function _objectWithoutProperties$1(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
265
+
266
+ function _objectWithoutPropertiesLoose$1(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
267
+
268
+ function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
269
+
270
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
271
+
272
+ function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
273
+
274
+ function _typeof$1(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
275
+
276
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
277
+
278
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
279
+
280
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
281
+
282
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
283
+
284
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
285
+
286
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
287
+
288
+ var _isNotBrowser = typeof window === 'undefined' || typeof document === 'undefined';
289
+
290
+ var _debug = false;
291
+ var _titleCase = true;
292
+ var _testMode = false;
293
+ var _alwaysSendToDefaultTracker = true;
294
+ var _redactEmail = true;
295
+
296
+ var internalGa = function internalGa() {
297
+ var _window;
298
+
299
+ if (_testMode) return TestModeAPI.ga.apply(TestModeAPI, arguments);
300
+ if (_isNotBrowser) return false;
301
+ if (!window.ga) return warn('ReactGA.initialize must be called first or GoogleAnalytics should be loaded manually');
302
+ return (_window = window).ga.apply(_window, arguments);
303
+ };
304
+
305
+ function _format(s) {
306
+ return format(s, _titleCase, _redactEmail);
307
+ }
308
+
309
+ function _gaCommand(trackerNames) {
310
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
311
+ args[_key - 1] = arguments[_key];
312
+ }
313
+
314
+ var command = args[0];
315
+
316
+ if (typeof internalGa === 'function') {
317
+ if (typeof command !== 'string') {
318
+ warn('ga command must be a string');
319
+ return;
320
+ }
321
+
322
+ if (_alwaysSendToDefaultTracker || !Array.isArray(trackerNames)) internalGa.apply(void 0, args);
323
+
324
+ if (Array.isArray(trackerNames)) {
325
+ trackerNames.forEach(function (name) {
326
+ internalGa.apply(void 0, _toConsumableArray(["".concat(name, ".").concat(command)].concat(args.slice(1))));
327
+ });
328
+ }
329
+ }
330
+ }
331
+
332
+ function _initialize(gaTrackingID, options) {
333
+ if (!gaTrackingID) {
334
+ warn('gaTrackingID is required in initialize()');
335
+ return;
336
+ }
337
+
338
+ if (options) {
339
+ if (options.debug && options.debug === true) {
340
+ _debug = true;
341
+ }
342
+
343
+ if (options.titleCase === false) {
344
+ _titleCase = false;
345
+ }
346
+
347
+ if (options.redactEmail === false) {
348
+ _redactEmail = false;
349
+ }
350
+
351
+ if (options.useExistingGa) {
352
+ return;
353
+ }
354
+ }
355
+
356
+ if (options && options.gaOptions) {
357
+ internalGa('create', gaTrackingID, options.gaOptions);
358
+ } else {
359
+ internalGa('create', gaTrackingID, 'auto');
360
+ }
361
+ }
362
+
363
+ function addTrackers(configsOrTrackingId, options) {
364
+ if (Array.isArray(configsOrTrackingId)) {
365
+ configsOrTrackingId.forEach(function (config) {
366
+ if (_typeof$1(config) !== 'object') {
367
+ warn('All configs must be an object');
368
+ return;
369
+ }
370
+
371
+ _initialize(config.trackingId, config);
372
+ });
373
+ } else {
374
+ _initialize(configsOrTrackingId, options);
375
+ }
376
+
377
+ return true;
378
+ }
379
+ function initialize(configsOrTrackingId, options) {
380
+ if (options && options.testMode === true) {
381
+ _testMode = true;
382
+ } else {
383
+ if (_isNotBrowser) {
384
+ return;
385
+ }
386
+
387
+ if (!options || options.standardImplementation !== true) loadGA(options);
388
+ }
389
+
390
+ _alwaysSendToDefaultTracker = options && typeof options.alwaysSendToDefaultTracker === 'boolean' ? options.alwaysSendToDefaultTracker : true;
391
+ addTrackers(configsOrTrackingId, options);
392
+ }
393
+ /**
394
+ * ga:
395
+ * Returns the original GA object.
396
+ */
397
+
398
+ function ga() {
399
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
400
+ args[_key2] = arguments[_key2];
401
+ }
402
+
403
+ if (args.length > 0) {
404
+ internalGa.apply(void 0, args);
405
+
406
+ if (_debug) {
407
+ log("called ga('arguments');");
408
+ log("with arguments: ".concat(JSON.stringify(args)));
409
+ }
410
+ }
411
+
412
+ return window.ga;
413
+ }
414
+ /**
415
+ * set:
416
+ * GA tracker set method
417
+ * @param {Object} fieldsObject - a field/value pair or a group of field/value pairs on the tracker
418
+ * @param {Array} trackerNames - (optional) a list of extra trackers to run the command on
419
+ */
420
+
421
+ function set(fieldsObject, trackerNames) {
422
+ if (!fieldsObject) {
423
+ warn('`fieldsObject` is required in .set()');
424
+ return;
425
+ }
426
+
427
+ if (_typeof$1(fieldsObject) !== 'object') {
428
+ warn('Expected `fieldsObject` arg to be an Object');
429
+ return;
430
+ }
431
+
432
+ if (Object.keys(fieldsObject).length === 0) {
433
+ warn('empty `fieldsObject` given to .set()');
434
+ }
435
+
436
+ _gaCommand(trackerNames, 'set', fieldsObject);
437
+
438
+ if (_debug) {
439
+ log("called ga('set', fieldsObject);");
440
+ log("with fieldsObject: ".concat(JSON.stringify(fieldsObject)));
441
+ }
442
+ }
443
+ /**
444
+ * send:
445
+ * Clone of the low level `ga.send` method
446
+ * WARNING: No validations will be applied to this
447
+ * @param {Object} fieldObject - field object for tracking different analytics
448
+ * @param {Array} trackerNames - trackers to send the command to
449
+ * @param {Array} trackerNames - (optional) a list of extra trackers to run the command on
450
+ */
451
+
452
+ function send(fieldObject, trackerNames) {
453
+ _gaCommand(trackerNames, 'send', fieldObject);
454
+
455
+ if (_debug) {
456
+ log("called ga('send', fieldObject);");
457
+ log("with fieldObject: ".concat(JSON.stringify(fieldObject)));
458
+ log("with trackers: ".concat(JSON.stringify(trackerNames)));
459
+ }
460
+ }
461
+ /**
462
+ * pageview:
463
+ * Basic GA pageview tracking
464
+ * @param {String} path - the current page page e.g. '/about'
465
+ * @param {Array} trackerNames - (optional) a list of extra trackers to run the command on
466
+ * @param {String} title - (optional) the page title e. g. 'My Website'
467
+ */
468
+
469
+ function pageview(rawPath, trackerNames, title) {
470
+ if (!rawPath) {
471
+ warn('path is required in .pageview()');
472
+ return;
473
+ }
474
+
475
+ var path = trim(rawPath);
476
+
477
+ if (path === '') {
478
+ warn('path cannot be an empty string in .pageview()');
479
+ return;
480
+ }
481
+
482
+ var extraFields = {};
483
+
484
+ if (title) {
485
+ extraFields.title = title;
486
+ }
487
+
488
+ if (typeof ga === 'function') {
489
+ _gaCommand(trackerNames, 'send', _objectSpread$1({
490
+ hitType: 'pageview',
491
+ page: path
492
+ }, extraFields));
493
+
494
+ if (_debug) {
495
+ log("called ga('send', 'pageview', path);");
496
+ var extraLog = '';
497
+
498
+ if (title) {
499
+ extraLog = " and title: ".concat(title);
500
+ }
501
+
502
+ log("with path: ".concat(path).concat(extraLog));
503
+ }
504
+ }
505
+ }
506
+ /**
507
+ * modalview:
508
+ * a proxy to basic GA pageview tracking to consistently track
509
+ * modal views that are an equivalent UX to a traditional pageview
510
+ * @param {String} modalName e.g. 'add-or-edit-club'
511
+ * @param {Array} trackerNames - (optional) a list of extra trackers to run the command on
512
+ */
513
+
514
+ function modalview(rawModalName, trackerNames) {
515
+ if (!rawModalName) {
516
+ warn('modalName is required in .modalview(modalName)');
517
+ return;
518
+ }
519
+
520
+ var modalName = removeLeadingSlash(trim(rawModalName));
521
+
522
+ if (modalName === '') {
523
+ warn('modalName cannot be an empty string or a single / in .modalview()');
524
+ return;
525
+ }
526
+
527
+ if (typeof ga === 'function') {
528
+ var path = "/modal/".concat(modalName);
529
+
530
+ _gaCommand(trackerNames, 'send', 'pageview', path);
531
+
532
+ if (_debug) {
533
+ log("called ga('send', 'pageview', path);");
534
+ log("with path: ".concat(path));
535
+ }
536
+ }
537
+ }
538
+ /**
539
+ * timing:
540
+ * GA timing
541
+ * @param args.category {String} required
542
+ * @param args.variable {String} required
543
+ * @param args.value {Int} required
544
+ * @param args.label {String} required
545
+ * @param {Array} trackerNames - (optional) a list of extra trackers to run the command on
546
+ */
547
+
548
+ function timing() {
549
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
550
+ category = _ref.category,
551
+ variable = _ref.variable,
552
+ value = _ref.value,
553
+ label = _ref.label;
554
+
555
+ var trackerNames = arguments.length > 1 ? arguments[1] : undefined;
556
+
557
+ if (typeof ga === 'function') {
558
+ if (!category || !variable || typeof value !== 'number') {
559
+ warn('args.category, args.variable ' + 'AND args.value are required in timing() ' + 'AND args.value has to be a number');
560
+ return;
561
+ } // Required Fields
562
+
563
+
564
+ var fieldObject = {
565
+ hitType: 'timing',
566
+ timingCategory: _format(category),
567
+ timingVar: _format(variable),
568
+ timingValue: value
569
+ };
570
+
571
+ if (label) {
572
+ fieldObject.timingLabel = _format(label);
573
+ }
574
+
575
+ send(fieldObject, trackerNames);
576
+ }
577
+ }
578
+ /**
579
+ * event:
580
+ * GA event tracking
581
+ * @param args.category {String} required
582
+ * @param args.action {String} required
583
+ * @param args.label {String} optional
584
+ * @param args.value {Int} optional
585
+ * @param args.nonInteraction {boolean} optional
586
+ * @param args.transport {string} optional
587
+ * @param {{action: string, category: string}} trackerNames - (optional) a list of extra trackers to run the command on
588
+ */
589
+
590
+ function event() {
591
+ var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
592
+ category = _ref2.category,
593
+ action = _ref2.action,
594
+ label = _ref2.label,
595
+ value = _ref2.value,
596
+ nonInteraction = _ref2.nonInteraction,
597
+ transport = _ref2.transport,
598
+ args = _objectWithoutProperties$1(_ref2, ["category", "action", "label", "value", "nonInteraction", "transport"]);
599
+
600
+ var trackerNames = arguments.length > 1 ? arguments[1] : undefined;
601
+
602
+ if (typeof ga === 'function') {
603
+ // Simple Validation
604
+ if (!category || !action) {
605
+ warn('args.category AND args.action are required in event()');
606
+ return;
607
+ } // Required Fields
608
+
609
+
610
+ var fieldObject = {
611
+ hitType: 'event',
612
+ eventCategory: _format(category),
613
+ eventAction: _format(action)
614
+ }; // Optional Fields
615
+
616
+ if (label) {
617
+ fieldObject.eventLabel = _format(label);
618
+ }
619
+
620
+ if (typeof value !== 'undefined') {
621
+ if (typeof value !== 'number') {
622
+ warn('Expected `args.value` arg to be a Number.');
623
+ } else {
624
+ fieldObject.eventValue = value;
625
+ }
626
+ }
627
+
628
+ if (typeof nonInteraction !== 'undefined') {
629
+ if (typeof nonInteraction !== 'boolean') {
630
+ warn('`args.nonInteraction` must be a boolean.');
631
+ } else {
632
+ fieldObject.nonInteraction = nonInteraction;
633
+ }
634
+ }
635
+
636
+ if (typeof transport !== 'undefined') {
637
+ if (typeof transport !== 'string') {
638
+ warn('`args.transport` must be a string.');
639
+ } else {
640
+ if (['beacon', 'xhr', 'image'].indexOf(transport) === -1) {
641
+ warn('`args.transport` must be either one of these values: `beacon`, `xhr` or `image`');
642
+ }
643
+
644
+ fieldObject.transport = transport;
645
+ }
646
+ }
647
+
648
+ Object.keys(args).filter(function (key) {
649
+ return key.substr(0, 'dimension'.length) === 'dimension';
650
+ }).forEach(function (key) {
651
+ fieldObject[key] = args[key];
652
+ });
653
+ Object.keys(args).filter(function (key) {
654
+ return key.substr(0, 'metric'.length) === 'metric';
655
+ }).forEach(function (key) {
656
+ fieldObject[key] = args[key];
657
+ }); // Send to GA
658
+
659
+ send(fieldObject, trackerNames);
660
+ }
661
+ }
662
+ /**
663
+ * exception:
664
+ * GA exception tracking
665
+ * @param args.description {String} optional
666
+ * @param args.fatal {boolean} optional
667
+ * @param {Array} trackerNames - (optional) a list of extra trackers to run the command on
668
+ */
669
+
670
+ function exception(_ref3, trackerNames) {
671
+ var description = _ref3.description,
672
+ fatal = _ref3.fatal;
673
+
674
+ if (typeof ga === 'function') {
675
+ // Required Fields
676
+ var fieldObject = {
677
+ hitType: 'exception'
678
+ }; // Optional Fields
679
+
680
+ if (description) {
681
+ fieldObject.exDescription = _format(description);
682
+ }
683
+
684
+ if (typeof fatal !== 'undefined') {
685
+ if (typeof fatal !== 'boolean') {
686
+ warn('`args.fatal` must be a boolean.');
687
+ } else {
688
+ fieldObject.exFatal = fatal;
689
+ }
690
+ } // Send to GA
691
+
692
+
693
+ send(fieldObject, trackerNames);
694
+ }
695
+ }
696
+ var plugin = {
697
+ /**
698
+ * require:
699
+ * GA requires a plugin
700
+ * @param name {String} e.g. 'ecommerce' or 'myplugin'
701
+ * @param options {Object} optional e.g {path: '/log', debug: true}
702
+ * @param trackerName {String} optional e.g 'trackerName'
703
+ */
704
+ require: function require(rawName, options, trackerName) {
705
+ if (typeof ga === 'function') {
706
+ // Required Fields
707
+ if (!rawName) {
708
+ warn('`name` is required in .require()');
709
+ return;
710
+ }
711
+
712
+ var name = trim(rawName);
713
+
714
+ if (name === '') {
715
+ warn('`name` cannot be an empty string in .require()');
716
+ return;
717
+ }
718
+
719
+ var requireString = trackerName ? "".concat(trackerName, ".require") : 'require'; // Optional Fields
720
+
721
+ if (options) {
722
+ if (_typeof$1(options) !== 'object') {
723
+ warn('Expected `options` arg to be an Object');
724
+ return;
725
+ }
726
+
727
+ if (Object.keys(options).length === 0) {
728
+ warn('Empty `options` given to .require()');
729
+ }
730
+
731
+ ga(requireString, name, options);
732
+
733
+ if (_debug) {
734
+ log("called ga('require', '".concat(name, "', ").concat(JSON.stringify(options)));
735
+ }
736
+ } else {
737
+ ga(requireString, name);
738
+
739
+ if (_debug) {
740
+ log("called ga('require', '".concat(name, "');"));
741
+ }
742
+ }
743
+ }
744
+ },
745
+
746
+ /**
747
+ * execute:
748
+ * GA execute action for plugin
749
+ * Takes variable number of arguments
750
+ * @param pluginName {String} e.g. 'ecommerce' or 'myplugin'
751
+ * @param action {String} e.g. 'addItem' or 'myCustomAction'
752
+ * @param actionType {String} optional e.g. 'detail'
753
+ * @param payload {Object} optional e.g { id: '1x5e', name : 'My product to track' }
754
+ */
755
+ execute: function execute(pluginName, action) {
756
+ var payload;
757
+ var actionType;
758
+
759
+ for (var _len3 = arguments.length, args = new Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) {
760
+ args[_key3 - 2] = arguments[_key3];
761
+ }
762
+
763
+ if (args.length === 1) {
764
+ payload = args[0];
765
+ } else {
766
+ actionType = args[0];
767
+ payload = args[1];
768
+ }
769
+
770
+ if (typeof ga === 'function') {
771
+ if (typeof pluginName !== 'string') {
772
+ warn('Expected `pluginName` arg to be a String.');
773
+ } else if (typeof action !== 'string') {
774
+ warn('Expected `action` arg to be a String.');
775
+ } else {
776
+ var command = "".concat(pluginName, ":").concat(action);
777
+ payload = payload || null;
778
+
779
+ if (actionType && payload) {
780
+ ga(command, actionType, payload);
781
+
782
+ if (_debug) {
783
+ log("called ga('".concat(command, "');"));
784
+ log("actionType: \"".concat(actionType, "\" with payload: ").concat(JSON.stringify(payload)));
785
+ }
786
+ } else if (payload) {
787
+ ga(command, payload);
788
+
789
+ if (_debug) {
790
+ log("called ga('".concat(command, "');"));
791
+ log("with payload: ".concat(JSON.stringify(payload)));
792
+ }
793
+ } else {
794
+ ga(command);
795
+
796
+ if (_debug) {
797
+ log("called ga('".concat(command, "');"));
798
+ }
799
+ }
800
+ }
801
+ }
802
+ }
803
+ };
804
+ /**
805
+ * outboundLink:
806
+ * GA outboundLink tracking
807
+ * @param args.label {String} e.g. url, or 'Create an Account'
808
+ * @param {function} hitCallback - Called after processing a hit.
809
+ */
810
+
811
+ function outboundLink(args, hitCallback, trackerNames) {
812
+ if (typeof hitCallback !== 'function') {
813
+ warn('hitCallback function is required');
814
+ return;
815
+ }
816
+
817
+ if (typeof ga === 'function') {
818
+ // Simple Validation
819
+ if (!args || !args.label) {
820
+ warn('args.label is required in outboundLink()');
821
+ return;
822
+ } // Required Fields
823
+
824
+
825
+ var fieldObject = {
826
+ hitType: 'event',
827
+ eventCategory: 'Outbound',
828
+ eventAction: 'Click',
829
+ eventLabel: _format(args.label)
830
+ };
831
+ var safetyCallbackCalled = false;
832
+
833
+ var safetyCallback = function safetyCallback() {
834
+ // This prevents a delayed response from GA
835
+ // causing hitCallback from being fired twice
836
+ safetyCallbackCalled = true;
837
+ hitCallback();
838
+ }; // Using a timeout to ensure the execution of critical application code
839
+ // in the case when the GA server might be down
840
+ // or an ad blocker prevents sending the data
841
+ // register safety net timeout:
842
+
843
+
844
+ var t = setTimeout(safetyCallback, 250);
845
+
846
+ var clearableCallbackForGA = function clearableCallbackForGA() {
847
+ clearTimeout(t);
848
+
849
+ if (!safetyCallbackCalled) {
850
+ hitCallback();
851
+ }
852
+ };
853
+
854
+ fieldObject.hitCallback = clearableCallbackForGA; // Send to GA
855
+
856
+ send(fieldObject, trackerNames);
857
+ } else {
858
+ // if ga is not defined, return the callback so the application
859
+ // continues to work as expected
860
+ setTimeout(hitCallback, 0);
861
+ }
862
+ }
863
+ var testModeAPI = TestModeAPI;
864
+ var core = {
865
+ initialize: initialize,
866
+ ga: ga,
867
+ set: set,
868
+ send: send,
869
+ pageview: pageview,
870
+ modalview: modalview,
871
+ timing: timing,
872
+ event: event,
873
+ exception: exception,
874
+ plugin: plugin,
875
+ outboundLink: outboundLink,
876
+ testModeAPI: TestModeAPI
877
+ };
878
+
879
+ var Defaults = /*#__PURE__*/Object.freeze({
880
+ __proto__: null,
881
+ addTrackers: addTrackers,
882
+ initialize: initialize,
883
+ ga: ga,
884
+ set: set,
885
+ send: send,
886
+ pageview: pageview,
887
+ modalview: modalview,
888
+ timing: timing,
889
+ event: event,
890
+ exception: exception,
891
+ plugin: plugin,
892
+ outboundLink: outboundLink,
893
+ testModeAPI: testModeAPI,
894
+ 'default': core
895
+ });
896
+
897
+ function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
898
+
899
+ function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(Object(source), true).forEach(function (key) { _defineProperty$2(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
900
+
901
+ function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
902
+ OutboundLink.origTrackLink = OutboundLink.trackLink;
903
+ OutboundLink.trackLink = outboundLink;
904
+ var OutboundLink$1 = OutboundLink;
905
+ _objectSpread$2(_objectSpread$2({}, Defaults), {}, {
906
+ OutboundLink: OutboundLink$1
907
+ });
15
908
 
16
909
  var _this = undefined;
17
910
 
@@ -28,26 +921,6 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
28
921
  refreshADs = _ref$refreshADs === undefined ? {} : _ref$refreshADs,
29
922
  _ref$refreshInterval = _ref.refreshInterval,
30
923
  refreshInterval = _ref$refreshInterval === undefined ? 60 : _ref$refreshInterval;
31
-
32
-
33
- var logEvent = function logEvent(action, category, GA_TRACKING_ID) {
34
- if (!GA_TRACKING_ID && typeof window !== 'undefined') GA_TRACKING_ID = sessionStorage.getItem('GA_TRACKING_ID');
35
-
36
- if (GA_TRACKING_ID && GA_TRACKING_ID.includes(',')) {
37
- ReactGA.event({
38
- category: category,
39
- action: action
40
-
41
- }, GA_TRACKING_ID.split(',').map(function (id, index) {
42
- return 'ga_id_' + ++index;
43
- }));
44
- } else {
45
- ReactGA.event({
46
- category: category,
47
- action: action
48
- });
49
- }
50
- };
51
924
  useEffect(function () {
52
925
  // Refresh ADs after every one minute if user didn't scroll.
53
926
  // refreshInterval accepts time in seconds and default is 60 seconds
@@ -76,7 +949,7 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
76
949
  adsToRefresh = domAds.reduce(function (acc, item) {
77
950
  ads.forEach(function (ad) {
78
951
  if (item.includes(ad)) {
79
- acc = [].concat(_toConsumableArray(acc), [item]);
952
+ acc = [].concat(_toConsumableArray$1(acc), [item]);
80
953
  }
81
954
  });
82
955
  return acc;
@@ -110,7 +983,7 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
110
983
  _refreshADs$mobileAds = refreshADs.mobileAds, mobileAds = _refreshADs$mobileAds === undefined ? ['leaderboard-ad'] : _refreshADs$mobileAds, _refreshADs$desktopAd = refreshADs.desktopAds, desktopAds = _refreshADs$desktopAd === undefined ? [] : _refreshADs$desktopAd;
111
984
  ads = [];
112
985
 
113
- if (!main_43) {
986
+ if (!main_36) {
114
987
  _context2.next = 8;
115
988
  break;
116
989
  }
@@ -124,7 +997,7 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
124
997
  break;
125
998
 
126
999
  case 8:
127
- if (!main_24) {
1000
+ if (!main_22) {
128
1001
  _context2.next = 12;
129
1002
  break;
130
1003
  }
@@ -136,10 +1009,10 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
136
1009
  ads = _context2.sent;
137
1010
 
138
1011
  case 12:
139
- lib_3.refresh.apply(lib_3, _toConsumableArray(ads));
140
- logEvent('AD Refresh', 'AD');
1012
+ lib_3.refresh.apply(lib_3, _toConsumableArray$1(ads));
1013
+ //logEvent('AD Refresh', 'AD')
141
1014
 
142
- case 14:
1015
+ case 13:
143
1016
  case 'end':
144
1017
  return _context2.stop();
145
1018
  }