@mjhls/mjh-framework 1.0.648 → 1.0.650
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/EventsDeck.js +387 -10
- package/dist/cjs/HamMagazine.js +3 -3
- package/dist/cjs/NavDvm.js +1 -1
- package/dist/cjs/NavMagazine.js +3 -3
- package/dist/cjs/NavNative.js +1 -1
- package/dist/cjs/NavNormal.js +1 -1
- package/dist/cjs/TemplateNormal.js +3 -3
- package/dist/cjs/View.js +2 -2
- package/dist/cjs/index.js +4 -4
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +10 -10
- package/dist/esm/AD300x250x600.js +10 -10
- package/dist/esm/AD728x90.js +10 -10
- package/dist/esm/ADFloatingFooter.js +10 -10
- package/dist/esm/ADFooter.js +5 -5
- package/dist/esm/ADGutter.js +10 -10
- package/dist/esm/{ADInfeed-3c4773f8.js → ADInfeed-c27997a3.js} +1 -1
- package/dist/esm/ADSkyscraper.js +10 -10
- package/dist/esm/ADSponsoredResources.js +10 -10
- package/dist/esm/ADWebcast.js +10 -10
- package/dist/esm/ADWelcome.js +10 -10
- package/dist/esm/{ADlgInfeed-5a52301f.js → ADlgInfeed-41c3909c.js} +1 -1
- package/dist/esm/AccordionPanel.js +5 -5
- package/dist/esm/AdSlot.js +10 -10
- package/dist/esm/AlphabeticList.js +9 -9
- package/dist/esm/ArticleSeriesListing.js +12 -12
- package/dist/esm/Auth.js +11 -11
- package/dist/esm/{AuthorComponent-1ea27faa.js → AuthorComponent-00f13201.js} +1 -1
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/Breadcrumbs.js +5 -5
- package/dist/esm/CMEDeck.js +11 -11
- package/dist/esm/Column2.js +11 -11
- package/dist/esm/Column3.js +12 -12
- package/dist/esm/DeckContent.js +19 -19
- package/dist/esm/DeckQueue.js +13 -13
- package/dist/esm/{Dfp-43d61e01.js → Dfp-8a8fca18.js} +5 -5
- package/dist/esm/EventsDeck.js +393 -17
- package/dist/esm/ExternalResources.js +19 -19
- package/dist/esm/ForbesHero.js +6 -6
- package/dist/esm/GridContent.js +21 -21
- package/dist/esm/GridHero.js +6 -6
- package/dist/esm/GroupDeck.js +8 -8
- package/dist/esm/HamMagazine.js +13 -13
- package/dist/esm/IssueContentDeck.js +6 -6
- package/dist/esm/IssueDeck.js +9 -9
- package/dist/esm/IssueLanding.js +16 -16
- package/dist/esm/LeftNav.js +10 -10
- package/dist/esm/MasterDeck.js +20 -20
- package/dist/esm/NavDvm.js +11 -11
- package/dist/esm/NavMagazine.js +13 -13
- package/dist/esm/NavNative.js +11 -11
- package/dist/esm/NavNormal.js +11 -11
- package/dist/esm/OncliveLargeHero.js +6 -6
- package/dist/esm/PageFilter.js +5 -5
- package/dist/esm/PartnerDetailListing.js +22 -22
- package/dist/esm/PopUpModal.js +5 -5
- package/dist/esm/PublicationLanding.js +9 -9
- package/dist/esm/QueueDeckExpanded.js +16 -16
- package/dist/esm/Search.js +5 -5
- package/dist/esm/Segment.js +9 -9
- package/dist/esm/SideFooter.js +11 -11
- package/dist/esm/{SocialSearchComponent-9c8358c4.js → SocialSearchComponent-75527dfe.js} +2 -2
- package/dist/esm/TaxonomyCard.js +3 -3
- package/dist/esm/TemplateNormal.js +14 -14
- package/dist/esm/Ustream.js +5 -5
- package/dist/esm/VideoSeriesCard.js +6 -6
- package/dist/esm/VideoSeriesFilter.js +8 -8
- package/dist/esm/VideoSeriesListing.js +12 -12
- package/dist/esm/View.js +23 -23
- package/dist/esm/YahooHero.js +6 -6
- package/dist/esm/YoutubeGroup.js +8 -8
- package/dist/esm/{_is-array-ced12663.js → _is-array-49698029.js} +1 -1
- package/dist/esm/{_iter-detect-0e105618.js → _iter-detect-59409a32.js} +2 -2
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-71ac75a4.js} +1 -1
- package/dist/esm/{_object-sap-4793c75a.js → _object-sap-4d59d5bd.js} +1 -1
- package/dist/esm/{_set-species-41cbf140.js → _set-species-cede29f8.js} +4 -4
- package/dist/esm/{_to-object-b01e8612.js → _to-object-ded78eb9.js} +1 -1
- package/dist/esm/{asyncToGenerator-271a52f3.js → asyncToGenerator-7c654f36.js} +6 -6
- package/dist/esm/{beam-c4d8f8f6.js → beam-681a9749.js} +2 -2
- package/dist/esm/{core.get-iterator-method-e41daf74.js → core.get-iterator-method-54d2e411.js} +2 -2
- package/dist/esm/{define-property-99e9c0ad.js → define-property-de3fc946.js} +1 -1
- package/dist/esm/{defineProperty-fa14766d.js → defineProperty-b798470d.js} +1 -1
- package/dist/esm/{es6.string.iterator-c199c9ba.js → es6.string.iterator-9b2af4a5.js} +1 -1
- package/dist/esm/{extends-229166d5.js → extends-cc5da797.js} +2 -2
- package/dist/esm/getRelatedArticle.js +7 -7
- package/dist/esm/getSerializers.js +19 -19
- package/dist/esm/{getTargeting-11d623e4.js → getTargeting-2acdec91.js} +2 -2
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-4b48a31f.js → index-f11c723f.js} +6 -6
- package/dist/esm/index.js +28 -28
- package/dist/esm/{inherits-9ddef7b3.js → inherits-7ee3e0c1.js} +5 -5
- package/dist/esm/{keys-941eccc4.js → keys-fc2d4c34.js} +2 -2
- package/dist/esm/{slicedToArray-5fb01661.js → slicedToArray-7021e5df.js} +4 -4
- package/dist/esm/{stringify-feadff37.js → stringify-008c8802.js} +1 -1
- package/dist/esm/{toConsumableArray-e7f3f5a6.js → toConsumableArray-725434a0.js} +4 -4
- package/dist/esm/{typeof-fea75829.js → typeof-08f2c380.js} +5 -5
- package/dist/esm/{web.dom.iterable-03c5ba1c.js → web.dom.iterable-8956f9a5.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/{SocialSearchComponent-c1cf0d88.js → SocialSearchComponent-962b1344.js} +1 -1
package/dist/esm/Column2.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-
|
|
3
|
-
import './es6.string.iterator-
|
|
2
|
+
import './_to-object-ded78eb9.js';
|
|
3
|
+
import './es6.string.iterator-9b2af4a5.js';
|
|
4
4
|
import './_library-528f1934.js';
|
|
5
|
-
import './_iter-detect-
|
|
6
|
-
import './core.get-iterator-method-
|
|
7
|
-
import './define-property-
|
|
8
|
-
import './web.dom.iterable-
|
|
5
|
+
import './_iter-detect-59409a32.js';
|
|
6
|
+
import './core.get-iterator-method-54d2e411.js';
|
|
7
|
+
import './define-property-de3fc946.js';
|
|
8
|
+
import './web.dom.iterable-8956f9a5.js';
|
|
9
9
|
import React__default from 'react';
|
|
10
10
|
import 'prop-types';
|
|
11
11
|
import Row from 'react-bootstrap/Row';
|
|
12
12
|
import Col from 'react-bootstrap/Col';
|
|
13
13
|
import './isSymbol-807e927e.js';
|
|
14
|
-
import './stringify-
|
|
15
|
-
import './asyncToGenerator-
|
|
16
|
-
import './_set-species-
|
|
17
|
-
import './beam-
|
|
14
|
+
import './stringify-008c8802.js';
|
|
15
|
+
import './asyncToGenerator-7c654f36.js';
|
|
16
|
+
import './_set-species-cede29f8.js';
|
|
17
|
+
import './beam-681a9749.js';
|
|
18
18
|
import './get-5ee14cda.js';
|
|
19
19
|
import './react-social-icons-a7d5c5c7.js';
|
|
20
|
-
import './defineProperty-
|
|
20
|
+
import './defineProperty-b798470d.js';
|
|
21
21
|
import SideFooter from './SideFooter.js';
|
|
22
22
|
import { C as ConferenceBanner } from './ConferenceBanner-8792ebd2.js';
|
|
23
23
|
|
package/dist/esm/Column3.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-
|
|
3
|
-
import './es6.string.iterator-
|
|
2
|
+
import './_to-object-ded78eb9.js';
|
|
3
|
+
import './es6.string.iterator-9b2af4a5.js';
|
|
4
4
|
import './_library-528f1934.js';
|
|
5
|
-
import './_iter-detect-
|
|
6
|
-
import './core.get-iterator-method-
|
|
7
|
-
import './define-property-
|
|
8
|
-
import './web.dom.iterable-
|
|
5
|
+
import './_iter-detect-59409a32.js';
|
|
6
|
+
import './core.get-iterator-method-54d2e411.js';
|
|
7
|
+
import './define-property-de3fc946.js';
|
|
8
|
+
import './web.dom.iterable-8956f9a5.js';
|
|
9
9
|
import React__default, { useRef, useEffect } from 'react';
|
|
10
10
|
import './index-93ec3c59.js';
|
|
11
11
|
import 'prop-types';
|
|
@@ -14,16 +14,16 @@ import Col from 'react-bootstrap/Col';
|
|
|
14
14
|
import './isSymbol-807e927e.js';
|
|
15
15
|
import './debounce-1a993acf.js';
|
|
16
16
|
import { m as main_39 } from './main-0465b2a0.js';
|
|
17
|
-
import './stringify-
|
|
18
|
-
import './slicedToArray-
|
|
19
|
-
import './asyncToGenerator-
|
|
20
|
-
import './_set-species-
|
|
21
|
-
import './beam-
|
|
17
|
+
import './stringify-008c8802.js';
|
|
18
|
+
import './slicedToArray-7021e5df.js';
|
|
19
|
+
import './asyncToGenerator-7c654f36.js';
|
|
20
|
+
import './_set-species-cede29f8.js';
|
|
21
|
+
import './beam-681a9749.js';
|
|
22
22
|
import './AdSlot.js';
|
|
23
23
|
import './get-5ee14cda.js';
|
|
24
24
|
import './react-social-icons-a7d5c5c7.js';
|
|
25
25
|
import 'react-bootstrap';
|
|
26
|
-
import './defineProperty-
|
|
26
|
+
import './defineProperty-b798470d.js';
|
|
27
27
|
import SideFooter from './SideFooter.js';
|
|
28
28
|
import { C as ConferenceBanner } from './ConferenceBanner-8792ebd2.js';
|
|
29
29
|
import ADSponsoredResources from './ADSponsoredResources.js';
|
package/dist/esm/DeckContent.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-
|
|
3
|
-
import './es6.string.iterator-
|
|
2
|
+
import './_to-object-ded78eb9.js';
|
|
3
|
+
import './es6.string.iterator-9b2af4a5.js';
|
|
4
4
|
import './_library-528f1934.js';
|
|
5
|
-
import './_iter-detect-
|
|
6
|
-
import { _ as _toConsumableArray } from './toConsumableArray-
|
|
7
|
-
import './core.get-iterator-method-
|
|
8
|
-
import './_object-pie-
|
|
9
|
-
import { _ as _extends } from './extends-
|
|
10
|
-
import './_object-sap-
|
|
11
|
-
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-
|
|
12
|
-
import './define-property-
|
|
13
|
-
import './web.dom.iterable-
|
|
14
|
-
import './typeof-
|
|
15
|
-
import './_is-array-
|
|
5
|
+
import './_iter-detect-59409a32.js';
|
|
6
|
+
import { _ as _toConsumableArray } from './toConsumableArray-725434a0.js';
|
|
7
|
+
import './core.get-iterator-method-54d2e411.js';
|
|
8
|
+
import './_object-pie-71ac75a4.js';
|
|
9
|
+
import { _ as _extends } from './extends-cc5da797.js';
|
|
10
|
+
import './_object-sap-4d59d5bd.js';
|
|
11
|
+
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-7ee3e0c1.js';
|
|
12
|
+
import './define-property-de3fc946.js';
|
|
13
|
+
import './web.dom.iterable-8956f9a5.js';
|
|
14
|
+
import './typeof-08f2c380.js';
|
|
15
|
+
import './_is-array-49698029.js';
|
|
16
16
|
import React__default from 'react';
|
|
17
17
|
import { l as lib_3 } from './index-93ec3c59.js';
|
|
18
18
|
import 'prop-types';
|
|
@@ -31,13 +31,13 @@ import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
|
31
31
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
32
32
|
import { m as main_39 } from './main-0465b2a0.js';
|
|
33
33
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
34
|
-
import './stringify-
|
|
35
|
-
import './slicedToArray-
|
|
36
|
-
import './asyncToGenerator-
|
|
37
|
-
import './_set-species-
|
|
38
|
-
import './beam-
|
|
34
|
+
import './stringify-008c8802.js';
|
|
35
|
+
import './slicedToArray-7021e5df.js';
|
|
36
|
+
import './asyncToGenerator-7c654f36.js';
|
|
37
|
+
import './_set-species-cede29f8.js';
|
|
38
|
+
import './beam-681a9749.js';
|
|
39
39
|
import './AdSlot.js';
|
|
40
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
40
|
+
import { A as ADInfeed } from './ADInfeed-c27997a3.js';
|
|
41
41
|
|
|
42
42
|
var DeckContent = function (_React$Component) {
|
|
43
43
|
_inherits(DeckContent, _React$Component);
|
package/dist/esm/DeckQueue.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-
|
|
3
|
-
import './es6.string.iterator-
|
|
2
|
+
import './_to-object-ded78eb9.js';
|
|
3
|
+
import './es6.string.iterator-9b2af4a5.js';
|
|
4
4
|
import './_library-528f1934.js';
|
|
5
|
-
import './_iter-detect-
|
|
6
|
-
import { _ as _toConsumableArray } from './toConsumableArray-
|
|
7
|
-
import './core.get-iterator-method-
|
|
8
|
-
import './_object-pie-
|
|
9
|
-
import { _ as _extends } from './extends-
|
|
10
|
-
import './_object-sap-
|
|
11
|
-
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-
|
|
12
|
-
import './define-property-
|
|
13
|
-
import './web.dom.iterable-
|
|
14
|
-
import './typeof-
|
|
15
|
-
import './_is-array-
|
|
5
|
+
import './_iter-detect-59409a32.js';
|
|
6
|
+
import { _ as _toConsumableArray } from './toConsumableArray-725434a0.js';
|
|
7
|
+
import './core.get-iterator-method-54d2e411.js';
|
|
8
|
+
import './_object-pie-71ac75a4.js';
|
|
9
|
+
import { _ as _extends } from './extends-cc5da797.js';
|
|
10
|
+
import './_object-sap-4d59d5bd.js';
|
|
11
|
+
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-7ee3e0c1.js';
|
|
12
|
+
import './define-property-de3fc946.js';
|
|
13
|
+
import './web.dom.iterable-8956f9a5.js';
|
|
14
|
+
import './typeof-08f2c380.js';
|
|
15
|
+
import './_is-array-49698029.js';
|
|
16
16
|
import React__default from 'react';
|
|
17
17
|
import { l as lib_3 } from './index-93ec3c59.js';
|
|
18
18
|
import 'prop-types';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-
|
|
3
|
-
import './es6.string.iterator-
|
|
4
|
-
import './core.get-iterator-method-
|
|
5
|
-
import './web.dom.iterable-
|
|
2
|
+
import './_to-object-ded78eb9.js';
|
|
3
|
+
import './es6.string.iterator-9b2af4a5.js';
|
|
4
|
+
import './core.get-iterator-method-54d2e411.js';
|
|
5
|
+
import './web.dom.iterable-8956f9a5.js';
|
|
6
6
|
import React__default, { useState } from 'react';
|
|
7
7
|
import { b as lib_1, a as lib_2 } from './index-93ec3c59.js';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -10,7 +10,7 @@ import './isSymbol-807e927e.js';
|
|
|
10
10
|
import { d as debounce_1 } from './debounce-1a993acf.js';
|
|
11
11
|
import 'react-dom';
|
|
12
12
|
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
13
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
13
|
+
import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
|
|
14
14
|
|
|
15
15
|
var AD = function AD(_ref) {
|
|
16
16
|
var networkID = _ref.networkID,
|
package/dist/esm/EventsDeck.js
CHANGED
|
@@ -1,25 +1,68 @@
|
|
|
1
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-
|
|
3
|
-
import './es6.string.iterator-
|
|
4
|
-
import './_iter-detect-
|
|
5
|
-
import { _ as _toConsumableArray } from './toConsumableArray-
|
|
6
|
-
import './core.get-iterator-method-
|
|
7
|
-
import './
|
|
1
|
+
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import { _ as _toIobject, a as _objectKeys, b as _descriptors, c as _export, d as _core } from './_to-object-ded78eb9.js';
|
|
3
|
+
import './es6.string.iterator-9b2af4a5.js';
|
|
4
|
+
import './_iter-detect-59409a32.js';
|
|
5
|
+
import { _ as _toConsumableArray } from './toConsumableArray-725434a0.js';
|
|
6
|
+
import './core.get-iterator-method-54d2e411.js';
|
|
7
|
+
import { _ as _objectPie } from './_object-pie-71ac75a4.js';
|
|
8
|
+
import { _ as _extends } from './extends-cc5da797.js';
|
|
9
|
+
import './define-property-de3fc946.js';
|
|
10
|
+
import './web.dom.iterable-8956f9a5.js';
|
|
8
11
|
import React__default, { useState, useEffect } from 'react';
|
|
9
12
|
import Container from 'react-bootstrap/Container';
|
|
10
13
|
import Row from 'react-bootstrap/Row';
|
|
11
14
|
import Col from 'react-bootstrap/Col';
|
|
12
15
|
import Card from 'react-bootstrap/Card';
|
|
13
16
|
import './moment-12415288.js';
|
|
17
|
+
import { useRouter } from 'next/router';
|
|
14
18
|
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
15
19
|
import { m as main_39 } from './main-0465b2a0.js';
|
|
16
|
-
import { _ as _JSON$stringify } from './stringify-
|
|
17
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
20
|
+
import { _ as _JSON$stringify } from './stringify-008c8802.js';
|
|
21
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-7021e5df.js';
|
|
18
22
|
import Button from 'react-bootstrap/Button';
|
|
23
|
+
import { _ as _defineProperty } from './defineProperty-b798470d.js';
|
|
19
24
|
import Spinner from 'react-bootstrap/Spinner';
|
|
25
|
+
import Form from 'react-bootstrap/Form';
|
|
20
26
|
import { m as momentTimezone } from './index-d2f90501.js';
|
|
21
27
|
import { j as js_cookie } from './js.cookie-6874175c.js';
|
|
22
28
|
|
|
29
|
+
var isEnum = _objectPie.f;
|
|
30
|
+
var _objectToArray = function (isEntries) {
|
|
31
|
+
return function (it) {
|
|
32
|
+
var O = _toIobject(it);
|
|
33
|
+
var keys = _objectKeys(O);
|
|
34
|
+
var length = keys.length;
|
|
35
|
+
var i = 0;
|
|
36
|
+
var result = [];
|
|
37
|
+
var key;
|
|
38
|
+
while (length > i) {
|
|
39
|
+
key = keys[i++];
|
|
40
|
+
if (!_descriptors || isEnum.call(O, key)) {
|
|
41
|
+
result.push(isEntries ? [key, O[key]] : O[key]);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return result;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
// https://github.com/tc39/proposal-object-values-entries
|
|
49
|
+
|
|
50
|
+
var $entries = _objectToArray(true);
|
|
51
|
+
|
|
52
|
+
_export(_export.S, 'Object', {
|
|
53
|
+
entries: function entries(it) {
|
|
54
|
+
return $entries(it);
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
var entries = _core.Object.entries;
|
|
59
|
+
|
|
60
|
+
var entries$1 = createCommonjsModule(function (module) {
|
|
61
|
+
module.exports = { "default": entries, __esModule: true };
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
var _Object$entries = unwrapExports(entries$1);
|
|
65
|
+
|
|
23
66
|
var clientId = process.env.CVENT_CLIENT_ID;
|
|
24
67
|
var clientSecret = process.env.CVENT_CLIENT_SECRET;
|
|
25
68
|
var currentTime = momentTimezone().toISOString();
|
|
@@ -32,7 +75,11 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
32
75
|
_ref$hardCodedEvents = _ref.hardCodedEvents,
|
|
33
76
|
hardCodedEvents = _ref$hardCodedEvents === undefined ? null : _ref$hardCodedEvents,
|
|
34
77
|
_ref$cta = _ref.cta,
|
|
35
|
-
cta = _ref$cta === undefined ? 'Register Now' : _ref$cta
|
|
78
|
+
cta = _ref$cta === undefined ? 'Register Now' : _ref$cta,
|
|
79
|
+
advancedFilters = _ref.advancedFilters,
|
|
80
|
+
showFilters = _ref.showFilters;
|
|
81
|
+
|
|
82
|
+
var router = useRouter();
|
|
36
83
|
|
|
37
84
|
var _useState = useState(true),
|
|
38
85
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -59,6 +106,26 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
59
106
|
scrolling = _useState10[0],
|
|
60
107
|
setScrolling = _useState10[1];
|
|
61
108
|
|
|
109
|
+
var _ref2 = advancedFilters ? useState(advancedFilters) : useState(null),
|
|
110
|
+
_ref3 = _slicedToArray(_ref2, 2),
|
|
111
|
+
deckAdvancedFilters = _ref3[0],
|
|
112
|
+
setDeckAdvancedFilters = _ref3[1];
|
|
113
|
+
|
|
114
|
+
var _useState11 = useState([]),
|
|
115
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
116
|
+
advancedFiltersArray = _useState12[0],
|
|
117
|
+
setAdvancedFiltersArray = _useState12[1];
|
|
118
|
+
|
|
119
|
+
var _useState13 = useState(null),
|
|
120
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
121
|
+
eventCards = _useState14[0],
|
|
122
|
+
setEventCards = _useState14[1];
|
|
123
|
+
|
|
124
|
+
var _useState15 = useState(true),
|
|
125
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
126
|
+
firstLoad = _useState16[0],
|
|
127
|
+
setFirstLoad = _useState16[1];
|
|
128
|
+
|
|
62
129
|
var getEvents = function getEvents(url) {
|
|
63
130
|
fetch(url, {
|
|
64
131
|
headers: {
|
|
@@ -139,6 +206,47 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
139
206
|
// reset state when filter changes
|
|
140
207
|
setIsLoading(true);
|
|
141
208
|
setData([]);
|
|
209
|
+
if (!firstLoad) {
|
|
210
|
+
if (advancedFilters) {
|
|
211
|
+
setDeckAdvancedFilters(function (prevState) {
|
|
212
|
+
var temp = _extends({}, prevState);
|
|
213
|
+
var _iteratorNormalCompletion = true;
|
|
214
|
+
var _didIteratorError = false;
|
|
215
|
+
var _iteratorError = undefined;
|
|
216
|
+
|
|
217
|
+
try {
|
|
218
|
+
for (var _iterator = _getIterator(_Object$entries(temp)), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
219
|
+
var _ref4 = _step.value;
|
|
220
|
+
|
|
221
|
+
var _ref5 = _slicedToArray(_ref4, 2);
|
|
222
|
+
|
|
223
|
+
var key = _ref5[0];
|
|
224
|
+
var value = _ref5[1];
|
|
225
|
+
|
|
226
|
+
temp[key].value = '';
|
|
227
|
+
temp[key].selected = false;
|
|
228
|
+
temp[key].param = value.param;
|
|
229
|
+
}
|
|
230
|
+
} catch (err) {
|
|
231
|
+
_didIteratorError = true;
|
|
232
|
+
_iteratorError = err;
|
|
233
|
+
} finally {
|
|
234
|
+
try {
|
|
235
|
+
if (!_iteratorNormalCompletion && _iterator.return) {
|
|
236
|
+
_iterator.return();
|
|
237
|
+
}
|
|
238
|
+
} finally {
|
|
239
|
+
if (_didIteratorError) {
|
|
240
|
+
throw _iteratorError;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
return temp;
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
setFirstLoad(false);
|
|
142
250
|
}, [filter]);
|
|
143
251
|
|
|
144
252
|
useEffect(function () {
|
|
@@ -213,13 +321,267 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
213
321
|
);
|
|
214
322
|
};
|
|
215
323
|
|
|
216
|
-
var
|
|
324
|
+
var handleFilterSelected = function handleFilterSelected(evt) {
|
|
325
|
+
evt.preventDefault();
|
|
326
|
+
evt.stopPropagation();
|
|
327
|
+
evt.persist();
|
|
328
|
+
setDeckAdvancedFilters(function (prevState) {
|
|
329
|
+
console.dir(prevState);
|
|
330
|
+
return _extends({}, prevState, _defineProperty({}, evt.target.dataset['filtername'], {
|
|
331
|
+
value: evt.target.value,
|
|
332
|
+
selected: evt.target.value.length > 0 ? true : false,
|
|
333
|
+
param: prevState[evt.target.dataset['filtername']].param
|
|
334
|
+
}));
|
|
335
|
+
});
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
var grabAdvancedFilters = function grabAdvancedFilters() {
|
|
339
|
+
console.log('grabAdvancedFilters');
|
|
340
|
+
if (data.length <= 0) {
|
|
341
|
+
return;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
var valuesArray = _Object$entries(deckAdvancedFilters).map(function (_ref6, index) {
|
|
345
|
+
var _ref7 = _slicedToArray(_ref6, 2),
|
|
346
|
+
key = _ref7[0],
|
|
347
|
+
value = _ref7[1];
|
|
348
|
+
|
|
349
|
+
var temp = [];
|
|
350
|
+
for (var evt in data) {
|
|
351
|
+
for (var field in data[evt].customFields) {
|
|
352
|
+
if (data[evt].customFields[field].name === key) {
|
|
353
|
+
if (!temp.includes(data[evt].customFields[field].value[0])) {
|
|
354
|
+
temp[evt] = data[evt].customFields[field].value[0];
|
|
355
|
+
break;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
return temp;
|
|
361
|
+
});
|
|
362
|
+
if (valuesArray.length > 0 && advancedFiltersArray.length <= 0) {
|
|
363
|
+
setAdvancedFiltersArray(valuesArray);
|
|
364
|
+
}
|
|
365
|
+
return valuesArray.length > 0 ? React__default.createElement(
|
|
366
|
+
React__default.Fragment,
|
|
367
|
+
null,
|
|
368
|
+
React__default.createElement(
|
|
369
|
+
Form,
|
|
370
|
+
null,
|
|
371
|
+
_Object$entries(deckAdvancedFilters).map(function (_ref8, index) {
|
|
372
|
+
var _ref9 = _slicedToArray(_ref8, 2),
|
|
373
|
+
key = _ref9[0],
|
|
374
|
+
value = _ref9[1];
|
|
375
|
+
|
|
376
|
+
return React__default.createElement(
|
|
377
|
+
Form.Group,
|
|
378
|
+
null,
|
|
379
|
+
React__default.createElement(
|
|
380
|
+
Form.Label,
|
|
381
|
+
null,
|
|
382
|
+
key
|
|
383
|
+
),
|
|
384
|
+
React__default.createElement(
|
|
385
|
+
Form.Control,
|
|
386
|
+
{ as: 'select', 'data-filterName': key, onChange: function onChange(evt) {
|
|
387
|
+
return handleFilterSelected(evt);
|
|
388
|
+
} },
|
|
389
|
+
React__default.createElement(
|
|
390
|
+
React__default.Fragment,
|
|
391
|
+
null,
|
|
392
|
+
React__default.createElement(
|
|
393
|
+
'option',
|
|
394
|
+
null,
|
|
395
|
+
' '
|
|
396
|
+
),
|
|
397
|
+
valuesArray[index].map(function (text, index) {
|
|
398
|
+
if (value.value.toLowerCase() === text.toLowerCase()) {
|
|
399
|
+
return React__default.createElement(
|
|
400
|
+
'option',
|
|
401
|
+
{ selected: true },
|
|
402
|
+
text
|
|
403
|
+
);
|
|
404
|
+
}
|
|
405
|
+
return React__default.createElement(
|
|
406
|
+
'option',
|
|
407
|
+
null,
|
|
408
|
+
text
|
|
409
|
+
);
|
|
410
|
+
})
|
|
411
|
+
)
|
|
412
|
+
)
|
|
413
|
+
);
|
|
414
|
+
})
|
|
415
|
+
)
|
|
416
|
+
) : null;
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
try {
|
|
420
|
+
useEffect(function () {
|
|
421
|
+
grabFilteredData();
|
|
422
|
+
}, [_JSON$stringify(deckAdvancedFilters)]);
|
|
423
|
+
} catch (e) {}
|
|
424
|
+
|
|
425
|
+
var grabFilteredData = function grabFilteredData() {
|
|
426
|
+
var tempData = [];
|
|
427
|
+
var filtersSelected = 0;
|
|
428
|
+
if (!advancedFilters) {
|
|
429
|
+
tempData = data;
|
|
430
|
+
} else {
|
|
431
|
+
if (_Object$entries(deckAdvancedFilters).length > 0) {
|
|
432
|
+
var _iteratorNormalCompletion2 = true;
|
|
433
|
+
var _didIteratorError2 = false;
|
|
434
|
+
var _iteratorError2 = undefined;
|
|
435
|
+
|
|
436
|
+
try {
|
|
437
|
+
for (var _iterator2 = _getIterator(_Object$entries(deckAdvancedFilters)), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
|
|
438
|
+
var _ref10 = _step2.value;
|
|
439
|
+
|
|
440
|
+
var _ref11 = _slicedToArray(_ref10, 2);
|
|
441
|
+
|
|
442
|
+
var key = _ref11[0];
|
|
443
|
+
var value = _ref11[1];
|
|
444
|
+
|
|
445
|
+
if (value !== '' && value !== undefined) {
|
|
446
|
+
filtersSelected++;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
} catch (err) {
|
|
450
|
+
_didIteratorError2 = true;
|
|
451
|
+
_iteratorError2 = err;
|
|
452
|
+
} finally {
|
|
453
|
+
try {
|
|
454
|
+
if (!_iteratorNormalCompletion2 && _iterator2.return) {
|
|
455
|
+
_iterator2.return();
|
|
456
|
+
}
|
|
457
|
+
} finally {
|
|
458
|
+
if (_didIteratorError2) {
|
|
459
|
+
throw _iteratorError2;
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
if (filtersSelected > 0) {
|
|
466
|
+
for (var i in data) {
|
|
467
|
+
var filterEvent = [];
|
|
468
|
+
for (var field in data[i].customFields) {
|
|
469
|
+
var _iteratorNormalCompletion3 = true;
|
|
470
|
+
var _didIteratorError3 = false;
|
|
471
|
+
var _iteratorError3 = undefined;
|
|
472
|
+
|
|
473
|
+
try {
|
|
474
|
+
for (var _iterator3 = _getIterator(_Object$entries(deckAdvancedFilters)), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
|
|
475
|
+
var _ref12 = _step3.value;
|
|
476
|
+
|
|
477
|
+
var _ref13 = _slicedToArray(_ref12, 2);
|
|
478
|
+
|
|
479
|
+
var _key = _ref13[0];
|
|
480
|
+
var _value = _ref13[1];
|
|
481
|
+
|
|
482
|
+
if (_value.selected) {
|
|
483
|
+
if (data[i].customFields[field].name === _key && data[i].customFields[field].value[0] === _value.value && !tempData.includes(data[i].id)) {
|
|
484
|
+
filterEvent.push(true);
|
|
485
|
+
} else if (data[i].customFields[field].name === _key && data[i].customFields[field].value[0] !== _value.value) {
|
|
486
|
+
filterEvent.push(false);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
} catch (err) {
|
|
491
|
+
_didIteratorError3 = true;
|
|
492
|
+
_iteratorError3 = err;
|
|
493
|
+
} finally {
|
|
494
|
+
try {
|
|
495
|
+
if (!_iteratorNormalCompletion3 && _iterator3.return) {
|
|
496
|
+
_iterator3.return();
|
|
497
|
+
}
|
|
498
|
+
} finally {
|
|
499
|
+
if (_didIteratorError3) {
|
|
500
|
+
throw _iteratorError3;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
if (field >= data[i].customFields.length - 1 && !filterEvent.includes(false)) {
|
|
506
|
+
tempData.push(data[i]);
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
var newPath = '?event=' + (filter.indexOf('start') >= 0 ? 'upcoming' : 'past');
|
|
511
|
+
var _iteratorNormalCompletion4 = true;
|
|
512
|
+
var _didIteratorError4 = false;
|
|
513
|
+
var _iteratorError4 = undefined;
|
|
514
|
+
|
|
515
|
+
try {
|
|
516
|
+
for (var _iterator4 = _getIterator(_Object$entries(deckAdvancedFilters)), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
|
|
517
|
+
var _ref14 = _step4.value;
|
|
518
|
+
|
|
519
|
+
var _ref15 = _slicedToArray(_ref14, 2);
|
|
520
|
+
|
|
521
|
+
var _key2 = _ref15[0];
|
|
522
|
+
var _value2 = _ref15[1];
|
|
523
|
+
|
|
524
|
+
if (_value2.value.length > 0) {
|
|
525
|
+
console.log(_value2);
|
|
526
|
+
newPath += '&' + _value2.param + '=' + _value2.value.replace(/ /g, '_');
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
} catch (err) {
|
|
530
|
+
_didIteratorError4 = true;
|
|
531
|
+
_iteratorError4 = err;
|
|
532
|
+
} finally {
|
|
533
|
+
try {
|
|
534
|
+
if (!_iteratorNormalCompletion4 && _iterator4.return) {
|
|
535
|
+
_iterator4.return();
|
|
536
|
+
}
|
|
537
|
+
} finally {
|
|
538
|
+
if (_didIteratorError4) {
|
|
539
|
+
throw _iteratorError4;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
if (router.asPath.split(router.pathname)[1] !== newPath) {
|
|
545
|
+
router.push(router.pathname, newPath, {
|
|
546
|
+
shallow: true
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
} else {
|
|
550
|
+
tempData = data;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
setEventCards(cardLoader(tempData));
|
|
555
|
+
};
|
|
556
|
+
|
|
557
|
+
useEffect(function () {
|
|
558
|
+
if (!advancedFilters) {
|
|
559
|
+
setEventCards(cardLoader(data));
|
|
560
|
+
} else {
|
|
561
|
+
grabFilteredData();
|
|
562
|
+
}
|
|
563
|
+
}, [_JSON$stringify(data)]);
|
|
564
|
+
|
|
565
|
+
var cardLoader = function cardLoader(localData) {
|
|
217
566
|
var numberOfItemsBeforeAd = 5;
|
|
567
|
+
var filteredData = localData;
|
|
568
|
+
|
|
569
|
+
if (filteredData.length <= 0) {
|
|
570
|
+
return React__default.createElement(
|
|
571
|
+
'div',
|
|
572
|
+
null,
|
|
573
|
+
React__default.createElement(
|
|
574
|
+
'div',
|
|
575
|
+
null,
|
|
576
|
+
'No events found '
|
|
577
|
+
)
|
|
578
|
+
);
|
|
579
|
+
}
|
|
218
580
|
|
|
219
581
|
return React__default.createElement(
|
|
220
582
|
Container,
|
|
221
583
|
{ style: { padding: 1 } },
|
|
222
|
-
|
|
584
|
+
filteredData && filteredData.map(function (row, index) {
|
|
223
585
|
var speakerInfo = [];
|
|
224
586
|
if (row.customFields) {
|
|
225
587
|
speakerInfo = row.customFields.filter(function (x) {
|
|
@@ -411,12 +773,26 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
411
773
|
|
|
412
774
|
if (data.length > 0) {
|
|
413
775
|
return React__default.createElement(
|
|
414
|
-
|
|
415
|
-
|
|
776
|
+
React__default.Fragment,
|
|
777
|
+
null,
|
|
778
|
+
data && advancedFilters && React__default.createElement(
|
|
779
|
+
'div',
|
|
780
|
+
{ className: 'advancedFilters ' + (showFilters ? 'show' : 'hide') },
|
|
781
|
+
grabAdvancedFilters()
|
|
782
|
+
),
|
|
416
783
|
React__default.createElement(
|
|
417
|
-
|
|
418
|
-
{
|
|
419
|
-
|
|
784
|
+
'div',
|
|
785
|
+
{ className: 'cvent-events' },
|
|
786
|
+
React__default.createElement(
|
|
787
|
+
InfiniteScroll,
|
|
788
|
+
{ dataLength: data.length, next: loadMore, hasMore: scrolling, scrollThreshold: 0.9 },
|
|
789
|
+
eventCards
|
|
790
|
+
)
|
|
791
|
+
),
|
|
792
|
+
React__default.createElement(
|
|
793
|
+
'style',
|
|
794
|
+
{ jsx: true },
|
|
795
|
+
'\n .advancedFilters {\n overflow: hidden;\n border-radius: 5px;\n padding: 1rem;\n margin-bottom: 1rem;\n box-shadow: #00000075 0 0 5px 2px;\n }\n .form-label {\n margin-bottom: 0;\n }\n .hide {\n opacity: 0;\n height: 0;\n display: none;\n }\n .show {\n opacity: 1;\n min-height: 50px;\n height: auto;\n display: block;\n }\n '
|
|
420
796
|
)
|
|
421
797
|
);
|
|
422
798
|
} else {
|