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