@mjhls/mjh-framework 1.0.445 → 1.0.447

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 (238) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +32 -0
  3. package/dist/cjs/AD300x250.js +60 -0
  4. package/dist/cjs/AD300x250x600.js +60 -0
  5. package/dist/cjs/AD728x90.js +106 -0
  6. package/dist/cjs/ADFloatingFooter.js +139 -0
  7. package/dist/cjs/ADFooter.js +45 -0
  8. package/dist/cjs/ADGutter.js +88 -0
  9. package/dist/cjs/{ADInfeed-ae1f348d.js → ADInfeed-7609d929.js} +2 -2
  10. package/dist/cjs/ADSponsoredResources.js +106 -0
  11. package/dist/cjs/ADWelcome.js +150 -0
  12. package/dist/cjs/{ADlgInfeed-f4c4a1bf.js → ADlgInfeed-700551ef.js} +2 -2
  13. package/dist/cjs/AccordionPanel.js +95 -0
  14. package/dist/cjs/AdSlot.js +166 -0
  15. package/dist/cjs/AdSlotsProvider.js +31 -0
  16. package/dist/cjs/AlphabeticList.js +137 -0
  17. package/dist/cjs/ArticleQueue.js +863 -0
  18. package/dist/cjs/Auth.js +3950 -0
  19. package/dist/cjs/{AuthorComponent-b44bb44e.js → AuthorComponent-5bb8f868.js} +1 -1
  20. package/dist/cjs/Beam.js +347 -0
  21. package/dist/cjs/{TaxonomyCard-fa09aac1.js → BlockContent-80608595.js} +0 -236
  22. package/dist/cjs/Breadcrumbs.js +108 -0
  23. package/dist/cjs/CMEDeck.js +454 -0
  24. package/dist/cjs/Column1.js +39 -0
  25. package/dist/cjs/Column2.js +67 -0
  26. package/dist/cjs/Column3.js +141 -0
  27. package/dist/cjs/ConferenceArticleCard.js +91 -0
  28. package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
  29. package/dist/cjs/DeckContent.js +24 -13
  30. package/dist/cjs/DeckQueue.js +17 -10
  31. package/dist/cjs/{Dfp-d7639f4c.js → Dfp-19f10ad4.js} +8 -5
  32. package/dist/cjs/EventsDeck.js +1999 -0
  33. package/dist/cjs/Feature.js +120 -0
  34. package/dist/cjs/{Figure-cc919c38.js → Figure-ce37247b.js} +3 -2
  35. package/dist/cjs/ForbesHero.js +140 -0
  36. package/dist/cjs/GridContent.js +721 -33
  37. package/dist/cjs/GridHero.js +145 -0
  38. package/dist/cjs/GroupDeck.js +5 -3
  39. package/dist/cjs/HamMagazine.js +477 -0
  40. package/dist/cjs/Header.js +37 -0
  41. package/dist/cjs/Hero.js +56 -0
  42. package/dist/cjs/HighlightenVideo.js +69 -0
  43. package/dist/cjs/HorizontalHero.js +109 -0
  44. package/dist/cjs/InscreenSensor-04a70c60.js +864 -0
  45. package/dist/cjs/IssueContentDeck.js +4 -3
  46. package/dist/cjs/IssueDeck.js +6 -4
  47. package/dist/cjs/IssueLanding.js +115 -0
  48. package/dist/cjs/KMTracker.js +27 -0
  49. package/dist/cjs/LeftNav.js +99 -0
  50. package/dist/cjs/MasterDeck.js +15 -8
  51. package/dist/cjs/NavDvm.js +223 -0
  52. package/dist/cjs/NavFooter-3dcd99a8.js +66 -0
  53. package/dist/cjs/NavMagazine.js +436 -0
  54. package/dist/cjs/NavNative.js +278 -0
  55. package/dist/cjs/NavNormal.js +109 -0
  56. package/dist/cjs/OncliveHero.js +78 -0
  57. package/dist/cjs/OncliveLargeHero.js +243 -0
  58. package/dist/cjs/PageFilter.js +73 -0
  59. package/dist/cjs/PdfDownload.js +28 -0
  60. package/dist/cjs/PopUpModal.js +59 -0
  61. package/dist/cjs/PublicationLanding.js +556 -0
  62. package/dist/cjs/QueueDeckExpanded.js +20 -11
  63. package/dist/cjs/RelatedContent.js +107 -0
  64. package/dist/cjs/RelatedTopicsDropdown.js +90 -0
  65. package/dist/cjs/Search.js +67 -0
  66. package/dist/cjs/Segment.js +225 -0
  67. package/dist/cjs/SetCookie.js +10 -0
  68. package/dist/cjs/SideFooter.js +103 -0
  69. package/dist/cjs/SocialNavFooter-d9ab4d17.js +83 -0
  70. package/dist/cjs/SocialShare.js +72 -0
  71. package/dist/cjs/TaxonomyCard.js +241 -11
  72. package/dist/cjs/TemplateNormal.js +175 -13
  73. package/dist/cjs/Ustream.js +107 -6
  74. package/dist/cjs/VerticalHero.js +75 -0
  75. package/dist/cjs/VideoSeriesFilter.js +133 -0
  76. package/dist/cjs/VideoSeriesListing.js +13 -7
  77. package/dist/cjs/View.js +1156 -0
  78. package/dist/cjs/YahooHero.js +129 -0
  79. package/dist/cjs/YoutubeGroup.js +5 -3
  80. package/dist/cjs/_arrayMap-3b4a0f75.js +91 -0
  81. package/dist/cjs/_is-array-754e012d.js +74 -0
  82. package/dist/cjs/{_iter-detect-234453c3.js → _iter-detect-4d0352f8.js} +4 -4
  83. package/dist/cjs/_object-sap-5e74ba08.js +16 -0
  84. package/dist/cjs/_set-species-4458e975.js +56 -0
  85. package/dist/cjs/{AdSlot-257d8d4e.js → asyncToGenerator-db08763c.js} +1 -710
  86. package/dist/cjs/brightcove-react-player-loader.es-4ba0d3d5.js +2231 -0
  87. package/dist/cjs/{web.dom.iterable-5c889cf1.js → core.get-iterator-method-41e87ec1.js} +0 -46
  88. package/dist/cjs/debounce-32e57002.js +280 -0
  89. package/dist/cjs/{toConsumableArray-25d0e2a3.js → from-ea347372.js} +4 -29
  90. package/dist/cjs/{get-7a75c563.js → get-5dfcdc33.js} +14 -100
  91. package/dist/cjs/getKeywords.js +31 -0
  92. package/dist/cjs/getQuery.js +20 -0
  93. package/dist/cjs/getSerializers.js +8032 -0
  94. package/dist/cjs/getSeriesDetail.js +38 -0
  95. package/dist/cjs/getTargeting-3ced038f.js +108 -0
  96. package/dist/cjs/getTargeting.js +15 -0
  97. package/dist/cjs/iconBase-637d3f1e.js +83 -0
  98. package/dist/cjs/{debounce-420ff8a8.js → index-b2448ff6.js} +0 -483
  99. package/dist/cjs/index.esm-25423c2f.js +16 -0
  100. package/dist/cjs/index.esm-c0d8b44b.js +21 -0
  101. package/dist/cjs/index.esm-fcdbd2c6.js +31 -0
  102. package/dist/cjs/index.js +190 -23088
  103. package/dist/cjs/{inherits-b4036c94.js → inherits-4a2f1cc3.js} +6 -17
  104. package/dist/cjs/isSymbol-488934a7.js +211 -0
  105. package/dist/cjs/js.cookie-a511c430.js +160 -0
  106. package/dist/cjs/keys-a586b7a0.js +25 -0
  107. package/dist/cjs/{promise-0a493c7a.js → promise-074978a7.js} +15 -62
  108. package/dist/cjs/{slicedToArray-419d467a.js → slicedToArray-8063ee51.js} +5 -4
  109. package/dist/cjs/stringify-7c5aff47.js +17 -0
  110. package/dist/cjs/toConsumableArray-ca04303b.js +31 -0
  111. package/dist/cjs/{typeof-0d86b91c.js → typeof-583cdc4b.js} +20 -87
  112. package/dist/cjs/urlFor.js +10 -0
  113. package/dist/cjs/util-f2c1b65b.js +576 -0
  114. package/dist/cjs/web.dom.iterable-43c3e277.js +51 -0
  115. package/dist/esm/AD.js +26 -0
  116. package/dist/esm/AD300x250.js +54 -0
  117. package/dist/esm/AD300x250x600.js +54 -0
  118. package/dist/esm/AD728x90.js +100 -0
  119. package/dist/esm/ADFloatingFooter.js +133 -0
  120. package/dist/esm/ADFooter.js +39 -0
  121. package/dist/esm/ADGutter.js +82 -0
  122. package/dist/esm/{ADInfeed-dff74bbe.js → ADInfeed-1c17dc0e.js} +1 -1
  123. package/dist/esm/ADSponsoredResources.js +100 -0
  124. package/dist/esm/ADWelcome.js +144 -0
  125. package/dist/esm/{ADlgInfeed-7b29db85.js → ADlgInfeed-94d7f5dd.js} +1 -1
  126. package/dist/esm/AccordionPanel.js +88 -0
  127. package/dist/esm/AdSlot.js +159 -0
  128. package/dist/esm/AdSlotsProvider.js +25 -0
  129. package/dist/esm/AlphabeticList.js +131 -0
  130. package/dist/esm/ArticleQueue.js +855 -0
  131. package/dist/esm/Auth.js +3930 -0
  132. package/dist/esm/{AuthorComponent-4f5f15ed.js → AuthorComponent-f67cb027.js} +1 -1
  133. package/dist/esm/Beam.js +345 -0
  134. package/dist/esm/{TaxonomyCard-b22a742f.js → BlockContent-4af2feb9.js} +2 -233
  135. package/dist/esm/Breadcrumbs.js +101 -0
  136. package/dist/esm/CMEDeck.js +448 -0
  137. package/dist/esm/Column1.js +29 -0
  138. package/dist/esm/Column2.js +57 -0
  139. package/dist/esm/Column3.js +131 -0
  140. package/dist/esm/ConferenceArticleCard.js +85 -0
  141. package/dist/esm/ConferenceBanner-9162d0ca.js +18 -0
  142. package/dist/esm/DeckContent.js +24 -13
  143. package/dist/esm/DeckQueue.js +17 -10
  144. package/dist/esm/{Dfp-994cd0ab.js → Dfp-7addbfb1.js} +7 -4
  145. package/dist/esm/EventsDeck.js +1987 -0
  146. package/dist/esm/Feature.js +113 -0
  147. package/dist/esm/{Figure-1c55ebf0.js → Figure-408929f3.js} +4 -3
  148. package/dist/esm/ForbesHero.js +134 -0
  149. package/dist/esm/GridContent.js +714 -30
  150. package/dist/esm/GridHero.js +139 -0
  151. package/dist/esm/GroupDeck.js +6 -4
  152. package/dist/esm/HamMagazine.js +465 -0
  153. package/dist/esm/Header.js +28 -0
  154. package/dist/esm/Hero.js +50 -0
  155. package/dist/esm/HighlightenVideo.js +63 -0
  156. package/dist/esm/HorizontalHero.js +103 -0
  157. package/dist/esm/InscreenSensor-b7f931bf.js +857 -0
  158. package/dist/esm/IssueContentDeck.js +5 -4
  159. package/dist/esm/IssueDeck.js +8 -6
  160. package/dist/esm/IssueLanding.js +109 -0
  161. package/dist/esm/KMTracker.js +25 -0
  162. package/dist/esm/LeftNav.js +90 -0
  163. package/dist/esm/MasterDeck.js +17 -10
  164. package/dist/esm/NavDvm.js +211 -0
  165. package/dist/esm/NavFooter-c29526b7.js +60 -0
  166. package/dist/esm/NavMagazine.js +424 -0
  167. package/dist/esm/NavNative.js +266 -0
  168. package/dist/esm/NavNormal.js +97 -0
  169. package/dist/esm/OncliveHero.js +72 -0
  170. package/dist/esm/OncliveLargeHero.js +237 -0
  171. package/dist/esm/PageFilter.js +67 -0
  172. package/dist/esm/PdfDownload.js +22 -0
  173. package/dist/esm/PopUpModal.js +52 -0
  174. package/dist/esm/PublicationLanding.js +546 -0
  175. package/dist/esm/QueueDeckExpanded.js +22 -13
  176. package/dist/esm/RelatedContent.js +101 -0
  177. package/dist/esm/RelatedTopicsDropdown.js +82 -0
  178. package/dist/esm/Search.js +58 -0
  179. package/dist/esm/Segment.js +223 -0
  180. package/dist/esm/SetCookie.js +8 -0
  181. package/dist/esm/SideFooter.js +97 -0
  182. package/dist/esm/SocialNavFooter-1a531144.js +77 -0
  183. package/dist/esm/SocialShare.js +65 -0
  184. package/dist/esm/TaxonomyCard.js +237 -11
  185. package/dist/esm/TemplateNormal.js +175 -14
  186. package/dist/esm/Ustream.js +107 -6
  187. package/dist/esm/VerticalHero.js +69 -0
  188. package/dist/esm/VideoSeriesFilter.js +127 -0
  189. package/dist/esm/VideoSeriesListing.js +14 -8
  190. package/dist/esm/View.js +1145 -0
  191. package/dist/esm/YahooHero.js +123 -0
  192. package/dist/esm/YoutubeGroup.js +6 -4
  193. package/dist/esm/_arrayMap-a8dd2b2c.js +87 -0
  194. package/dist/esm/_is-array-dd5523d6.js +71 -0
  195. package/dist/esm/{_iter-detect-7c281f0a.js → _iter-detect-6e099a34.js} +2 -2
  196. package/dist/esm/_object-sap-56bb8073.js +14 -0
  197. package/dist/esm/_set-species-6f64f1c1.js +51 -0
  198. package/dist/esm/{_to-object-1b1f7766.js → _to-object-16fd8b46.js} +1 -1
  199. package/dist/esm/{AdSlot-362a1c30.js → asyncToGenerator-204b5a5c.js} +3 -703
  200. package/dist/esm/brightcove-react-player-loader.es-e1c6b0f2.js +2225 -0
  201. package/dist/esm/{web.dom.iterable-e6bf2bf6.js → core.get-iterator-method-f5c0d66a.js} +2 -47
  202. package/dist/esm/debounce-8cd9e09c.js +277 -0
  203. package/dist/esm/{extends-92072fff.js → extends-6e00b262.js} +1 -1
  204. package/dist/esm/{toConsumableArray-c5e2fde8.js → from-2c0a5f49.js} +4 -29
  205. package/dist/esm/{get-bc6cf9fb.js → get-ae817b75.js} +3 -86
  206. package/dist/esm/getKeywords.js +29 -0
  207. package/dist/esm/getQuery.js +18 -0
  208. package/dist/esm/getSerializers.js +8021 -0
  209. package/dist/esm/getSeriesDetail.js +36 -0
  210. package/dist/esm/getTargeting-8f4bd5db.js +105 -0
  211. package/dist/esm/getTargeting.js +9 -0
  212. package/dist/esm/iconBase-6ee2f2fb.js +81 -0
  213. package/dist/esm/{debounce-42a7f724.js → index-fb49124c.js} +2 -476
  214. package/dist/esm/index.esm-9d6faf80.js +17 -0
  215. package/dist/esm/index.esm-a7ad65ba.js +13 -0
  216. package/dist/esm/{index.esm-536609db.js → index.esm-b97cf389.js} +2 -80
  217. package/dist/esm/index.js +137 -23019
  218. package/dist/esm/{inherits-bbec2f34.js → inherits-2758cc14.js} +5 -15
  219. package/dist/esm/isSymbol-c1b9be80.js +203 -0
  220. package/dist/esm/js.cookie-6874175c.js +158 -0
  221. package/dist/esm/keys-04cdec91.js +23 -0
  222. package/dist/esm/{main-cf4930f0.js → main-8c8784b8.js} +1 -1
  223. package/dist/esm/{promise-2592a80a.js → promise-53143c9a.js} +6 -49
  224. package/dist/esm/{slicedToArray-04e02710.js → slicedToArray-f1e40361.js} +3 -2
  225. package/dist/esm/stringify-e30bc114.js +15 -0
  226. package/dist/esm/toConsumableArray-8712d678.js +29 -0
  227. package/dist/esm/{typeof-09bf9211.js → typeof-7e72fee0.js} +5 -70
  228. package/dist/esm/urlFor.js +8 -0
  229. package/dist/esm/util-7700fc59.js +574 -0
  230. package/dist/esm/web.dom.iterable-46c95e52.js +49 -0
  231. package/package.json +1 -1
  232. package/dist/cjs/GridContent-6a0216fb.js +0 -728
  233. package/dist/cjs/Normal-430e8e61.js +0 -2315
  234. package/dist/cjs/Ustream-46288bdf.js +0 -119
  235. package/dist/cjs/index.esm-340d3792.js +0 -110
  236. package/dist/esm/GridContent-7e11f013.js +0 -717
  237. package/dist/esm/Normal-6efd92da.js +0 -2282
  238. package/dist/esm/Ustream-c4f281a3.js +0 -112
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect, useState, useRef } from 'react';
2
- import { _ as _slicedToArray } from './slicedToArray-04e02710.js';
2
+ import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
3
3
 
4
4
  var AuthorComponent = function AuthorComponent(_ref) {
5
5
  var authors = _ref.authors,
@@ -0,0 +1,345 @@
1
+ import './_commonjsHelpers-0c4b6f40.js';
2
+ import './_to-object-16fd8b46.js';
3
+ import './core.get-iterator-method-f5c0d66a.js';
4
+ import './_library-528f1934.js';
5
+ import './_iter-detect-6e099a34.js';
6
+ import './web.dom.iterable-46c95e52.js';
7
+ import { _ as _JSON$stringify } from './stringify-e30bc114.js';
8
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-204b5a5c.js';
9
+ import './_set-species-6f64f1c1.js';
10
+ import './promise-53143c9a.js';
11
+
12
+ require("babel-polyfill");
13
+ // server key for beam
14
+ // fnADs4Gtx6ACEgKgwlNo-eNSIrdwykH9Zj74GsDI
15
+
16
+ var beam_domain = 'https://beam.mjhlifesciences.com';
17
+
18
+ function getCookie(cname) {
19
+ var name = cname + "=";
20
+ var decodedCookie = decodeURIComponent(document.cookie);
21
+ var ca = decodedCookie.split(';');
22
+ for (var i = 0; i < ca.length; i++) {
23
+ var c = ca[i];
24
+ while (c.charAt(0) == ' ') {
25
+ c = c.substring(1);
26
+ }
27
+ if (c.indexOf(name) == 0) {
28
+ return c.substring(name.length, c.length);
29
+ }
30
+ }
31
+ return "";
32
+ }
33
+
34
+ var Beam = {
35
+ proc_url: function proc_url() {
36
+ var $_GET = {};
37
+ document.location.search.replace(/\??(?:([^=]+)=([^&]*)&?)/g, function () {
38
+ function decode(s) {
39
+ return decodeURIComponent(s.split("+").join(" "));
40
+ }
41
+ $_GET[decode(arguments[1])] = decode(arguments[2]);
42
+ });
43
+
44
+ return $_GET;
45
+ },
46
+ proc_eKey: function proc_eKey($_GET) {
47
+ var _this = this;
48
+
49
+ return _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
50
+ var eKey;
51
+ return regenerator.wrap(function _callee$(_context) {
52
+ while (1) {
53
+ switch (_context.prev = _context.next) {
54
+ case 0:
55
+ eKey = "N/A";
56
+
57
+
58
+ if ($_GET["eKey"]) {
59
+ eKey = $_GET["eKey"];
60
+ } else if (typeof window.eKey !== 'undefined') {
61
+ eKey = window.eKey;
62
+ }
63
+
64
+ if (!eKey || eKey === 'N/A') {
65
+ eKey = getCookie('eKey');
66
+ }
67
+
68
+ return _context.abrupt('return', eKey);
69
+
70
+ case 4:
71
+ case 'end':
72
+ return _context.stop();
73
+ }
74
+ }
75
+ }, _callee, _this);
76
+ }))();
77
+ },
78
+ proc_source: function proc_source() {
79
+ var referrer = "N/A";
80
+
81
+ if (encodeURIComponent(document.referrer)) {
82
+ referrer = encodeURIComponent(document.referrer);
83
+ }
84
+
85
+ return referrer;
86
+ },
87
+ proc_meta: function proc_meta() {
88
+ var data = {};
89
+
90
+ //keyword processing
91
+ var element = document.querySelector('meta[name="keywords"]');
92
+
93
+ data.keywords = "N/A";
94
+
95
+ if (element && element.getAttribute("content")) {
96
+ data.keywords = element.getAttribute("content");
97
+ }
98
+
99
+ //title processing
100
+ data.title = "N/A";
101
+ if (document.title !== "undefined") {
102
+ data.title = document.title;
103
+ }
104
+
105
+ return data;
106
+ },
107
+ proc_host: function proc_host() {
108
+ var data = {};
109
+ data.domain = window.location.hostname;
110
+ data.uri = window.location.pathname;
111
+ data.host = window.location.host;
112
+ data.protocol = window.location.protocol;
113
+
114
+ if (window.location.search) {
115
+ data.uri = data.uri + window.location.search;
116
+ }
117
+
118
+ return data;
119
+ },
120
+ get_beam: function get_beam(deviceType) {
121
+ var _this2 = this;
122
+
123
+ return _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
124
+ var beam;
125
+ return regenerator.wrap(function _callee2$(_context2) {
126
+ while (1) {
127
+ switch (_context2.prev = _context2.next) {
128
+ case 0:
129
+ beam = {};
130
+ _context2.next = 3;
131
+ return _this2.proc_eKey(_this2.proc_url());
132
+
133
+ case 3:
134
+ beam.eKey = _context2.sent;
135
+
136
+ beam.source = _this2.proc_source();
137
+ beam.meta = _this2.proc_meta();
138
+ beam.host = _this2.proc_host();
139
+ beam.device = deviceType;
140
+ return _context2.abrupt('return', beam);
141
+
142
+ case 9:
143
+ case 'end':
144
+ return _context2.stop();
145
+ }
146
+ }
147
+ }, _callee2, _this2);
148
+ }))();
149
+ },
150
+
151
+
152
+ /* for client use */
153
+ report_beam_event: function report_beam_event(action, deviceType) {
154
+ var _this3 = this;
155
+
156
+ return _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3() {
157
+ var beam, response, res;
158
+ return regenerator.wrap(function _callee3$(_context3) {
159
+ while (1) {
160
+ switch (_context3.prev = _context3.next) {
161
+ case 0:
162
+ _context3.next = 2;
163
+ return _this3.get_beam(deviceType);
164
+
165
+ case 2:
166
+ beam = _context3.sent;
167
+
168
+
169
+ console.log('Call Beam', action, beam);
170
+
171
+ _context3.next = 6;
172
+ return fetch(beam_domain + '/api/beam/event', {
173
+ headers: {
174
+ 'Content-Type': 'application/json',
175
+ 'Accept': 'application/json'
176
+ },
177
+ method: 'post',
178
+ credentials: "include",
179
+ body: _JSON$stringify({
180
+ event: 'Beam',
181
+ action: action,
182
+ beam: _JSON$stringify(beam)
183
+ })
184
+ });
185
+
186
+ case 6:
187
+ response = _context3.sent;
188
+ _context3.next = 9;
189
+ return response.json();
190
+
191
+ case 9:
192
+ res = _context3.sent;
193
+
194
+ if (res.error) {
195
+ console.error('Beam reporting error:', res.error);
196
+ }
197
+
198
+ case 11:
199
+ case 'end':
200
+ return _context3.stop();
201
+ }
202
+ }
203
+ }, _callee3, _this3);
204
+ }))();
205
+ },
206
+ report_beam_ad: function report_beam_ad(action, deviceType, cID, lID, campID, adSize, slotId) {
207
+ var adType = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 'DFP';
208
+
209
+ var _this4 = this;
210
+
211
+ var adDurationBrightCove = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : '';
212
+ var adIDBrightCove = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : '';
213
+ return _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee4() {
214
+ var beam, data, response, res;
215
+ return regenerator.wrap(function _callee4$(_context4) {
216
+ while (1) {
217
+ switch (_context4.prev = _context4.next) {
218
+ case 0:
219
+ _context4.next = 2;
220
+ return _this4.get_beam(deviceType);
221
+
222
+ case 2:
223
+ beam = _context4.sent;
224
+ data = {};
225
+
226
+ data.campaignId = campID;
227
+ data.lineItemId = lID;
228
+ data.creativeId = cID;
229
+ data.size = adSize;
230
+ data.slotId = slotId;
231
+
232
+ data.adType = adType;
233
+ data.adDurationBrightCove = adDurationBrightCove;
234
+ data.adIDBrightCove = adIDBrightCove;
235
+
236
+ console.log('Call ' + adType, action, data);
237
+
238
+ _context4.next = 15;
239
+ return fetch(beam_domain + '/api/beam/ad', {
240
+ headers: {
241
+ 'Content-Type': 'application/json',
242
+ 'Accept': 'application/json'
243
+ },
244
+ method: 'post',
245
+ credentials: "include",
246
+ body: _JSON$stringify({
247
+ event: 'DFP',
248
+ action: action,
249
+ beam: _JSON$stringify(beam),
250
+ data: _JSON$stringify(data)
251
+ })
252
+ });
253
+
254
+ case 15:
255
+ response = _context4.sent;
256
+ _context4.next = 18;
257
+ return response.json();
258
+
259
+ case 18:
260
+ res = _context4.sent;
261
+
262
+ if (res.error) {
263
+ console.error('DFP reporting error:', res.error);
264
+ }
265
+
266
+ case 20:
267
+ case 'end':
268
+ return _context4.stop();
269
+ }
270
+ }
271
+ }, _callee4, _this4);
272
+ }))();
273
+ },
274
+ report_beam_video: function report_beam_video(action, deviceType, duration, current, segment) {
275
+ var videoType = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 'Youtube';
276
+ var brightCovePlayerID = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';
277
+
278
+ var _this5 = this;
279
+
280
+ var brightCoveAccountID = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : '';
281
+ var brightCoveVideoID = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : '';
282
+ return _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee5() {
283
+ var beam, data, response, res;
284
+ return regenerator.wrap(function _callee5$(_context5) {
285
+ while (1) {
286
+ switch (_context5.prev = _context5.next) {
287
+ case 0:
288
+ _context5.next = 2;
289
+ return _this5.get_beam(deviceType);
290
+
291
+ case 2:
292
+ beam = _context5.sent;
293
+ data = {};
294
+
295
+ data.duration = duration;
296
+ data.queue = Math.floor(duration / 10);
297
+ data.segment = segment;
298
+ data.current = current;
299
+
300
+ data.videoType = videoType;
301
+ data.brightCovePlayerID = brightCovePlayerID;
302
+ data.brightCoveAccountID = brightCoveAccountID;
303
+ data.brightCoveVideoID = brightCoveVideoID;
304
+
305
+ console.log('Call ' + videoType, action, data);
306
+
307
+ _context5.next = 15;
308
+ return fetch(beam_domain + '/api/beam/video', {
309
+ headers: {
310
+ 'Content-Type': 'application/json',
311
+ 'Accept': 'application/json'
312
+ },
313
+ method: 'post',
314
+ credentials: "include",
315
+ body: _JSON$stringify({
316
+ event: 'Video',
317
+ action: action,
318
+ beam: _JSON$stringify(beam),
319
+ data: _JSON$stringify(data)
320
+ })
321
+ });
322
+
323
+ case 15:
324
+ response = _context5.sent;
325
+ _context5.next = 18;
326
+ return response.json();
327
+
328
+ case 18:
329
+ res = _context5.sent;
330
+
331
+ if (res.error) {
332
+ console.error('Video reporting error:', res.error);
333
+ }
334
+
335
+ case 20:
336
+ case 'end':
337
+ return _context5.stop();
338
+ }
339
+ }
340
+ }, _callee5, _this5);
341
+ }))();
342
+ }
343
+ };
344
+
345
+ export default Beam;
@@ -1,13 +1,6 @@
1
- import { _ as _extends } from './extends-92072fff.js';
2
1
  import React from 'react';
3
2
  import PropTypes from 'prop-types';
4
- import Container from 'react-bootstrap/Container';
5
- import Row from 'react-bootstrap/Row';
6
- import Col from 'react-bootstrap/Col';
7
- import Card from 'react-bootstrap/Card';
8
- import { n as node, i as imageUrlBuilder } from './index-73819142.js';
9
- import { L as LazyLoad } from './index-c5fd0af5.js';
10
- import { r as reactSocialIcons_1 } from './react-social-icons-3822f1ce.js';
3
+ import { n as node } from './index-73819142.js';
11
4
 
12
5
  /*
13
6
  object-assign
@@ -913,228 +906,4 @@ SanityBlockContent.defaultProps = {
913
906
 
914
907
  var BlockContent = SanityBlockContent;
915
908
 
916
- var TaxonomyCard = function TaxonomyCard(props) {
917
- var columns = props.columns,
918
- variant = props.variant,
919
- _props$icon = props.icon,
920
- icon = _props$icon === undefined ? false : _props$icon,
921
- data = props.dataRecord,
922
- defaultImage = props.defaultImage,
923
- client = props.client,
924
- imageHeight = props.imageHeight,
925
- imageWidth = props.imageWidth,
926
- getSerializers = props.getSerializers;
927
-
928
- var builder = imageUrlBuilder(client);
929
-
930
- var urlFor = function urlFor(source) {
931
- return builder.image(source).auto('format');
932
- };
933
-
934
- var renderCardImage = function renderCardImage(row) {
935
- var url = urlFor(row.thumbnail);
936
- if (imageHeight) url = url.height(imageHeight);
937
- if (imageWidth) url = url.width(imageWidth);
938
- return url.url();
939
- };
940
-
941
- var mode = variant && variant === 'bottom' ? 'column-reverse' : 'column';
942
-
943
- var itemCounter = 0;
944
- var lgVar = 12;
945
-
946
- return React.createElement(
947
- 'div',
948
- { className: 'contentDeck' },
949
- React.createElement(
950
- Container,
951
- null,
952
- React.createElement(
953
- Row,
954
- null,
955
- data && data.map(function (row, index) {
956
- if (columns === 'rotate' && itemCounter % 3 === 0) {
957
- lgVar = 12;
958
- } else if (columns && columns !== 'rotate') {
959
- lgVar = Math.floor(12 / columns);
960
- } else {
961
- lgVar = 6;
962
- }
963
- var thumbnailURL = row.thumbnail && row.thumbnail.asset ? renderCardImage(row) : defaultImage;
964
- var address1 = row.address1,
965
- address2 = row.address2,
966
- city = row.city,
967
- zip = row.zip,
968
- state = row.state,
969
- country = row.country,
970
- company = row.company,
971
- website = row.website,
972
- email = row.email,
973
- extraURL1 = row.extraURL1,
974
- extraURL2 = row.extraURL2,
975
- extraURL3 = row.extraURL3,
976
- extraURL4 = row.extraURL4,
977
- linkedIn = row.linkedIn,
978
- twitter = row.twitter,
979
- facebook = row.facebook;
980
-
981
- var socialLinks = [linkedIn, twitter, facebook];
982
- var address = [address1, address2, city, state, zip, country];
983
- var companyDetails = [];
984
- company && companyDetails.push({ key: 'company', value: company });
985
- website && companyDetails.push({ key: 'url', value: website });
986
- email && companyDetails.push({ key: 'email', value: email });
987
- extraURL1 && companyDetails.push({ key: 'url', value: extraURL1 });
988
- extraURL2 && companyDetails.push({ key: 'url', value: extraURL2 });
989
- extraURL3 && companyDetails.push({ key: 'url', value: extraURL3 });
990
- extraURL4 && companyDetails.push({ key: 'url', value: extraURL4 });
991
- return React.createElement(
992
- Col,
993
- { key: itemCounter, md: 12, lg: lgVar, counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
994
- React.createElement(
995
- Card,
996
- { className: 'taxonomy-card', style: { flexDirection: mode, position: 'relative', overflow: 'hidden' } },
997
- React.createElement(
998
- Card.Body,
999
- null,
1000
- React.createElement(
1001
- Row,
1002
- null,
1003
- thumbnailURL && React.createElement(
1004
- Col,
1005
- null,
1006
- React.createElement(
1007
- LazyLoad,
1008
- { height: imageHeight },
1009
- row && row.thumbnail && React.createElement(
1010
- 'figure',
1011
- null,
1012
- row.thumbnail.link ? React.createElement(
1013
- 'a',
1014
- { href: row.thumbnail.link, target: row.thumbnail.blank ? '_blank' : '_self' },
1015
- React.createElement(Card.Img, { variant: 'top', src: thumbnailURL, alt: row.thumbnail.alt ? row.thumbnail.alt : 'profile image' })
1016
- ) : React.createElement(Card.Img, { variant: 'top', src: thumbnailURL, alt: row.thumbnail.alt ? row.thumbnail.alt : 'profile image' }),
1017
- row && row.thumbnail && row.thumbnail.caption && React.createElement(
1018
- 'figcaption',
1019
- null,
1020
- row.thumbnail.caption
1021
- )
1022
- )
1023
- )
1024
- ),
1025
- React.createElement(
1026
- Col,
1027
- null,
1028
- React.createElement(
1029
- Row,
1030
- null,
1031
- React.createElement(
1032
- 'div',
1033
- null,
1034
- (address && address.length > 0 || companyDetails && companyDetails.length > 0) && React.createElement(
1035
- 'div',
1036
- { className: 'details-wrapper' },
1037
- companyDetails && companyDetails.length > 0 && React.createElement(
1038
- 'div',
1039
- { className: 'company-wrapper' },
1040
- companyDetails.map(function (field, index) {
1041
- if (field.value && field.key === 'company') {
1042
- return React.createElement(
1043
- 'p',
1044
- { className: 'details-field', key: index },
1045
- field.value
1046
- );
1047
- } else if (field.value && field.key === 'url') {
1048
- return React.createElement(
1049
- 'a',
1050
- { className: 'details-field', href: field.value, key: index },
1051
- field.value
1052
- );
1053
- }
1054
- // else if (field.value && field.key === 'email') {
1055
- // return (
1056
- // <a className='details-field' href={`mailto:${field.value}`} key={index}>
1057
- // {field.value}
1058
- // </a>
1059
- // )
1060
- // }
1061
- })
1062
- ),
1063
- address && address.length > 0 && React.createElement(
1064
- 'div',
1065
- { className: 'address-wrapper' },
1066
- address.map(function (field, index) {
1067
- if (field) {
1068
- return React.createElement(
1069
- 'p',
1070
- { className: 'details-field', key: index },
1071
- field
1072
- );
1073
- }
1074
- })
1075
- ),
1076
- React.createElement(
1077
- 'style',
1078
- { jsx: 'true' },
1079
- '\n .details-wrapper .details-field {\n margin: 0px;\n display: block;\n font-size: 1rem;\n margin-bottom: 3px;\n }\n .details-wrapper .company-wrapper {\n margin-right: 20px;\n display: inline-block;\n width: 50%;\n vertical-align: top;\n }\n .details-wrapper .address-wrapper {\n width: 45%;\n display: inline-block;\n }\n '
1080
- )
1081
- ),
1082
- socialLinks && socialLinks.length && React.createElement(
1083
- 'div',
1084
- { className: 'social-icons' },
1085
- socialLinks.map(function (url, index) {
1086
- if (url && url.length) {
1087
- return React.createElement(reactSocialIcons_1, {
1088
- target: '_blank',
1089
- rel: 'noopener noreferrer',
1090
- key: index,
1091
- index: index,
1092
- url: url,
1093
- style: { width: 30, height: 30, marginRight: 10 }
1094
- });
1095
- }
1096
- }),
1097
- React.createElement(
1098
- 'style',
1099
- { jsx: 'true' },
1100
- '\n .social-icons {\n margin-top: 0px;\n margin-bottom: 10px;\n }\n '
1101
- )
1102
- ),
1103
- React.createElement(
1104
- Card.Text,
1105
- null,
1106
- React.createElement(BlockContent, _extends({ blocks: row.summary, serializers: getSerializers }, client.config()))
1107
- )
1108
- )
1109
- )
1110
- )
1111
- ),
1112
- icon && React.createElement(
1113
- 'span',
1114
- {
1115
- className: 'taxonomy-icon',
1116
- style: {
1117
- position: 'absolute',
1118
- right: '20px',
1119
- top: '50%',
1120
- transform: 'translateY(-50%) translateX(50px)',
1121
- transition: 'all .25s',
1122
- pointerEvents: 'none'
1123
- } },
1124
- '\u2192'
1125
- )
1126
- )
1127
- )
1128
- );
1129
- })
1130
- )
1131
- ),
1132
- icon && React.createElement(
1133
- 'style',
1134
- { jsx: 'true' },
1135
- '\n .taxonomy-card:hover .taxonomy-icon {\n transform: translateY(-50%) scale(1.5) translateX(0) !important;\n }\n '
1136
- )
1137
- );
1138
- };
1139
-
1140
- export { BlockContent as B, TaxonomyCard as T };
909
+ export { BlockContent as B };
@@ -0,0 +1,101 @@
1
+ import './_commonjsHelpers-0c4b6f40.js';
2
+ import './_to-object-16fd8b46.js';
3
+ import './core.get-iterator-method-f5c0d66a.js';
4
+ import './web.dom.iterable-46c95e52.js';
5
+ import React, { useState, useEffect } from 'react';
6
+ import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
7
+ import Breadcrumb from 'react-bootstrap/Breadcrumb';
8
+
9
+ var Breadcrumbs = function Breadcrumbs(_ref) {
10
+ var _ref$data = _ref.data,
11
+ data = _ref$data === undefined ? [] : _ref$data,
12
+ _ref$separator = _ref.separator,
13
+ separator = _ref$separator === undefined ? '/' : _ref$separator;
14
+
15
+ // To be used on landing pages eg. /news/[url]
16
+ var _useState = useState(''),
17
+ _useState2 = _slicedToArray(_useState, 2),
18
+ parentPath = _useState2[0],
19
+ setParentPath = _useState2[1];
20
+
21
+ var _useState3 = useState(''),
22
+ _useState4 = _slicedToArray(_useState3, 2),
23
+ currentPath = _useState4[0],
24
+ setCurrentPath = _useState4[1];
25
+
26
+ var _useState5 = useState(''),
27
+ _useState6 = _slicedToArray(_useState5, 2),
28
+ parentPathName = _useState6[0],
29
+ setParentPathName = _useState6[1];
30
+
31
+ var get_parent_path = function get_parent_path(parsedUrl) {
32
+ var parent_path = '';
33
+ for (var i = 1; i < parsedUrl.length - 3; i++) {
34
+ if (parsedUrl.length > i + 1) {
35
+ parent_path = '' + parsedUrl[parsedUrl.length - (i + 1)] + (parent_path ? '/' + parent_path : '');
36
+ }
37
+ }
38
+
39
+ return parent_path;
40
+ };
41
+
42
+ useEffect(function () {
43
+ var parsedUrl = window.location.href.split('/');
44
+ setCurrentPath(parsedUrl[parsedUrl.length - 1].split('?')[0]);
45
+ setParentPathName(parsedUrl[parsedUrl.length - 2].split('?')[0]);
46
+ setParentPath(get_parent_path(parsedUrl));
47
+ }, []);
48
+
49
+ if (data && data.length > 0) {
50
+ return React.createElement(
51
+ Breadcrumb,
52
+ null,
53
+ data.map(function (item, index) {
54
+ return React.createElement(
55
+ Breadcrumb.Item,
56
+ { key: index, href: item.url, active: item.isActive || false },
57
+ item.name
58
+ );
59
+ }),
60
+ React.createElement(
61
+ 'style',
62
+ { jsx: 'true' },
63
+ '\n .breadcrumb {\n background: transparent;\n padding-left: 0.25rem;\n }\n .breadcrumb .breadcrumb-item + .breadcrumb-item::before {\n content: \'' + separator + '\';\n }\n '
64
+ )
65
+ );
66
+ }
67
+
68
+ return React.createElement(
69
+ Breadcrumb,
70
+ null,
71
+ React.createElement(
72
+ Breadcrumb.Item,
73
+ { href: '/' },
74
+ 'home'
75
+ ),
76
+ parentPath.split('/').length > 1 && React.createElement(
77
+ Breadcrumb.Item,
78
+ { active: true },
79
+ '...'
80
+ ),
81
+ React.createElement(
82
+ Breadcrumb.Item,
83
+ { href: '/' + parentPath },
84
+ parentPathName
85
+ ),
86
+ React.createElement(
87
+ Breadcrumb.Item,
88
+ { active: true },
89
+ currentPath
90
+ ),
91
+ React.createElement(
92
+ 'style',
93
+ { jsx: 'true' },
94
+ '\n ol.breadcrumb {\n background: transparent;\n padding-left: 0.25rem;\n }\n '
95
+ )
96
+ );
97
+ };
98
+
99
+ var Breadcrumbs$1 = React.memo(Breadcrumbs);
100
+
101
+ export default Breadcrumbs$1;