@mjhls/mjh-framework 1.0.221 → 1.0.223

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 (48) hide show
  1. package/README.md +174 -174
  2. package/dist/cjs/AdSlot-d87cef08.js +69 -0
  3. package/dist/cjs/DeckContent.js +116 -59
  4. package/dist/cjs/DeckQueue.js +3 -3
  5. package/dist/cjs/{Dfp-c4f1f12a.js → Dfp-8b6f25fe.js} +1 -1
  6. package/dist/cjs/{GridContent-089aa22c.js → GridContent-8b0ebfec.js} +26 -10
  7. package/dist/cjs/GridContent.js +5 -4
  8. package/dist/cjs/IssueContentDeck.js +1 -1
  9. package/dist/cjs/IssueDeck.js +1 -1
  10. package/dist/cjs/MasterDeck.js +11 -11
  11. package/dist/cjs/{Normal-47d9e184.js → Normal-78631b6e.js} +78 -93
  12. package/dist/cjs/PublicationDeck.js +1 -1
  13. package/dist/cjs/QueueDeckExpanded.js +6 -5
  14. package/dist/cjs/{TaxonomyCard-d97685e2.js → TaxonomyCard-f24d8ec9.js} +1 -1
  15. package/dist/cjs/TaxonomyCard.js +2 -2
  16. package/dist/cjs/TemplateNormal.js +3 -2
  17. package/dist/cjs/ThumbnailCard.js +1 -1
  18. package/dist/cjs/VideoSeriesListing.js +2 -2
  19. package/dist/cjs/{YoutubeGroup-ad994d02.js → YoutubeGroup-d2d9e57c.js} +4 -4
  20. package/dist/cjs/YoutubeGroup.js +1 -1
  21. package/dist/cjs/{index-a4c53ff4.js → index-eb596973.js} +18 -18
  22. package/dist/cjs/index.js +203 -182
  23. package/dist/cjs/{main-58839f4e.js → main-c1bd47fe.js} +6 -6
  24. package/dist/cjs/{visibility-sensor-bea3105d.js → visibility-sensor-59b2685c.js} +2501 -1437
  25. package/dist/esm/AdSlot-b67f8534.js +64 -0
  26. package/dist/esm/DeckContent.js +116 -59
  27. package/dist/esm/DeckQueue.js +3 -3
  28. package/dist/esm/{Dfp-6731ac01.js → Dfp-6c8d69e6.js} +1 -1
  29. package/dist/esm/{GridContent-214acb61.js → GridContent-0777cc42.js} +26 -10
  30. package/dist/esm/GridContent.js +5 -4
  31. package/dist/esm/IssueContentDeck.js +1 -1
  32. package/dist/esm/IssueDeck.js +1 -1
  33. package/dist/esm/MasterDeck.js +11 -11
  34. package/dist/esm/{Normal-be430fa9.js → Normal-7d33c7bf.js} +78 -92
  35. package/dist/esm/PublicationDeck.js +1 -1
  36. package/dist/esm/QueueDeckExpanded.js +6 -5
  37. package/dist/esm/{TaxonomyCard-f9c93953.js → TaxonomyCard-ca8c7c8a.js} +1 -1
  38. package/dist/esm/TaxonomyCard.js +2 -2
  39. package/dist/esm/TemplateNormal.js +3 -2
  40. package/dist/esm/ThumbnailCard.js +1 -1
  41. package/dist/esm/VideoSeriesListing.js +2 -2
  42. package/dist/esm/{YoutubeGroup-1368335c.js → YoutubeGroup-d3b92eb5.js} +4 -4
  43. package/dist/esm/YoutubeGroup.js +1 -1
  44. package/dist/esm/{index-ca4ff5cb.js → index-b7bbf1d4.js} +18 -18
  45. package/dist/esm/index.js +204 -183
  46. package/dist/esm/{main-dea495b7.js → main-2504c03f.js} +6 -6
  47. package/dist/esm/{visibility-sensor-675d3fa1.js → visibility-sensor-61158020.js} +2501 -1437
  48. package/package.json +93 -93
@@ -1,14 +1,13 @@
1
1
  import React__default, { useState, useEffect, useRef } from 'react';
2
2
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-ae1b5db5.js';
3
- import { b as lib_2 } from './index-6a79dad6.js';
4
3
  import PropTypes from 'prop-types';
5
4
  import Container from 'react-bootstrap/Container';
6
5
  import Row from 'react-bootstrap/Row';
7
6
  import Col from 'react-bootstrap/Col';
8
7
  import Link from 'next/link';
9
- import { d as debounce_1 } from './debounce-dc0c02e5.js';
10
- import { a as main_36, b as main_37 } from './main-dea495b7.js';
8
+ import { a as main_36, b as main_37 } from './main-2504c03f.js';
11
9
  import { s as slicedToArray } from './_babelHelpers-67c05996.js';
10
+ import { D as DFPAdSlot } from './AdSlot-b67f8534.js';
12
11
  import { g as get_1 } from './get-b074314b.js';
13
12
  import { Dropdown } from 'react-bootstrap';
14
13
  import { G as GenIcon, b as IoMdLogIn, c as IoIosHome } from './index.esm-536609db.js';
@@ -670,8 +669,8 @@ var renderLink = function renderLink(row) {
670
669
  };
671
670
 
672
671
  var SideFooter = function SideFooter(props) {
673
- /*
674
- useage example: <SideFooter cache={props.cache} logo='/an_mjhls_brand_logo.png' />
672
+ /*
673
+ useage example: <SideFooter cache={props.cache} logo='/an_mjhls_brand_logo.png' />
675
674
  */
676
675
  var _get = get_1(props, 'cache.siteSettingCache', {}),
677
676
  socialLinks = _get.socialLinks,
@@ -946,6 +945,27 @@ var Column3 = function Column3(props) {
946
945
  showRightAd = props.showRightAd,
947
946
  logo = props.logo;
948
947
 
948
+ var adRef = useRef(null);
949
+
950
+ useEffect(function () {
951
+ if (!main_36) {
952
+ var navbar = document.querySelector('.navbar');
953
+ var AdOffsetTop = adRef.current.getBoundingClientRect().top;
954
+ window.addEventListener('scroll', function () {
955
+ if (window.pageYOffset + (AdOffsetTop - navbar.offsetHeight) > AdOffsetTop) {
956
+ if (adRef.current && adRef.current.style) {
957
+ adRef.current.style.position = 'fixed';
958
+ adRef.current.style.top = '60px';
959
+ }
960
+ } else {
961
+ if (adRef.current && adRef.current.style) {
962
+ adRef.current.style.position = 'relative';
963
+ adRef.current.style.top = '';
964
+ }
965
+ }
966
+ });
967
+ }
968
+ }, []);
949
969
 
950
970
  return React__default.createElement(
951
971
  'section',
@@ -993,7 +1013,7 @@ var Column3 = function Column3(props) {
993
1013
  website && website.conferenceBannerContent && React__default.createElement(ConferenceBanner, { website: website }),
994
1014
  React__default.createElement(
995
1015
  'div',
996
- { className: 'sticky-top', style: { top: '60px' } },
1016
+ { ref: adRef },
997
1017
  rightItems && rightItems.map(function (row, index) {
998
1018
  return React__default.createElement(
999
1019
  'div',
@@ -1223,15 +1243,15 @@ var SocialNavFooter = function SocialNavFooter(props) {
1223
1243
  };
1224
1244
 
1225
1245
  var NavMagazine = function NavMagazine(props) {
1226
- /*
1227
- Example Nav with acceptable props
1228
- <MagazineNav
1229
- showLogin
1230
- logo={props.settings.logo}
1231
- dataObject={props.cache.mainNavCache}
1232
- website={website}
1233
- subNav={props.cache.subNavCache}
1234
- />
1246
+ /*
1247
+ Example Nav with acceptable props
1248
+ <MagazineNav
1249
+ showLogin
1250
+ logo={props.settings.logo}
1251
+ dataObject={props.cache.mainNavCache}
1252
+ website={website}
1253
+ subNav={props.cache.subNavCache}
1254
+ />
1235
1255
  */
1236
1256
 
1237
1257
  var logo = props.logo,
@@ -1519,15 +1539,15 @@ var NavMagazine = function NavMagazine(props) {
1519
1539
  var MagazineNav = React__default.memo(NavMagazine);
1520
1540
 
1521
1541
  var NavNative = function NavNative(props) {
1522
- /*
1523
- Example Nav with acceptable props
1524
- <MagazineNav
1525
- showLogin
1526
- logo={props.settings.logo}
1527
- dataObject={props.cache.mainNavCache}
1528
- website={website}
1529
- subNav={props.cache.subNavCache}
1530
- />
1542
+ /*
1543
+ Example Nav with acceptable props
1544
+ <MagazineNav
1545
+ showLogin
1546
+ logo={props.settings.logo}
1547
+ dataObject={props.cache.mainNavCache}
1548
+ website={website}
1549
+ subNav={props.cache.subNavCache}
1550
+ />
1531
1551
  */
1532
1552
 
1533
1553
  var logo = props.logo,
@@ -1921,15 +1941,15 @@ var NavDvm = function NavDvm(props) {
1921
1941
  };
1922
1942
 
1923
1943
  var HamMagazine = function HamMagazine(props) {
1924
- /*
1925
- Example Nav with acceptable props
1926
- <MagazineNav
1927
- showLogin
1928
- logo={props.settings.logo}
1929
- dataObject={props.cache.mainNavCache}
1930
- website={website}
1931
- subNav={props.cache.subNavCache}
1932
- />
1944
+ /*
1945
+ Example Nav with acceptable props
1946
+ <MagazineNav
1947
+ showLogin
1948
+ logo={props.settings.logo}
1949
+ dataObject={props.cache.mainNavCache}
1950
+ website={website}
1951
+ subNav={props.cache.subNavCache}
1952
+ />
1933
1953
  */
1934
1954
 
1935
1955
  var logo = props.logo,
@@ -1975,6 +1995,29 @@ var HamMagazine = function HamMagazine(props) {
1975
1995
  console.log('useEffect onClick', isOpen);
1976
1996
  }, [isOpen]);
1977
1997
 
1998
+ useEffect(function () {
1999
+ var navOffsetTop = navRef.current.getBoundingClientRect().top;
2000
+ var navOffsetHeight = navRef.current.getBoundingClientRect().height;
2001
+ var adSection = document.querySelector('.AD728x90');
2002
+ window.addEventListener('scroll', function () {
2003
+ if (window.pageYOffset > navOffsetTop) {
2004
+ if (navRef.current && navRef.current.style) {
2005
+ navRef.current.style.position = 'fixed';
2006
+ navRef.current.style.top = 0;
2007
+ navRef.current.style.width = '100%';
2008
+ navRef.current.style.zIndex = '9999';
2009
+ adSection.style.marginTop = navOffsetHeight + 'px';
2010
+ }
2011
+ } else {
2012
+ if (navRef.current && navRef.current.style) {
2013
+ navRef.current.style.position = 'relative';
2014
+ navRef.current.style.top = '';
2015
+ adSection.style.marginTop = '';
2016
+ }
2017
+ }
2018
+ });
2019
+ }, []);
2020
+
1978
2021
  var trackScrolling = function trackScrolling() {
1979
2022
  var offsetTop = navRef.current.getBoundingClientRect().top;
1980
2023
 
@@ -2226,68 +2269,11 @@ var HamMagazine = function HamMagazine(props) {
2226
2269
  React__default.createElement(
2227
2270
  'style',
2228
2271
  { jsx: 'true' },
2229
- '\n .sticky-home {\n position: relative;\n top: -3px;\n left: -6px;\n cursor: pointer;\n }\n .nav-item svg {\n margin-bottom: 2px;\n }\n #nav-login,\n #nav-logout,\n #nav-register {\n padding: 0.5rem;\n cursor: pointer;\n }\n #nav-mobile-login,\n #nav-mobile-logout,\n #nav-mobile-register {\n display: none;\n }\n #nav-mobile-logout,\n #nav-mobile-login {\n position: absolute;\n right: 1rem;\n }\n #nav-mobile-register {\n position: absolute;\n left: 1rem;\n }\n @media screen and (max-width: 376px) {\n .mobile-nav .nav-toggle .form-inline .mobile-search {\n width: 60%;\n }\n .mobile-nav .nav-toggle .form-inline {\n width: 70%;\n }\n }\n @media screen and (max-width: 328px) {\n .mobile-nav .nav-toggle .form-inline .mobile-search {\n margin-right: 5px;\n }\n }\n @media screen and (max-width: 767px) {\n .logo {\n width: 100%;\n padding-left: 10px;\n padding-right: 10px;\n }\n }\n @media screen and (max-width: 1199px) {\n .nav-close {\n position: sticky;\n top: -70px;\n }\n .nav-open {\n position: relative;\n }\n\n .mobile-nav .nav-toggle {\n width: 100%;\n }\n\n .android-nav {\n max-height: 80vh;\n }\n\n .ios-nav {\n max-height: none;\n }\n\n .navbar.bg-primary {\n overflow: auto;\n }\n\n .mobile-nav .nav-toggle .navbar-toggler {\n float: left;\n height: 45px;\n }\n .mobile-nav .nav-toggle .form-inline {\n float: right;\n margin: 4px 0px 0px 0px;\n }\n .mobile-nav .form-inline .mobile-search {\n width: auto;\n }\n .sticky-home {\n display: none;\n }\n .dropdown-menu {\n max-height: 315px;\n overflow: auto;\n }\n ::-webkit-scrollbar {\n width: 10px;\n }\n ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(214, 214, 214, 0.8);\n box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);\n -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);\n }\n .navbar-expand-xl .show#basic-navbar-sub {\n display: block;\n }\n .navbar .mobile-nav .navbar-collapse.show {\n padding-bottom: 10px;\n border-bottom: 0.5px solid white;\n }\n .navbar .mobile-nav .navbar-collapse .form-inline {\n display: none;\n }\n .navbar .mobile-nav .navbar-collapse {\n margin-top: 15px;\n }\n .navbar .mobile-nav .navbar-collapse:last-child {\n border-bottom: none;\n margin-bottom: 0px;\n padding-bottom: 0px;\n margin-top: 0px;\n padding-top: 10px;\n }\n .navbar .mobile-nav .navbar-collapse .nav-footer ul {\n list-style-type: none;\n padding: inherit;\n margin-bottom: 0rem;\n }\n .navbar .mobile-nav .navbar-collapse .nav-footer .nav-link {\n text-transform: capitalize !important;\n font-weight: 300;\n }\n .navbar .mobile-nav .dropdown-item:focus {\n background-color: #696969;\n }\n .navbar .mobile-nav .dropdown-menu .dropdown-item {\n color: white;\n }\n .navbar .mobile-nav .dropdown-menu {\n background: inherit;\n border: none;\n }\n .navbar .mobile-nav .dropdown-menu.show {\n max-height: 100px;\n }\n }\n @media screen and (min-width: 1200px) {\n .nav-close {\n position: sticky;\n top: -70px;\n }\n #basic-navbar-sub {\n display: none !important;\n }\n .navbar .mobile-nav .dropdown-menu .dropdown-item {\n color: #696969;\n }\n .navbar .mobile-nav .dropdown-menu {\n background: white;\n border: 1 px solid #708090;\n }\n .mobile-nav .nav-toggle .form-inline {\n display: none;\n }\n }\n @media screen and (max-width: 1199px) {\n #nav-mobile-login,\n #nav-mobile-logout,\n #nav-mobile-register {\n display: block;\n }\n .navbar-top {\n flex-direction: row;\n justify-content: space-around !important;\n align-items: center;\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n width: 100%;\n }\n }\n '
2272
+ '\n .sticky-home {\n position: relative;\n top: -3px;\n left: -6px;\n cursor: pointer;\n }\n .nav-item svg {\n margin-bottom: 2px;\n }\n #nav-login,\n #nav-logout,\n #nav-register {\n padding: 0.5rem;\n cursor: pointer;\n }\n #nav-mobile-login,\n #nav-mobile-logout,\n #nav-mobile-register {\n display: none;\n }\n #nav-mobile-logout,\n #nav-mobile-login {\n position: absolute;\n right: 1rem;\n }\n #nav-mobile-register {\n position: absolute;\n left: 1rem;\n }\n @media screen and (max-width: 376px) {\n .mobile-nav .nav-toggle .form-inline .mobile-search {\n width: 60%;\n }\n .mobile-nav .nav-toggle .form-inline {\n width: 70%;\n }\n }\n @media screen and (max-width: 328px) {\n .mobile-nav .nav-toggle .form-inline .mobile-search {\n margin-right: 5px;\n }\n }\n @media screen and (max-width: 767px) {\n .logo {\n width: 100%;\n padding-left: 10px;\n padding-right: 10px;\n }\n }\n @media screen and (max-width: 1199px) {\n .nav-open {\n position: relative;\n }\n\n .mobile-nav .nav-toggle {\n width: 100%;\n }\n\n .android-nav {\n max-height: 80vh;\n }\n\n .ios-nav {\n max-height: none;\n }\n\n .navbar.bg-primary {\n overflow: auto;\n }\n\n .mobile-nav .nav-toggle .navbar-toggler {\n float: left;\n height: 45px;\n }\n .mobile-nav .nav-toggle .form-inline {\n float: right;\n margin: 4px 0px 0px 0px;\n }\n .mobile-nav .form-inline .mobile-search {\n width: auto;\n }\n .sticky-home {\n display: none;\n }\n .dropdown-menu {\n max-height: 315px;\n overflow: auto;\n }\n ::-webkit-scrollbar {\n width: 10px;\n }\n ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(214, 214, 214, 0.8);\n box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);\n -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);\n }\n .navbar-expand-xl .show#basic-navbar-sub {\n display: block;\n }\n .navbar .mobile-nav .navbar-collapse.show {\n padding-bottom: 10px;\n border-bottom: 0.5px solid white;\n }\n .navbar .mobile-nav .navbar-collapse .form-inline {\n display: none;\n }\n .navbar .mobile-nav .navbar-collapse {\n margin-top: 15px;\n }\n .navbar .mobile-nav .navbar-collapse:last-child {\n border-bottom: none;\n margin-bottom: 0px;\n padding-bottom: 0px;\n margin-top: 0px;\n padding-top: 10px;\n }\n .navbar .mobile-nav .navbar-collapse .nav-footer ul {\n list-style-type: none;\n padding: inherit;\n margin-bottom: 0rem;\n }\n .navbar .mobile-nav .navbar-collapse .nav-footer .nav-link {\n text-transform: capitalize !important;\n font-weight: 300;\n }\n .navbar .mobile-nav .dropdown-item:focus {\n background-color: #696969;\n }\n .navbar .mobile-nav .dropdown-menu .dropdown-item {\n color: white;\n }\n .navbar .mobile-nav .dropdown-menu {\n background: inherit;\n border: none;\n }\n .navbar .mobile-nav .dropdown-menu.show {\n max-height: 100px;\n }\n }\n @media screen and (min-width: 1200px) {\n #basic-navbar-sub {\n display: none !important;\n }\n .navbar .mobile-nav .dropdown-menu .dropdown-item {\n color: #696969;\n }\n .navbar .mobile-nav .dropdown-menu {\n background: white;\n border: 1 px solid #708090;\n }\n .mobile-nav .nav-toggle .form-inline {\n display: none;\n }\n }\n @media screen and (max-width: 1199px) {\n #nav-mobile-login,\n #nav-mobile-logout,\n #nav-mobile-register {\n display: block;\n }\n .navbar-top {\n flex-direction: row;\n justify-content: space-around !important;\n align-items: center;\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n width: 100%;\n }\n }\n '
2230
2273
  )
2231
2274
  );
2232
2275
  };
2233
2276
 
2234
- var DFPAdSlot = function DFPAdSlot(_ref) {
2235
- var adUnit = _ref.adUnit,
2236
- sizeMapping = _ref.sizeMapping,
2237
- className = _ref.className,
2238
- slotId = _ref.slotId,
2239
- sizes = _ref.sizes,
2240
- _ref$targeting = _ref.targeting,
2241
- targeting = _ref$targeting === undefined ? {} : _ref$targeting;
2242
-
2243
- var _useState = useState(false),
2244
- _useState2 = slicedToArray(_useState, 2),
2245
- adRendered = _useState2[0],
2246
- setAdRendered = _useState2[1];
2247
-
2248
- var _useState3 = useState(false),
2249
- _useState4 = slicedToArray(_useState3, 2),
2250
- adRefreshable = _useState4[0],
2251
- setAdRefreshable = _useState4[1];
2252
-
2253
- var handleVisibilityChange = debounce_1(function (_ref2) {
2254
- var event = _ref2.event;
2255
-
2256
- if (event.inViewPercentage <= 0) {
2257
- setAdRefreshable(false);
2258
- } else {
2259
- setAdRefreshable(true);
2260
- }
2261
- }, 500);
2262
-
2263
- return React__default.createElement(
2264
- 'div',
2265
- { className: className },
2266
- React__default.createElement(lib_2, {
2267
- slotId: slotId,
2268
- sizes: sizes,
2269
- adUnit: adUnit,
2270
- sizeMapping: sizeMapping,
2271
- targetingArguments: targeting,
2272
- onSlotRender: function onSlotRender(eventData) {
2273
- setAdRendered(true);
2274
- },
2275
- onSlotVisibilityChanged: handleVisibilityChange,
2276
- shouldRefresh: function shouldRefresh() {
2277
- if (adRendered && adRefreshable) return true;else return false;
2278
- }
2279
- })
2280
- );
2281
- };
2282
-
2283
- DFPAdSlot.propTypes = {
2284
- adUnit: PropTypes.string.isRequired,
2285
- slotId: PropTypes.string,
2286
- className: PropTypes.string,
2287
- sizeMapping: PropTypes.array,
2288
- sizes: PropTypes.array
2289
- };
2290
-
2291
2277
  var AD728x90 = function AD728x90(_ref) {
2292
2278
  var networkID = _ref.networkID,
2293
2279
  adUnit = _ref.adUnit,
@@ -2409,4 +2395,4 @@ var TemplateNormal = function TemplateNormal(props) {
2409
2395
  );
2410
2396
  };
2411
2397
 
2412
- export { AD728x90 as A, Column1 as C, DFPAdSlot as D, Header$1 as H, LeftNav$1 as L, MdPictureAsPdf as M, NavNative as N, PageFilter as P, Search as S, TemplateNormal as T, Column2 as a, Column3 as b, MagazineNav as c, NavNormal as d, NavDvm as e, HamMagazine as f, SideFooter as g };
2398
+ export { AD728x90 as A, Column1 as C, Header$1 as H, LeftNav$1 as L, MdPictureAsPdf as M, NavNative as N, PageFilter as P, Search as S, TemplateNormal as T, Column2 as a, Column3 as b, MagazineNav as c, NavNormal as d, NavDvm as e, HamMagazine as f, SideFooter as g };
@@ -6,7 +6,7 @@ import Col from 'react-bootstrap/Col';
6
6
  import Card from 'react-bootstrap/Card';
7
7
  import 'next/link';
8
8
  import 'react-dom';
9
- import { i as imageUrlBuilder } from './index-ca4ff5cb.js';
9
+ import { i as imageUrlBuilder } from './index-b7bbf1d4.js';
10
10
  import { L as LazyLoad } from './index-3c1ee9ab.js';
11
11
  import Button from 'react-bootstrap/Button';
12
12
 
@@ -2,13 +2,13 @@ import React__default, { useState, useEffect, useRef } from 'react';
2
2
  import './_commonjsHelpers-ae1b5db5.js';
3
3
  import { a as lib_3 } from './index-6a79dad6.js';
4
4
  import 'prop-types';
5
- import { I as InfiniteScroll, V as VisibilitySensor, m as moment } from './visibility-sensor-675d3fa1.js';
5
+ import { I as InfiniteScroll, V as VisibilitySensor, m as moment } from './visibility-sensor-61158020.js';
6
6
  import 'next/link';
7
7
  import { useRouter } from 'next/router';
8
8
  import 'react-dom';
9
- import { i as imageUrlBuilder } from './index-ca4ff5cb.js';
9
+ import { i as imageUrlBuilder } from './index-b7bbf1d4.js';
10
10
  import { L as LazyLoad } from './index-3c1ee9ab.js';
11
- import { a as main_36 } from './main-dea495b7.js';
11
+ import { a as main_36 } from './main-2504c03f.js';
12
12
  import { c as clean_html_1 } from './entities-e85d3a4a.js';
13
13
  import { s as slicedToArray, _ as _extends, t as toConsumableArray } from './_babelHelpers-67c05996.js';
14
14
  import { Container, Media } from 'react-bootstrap';
@@ -222,7 +222,8 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
222
222
  }),
223
223
  showCategory && article.contentCategory && React__default.createElement(
224
224
  'p',
225
- { className: 'article-category',
225
+ {
226
+ className: 'article-category',
226
227
  style: {
227
228
  background: '#3FB618',
228
229
  color: '#ffffff',
@@ -395,7 +396,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
395
396
  React__default.createElement(
396
397
  'style',
397
398
  { jsx: 'true' },
398
- '\n .feature-media > .media-body {\n -webkit-box-flex: none;\n -ms-flex: none;\n flex: none;\n }\n .img-wrapper img {\n max-height: 240px;\n height: auto;\n width: 100%;\n object-fit: contain;\n }\n .feature-wrapper {\n width: 100%;\n }\n .feature-wrapper img {\n width: 100%;\n margin-bottom: 1em;\n }\n @media only screen and (min-width: 768px) {\n .img-wrapper > img {\n padding-right: 1em;\n }\n }\n @media only screen and (max-width: 767px) {\n .img-wrapper {\n width: 100%;\n }\n .img-wrapper img {\n padding-bottom: 1em;\n }\n .media {\n flex-direction: column;\n }\n }\n '
399
+ '\n .feature-media > .media-body {\n -webkit-box-flex: none;\n -ms-flex: none;\n flex: none;\n }\n .img-wrapper img {\n max-height: 240px;\n height: auto;\n width: 100%;\n object-fit: contain;\n }\n .feature-wrapper {\n height: 100%;\n width: 100%;\n }\n .feature-wrapper img {\n width: 100%;\n margin-bottom: 1em;\n }\n @media only screen and (min-width: 768px) {\n .img-wrapper > img {\n padding-right: 1em;\n }\n }\n @media only screen and (max-width: 767px) {\n .img-wrapper {\n width: 100%;\n }\n .img-wrapper img {\n padding-bottom: 1em;\n }\n .media {\n flex-direction: column;\n }\n }\n '
399
400
  )
400
401
  );
401
402
  };
@@ -4,7 +4,7 @@ import Container from 'react-bootstrap/Container';
4
4
  import Row from 'react-bootstrap/Row';
5
5
  import Col from 'react-bootstrap/Col';
6
6
  import Card from 'react-bootstrap/Card';
7
- import { n as node, i as imageUrlBuilder } from './index-ca4ff5cb.js';
7
+ import { n as node, i as imageUrlBuilder } from './index-b7bbf1d4.js';
8
8
  import { L as LazyLoad } from './index-3c1ee9ab.js';
9
9
  import { _ as _extends } from './_babelHelpers-67c05996.js';
10
10
 
@@ -6,7 +6,7 @@ import 'react-bootstrap/Row';
6
6
  import 'react-bootstrap/Col';
7
7
  import 'react-bootstrap/Card';
8
8
  import 'react-dom';
9
- import './index-ca4ff5cb.js';
9
+ import './index-b7bbf1d4.js';
10
10
  import './index-3c1ee9ab.js';
11
11
  import './_babelHelpers-67c05996.js';
12
- export { T as default } from './TaxonomyCard-f9c93953.js';
12
+ export { T as default } from './TaxonomyCard-ca8c7c8a.js';
@@ -7,13 +7,14 @@ import 'react-bootstrap/Row';
7
7
  import 'react-bootstrap/Col';
8
8
  import 'next/link';
9
9
  import './debounce-dc0c02e5.js';
10
- import './main-dea495b7.js';
10
+ import './main-2504c03f.js';
11
11
  import './_babelHelpers-67c05996.js';
12
+ import './AdSlot-b67f8534.js';
12
13
  import './get-b074314b.js';
13
14
  import 'react-bootstrap';
14
15
  import './index.esm-536609db.js';
15
16
  import 'react-bootstrap/Button';
16
- export { T as default } from './Normal-be430fa9.js';
17
+ export { T as default } from './Normal-7d33c7bf.js';
17
18
  import 'react-bootstrap/ListGroup';
18
19
  import 'next/head';
19
20
  import 'react-bootstrap/Nav';
@@ -2,7 +2,7 @@ import React__default from 'react';
2
2
  import './_commonjsHelpers-ae1b5db5.js';
3
3
  import 'prop-types';
4
4
  import 'react-dom';
5
- import { i as imageUrlBuilder } from './index-ca4ff5cb.js';
5
+ import { i as imageUrlBuilder } from './index-b7bbf1d4.js';
6
6
  import { L as LazyLoad } from './index-3c1ee9ab.js';
7
7
  import { c as clean_html_1 } from './entities-e85d3a4a.js';
8
8
  import Media$1 from 'react-bootstrap/Media';
@@ -3,14 +3,14 @@ import './_commonjsHelpers-ae1b5db5.js';
3
3
  import { a as lib_3 } from './index-6a79dad6.js';
4
4
  import 'prop-types';
5
5
  import Container from 'react-bootstrap/Container';
6
- import { I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-675d3fa1.js';
6
+ import { I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-61158020.js';
7
7
  import 'next/link';
8
8
  import { withRouter } from 'next/router';
9
9
  import { d as debounce_1 } from './debounce-dc0c02e5.js';
10
10
  import 'react-dom';
11
11
  import './index-3c1ee9ab.js';
12
12
  import { i as inherits, c as createClass, a as classCallCheck, p as possibleConstructorReturn, _ as _extends } from './_babelHelpers-67c05996.js';
13
- import { Y as YoutubeGroup } from './YoutubeGroup-1368335c.js';
13
+ import { Y as YoutubeGroup } from './YoutubeGroup-d3b92eb5.js';
14
14
  import { a as IoIosArrowForward } from './index.esm-536609db.js';
15
15
 
16
16
  var VideoSeriesListing = function (_React$Component) {
@@ -52,10 +52,10 @@ var getYoutubeId = createCommonjsModule(function (module, exports) {
52
52
  }));
53
53
  });
54
54
 
55
- /*
56
- GROQ query -
57
- accepts an array of title, URL
58
- `https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
55
+ /*
56
+ GROQ query -
57
+ accepts an array of title, URL
58
+ `https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
59
59
  */
60
60
  var YoutubeGroup = function YoutubeGroup(props) {
61
61
  // Props should be an array of objects containing Thumbnail, title, and URL
@@ -4,4 +4,4 @@ import 'prop-types';
4
4
  import 'next/link';
5
5
  import 'react-dom';
6
6
  import './index-3c1ee9ab.js';
7
- export { Y as default } from './YoutubeGroup-1368335c.js';
7
+ export { Y as default } from './YoutubeGroup-d3b92eb5.js';
@@ -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
  };