@mjhls/mjh-framework 1.0.119 → 1.0.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.es.js +295 -47
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +298 -45
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React__default, { Component, useState, useEffect, useRef,
|
|
1
|
+
import React__default, { Component, useState, useEffect, useRef, createContext, createElement } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import reactDom from 'react-dom';
|
|
4
4
|
import Container from 'react-bootstrap/Container';
|
|
@@ -9,6 +9,8 @@ import Link from 'next/link';
|
|
|
9
9
|
import { withRouter, useRouter } from 'next/router';
|
|
10
10
|
import Media from 'react-bootstrap/Media';
|
|
11
11
|
import { Media as Media$1, Container as Container$1, Dropdown, Figure, Carousel, Table, Button as Button$1, ProgressBar, Card as Card$1 } from 'react-bootstrap';
|
|
12
|
+
import Button from 'react-bootstrap/Button';
|
|
13
|
+
import Badge from 'react-bootstrap/Badge';
|
|
12
14
|
import ListGroup from 'react-bootstrap/ListGroup';
|
|
13
15
|
import Head from 'next/head';
|
|
14
16
|
import Accordion from 'react-bootstrap/Accordion';
|
|
@@ -16,7 +18,6 @@ import { useAccordionToggle } from 'react-bootstrap/AccordionToggle';
|
|
|
16
18
|
import { FacebookShareButton, TwitterShareButton, PinterestShareButton, EmailShareButton, FacebookIcon, TwitterIcon, PinterestIcon, EmailIcon } from 'react-share';
|
|
17
19
|
import Form from 'react-bootstrap/Form';
|
|
18
20
|
import FormControl from 'react-bootstrap/FormControl';
|
|
19
|
-
import Button from 'react-bootstrap/Button';
|
|
20
21
|
import Nav from 'react-bootstrap/Nav';
|
|
21
22
|
import Navbar from 'react-bootstrap/Navbar';
|
|
22
23
|
import NavDropdown from 'react-bootstrap/NavDropdown';
|
|
@@ -12641,6 +12642,221 @@ var VideoSeriesListing = function (_React$Component) {
|
|
|
12641
12642
|
}(React__default.Component);
|
|
12642
12643
|
var VideoSeriesListing$1 = withRouter(VideoSeriesListing);
|
|
12643
12644
|
|
|
12645
|
+
var PublicationDeck = function PublicationDeck(props) {
|
|
12646
|
+
var data = props.data,
|
|
12647
|
+
imageHeight = props.imageHeight,
|
|
12648
|
+
imageWidth = props.imageWidth,
|
|
12649
|
+
href = props.href,
|
|
12650
|
+
Website = props.Website,
|
|
12651
|
+
client = props.client;
|
|
12652
|
+
|
|
12653
|
+
var urlFor = function urlFor(source) {
|
|
12654
|
+
var builder = imageUrlBuilder(client);
|
|
12655
|
+
return builder.image(source);
|
|
12656
|
+
};
|
|
12657
|
+
|
|
12658
|
+
var renderCardImage = function renderCardImage(thumbnail) {
|
|
12659
|
+
if (thumbnail && thumbnail.asset) {
|
|
12660
|
+
var url = urlFor(thumbnail);
|
|
12661
|
+
if (imageHeight) url = url.height(imageHeight);
|
|
12662
|
+
if (imageWidth) url = url.width(imageWidth);
|
|
12663
|
+
return url.url();
|
|
12664
|
+
} else {
|
|
12665
|
+
return Website.logo;
|
|
12666
|
+
}
|
|
12667
|
+
};
|
|
12668
|
+
|
|
12669
|
+
return React__default.createElement(
|
|
12670
|
+
Row,
|
|
12671
|
+
null,
|
|
12672
|
+
data && data.map(function (row, index) {
|
|
12673
|
+
return row.identifier && row.identifier.current && React__default.createElement(
|
|
12674
|
+
Col,
|
|
12675
|
+
{ md: 12, lg: '4', style: { display: 'flex', flex: '1 0 auto' }, key: index },
|
|
12676
|
+
React__default.createElement(
|
|
12677
|
+
Card,
|
|
12678
|
+
{ className: 'block-card', style: { width: '200px' } },
|
|
12679
|
+
React__default.createElement(
|
|
12680
|
+
Link,
|
|
12681
|
+
{ href: href + '/' + row.identifier.current },
|
|
12682
|
+
React__default.createElement(
|
|
12683
|
+
'a',
|
|
12684
|
+
null,
|
|
12685
|
+
row.childIssue && row.childIssue.thumbnail && React__default.createElement(Card.Img, { variant: 'top', src: renderCardImage(row.childIssue.thumbnail), alt: row.name }),
|
|
12686
|
+
React__default.createElement(
|
|
12687
|
+
Card.Body,
|
|
12688
|
+
null,
|
|
12689
|
+
React__default.createElement(
|
|
12690
|
+
Card.Title,
|
|
12691
|
+
null,
|
|
12692
|
+
row.name
|
|
12693
|
+
),
|
|
12694
|
+
React__default.createElement(
|
|
12695
|
+
Button,
|
|
12696
|
+
{ variant: 'secondary' },
|
|
12697
|
+
'Browse Issues'
|
|
12698
|
+
)
|
|
12699
|
+
)
|
|
12700
|
+
)
|
|
12701
|
+
)
|
|
12702
|
+
)
|
|
12703
|
+
);
|
|
12704
|
+
})
|
|
12705
|
+
);
|
|
12706
|
+
};
|
|
12707
|
+
|
|
12708
|
+
var IssueDeck = function IssueDeck(props) {
|
|
12709
|
+
var data = props.data,
|
|
12710
|
+
href = props.href,
|
|
12711
|
+
imageHeight = props.imageHeight,
|
|
12712
|
+
imageWidth = props.imageWidth,
|
|
12713
|
+
Website = props.Website,
|
|
12714
|
+
client = props.client,
|
|
12715
|
+
publication = props.publication;
|
|
12716
|
+
|
|
12717
|
+
|
|
12718
|
+
var urlFor = function urlFor(source) {
|
|
12719
|
+
var builder = imageUrlBuilder(client);
|
|
12720
|
+
return builder.image(source);
|
|
12721
|
+
};
|
|
12722
|
+
|
|
12723
|
+
var renderCardImage = function renderCardImage(thumbnail) {
|
|
12724
|
+
if (thumbnail && thumbnail.asset) {
|
|
12725
|
+
var url = urlFor(thumbnail);
|
|
12726
|
+
if (imageHeight) url = url.height(imageHeight);
|
|
12727
|
+
if (imageWidth) url = url.width(imageWidth);
|
|
12728
|
+
return url.url();
|
|
12729
|
+
} else {
|
|
12730
|
+
return Website.logo;
|
|
12731
|
+
}
|
|
12732
|
+
};
|
|
12733
|
+
|
|
12734
|
+
return React__default.createElement(
|
|
12735
|
+
Row,
|
|
12736
|
+
null,
|
|
12737
|
+
data && data.map(function (row, index) {
|
|
12738
|
+
return publication && row.identifier && row.identifier.current && React__default.createElement(
|
|
12739
|
+
Col,
|
|
12740
|
+
{ md: 12, lg: 12, key: index },
|
|
12741
|
+
React__default.createElement(
|
|
12742
|
+
Link,
|
|
12743
|
+
{ href: href + '/' + publication + '/' + row.identifier.current },
|
|
12744
|
+
React__default.createElement(
|
|
12745
|
+
'a',
|
|
12746
|
+
null,
|
|
12747
|
+
React__default.createElement(
|
|
12748
|
+
Card,
|
|
12749
|
+
{ className: 'queue-card journal-queue', style: { borderTop: '1px solid #EEE' } },
|
|
12750
|
+
React__default.createElement(
|
|
12751
|
+
Row,
|
|
12752
|
+
{ style: { flexDirection: 'left' } },
|
|
12753
|
+
React__default.createElement(
|
|
12754
|
+
Col,
|
|
12755
|
+
{ md: 12, lg: 4 },
|
|
12756
|
+
row.thumbnail && React__default.createElement(Card.Img, { variant: 'top', src: renderCardImage(row.thumbnail), alt: row.name })
|
|
12757
|
+
),
|
|
12758
|
+
React__default.createElement(
|
|
12759
|
+
Col,
|
|
12760
|
+
null,
|
|
12761
|
+
React__default.createElement(
|
|
12762
|
+
Card.Body,
|
|
12763
|
+
{ style: { padding: '20px' } },
|
|
12764
|
+
React__default.createElement(
|
|
12765
|
+
Card.Title,
|
|
12766
|
+
null,
|
|
12767
|
+
row.name
|
|
12768
|
+
),
|
|
12769
|
+
React__default.createElement(
|
|
12770
|
+
'div',
|
|
12771
|
+
null,
|
|
12772
|
+
'Volume: ',
|
|
12773
|
+
row.volume
|
|
12774
|
+
),
|
|
12775
|
+
React__default.createElement(
|
|
12776
|
+
'div',
|
|
12777
|
+
null,
|
|
12778
|
+
'Number: ',
|
|
12779
|
+
row.number
|
|
12780
|
+
),
|
|
12781
|
+
React__default.createElement(
|
|
12782
|
+
Button,
|
|
12783
|
+
{ style: { marginTop: '20px' }, variant: 'secondary' },
|
|
12784
|
+
'View Issue'
|
|
12785
|
+
)
|
|
12786
|
+
)
|
|
12787
|
+
)
|
|
12788
|
+
)
|
|
12789
|
+
)
|
|
12790
|
+
)
|
|
12791
|
+
)
|
|
12792
|
+
);
|
|
12793
|
+
})
|
|
12794
|
+
);
|
|
12795
|
+
};
|
|
12796
|
+
|
|
12797
|
+
var IssueContentDeck = function IssueContentDeck(props) {
|
|
12798
|
+
var data = props.data,
|
|
12799
|
+
imageHeight = props.imageHeight,
|
|
12800
|
+
imageWidth = props.imageWidth,
|
|
12801
|
+
Website = props.Website,
|
|
12802
|
+
client = props.client;
|
|
12803
|
+
|
|
12804
|
+
|
|
12805
|
+
var urlFor = function urlFor(source) {
|
|
12806
|
+
var builder = imageUrlBuilder(client);
|
|
12807
|
+
return builder.image(source);
|
|
12808
|
+
};
|
|
12809
|
+
|
|
12810
|
+
var renderCardImage = function renderCardImage(thumbnail) {
|
|
12811
|
+
if (thumbnail && thumbnail.asset) {
|
|
12812
|
+
var url = urlFor(thumbnail);
|
|
12813
|
+
if (imageHeight) url = url.height(imageHeight);
|
|
12814
|
+
if (imageWidth) url = url.width(imageWidth);
|
|
12815
|
+
return url.url();
|
|
12816
|
+
} else {
|
|
12817
|
+
return Website.logo;
|
|
12818
|
+
}
|
|
12819
|
+
};
|
|
12820
|
+
|
|
12821
|
+
return React__default.createElement(
|
|
12822
|
+
Row,
|
|
12823
|
+
null,
|
|
12824
|
+
data && data.map(function (row, index) {
|
|
12825
|
+
return row.url && row.url.current && React__default.createElement(
|
|
12826
|
+
Col,
|
|
12827
|
+
{ md: 12, lg: 6, style: { display: 'flex', flex: '1 0 auto' }, key: index },
|
|
12828
|
+
React__default.createElement(
|
|
12829
|
+
Card,
|
|
12830
|
+
null,
|
|
12831
|
+
React__default.createElement(
|
|
12832
|
+
Link,
|
|
12833
|
+
{ href: '/view/[url]', as: '/view/' + row.url.current },
|
|
12834
|
+
React__default.createElement(
|
|
12835
|
+
'a',
|
|
12836
|
+
null,
|
|
12837
|
+
row.thumbnail && React__default.createElement(Card.Img, { variant: 'top', src: renderCardImage(row.thumbnail), alt: row.title }),
|
|
12838
|
+
React__default.createElement(
|
|
12839
|
+
Card.Body,
|
|
12840
|
+
null,
|
|
12841
|
+
row.issueSection && row.issueSection.name ? React__default.createElement(
|
|
12842
|
+
Badge,
|
|
12843
|
+
{ variant: 'success' },
|
|
12844
|
+
row.issueSection && row.issueSection.name.name
|
|
12845
|
+
) : '',
|
|
12846
|
+
React__default.createElement(
|
|
12847
|
+
Card.Title,
|
|
12848
|
+
null,
|
|
12849
|
+
row.title
|
|
12850
|
+
)
|
|
12851
|
+
)
|
|
12852
|
+
)
|
|
12853
|
+
)
|
|
12854
|
+
)
|
|
12855
|
+
);
|
|
12856
|
+
})
|
|
12857
|
+
);
|
|
12858
|
+
};
|
|
12859
|
+
|
|
12644
12860
|
var Column1 = function Column1(props) {
|
|
12645
12861
|
var title = props.title;
|
|
12646
12862
|
|
|
@@ -13237,7 +13453,6 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
13237
13453
|
Example Nav with acceptable props
|
|
13238
13454
|
<MagazineNav
|
|
13239
13455
|
showLogin
|
|
13240
|
-
loginState={true}
|
|
13241
13456
|
logo={props.settings.logo}
|
|
13242
13457
|
dataObject={props.cache.mainNavCache}
|
|
13243
13458
|
website={website}
|
|
@@ -13252,8 +13467,7 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
13252
13467
|
website = props.website,
|
|
13253
13468
|
_props$showLogin = props.showLogin,
|
|
13254
13469
|
showLogin = _props$showLogin === undefined ? false : _props$showLogin,
|
|
13255
|
-
_props$
|
|
13256
|
-
initialLoginState = _props$initialLoginSt === undefined ? false : _props$initialLoginSt;
|
|
13470
|
+
_props$userData = props.userData;
|
|
13257
13471
|
|
|
13258
13472
|
var navRef = useRef(null);
|
|
13259
13473
|
|
|
@@ -13267,11 +13481,6 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
13267
13481
|
screenWidth = _useState4[0],
|
|
13268
13482
|
setScreenWidth = _useState4[1];
|
|
13269
13483
|
|
|
13270
|
-
var _useState5 = useState(initialLoginState),
|
|
13271
|
-
_useState6 = slicedToArray(_useState5, 2),
|
|
13272
|
-
loginState = _useState6[0],
|
|
13273
|
-
setLoginState = _useState6[1];
|
|
13274
|
-
|
|
13275
13484
|
useEffect(function () {
|
|
13276
13485
|
document.addEventListener('scroll', trackScrolling);
|
|
13277
13486
|
return function () {
|
|
@@ -13282,11 +13491,6 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
13282
13491
|
|
|
13283
13492
|
useEffect(function () {
|
|
13284
13493
|
setScreenWidth(parseInt(window.innerWidth));
|
|
13285
|
-
if (typeof GCN !== 'undefined' && GCN && GCN.onecount) {
|
|
13286
|
-
setLoginState(GCN.onecount.isLoggedIn());
|
|
13287
|
-
} else {
|
|
13288
|
-
console.error('GCN not defined');
|
|
13289
|
-
}
|
|
13290
13494
|
}, []);
|
|
13291
13495
|
|
|
13292
13496
|
var trackScrolling = function trackScrolling() {
|
|
@@ -13302,7 +13506,6 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
13302
13506
|
var handleLogin = function handleLogin(e) {
|
|
13303
13507
|
if (typeof GCN !== 'undefined' && GCN && GCN.onecount) {
|
|
13304
13508
|
GCN.onecount.login();
|
|
13305
|
-
setLoginState(GCN.onecount.isLoggedIn());
|
|
13306
13509
|
} else {
|
|
13307
13510
|
console.error('GCN not defined');
|
|
13308
13511
|
}
|
|
@@ -13311,7 +13514,6 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
13311
13514
|
var handleLogout = function handleLogout(e) {
|
|
13312
13515
|
if (typeof GCN !== 'undefined' && GCN && GCN.onecount) {
|
|
13313
13516
|
GCN.onecount.logout();
|
|
13314
|
-
setLoginState(GCN.onecount.isLoggedIn());
|
|
13315
13517
|
} else {
|
|
13316
13518
|
console.error('GCN not defined');
|
|
13317
13519
|
}
|
|
@@ -13329,9 +13531,9 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
13329
13531
|
React__default.createElement(
|
|
13330
13532
|
Nav,
|
|
13331
13533
|
{ id: 'navbar-top', className: 'justify-content-center navbar-top', style: { margin: '0 auto' } },
|
|
13332
|
-
showLogin &&
|
|
13534
|
+
showLogin && React__default.createElement(
|
|
13333
13535
|
Nav.Item,
|
|
13334
|
-
{ id: 'nav-mobile-register' },
|
|
13536
|
+
{ id: 'nav-mobile-register', className: 'hide-on-login', style: { display: 'none' } },
|
|
13335
13537
|
React__default.createElement(
|
|
13336
13538
|
'div',
|
|
13337
13539
|
{ className: 'px-2 py-2', onClick: function onClick(e) {
|
|
@@ -13354,9 +13556,9 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
13354
13556
|
)
|
|
13355
13557
|
)
|
|
13356
13558
|
),
|
|
13357
|
-
showLogin &&
|
|
13559
|
+
showLogin && React__default.createElement(
|
|
13358
13560
|
Nav.Item,
|
|
13359
|
-
{ id: 'nav-mobile-login' },
|
|
13561
|
+
{ id: 'nav-mobile-login', className: 'hide-on-login', style: { display: 'none' } },
|
|
13360
13562
|
React__default.createElement(
|
|
13361
13563
|
'div',
|
|
13362
13564
|
{ className: 'px-2 py-2 ', onClick: function onClick(e) {
|
|
@@ -13366,12 +13568,12 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
13366
13568
|
' Login'
|
|
13367
13569
|
)
|
|
13368
13570
|
),
|
|
13369
|
-
showLogin &&
|
|
13571
|
+
showLogin && React__default.createElement(
|
|
13370
13572
|
React__default.Fragment,
|
|
13371
13573
|
null,
|
|
13372
13574
|
React__default.createElement(
|
|
13373
13575
|
Nav.Item,
|
|
13374
|
-
{ id: 'nav-mobile-logout' },
|
|
13576
|
+
{ id: 'nav-mobile-logout', className: 'hide-on-logout', style: { display: 'none' } },
|
|
13375
13577
|
React__default.createElement(
|
|
13376
13578
|
'div',
|
|
13377
13579
|
{ className: 'pl-2 pr-3 py-2 text-right', onClick: function onClick(e) {
|
|
@@ -13386,12 +13588,12 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
13386
13588
|
React__default.createElement(
|
|
13387
13589
|
Nav,
|
|
13388
13590
|
{ style: { position: 'absolute', right: '15px' }, className: 'justify-content-end rightHeader' },
|
|
13389
|
-
showLogin &&
|
|
13591
|
+
showLogin && React__default.createElement(
|
|
13390
13592
|
React__default.Fragment,
|
|
13391
13593
|
null,
|
|
13392
13594
|
React__default.createElement(
|
|
13393
13595
|
Nav.Item,
|
|
13394
|
-
|
|
13596
|
+
{ className: 'hide-on-login', style: { display: 'none' } },
|
|
13395
13597
|
React__default.createElement(
|
|
13396
13598
|
'div',
|
|
13397
13599
|
{ className: 'px-2 py-2 mr-2', id: 'nav-register', onClick: function onClick(e) {
|
|
@@ -13403,7 +13605,7 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
13403
13605
|
),
|
|
13404
13606
|
React__default.createElement(
|
|
13405
13607
|
Nav.Item,
|
|
13406
|
-
|
|
13608
|
+
{ className: 'hide-on-login', style: { display: 'none' } },
|
|
13407
13609
|
React__default.createElement(
|
|
13408
13610
|
'div',
|
|
13409
13611
|
{ className: 'px-2 py-2', id: 'nav-login', onClick: function onClick(e) {
|
|
@@ -13414,12 +13616,12 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
13414
13616
|
)
|
|
13415
13617
|
)
|
|
13416
13618
|
),
|
|
13417
|
-
showLogin &&
|
|
13619
|
+
showLogin && React__default.createElement(
|
|
13418
13620
|
React__default.Fragment,
|
|
13419
13621
|
null,
|
|
13420
13622
|
React__default.createElement(
|
|
13421
13623
|
Nav.Item,
|
|
13422
|
-
|
|
13624
|
+
{ className: 'hide-on-logout', style: { display: 'none' } },
|
|
13423
13625
|
React__default.createElement(
|
|
13424
13626
|
'div',
|
|
13425
13627
|
{ className: 'px-2 py-2', id: 'nav-logout', onClick: function onClick(e) {
|
|
@@ -14051,19 +14253,17 @@ var AD = function AD(_ref) {
|
|
|
14051
14253
|
_ref$targeting = _ref.targeting,
|
|
14052
14254
|
targeting = _ref$targeting === undefined ? {} : _ref$targeting;
|
|
14053
14255
|
|
|
14054
|
-
|
|
14055
14256
|
return React__default.createElement(
|
|
14056
14257
|
lib_1,
|
|
14057
|
-
{
|
|
14258
|
+
{
|
|
14259
|
+
dfpNetworkId: networkID,
|
|
14260
|
+
targetingArguments: targeting,
|
|
14261
|
+
sizeMapping: sizeMapping,
|
|
14262
|
+
lazyLoad: { fetchMarginPercent: 500, renderMarginPercent: 200, mobileScaling: 2.0 } },
|
|
14058
14263
|
React__default.createElement(
|
|
14059
14264
|
'div',
|
|
14060
14265
|
{ className: className },
|
|
14061
|
-
React__default.createElement(lib_2, {
|
|
14062
|
-
slotId: slotId,
|
|
14063
|
-
sizes: sizes,
|
|
14064
|
-
adUnit: adUnit,
|
|
14065
|
-
sizeMapping: sizeMapping
|
|
14066
|
-
})
|
|
14266
|
+
React__default.createElement(lib_2, { slotId: slotId, sizes: sizes, adUnit: adUnit, sizeMapping: sizeMapping })
|
|
14067
14267
|
)
|
|
14068
14268
|
);
|
|
14069
14269
|
};
|
|
@@ -14100,6 +14300,37 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
14100
14300
|
});
|
|
14101
14301
|
};
|
|
14102
14302
|
|
|
14303
|
+
var ADFooter = function ADFooter(_ref) {
|
|
14304
|
+
var children = _ref.children;
|
|
14305
|
+
|
|
14306
|
+
var _useState = useState(true),
|
|
14307
|
+
_useState2 = slicedToArray(_useState, 2),
|
|
14308
|
+
showAd = _useState2[0],
|
|
14309
|
+
setShowAd = _useState2[1];
|
|
14310
|
+
|
|
14311
|
+
return React__default.createElement(
|
|
14312
|
+
React__default.Fragment,
|
|
14313
|
+
null,
|
|
14314
|
+
showAd && React__default.createElement(
|
|
14315
|
+
'div',
|
|
14316
|
+
{ className: 'ADFooter' },
|
|
14317
|
+
children,
|
|
14318
|
+
React__default.createElement(
|
|
14319
|
+
'div',
|
|
14320
|
+
{ className: 'closeButton', onClick: function onClick() {
|
|
14321
|
+
return setShowAd(false);
|
|
14322
|
+
} },
|
|
14323
|
+
'x'
|
|
14324
|
+
)
|
|
14325
|
+
),
|
|
14326
|
+
React__default.createElement(
|
|
14327
|
+
'style',
|
|
14328
|
+
{ jsx: true },
|
|
14329
|
+
'\n .ADFooter {\n width: auto;\n margin: 0;\n background-color: #f5f5f5;\n position: fixed;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n z-index: 9000;\n }\n .closeButton {\n position: absolute;\n top: -10px;\n right: -10px;\n background: grey;\n color: white;\n font-weight: 500;\n border: 2px solid white;\n border-radius: 50%;\n width: 30px;\n height: 30px;\n text-align: center;\n font-size: 17px;\n cursor: pointer;\n }\n '
|
|
14330
|
+
)
|
|
14331
|
+
);
|
|
14332
|
+
};
|
|
14333
|
+
|
|
14103
14334
|
var urlFor$1 = function urlFor(source, client) {
|
|
14104
14335
|
var builder = imageUrlBuilder(client);
|
|
14105
14336
|
return builder.image(source);
|
|
@@ -17894,7 +18125,7 @@ var IFrame = function IFrame(_ref) {
|
|
|
17894
18125
|
return React__default.createElement(
|
|
17895
18126
|
'div',
|
|
17896
18127
|
{ className: 'd-block text-center mb-3' },
|
|
17897
|
-
React__default.createElement('iframe', { className: 'w-100', src: url, frameBorder: '0' })
|
|
18128
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, frameBorder: '0' })
|
|
17898
18129
|
);
|
|
17899
18130
|
};
|
|
17900
18131
|
|
|
@@ -20519,7 +20750,17 @@ var Quiz = function Quiz(_ref) {
|
|
|
20519
20750
|
);
|
|
20520
20751
|
};
|
|
20521
20752
|
|
|
20522
|
-
var
|
|
20753
|
+
var Leads = function Leads(_ref) {
|
|
20754
|
+
var url = _ref.url;
|
|
20755
|
+
|
|
20756
|
+
return React__default.createElement(
|
|
20757
|
+
'div',
|
|
20758
|
+
{ className: 'd-block text-center mb-3' },
|
|
20759
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
20760
|
+
);
|
|
20761
|
+
};
|
|
20762
|
+
|
|
20763
|
+
var getSerializers$1 = function getSerializers(client, pageview, videoAccountIDs, onVote, showVotes, drupalLeadSettings) {
|
|
20523
20764
|
return {
|
|
20524
20765
|
types: {
|
|
20525
20766
|
youtube: function youtube(_ref) {
|
|
@@ -20591,6 +20832,13 @@ var getSerializers$1 = function getSerializers(client, pageview, videoAccountIDs
|
|
|
20591
20832
|
var quizzes = node.quizzes;
|
|
20592
20833
|
|
|
20593
20834
|
return React__default.createElement(Quiz, { quizzes: quizzes });
|
|
20835
|
+
},
|
|
20836
|
+
leads: function leads(_ref13) {
|
|
20837
|
+
var node = _ref13.node;
|
|
20838
|
+
var leadID = node.leadID;
|
|
20839
|
+
|
|
20840
|
+
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
20841
|
+
return React__default.createElement(Leads, { url: url });
|
|
20594
20842
|
}
|
|
20595
20843
|
},
|
|
20596
20844
|
marks: {
|
|
@@ -20620,32 +20868,32 @@ var getSerializers$1 = function getSerializers(client, pageview, videoAccountIDs
|
|
|
20620
20868
|
children
|
|
20621
20869
|
);
|
|
20622
20870
|
},
|
|
20623
|
-
alignleft: function alignleft(
|
|
20624
|
-
var children =
|
|
20871
|
+
alignleft: function alignleft(_ref14) {
|
|
20872
|
+
var children = _ref14.children;
|
|
20625
20873
|
return React__default.createElement(
|
|
20626
20874
|
'div',
|
|
20627
20875
|
{ style: { textAlign: 'left' } },
|
|
20628
20876
|
children
|
|
20629
20877
|
);
|
|
20630
20878
|
},
|
|
20631
|
-
alignright: function alignright(
|
|
20632
|
-
var children =
|
|
20879
|
+
alignright: function alignright(_ref15) {
|
|
20880
|
+
var children = _ref15.children;
|
|
20633
20881
|
return React__default.createElement(
|
|
20634
20882
|
'div',
|
|
20635
20883
|
{ style: { textAlign: 'right' } },
|
|
20636
20884
|
children
|
|
20637
20885
|
);
|
|
20638
20886
|
},
|
|
20639
|
-
aligncenter: function aligncenter(
|
|
20640
|
-
var children =
|
|
20887
|
+
aligncenter: function aligncenter(_ref16) {
|
|
20888
|
+
var children = _ref16.children;
|
|
20641
20889
|
return React__default.createElement(
|
|
20642
20890
|
'div',
|
|
20643
20891
|
{ style: { textAlign: 'center' } },
|
|
20644
20892
|
children
|
|
20645
20893
|
);
|
|
20646
20894
|
},
|
|
20647
|
-
alignjustify: function alignjustify(
|
|
20648
|
-
var children =
|
|
20895
|
+
alignjustify: function alignjustify(_ref17) {
|
|
20896
|
+
var children = _ref17.children;
|
|
20649
20897
|
return React__default.createElement(
|
|
20650
20898
|
'div',
|
|
20651
20899
|
{ style: { textAlign: 'justify' } },
|
|
@@ -21165,5 +21413,5 @@ var PdfDownload = function PdfDownload(props) {
|
|
|
21165
21413
|
);
|
|
21166
21414
|
};
|
|
21167
21415
|
|
|
21168
|
-
export { ContentCard as DeckContent, GridContent$1 as GridContent, Queue as DeckQueue, ThumbnailCard, TaxonomyCard, GroupDeck, YoutubeGroup, QueueDeckExpanded, VideoSeriesListing$1 as VideoSeriesListing, Column1, Column2, Column3, Header, LeftNav, AccordionPanel, SocialShare, PageFilter, NavMagazine, NavNative, NavNormal, NavDvm, TemplateNormal, AD300x250, AD300x250x600, AD728x90, getSerializers$1 as getSerializers, Search, Feature, Breadcrumbs, SetCookie, Hero, AlphabeticList, PdfDownload };
|
|
21416
|
+
export { ContentCard as DeckContent, GridContent$1 as GridContent, Queue as DeckQueue, ThumbnailCard, TaxonomyCard, GroupDeck, YoutubeGroup, QueueDeckExpanded, VideoSeriesListing$1 as VideoSeriesListing, PublicationDeck, IssueDeck, IssueContentDeck, Column1, Column2, Column3, Header, LeftNav, AccordionPanel, SocialShare, PageFilter, NavMagazine, NavNative, NavNormal, NavDvm, TemplateNormal, AD, AD300x250, AD300x250x600, AD728x90, ADFooter, getSerializers$1 as getSerializers, Search, Feature, Breadcrumbs, SetCookie, Hero, AlphabeticList, PdfDownload };
|
|
21169
21417
|
//# sourceMappingURL=index.es.js.map
|