@mjhls/mjh-framework 1.0.850-affiliatefix-v1 → 1.0.850-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 (318) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +9 -10
  3. package/dist/cjs/AD300x250.js +30 -31
  4. package/dist/cjs/AD300x250x600.js +30 -31
  5. package/dist/cjs/AD728x90.js +33 -34
  6. package/dist/cjs/ADFloatingFooter.js +32 -33
  7. package/dist/cjs/ADFooter.js +14 -15
  8. package/dist/cjs/ADGutter.js +32 -33
  9. package/dist/cjs/{ADInfeed-859820d9.js → ADInfeed-98c71bcd.js} +13 -15
  10. package/dist/cjs/ADSkyscraper.js +32 -33
  11. package/dist/cjs/ADSponsoredResources.js +32 -33
  12. package/dist/cjs/ADWebcast.js +32 -33
  13. package/dist/cjs/ADWelcome.js +33 -34
  14. package/dist/cjs/{ADlgInfeed-da3a36a6.js → ADlgInfeed-9de32585.js} +10 -11
  15. package/dist/cjs/AccordionPanel.js +29 -31
  16. package/dist/cjs/AdSlot.js +101 -34
  17. package/dist/cjs/AdSlotsProvider.js +925 -24
  18. package/dist/cjs/AlgoliaSearch.js +1276 -1371
  19. package/dist/cjs/AlphabeticList.js +25 -26
  20. package/dist/cjs/ArticleCarousel.js +23 -24
  21. package/dist/cjs/ArticleProgramLandingPage.js +59 -60
  22. package/dist/cjs/ArticleSeriesLandingPage.js +40 -41
  23. package/dist/cjs/ArticleSeriesListing.js +61 -62
  24. package/dist/cjs/Auth.js +462 -686
  25. package/dist/cjs/AuthWrapper.js +423 -1739
  26. package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-bb831b74.js} +13 -14
  27. package/dist/cjs/Beam.js +8 -8
  28. package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-091a991f.js} +55 -56
  29. package/dist/cjs/Breadcrumbs.js +27 -29
  30. package/dist/cjs/CMEDeck.js +83 -83
  31. package/dist/cjs/Column1.js +11 -14
  32. package/dist/cjs/Column2.js +33 -36
  33. package/dist/cjs/Column3.js +59 -62
  34. package/dist/cjs/ConferenceArticleCard.js +37 -38
  35. package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
  36. package/dist/cjs/DeckContent.js +103 -107
  37. package/dist/cjs/DeckQueue.js +90 -94
  38. package/dist/cjs/{Dfp-93399f8c.js → Dfp-26baccf1.js} +34 -35
  39. package/dist/cjs/EventsDeck.js +152 -159
  40. package/dist/cjs/ExternalResources.js +80 -81
  41. package/dist/cjs/Feature.js +24 -26
  42. package/dist/cjs/ForbesHero.js +42 -43
  43. package/dist/cjs/GridContent.js +304 -190
  44. package/dist/cjs/GridHero.js +44 -45
  45. package/dist/cjs/GroupDeck.js +59 -60
  46. package/dist/cjs/HamMagazine.js +141 -146
  47. package/dist/cjs/Header.js +12 -14
  48. package/dist/cjs/Hero.js +12 -13
  49. package/dist/cjs/HighlightenVideo.js +17 -18
  50. package/dist/cjs/HorizontalArticleListing.js +72 -73
  51. package/dist/cjs/HorizontalHero.js +25 -26
  52. package/dist/cjs/IssueContentDeck.js +73 -78
  53. package/dist/cjs/IssueDeck.js +72 -77
  54. package/dist/cjs/IssueLanding.js +93 -96
  55. package/dist/cjs/KMTracker.js +15 -15
  56. package/dist/cjs/LeftNav.js +39 -41
  57. package/dist/cjs/MasterDeck.js +80 -81
  58. package/dist/cjs/MediaSeriesLanding.js +1137 -1228
  59. package/dist/cjs/NavDvm.js +74 -79
  60. package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
  61. package/dist/cjs/NavMagazine.js +148 -153
  62. package/dist/cjs/NavNative.js +145 -153
  63. package/dist/cjs/OncliveHero.js +19 -19
  64. package/dist/cjs/OncliveLargeHero.js +72 -73
  65. package/dist/cjs/PageFilter.js +14 -15
  66. package/dist/cjs/PartnerDetailListing.js +1205 -115
  67. package/dist/cjs/PdfDownload.js +9 -10
  68. package/dist/cjs/PopUpModal.js +19 -21
  69. package/dist/cjs/PubSection.js +40 -43
  70. package/dist/cjs/PubToc.js +15 -16
  71. package/dist/cjs/PublicationDeck.js +62 -67
  72. package/dist/cjs/PublicationLanding.js +135 -139
  73. package/dist/cjs/QueueDeckExpanded.js +1150 -1131
  74. package/dist/cjs/RecentNews.js +22 -23
  75. package/dist/cjs/RelatedContent.js +54 -55
  76. package/dist/cjs/RelatedTopicsDropdown.js +29 -32
  77. package/dist/cjs/RolesDeck.js +27 -32
  78. package/dist/cjs/Search.js +18 -22
  79. package/dist/cjs/Segment.js +368 -343
  80. package/dist/cjs/SeriesListingDeck.js +38 -38
  81. package/dist/cjs/{SeriesSlider-34c6cc2b.js → SeriesSlider-8bbc989f.js} +39 -40
  82. package/dist/cjs/SetCookie.js +1 -1
  83. package/dist/cjs/SideFooter.js +38 -39
  84. package/dist/cjs/SocialIcons.js +9 -10
  85. package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-cea213aa.js} +36 -40
  86. package/dist/cjs/SocialShare.js +29 -31
  87. package/dist/cjs/TaxonomyCard.js +59 -64
  88. package/dist/cjs/TaxonomyDescription.js +55 -56
  89. package/dist/cjs/TemplateNormal.js +74 -75
  90. package/dist/cjs/ThumbnailCard.js +21 -23
  91. package/dist/cjs/Ustream.js +30 -31
  92. package/dist/cjs/VerticalHero.js +16 -17
  93. package/dist/cjs/VideoProgramLandingPage.js +74 -78
  94. package/dist/cjs/VideoSeriesCard.js +32 -33
  95. package/dist/cjs/VideoSeriesFilter.js +18 -18
  96. package/dist/cjs/VideoSeriesLandingPage.js +49 -50
  97. package/dist/cjs/VideoSeriesListing.js +82 -81
  98. package/dist/cjs/View.js +342 -264
  99. package/dist/cjs/YahooHero.js +41 -42
  100. package/dist/cjs/YoutubeGroup.js +66 -67
  101. package/dist/cjs/{_is-array-6128bd56.js → _is-array-754e012d.js} +6 -6
  102. package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-60b2f026.js} +8 -8
  103. package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
  104. package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-5e74ba08.js} +1 -1
  105. package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-5762f850.js} +2 -2
  106. package/dist/cjs/{_to-object-6de10e57.js → _to-object-329a650b.js} +8 -8
  107. package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-140e5f89.js} +32 -32
  108. package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
  109. package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
  110. package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
  111. package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
  112. package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.js} +1 -1
  113. package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
  114. package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
  115. package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
  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/getQuery.js +2 -2
  120. package/dist/cjs/getRelatedArticle.js +20 -20
  121. package/dist/cjs/getRootDocGroup.js +6 -6
  122. package/dist/cjs/getSerializers.js +45 -45
  123. package/dist/cjs/{getTargeting-be6168ad.js → getTargeting-f1821260.js} +26 -17
  124. package/dist/cjs/getTargeting.js +8 -8
  125. package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
  126. package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
  127. package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
  128. package/dist/cjs/{index-fc2f1ca2.js → index-98e01cb9.js} +12 -13
  129. package/dist/cjs/{index-060c5d65.js → index-bc88f898.js} +1039 -1005
  130. package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
  131. package/dist/cjs/{index-50be6759.js → index-e2e62963.js} +10 -26
  132. package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
  133. package/dist/cjs/{index.esm-2bb721c8.js → index.esm-4d410430.js} +21 -21
  134. package/dist/cjs/{index.esm-00a6aade.js → index.esm-90433435.js} +16 -7
  135. package/dist/cjs/{index.esm-c1e16606.js → index.esm-e32d3e8e.js} +7 -4
  136. package/dist/cjs/{index.esm-f27f80d9.js → index.esm-ff47db6f.js} +13 -6
  137. package/dist/cjs/index.js +164 -169
  138. package/dist/cjs/{inherits-c2065b95.js → inherits-452ff02c.js} +19 -19
  139. package/dist/cjs/inherits-8d29278d.js +110 -0
  140. package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
  141. package/dist/cjs/keys-a586b7a0.js +25 -0
  142. package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
  143. package/dist/cjs/main-02daeefe.js +862 -0
  144. package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
  145. package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
  146. package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
  147. package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
  148. package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
  149. package/dist/cjs/stringify-7c5aff47.js +17 -0
  150. package/dist/cjs/timeDifferenceCalc.js +1 -1
  151. package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
  152. package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
  153. package/dist/cjs/{typeof-88a668c5.js → typeof-725500bc.js} +36 -36
  154. package/dist/cjs/urlFor.js +3 -3
  155. package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-d092dc31.js} +4 -4
  156. package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
  157. package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
  158. package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.js} +3 -3
  159. package/dist/esm/AD.js +1 -1
  160. package/dist/esm/AD300x250.js +24 -24
  161. package/dist/esm/AD300x250x600.js +24 -24
  162. package/dist/esm/AD728x90.js +27 -27
  163. package/dist/esm/ADFloatingFooter.js +23 -23
  164. package/dist/esm/ADFooter.js +6 -6
  165. package/dist/esm/ADGutter.js +23 -23
  166. package/dist/esm/{ADInfeed-4bf3b2f9.js → ADInfeed-bbdd5398.js} +6 -6
  167. package/dist/esm/ADSkyscraper.js +23 -23
  168. package/dist/esm/ADSponsoredResources.js +23 -23
  169. package/dist/esm/ADWebcast.js +23 -23
  170. package/dist/esm/ADWelcome.js +20 -20
  171. package/dist/esm/{ADlgInfeed-a3377c4a.js → ADlgInfeed-4473ee3b.js} +4 -4
  172. package/dist/esm/AccordionPanel.js +8 -8
  173. package/dist/esm/AdSlot.js +92 -24
  174. package/dist/esm/AdSlotsProvider.js +922 -20
  175. package/dist/esm/AlgoliaSearch.js +505 -599
  176. package/dist/esm/AlphabeticList.js +10 -10
  177. package/dist/esm/ArticleCarousel.js +17 -17
  178. package/dist/esm/ArticleProgramLandingPage.js +50 -50
  179. package/dist/esm/ArticleSeriesLandingPage.js +32 -32
  180. package/dist/esm/ArticleSeriesListing.js +34 -34
  181. package/dist/esm/Auth.js +375 -595
  182. package/dist/esm/AuthWrapper.js +396 -1711
  183. package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-34b16174.js} +1 -1
  184. package/dist/esm/Beam.js +8 -8
  185. package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-e9b4ddcf.js} +34 -34
  186. package/dist/esm/Breadcrumbs.js +7 -7
  187. package/dist/esm/CMEDeck.js +24 -24
  188. package/dist/esm/Column1.js +4 -4
  189. package/dist/esm/Column2.js +21 -21
  190. package/dist/esm/Column3.js +39 -39
  191. package/dist/esm/ConferenceArticleCard.js +22 -22
  192. package/dist/esm/DeckContent.js +57 -57
  193. package/dist/esm/DeckQueue.js +50 -50
  194. package/dist/esm/{Dfp-2c43d2a0.js → Dfp-b7236041.js} +15 -15
  195. package/dist/esm/EventsDeck.js +67 -67
  196. package/dist/esm/ExternalResources.js +48 -48
  197. package/dist/esm/Feature.js +4 -4
  198. package/dist/esm/ForbesHero.js +12 -12
  199. package/dist/esm/GridContent.js +200 -82
  200. package/dist/esm/GridHero.js +13 -13
  201. package/dist/esm/GroupDeck.js +14 -14
  202. package/dist/esm/HamMagazine.js +39 -39
  203. package/dist/esm/Hero.js +4 -4
  204. package/dist/esm/HighlightenVideo.js +2 -2
  205. package/dist/esm/HorizontalArticleListing.js +47 -47
  206. package/dist/esm/HorizontalHero.js +5 -5
  207. package/dist/esm/IssueContentDeck.js +27 -27
  208. package/dist/esm/IssueDeck.js +37 -37
  209. package/dist/esm/IssueLanding.js +82 -84
  210. package/dist/esm/KMTracker.js +15 -15
  211. package/dist/esm/LeftNav.js +22 -22
  212. package/dist/esm/MasterDeck.js +45 -45
  213. package/dist/esm/MediaSeriesLanding.js +663 -751
  214. package/dist/esm/NavDvm.js +16 -16
  215. package/dist/esm/NavMagazine.js +44 -44
  216. package/dist/esm/NavNative.js +49 -49
  217. package/dist/esm/OncliveHero.js +5 -4
  218. package/dist/esm/OncliveLargeHero.js +13 -13
  219. package/dist/esm/PageFilter.js +6 -6
  220. package/dist/esm/PartnerDetailListing.js +1155 -65
  221. package/dist/esm/PdfDownload.js +2 -2
  222. package/dist/esm/PopUpModal.js +6 -6
  223. package/dist/esm/PubSection.js +32 -34
  224. package/dist/esm/PubToc.js +8 -8
  225. package/dist/esm/PublicationDeck.js +24 -24
  226. package/dist/esm/PublicationLanding.js +76 -76
  227. package/dist/esm/QueueDeckExpanded.js +1103 -1084
  228. package/dist/esm/RecentNews.js +4 -4
  229. package/dist/esm/RelatedContent.js +35 -35
  230. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  231. package/dist/esm/RolesDeck.js +12 -12
  232. package/dist/esm/Search.js +8 -8
  233. package/dist/esm/Segment.js +368 -343
  234. package/dist/esm/SeriesListingDeck.js +20 -20
  235. package/dist/esm/{SeriesSlider-5d5c08f4.js → SeriesSlider-a866bb21.js} +14 -14
  236. package/dist/esm/SetCookie.js +1 -1
  237. package/dist/esm/SideFooter.js +17 -17
  238. package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-03c3e869.js} +12 -12
  239. package/dist/esm/TaxonomyCard.js +25 -25
  240. package/dist/esm/TaxonomyDescription.js +46 -46
  241. package/dist/esm/TemplateNormal.js +50 -50
  242. package/dist/esm/ThumbnailCard.js +7 -7
  243. package/dist/esm/Ustream.js +14 -14
  244. package/dist/esm/VerticalHero.js +3 -3
  245. package/dist/esm/VideoProgramLandingPage.js +54 -54
  246. package/dist/esm/VideoSeriesCard.js +14 -14
  247. package/dist/esm/VideoSeriesFilter.js +9 -9
  248. package/dist/esm/VideoSeriesLandingPage.js +38 -38
  249. package/dist/esm/VideoSeriesListing.js +39 -37
  250. package/dist/esm/View.js +174 -92
  251. package/dist/esm/YahooHero.js +15 -15
  252. package/dist/esm/YoutubeGroup.js +26 -26
  253. package/dist/esm/{_is-array-3e99e06e.js → _is-array-58e95429.js} +6 -6
  254. package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-5d49a330.js} +8 -8
  255. package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
  256. package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-964b6feb.js} +1 -1
  257. package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-7e804fce.js} +2 -2
  258. package/dist/esm/{_to-object-b50e61c3.js → _to-object-a4107da3.js} +9 -9
  259. package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-4877b617.js} +33 -33
  260. package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
  261. package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-e1de7503.js} +2 -2
  262. package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
  263. package/dist/esm/{define-property-fe54dc9f.js → define-property-8af5f002.js} +6 -6
  264. package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-94fd8bfc.js} +1 -1
  265. package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
  266. package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
  267. package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-c990c18c.js} +7 -7
  268. package/dist/esm/{extends-60e0e1c6.js → extends-6f2fcc99.js} +7 -7
  269. package/dist/esm/faundadb.js +7 -7
  270. package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
  271. package/dist/esm/getQuery.js +2 -2
  272. package/dist/esm/getRelatedArticle.js +14 -14
  273. package/dist/esm/getRootDocGroup.js +6 -6
  274. package/dist/esm/getSerializers.js +45 -45
  275. package/dist/esm/{getTargeting-68291ce9.js → getTargeting-bd800589.js} +25 -16
  276. package/dist/esm/getTargeting.js +8 -8
  277. package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
  278. package/dist/esm/{index-f0fc23eb.js → index-41a678ea.js} +4 -4
  279. package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
  280. package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
  281. package/dist/esm/{index-98ca9cec.js → index-aaa2dae0.js} +11 -26
  282. package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
  283. package/dist/esm/{index-01d53c17.js → index-f2a0d400.js} +688 -647
  284. package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
  285. package/dist/esm/{index.esm-f6156a57.js → index.esm-29e48d38.js} +16 -7
  286. package/dist/esm/{index.esm-d4932dea.js → index.esm-cf08bf18.js} +13 -6
  287. package/dist/esm/{index.esm-9b042655.js → index.esm-f8aaeeeb.js} +7 -4
  288. package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
  289. package/dist/esm/index.js +122 -124
  290. package/dist/esm/inherits-77d5e4fc.js +101 -0
  291. package/dist/esm/{inherits-a41fe93f.js → inherits-cf8dde54.js} +19 -19
  292. package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
  293. package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
  294. package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
  295. package/dist/esm/main-e4a934b2.js +851 -0
  296. package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
  297. package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
  298. package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
  299. package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
  300. package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
  301. package/dist/esm/stringify-4330ccdc.js +15 -0
  302. package/dist/esm/timeDifferenceCalc.js +1 -1
  303. package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
  304. package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
  305. package/dist/esm/{typeof-a286cf0c.js → typeof-6435ba1c.js} +36 -36
  306. package/dist/esm/urlFor.js +1 -1
  307. package/dist/esm/{ustream-api-33a866b6.js → ustream-api-9a50644d.js} +4 -4
  308. package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
  309. package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
  310. package/package.json +111 -110
  311. package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
  312. package/dist/cjs/keys-7f2c2108.js +0 -25
  313. package/dist/cjs/main-f1c77adb.js +0 -973
  314. package/dist/cjs/stringify-c9ac1214.js +0 -17
  315. package/dist/cjs/typeof-1358762e.js +0 -33
  316. package/dist/esm/main-d4165069.js +0 -961
  317. package/dist/esm/stringify-59c8f690.js +0 -15
  318. package/dist/esm/typeof-2f07d0e8.js +0 -30
@@ -1,18 +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-f0fc23eb.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';
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';
14
10
  import './events-6c3a7a63.js';
15
- import 'prop-types';
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 { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-4877b617.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
+ var ReactGA = _objectSpread$2(_objectSpread$2({}, Defaults), {}, {
906
+ OutboundLink: OutboundLink$1
907
+ });
16
908
 
17
909
  var _this = undefined;
18
910
 
@@ -28,8 +920,9 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
28
920
  _ref$refreshADs = _ref.refreshADs,
29
921
  refreshADs = _ref$refreshADs === undefined ? {} : _ref$refreshADs,
30
922
  _ref$refreshInterval = _ref.refreshInterval,
31
- refreshInterval = _ref$refreshInterval === undefined ? 60 : _ref$refreshInterval;
32
-
923
+ refreshInterval = _ref$refreshInterval === undefined ? 60 : _ref$refreshInterval,
924
+ _ref$disableInitialLo = _ref.disableInitialLoad,
925
+ disableInitialLoad = _ref$disableInitialLo === undefined ? false : _ref$disableInitialLo;
33
926
 
34
927
  var logEvent = function logEvent(action, category, GA_TRACKING_ID) {
35
928
  if (!GA_TRACKING_ID && typeof window !== 'undefined') GA_TRACKING_ID = sessionStorage.getItem('GA_TRACKING_ID');
@@ -78,7 +971,7 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
78
971
  adsToRefresh = domAds.reduce(function (acc, item) {
79
972
  ads.forEach(function (ad) {
80
973
  if (item.includes(ad)) {
81
- acc = [].concat(_toConsumableArray(acc), [item]);
974
+ acc = [].concat(_toConsumableArray$1(acc), [item]);
82
975
  }
83
976
  });
84
977
  return acc;
@@ -101,6 +994,7 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
101
994
  };
102
995
  }();
103
996
  var isScrolling = void 0;
997
+ var adRefreshCount = 0;
104
998
  var refreshADsAfterInterval = function refreshADsAfterInterval() {
105
999
  isScrolling = setInterval(_asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
106
1000
  var _refreshADs$mobileAds, mobileAds, _refreshADs$desktopAd, desktopAds, ads;
@@ -112,7 +1006,7 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
112
1006
  _refreshADs$mobileAds = refreshADs.mobileAds, mobileAds = _refreshADs$mobileAds === undefined ? ['leaderboard-ad'] : _refreshADs$mobileAds, _refreshADs$desktopAd = refreshADs.desktopAds, desktopAds = _refreshADs$desktopAd === undefined ? [] : _refreshADs$desktopAd;
113
1007
  ads = [];
114
1008
 
115
- if (!main_43) {
1009
+ if (!main_36) {
116
1010
  _context2.next = 8;
117
1011
  break;
118
1012
  }
@@ -126,7 +1020,7 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
126
1020
  break;
127
1021
 
128
1022
  case 8:
129
- if (!main_24) {
1023
+ if (!main_22) {
130
1024
  _context2.next = 12;
131
1025
  break;
132
1026
  }
@@ -138,10 +1032,13 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
138
1032
  ads = _context2.sent;
139
1033
 
140
1034
  case 12:
141
- lib_3.refresh.apply(lib_3, _toConsumableArray(ads));
1035
+ lib_3.refresh.apply(lib_3, _toConsumableArray$1(ads));
142
1036
  logEvent('AD Refresh', 'AD');
1037
+ adRefreshCount++;
1038
+ console.log('NumOfTimesAd refreshed', adRefreshCount);
1039
+ if (adRefreshCount == 5) clearInterval(isScrolling);
143
1040
 
144
- case 14:
1041
+ case 17:
145
1042
  case 'end':
146
1043
  return _context2.stop();
147
1044
  }
@@ -161,7 +1058,12 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
161
1058
 
162
1059
  return React__default.createElement(
163
1060
  lib_1,
164
- { dfpNetworkId: networkID, targeting: targeting, singleRequest: singleRequest, lazyLoad: { fetchMarginPercent: 0, renderMarginPercent: 0, mobileScaling: 1.0 } },
1061
+ {
1062
+ dfpNetworkId: networkID,
1063
+ targeting: targeting,
1064
+ singleRequest: singleRequest,
1065
+ lazyLoad: { fetchMarginPercent: 0, renderMarginPercent: 0, mobileScaling: 1.0 },
1066
+ disableInitialLoad: disableInitialLoad },
165
1067
  children
166
1068
  );
167
1069
  };