@mjhls/mjh-framework 1.0.477 → 1.0.478
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.
- package/README.md +1 -1
- package/dist/cjs/AD300x250.js +1 -2
- package/dist/cjs/AD300x250x600.js +1 -2
- package/dist/cjs/AD728x90.js +1 -2
- package/dist/cjs/ADFloatingFooter.js +1 -2
- package/dist/cjs/ADFooter.js +1 -1
- package/dist/cjs/ADGutter.js +1 -2
- package/dist/cjs/ADSponsoredResources.js +1 -2
- package/dist/cjs/ADWebcast.js +1 -2
- package/dist/cjs/ADWelcome.js +1 -2
- package/dist/cjs/AdSlot.js +5 -6
- package/dist/cjs/ArticleQueue.js +1 -2
- package/dist/cjs/Beam.js +4 -334
- package/dist/cjs/Column2.js +9 -0
- package/dist/cjs/Column3.js +1 -2
- package/dist/cjs/DeckContent.js +2 -3
- package/dist/cjs/GridContent.js +3 -4
- package/dist/cjs/HamMagazine.js +12 -6
- package/dist/cjs/IssueLanding.js +3 -4
- package/dist/cjs/LeftNav.js +20 -6
- package/dist/cjs/MasterDeck.js +3 -4
- package/dist/cjs/NavDvm.js +15 -6
- package/dist/cjs/NavMagazine.js +12 -6
- package/dist/cjs/NavNative.js +12 -9
- package/dist/cjs/NavNormal.js +22 -3
- package/dist/cjs/PartnerDetailListing.js +3 -4
- package/dist/cjs/QueueDeckExpanded.js +3 -4
- package/dist/cjs/Segment.js +4 -212
- package/dist/cjs/SideFooter.js +27 -3
- package/dist/cjs/TemplateNormal.js +1 -2
- package/dist/cjs/View.js +1 -2
- package/dist/cjs/beam-b2ff7326.js +732 -0
- package/dist/cjs/getSerializers.js +45 -25
- package/dist/cjs/index.js +5 -6
- package/dist/esm/AD300x250.js +1 -2
- package/dist/esm/AD300x250x600.js +1 -2
- package/dist/esm/AD728x90.js +1 -2
- package/dist/esm/ADFloatingFooter.js +1 -2
- package/dist/esm/ADFooter.js +1 -1
- package/dist/esm/ADGutter.js +1 -2
- package/dist/esm/ADSponsoredResources.js +1 -2
- package/dist/esm/ADWebcast.js +1 -2
- package/dist/esm/ADWelcome.js +1 -2
- package/dist/esm/AdSlot.js +3 -4
- package/dist/esm/ArticleQueue.js +1 -2
- package/dist/esm/Beam.js +3 -337
- package/dist/esm/Column2.js +9 -0
- package/dist/esm/Column3.js +1 -2
- package/dist/esm/DeckContent.js +2 -3
- package/dist/esm/GridContent.js +3 -4
- package/dist/esm/HamMagazine.js +12 -6
- package/dist/esm/IssueLanding.js +3 -4
- package/dist/esm/LeftNav.js +21 -7
- package/dist/esm/MasterDeck.js +3 -4
- package/dist/esm/NavDvm.js +15 -6
- package/dist/esm/NavMagazine.js +12 -6
- package/dist/esm/NavNative.js +12 -9
- package/dist/esm/NavNormal.js +23 -4
- package/dist/esm/PartnerDetailListing.js +3 -4
- package/dist/esm/QueueDeckExpanded.js +3 -4
- package/dist/esm/Segment.js +3 -215
- package/dist/esm/SideFooter.js +28 -4
- package/dist/esm/TemplateNormal.js +1 -2
- package/dist/esm/View.js +1 -2
- package/dist/esm/beam-1ffc08d4.js +729 -0
- package/dist/esm/getSerializers.js +28 -8
- package/dist/esm/index.js +3 -4
- package/package.json +1 -1
- /package/dist/cjs/{ADInfeed-8a7f1d50.js → ADInfeed-53eca520.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-659b82b6.js → ADlgInfeed-461fa625.js} +0 -0
- /package/dist/esm/{ADInfeed-dbd65900.js → ADInfeed-84a98951.js} +0 -0
- /package/dist/esm/{ADlgInfeed-a385f968.js → ADlgInfeed-25962fea.js} +0 -0
package/dist/esm/Beam.js
CHANGED
|
@@ -4,341 +4,7 @@ import './core.get-iterator-method-f5c0d66a.js';
|
|
|
4
4
|
import './_library-528f1934.js';
|
|
5
5
|
import './_iter-detect-6e099a34.js';
|
|
6
6
|
import './web.dom.iterable-46c95e52.js';
|
|
7
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import './stringify-e30bc114.js';
|
|
8
|
+
import './asyncToGenerator-0379e924.js';
|
|
9
9
|
import './_set-species-6f64f1c1.js';
|
|
10
|
-
|
|
11
|
-
require("babel-polyfill");
|
|
12
|
-
// server key for beam
|
|
13
|
-
// fnADs4Gtx6ACEgKgwlNo-eNSIrdwykH9Zj74GsDI
|
|
14
|
-
|
|
15
|
-
var beam_domain = 'https://beam.mjhlifesciences.com';
|
|
16
|
-
|
|
17
|
-
function getCookie(cname) {
|
|
18
|
-
var name = cname + "=";
|
|
19
|
-
var decodedCookie = decodeURIComponent(document.cookie);
|
|
20
|
-
var ca = decodedCookie.split(';');
|
|
21
|
-
for (var i = 0; i < ca.length; i++) {
|
|
22
|
-
var c = ca[i];
|
|
23
|
-
while (c.charAt(0) == ' ') {
|
|
24
|
-
c = c.substring(1);
|
|
25
|
-
}
|
|
26
|
-
if (c.indexOf(name) == 0) {
|
|
27
|
-
return c.substring(name.length, c.length);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return "";
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
var Beam = {
|
|
34
|
-
proc_url: function proc_url() {
|
|
35
|
-
var $_GET = {};
|
|
36
|
-
document.location.search.replace(/\??(?:([^=]+)=([^&]*)&?)/g, function () {
|
|
37
|
-
function decode(s) {
|
|
38
|
-
return decodeURIComponent(s.split("+").join(" "));
|
|
39
|
-
}
|
|
40
|
-
$_GET[decode(arguments[1])] = decode(arguments[2]);
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
return $_GET;
|
|
44
|
-
},
|
|
45
|
-
proc_eKey: function proc_eKey($_GET) {
|
|
46
|
-
var _this = this;
|
|
47
|
-
|
|
48
|
-
return _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
49
|
-
var eKey;
|
|
50
|
-
return regenerator.wrap(function _callee$(_context) {
|
|
51
|
-
while (1) {
|
|
52
|
-
switch (_context.prev = _context.next) {
|
|
53
|
-
case 0:
|
|
54
|
-
eKey = "N/A";
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
if ($_GET["eKey"]) {
|
|
58
|
-
eKey = $_GET["eKey"];
|
|
59
|
-
} else if (typeof window.eKey !== 'undefined') {
|
|
60
|
-
eKey = window.eKey;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if (!eKey || eKey === 'N/A') {
|
|
64
|
-
eKey = getCookie('eKey');
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
return _context.abrupt('return', eKey);
|
|
68
|
-
|
|
69
|
-
case 4:
|
|
70
|
-
case 'end':
|
|
71
|
-
return _context.stop();
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}, _callee, _this);
|
|
75
|
-
}))();
|
|
76
|
-
},
|
|
77
|
-
proc_source: function proc_source() {
|
|
78
|
-
var referrer = "N/A";
|
|
79
|
-
|
|
80
|
-
if (encodeURIComponent(document.referrer)) {
|
|
81
|
-
referrer = encodeURIComponent(document.referrer);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return referrer;
|
|
85
|
-
},
|
|
86
|
-
proc_meta: function proc_meta() {
|
|
87
|
-
var data = {};
|
|
88
|
-
|
|
89
|
-
//keyword processing
|
|
90
|
-
var element = document.querySelector('meta[name="keywords"]');
|
|
91
|
-
|
|
92
|
-
data.keywords = "N/A";
|
|
93
|
-
|
|
94
|
-
if (element && element.getAttribute("content")) {
|
|
95
|
-
data.keywords = element.getAttribute("content");
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
//title processing
|
|
99
|
-
data.title = "N/A";
|
|
100
|
-
if (document.title !== "undefined") {
|
|
101
|
-
data.title = document.title;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
return data;
|
|
105
|
-
},
|
|
106
|
-
proc_host: function proc_host() {
|
|
107
|
-
var data = {};
|
|
108
|
-
data.domain = window.location.hostname;
|
|
109
|
-
data.uri = window.location.pathname;
|
|
110
|
-
data.host = window.location.host;
|
|
111
|
-
data.protocol = window.location.protocol;
|
|
112
|
-
|
|
113
|
-
if (window.location.search) {
|
|
114
|
-
data.uri = data.uri + window.location.search;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
return data;
|
|
118
|
-
},
|
|
119
|
-
get_beam: function get_beam(deviceType) {
|
|
120
|
-
var _this2 = this;
|
|
121
|
-
|
|
122
|
-
return _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
|
|
123
|
-
var beam;
|
|
124
|
-
return regenerator.wrap(function _callee2$(_context2) {
|
|
125
|
-
while (1) {
|
|
126
|
-
switch (_context2.prev = _context2.next) {
|
|
127
|
-
case 0:
|
|
128
|
-
beam = {};
|
|
129
|
-
_context2.next = 3;
|
|
130
|
-
return _this2.proc_eKey(_this2.proc_url());
|
|
131
|
-
|
|
132
|
-
case 3:
|
|
133
|
-
beam.eKey = _context2.sent;
|
|
134
|
-
|
|
135
|
-
beam.source = _this2.proc_source();
|
|
136
|
-
beam.meta = _this2.proc_meta();
|
|
137
|
-
beam.host = _this2.proc_host();
|
|
138
|
-
beam.device = deviceType;
|
|
139
|
-
return _context2.abrupt('return', beam);
|
|
140
|
-
|
|
141
|
-
case 9:
|
|
142
|
-
case 'end':
|
|
143
|
-
return _context2.stop();
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}, _callee2, _this2);
|
|
147
|
-
}))();
|
|
148
|
-
},
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
/* for client use */
|
|
152
|
-
report_beam_event: function report_beam_event(action, deviceType) {
|
|
153
|
-
var _this3 = this;
|
|
154
|
-
|
|
155
|
-
return _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3() {
|
|
156
|
-
var beam, response, res;
|
|
157
|
-
return regenerator.wrap(function _callee3$(_context3) {
|
|
158
|
-
while (1) {
|
|
159
|
-
switch (_context3.prev = _context3.next) {
|
|
160
|
-
case 0:
|
|
161
|
-
_context3.next = 2;
|
|
162
|
-
return _this3.get_beam(deviceType);
|
|
163
|
-
|
|
164
|
-
case 2:
|
|
165
|
-
beam = _context3.sent;
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
console.log('Call Beam', action, beam);
|
|
169
|
-
|
|
170
|
-
_context3.next = 6;
|
|
171
|
-
return fetch(beam_domain + '/api/beam/event', {
|
|
172
|
-
headers: {
|
|
173
|
-
'Content-Type': 'application/json',
|
|
174
|
-
'Accept': 'application/json'
|
|
175
|
-
},
|
|
176
|
-
method: 'post',
|
|
177
|
-
credentials: "include",
|
|
178
|
-
body: _JSON$stringify({
|
|
179
|
-
event: 'Beam',
|
|
180
|
-
action: action,
|
|
181
|
-
beam: _JSON$stringify(beam)
|
|
182
|
-
})
|
|
183
|
-
});
|
|
184
|
-
|
|
185
|
-
case 6:
|
|
186
|
-
response = _context3.sent;
|
|
187
|
-
_context3.next = 9;
|
|
188
|
-
return response.json();
|
|
189
|
-
|
|
190
|
-
case 9:
|
|
191
|
-
res = _context3.sent;
|
|
192
|
-
|
|
193
|
-
if (res.error) {
|
|
194
|
-
console.error('Beam reporting error:', res.error);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
case 11:
|
|
198
|
-
case 'end':
|
|
199
|
-
return _context3.stop();
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
}, _callee3, _this3);
|
|
203
|
-
}))();
|
|
204
|
-
},
|
|
205
|
-
report_beam_ad: function report_beam_ad(action, deviceType, cID, lID, campID, adSize, slotId) {
|
|
206
|
-
var adType = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 'DFP';
|
|
207
|
-
|
|
208
|
-
var _this4 = this;
|
|
209
|
-
|
|
210
|
-
var adDurationBrightCove = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : '';
|
|
211
|
-
var adIDBrightCove = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : '';
|
|
212
|
-
return _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee4() {
|
|
213
|
-
var beam, data, response, res;
|
|
214
|
-
return regenerator.wrap(function _callee4$(_context4) {
|
|
215
|
-
while (1) {
|
|
216
|
-
switch (_context4.prev = _context4.next) {
|
|
217
|
-
case 0:
|
|
218
|
-
_context4.next = 2;
|
|
219
|
-
return _this4.get_beam(deviceType);
|
|
220
|
-
|
|
221
|
-
case 2:
|
|
222
|
-
beam = _context4.sent;
|
|
223
|
-
data = {};
|
|
224
|
-
|
|
225
|
-
data.campaignId = campID;
|
|
226
|
-
data.lineItemId = lID;
|
|
227
|
-
data.creativeId = cID;
|
|
228
|
-
data.size = adSize;
|
|
229
|
-
data.slotId = slotId;
|
|
230
|
-
|
|
231
|
-
data.adType = adType;
|
|
232
|
-
data.adDurationBrightCove = adDurationBrightCove;
|
|
233
|
-
data.adIDBrightCove = adIDBrightCove;
|
|
234
|
-
|
|
235
|
-
console.log('Call ' + adType, action, data);
|
|
236
|
-
|
|
237
|
-
_context4.next = 15;
|
|
238
|
-
return fetch(beam_domain + '/api/beam/ad', {
|
|
239
|
-
headers: {
|
|
240
|
-
'Content-Type': 'application/json',
|
|
241
|
-
'Accept': 'application/json'
|
|
242
|
-
},
|
|
243
|
-
method: 'post',
|
|
244
|
-
credentials: "include",
|
|
245
|
-
body: _JSON$stringify({
|
|
246
|
-
event: 'DFP',
|
|
247
|
-
action: action,
|
|
248
|
-
beam: _JSON$stringify(beam),
|
|
249
|
-
data: _JSON$stringify(data)
|
|
250
|
-
})
|
|
251
|
-
});
|
|
252
|
-
|
|
253
|
-
case 15:
|
|
254
|
-
response = _context4.sent;
|
|
255
|
-
_context4.next = 18;
|
|
256
|
-
return response.json();
|
|
257
|
-
|
|
258
|
-
case 18:
|
|
259
|
-
res = _context4.sent;
|
|
260
|
-
|
|
261
|
-
if (res.error) {
|
|
262
|
-
console.error('DFP reporting error:', res.error);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
case 20:
|
|
266
|
-
case 'end':
|
|
267
|
-
return _context4.stop();
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}, _callee4, _this4);
|
|
271
|
-
}))();
|
|
272
|
-
},
|
|
273
|
-
report_beam_video: function report_beam_video(action, deviceType, duration, current, segment) {
|
|
274
|
-
var videoType = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 'Youtube';
|
|
275
|
-
var brightCovePlayerID = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';
|
|
276
|
-
|
|
277
|
-
var _this5 = this;
|
|
278
|
-
|
|
279
|
-
var brightCoveAccountID = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : '';
|
|
280
|
-
var brightCoveVideoID = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : '';
|
|
281
|
-
return _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee5() {
|
|
282
|
-
var beam, data, response, res;
|
|
283
|
-
return regenerator.wrap(function _callee5$(_context5) {
|
|
284
|
-
while (1) {
|
|
285
|
-
switch (_context5.prev = _context5.next) {
|
|
286
|
-
case 0:
|
|
287
|
-
_context5.next = 2;
|
|
288
|
-
return _this5.get_beam(deviceType);
|
|
289
|
-
|
|
290
|
-
case 2:
|
|
291
|
-
beam = _context5.sent;
|
|
292
|
-
data = {};
|
|
293
|
-
|
|
294
|
-
data.duration = duration;
|
|
295
|
-
data.queue = Math.floor(duration / 10);
|
|
296
|
-
data.segment = segment;
|
|
297
|
-
data.current = current;
|
|
298
|
-
|
|
299
|
-
data.videoType = videoType;
|
|
300
|
-
data.brightCovePlayerID = brightCovePlayerID;
|
|
301
|
-
data.brightCoveAccountID = brightCoveAccountID;
|
|
302
|
-
data.brightCoveVideoID = brightCoveVideoID;
|
|
303
|
-
|
|
304
|
-
console.log('Call ' + videoType, action, data);
|
|
305
|
-
|
|
306
|
-
_context5.next = 15;
|
|
307
|
-
return fetch(beam_domain + '/api/beam/video', {
|
|
308
|
-
headers: {
|
|
309
|
-
'Content-Type': 'application/json',
|
|
310
|
-
'Accept': 'application/json'
|
|
311
|
-
},
|
|
312
|
-
method: 'post',
|
|
313
|
-
credentials: "include",
|
|
314
|
-
body: _JSON$stringify({
|
|
315
|
-
event: 'Video',
|
|
316
|
-
action: action,
|
|
317
|
-
beam: _JSON$stringify(beam),
|
|
318
|
-
data: _JSON$stringify(data)
|
|
319
|
-
})
|
|
320
|
-
});
|
|
321
|
-
|
|
322
|
-
case 15:
|
|
323
|
-
response = _context5.sent;
|
|
324
|
-
_context5.next = 18;
|
|
325
|
-
return response.json();
|
|
326
|
-
|
|
327
|
-
case 18:
|
|
328
|
-
res = _context5.sent;
|
|
329
|
-
|
|
330
|
-
if (res.error) {
|
|
331
|
-
console.error('Video reporting error:', res.error);
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
case 20:
|
|
335
|
-
case 'end':
|
|
336
|
-
return _context5.stop();
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
}, _callee5, _this5);
|
|
340
|
-
}))();
|
|
341
|
-
}
|
|
342
|
-
};
|
|
343
|
-
|
|
344
|
-
export default Beam;
|
|
10
|
+
export { B as default } from './beam-1ffc08d4.js';
|
package/dist/esm/Column2.js
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
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';
|
|
2
7
|
import React__default from 'react';
|
|
3
8
|
import 'prop-types';
|
|
4
9
|
import Row from 'react-bootstrap/Row';
|
|
5
10
|
import Col from 'react-bootstrap/Col';
|
|
6
11
|
import './isSymbol-c1b9be80.js';
|
|
12
|
+
import './stringify-e30bc114.js';
|
|
13
|
+
import './asyncToGenerator-0379e924.js';
|
|
14
|
+
import './_set-species-6f64f1c1.js';
|
|
15
|
+
import './beam-1ffc08d4.js';
|
|
7
16
|
import './_arrayMap-a8dd2b2c.js';
|
|
8
17
|
import './get-ae817b75.js';
|
|
9
18
|
import './react-social-icons-a7d5c5c7.js';
|
package/dist/esm/Column3.js
CHANGED
|
@@ -16,8 +16,7 @@ import './slicedToArray-f1e40361.js';
|
|
|
16
16
|
import './stringify-e30bc114.js';
|
|
17
17
|
import './asyncToGenerator-0379e924.js';
|
|
18
18
|
import './_set-species-6f64f1c1.js';
|
|
19
|
-
import './
|
|
20
|
-
import './Segment.js';
|
|
19
|
+
import './beam-1ffc08d4.js';
|
|
21
20
|
import './AdSlot.js';
|
|
22
21
|
import './_arrayMap-a8dd2b2c.js';
|
|
23
22
|
import './get-ae817b75.js';
|
package/dist/esm/DeckContent.js
CHANGED
|
@@ -34,10 +34,9 @@ import './slicedToArray-f1e40361.js';
|
|
|
34
34
|
import './stringify-e30bc114.js';
|
|
35
35
|
import './asyncToGenerator-0379e924.js';
|
|
36
36
|
import './_set-species-6f64f1c1.js';
|
|
37
|
-
import './
|
|
38
|
-
import './Segment.js';
|
|
37
|
+
import './beam-1ffc08d4.js';
|
|
39
38
|
import './AdSlot.js';
|
|
40
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
39
|
+
import { A as ADInfeed } from './ADInfeed-84a98951.js';
|
|
41
40
|
|
|
42
41
|
var DeckContent = function (_React$Component) {
|
|
43
42
|
_inherits(DeckContent, _React$Component);
|
package/dist/esm/GridContent.js
CHANGED
|
@@ -34,12 +34,11 @@ import './slicedToArray-f1e40361.js';
|
|
|
34
34
|
import './stringify-e30bc114.js';
|
|
35
35
|
import './asyncToGenerator-0379e924.js';
|
|
36
36
|
import './_set-species-6f64f1c1.js';
|
|
37
|
-
import './
|
|
38
|
-
import './Segment.js';
|
|
37
|
+
import './beam-1ffc08d4.js';
|
|
39
38
|
import './AdSlot.js';
|
|
40
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
39
|
+
import { A as ADInfeed } from './ADInfeed-84a98951.js';
|
|
41
40
|
import { l as lodash } from './lodash-17fdfebb.js';
|
|
42
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
41
|
+
import { A as ADlgInfeed } from './ADlgInfeed-25962fea.js';
|
|
43
42
|
import './_arrayMap-a8dd2b2c.js';
|
|
44
43
|
import { g as get_1 } from './get-ae817b75.js';
|
|
45
44
|
import './AD.js';
|
package/dist/esm/HamMagazine.js
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import './_to-object-16fd8b46.js';
|
|
3
3
|
import './core.get-iterator-method-f5c0d66a.js';
|
|
4
|
+
import './_library-528f1934.js';
|
|
5
|
+
import './_iter-detect-6e099a34.js';
|
|
4
6
|
import './web.dom.iterable-46c95e52.js';
|
|
5
7
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
6
8
|
import 'prop-types';
|
|
7
9
|
import Container from 'react-bootstrap/Container';
|
|
8
10
|
import { m as main_39 } from './main-7255814e.js';
|
|
9
11
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
12
|
+
import './stringify-e30bc114.js';
|
|
13
|
+
import './asyncToGenerator-0379e924.js';
|
|
14
|
+
import './_set-species-6f64f1c1.js';
|
|
15
|
+
import { S as SegmentAPI } from './beam-1ffc08d4.js';
|
|
10
16
|
import './react-social-icons-a7d5c5c7.js';
|
|
11
17
|
import './iconBase-6ee2f2fb.js';
|
|
12
18
|
import { b as IoMdLogIn, c as IoIosHome } from './index.esm-b97cf389.js';
|
|
@@ -337,7 +343,7 @@ var HamMagazine = function HamMagazine(props) {
|
|
|
337
343
|
if (ddRow.url && ddRow.name) {
|
|
338
344
|
return ddRow.url && ddRow.name ? React__default.createElement(
|
|
339
345
|
'a',
|
|
340
|
-
{ key: subIndex, href: ddRow.url, target: ddRow.blank ? '_blank' : '_self', rel: 'noopener noreferrer', className: 'dropdown-item' },
|
|
346
|
+
{ key: subIndex, href: SegmentAPI.getURL(ddRow.url, ddRow), target: ddRow.blank ? '_blank' : '_self', rel: 'noopener noreferrer', className: 'dropdown-item' },
|
|
341
347
|
ddRow.name
|
|
342
348
|
) : null;
|
|
343
349
|
} else return null;
|
|
@@ -354,7 +360,7 @@ var HamMagazine = function HamMagazine(props) {
|
|
|
354
360
|
if (ddRow.url && ddRow.name) {
|
|
355
361
|
return ddRow.url && ddRow.name ? React__default.createElement(
|
|
356
362
|
'a',
|
|
357
|
-
{ key: subIndex, href: ddRow.url, target: ddRow.blank ? '_blank' : '_self', rel: 'noopener noreferrer', className: 'dropdown-item' },
|
|
363
|
+
{ key: subIndex, href: SegmentAPI.getURL(ddRow.url, ddRow), target: ddRow.blank ? '_blank' : '_self', rel: 'noopener noreferrer', className: 'dropdown-item' },
|
|
358
364
|
ddRow.name
|
|
359
365
|
) : null;
|
|
360
366
|
} else return null;
|
|
@@ -365,7 +371,7 @@ var HamMagazine = function HamMagazine(props) {
|
|
|
365
371
|
} else {
|
|
366
372
|
return row.url && row.name ? React__default.createElement(
|
|
367
373
|
'a',
|
|
368
|
-
{ key: index, href: row.url, target: row.blank ? '_blank' : '_self', rel: 'noopener noreferrer', className: 'nav-link' },
|
|
374
|
+
{ key: index, href: SegmentAPI.getURL(row.url, row), target: row.blank ? '_blank' : '_self', rel: 'noopener noreferrer', className: 'nav-link' },
|
|
369
375
|
row.name
|
|
370
376
|
) : null;
|
|
371
377
|
}
|
|
@@ -397,7 +403,7 @@ var HamMagazine = function HamMagazine(props) {
|
|
|
397
403
|
} else {
|
|
398
404
|
return ddRow.url && ddRow.name ? React__default.createElement(
|
|
399
405
|
'a',
|
|
400
|
-
{ key: subIndex, href: ddRow.url, target: ddRow.blank ? '_blank' : '_self', rel: 'noopener noreferrer', className: 'dropdown-item nav-link' },
|
|
406
|
+
{ key: subIndex, href: SegmentAPI.getURL(ddRow.url, ddRow), target: ddRow.blank ? '_blank' : '_self', rel: 'noopener noreferrer', className: 'dropdown-item nav-link' },
|
|
401
407
|
ddRow.name
|
|
402
408
|
) : null;
|
|
403
409
|
}
|
|
@@ -413,7 +419,7 @@ var HamMagazine = function HamMagazine(props) {
|
|
|
413
419
|
if (ddRow.url && ddRow.name) {
|
|
414
420
|
return ddRow.url && ddRow.name ? React__default.createElement(
|
|
415
421
|
'a',
|
|
416
|
-
{ key: subIndex, href: ddRow.url, target: ddRow.blank ? '_blank' : '_self', rel: 'noopener noreferrer', className: 'dropdown-item' },
|
|
422
|
+
{ key: subIndex, href: SegmentAPI.getURL(ddRow.url, ddRow), target: ddRow.blank ? '_blank' : '_self', rel: 'noopener noreferrer', className: 'dropdown-item' },
|
|
417
423
|
ddRow.name
|
|
418
424
|
) : null;
|
|
419
425
|
} else return null;
|
|
@@ -424,7 +430,7 @@ var HamMagazine = function HamMagazine(props) {
|
|
|
424
430
|
} else {
|
|
425
431
|
return row.url && row.name ? React__default.createElement(
|
|
426
432
|
'a',
|
|
427
|
-
{ key: index, href: row.url, target: row.blank ? '_blank' : '_self', rel: 'noopener noreferrer', className: 'nav-link' },
|
|
433
|
+
{ key: index, href: SegmentAPI.getURL(row.url, row), target: row.blank ? '_blank' : '_self', rel: 'noopener noreferrer', className: 'nav-link' },
|
|
428
434
|
row.name
|
|
429
435
|
) : null;
|
|
430
436
|
}
|
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -27,12 +27,11 @@ import './slicedToArray-f1e40361.js';
|
|
|
27
27
|
import './stringify-e30bc114.js';
|
|
28
28
|
import './asyncToGenerator-0379e924.js';
|
|
29
29
|
import './_set-species-6f64f1c1.js';
|
|
30
|
-
import './
|
|
31
|
-
import './Segment.js';
|
|
30
|
+
import './beam-1ffc08d4.js';
|
|
32
31
|
import './AdSlot.js';
|
|
33
|
-
import './ADInfeed-
|
|
32
|
+
import './ADInfeed-84a98951.js';
|
|
34
33
|
import './lodash-17fdfebb.js';
|
|
35
|
-
import './ADlgInfeed-
|
|
34
|
+
import './ADlgInfeed-25962fea.js';
|
|
36
35
|
import './AuthorComponent-158226c9.js';
|
|
37
36
|
import 'react-bootstrap';
|
|
38
37
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
package/dist/esm/LeftNav.js
CHANGED
|
@@ -4,7 +4,7 @@ import './core.get-iterator-method-f5c0d66a.js';
|
|
|
4
4
|
import './_library-528f1934.js';
|
|
5
5
|
import './_iter-detect-6e099a34.js';
|
|
6
6
|
import './web.dom.iterable-46c95e52.js';
|
|
7
|
-
import React__default from 'react';
|
|
7
|
+
import React__default, { useRef, useEffect } from 'react';
|
|
8
8
|
import './index-93ec3c59.js';
|
|
9
9
|
import 'prop-types';
|
|
10
10
|
import './isSymbol-c1b9be80.js';
|
|
@@ -14,8 +14,7 @@ import './slicedToArray-f1e40361.js';
|
|
|
14
14
|
import './stringify-e30bc114.js';
|
|
15
15
|
import './asyncToGenerator-0379e924.js';
|
|
16
16
|
import './_set-species-6f64f1c1.js';
|
|
17
|
-
import './
|
|
18
|
-
import './Segment.js';
|
|
17
|
+
import { S as SegmentAPI } from './beam-1ffc08d4.js';
|
|
19
18
|
import './AdSlot.js';
|
|
20
19
|
import ListGroup from 'react-bootstrap/ListGroup';
|
|
21
20
|
import ADWebcast from './ADWebcast.js';
|
|
@@ -47,24 +46,38 @@ var LeftNav = function LeftNav(props) {
|
|
|
47
46
|
return false;
|
|
48
47
|
};
|
|
49
48
|
|
|
49
|
+
var leftNavRef = useRef(null);
|
|
50
|
+
useEffect(function () {
|
|
51
|
+
SegmentAPI.init(); // auto init if not done yet
|
|
52
|
+
|
|
53
|
+
var segmentLinks = leftNavRef.current.querySelectorAll('a[needSegmentSupport="true"]');
|
|
54
|
+
for (var i = 0; i < segmentLinks.length; i++) {
|
|
55
|
+
var link = segmentLinks[i];
|
|
56
|
+
var href = link.getAttribute('href');
|
|
57
|
+
var newHref = SegmentAPI.getURL(href, { needSegmentSupport: true });
|
|
58
|
+
link.setAttribute('href', newHref);
|
|
59
|
+
}
|
|
60
|
+
}, []);
|
|
61
|
+
|
|
50
62
|
var renderListGroupItem = function renderListGroupItem(subRow) {
|
|
51
63
|
if (checkUrlIsExternal(subRow.url)) {
|
|
52
64
|
return React__default.createElement(
|
|
53
65
|
'a',
|
|
54
|
-
{ target: subRow.blank ? '_blank' : '_self', href: subRow.url },
|
|
66
|
+
{ target: subRow.blank ? '_blank' : '_self', needSegmentSupport: subRow.needSegmentSupport ? 'true' : '', href: subRow.url },
|
|
55
67
|
subRow.name
|
|
56
68
|
);
|
|
57
69
|
}
|
|
70
|
+
|
|
58
71
|
return React__default.createElement(
|
|
59
72
|
'a',
|
|
60
|
-
{ href: subRow.url || '#', target: subRow.blank ? '_blank' : '_self' },
|
|
73
|
+
{ href: subRow.url || '#', target: subRow.blank ? '_blank' : '_self', needSegmentSupport: subRow.needSegmentSupport ? 'true' : '' },
|
|
61
74
|
subRow.name
|
|
62
75
|
);
|
|
63
76
|
};
|
|
64
77
|
|
|
65
78
|
return React__default.createElement(
|
|
66
79
|
'section',
|
|
67
|
-
|
|
80
|
+
{ ref: leftNavRef },
|
|
68
81
|
leftItems && leftItems.map(function (row, index) {
|
|
69
82
|
// Showing webcast AD between spotlight and sub navigation when "webcastAD" is passed from site within "leftItems"
|
|
70
83
|
// Since Webcast Ad should be between spotlight and sub navigation it should be passed as the second element of leftItems array from site level.
|
|
@@ -93,7 +106,8 @@ var LeftNav = function LeftNav(props) {
|
|
|
93
106
|
React__default.createElement(
|
|
94
107
|
'a',
|
|
95
108
|
{ style: { color: 'white', fontSize: '.6rem' }, href: row.url },
|
|
96
|
-
'See All
|
|
109
|
+
'See All ',
|
|
110
|
+
'>'
|
|
97
111
|
)
|
|
98
112
|
)
|
|
99
113
|
),
|
package/dist/esm/MasterDeck.js
CHANGED
|
@@ -32,12 +32,11 @@ import './slicedToArray-f1e40361.js';
|
|
|
32
32
|
import './stringify-e30bc114.js';
|
|
33
33
|
import { _ as _Promise } from './asyncToGenerator-0379e924.js';
|
|
34
34
|
import './_set-species-6f64f1c1.js';
|
|
35
|
-
import './
|
|
36
|
-
import './Segment.js';
|
|
35
|
+
import './beam-1ffc08d4.js';
|
|
37
36
|
import './AdSlot.js';
|
|
38
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
37
|
+
import { A as ADInfeed } from './ADInfeed-84a98951.js';
|
|
39
38
|
import { l as lodash } from './lodash-17fdfebb.js';
|
|
40
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
39
|
+
import { A as ADlgInfeed } from './ADlgInfeed-25962fea.js';
|
|
41
40
|
|
|
42
41
|
var MasterDeck = function (_React$Component) {
|
|
43
42
|
_inherits(MasterDeck, _React$Component);
|
package/dist/esm/NavDvm.js
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import './_to-object-16fd8b46.js';
|
|
3
3
|
import './core.get-iterator-method-f5c0d66a.js';
|
|
4
|
+
import './_library-528f1934.js';
|
|
5
|
+
import './_iter-detect-6e099a34.js';
|
|
4
6
|
import './web.dom.iterable-46c95e52.js';
|
|
5
7
|
import React__default from 'react';
|
|
6
8
|
import Container from 'react-bootstrap/Container';
|
|
7
9
|
import './slicedToArray-f1e40361.js';
|
|
10
|
+
import './stringify-e30bc114.js';
|
|
11
|
+
import './asyncToGenerator-0379e924.js';
|
|
12
|
+
import './_set-species-6f64f1c1.js';
|
|
13
|
+
import { S as SegmentAPI } from './beam-1ffc08d4.js';
|
|
8
14
|
import 'react-bootstrap/Button';
|
|
9
15
|
import Nav from 'react-bootstrap/Nav';
|
|
10
16
|
import Navbar from 'react-bootstrap/Navbar';
|
|
@@ -23,6 +29,9 @@ var NavDvm = function NavDvm(props) {
|
|
|
23
29
|
|
|
24
30
|
|
|
25
31
|
var getLink = function getLink(url, className, name, key, blank) {
|
|
32
|
+
var needSegmentSupport = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
|
|
33
|
+
|
|
34
|
+
url = SegmentAPI.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
26
35
|
if (url && (url.includes('https://') || url.includes('http://'))) {
|
|
27
36
|
return React__default.createElement(
|
|
28
37
|
'a',
|
|
@@ -92,7 +101,7 @@ var NavDvm = function NavDvm(props) {
|
|
|
92
101
|
if (ddRow.type === 'divider') {
|
|
93
102
|
return React__default.createElement(NavDropdown.Divider, { key: subIndex });
|
|
94
103
|
} else {
|
|
95
|
-
return getLink(ddRow.url, 'dropdown-item', ddRow.name, subIndex, ddRow.blank);
|
|
104
|
+
return getLink(ddRow.url, 'dropdown-item', ddRow.name, subIndex, ddRow.blank, ddRow.needSegmentSupport);
|
|
96
105
|
}
|
|
97
106
|
})
|
|
98
107
|
),
|
|
@@ -106,14 +115,14 @@ var NavDvm = function NavDvm(props) {
|
|
|
106
115
|
if (ddRow.type === 'divider') {
|
|
107
116
|
return React__default.createElement(NavDropdown.Divider, { key: subIndex });
|
|
108
117
|
} else {
|
|
109
|
-
return getLink(ddRow.url, 'dropdown-item', ddRow.name, subIndex, ddRow.blank);
|
|
118
|
+
return getLink(ddRow.url, 'dropdown-item', ddRow.name, subIndex, ddRow.blank, ddRow.needSegmentSupport);
|
|
110
119
|
}
|
|
111
120
|
})
|
|
112
121
|
)
|
|
113
122
|
)
|
|
114
123
|
);
|
|
115
124
|
} else {
|
|
116
|
-
return getLink(row.url, 'nav-link', row.name, index, row.blank);
|
|
125
|
+
return getLink(row.url, 'nav-link', row.name, index, row.blank, row.needSegmentSupport);
|
|
117
126
|
}
|
|
118
127
|
})
|
|
119
128
|
),
|
|
@@ -140,7 +149,7 @@ var NavDvm = function NavDvm(props) {
|
|
|
140
149
|
if (ddRow.url && ddRow.name) {
|
|
141
150
|
return ddRow.url && ddRow.name ? React__default.createElement(
|
|
142
151
|
'a',
|
|
143
|
-
{ key: subIndex, href: ddRow.url, target: ddRow.blank ? '_blank' : '_self', className: 'dropdown-item' },
|
|
152
|
+
{ key: subIndex, href: SegmentAPI.getURL(ddRow.url, ddRow), target: ddRow.blank ? '_blank' : '_self', className: 'dropdown-item' },
|
|
144
153
|
ddRow.name
|
|
145
154
|
) : null;
|
|
146
155
|
} else return null;
|
|
@@ -160,7 +169,7 @@ var NavDvm = function NavDvm(props) {
|
|
|
160
169
|
if (ddRow.url && ddRow.name) {
|
|
161
170
|
return ddRow.url && ddRow.name ? React__default.createElement(
|
|
162
171
|
'a',
|
|
163
|
-
{ key: subIndex, href: ddRow.url, target: ddRow.blank ? '_blank' : '_self', className: 'dropdown-item' },
|
|
172
|
+
{ key: subIndex, href: SegmentAPI.getURL(ddRow.url, ddRow), target: ddRow.blank ? '_blank' : '_self', className: 'dropdown-item' },
|
|
164
173
|
ddRow.name
|
|
165
174
|
) : null;
|
|
166
175
|
} else return null;
|
|
@@ -172,7 +181,7 @@ var NavDvm = function NavDvm(props) {
|
|
|
172
181
|
} else {
|
|
173
182
|
return row.url && row.name ? React__default.createElement(
|
|
174
183
|
'a',
|
|
175
|
-
{ key: index, href: row.url, target: row.blank ? '_blank' : '_self', className: 'nav-link' },
|
|
184
|
+
{ key: index, href: SegmentAPI.getURL(row.url, row), target: row.blank ? '_blank' : '_self', className: 'nav-link' },
|
|
176
185
|
row.name
|
|
177
186
|
) : null;
|
|
178
187
|
}
|