@mjhls/mjh-framework 1.0.315 → 1.0.317

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 (62) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/{ADInfeed-ee8f2922.js → ADInfeed-a7a5e9f3.js} +1 -1
  3. package/dist/cjs/{AdSlot-0af5afb9.js → AdSlot-fef815e9.js} +3 -3
  4. package/dist/cjs/DeckContent.js +10 -10
  5. package/dist/cjs/DeckQueue.js +8 -8
  6. package/dist/cjs/{Dfp-f871551d.js → Dfp-f5e04360.js} +2 -2
  7. package/dist/cjs/{Figure-434da9bb.js → Figure-36e6957e.js} +1 -1
  8. package/dist/cjs/{GridContent-e6ff710e.js → GridContent-98e9ab78.js} +12 -12
  9. package/dist/cjs/GridContent.js +11 -11
  10. package/dist/cjs/IssueContentDeck.js +1 -1
  11. package/dist/cjs/IssueDeck.js +1 -1
  12. package/dist/cjs/MasterDeck.js +8 -8
  13. package/dist/cjs/{Normal-7cd7e351.js → Normal-972b1cc8.js} +9 -9
  14. package/dist/cjs/PublicationDeck.js +1 -1
  15. package/dist/cjs/QueueDeckExpanded.js +11 -11
  16. package/dist/cjs/{TaxonomyCard-a8a64f98.js → TaxonomyCard-22b72261.js} +1 -1
  17. package/dist/cjs/TaxonomyCard.js +2 -2
  18. package/dist/cjs/TemplateNormal.js +6 -6
  19. package/dist/cjs/ThumbnailCard.js +1 -1
  20. package/dist/cjs/VideoSeriesListing.js +4 -4
  21. package/dist/cjs/{YoutubeGroup-93aa7a6c.js → YoutubeGroup-24ec8af9.js} +22 -9
  22. package/dist/cjs/YoutubeGroup.js +1 -1
  23. package/dist/cjs/{debounce-ba3eaee2.js → debounce-528ad412.js} +4 -6
  24. package/dist/cjs/{get-de2660c3.js → get-3b23d857.js} +1 -1
  25. package/dist/cjs/{index-39beccb3.js → index-b5eb3ff8.js} +18 -18
  26. package/dist/cjs/index.js +42 -32
  27. package/dist/cjs/{inherits-dd435947.js → inherits-be59e8ae.js} +1 -1
  28. package/dist/cjs/{main-0ea1b808.js → main-753fb093.js} +66 -35
  29. package/dist/cjs/{promise-2c453658.js → promise-e50b2d19.js} +2 -2
  30. package/dist/cjs/{toConsumableArray-f05a306f.js → toConsumableArray-18281c61.js} +1 -1
  31. package/dist/cjs/{visibility-sensor-b72d9527.js → visibility-sensor-c2ccc22d.js} +4 -2
  32. package/dist/esm/{ADInfeed-7bff8973.js → ADInfeed-2aaf8622.js} +1 -1
  33. package/dist/esm/{AdSlot-b6af1ab4.js → AdSlot-028b040f.js} +3 -3
  34. package/dist/esm/DeckContent.js +10 -10
  35. package/dist/esm/DeckQueue.js +8 -8
  36. package/dist/esm/{Dfp-d2d43384.js → Dfp-f518314c.js} +2 -2
  37. package/dist/esm/{Figure-d0f95cc0.js → Figure-af6a1f2d.js} +1 -1
  38. package/dist/esm/{GridContent-6f84ae5e.js → GridContent-dd8fe8d1.js} +12 -12
  39. package/dist/esm/GridContent.js +11 -11
  40. package/dist/esm/IssueContentDeck.js +1 -1
  41. package/dist/esm/IssueDeck.js +1 -1
  42. package/dist/esm/MasterDeck.js +8 -8
  43. package/dist/esm/{Normal-19f6db83.js → Normal-ed829d1e.js} +9 -9
  44. package/dist/esm/PublicationDeck.js +1 -1
  45. package/dist/esm/QueueDeckExpanded.js +11 -11
  46. package/dist/esm/{TaxonomyCard-ea494c28.js → TaxonomyCard-7e9aae2d.js} +1 -1
  47. package/dist/esm/TaxonomyCard.js +2 -2
  48. package/dist/esm/TemplateNormal.js +6 -6
  49. package/dist/esm/ThumbnailCard.js +1 -1
  50. package/dist/esm/VideoSeriesListing.js +4 -4
  51. package/dist/esm/{YoutubeGroup-e7e16d0e.js → YoutubeGroup-13d88f43.js} +22 -9
  52. package/dist/esm/YoutubeGroup.js +1 -1
  53. package/dist/esm/{debounce-93ab8f80.js → debounce-702eb224.js} +4 -6
  54. package/dist/esm/{get-9c285a85.js → get-36d03764.js} +1 -1
  55. package/dist/esm/{index-3849e3fe.js → index-51a80699.js} +18 -18
  56. package/dist/esm/index.js +46 -36
  57. package/dist/esm/{inherits-2a854891.js → inherits-9d26445c.js} +1 -1
  58. package/dist/esm/{main-155ec04f.js → main-d550db5e.js} +65 -34
  59. package/dist/esm/{promise-e3480f1c.js → promise-8fc46e97.js} +2 -2
  60. package/dist/esm/{toConsumableArray-eb308ede.js → toConsumableArray-a096ca06.js} +1 -1
  61. package/dist/esm/{visibility-sensor-336093e1.js → visibility-sensor-3cea5efb.js} +4 -2
  62. package/package.json +1 -1
@@ -1,25 +1,25 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import './_to-object-b9b796ec.js';
3
3
  import './web.dom.iterable-3be50d6c.js';
4
- import { l as lib_3 } from './debounce-93ab8f80.js';
5
- import { m as main_36 } from './main-155ec04f.js';
6
- import { _ as _toConsumableArray } from './toConsumableArray-eb308ede.js';
4
+ import { l as lib_3 } from './debounce-702eb224.js';
5
+ import { m as main_39 } from './main-d550db5e.js';
6
+ import { _ as _toConsumableArray } from './toConsumableArray-a096ca06.js';
7
7
  import './core.get-iterator-method-31c1fb1a.js';
8
8
  import { _ as _extends } from './extends-dbbe308d.js';
9
9
  import React__default, { useState, useEffect, useRef } from 'react';
10
10
  import 'prop-types';
11
11
  import 'react-bootstrap/Card';
12
- import { I as InfiniteScroll, V as VisibilitySensor, m as moment } from './visibility-sensor-336093e1.js';
12
+ import { I as InfiniteScroll, V as VisibilitySensor, m as moment } from './visibility-sensor-3cea5efb.js';
13
13
  import 'next/link';
14
14
  import { useRouter } from 'next/router';
15
15
  import 'react-dom';
16
- import { i as imageUrlBuilder } from './index-3849e3fe.js';
16
+ import { i as imageUrlBuilder } from './index-51a80699.js';
17
17
  import { L as LazyLoad } from './index-5f9f807a.js';
18
18
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
19
19
  import { _ as _slicedToArray } from './slicedToArray-d1db3163.js';
20
- import './AdSlot-b6af1ab4.js';
21
- import './promise-e3480f1c.js';
22
- import { A as ADInfeed } from './ADInfeed-7bff8973.js';
20
+ import './AdSlot-028b040f.js';
21
+ import './promise-8fc46e97.js';
22
+ import { A as ADInfeed } from './ADInfeed-2aaf8622.js';
23
23
  import { Container, Media } from 'react-bootstrap';
24
24
 
25
25
  var urlFor = function urlFor(source, builder) {
@@ -279,7 +279,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
279
279
  )
280
280
  )
281
281
  ),
282
- main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
282
+ main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
283
283
  );
284
284
  } else {
285
285
  return React__default.createElement(
@@ -353,7 +353,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
353
353
  )
354
354
  )
355
355
  ),
356
- main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
356
+ main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
357
357
  );
358
358
  }
359
359
  } else if (article._type === 'brandInsightAd' && article.adUnit) {
@@ -429,7 +429,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
429
429
  )
430
430
  )
431
431
  ),
432
- main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
432
+ main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
433
433
  );
434
434
  }) : React__default.createElement(
435
435
  'div',
@@ -5,7 +5,7 @@ import Container from 'react-bootstrap/Container';
5
5
  import Row from 'react-bootstrap/Row';
6
6
  import Col from 'react-bootstrap/Col';
7
7
  import Card from 'react-bootstrap/Card';
8
- import { n as node, i as imageUrlBuilder } from './index-3849e3fe.js';
8
+ import { n as node, i as imageUrlBuilder } from './index-51a80699.js';
9
9
  import { L as LazyLoad } from './index-5f9f807a.js';
10
10
  import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
11
11
 
@@ -8,7 +8,7 @@ import 'react-bootstrap/Row';
8
8
  import 'react-bootstrap/Col';
9
9
  import 'react-bootstrap/Card';
10
10
  import 'react-dom';
11
- import './index-3849e3fe.js';
11
+ import './index-51a80699.js';
12
12
  import './index-5f9f807a.js';
13
- export { T as default } from './TaxonomyCard-ea494c28.js';
13
+ export { T as default } from './TaxonomyCard-7e9aae2d.js';
14
14
  import './react-social-icons-a7d5c5c7.js';
@@ -1,8 +1,8 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import './_to-object-b9b796ec.js';
3
3
  import './web.dom.iterable-3be50d6c.js';
4
- import './debounce-93ab8f80.js';
5
- import './main-155ec04f.js';
4
+ import './debounce-702eb224.js';
5
+ import './main-d550db5e.js';
6
6
  import './core.get-iterator-method-31c1fb1a.js';
7
7
  import 'react';
8
8
  import 'prop-types';
@@ -11,14 +11,14 @@ import 'react-bootstrap/Row';
11
11
  import 'react-bootstrap/Col';
12
12
  import 'next/link';
13
13
  import './slicedToArray-d1db3163.js';
14
- import './AdSlot-b6af1ab4.js';
15
- import './promise-e3480f1c.js';
16
- import './get-9c285a85.js';
14
+ import './AdSlot-028b040f.js';
15
+ import './promise-8fc46e97.js';
16
+ import './get-36d03764.js';
17
17
  import './react-social-icons-a7d5c5c7.js';
18
18
  import 'react-bootstrap';
19
19
  import './index.esm-536609db.js';
20
20
  import 'react-bootstrap/Button';
21
- export { T as default } from './Normal-19f6db83.js';
21
+ export { T as default } from './Normal-ed829d1e.js';
22
22
  import 'react-bootstrap/ListGroup';
23
23
  import 'next/head';
24
24
  import 'react-bootstrap/Nav';
@@ -2,7 +2,7 @@ import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React__default from 'react';
3
3
  import 'prop-types';
4
4
  import 'react-dom';
5
- import { i as imageUrlBuilder } from './index-3849e3fe.js';
5
+ import { i as imageUrlBuilder } from './index-51a80699.js';
6
6
  import { L as LazyLoad } from './index-5f9f807a.js';
7
7
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
8
8
  import Media$1 from 'react-bootstrap/Media';
@@ -1,18 +1,18 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import './_to-object-b9b796ec.js';
3
3
  import './web.dom.iterable-3be50d6c.js';
4
- import { d as debounce_1, l as lib_3 } from './debounce-93ab8f80.js';
4
+ import { d as debounce_1, l as lib_3 } from './debounce-702eb224.js';
5
5
  import { _ as _extends } from './extends-dbbe308d.js';
6
- import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-2a854891.js';
6
+ import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-9d26445c.js';
7
7
  import React__default from 'react';
8
8
  import 'prop-types';
9
9
  import Container from 'react-bootstrap/Container';
10
- import { I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-336093e1.js';
10
+ import { I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-3cea5efb.js';
11
11
  import 'next/link';
12
12
  import { withRouter } from 'next/router';
13
13
  import 'react-dom';
14
14
  import './index-5f9f807a.js';
15
- import { Y as YoutubeGroup } from './YoutubeGroup-e7e16d0e.js';
15
+ import { Y as YoutubeGroup } from './YoutubeGroup-13d88f43.js';
16
16
  import { a as IoIosArrowForward } from './index.esm-536609db.js';
17
17
 
18
18
  var VideoSeriesListing = function (_React$Component) {
@@ -495,6 +495,7 @@ GROQ query -
495
495
  var YoutubeGroup = function YoutubeGroup(props) {
496
496
  // Props should be an array of objects containing Thumbnail, title, and URL
497
497
  var innerSlider = useRef(null);
498
+ var tile = useRef(null);
498
499
 
499
500
  useEffect(function () {
500
501
  //IE11 Polyfill
@@ -507,17 +508,29 @@ var YoutubeGroup = function YoutubeGroup(props) {
507
508
  var slide = e.target.parentElement;
508
509
  var scrollOffset = slide.scrollLeft;
509
510
  var viewableWidth = slide.clientWidth;
511
+
512
+ //calculate viewable size / slide
513
+ var numberOfSlidesToScroll = Math.floor(viewableWidth / (tile.current.offsetWidth + 20)); //width of the tile plus margin
514
+ var sliderMargin = numberOfSlidesToScroll * 10;
515
+ numberOfSlidesToScroll = numberOfSlidesToScroll * tile.current.offsetWidth + sliderMargin;
516
+
517
+ // console.log('numberOfSlidestoScrol: ',numberOfSlidesToScroll )
518
+ // console.log('tile.current.offsetWidth: ',tile.current.offsetWidth )
519
+ // console.log('viewableWidth: ',viewableWidth )
520
+
510
521
  var scrollDirection = void 0;
511
522
 
512
523
  if (direction === 'next') {
513
- scrollDirection = scrollOffset + viewableWidth;
514
-
515
- if (scrollDirection > innerSlider.current.offsetWidth) {
524
+ scrollDirection = scrollOffset + numberOfSlidesToScroll;
525
+ // console.log('(scrollOffset + viewableWidth + 10): ',(scrollOffset + viewableWidth + 10) )
526
+ // console.log('innerSlider.current.offsetWidth ',innerSlider.current.offsetWidth )
527
+ //the +10 is for the margin on the last time
528
+ if (scrollOffset + viewableWidth + 10 >= innerSlider.current.offsetWidth) {
516
529
  scrollDirection = 0;
517
530
  }
518
531
  }
519
532
  if (direction === 'prev') {
520
- scrollDirection = scrollOffset - viewableWidth;
533
+ scrollDirection = scrollOffset - numberOfSlidesToScroll;
521
534
 
522
535
  if (scrollOffset === 0) {
523
536
  scrollDirection = innerSlider.current.offsetWidth;
@@ -568,7 +581,7 @@ var YoutubeGroup = function YoutubeGroup(props) {
568
581
 
569
582
  return React__default.createElement(
570
583
  'div',
571
- { key: index, className: 'tile' },
584
+ { ref: tile, key: index, className: 'tile' },
572
585
  current && current === url ? React__default.createElement(
573
586
  'div',
574
587
  { className: 'now-playing' },
@@ -603,7 +616,7 @@ var YoutubeGroup = function YoutubeGroup(props) {
603
616
  ),
604
617
  React__default.createElement(
605
618
  'div',
606
- { style: { color: variant }, className: 'tile__info' },
619
+ { style: { color: '#fff' }, className: 'tile__info' },
607
620
  video.title
608
621
  )
609
622
  )
@@ -614,7 +627,7 @@ var YoutubeGroup = function YoutubeGroup(props) {
614
627
  var _thumbnail = 'https://img.youtube.com/vi/' + getYoutubeId(video.url) + '/hqdefault.jpg';
615
628
  return React__default.createElement(
616
629
  'div',
617
- { key: index, className: 'tile' },
630
+ { ref: tile, key: index, className: 'tile' },
618
631
  React__default.createElement(
619
632
  'a',
620
633
  { href: _url },
@@ -635,7 +648,7 @@ var YoutubeGroup = function YoutubeGroup(props) {
635
648
  { className: 'tile__title' },
636
649
  React__default.createElement(
637
650
  'div',
638
- { style: { color: variant }, className: 'tile__title_text' },
651
+ { style: { color: '#fff' }, className: 'tile__title_text' },
639
652
  video.title
640
653
  )
641
654
  )
@@ -666,7 +679,7 @@ var YoutubeGroup = function YoutubeGroup(props) {
666
679
  React__default.createElement(
667
680
  'style',
668
681
  { jsx: 'true' },
669
- '\n #vid-slider * {\n box-sizing: border-box;\n }\n #vid-slider::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider {\n position: relative;\n -ms-overflow-style: none;\n }\n #vid-slider .now-playing {\n position: absolute;\n top: 0.5rem;\n left: 1rem;\n color: white;\n background: rgba(0, 0, 0, 0.75);\n }\n #vid-slider h1,\n #vid-slider p {\n text-align: center;\n width: 100%;\n max-width: 500px;\n margin: auto;\n }\n #vid-slider a:link,\n #vid-slider a:hover,\n #vid-slider a:active,\n #vid-slider a:visited {\n transition: color 150ms;\n color: #95a5a6;\n text-decoration: none;\n }\n #vid-slider a:hover {\n color: #7f8c8d;\n text-decoration: underline;\n }\n #vid-slider .contain {\n width: 100%;\n }\n #vid-slider .row {\n overflow: scroll;\n width: 100%;\n -ms-overflow-style: none;\n }\n #vid-slider .tile__info {\n white-space: normal !important;\n position: absolute;\n text-align: center;\n color: ' + (props.dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: 1rem;\n transition: opacity 0.25s;\n }\n #vid-slider .row__inner {\n transition: 450ms -webkit-transform;\n transition: 450ms transform;\n transition: 450ms transform, 450ms -webkit-transform;\n font-size: 0;\n white-space: nowrap;\n margin: 55px 0;\n padding-bottom: 10px;\n padding-left: 0;\n }\n #vid-slider .tile {\n position: relative;\n display: inline-block;\n width: 250px;\n height: 140.625px;\n margin-right: 10px;\n font-size: 20px;\n cursor: pointer;\n transition: 450ms all;\n -webkit-transform-origin: center left;\n transform-origin: center left;\n }\n #vid-slider .tile__img {\n width: 250px;\n height: 140.625px;\n -o-object-fit: cover;\n object-fit: cover;\n }\n #vid-slider .tile__details {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n font-size: 10px;\n opacity: 0;\n background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);\n transition: 450ms opacity;\n }\n #vid-slider .tile__details:after,\n #vid-slider .tile__details:before {\n content: \'\';\n\n position: absolute;\n top: 50%;\n left: 50%;\n display: #000;\n }\n #vid-slider .tile__details:after {\n margin-top: -25px;\n margin-left: -25px;\n width: 50px;\n height: 50px;\n border: 3px solid #ecf0f1;\n line-height: 50px;\n text-align: center;\n border-radius: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1;\n }\n #vid-slider .tile__details:before {\n content: \'\';\n background: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 64 64\' width=\'64\' height=\'64\' fill=\'white\'><path d=\'M26 46 L46 32 L26 18 Z\'/></svg>")\n no-repeat center center;\n left: 0;\n width: 100%;\n height: 3rem;\n font-size: 30px;\n margin-right: 12px;\n margin-top: -23px;\n text-align: center;\n z-index: 2;\n color: white;\n }\n #vid-slider .tile:hover .tile__details {\n opacity: 1;\n }\n #vid-slider .tile__title {\n position: absolute;\n bottom: 0;\n padding: 10px;\n max-width: 250px;\n }\n #vid-slider .tile__title_text {\n position: relative;\n left: 0;\n white-space: normal;\n }\n #vid-slider .row__inner:hover {\n -webkit-transform: translate3d(-62.5px, 0, 0);\n transform: translate3d(-62.5px, 0, 0);\n }\n #vid-slider .row__inner:hover .tile {\n opacity: 0.3;\n }\n #vid-slider .row__inner:hover .tile:hover {\n -webkit-transform: scale(1.25);\n transform: scale(1.25);\n opacity: 1;\n }\n #vid-slider .tile:hover ~ .tile {\n -webkit-transform: translate3d(62px, 0, 0);\n transform: translate3d(62px, 0, 0);\n }\n #vid-slider .tile:hover .tile__info {\n opacity: 0;\n }\n #vid-slider .tile__slider-prev,\n #vid-slider .tile__slider-next {\n width: 30px;\n background: transparent;\n border: none;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n z-index: 99;\n cursor: pointer;\n color: ' + (props.dark ? 'white' : 'black') + ';\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 2rem;\n }\n #vid-slider .tile__slider-prev {\n left: -3px;\n }\n #vid-slider .tile__slider-next {\n right: 0;\n }\n #vid-slider,\n #vid-slider .row {\n margin: 0;\n padding: 0 1.2rem;\n }\n #vid-slider .tile:last-child {\n margin-right: 2rem;\n }\n #vid-slider .row::-webkit-scrollbar-thumb {\n background-color: transparent !important;\n }\n #vid-slider i {\n border: solid ' + (props.dark ? 'white' : 'black') + ';\n border-width: 0 4px 4px 0;\n display: inline-block;\n padding: 4px;\n pointer-events: none;\n }\n #vid-slider .right {\n transform: rotate(-45deg);\n -webkit-transform: rotate(-45deg);\n }\n #vid-slider .left {\n transform: rotate(135deg);\n -webkit-transform: rotate(135deg);\n }\n '
682
+ '\n #vid-slider * {\n box-sizing: border-box;\n }\n #vid-slider::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider {\n position: relative;\n -ms-overflow-style: none;\n padding: 0 1.5rem;\n }\n #vid-slider .now-playing {\n position: absolute;\n top: 0.5rem;\n left: 1rem;\n color: white;\n background: rgba(0, 0, 0, 0.75);\n }\n #vid-slider h1,\n #vid-slider p {\n text-align: center;\n width: 100%;\n max-width: 500px;\n margin: auto;\n }\n #vid-slider a:link,\n #vid-slider a:hover,\n #vid-slider a:active,\n #vid-slider a:visited {\n transition: color 150ms;\n color: #95a5a6;\n text-decoration: none;\n }\n #vid-slider a:hover {\n color: #7f8c8d;\n text-decoration: underline;\n }\n #vid-slider .contain {\n width: 100%;\n }\n #vid-slider .row {\n overflow: scroll;\n width: 100%;\n -ms-overflow-style: none;\n }\n #vid-slider .tile__info {\n white-space: normal !important;\n position: absolute;\n text-align: center;\n color: ' + (props.dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: 1rem;\n transition: opacity 0.25s;\n }\n #vid-slider .row__inner {\n transition: 450ms -webkit-transform;\n transition: 450ms transform;\n transition: 450ms transform, 450ms -webkit-transform;\n font-size: 0;\n white-space: nowrap;\n margin: 55px 0;\n padding-bottom: 10px;\n padding-left: 0;\n }\n #vid-slider .tile {\n position: relative;\n display: inline-block;\n width: 250px;\n height: 140.625px;\n margin-right: 10px;\n font-size: 20px;\n cursor: pointer;\n transition: 450ms all;\n -webkit-transform-origin: center left;\n transform-origin: center left;\n }\n #vid-slider .tile__img {\n width: 250px;\n height: 140.625px;\n -o-object-fit: cover;\n object-fit: cover;\n }\n #vid-slider .tile__details {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n font-size: 10px;\n opacity: 0;\n background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);\n transition: 450ms opacity;\n }\n #vid-slider .tile__details:after,\n #vid-slider .tile__details:before {\n content: \'\';\n\n position: absolute;\n top: 50%;\n left: 50%;\n display: #000;\n }\n #vid-slider .tile__details:after {\n margin-top: -25px;\n margin-left: -25px;\n width: 50px;\n height: 50px;\n border: 3px solid #ecf0f1;\n line-height: 50px;\n text-align: center;\n border-radius: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1;\n }\n #vid-slider .tile__details:before {\n content: \'\';\n background: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 64 64\' width=\'64\' height=\'64\' fill=\'white\'><path d=\'M26 46 L46 32 L26 18 Z\'/></svg>")\n no-repeat center center;\n left: 0;\n width: 100%;\n height: 3rem;\n font-size: 30px;\n margin-right: 12px;\n margin-top: -24px;\n text-align: center;\n z-index: 2;\n color: white;\n }\n #vid-slider .tile:hover .tile__details {\n opacity: 1;\n }\n #vid-slider .tile__title {\n position: absolute;\n bottom: 0;\n padding: 10px;\n max-width: 250px;\n }\n #vid-slider .tile__title_text {\n position: relative;\n left: 0;\n white-space: normal;\n }\n #vid-slider .row__inner:hover {\n -webkit-transform: translate3d(-62.5px, 0, 0);\n transform: translate3d(-62.5px, 0, 0);\n }\n #vid-slider .row__inner:hover .tile {\n opacity: 0.3;\n }\n #vid-slider .row__inner:hover .tile:hover {\n -webkit-transform: scale(1.15);\n transform: scale(1.15);\n opacity: 1;\n }\n #vid-slider .tile:hover ~ .tile {\n -webkit-transform: translate3d(62px, 0, 0);\n transform: translate3d(62px, 0, 0);\n }\n #vid-slider .tile:hover .tile__info {\n opacity: 0;\n }\n #vid-slider .tile__slider-prev,\n #vid-slider .tile__slider-next {\n width: 30px;\n background: transparent;\n border: none;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n z-index: 99;\n cursor: pointer;\n color: ' + (props.dark ? 'white' : 'black') + ';\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 2rem;\n }\n #vid-slider .tile__slider-prev {\n left: -.5rem;\n padding: 1rem;\n }\n #vid-slider .tile__slider-next {\n right: -.5rem;\n padding: 1rem;\n }\n #vid-slider,\n #vid-slider .row {\n margin: 0;\n padding-right: 0 1.2rem;\n }\n #vid-slider .tile:last-child {\n margin-right: 2rem;\n }\n #vid-slider .row::-webkit-scrollbar-thumb {\n background-color: transparent !important;\n }\n #vid-slider i {\n border: solid ' + (props.dark ? 'white' : 'black') + ';\n border-width: 0 4px 4px 0;\n display: inline-block;\n padding: 4px;\n pointer-events: none;\n }\n #vid-slider .right {\n transform: rotate(-45deg);\n -webkit-transform: rotate(-45deg);\n }\n #vid-slider .left {\n transform: rotate(135deg);\n -webkit-transform: rotate(135deg);\n }\n '
670
683
  )
671
684
  );
672
685
  };
@@ -4,4 +4,4 @@ import 'prop-types';
4
4
  import 'next/link';
5
5
  import 'react-dom';
6
6
  import './index-5f9f807a.js';
7
- export { Y as default } from './YoutubeGroup-e7e16d0e.js';
7
+ export { Y as default } from './YoutubeGroup-13d88f43.js';
@@ -823,15 +823,13 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
823
823
  });
824
824
 
825
825
  if (_this5.lazyLoadIsEnabled()) {
826
- var args = [];
827
-
828
826
  var config = _this5.getLazyLoadConfig();
829
827
 
830
- if (config !== null) {
831
- args.push(config);
828
+ if (config) {
829
+ pubadsService.enableLazyLoad(config);
830
+ } else {
831
+ pubadsService.enableLazyLoad();
832
832
  }
833
-
834
- pubadsService.enableLazyLoad.call(args);
835
833
  }
836
834
 
837
835
  if (_this5.singleRequestIsEnabled()) {
@@ -1,4 +1,4 @@
1
- import { g as isSymbol_1, h as isObject_1, _ as _baseGetTag, b as _root, j as _Symbol } from './debounce-93ab8f80.js';
1
+ import { g as isSymbol_1, h as isObject_1, _ as _baseGetTag, b as _root, j as _Symbol } from './debounce-702eb224.js';
2
2
 
3
3
  /**
4
4
  * Checks if `value` is classified as an `Array` object.
@@ -58,35 +58,35 @@ function parseSource(source) {
58
58
  if (typeof source === 'string' && isUrl(source)) {
59
59
  // Someone passed an existing image url?
60
60
  image = {
61
- asset: { _ref: urlToId(source) }
61
+ asset: { _ref: urlToId(source) },
62
62
  };
63
63
  }
64
64
  else if (typeof source === 'string') {
65
65
  // Just an asset id
66
66
  image = {
67
- asset: { _ref: source }
67
+ asset: { _ref: source },
68
68
  };
69
69
  }
70
70
  else if (isRef(source)) {
71
71
  // We just got passed an asset directly
72
72
  image = {
73
- asset: source
73
+ asset: source,
74
74
  };
75
75
  }
76
76
  else if (isAsset(source)) {
77
77
  // If we were passed an image asset document
78
78
  image = {
79
79
  asset: {
80
- _ref: source._id || ''
81
- }
80
+ _ref: source._id || '',
81
+ },
82
82
  };
83
83
  }
84
84
  else if (isAssetStub(source)) {
85
85
  // If we were passed a partial asset (`url`, but no `_id`)
86
86
  image = {
87
87
  asset: {
88
- _ref: urlToId(source.asset.url)
89
- }
88
+ _ref: urlToId(source.asset.url),
89
+ },
90
90
  };
91
91
  }
92
92
  else if (typeof source.asset === 'object') {
@@ -127,7 +127,7 @@ function applyDefaults(image) {
127
127
  left: 0,
128
128
  top: 0,
129
129
  bottom: 0,
130
- right: 0
130
+ right: 0,
131
131
  };
132
132
  }
133
133
  if (!result.hotspot) {
@@ -135,7 +135,7 @@ function applyDefaults(image) {
135
135
  x: 0.5,
136
136
  y: 0.5,
137
137
  height: 1.0,
138
- width: 1.0
138
+ width: 1.0,
139
139
  };
140
140
  }
141
141
  return result;
@@ -182,7 +182,7 @@ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS = [
182
182
  ['crop', 'crop'],
183
183
  ['saturation', 'sat'],
184
184
  ['auto', 'auto'],
185
- ['dpr', 'dpr']
185
+ ['dpr', 'dpr'],
186
186
  ];
187
187
  function urlForImage(options) {
188
188
  var spec = __assign({}, (options || {}));
@@ -201,7 +201,7 @@ function urlForImage(options) {
201
201
  left: cropLeft,
202
202
  top: cropTop,
203
203
  width: Math.round(asset.width - image.crop.right * asset.width - cropLeft),
204
- height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
204
+ height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop),
205
205
  };
206
206
  // Compute hot spot rect in terms of pixel coordinates
207
207
  var hotSpotVerticalRadius = (image.hotspot.height * asset.height) / 2;
@@ -212,7 +212,7 @@ function urlForImage(options) {
212
212
  left: hotSpotCenterX - hotSpotHorizontalRadius,
213
213
  top: hotSpotCenterY - hotSpotVerticalRadius,
214
214
  right: hotSpotCenterX + hotSpotHorizontalRadius,
215
- bottom: hotSpotCenterY + hotSpotVerticalRadius
215
+ bottom: hotSpotCenterY + hotSpotVerticalRadius,
216
216
  };
217
217
  // If irrelevant, or if we are requested to: don't perform crop/fit based on
218
218
  // the crop/hotspot.
@@ -294,7 +294,7 @@ function fit(source, spec) {
294
294
  left: Math.round(left),
295
295
  top: Math.round(top_2),
296
296
  width: Math.round(width),
297
- height: Math.round(height)
297
+ height: Math.round(height),
298
298
  };
299
299
  }
300
300
  else {
@@ -316,13 +316,13 @@ function fit(source, spec) {
316
316
  left: Math.max(0, Math.floor(left)),
317
317
  top: Math.max(0, Math.floor(top_3)),
318
318
  width: Math.round(width),
319
- height: Math.round(height)
319
+ height: Math.round(height),
320
320
  };
321
321
  }
322
322
  return {
323
323
  width: imgWidth,
324
324
  height: imgHeight,
325
- rect: cropRect
325
+ rect: cropRect,
326
326
  };
327
327
  }
328
328
 
@@ -380,7 +380,7 @@ function urlBuilder(options) {
380
380
  return new ImageUrlBuilder(null, {
381
381
  baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
382
382
  projectId: projectId,
383
- dataset: dataset
383
+ dataset: dataset,
384
384
  });
385
385
  }
386
386
  // Or just accept the options as given
@@ -393,7 +393,7 @@ var ImageUrlBuilder = /** @class */ (function () {
393
393
  ? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
394
394
  }
395
395
  ImageUrlBuilder.prototype.withOptions = function (options) {
396
- var baseUrl = options.baseUrl || '';
396
+ var baseUrl = options.baseUrl || this.options.baseUrl;
397
397
  var newOptions = { baseUrl: baseUrl };
398
398
  for (var key in options) {
399
399
  if (options.hasOwnProperty(key)) {
@@ -521,7 +521,7 @@ var ImageUrlBuilder = /** @class */ (function () {
521
521
  ImageUrlBuilder.prototype.url = function () {
522
522
  return urlForImage_1$1.default(this.options);
523
523
  };
524
- // Synonym for url()
524
+ // Alias for url()
525
525
  ImageUrlBuilder.prototype.toString = function () {
526
526
  return this.url();
527
527
  };
package/dist/esm/index.js CHANGED
@@ -1,43 +1,43 @@
1
1
  import { c as createCommonjsModule, a as commonjsGlobal, g as getCjsExportFromNamespace, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
2
  import { _ as _objectKeys, a as _toObject, b as _core } from './_to-object-b9b796ec.js';
3
3
  import './web.dom.iterable-3be50d6c.js';
4
- import { d as debounce_1, l as lib_3, a as lib_1, i as isObjectLike_1, _ as _baseGetTag, t as toNumber_1, b as _root, c as _freeGlobal } from './debounce-93ab8f80.js';
5
- import { m as main_36, a as main_16, b as main_35 } from './main-155ec04f.js';
6
- import { _ as _toConsumableArray, a as _Array$from } from './toConsumableArray-eb308ede.js';
4
+ import { d as debounce_1, l as lib_3, a as lib_1, i as isObjectLike_1, _ as _baseGetTag, t as toNumber_1, b as _root, c as _freeGlobal } from './debounce-702eb224.js';
5
+ import { m as main_39, a as main_16, b as main_38 } from './main-d550db5e.js';
6
+ import { _ as _toConsumableArray, a as _Array$from } from './toConsumableArray-a096ca06.js';
7
7
  import './core.get-iterator-method-31c1fb1a.js';
8
8
  import { _ as _extends$2 } from './extends-dbbe308d.js';
9
- import { _ as _objectSap, a as _inherits$1, b as _classCallCheck$1, c as _possibleConstructorReturn$1, d as _Object$getPrototypeOf, e as _createClass$1 } from './inherits-2a854891.js';
9
+ import { _ as _objectSap, a as _inherits$1, b as _classCallCheck$1, c as _possibleConstructorReturn$1, d as _Object$getPrototypeOf, e as _createClass$1 } from './inherits-9d26445c.js';
10
10
  import React__default, { useState, useRef, useEffect } from 'react';
11
11
  import PropTypes from 'prop-types';
12
12
  import Container from 'react-bootstrap/Container';
13
13
  import Row from 'react-bootstrap/Row';
14
14
  import Col from 'react-bootstrap/Col';
15
15
  import 'react-bootstrap/Card';
16
- import { m as moment, I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-336093e1.js';
16
+ import { m as moment, I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-3cea5efb.js';
17
17
  import Link from 'next/link';
18
18
  import Router, { useRouter } from 'next/router';
19
19
  import 'react-dom';
20
- import { i as imageUrlBuilder } from './index-3849e3fe.js';
20
+ import { i as imageUrlBuilder } from './index-51a80699.js';
21
21
  import './index-5f9f807a.js';
22
22
  import { h as html_decode_1, c as clean_html_1 } from './entities-7cc3bf45.js';
23
23
  import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-d1db3163.js';
24
- import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-b6af1ab4.js';
25
- export { D as AdSlot, B as Beam } from './AdSlot-b6af1ab4.js';
26
- import './promise-e3480f1c.js';
27
- import './ADInfeed-7bff8973.js';
24
+ import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-028b040f.js';
25
+ export { D as AdSlot, B as Beam } from './AdSlot-028b040f.js';
26
+ import './promise-8fc46e97.js';
27
+ import './ADInfeed-2aaf8622.js';
28
28
  export { default as DeckContent } from './DeckContent.js';
29
- import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-9c285a85.js';
30
- export { A as AD, G as GridContent } from './GridContent-6f84ae5e.js';
29
+ import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-36d03764.js';
30
+ export { A as AD, G as GridContent } from './GridContent-dd8fe8d1.js';
31
31
  export { default as DeckQueue } from './DeckQueue.js';
32
32
  import 'react-bootstrap/Media';
33
33
  export { default as ThumbnailCard } from './ThumbnailCard.js';
34
- import { B as BlockContent } from './TaxonomyCard-ea494c28.js';
35
- export { T as TaxonomyCard } from './TaxonomyCard-ea494c28.js';
34
+ import { B as BlockContent } from './TaxonomyCard-7e9aae2d.js';
35
+ export { T as TaxonomyCard } from './TaxonomyCard-7e9aae2d.js';
36
36
  import './react-social-icons-a7d5c5c7.js';
37
37
  import GroupDeck from './GroupDeck.js';
38
38
  export { default as GroupDeck } from './GroupDeck.js';
39
- import { g as getYoutubeId } from './YoutubeGroup-e7e16d0e.js';
40
- export { Y as YoutubeGroup } from './YoutubeGroup-e7e16d0e.js';
39
+ import { g as getYoutubeId } from './YoutubeGroup-13d88f43.js';
40
+ export { Y as YoutubeGroup } from './YoutubeGroup-13d88f43.js';
41
41
  import { Spinner as Spinner$1, Container as Container$1, Row as Row$1, Col as Col$1, Carousel, Table, Figure as Figure$1, Button as Button$1, ProgressBar, Card, Form } from 'react-bootstrap';
42
42
  export { default as QueueDeckExpanded } from './QueueDeckExpanded.js';
43
43
  import { I as IoMdArrowDropdown } from './index.esm-536609db.js';
@@ -49,8 +49,8 @@ export { default as IssueDeck } from './IssueDeck.js';
49
49
  import 'react-bootstrap/Badge';
50
50
  export { default as IssueContentDeck } from './IssueContentDeck.js';
51
51
  import Spinner from 'react-bootstrap/Spinner';
52
- import { M as MdPictureAsPdf } from './Normal-19f6db83.js';
53
- export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-19f6db83.js';
52
+ import { M as MdPictureAsPdf } from './Normal-ed829d1e.js';
53
+ export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-ed829d1e.js';
54
54
  import 'react-bootstrap/ListGroup';
55
55
  import Head from 'next/head';
56
56
  import Accordion from 'react-bootstrap/Accordion';
@@ -70,7 +70,6 @@ import Dropdown from 'react-bootstrap/Dropdown';
70
70
  import { F as FaLongArrowAltRight } from './Ustream-c153a835.js';
71
71
  export { U as Ustream } from './Ustream-c153a835.js';
72
72
  import useSWR from 'swr';
73
- import Iron from '@hapi/iron';
74
73
  import Local from 'passport-local';
75
74
  import mysql from 'mysql';
76
75
 
@@ -2107,7 +2106,7 @@ var EventsDeck = function EventsDeck(_ref) {
2107
2106
  )
2108
2107
  )
2109
2108
  ),
2110
- main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2109
+ main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2111
2110
  'div',
2112
2111
  { style: { margin: '0 auto' } },
2113
2112
  renderMobileAd(index, numberOfItemsBeforeAd)
@@ -2498,7 +2497,7 @@ var CMEDeck = function CMEDeck(_ref) {
2498
2497
  )
2499
2498
  )
2500
2499
  ),
2501
- main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2500
+ main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2502
2501
  'div',
2503
2502
  { style: { margin: '0 auto' } },
2504
2503
  renderMobileAd(index, numberOfItemsBeforeAd)
@@ -2787,7 +2786,7 @@ var AD300x250 = function AD300x250(_ref) {
2787
2786
  pos = _ref$pos === undefined ? 'rec1' : _ref$pos;
2788
2787
 
2789
2788
  var mobileView = false;
2790
- if (main_36) {
2789
+ if (main_39) {
2791
2790
  pos = 'rect1-mobile';
2792
2791
  mobileView = true;
2793
2792
  }
@@ -2817,7 +2816,7 @@ var AD300x250x600 = function AD300x250x600(_ref) {
2817
2816
  pos = _ref$pos === undefined ? 'rec2' : _ref$pos;
2818
2817
 
2819
2818
  var mobileView = false;
2820
- if (main_36) {
2819
+ if (main_39) {
2821
2820
  pos = 'rect2-mobile';
2822
2821
  mobileView = true;
2823
2822
  }
@@ -13318,7 +13317,7 @@ var Poll = function Poll(_ref) {
13318
13317
  );
13319
13318
  };
13320
13319
 
13321
- var numberOfPaginations = main_35 ? 4 : 10;
13320
+ var numberOfPaginations = main_38 ? 4 : 10;
13322
13321
 
13323
13322
  var Quiz = function Quiz(_ref) {
13324
13323
  var quizzes = _ref.quizzes,
@@ -13408,7 +13407,7 @@ var Quiz = function Quiz(_ref) {
13408
13407
  var renderPagination = function renderPagination() {
13409
13408
  return React__default.createElement(
13410
13409
  Pagination,
13411
- { className: 'p-0 m-0', size: main_35 && 'sm' },
13410
+ { className: 'p-0 m-0', size: main_38 && 'sm' },
13412
13411
  React__default.createElement(Pagination.First, { onClick: function onClick() {
13413
13412
  return changePage('first');
13414
13413
  }, disabled: currentPage === 1 }),
@@ -13572,7 +13571,7 @@ var NativeAd = function NativeAd(props) {
13572
13571
  };
13573
13572
 
13574
13573
  var Figure = dynamic(function () {
13575
- return import('./Figure-d0f95cc0.js');
13574
+ return import('./Figure-af6a1f2d.js');
13576
13575
  }, { ssr: false });
13577
13576
 
13578
13577
  var checkUrlIsExternal = function checkUrlIsExternal(url) {
@@ -13794,7 +13793,7 @@ var Feature = function Feature(props) {
13794
13793
  };
13795
13794
  //image width
13796
13795
  var imageWidth = 900;
13797
- if (main_36) {
13796
+ if (main_39) {
13798
13797
  imageWidth = 450;
13799
13798
  }
13800
13799
 
@@ -16376,8 +16375,8 @@ var Article = function Article(props) {
16376
16375
  renderIsiContent(props.article)
16377
16376
  )
16378
16377
  ),
16379
- main_36 && React__default.createElement('hr', { className: 'add-seperater' }),
16380
- main_36 && props.article.Ads.map(function (ad, index) {
16378
+ main_39 && React__default.createElement('hr', { className: 'add-seperater' }),
16379
+ main_39 && props.article.Ads.map(function (ad, index) {
16381
16380
  return React__default.createElement(
16382
16381
  'div',
16383
16382
  { key: index, id: 'addid-' + index, style: { display: 'flex', flex: '1 0 auto' } },
@@ -16556,7 +16555,7 @@ var ArticleQueue = function ArticleQueue(props) {
16556
16555
  isLiveSite: isLiveSite
16557
16556
  };
16558
16557
  setPageConfig(_config);
16559
- if (!main_36) {
16558
+ if (!main_39) {
16560
16559
  lib_3.getGoogletag().then(function (googletag) {
16561
16560
  if (window.googletag && googletag.pubadsReady) {
16562
16561
  var slots = googletag.pubads().getSlots();
@@ -18144,23 +18143,34 @@ var authCookies = /*#__PURE__*/Object.freeze({
18144
18143
  getTokenCookie: getTokenCookie
18145
18144
  });
18146
18145
 
18147
- var TOKEN_SECRET = ',Qjn4rG\'Is=&wx,EXd<AYW|<{THTrspDkKJV5J{@@=?zDh,OX6Ky=0&T"L419;)';
18148
-
18149
18146
  function encryptSession(session) {
18150
- return Iron.seal(session, TOKEN_SECRET, Iron.defaults);
18147
+ var buffer = new Buffer(_JSON$stringify(session));
18148
+ return buffer.toString('base64');
18149
+ //return jwt.sign(session, TOKEN_SECRET)
18150
+ //return Iron.seal(session, TOKEN_SECRET, Iron.defaults)
18151
18151
  }
18152
18152
 
18153
18153
  var getSession = function () {
18154
18154
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(req) {
18155
- var token;
18155
+ var token, buff;
18156
18156
  return regenerator.wrap(function _callee$(_context) {
18157
18157
  while (1) {
18158
18158
  switch (_context.prev = _context.next) {
18159
18159
  case 0:
18160
18160
  token = getTokenCookie(req);
18161
- return _context.abrupt('return', token ? Iron.unseal(token, TOKEN_SECRET, Iron.defaults) : null);
18162
18161
 
18163
- case 2:
18162
+ if (!token) {
18163
+ _context.next = 4;
18164
+ break;
18165
+ }
18166
+
18167
+ buff = new Buffer(token, 'base64');
18168
+ return _context.abrupt('return', JSON.parse(buff.toString('utf8')));
18169
+
18170
+ case 4:
18171
+ return _context.abrupt('return', null);
18172
+
18173
+ case 5:
18164
18174
  case 'end':
18165
18175
  return _context.stop();
18166
18176
  }