@mjhls/mjh-framework 1.0.884-beta.0 → 1.0.884-beta.1

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 (91) hide show
  1. package/dist/cjs/AD.js +1 -1
  2. package/dist/cjs/AlgoliaSearch.js +1 -1
  3. package/dist/cjs/ArticleProgramLandingPage.js +6 -6
  4. package/dist/cjs/ArticleSeriesLandingPage.js +4 -4
  5. package/dist/cjs/ArticleSeriesListing.js +1 -1
  6. package/dist/cjs/ContentCardPaginated.js +409 -0
  7. package/dist/cjs/DeckContent.js +1 -1
  8. package/dist/cjs/DeckQueue.js +1 -1
  9. package/dist/cjs/DeckQueuePaginated.js +340 -0
  10. package/dist/cjs/{Dfp-14d2455c.js → Dfp-f492f985.js} +2 -2
  11. package/dist/cjs/ExternalResources.js +2 -2
  12. package/dist/cjs/GridContent.js +4 -116
  13. package/dist/cjs/GridContentPaginated.js +699 -0
  14. package/dist/cjs/HorizontalArticleListing.js +2 -2
  15. package/dist/cjs/ImageSlider-38f25e66.js +3989 -0
  16. package/dist/cjs/IssueLanding.js +2 -2
  17. package/dist/cjs/MasterDeck.js +1 -1
  18. package/dist/cjs/MasterDeckPaginated.js +444 -0
  19. package/dist/cjs/MediaSeriesCard-8d27612b.js +9411 -0
  20. package/dist/cjs/MediaSeriesLanding.js +26 -9415
  21. package/dist/cjs/MediaSeriesLandingPaginated.js +522 -0
  22. package/dist/cjs/Pagination-2f76381b.js +51 -0
  23. package/dist/cjs/PartnerDetailListing.js +15 -3986
  24. package/dist/cjs/PartnerDetailListingPaginated.js +312 -0
  25. package/dist/cjs/PublicationFeature-28c549f2.js +126 -0
  26. package/dist/cjs/QueueDeckExpandedPaginated.js +1378 -0
  27. package/dist/cjs/TaxonomyDescription.js +2 -2
  28. package/dist/cjs/VideoProgramLandingPage.js +5 -5
  29. package/dist/cjs/VideoSeriesLandingPage.js +4 -4
  30. package/dist/cjs/VideoSeriesListing.js +1 -1
  31. package/dist/cjs/View.js +83 -3
  32. package/dist/cjs/faundadb.js +15 -15
  33. package/dist/cjs/getRootDocGroup.js +3 -3
  34. package/dist/cjs/getSerializers.js +2 -2
  35. package/dist/cjs/{index-396089c0.js → index-54adcbc3.js} +1 -1
  36. package/dist/cjs/index.js +4 -4
  37. package/dist/cjs/{inherits-cba9c846.js → inherits-12d44cca.js} +2 -2
  38. package/dist/esm/{ADInfeed-8a038df9.js → ADInfeed-d767ebe2.js} +2 -2
  39. package/dist/esm/ArticleProgramLandingPage.js +1 -1
  40. package/dist/esm/ArticleSeriesLandingPage.js +1 -1
  41. package/dist/esm/ArticleSeriesListing.js +2 -2
  42. package/dist/esm/Column1.js +4 -4
  43. package/dist/esm/Column2.js +5 -5
  44. package/dist/esm/Column3.js +6 -6
  45. package/dist/esm/ContentCardPaginated.js +403 -0
  46. package/dist/esm/DeckContent.js +16 -16
  47. package/dist/esm/DeckQueue.js +18 -18
  48. package/dist/esm/DeckQueuePaginated.js +334 -0
  49. package/dist/esm/EventsDeck.js +26 -26
  50. package/dist/esm/ExternalResources.js +3 -3
  51. package/dist/esm/GridContent.js +38 -150
  52. package/dist/esm/GridContentPaginated.js +693 -0
  53. package/dist/esm/HamMagazine.js +4 -4
  54. package/dist/esm/HorizontalArticleListing.js +1 -1
  55. package/dist/esm/ImageSlider-a3154b97.js +3980 -0
  56. package/dist/esm/IssueContentDeck.js +14 -14
  57. package/dist/esm/IssueDeck.js +22 -22
  58. package/dist/esm/IssueLanding.js +2 -2
  59. package/dist/esm/MasterDeck.js +4 -4
  60. package/dist/esm/MasterDeckPaginated.js +438 -0
  61. package/dist/esm/MediaSeriesCard-1dd7eae8.js +9403 -0
  62. package/dist/esm/MediaSeriesLanding.js +23 -9411
  63. package/dist/esm/MediaSeriesLandingPaginated.js +517 -0
  64. package/dist/esm/NavDvm.js +3 -3
  65. package/dist/esm/NavMagazine.js +4 -4
  66. package/dist/esm/NavNative.js +5 -5
  67. package/dist/esm/Pagination-c0db7ca1.js +46 -0
  68. package/dist/esm/PartnerDetailListing.js +12 -3982
  69. package/dist/esm/PartnerDetailListingPaginated.js +307 -0
  70. package/dist/esm/PubSection.js +1 -1
  71. package/dist/esm/PublicationDeck.js +18 -18
  72. package/dist/esm/PublicationFeature-fa24dedb.js +121 -0
  73. package/dist/esm/PublicationLanding.js +22 -22
  74. package/dist/esm/QueueDeckExpanded.js +1 -1
  75. package/dist/esm/QueueDeckExpandedPaginated.js +1372 -0
  76. package/dist/esm/RolesDeck.js +12 -12
  77. package/dist/esm/Search.js +2 -2
  78. package/dist/esm/{SocialSearchComponent-b5be0e6c.js → SocialSearchComponent-dca69151.js} +3 -3
  79. package/dist/esm/TaxonomyCard.js +16 -16
  80. package/dist/esm/TaxonomyDescription.js +1 -1
  81. package/dist/esm/TemplateNormal.js +4 -4
  82. package/dist/esm/VideoProgramLandingPage.js +6 -6
  83. package/dist/esm/VideoSeriesLandingPage.js +1 -1
  84. package/dist/esm/VideoSeriesListing.js +3 -3
  85. package/dist/esm/View.js +84 -4
  86. package/dist/esm/getSerializers.js +1 -1
  87. package/dist/esm/{index-0e04b7d7.js → index-d1476645.js} +19 -19
  88. package/dist/esm/index.js +10 -9
  89. package/package.json +2 -1
  90. package/dist/cjs/Schema.js +0 -100
  91. package/dist/esm/Schema.js +0 -95
@@ -0,0 +1,403 @@
1
+ import './_commonjsHelpers-0c4b6f40.js';
2
+ import './core.get-iterator-method-86d4db69.js';
3
+ import './_library-528f1934.js';
4
+ import './_iter-detect-130ee549.js';
5
+ import { _ as _toConsumableArray } from './toConsumableArray-32282905.js';
6
+ import './_object-pie-33c40e79.js';
7
+ import { _ as _extends } from './extends-5b1796d4.js';
8
+ import './_object-sap-8b8ea5a9.js';
9
+ import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-2409637d.js';
10
+ import './define-property-6d26cb48.js';
11
+ import './web.dom.iterable-f8f967cd.js';
12
+ import './typeof-c05a82ba.js';
13
+ import './_is-array-4df618a6.js';
14
+ import React__default from 'react';
15
+ import './events-6c3a7a63.js';
16
+ import { l as lib_3 } from './index-41a678ea.js';
17
+ import 'prop-types';
18
+ import Container from 'react-bootstrap/Container';
19
+ import Row from 'react-bootstrap/Row';
20
+ import Col from 'react-bootstrap/Col';
21
+ import Card from 'react-bootstrap/Card';
22
+ import { m as moment } from './moment-e2f9b20c.js';
23
+ import { withRouter } from 'next/router';
24
+ import './isSymbol-1981418f.js';
25
+ import './debounce-9207d8ee.js';
26
+ import './toNumber-2f7a84cd.js';
27
+ import 'react-dom';
28
+ import './slicedToArray-67a08c9c.js';
29
+ import './index-73819142.js';
30
+ import urlFor from './urlFor.js';
31
+ import { L as LazyLoad } from './index-5f7e79e7.js';
32
+ import { m as main_36 } from './main-c0612122.js';
33
+ import { c as clean_html_1 } from './entities-7cc3bf45.js';
34
+ import './stringify-70b72959.js';
35
+ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7bf8bc4d.js';
36
+ import './Segment.js';
37
+ import './Beam.js';
38
+ import './AdSlot.js';
39
+ import { A as ADInfeed } from './ADInfeed-d767ebe2.js';
40
+ import Spinner from 'react-bootstrap/Spinner';
41
+ import 'react-paginate';
42
+ import { P as Pagination } from './Pagination-c0db7ca1.js';
43
+
44
+ var DeckContent = function (_React$Component) {
45
+ _inherits(DeckContent, _React$Component);
46
+
47
+ function DeckContent() {
48
+ var _ref,
49
+ _this2 = this;
50
+
51
+ var _temp, _this, _ret;
52
+
53
+ _classCallCheck(this, DeckContent);
54
+
55
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
56
+ args[_key] = arguments[_key];
57
+ }
58
+
59
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DeckContent.__proto__ || _Object$getPrototypeOf(DeckContent)).call.apply(_ref, [this].concat(args))), _this), _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord || [], _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.client = _this.props.client, _this.seoPaginate = _this.props.seoPaginate, _this.state = {
60
+ data: _this.data,
61
+ dataKeptToCompareNewDatarecord: _this.data,
62
+ itemsPerPage: _this.params ? _this.params.itemsPerPage : _this.params.from && _this.params.to ? _this.params.to - _this.params.from : 30,
63
+ page: _this.props.currentPage || 1,
64
+ from: _this.params ? _this.params.from : 0,
65
+ to: _this.params ? _this.params.to : 30,
66
+ total_pages: null,
67
+ query: _this.query,
68
+ currentPage: _this.props.currentPage || 1,
69
+ isDataLoading: false,
70
+ totalDataCount: _this.props.totalDataCount
71
+ }, _this.renderCardImage = function (row, page) {
72
+ if (row.thumbnail && row.thumbnail.asset) {
73
+ var url = urlFor({
74
+ client: _this.client,
75
+ source: row.thumbnail,
76
+ imageHeight: _this.props.imageHeight || null,
77
+ imageWidth: _this.props.imageWidth || null,
78
+ imageFit: _this.props.imageFit || null
79
+ });
80
+ return url;
81
+ } else {
82
+ return _this.defaultImage;
83
+ }
84
+ }, _this.seoPagination = function (pageNumber) {
85
+ var router = _this.props.router;
86
+
87
+ var path = router.asPath;
88
+ var qrIndex = path.indexOf('?');
89
+ var pathname = router.pathname;
90
+ var queryString = '';
91
+ if (qrIndex > 0) {
92
+ path = path.substring(1, qrIndex);
93
+ var partialQS = router.asPath.substring(qrIndex + 1);
94
+ var partialQSArr = partialQS.split('&');
95
+ // exclude page=xxx from query string
96
+ partialQSArr.map(function (item) {
97
+ var itemArr = item.split('=');
98
+ var key = itemArr[0];
99
+ var val = itemArr[1];
100
+ if (key !== 'page') queryString += (queryString.length === 0 ? '' : '&') + key + '=' + val;
101
+ });
102
+ }
103
+ if (queryString.length > 0) path += '?' + queryString;
104
+ pageNumber = parseInt(pageNumber);
105
+ if (_this.state.page !== pageNumber) {
106
+ if (path[0] !== '/') path = '/' + path;
107
+ var newPath = pageNumber === 1 ? '' + path : '' + path + (queryString.length > 0 ? '&' : '?') + 'page=' + pageNumber;
108
+ router.push(pathname, newPath, {
109
+ shallow: true
110
+ });
111
+ }
112
+ }, _this.handlePageChange = function () {
113
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(selectedPage) {
114
+ var start, newParams, newData;
115
+ return regenerator.wrap(function _callee$(_context) {
116
+ while (1) {
117
+ switch (_context.prev = _context.next) {
118
+ case 0:
119
+ console.log('selectedPage', selectedPage);
120
+ _this.setState({
121
+ isDataLoading: true,
122
+ currentPage: selectedPage
123
+ });
124
+ _this.seoPaginate && _this.seoPagination(selectedPage);
125
+ lib_3.refresh();
126
+ document.body.scrollTop = 0;
127
+ document.documentElement.scrollTop = 0;
128
+ start = (selectedPage - 1) * _this.state.itemsPerPage;
129
+ newParams = _extends({}, _this.params, {
130
+ from: start,
131
+ to: start + _this.state.itemsPerPage
132
+ });
133
+ _context.prev = 8;
134
+ _context.next = 11;
135
+ return _this.client.fetch(_this.query, newParams);
136
+
137
+ case 11:
138
+ newData = _context.sent;
139
+
140
+ if (_this.pointer && _this.pointerArray) newData = newData[pointerArray][pointer];
141
+ if (newData && newData.length > 0) {
142
+ _this.setState({
143
+ isDataLoading: false,
144
+ data: newData,
145
+ page: selectedPage
146
+ });
147
+ }
148
+ _context.next = 19;
149
+ break;
150
+
151
+ case 16:
152
+ _context.prev = 16;
153
+ _context.t0 = _context['catch'](8);
154
+
155
+ console.error(_context.t0);
156
+
157
+ case 19:
158
+ case 'end':
159
+ return _context.stop();
160
+ }
161
+ }
162
+ }, _callee, _this2, [[8, 16]]);
163
+ }));
164
+
165
+ return function (_x) {
166
+ return _ref2.apply(this, arguments);
167
+ };
168
+ }(), _this.renderAuthor = function (authorDetail, index, length) {
169
+ if (authorDetail) {
170
+ var _id = authorDetail._id,
171
+ displayName = authorDetail.displayName,
172
+ url = authorDetail.url;
173
+
174
+ if (displayName && url && url.current) {
175
+ return React__default.createElement(
176
+ 'div',
177
+ { key: _id },
178
+ index === 0 && React__default.createElement(
179
+ 'span',
180
+ { className: 'pr-1' },
181
+ 'By'
182
+ ),
183
+ React__default.createElement(
184
+ 'a',
185
+ { href: '/authors/${url.current}', className: 'text-muted' },
186
+ displayName,
187
+ length !== index + 1 && React__default.createElement('br', null)
188
+ )
189
+ );
190
+ } else if (displayName) {
191
+ return React__default.createElement(
192
+ 'div',
193
+ { key: _id },
194
+ index === 0 && React__default.createElement(
195
+ 'span',
196
+ { className: 'pr-1' },
197
+ 'By'
198
+ ),
199
+ React__default.createElement(
200
+ 'span',
201
+ { className: 'text-muted' },
202
+ displayName,
203
+ length !== index + 1 && React__default.createElement('br', null)
204
+ )
205
+ );
206
+ }
207
+ } else return null;
208
+ }, _this.cardLoader = function (page, columns, variant, showBI, brandInsight) {
209
+ var mode = variant && variant === 'bottom' ? 'column-reverse' : 'column';
210
+
211
+ var itemCounter = 0;
212
+ var lgVar = 12;
213
+ var numberOfItemsBeforeAd = 6;
214
+
215
+ var insert = function insert(arr, index, newElement) {
216
+ return [].concat(_toConsumableArray(arr.slice(0, index)), [newElement], _toConsumableArray(arr.slice(index)));
217
+ };
218
+ var articles = [];
219
+ if (showBI) {
220
+ var data = _this.state.data;
221
+ articles = data;
222
+ var pos = 3;
223
+ for (var i = 1; pos < articles.length; i++) {
224
+ var inFeedAd = {
225
+ adUnit: brandInsight.adUnit,
226
+ className: brandInsight.className,
227
+ networkID: brandInsight.networkID,
228
+ sizes: brandInsight.sizes,
229
+ slotId: brandInsight.slotId + '_' + i,
230
+ targeting: {
231
+ pos: 'infeed',
232
+ content_placement: brandInsight.targeting.content_placement,
233
+ document_url: brandInsight.targeting.document_url
234
+ },
235
+ _type: 'BrandInsight',
236
+ /* Passing refresh flag */
237
+ refreshFlag: brandInsight.refreshFlag ? brandInsight.refreshFlag : false
238
+ };
239
+
240
+ articles = insert(articles, pos, inFeedAd);
241
+ pos += brandInsight.interval + 1;
242
+ }
243
+ } else {
244
+ articles = _this.state.data;
245
+ }
246
+
247
+ return React__default.createElement(
248
+ Row,
249
+ null,
250
+ articles && articles.map(function (row, index) {
251
+ if (columns === 'rotate' && itemCounter % 3 === 0) {
252
+ lgVar = 12;
253
+ } else if (columns && columns !== 'rotate') {
254
+ lgVar = Math.floor(12 / columns);
255
+ } else {
256
+ lgVar = 6;
257
+ }
258
+ if (row._type === 'BrandInsight' && row.adUnit) {
259
+ return React__default.createElement(ADInfeed, { index: index, infeedAd: row });
260
+ } else {
261
+ var contentCategoryName = row.contentCategory && row.contentCategory.name && _this.mapping[row.contentCategory.name] ? row.contentCategory.name : 'Articles';
262
+ return React__default.createElement(
263
+ React__default.Fragment,
264
+ { key: itemCounter },
265
+ React__default.createElement(
266
+ Col,
267
+ { md: 12, lg: lgVar, counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
268
+ React__default.createElement(
269
+ Card,
270
+ { className: 'content-card', style: { flexDirection: mode } },
271
+ (row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) && React__default.createElement(
272
+ 'a',
273
+ { href: _this.mapping[contentCategoryName] + '/' + row.url.current },
274
+ React__default.createElement(
275
+ LazyLoad,
276
+ { height: _this.props.imageHeight },
277
+ React__default.createElement(Card.Img, { variant: 'top', src: _this.renderCardImage(row, page), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
278
+ )
279
+ ),
280
+ React__default.createElement(
281
+ Card.Body,
282
+ null,
283
+ React__default.createElement(
284
+ 'a',
285
+ { href: _this.mapping[contentCategoryName] + '/' + row.url.current },
286
+ React__default.createElement(
287
+ Card.Title,
288
+ null,
289
+ row.title
290
+ )
291
+ ),
292
+ _this.props.showPublished && row.published && React__default.createElement(
293
+ Card.Subtitle,
294
+ null,
295
+ moment(row.published).format('MMMM DD, YYYY')
296
+ ),
297
+ _this.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && row.authorMapping.map(function (authorDetail, index) {
298
+ return _this.renderAuthor(authorDetail, index, row.authorMapping.length);
299
+ }),
300
+ React__default.createElement(
301
+ Card.Text,
302
+ null,
303
+ clean_html_1(row.summary)
304
+ )
305
+ )
306
+ )
307
+ ),
308
+ main_36 && _this.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this.renderMobileAd(index, numberOfItemsBeforeAd)
309
+ );
310
+ }
311
+ })
312
+ );
313
+ }, _this.renderMobileAd = function (index, numberOfItemsBeforeAd) {
314
+ var rightItems = _this.props.rightItems;
315
+
316
+ var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
317
+ return React__default.createElement(
318
+ Col,
319
+ { md: 12, style: { display: 'flex', flex: '1 0 auto' } },
320
+ rightItems[i].component
321
+ );
322
+ }, _temp), _possibleConstructorReturn(_this, _ret);
323
+ }
324
+
325
+ _createClass(DeckContent, [{
326
+ key: 'componentDidUpdate',
327
+ value: function componentDidUpdate(prevProps, prevState) {
328
+ if (this.state.dataKeptToCompareNewDatarecord !== this.props.dataRecord) {
329
+ // eslint-disable-next-line react/no-did-update-set-state
330
+ this.setState({
331
+ data: this.props.dataRecord,
332
+ dataKeptToCompareNewDatarecord: this.props.dataRecord,
333
+ itemsPerPage: this.props.params ? this.props.params.to : 2,
334
+ page: 1,
335
+ from: this.props.params ? this.props.params.from : 0,
336
+ to: this.props.params ? this.props.params.to : 2,
337
+ total_pages: null,
338
+ query: this.props.query,
339
+ isDataLoading: false,
340
+ totalDataCount: this.props.totalDataCount
341
+ });
342
+ }
343
+ }
344
+ }, {
345
+ key: 'render',
346
+ value: function render() {
347
+ var _props = this.props,
348
+ columns = _props.columns,
349
+ variant = _props.variant,
350
+ page = _props.page,
351
+ showBI = _props.showBI,
352
+ brandInsight = _props.brandInsight;
353
+
354
+
355
+ return React__default.createElement(
356
+ 'div',
357
+ { className: 'contentDeck' },
358
+ this.state.isDataLoading ? React__default.createElement(
359
+ 'div',
360
+ { className: 'd-flex justify-content-center', style: { marginTop: '100px' } },
361
+ React__default.createElement(
362
+ Spinner,
363
+ { animation: 'border', role: 'status' },
364
+ React__default.createElement(
365
+ 'span',
366
+ { className: 'sr-only' },
367
+ 'Loading...'
368
+ )
369
+ )
370
+ ) : React__default.createElement(
371
+ React__default.Fragment,
372
+ null,
373
+ React__default.createElement(
374
+ Container,
375
+ null,
376
+ this.cardLoader(page, columns, variant, showBI, brandInsight)
377
+ ),
378
+ React__default.createElement(
379
+ 'div',
380
+ { className: 'pagination-wrapper' },
381
+ React__default.createElement(Pagination, {
382
+ pageCount: Math.ceil(this.state.totalDataCount / this.state.itemsPerPage),
383
+ pageRangeDisplayed: main_36 ? 3 : 9,
384
+ currentPage: this.state.currentPage,
385
+ onPageChange: this.handlePageChange
386
+ }),
387
+ React__default.createElement(
388
+ 'style',
389
+ { jsx: 'true' },
390
+ '\n .pagination-wrapper {\n margin: 3rem 0;\n }\n @media only screen and (max-width: 768px) {\n .pagination-wrapper {\n margin-bottom: 6rem;\n }\n }\n '
391
+ )
392
+ )
393
+ )
394
+ );
395
+ }
396
+ }]);
397
+
398
+ return DeckContent;
399
+ }(React__default.Component);
400
+
401
+ var ContentCardPaginated = withRouter(DeckContent);
402
+
403
+ export default ContentCardPaginated;
@@ -15,10 +15,10 @@ import React__default from 'react';
15
15
  import './events-6c3a7a63.js';
16
16
  import { l as lib_3 } from './index-41a678ea.js';
17
17
  import 'prop-types';
18
- import Container$1 from 'react-bootstrap/Container';
19
- import Row$1 from 'react-bootstrap/Row';
20
- import Col$1 from 'react-bootstrap/Col';
21
- import Card$1 from 'react-bootstrap/Card';
18
+ import Container from 'react-bootstrap/Container';
19
+ import Row from 'react-bootstrap/Row';
20
+ import Col from 'react-bootstrap/Col';
21
+ import Card from 'react-bootstrap/Card';
22
22
  import { m as moment } from './moment-e2f9b20c.js';
23
23
  import { withRouter } from 'next/router';
24
24
  import './isSymbol-1981418f.js';
@@ -38,7 +38,7 @@ import './asyncToGenerator-7bf8bc4d.js';
38
38
  import './Segment.js';
39
39
  import './Beam.js';
40
40
  import './AdSlot.js';
41
- import { A as ADInfeed } from './ADInfeed-8a038df9.js';
41
+ import { A as ADInfeed } from './ADInfeed-d767ebe2.js';
42
42
 
43
43
  var DeckContent = function (_React$Component) {
44
44
  _inherits(DeckContent, _React$Component);
@@ -272,7 +272,7 @@ var DeckContent = function (_React$Component) {
272
272
  }
273
273
 
274
274
  return React__default.createElement(
275
- Row$1,
275
+ Row,
276
276
  null,
277
277
  articles && articles.map(function (row, index) {
278
278
  if (columns === 'rotate' && itemCounter % 3 === 0) {
@@ -297,10 +297,10 @@ var DeckContent = function (_React$Component) {
297
297
  isVisible && _this.changePageNumber(pageNumber);
298
298
  } },
299
299
  React__default.createElement(
300
- Col$1,
300
+ Col,
301
301
  { md: 12, lg: lgVar, counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
302
302
  React__default.createElement(
303
- Card$1,
303
+ Card,
304
304
  { className: 'content-card', style: { flexDirection: mode } },
305
305
  (row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) && React__default.createElement(
306
306
  'a',
@@ -308,7 +308,7 @@ var DeckContent = function (_React$Component) {
308
308
  React__default.createElement(
309
309
  LazyLoad,
310
310
  { height: _this.props.imageHeight },
311
- React__default.createElement(Card$1.Img, {
311
+ React__default.createElement(Card.Img, {
312
312
  variant: 'top',
313
313
  src: _this.renderCardImage(row, page),
314
314
  alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
@@ -316,19 +316,19 @@ var DeckContent = function (_React$Component) {
316
316
  )
317
317
  ),
318
318
  React__default.createElement(
319
- Card$1.Body,
319
+ Card.Body,
320
320
  null,
321
321
  React__default.createElement(
322
322
  'a',
323
323
  { href: _this.mapping[contentCategoryName] + '/' + row.url.current },
324
324
  React__default.createElement(
325
- Card$1.Title,
325
+ Card.Title,
326
326
  null,
327
327
  row.title
328
328
  )
329
329
  ),
330
330
  _this.props.showPublished && row.published && React__default.createElement(
331
- Card$1.Subtitle,
331
+ Card.Subtitle,
332
332
  null,
333
333
  moment(row.published).format('MMMM DD, YYYY')
334
334
  ),
@@ -336,7 +336,7 @@ var DeckContent = function (_React$Component) {
336
336
  return _this.renderAuthor(authorDetail, index, row.authorMapping.length);
337
337
  }),
338
338
  React__default.createElement(
339
- Card$1.Text,
339
+ Card.Text,
340
340
  null,
341
341
  clean_html_1(row.summary)
342
342
  )
@@ -354,7 +354,7 @@ var DeckContent = function (_React$Component) {
354
354
 
355
355
  var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
356
356
  return React__default.createElement(
357
- Col$1,
357
+ Col,
358
358
  { md: 12, style: { display: 'flex', flex: '1 0 auto' } },
359
359
  rightItems[i].component
360
360
  );
@@ -425,7 +425,7 @@ var DeckContent = function (_React$Component) {
425
425
  InfiniteScroll,
426
426
  { dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
427
427
  React__default.createElement(
428
- Container$1,
428
+ Container,
429
429
  null,
430
430
  this.cardLoader(page, columns, variant, showBI, brandInsight)
431
431
  )
@@ -439,7 +439,7 @@ var DeckContent = function (_React$Component) {
439
439
  React__default.Fragment,
440
440
  null,
441
441
  React__default.createElement(
442
- Container$1,
442
+ Container,
443
443
  null,
444
444
  this.cardLoader(page, columns, variant, showBI, brandInsight)
445
445
  ),
@@ -15,10 +15,10 @@ import React__default from 'react';
15
15
  import './events-6c3a7a63.js';
16
16
  import { l as lib_3 } from './index-41a678ea.js';
17
17
  import 'prop-types';
18
- import Container$1 from 'react-bootstrap/Container';
19
- import Row$1 from 'react-bootstrap/Row';
20
- import Col$1 from 'react-bootstrap/Col';
21
- import Card$1 from 'react-bootstrap/Card';
18
+ import Container from 'react-bootstrap/Container';
19
+ import Row from 'react-bootstrap/Row';
20
+ import Col from 'react-bootstrap/Col';
21
+ import Card from 'react-bootstrap/Card';
22
22
  import { m as moment } from './moment-e2f9b20c.js';
23
23
  import { withRouter } from 'next/router';
24
24
  import './isSymbol-1981418f.js';
@@ -219,7 +219,7 @@ var DeckQueue = function (_React$Component) {
219
219
  var numberOfItemsBeforeAd = 6;
220
220
 
221
221
  return React__default.createElement(
222
- Row$1,
222
+ Row,
223
223
  null,
224
224
  this.state.data && this.state.data.map(function (row, index) {
225
225
  var pageNumber = row.pageNumber || _this2.state.page;
@@ -235,16 +235,16 @@ var DeckQueue = function (_React$Component) {
235
235
  isVisible && _this2.changePageNumber(pageNumber);
236
236
  } },
237
237
  React__default.createElement(
238
- Col$1,
238
+ Col,
239
239
  { md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
240
240
  React__default.createElement(
241
- Card$1,
241
+ Card,
242
242
  { className: 'queue-card', style: { borderTop: '1px solid #EEE' } },
243
243
  React__default.createElement(
244
- Row$1,
244
+ Row,
245
245
  { style: { flexDirection: mode } },
246
246
  (row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React__default.createElement(
247
- Col$1,
247
+ Col,
248
248
  { md: 12, lg: 4 },
249
249
  React__default.createElement(
250
250
  'a',
@@ -252,18 +252,18 @@ var DeckQueue = function (_React$Component) {
252
252
  React__default.createElement(
253
253
  LazyLoad,
254
254
  { height: _this2.props.imageHeight },
255
- React__default.createElement(Card$1.Img, { variant: 'top', src: _this2.renderCardImage(row), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
255
+ React__default.createElement(Card.Img, { variant: 'top', src: _this2.renderCardImage(row), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
256
256
  )
257
257
  )
258
258
  ),
259
259
  React__default.createElement(
260
- Col$1,
260
+ Col,
261
261
  null,
262
262
  React__default.createElement(
263
- Card$1.Body,
263
+ Card.Body,
264
264
  { style: { padding: '20px' } },
265
265
  row.title && React__default.createElement(
266
- Card$1.Title,
266
+ Card.Title,
267
267
  null,
268
268
  React__default.createElement(
269
269
  'a',
@@ -272,12 +272,12 @@ var DeckQueue = function (_React$Component) {
272
272
  )
273
273
  ),
274
274
  _this2.props.showPublished && row.published && React__default.createElement(
275
- Card$1.Subtitle,
275
+ Card.Subtitle,
276
276
  null,
277
277
  moment(row.published).format('MMMM DD, YYYY')
278
278
  ),
279
279
  _this2.props.showRecent && row.recent && row.recent.title && React__default.createElement(
280
- Card$1.Subtitle,
280
+ Card.Subtitle,
281
281
  null,
282
282
  'Recent : ',
283
283
  React__default.createElement(
@@ -287,7 +287,7 @@ var DeckQueue = function (_React$Component) {
287
287
  )
288
288
  ),
289
289
  row.summary && React__default.createElement(
290
- Card$1.Text,
290
+ Card.Text,
291
291
  null,
292
292
  React__default.createElement(
293
293
  'a',
@@ -325,7 +325,7 @@ var DeckQueue = function (_React$Component) {
325
325
  InfiniteScroll,
326
326
  { dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling },
327
327
  React__default.createElement(
328
- Container$1,
328
+ Container,
329
329
  null,
330
330
  this.cardLoader(page, columns, variant)
331
331
  )
@@ -333,7 +333,7 @@ var DeckQueue = function (_React$Component) {
333
333
  React__default.Fragment,
334
334
  null,
335
335
  React__default.createElement(
336
- Container$1,
336
+ Container,
337
337
  null,
338
338
  this.cardLoader(page, columns, variant)
339
339
  ),