@mjhls/mjh-framework 1.0.883-mwn-test-v4 → 1.0.884-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 (317) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +9 -10
  3. package/dist/cjs/AD300x250.js +28 -29
  4. package/dist/cjs/AD300x250x600.js +28 -29
  5. package/dist/cjs/AD728x90.js +31 -32
  6. package/dist/cjs/ADFloatingFooter.js +30 -31
  7. package/dist/cjs/ADFooter.js +12 -13
  8. package/dist/cjs/ADGutter.js +30 -31
  9. package/dist/cjs/{ADInfeed-bce0ba07.js → ADInfeed-2e48af77.js} +13 -15
  10. package/dist/cjs/ADSkyscraper.js +30 -31
  11. package/dist/cjs/ADSponsoredResources.js +30 -31
  12. package/dist/cjs/ADWebcast.js +30 -31
  13. package/dist/cjs/ADWelcome.js +31 -32
  14. package/dist/cjs/{ADlgInfeed-950b414b.js → ADlgInfeed-c39c7131.js} +10 -11
  15. package/dist/cjs/AccordionPanel.js +27 -29
  16. package/dist/cjs/AdSlot.js +31 -32
  17. package/dist/cjs/AdSlotsProvider.js +909 -18
  18. package/dist/cjs/AlgoliaSearch.js +1306 -1490
  19. package/dist/cjs/AlphabeticList.js +23 -24
  20. package/dist/cjs/ArticleCarousel.js +19 -20
  21. package/dist/cjs/ArticleProgramLandingPage.js +60 -61
  22. package/dist/cjs/ArticleSeriesLandingPage.js +40 -41
  23. package/dist/cjs/ArticleSeriesListing.js +59 -60
  24. package/dist/cjs/Auth.js +1504 -680
  25. package/dist/cjs/AuthWrapper.js +419 -1637
  26. package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-02e827ae.js} +13 -14
  27. package/dist/cjs/Beam.js +6 -6
  28. package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-091a991f.js} +55 -56
  29. package/dist/cjs/Breadcrumbs.js +25 -27
  30. package/dist/cjs/CMEDeck.js +81 -81
  31. package/dist/cjs/Column1.js +11 -14
  32. package/dist/cjs/Column2.js +31 -34
  33. package/dist/cjs/Column3.js +57 -60
  34. package/dist/cjs/ConferenceArticleCard.js +40 -41
  35. package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
  36. package/dist/cjs/DeckContent.js +101 -105
  37. package/dist/cjs/DeckQueue.js +87 -91
  38. package/dist/cjs/{Dfp-9be904d5.js → Dfp-14d2455c.js} +32 -33
  39. package/dist/cjs/EventsDeck.js +150 -157
  40. package/dist/cjs/ExternalResources.js +78 -79
  41. package/dist/cjs/Feature.js +27 -29
  42. package/dist/cjs/ForbesHero.js +40 -41
  43. package/dist/cjs/GridContent.js +231 -236
  44. package/dist/cjs/GridHero.js +42 -43
  45. package/dist/cjs/GroupDeck.js +57 -58
  46. package/dist/cjs/HamMagazine.js +139 -144
  47. package/dist/cjs/Header.js +12 -14
  48. package/dist/cjs/Hero.js +15 -16
  49. package/dist/cjs/HighlightenVideo.js +17 -18
  50. package/dist/cjs/HorizontalArticleListing.js +71 -72
  51. package/dist/cjs/HorizontalHero.js +28 -29
  52. package/dist/cjs/IssueContentDeck.js +71 -76
  53. package/dist/cjs/IssueDeck.js +70 -75
  54. package/dist/cjs/IssueLanding.js +93 -94
  55. package/dist/cjs/KMTracker.js +15 -15
  56. package/dist/cjs/LeftNav.js +37 -39
  57. package/dist/cjs/MasterDeck.js +78 -79
  58. package/dist/cjs/MediaSeriesLanding.js +1138 -1233
  59. package/dist/cjs/NavDvm.js +72 -77
  60. package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
  61. package/dist/cjs/NavMagazine.js +146 -151
  62. package/dist/cjs/NavNative.js +137 -145
  63. package/dist/cjs/OncliveHero.js +22 -22
  64. package/dist/cjs/OncliveLargeHero.js +70 -71
  65. package/dist/cjs/PageFilter.js +12 -13
  66. package/dist/cjs/PartnerDetailListing.js +1463 -289
  67. package/dist/cjs/PdfDownload.js +9 -10
  68. package/dist/cjs/PopUpModal.js +17 -19
  69. package/dist/cjs/PubSection.js +40 -41
  70. package/dist/cjs/PubToc.js +13 -14
  71. package/dist/cjs/PublicationDeck.js +65 -70
  72. package/dist/cjs/PublicationLanding.js +133 -141
  73. package/dist/cjs/QueueDeckExpanded.js +308 -308
  74. package/dist/cjs/RecentNews.js +22 -23
  75. package/dist/cjs/RelatedContent.js +57 -58
  76. package/dist/cjs/RelatedTopicsDropdown.js +29 -32
  77. package/dist/cjs/RolesDeck.js +27 -32
  78. package/dist/cjs/Schema.js +100 -0
  79. package/dist/cjs/Search.js +16 -20
  80. package/dist/cjs/Segment.js +4 -4
  81. package/dist/cjs/SeriesListingDeck.js +36 -36
  82. package/dist/cjs/{SeriesSlider-ba0c5d1a.js → SeriesSlider-49b81b0b.js} +39 -40
  83. package/dist/cjs/SetCookie.js +1 -1
  84. package/dist/cjs/SideFooter.js +36 -37
  85. package/dist/cjs/SocialIcons.js +9 -10
  86. package/dist/cjs/{SocialSearchComponent-4942ddfc.js → SocialSearchComponent-e8477ca3.js} +36 -40
  87. package/dist/cjs/SocialShare.js +29 -31
  88. package/dist/cjs/TaxonomyCard.js +61 -66
  89. package/dist/cjs/TaxonomyDescription.js +53 -54
  90. package/dist/cjs/TemplateNormal.js +72 -73
  91. package/dist/cjs/ThumbnailCard.js +24 -26
  92. package/dist/cjs/Ustream.js +79 -71
  93. package/dist/cjs/VerticalHero.js +19 -20
  94. package/dist/cjs/VideoProgramLandingPage.js +74 -78
  95. package/dist/cjs/VideoSeriesCard.js +32 -33
  96. package/dist/cjs/VideoSeriesFilter.js +16 -16
  97. package/dist/cjs/VideoSeriesLandingPage.js +49 -50
  98. package/dist/cjs/VideoSeriesListing.js +76 -77
  99. package/dist/cjs/View.js +264 -347
  100. package/dist/cjs/YahooHero.js +39 -40
  101. package/dist/cjs/YoutubeGroup.js +67 -68
  102. package/dist/cjs/{_is-array-54228b29.js → _is-array-aa52fa1e.js} +6 -6
  103. package/dist/cjs/{_iter-detect-b1df62f0.js → _iter-detect-05795553.js} +7 -7
  104. package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
  105. package/dist/cjs/{_object-sap-d1978572.js → _object-sap-171b9ea5.js} +1 -1
  106. package/dist/cjs/{_object-to-array-ce86cae7.js → _object-to-array-9bac8737.js} +2 -2
  107. package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-df19209d.js} +30 -30
  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-5643aa10.js → core.get-iterator-method-f3c44602.js} +35 -35
  110. package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
  111. package/dist/cjs/{define-property-e8404b64.js → define-property-21887c62.js} +6 -6
  112. package/dist/cjs/{defineProperty-9673846a.js → defineProperty-77a37684.js} +1 -1
  113. package/dist/cjs/{entities-df1aed86.js → entities-310b46ee.js} +1 -5
  114. package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
  115. package/dist/cjs/{extends-7c86182f.js → extends-eed4f016.js} +7 -7
  116. package/dist/cjs/faundadb.js +19 -19
  117. package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
  118. package/dist/cjs/getRelatedArticle.js +16 -16
  119. package/dist/cjs/getRootDocGroup.js +6 -6
  120. package/dist/cjs/getSerializers.js +43 -43
  121. package/dist/cjs/getSeriesDetail.js +3 -0
  122. package/dist/cjs/{getTargeting-9d509319.js → getTargeting-8874437b.js} +12 -12
  123. package/dist/cjs/getTargeting.js +6 -6
  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-af49d679.js → index-396089c0.js} +1044 -1070
  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-d48b231c.js → index-be0c82be.js} +25 -31
  130. package/dist/cjs/{index-50be6759.js → index-e2e62963.js} +10 -26
  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-d81454e7.js → index.esm-90433435.js} +18 -6
  134. package/dist/cjs/{index.esm-c1e16606.js → index.esm-e32d3e8e.js} +7 -4
  135. package/dist/cjs/{index.esm-88593816.js → index.esm-ff47db6f.js} +15 -8
  136. package/dist/cjs/index.js +166 -171
  137. package/dist/cjs/inherits-8d29278d.js +110 -0
  138. package/dist/cjs/{inherits-de66ea16.js → inherits-cba9c846.js} +19 -19
  139. package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
  140. package/dist/cjs/{keys-e982b3fa.js → keys-d207942e.js} +6 -6
  141. package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
  142. package/dist/cjs/main-02daeefe.js +862 -0
  143. package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
  144. package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
  145. package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
  146. package/dist/cjs/{slicedToArray-067dd3bc.js → slicedToArray-f6d4eaa8.js} +12 -12
  147. package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
  148. package/dist/cjs/{stringify-f7a37a8d.js → stringify-bbc68047.js} +5 -5
  149. package/dist/cjs/timeDifferenceCalc.js +1 -1
  150. package/dist/cjs/{toConsumableArray-d7797c2b.js → toConsumableArray-c9b8a0d0.js} +7 -7
  151. package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
  152. package/dist/cjs/{typeof-567e31ff.js → typeof-5f52cf64.js} +35 -35
  153. package/dist/cjs/urlFor.js +6 -6
  154. package/dist/cjs/{ustream-api-3819e4aa.js → ustream-api-9ebe112f.js} +4 -4
  155. package/dist/cjs/{util-93a37fd0.js → util-f2c1b65b.js} +1 -12
  156. package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
  157. package/dist/cjs/{web.dom.iterable-d98303e0.js → web.dom.iterable-e34bf324.js} +2 -2
  158. package/dist/esm/AD.js +1 -1
  159. package/dist/esm/AD300x250.js +22 -22
  160. package/dist/esm/AD300x250x600.js +22 -22
  161. package/dist/esm/AD728x90.js +25 -25
  162. package/dist/esm/ADFloatingFooter.js +21 -21
  163. package/dist/esm/ADFooter.js +4 -4
  164. package/dist/esm/ADGutter.js +21 -21
  165. package/dist/esm/{ADInfeed-0a55cd2d.js → ADInfeed-8a038df9.js} +6 -6
  166. package/dist/esm/ADSkyscraper.js +21 -21
  167. package/dist/esm/ADSponsoredResources.js +21 -21
  168. package/dist/esm/ADWebcast.js +21 -21
  169. package/dist/esm/ADWelcome.js +18 -18
  170. package/dist/esm/{ADlgInfeed-013e1f4a.js → ADlgInfeed-cee95aa2.js} +4 -4
  171. package/dist/esm/AccordionPanel.js +6 -6
  172. package/dist/esm/AdSlot.js +20 -20
  173. package/dist/esm/AdSlotsProvider.js +906 -14
  174. package/dist/esm/AlgoliaSearch.js +534 -717
  175. package/dist/esm/AlphabeticList.js +8 -8
  176. package/dist/esm/ArticleCarousel.js +13 -13
  177. package/dist/esm/ArticleProgramLandingPage.js +48 -48
  178. package/dist/esm/ArticleSeriesLandingPage.js +30 -30
  179. package/dist/esm/ArticleSeriesListing.js +32 -32
  180. package/dist/esm/Auth.js +1419 -591
  181. package/dist/esm/AuthWrapper.js +392 -1609
  182. package/dist/esm/{AuthorComponent-11adff02.js → AuthorComponent-e6f95c2f.js} +1 -1
  183. package/dist/esm/Beam.js +6 -6
  184. package/dist/esm/{BlockContent-1e73bd2c.js → BlockContent-e9b4ddcf.js} +34 -34
  185. package/dist/esm/Breadcrumbs.js +5 -5
  186. package/dist/esm/CMEDeck.js +22 -22
  187. package/dist/esm/Column1.js +4 -4
  188. package/dist/esm/Column2.js +19 -19
  189. package/dist/esm/Column3.js +37 -37
  190. package/dist/esm/ConferenceArticleCard.js +25 -25
  191. package/dist/esm/DeckContent.js +55 -55
  192. package/dist/esm/DeckQueue.js +47 -47
  193. package/dist/esm/{Dfp-102f0beb.js → Dfp-f867d061.js} +13 -13
  194. package/dist/esm/EventsDeck.js +65 -65
  195. package/dist/esm/ExternalResources.js +46 -46
  196. package/dist/esm/Feature.js +7 -7
  197. package/dist/esm/ForbesHero.js +10 -10
  198. package/dist/esm/GridContent.js +88 -88
  199. package/dist/esm/GridHero.js +11 -11
  200. package/dist/esm/GroupDeck.js +12 -12
  201. package/dist/esm/HamMagazine.js +37 -37
  202. package/dist/esm/Hero.js +7 -7
  203. package/dist/esm/HighlightenVideo.js +2 -2
  204. package/dist/esm/HorizontalArticleListing.js +46 -46
  205. package/dist/esm/HorizontalHero.js +8 -8
  206. package/dist/esm/IssueContentDeck.js +25 -25
  207. package/dist/esm/IssueDeck.js +35 -35
  208. package/dist/esm/IssueLanding.js +82 -82
  209. package/dist/esm/KMTracker.js +15 -15
  210. package/dist/esm/LeftNav.js +20 -20
  211. package/dist/esm/MasterDeck.js +43 -43
  212. package/dist/esm/MediaSeriesLanding.js +660 -752
  213. package/dist/esm/NavDvm.js +14 -14
  214. package/dist/esm/NavMagazine.js +42 -42
  215. package/dist/esm/NavNative.js +41 -41
  216. package/dist/esm/OncliveHero.js +8 -7
  217. package/dist/esm/OncliveLargeHero.js +11 -11
  218. package/dist/esm/PageFilter.js +4 -4
  219. package/dist/esm/PartnerDetailListing.js +1371 -196
  220. package/dist/esm/PdfDownload.js +2 -2
  221. package/dist/esm/PopUpModal.js +4 -4
  222. package/dist/esm/PubSection.js +32 -32
  223. package/dist/esm/PubToc.js +6 -6
  224. package/dist/esm/PublicationDeck.js +27 -27
  225. package/dist/esm/PublicationLanding.js +74 -78
  226. package/dist/esm/QueueDeckExpanded.js +36 -36
  227. package/dist/esm/RecentNews.js +4 -4
  228. package/dist/esm/RelatedContent.js +38 -38
  229. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  230. package/dist/esm/RolesDeck.js +12 -12
  231. package/dist/esm/Schema.js +95 -0
  232. package/dist/esm/Search.js +6 -6
  233. package/dist/esm/Segment.js +4 -4
  234. package/dist/esm/SeriesListingDeck.js +18 -18
  235. package/dist/esm/{SeriesSlider-45adb8dc.js → SeriesSlider-ce19fa25.js} +14 -14
  236. package/dist/esm/SetCookie.js +1 -1
  237. package/dist/esm/SideFooter.js +15 -15
  238. package/dist/esm/{SocialSearchComponent-8e0fcf66.js → SocialSearchComponent-b5be0e6c.js} +12 -12
  239. package/dist/esm/TaxonomyCard.js +27 -27
  240. package/dist/esm/TaxonomyDescription.js +44 -44
  241. package/dist/esm/TemplateNormal.js +48 -48
  242. package/dist/esm/ThumbnailCard.js +10 -10
  243. package/dist/esm/Ustream.js +72 -63
  244. package/dist/esm/VerticalHero.js +6 -6
  245. package/dist/esm/VideoProgramLandingPage.js +52 -52
  246. package/dist/esm/VideoSeriesCard.js +14 -14
  247. package/dist/esm/VideoSeriesFilter.js +7 -7
  248. package/dist/esm/VideoSeriesLandingPage.js +36 -36
  249. package/dist/esm/VideoSeriesListing.js +33 -33
  250. package/dist/esm/View.js +91 -170
  251. package/dist/esm/YahooHero.js +13 -13
  252. package/dist/esm/YoutubeGroup.js +21 -21
  253. package/dist/esm/{_is-array-8d21b9e3.js → _is-array-4df618a6.js} +6 -6
  254. package/dist/esm/{_iter-detect-98db3b07.js → _iter-detect-130ee549.js} +7 -7
  255. package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
  256. package/dist/esm/{_object-sap-7cee6f84.js → _object-sap-8b8ea5a9.js} +1 -1
  257. package/dist/esm/{_object-to-array-2300e51b.js → _object-to-array-c54dd835.js} +2 -2
  258. package/dist/esm/{asyncToGenerator-5ef104a7.js → asyncToGenerator-7bf8bc4d.js} +30 -30
  259. package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
  260. package/dist/esm/{core.get-iterator-method-ea258bb1.js → core.get-iterator-method-86d4db69.js} +36 -36
  261. package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
  262. package/dist/esm/define-property-6d26cb48.js +18 -0
  263. package/dist/esm/{defineProperty-8c30428f.js → defineProperty-d7d9b577.js} +1 -1
  264. package/dist/esm/{entities-6d9154b4.js → entities-7cc3bf45.js} +1 -5
  265. package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
  266. package/dist/esm/{extends-6d8e3924.js → extends-5b1796d4.js} +7 -7
  267. package/dist/esm/faundadb.js +5 -5
  268. package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
  269. package/dist/esm/getRelatedArticle.js +11 -11
  270. package/dist/esm/getRootDocGroup.js +4 -4
  271. package/dist/esm/getSerializers.js +43 -43
  272. package/dist/esm/getSeriesDetail.js +3 -0
  273. package/dist/esm/{getTargeting-4061f839.js → getTargeting-277c801e.js} +11 -11
  274. package/dist/esm/getTargeting.js +6 -6
  275. package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
  276. package/dist/esm/{index-d7489d39.js → index-0e04b7d7.js} +618 -634
  277. package/dist/esm/{index-f0fc23eb.js → index-41a678ea.js} +4 -4
  278. package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
  279. package/dist/esm/{index-3f5c03b2.js → index-73819142.js} +25 -31
  280. package/dist/esm/{index-98ca9cec.js → index-aaa2dae0.js} +11 -26
  281. package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
  282. package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
  283. package/dist/esm/{index.esm-eb1e8e80.js → index.esm-29e48d38.js} +18 -7
  284. package/dist/esm/{index.esm-28aafed6.js → index.esm-cf08bf18.js} +15 -8
  285. package/dist/esm/{index.esm-9b042655.js → index.esm-f8aaeeeb.js} +7 -4
  286. package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
  287. package/dist/esm/index.js +123 -126
  288. package/dist/esm/{inherits-a6ba2ec4.js → inherits-2409637d.js} +18 -18
  289. package/dist/esm/inherits-77d5e4fc.js +101 -0
  290. package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
  291. package/dist/esm/{keys-31dcdb31.js → keys-69989821.js} +6 -6
  292. package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
  293. package/dist/esm/main-c0612122.js +851 -0
  294. package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
  295. package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
  296. package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
  297. package/dist/esm/{slicedToArray-6ebcbfea.js → slicedToArray-67a08c9c.js} +12 -12
  298. package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
  299. package/dist/esm/stringify-70b72959.js +15 -0
  300. package/dist/esm/timeDifferenceCalc.js +1 -1
  301. package/dist/esm/{toConsumableArray-f7074d7c.js → toConsumableArray-32282905.js} +7 -7
  302. package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
  303. package/dist/esm/{typeof-e9fc0c5d.js → typeof-c05a82ba.js} +35 -35
  304. package/dist/esm/urlFor.js +4 -4
  305. package/dist/esm/{ustream-api-d3714624.js → ustream-api-4c4fe0ba.js} +4 -4
  306. package/dist/esm/{util-8ed16d48.js → util-7700fc59.js} +1 -12
  307. package/dist/esm/{web.dom.iterable-ab4dea5c.js → web.dom.iterable-f8f967cd.js} +2 -2
  308. package/package.json +111 -111
  309. package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
  310. package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
  311. package/dist/cjs/main-f1c77adb.js +0 -973
  312. package/dist/cjs/typeof-1358762e.js +0 -33
  313. package/dist/esm/define-property-5f1bda73.js +0 -18
  314. package/dist/esm/defineProperty-23a8f8cd.js +0 -68
  315. package/dist/esm/main-1894c974.js +0 -961
  316. package/dist/esm/stringify-2b084bee.js +0 -15
  317. package/dist/esm/typeof-2f07d0e8.js +0 -30
@@ -1,16 +1,908 @@
1
- import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-5ef104a7.js';
2
- import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.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 { d as main_24, m as main_43 } from './main-1894c974.js';
7
1
  import './_commonjsHelpers-0c4b6f40.js';
8
- import './core.get-iterator-method-ea258bb1.js';
9
- import './web.dom.iterable-ab4dea5c.js';
2
+ import './core.get-iterator-method-86d4db69.js';
10
3
  import './_library-528f1934.js';
11
- import './_iter-detect-98db3b07.js';
4
+ import './_iter-detect-130ee549.js';
5
+ import { _ as _toConsumableArray$1 } from './toConsumableArray-32282905.js';
6
+ import './web.dom.iterable-f8f967cd.js';
7
+ import React__default, { Component, useEffect } from 'react';
12
8
  import './events-6c3a7a63.js';
13
- import 'prop-types';
9
+ import { l as lib_3, b as lib_1 } from './index-41a678ea.js';
10
+ import PropTypes from 'prop-types';
11
+ import { d as main_22, m as main_36 } from './main-c0612122.js';
12
+ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7bf8bc4d.js';
13
+
14
+ function warn(s) {
15
+ console.warn('[react-ga]', s);
16
+ }
17
+
18
+ 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); }
19
+
20
+ 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; }
21
+
22
+ 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; }
23
+
24
+ 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; }
25
+
26
+ 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; }
27
+
28
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
29
+
30
+ 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); } }
31
+
32
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
33
+
34
+ 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); }
35
+
36
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
37
+
38
+ 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); }; }
39
+
40
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
41
+
42
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
43
+
44
+ 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; } }
45
+
46
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
47
+
48
+ 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; }
49
+ var NEWTAB = '_blank';
50
+ var MIDDLECLICK = 1;
51
+
52
+ var OutboundLink = /*#__PURE__*/function (_Component) {
53
+ _inherits(OutboundLink, _Component);
54
+
55
+ var _super = _createSuper(OutboundLink);
56
+
57
+ function OutboundLink() {
58
+ var _this;
59
+
60
+ _classCallCheck(this, OutboundLink);
61
+
62
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
63
+ args[_key] = arguments[_key];
64
+ }
65
+
66
+ _this = _super.call.apply(_super, [this].concat(args));
67
+
68
+ _defineProperty(_assertThisInitialized(_this), "handleClick", function (event) {
69
+ var _this$props = _this.props,
70
+ target = _this$props.target,
71
+ eventLabel = _this$props.eventLabel,
72
+ to = _this$props.to,
73
+ onClick = _this$props.onClick,
74
+ trackerNames = _this$props.trackerNames;
75
+ var eventMeta = {
76
+ label: eventLabel
77
+ };
78
+ var sameTarget = target !== NEWTAB;
79
+ var normalClick = !(event.ctrlKey || event.shiftKey || event.metaKey || event.button === MIDDLECLICK);
80
+
81
+ if (sameTarget && normalClick) {
82
+ event.preventDefault();
83
+ OutboundLink.trackLink(eventMeta, function () {
84
+ window.location.href = to;
85
+ }, trackerNames);
86
+ } else {
87
+ OutboundLink.trackLink(eventMeta, function () {}, trackerNames);
88
+ }
89
+
90
+ if (onClick) {
91
+ onClick(event);
92
+ }
93
+ });
94
+
95
+ return _this;
96
+ }
97
+
98
+ _createClass(OutboundLink, [{
99
+ key: "render",
100
+ value: function render() {
101
+ var _this$props2 = this.props,
102
+ href = _this$props2.to,
103
+ target = _this$props2.target,
104
+ oldProps = _objectWithoutProperties(_this$props2, ["to", "target"]);
105
+
106
+ var props = _objectSpread(_objectSpread({}, oldProps), {}, {
107
+ target: target,
108
+ href: href,
109
+ onClick: this.handleClick
110
+ });
111
+
112
+ if (target === NEWTAB) {
113
+ props.rel = "".concat(props.rel ? props.rel : '', " noopener noreferrer").trim();
114
+ }
115
+
116
+ delete props.eventLabel;
117
+ delete props.trackerNames;
118
+ return /*#__PURE__*/React__default.createElement('a', props);
119
+ }
120
+ }]);
121
+
122
+ return OutboundLink;
123
+ }(Component);
124
+
125
+ _defineProperty(OutboundLink, "trackLink", function () {
126
+ warn('ga tracking not enabled');
127
+ });
128
+ OutboundLink.propTypes = {
129
+ eventLabel: PropTypes.string.isRequired,
130
+ target: PropTypes.string,
131
+ to: PropTypes.string,
132
+ onClick: PropTypes.func,
133
+ trackerNames: PropTypes.arrayOf(PropTypes.string)
134
+ };
135
+ OutboundLink.defaultProps = {
136
+ target: null,
137
+ to: null,
138
+ onClick: null,
139
+ trackerNames: null
140
+ };
141
+
142
+ // See if s could be an email address. We don't want to send personal data like email.
143
+ // https://support.google.com/analytics/answer/2795983?hl=en
144
+ function mightBeEmail(s) {
145
+ // There's no point trying to validate rfc822 fully, just look for ...@...
146
+ return typeof s === 'string' && s.indexOf('@') !== -1;
147
+ }
148
+
149
+ var redacted = 'REDACTED (Potential Email Address)';
150
+ function redactEmail(string) {
151
+ if (mightBeEmail(string)) {
152
+ warn('This arg looks like an email address, redacting.');
153
+ return redacted;
154
+ }
155
+
156
+ return string;
157
+ }
158
+
159
+ // GA strings need to have leading/trailing whitespace trimmed, and not all
160
+ // browsers have String.prototoype.trim().
161
+ function trim(s) {
162
+ return s && s.toString().replace(/^\s+|\s+$/g, '');
163
+ }
164
+
165
+ /**
166
+ * To Title Case 2.1 - http://individed.com/code/to-title-case/
167
+ * Copyright 2008-2013 David Gouch. Licensed under the MIT License.
168
+ * https://github.com/gouch/to-title-case
169
+ */
170
+ var smallWords = /^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i; // test
171
+
172
+ function toTitleCase(string) {
173
+ return trim(string).replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g, function (match, index, title) {
174
+ 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) {
175
+ return match.toLowerCase();
176
+ }
177
+
178
+ if (match.substr(1).search(/[A-Z]|\../) > -1) {
179
+ return match;
180
+ }
181
+
182
+ return match.charAt(0).toUpperCase() + match.substr(1);
183
+ });
184
+ }
185
+
186
+ function format() {
187
+ var s = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
188
+ var titleCase = arguments.length > 1 ? arguments[1] : undefined;
189
+ var redactingEmail = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
190
+
191
+ var _str = s || '';
192
+
193
+ if (titleCase) {
194
+ _str = toTitleCase(s);
195
+ }
196
+
197
+ if (redactingEmail) {
198
+ _str = redactEmail(_str);
199
+ }
200
+
201
+ return _str;
202
+ }
203
+
204
+ function removeLeadingSlash(string) {
205
+ if (string.substring(0, 1) === '/') {
206
+ return string.substring(1);
207
+ }
208
+
209
+ return string;
210
+ }
211
+
212
+ var isLoaded = false;
213
+ function loadGA (options) {
214
+ if (isLoaded) return;
215
+ isLoaded = true;
216
+ var gaAddress = 'https://www.google-analytics.com/analytics.js';
217
+
218
+ if (options && options.gaAddress) {
219
+ gaAddress = options.gaAddress;
220
+ } else if (options && options.debug) {
221
+ gaAddress = 'https://www.google-analytics.com/analytics_debug.js';
222
+ }
223
+
224
+ var onerror = options && options.onerror; // https://developers.google.com/analytics/devguides/collection/analyticsjs/
225
+
226
+ /* eslint-disable */
227
+
228
+ (function (i, s, o, g, r, a, m) {
229
+ i['GoogleAnalyticsObject'] = r;
230
+ i[r] = i[r] || function () {
231
+ (i[r].q = i[r].q || []).push(arguments);
232
+ }, i[r].l = 1 * new Date();
233
+ a = s.createElement(o), m = s.getElementsByTagName(o)[0];
234
+ a.async = 1;
235
+ a.src = g;
236
+ a.onerror = onerror;
237
+ m.parentNode.insertBefore(a, m);
238
+ })(window, document, 'script', gaAddress, 'ga');
239
+ /* eslint-enable */
240
+
241
+ }
242
+
243
+ function log(s) {
244
+ console.info('[react-ga]', s);
245
+ }
246
+
247
+ var gaCalls = [];
248
+ var TestModeAPI = {
249
+ calls: gaCalls,
250
+ ga: function ga() {
251
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
252
+ args[_key] = arguments[_key];
253
+ }
254
+
255
+ gaCalls.push([].concat(args));
256
+ },
257
+ resetCalls: function resetCalls() {
258
+ gaCalls.length = 0;
259
+ }
260
+ };
261
+
262
+ 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; }
263
+
264
+ 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; }
265
+
266
+ 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; }
267
+
268
+ 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; }
269
+
270
+ 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; }
271
+
272
+ 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); }
273
+
274
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
275
+
276
+ 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."); }
277
+
278
+ 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); }
279
+
280
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
281
+
282
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
283
+
284
+ 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; }
285
+
286
+ var _isNotBrowser = typeof window === 'undefined' || typeof document === 'undefined';
287
+
288
+ var _debug = false;
289
+ var _titleCase = true;
290
+ var _testMode = false;
291
+ var _alwaysSendToDefaultTracker = true;
292
+ var _redactEmail = true;
293
+
294
+ var internalGa = function internalGa() {
295
+ var _window;
296
+
297
+ if (_testMode) return TestModeAPI.ga.apply(TestModeAPI, arguments);
298
+ if (_isNotBrowser) return false;
299
+ if (!window.ga) return warn('ReactGA.initialize must be called first or GoogleAnalytics should be loaded manually');
300
+ return (_window = window).ga.apply(_window, arguments);
301
+ };
302
+
303
+ function _format(s) {
304
+ return format(s, _titleCase, _redactEmail);
305
+ }
306
+
307
+ function _gaCommand(trackerNames) {
308
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
309
+ args[_key - 1] = arguments[_key];
310
+ }
311
+
312
+ var command = args[0];
313
+
314
+ if (typeof internalGa === 'function') {
315
+ if (typeof command !== 'string') {
316
+ warn('ga command must be a string');
317
+ return;
318
+ }
319
+
320
+ if (_alwaysSendToDefaultTracker || !Array.isArray(trackerNames)) internalGa.apply(void 0, args);
321
+
322
+ if (Array.isArray(trackerNames)) {
323
+ trackerNames.forEach(function (name) {
324
+ internalGa.apply(void 0, _toConsumableArray(["".concat(name, ".").concat(command)].concat(args.slice(1))));
325
+ });
326
+ }
327
+ }
328
+ }
329
+
330
+ function _initialize(gaTrackingID, options) {
331
+ if (!gaTrackingID) {
332
+ warn('gaTrackingID is required in initialize()');
333
+ return;
334
+ }
335
+
336
+ if (options) {
337
+ if (options.debug && options.debug === true) {
338
+ _debug = true;
339
+ }
340
+
341
+ if (options.titleCase === false) {
342
+ _titleCase = false;
343
+ }
344
+
345
+ if (options.redactEmail === false) {
346
+ _redactEmail = false;
347
+ }
348
+
349
+ if (options.useExistingGa) {
350
+ return;
351
+ }
352
+ }
353
+
354
+ if (options && options.gaOptions) {
355
+ internalGa('create', gaTrackingID, options.gaOptions);
356
+ } else {
357
+ internalGa('create', gaTrackingID, 'auto');
358
+ }
359
+ }
360
+
361
+ function addTrackers(configsOrTrackingId, options) {
362
+ if (Array.isArray(configsOrTrackingId)) {
363
+ configsOrTrackingId.forEach(function (config) {
364
+ if (_typeof$1(config) !== 'object') {
365
+ warn('All configs must be an object');
366
+ return;
367
+ }
368
+
369
+ _initialize(config.trackingId, config);
370
+ });
371
+ } else {
372
+ _initialize(configsOrTrackingId, options);
373
+ }
374
+
375
+ return true;
376
+ }
377
+ function initialize(configsOrTrackingId, options) {
378
+ if (options && options.testMode === true) {
379
+ _testMode = true;
380
+ } else {
381
+ if (_isNotBrowser) {
382
+ return;
383
+ }
384
+
385
+ if (!options || options.standardImplementation !== true) loadGA(options);
386
+ }
387
+
388
+ _alwaysSendToDefaultTracker = options && typeof options.alwaysSendToDefaultTracker === 'boolean' ? options.alwaysSendToDefaultTracker : true;
389
+ addTrackers(configsOrTrackingId, options);
390
+ }
391
+ /**
392
+ * ga:
393
+ * Returns the original GA object.
394
+ */
395
+
396
+ function ga() {
397
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
398
+ args[_key2] = arguments[_key2];
399
+ }
400
+
401
+ if (args.length > 0) {
402
+ internalGa.apply(void 0, args);
403
+
404
+ if (_debug) {
405
+ log("called ga('arguments');");
406
+ log("with arguments: ".concat(JSON.stringify(args)));
407
+ }
408
+ }
409
+
410
+ return window.ga;
411
+ }
412
+ /**
413
+ * set:
414
+ * GA tracker set method
415
+ * @param {Object} fieldsObject - a field/value pair or a group of field/value pairs on the tracker
416
+ * @param {Array} trackerNames - (optional) a list of extra trackers to run the command on
417
+ */
418
+
419
+ function set(fieldsObject, trackerNames) {
420
+ if (!fieldsObject) {
421
+ warn('`fieldsObject` is required in .set()');
422
+ return;
423
+ }
424
+
425
+ if (_typeof$1(fieldsObject) !== 'object') {
426
+ warn('Expected `fieldsObject` arg to be an Object');
427
+ return;
428
+ }
429
+
430
+ if (Object.keys(fieldsObject).length === 0) {
431
+ warn('empty `fieldsObject` given to .set()');
432
+ }
433
+
434
+ _gaCommand(trackerNames, 'set', fieldsObject);
435
+
436
+ if (_debug) {
437
+ log("called ga('set', fieldsObject);");
438
+ log("with fieldsObject: ".concat(JSON.stringify(fieldsObject)));
439
+ }
440
+ }
441
+ /**
442
+ * send:
443
+ * Clone of the low level `ga.send` method
444
+ * WARNING: No validations will be applied to this
445
+ * @param {Object} fieldObject - field object for tracking different analytics
446
+ * @param {Array} trackerNames - trackers to send the command to
447
+ * @param {Array} trackerNames - (optional) a list of extra trackers to run the command on
448
+ */
449
+
450
+ function send(fieldObject, trackerNames) {
451
+ _gaCommand(trackerNames, 'send', fieldObject);
452
+
453
+ if (_debug) {
454
+ log("called ga('send', fieldObject);");
455
+ log("with fieldObject: ".concat(JSON.stringify(fieldObject)));
456
+ log("with trackers: ".concat(JSON.stringify(trackerNames)));
457
+ }
458
+ }
459
+ /**
460
+ * pageview:
461
+ * Basic GA pageview tracking
462
+ * @param {String} path - the current page page e.g. '/about'
463
+ * @param {Array} trackerNames - (optional) a list of extra trackers to run the command on
464
+ * @param {String} title - (optional) the page title e. g. 'My Website'
465
+ */
466
+
467
+ function pageview(rawPath, trackerNames, title) {
468
+ if (!rawPath) {
469
+ warn('path is required in .pageview()');
470
+ return;
471
+ }
472
+
473
+ var path = trim(rawPath);
474
+
475
+ if (path === '') {
476
+ warn('path cannot be an empty string in .pageview()');
477
+ return;
478
+ }
479
+
480
+ var extraFields = {};
481
+
482
+ if (title) {
483
+ extraFields.title = title;
484
+ }
485
+
486
+ if (typeof ga === 'function') {
487
+ _gaCommand(trackerNames, 'send', _objectSpread$1({
488
+ hitType: 'pageview',
489
+ page: path
490
+ }, extraFields));
491
+
492
+ if (_debug) {
493
+ log("called ga('send', 'pageview', path);");
494
+ var extraLog = '';
495
+
496
+ if (title) {
497
+ extraLog = " and title: ".concat(title);
498
+ }
499
+
500
+ log("with path: ".concat(path).concat(extraLog));
501
+ }
502
+ }
503
+ }
504
+ /**
505
+ * modalview:
506
+ * a proxy to basic GA pageview tracking to consistently track
507
+ * modal views that are an equivalent UX to a traditional pageview
508
+ * @param {String} modalName e.g. 'add-or-edit-club'
509
+ * @param {Array} trackerNames - (optional) a list of extra trackers to run the command on
510
+ */
511
+
512
+ function modalview(rawModalName, trackerNames) {
513
+ if (!rawModalName) {
514
+ warn('modalName is required in .modalview(modalName)');
515
+ return;
516
+ }
517
+
518
+ var modalName = removeLeadingSlash(trim(rawModalName));
519
+
520
+ if (modalName === '') {
521
+ warn('modalName cannot be an empty string or a single / in .modalview()');
522
+ return;
523
+ }
524
+
525
+ if (typeof ga === 'function') {
526
+ var path = "/modal/".concat(modalName);
527
+
528
+ _gaCommand(trackerNames, 'send', 'pageview', path);
529
+
530
+ if (_debug) {
531
+ log("called ga('send', 'pageview', path);");
532
+ log("with path: ".concat(path));
533
+ }
534
+ }
535
+ }
536
+ /**
537
+ * timing:
538
+ * GA timing
539
+ * @param args.category {String} required
540
+ * @param args.variable {String} required
541
+ * @param args.value {Int} required
542
+ * @param args.label {String} required
543
+ * @param {Array} trackerNames - (optional) a list of extra trackers to run the command on
544
+ */
545
+
546
+ function timing() {
547
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
548
+ category = _ref.category,
549
+ variable = _ref.variable,
550
+ value = _ref.value,
551
+ label = _ref.label;
552
+
553
+ var trackerNames = arguments.length > 1 ? arguments[1] : undefined;
554
+
555
+ if (typeof ga === 'function') {
556
+ if (!category || !variable || typeof value !== 'number') {
557
+ warn('args.category, args.variable ' + 'AND args.value are required in timing() ' + 'AND args.value has to be a number');
558
+ return;
559
+ } // Required Fields
560
+
561
+
562
+ var fieldObject = {
563
+ hitType: 'timing',
564
+ timingCategory: _format(category),
565
+ timingVar: _format(variable),
566
+ timingValue: value
567
+ };
568
+
569
+ if (label) {
570
+ fieldObject.timingLabel = _format(label);
571
+ }
572
+
573
+ send(fieldObject, trackerNames);
574
+ }
575
+ }
576
+ /**
577
+ * event:
578
+ * GA event tracking
579
+ * @param args.category {String} required
580
+ * @param args.action {String} required
581
+ * @param args.label {String} optional
582
+ * @param args.value {Int} optional
583
+ * @param args.nonInteraction {boolean} optional
584
+ * @param args.transport {string} optional
585
+ * @param {{action: string, category: string}} trackerNames - (optional) a list of extra trackers to run the command on
586
+ */
587
+
588
+ function event() {
589
+ var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
590
+ category = _ref2.category,
591
+ action = _ref2.action,
592
+ label = _ref2.label,
593
+ value = _ref2.value,
594
+ nonInteraction = _ref2.nonInteraction,
595
+ transport = _ref2.transport,
596
+ args = _objectWithoutProperties$1(_ref2, ["category", "action", "label", "value", "nonInteraction", "transport"]);
597
+
598
+ var trackerNames = arguments.length > 1 ? arguments[1] : undefined;
599
+
600
+ if (typeof ga === 'function') {
601
+ // Simple Validation
602
+ if (!category || !action) {
603
+ warn('args.category AND args.action are required in event()');
604
+ return;
605
+ } // Required Fields
606
+
607
+
608
+ var fieldObject = {
609
+ hitType: 'event',
610
+ eventCategory: _format(category),
611
+ eventAction: _format(action)
612
+ }; // Optional Fields
613
+
614
+ if (label) {
615
+ fieldObject.eventLabel = _format(label);
616
+ }
617
+
618
+ if (typeof value !== 'undefined') {
619
+ if (typeof value !== 'number') {
620
+ warn('Expected `args.value` arg to be a Number.');
621
+ } else {
622
+ fieldObject.eventValue = value;
623
+ }
624
+ }
625
+
626
+ if (typeof nonInteraction !== 'undefined') {
627
+ if (typeof nonInteraction !== 'boolean') {
628
+ warn('`args.nonInteraction` must be a boolean.');
629
+ } else {
630
+ fieldObject.nonInteraction = nonInteraction;
631
+ }
632
+ }
633
+
634
+ if (typeof transport !== 'undefined') {
635
+ if (typeof transport !== 'string') {
636
+ warn('`args.transport` must be a string.');
637
+ } else {
638
+ if (['beacon', 'xhr', 'image'].indexOf(transport) === -1) {
639
+ warn('`args.transport` must be either one of these values: `beacon`, `xhr` or `image`');
640
+ }
641
+
642
+ fieldObject.transport = transport;
643
+ }
644
+ }
645
+
646
+ Object.keys(args).filter(function (key) {
647
+ return key.substr(0, 'dimension'.length) === 'dimension';
648
+ }).forEach(function (key) {
649
+ fieldObject[key] = args[key];
650
+ });
651
+ Object.keys(args).filter(function (key) {
652
+ return key.substr(0, 'metric'.length) === 'metric';
653
+ }).forEach(function (key) {
654
+ fieldObject[key] = args[key];
655
+ }); // Send to GA
656
+
657
+ send(fieldObject, trackerNames);
658
+ }
659
+ }
660
+ /**
661
+ * exception:
662
+ * GA exception tracking
663
+ * @param args.description {String} optional
664
+ * @param args.fatal {boolean} optional
665
+ * @param {Array} trackerNames - (optional) a list of extra trackers to run the command on
666
+ */
667
+
668
+ function exception(_ref3, trackerNames) {
669
+ var description = _ref3.description,
670
+ fatal = _ref3.fatal;
671
+
672
+ if (typeof ga === 'function') {
673
+ // Required Fields
674
+ var fieldObject = {
675
+ hitType: 'exception'
676
+ }; // Optional Fields
677
+
678
+ if (description) {
679
+ fieldObject.exDescription = _format(description);
680
+ }
681
+
682
+ if (typeof fatal !== 'undefined') {
683
+ if (typeof fatal !== 'boolean') {
684
+ warn('`args.fatal` must be a boolean.');
685
+ } else {
686
+ fieldObject.exFatal = fatal;
687
+ }
688
+ } // Send to GA
689
+
690
+
691
+ send(fieldObject, trackerNames);
692
+ }
693
+ }
694
+ var plugin = {
695
+ /**
696
+ * require:
697
+ * GA requires a plugin
698
+ * @param name {String} e.g. 'ecommerce' or 'myplugin'
699
+ * @param options {Object} optional e.g {path: '/log', debug: true}
700
+ * @param trackerName {String} optional e.g 'trackerName'
701
+ */
702
+ require: function require(rawName, options, trackerName) {
703
+ if (typeof ga === 'function') {
704
+ // Required Fields
705
+ if (!rawName) {
706
+ warn('`name` is required in .require()');
707
+ return;
708
+ }
709
+
710
+ var name = trim(rawName);
711
+
712
+ if (name === '') {
713
+ warn('`name` cannot be an empty string in .require()');
714
+ return;
715
+ }
716
+
717
+ var requireString = trackerName ? "".concat(trackerName, ".require") : 'require'; // Optional Fields
718
+
719
+ if (options) {
720
+ if (_typeof$1(options) !== 'object') {
721
+ warn('Expected `options` arg to be an Object');
722
+ return;
723
+ }
724
+
725
+ if (Object.keys(options).length === 0) {
726
+ warn('Empty `options` given to .require()');
727
+ }
728
+
729
+ ga(requireString, name, options);
730
+
731
+ if (_debug) {
732
+ log("called ga('require', '".concat(name, "', ").concat(JSON.stringify(options)));
733
+ }
734
+ } else {
735
+ ga(requireString, name);
736
+
737
+ if (_debug) {
738
+ log("called ga('require', '".concat(name, "');"));
739
+ }
740
+ }
741
+ }
742
+ },
743
+
744
+ /**
745
+ * execute:
746
+ * GA execute action for plugin
747
+ * Takes variable number of arguments
748
+ * @param pluginName {String} e.g. 'ecommerce' or 'myplugin'
749
+ * @param action {String} e.g. 'addItem' or 'myCustomAction'
750
+ * @param actionType {String} optional e.g. 'detail'
751
+ * @param payload {Object} optional e.g { id: '1x5e', name : 'My product to track' }
752
+ */
753
+ execute: function execute(pluginName, action) {
754
+ var payload;
755
+ var actionType;
756
+
757
+ for (var _len3 = arguments.length, args = new Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) {
758
+ args[_key3 - 2] = arguments[_key3];
759
+ }
760
+
761
+ if (args.length === 1) {
762
+ payload = args[0];
763
+ } else {
764
+ actionType = args[0];
765
+ payload = args[1];
766
+ }
767
+
768
+ if (typeof ga === 'function') {
769
+ if (typeof pluginName !== 'string') {
770
+ warn('Expected `pluginName` arg to be a String.');
771
+ } else if (typeof action !== 'string') {
772
+ warn('Expected `action` arg to be a String.');
773
+ } else {
774
+ var command = "".concat(pluginName, ":").concat(action);
775
+ payload = payload || null;
776
+
777
+ if (actionType && payload) {
778
+ ga(command, actionType, payload);
779
+
780
+ if (_debug) {
781
+ log("called ga('".concat(command, "');"));
782
+ log("actionType: \"".concat(actionType, "\" with payload: ").concat(JSON.stringify(payload)));
783
+ }
784
+ } else if (payload) {
785
+ ga(command, payload);
786
+
787
+ if (_debug) {
788
+ log("called ga('".concat(command, "');"));
789
+ log("with payload: ".concat(JSON.stringify(payload)));
790
+ }
791
+ } else {
792
+ ga(command);
793
+
794
+ if (_debug) {
795
+ log("called ga('".concat(command, "');"));
796
+ }
797
+ }
798
+ }
799
+ }
800
+ }
801
+ };
802
+ /**
803
+ * outboundLink:
804
+ * GA outboundLink tracking
805
+ * @param args.label {String} e.g. url, or 'Create an Account'
806
+ * @param {function} hitCallback - Called after processing a hit.
807
+ */
808
+
809
+ function outboundLink(args, hitCallback, trackerNames) {
810
+ if (typeof hitCallback !== 'function') {
811
+ warn('hitCallback function is required');
812
+ return;
813
+ }
814
+
815
+ if (typeof ga === 'function') {
816
+ // Simple Validation
817
+ if (!args || !args.label) {
818
+ warn('args.label is required in outboundLink()');
819
+ return;
820
+ } // Required Fields
821
+
822
+
823
+ var fieldObject = {
824
+ hitType: 'event',
825
+ eventCategory: 'Outbound',
826
+ eventAction: 'Click',
827
+ eventLabel: _format(args.label)
828
+ };
829
+ var safetyCallbackCalled = false;
830
+
831
+ var safetyCallback = function safetyCallback() {
832
+ // This prevents a delayed response from GA
833
+ // causing hitCallback from being fired twice
834
+ safetyCallbackCalled = true;
835
+ hitCallback();
836
+ }; // Using a timeout to ensure the execution of critical application code
837
+ // in the case when the GA server might be down
838
+ // or an ad blocker prevents sending the data
839
+ // register safety net timeout:
840
+
841
+
842
+ var t = setTimeout(safetyCallback, 250);
843
+
844
+ var clearableCallbackForGA = function clearableCallbackForGA() {
845
+ clearTimeout(t);
846
+
847
+ if (!safetyCallbackCalled) {
848
+ hitCallback();
849
+ }
850
+ };
851
+
852
+ fieldObject.hitCallback = clearableCallbackForGA; // Send to GA
853
+
854
+ send(fieldObject, trackerNames);
855
+ } else {
856
+ // if ga is not defined, return the callback so the application
857
+ // continues to work as expected
858
+ setTimeout(hitCallback, 0);
859
+ }
860
+ }
861
+ var testModeAPI = TestModeAPI;
862
+ var core = {
863
+ initialize: initialize,
864
+ ga: ga,
865
+ set: set,
866
+ send: send,
867
+ pageview: pageview,
868
+ modalview: modalview,
869
+ timing: timing,
870
+ event: event,
871
+ exception: exception,
872
+ plugin: plugin,
873
+ outboundLink: outboundLink,
874
+ testModeAPI: TestModeAPI
875
+ };
876
+
877
+ var Defaults = /*#__PURE__*/Object.freeze({
878
+ __proto__: null,
879
+ addTrackers: addTrackers,
880
+ initialize: initialize,
881
+ ga: ga,
882
+ set: set,
883
+ send: send,
884
+ pageview: pageview,
885
+ modalview: modalview,
886
+ timing: timing,
887
+ event: event,
888
+ exception: exception,
889
+ plugin: plugin,
890
+ outboundLink: outboundLink,
891
+ testModeAPI: testModeAPI,
892
+ 'default': core
893
+ });
894
+
895
+ 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; }
896
+
897
+ 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; }
898
+
899
+ 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; }
900
+ OutboundLink.origTrackLink = OutboundLink.trackLink;
901
+ OutboundLink.trackLink = outboundLink;
902
+ var OutboundLink$1 = OutboundLink;
903
+ var ReactGA = _objectSpread$2(_objectSpread$2({}, Defaults), {}, {
904
+ OutboundLink: OutboundLink$1
905
+ });
14
906
 
15
907
  var _this = undefined;
16
908
 
@@ -77,7 +969,7 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
77
969
  adsToRefresh = domAds.reduce(function (acc, item) {
78
970
  ads.forEach(function (ad) {
79
971
  if (item.includes(ad)) {
80
- acc = [].concat(_toConsumableArray(acc), [item]);
972
+ acc = [].concat(_toConsumableArray$1(acc), [item]);
81
973
  }
82
974
  });
83
975
  return acc;
@@ -112,7 +1004,7 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
112
1004
  _refreshADs$mobileAds = refreshADs.mobileAds, mobileAds = _refreshADs$mobileAds === undefined ? ['leaderboard-ad'] : _refreshADs$mobileAds, _refreshADs$desktopAd = refreshADs.desktopAds, desktopAds = _refreshADs$desktopAd === undefined ? [] : _refreshADs$desktopAd;
113
1005
  ads = [];
114
1006
 
115
- if (!main_43) {
1007
+ if (!main_36) {
116
1008
  _context2.next = 8;
117
1009
  break;
118
1010
  }
@@ -126,7 +1018,7 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
126
1018
  break;
127
1019
 
128
1020
  case 8:
129
- if (!main_24) {
1021
+ if (!main_22) {
130
1022
  _context2.next = 12;
131
1023
  break;
132
1024
  }
@@ -138,7 +1030,7 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
138
1030
  ads = _context2.sent;
139
1031
 
140
1032
  case 12:
141
- lib_3.refresh.apply(lib_3, _toConsumableArray(ads));
1033
+ lib_3.refresh.apply(lib_3, _toConsumableArray$1(ads));
142
1034
  logEvent('AD Refresh', 'AD');
143
1035
  adRefreshCount++;
144
1036
  console.log('NumOfTimesAd refreshed', adRefreshCount);