@mjhls/mjh-framework 1.0.383 → 1.0.385
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/{ADInfeed-9f564bd2.js → ADInfeed-f544f2a5.js} +1 -1
- package/dist/cjs/{AdSlot-b5f0c396.js → AdSlot-1e40a214.js} +4 -4
- package/dist/cjs/AuthorComponent-37deda17.js +99 -0
- package/dist/cjs/DeckContent.js +13 -10
- package/dist/cjs/DeckQueue.js +10 -7
- package/dist/cjs/{Dfp-e77be4e4.js → Dfp-27b922b0.js} +3 -3
- package/dist/cjs/{Figure-04b8dbbe.js → Figure-c49ee0f8.js} +2 -2
- package/dist/cjs/{GridContent-a0c81f9f.js → GridContent-1871749e.js} +29 -68
- package/dist/cjs/GridContent.js +16 -12
- package/dist/cjs/GroupDeck.js +28 -4
- package/dist/cjs/MasterDeck.js +10 -7
- package/dist/cjs/{Normal-6b148627.js → Normal-a747507b.js} +4 -4
- package/dist/cjs/QueueDeckExpanded.js +31 -68
- package/dist/cjs/{TaxonomyCard-b51062ec.js → TaxonomyCard-cf264332.js} +1 -1
- package/dist/cjs/TaxonomyCard.js +3 -2
- package/dist/cjs/TemplateNormal.js +9 -8
- package/dist/cjs/{Ustream-f5f53782.js → Ustream-c7baf022.js} +1 -1
- package/dist/cjs/Ustream.js +3 -3
- package/dist/cjs/VideoSeriesListing.js +9 -5
- package/dist/cjs/YoutubeGroup.js +25 -4
- package/dist/cjs/_library-dd23b178.js +5 -0
- package/dist/cjs/_object-pie-68c5bcbc.js +16 -0
- package/dist/cjs/{debounce-528ad412.js → debounce-b088070c.js} +0 -3
- package/dist/cjs/{extends-4c2285ff.js → extends-60837c34.js} +3 -16
- package/dist/cjs/{get-3b23d857.js → get-5aa7468c.js} +1 -1
- package/dist/cjs/index.js +544 -18
- package/dist/cjs/inherits-2a0fa98c.js +210 -0
- package/dist/cjs/{main-987c23c6.js → main-2020ba94.js} +1 -1
- package/dist/cjs/{promise-3b44b2a3.js → promise-d5136080.js} +8 -4
- package/dist/cjs/{slicedToArray-879ab2fb.js → slicedToArray-419d467a.js} +1 -1
- package/dist/cjs/{toConsumableArray-34b5e9a7.js → toConsumableArray-3cf1df2c.js} +2 -2
- package/dist/cjs/{inherits-7548e3e8.js → typeof-2747c582.js} +20 -218
- package/dist/cjs/{web.dom.iterable-8b02d65e.js → web.dom.iterable-5c889cf1.js} +2 -0
- package/dist/esm/{ADInfeed-c65835b9.js → ADInfeed-88c335d9.js} +1 -1
- package/dist/esm/{AdSlot-1cc6bdb0.js → AdSlot-971ce41c.js} +5 -5
- package/dist/esm/AuthorComponent-beb2ad16.js +94 -0
- package/dist/esm/DeckContent.js +14 -11
- package/dist/esm/DeckQueue.js +11 -8
- package/dist/esm/{Dfp-7c317aa4.js → Dfp-3b3273ee.js} +4 -4
- package/dist/esm/{Figure-aa16a017.js → Figure-7ba30e53.js} +3 -3
- package/dist/esm/{GridContent-6aafc29f.js → GridContent-3229be76.js} +29 -68
- package/dist/esm/GridContent.js +17 -13
- package/dist/esm/GroupDeck.js +29 -5
- package/dist/esm/MasterDeck.js +11 -8
- package/dist/esm/{Normal-308179a5.js → Normal-508d09f1.js} +4 -4
- package/dist/esm/QueueDeckExpanded.js +32 -69
- package/dist/esm/{TaxonomyCard-f1f072ab.js → TaxonomyCard-12f0a90a.js} +1 -1
- package/dist/esm/TaxonomyCard.js +4 -3
- package/dist/esm/TemplateNormal.js +10 -9
- package/dist/esm/{Ustream-d8cc3cbd.js → Ustream-ee7aeeef.js} +1 -1
- package/dist/esm/Ustream.js +4 -4
- package/dist/esm/VideoSeriesListing.js +10 -6
- package/dist/esm/YoutubeGroup.js +26 -5
- package/dist/esm/_library-528f1934.js +3 -0
- package/dist/esm/_object-pie-33c40e79.js +13 -0
- package/dist/esm/{_to-object-b9b796ec.js → _to-object-1b1f7766.js} +1 -1
- package/dist/esm/{debounce-702eb224.js → debounce-df468b0e.js} +1 -3
- package/dist/esm/{extends-26d3b609.js → extends-92072fff.js} +3 -14
- package/dist/esm/{get-36d03764.js → get-53653403.js} +1 -1
- package/dist/esm/index.js +549 -24
- package/dist/esm/inherits-cacd91d8.js +203 -0
- package/dist/esm/{main-cb86f95d.js → main-25bb2c75.js} +2 -2
- package/dist/esm/{promise-86cb8313.js → promise-5d7cd78a.js} +5 -5
- package/dist/esm/{slicedToArray-a47a84a4.js → slicedToArray-04e02710.js} +2 -2
- package/dist/esm/{toConsumableArray-2718dc16.js → toConsumableArray-d7054876.js} +3 -3
- package/dist/esm/{inherits-4b85034c.js → typeof-e4b50250.js} +8 -205
- package/dist/esm/{web.dom.iterable-7e9bebf9.js → web.dom.iterable-e6bf2bf6.js} +2 -2
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { c as createCommonjsModule, a as commonjsGlobal, g as getCjsExportFromNamespace, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import { _ as _objectKeys, a as _toObject, b as _core } from './_to-object-
|
|
3
|
-
import './web.dom.iterable-
|
|
4
|
-
import
|
|
5
|
-
import { m as main_39, a as main_16, b as main_38 } from './main-
|
|
6
|
-
import { _ as _toConsumableArray, a as _Array$from } from './toConsumableArray-
|
|
7
|
-
import
|
|
8
|
-
import { _ as
|
|
2
|
+
import { _ as _objectKeys, a as _toObject, b as _core, c as _isObject, d as _ctx, e as _descriptors, f as _objectDp, g as _iobject, h as _toLength, i as _global, j as _fails, k as _hide, l as _export, m as _aFunction } from './_to-object-1b1f7766.js';
|
|
3
|
+
import { _ as _objectCreate, a as _iterDefine, b as _iterStep, c as _wks, d as _setToStringTag, e as _classof } from './web.dom.iterable-e6bf2bf6.js';
|
|
4
|
+
import './_library-528f1934.js';
|
|
5
|
+
import { m as main_39, a as main_16, b as main_38 } from './main-25bb2c75.js';
|
|
6
|
+
import { _ as _toConsumableArray, a as _Array$from } from './toConsumableArray-d7054876.js';
|
|
7
|
+
import './_object-pie-33c40e79.js';
|
|
8
|
+
import { _ as _extends$2, a as _Object$assign } from './extends-92072fff.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-cacd91d8.js';
|
|
10
|
+
import { _ as _meta, a as _isArray } from './typeof-e4b50250.js';
|
|
9
11
|
import React__default, { useState, useEffect, useRef } from 'react';
|
|
12
|
+
import { l as lib_3, d as debounce_1, a as lib_1, i as isObjectLike_1, _ as _baseGetTag, t as toNumber_1, b as _root, c as _freeGlobal } from './debounce-df468b0e.js';
|
|
10
13
|
import PropTypes from 'prop-types';
|
|
11
14
|
import Container$1 from 'react-bootstrap/Container';
|
|
12
15
|
import Row from 'react-bootstrap/Row';
|
|
@@ -19,19 +22,20 @@ import 'react-dom';
|
|
|
19
22
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
20
23
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
21
24
|
import { c as clean_html_1, h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
22
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-
|
|
23
|
-
import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-
|
|
24
|
-
export { D as AdSlot, B as Beam } from './AdSlot-
|
|
25
|
-
import './promise-
|
|
26
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
25
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-04e02710.js';
|
|
26
|
+
import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-971ce41c.js';
|
|
27
|
+
export { D as AdSlot, B as Beam } from './AdSlot-971ce41c.js';
|
|
28
|
+
import { _ as _anInstance, a as _forOf, b as _redefineAll, c as _setSpecies } from './promise-5d7cd78a.js';
|
|
29
|
+
import { A as ADInfeed } from './ADInfeed-88c335d9.js';
|
|
27
30
|
export { default as DeckContent } from './DeckContent.js';
|
|
28
|
-
import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-
|
|
29
|
-
export { A as AD, G as GridContent } from './GridContent-
|
|
31
|
+
import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-53653403.js';
|
|
32
|
+
export { A as AD, G as GridContent } from './GridContent-3229be76.js';
|
|
33
|
+
import './AuthorComponent-beb2ad16.js';
|
|
30
34
|
export { default as DeckQueue } from './DeckQueue.js';
|
|
31
35
|
import 'react-bootstrap/Media';
|
|
32
36
|
export { default as ThumbnailCard } from './ThumbnailCard.js';
|
|
33
|
-
import { B as BlockContent } from './TaxonomyCard-
|
|
34
|
-
export { T as TaxonomyCard } from './TaxonomyCard-
|
|
37
|
+
import { B as BlockContent } from './TaxonomyCard-12f0a90a.js';
|
|
38
|
+
export { T as TaxonomyCard } from './TaxonomyCard-12f0a90a.js';
|
|
35
39
|
import './react-social-icons-a7d5c5c7.js';
|
|
36
40
|
import { g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
37
41
|
import GroupDeck from './GroupDeck.js';
|
|
@@ -48,8 +52,8 @@ export { default as IssueDeck } from './IssueDeck.js';
|
|
|
48
52
|
import 'react-bootstrap/Badge';
|
|
49
53
|
export { default as IssueContentDeck } from './IssueContentDeck.js';
|
|
50
54
|
import Spinner from 'react-bootstrap/Spinner';
|
|
51
|
-
import { M as MdPictureAsPdf } from './Normal-
|
|
52
|
-
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-
|
|
55
|
+
import { M as MdPictureAsPdf } from './Normal-508d09f1.js';
|
|
56
|
+
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-508d09f1.js';
|
|
53
57
|
import 'react-bootstrap/ListGroup';
|
|
54
58
|
import Head from 'next/head';
|
|
55
59
|
import Accordion from 'react-bootstrap/Accordion';
|
|
@@ -66,8 +70,8 @@ import Carousel$1 from 'react-bootstrap/Carousel';
|
|
|
66
70
|
import Breadcrumb from 'react-bootstrap/Breadcrumb';
|
|
67
71
|
import DropdownButton from 'react-bootstrap/DropdownButton';
|
|
68
72
|
import Dropdown from 'react-bootstrap/Dropdown';
|
|
69
|
-
import { F as FaLongArrowAltRight } from './Ustream-
|
|
70
|
-
export { U as Ustream } from './Ustream-
|
|
73
|
+
import { F as FaLongArrowAltRight } from './Ustream-ee7aeeef.js';
|
|
74
|
+
export { U as Ustream } from './Ustream-ee7aeeef.js';
|
|
71
75
|
import useSWR from 'swr';
|
|
72
76
|
import Local from 'passport-local';
|
|
73
77
|
import mysql from 'mysql';
|
|
@@ -3584,7 +3588,8 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
|
|
|
3584
3588
|
var ADGutter = function ADGutter(_ref) {
|
|
3585
3589
|
var title = _ref.title,
|
|
3586
3590
|
gutterAd = _ref.gutterAd,
|
|
3587
|
-
minScreenWidth = _ref.minScreenWidth
|
|
3591
|
+
_ref$minScreenWidth = _ref.minScreenWidth,
|
|
3592
|
+
minScreenWidth = _ref$minScreenWidth === undefined ? 1700 : _ref$minScreenWidth;
|
|
3588
3593
|
var className = gutterAd.className,
|
|
3589
3594
|
slotId = gutterAd.slotId,
|
|
3590
3595
|
adUnit = gutterAd.adUnit,
|
|
@@ -13958,7 +13963,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
13958
13963
|
padding: '0 1rem',
|
|
13959
13964
|
left: '0'
|
|
13960
13965
|
} },
|
|
13961
|
-
vidUrl && React__default.createElement(GroupDeck, { dark: true, dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl })
|
|
13966
|
+
vidUrl && React__default.createElement(GroupDeck, { dark: true, dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client })
|
|
13962
13967
|
)
|
|
13963
13968
|
),
|
|
13964
13969
|
React__default.createElement(
|
|
@@ -14397,7 +14402,7 @@ var NativeAd = function NativeAd(props) {
|
|
|
14397
14402
|
};
|
|
14398
14403
|
|
|
14399
14404
|
var Figure = dynamic(function () {
|
|
14400
|
-
return import('./Figure-
|
|
14405
|
+
return import('./Figure-7ba30e53.js');
|
|
14401
14406
|
}, { ssr: false });
|
|
14402
14407
|
|
|
14403
14408
|
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
@@ -15168,6 +15173,526 @@ var HighlightenVideo = function HighlightenVideo(_ref) {
|
|
|
15168
15173
|
}
|
|
15169
15174
|
};
|
|
15170
15175
|
|
|
15176
|
+
var _validateCollection = function (it, TYPE) {
|
|
15177
|
+
if (!_isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
|
|
15178
|
+
return it;
|
|
15179
|
+
};
|
|
15180
|
+
|
|
15181
|
+
var dP = _objectDp.f;
|
|
15182
|
+
|
|
15183
|
+
|
|
15184
|
+
|
|
15185
|
+
|
|
15186
|
+
|
|
15187
|
+
|
|
15188
|
+
|
|
15189
|
+
|
|
15190
|
+
|
|
15191
|
+
var fastKey = _meta.fastKey;
|
|
15192
|
+
|
|
15193
|
+
var SIZE = _descriptors ? '_s' : 'size';
|
|
15194
|
+
|
|
15195
|
+
var getEntry = function (that, key) {
|
|
15196
|
+
// fast case
|
|
15197
|
+
var index = fastKey(key);
|
|
15198
|
+
var entry;
|
|
15199
|
+
if (index !== 'F') return that._i[index];
|
|
15200
|
+
// frozen object case
|
|
15201
|
+
for (entry = that._f; entry; entry = entry.n) {
|
|
15202
|
+
if (entry.k == key) return entry;
|
|
15203
|
+
}
|
|
15204
|
+
};
|
|
15205
|
+
|
|
15206
|
+
var _collectionStrong = {
|
|
15207
|
+
getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
|
|
15208
|
+
var C = wrapper(function (that, iterable) {
|
|
15209
|
+
_anInstance(that, C, NAME, '_i');
|
|
15210
|
+
that._t = NAME; // collection type
|
|
15211
|
+
that._i = _objectCreate(null); // index
|
|
15212
|
+
that._f = undefined; // first entry
|
|
15213
|
+
that._l = undefined; // last entry
|
|
15214
|
+
that[SIZE] = 0; // size
|
|
15215
|
+
if (iterable != undefined) _forOf(iterable, IS_MAP, that[ADDER], that);
|
|
15216
|
+
});
|
|
15217
|
+
_redefineAll(C.prototype, {
|
|
15218
|
+
// 23.1.3.1 Map.prototype.clear()
|
|
15219
|
+
// 23.2.3.2 Set.prototype.clear()
|
|
15220
|
+
clear: function clear() {
|
|
15221
|
+
for (var that = _validateCollection(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) {
|
|
15222
|
+
entry.r = true;
|
|
15223
|
+
if (entry.p) entry.p = entry.p.n = undefined;
|
|
15224
|
+
delete data[entry.i];
|
|
15225
|
+
}
|
|
15226
|
+
that._f = that._l = undefined;
|
|
15227
|
+
that[SIZE] = 0;
|
|
15228
|
+
},
|
|
15229
|
+
// 23.1.3.3 Map.prototype.delete(key)
|
|
15230
|
+
// 23.2.3.4 Set.prototype.delete(value)
|
|
15231
|
+
'delete': function (key) {
|
|
15232
|
+
var that = _validateCollection(this, NAME);
|
|
15233
|
+
var entry = getEntry(that, key);
|
|
15234
|
+
if (entry) {
|
|
15235
|
+
var next = entry.n;
|
|
15236
|
+
var prev = entry.p;
|
|
15237
|
+
delete that._i[entry.i];
|
|
15238
|
+
entry.r = true;
|
|
15239
|
+
if (prev) prev.n = next;
|
|
15240
|
+
if (next) next.p = prev;
|
|
15241
|
+
if (that._f == entry) that._f = next;
|
|
15242
|
+
if (that._l == entry) that._l = prev;
|
|
15243
|
+
that[SIZE]--;
|
|
15244
|
+
} return !!entry;
|
|
15245
|
+
},
|
|
15246
|
+
// 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)
|
|
15247
|
+
// 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)
|
|
15248
|
+
forEach: function forEach(callbackfn /* , that = undefined */) {
|
|
15249
|
+
_validateCollection(this, NAME);
|
|
15250
|
+
var f = _ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
|
|
15251
|
+
var entry;
|
|
15252
|
+
while (entry = entry ? entry.n : this._f) {
|
|
15253
|
+
f(entry.v, entry.k, this);
|
|
15254
|
+
// revert to the last existing entry
|
|
15255
|
+
while (entry && entry.r) entry = entry.p;
|
|
15256
|
+
}
|
|
15257
|
+
},
|
|
15258
|
+
// 23.1.3.7 Map.prototype.has(key)
|
|
15259
|
+
// 23.2.3.7 Set.prototype.has(value)
|
|
15260
|
+
has: function has(key) {
|
|
15261
|
+
return !!getEntry(_validateCollection(this, NAME), key);
|
|
15262
|
+
}
|
|
15263
|
+
});
|
|
15264
|
+
if (_descriptors) dP(C.prototype, 'size', {
|
|
15265
|
+
get: function () {
|
|
15266
|
+
return _validateCollection(this, NAME)[SIZE];
|
|
15267
|
+
}
|
|
15268
|
+
});
|
|
15269
|
+
return C;
|
|
15270
|
+
},
|
|
15271
|
+
def: function (that, key, value) {
|
|
15272
|
+
var entry = getEntry(that, key);
|
|
15273
|
+
var prev, index;
|
|
15274
|
+
// change existing entry
|
|
15275
|
+
if (entry) {
|
|
15276
|
+
entry.v = value;
|
|
15277
|
+
// create new entry
|
|
15278
|
+
} else {
|
|
15279
|
+
that._l = entry = {
|
|
15280
|
+
i: index = fastKey(key, true), // <- index
|
|
15281
|
+
k: key, // <- key
|
|
15282
|
+
v: value, // <- value
|
|
15283
|
+
p: prev = that._l, // <- previous entry
|
|
15284
|
+
n: undefined, // <- next entry
|
|
15285
|
+
r: false // <- removed
|
|
15286
|
+
};
|
|
15287
|
+
if (!that._f) that._f = entry;
|
|
15288
|
+
if (prev) prev.n = entry;
|
|
15289
|
+
that[SIZE]++;
|
|
15290
|
+
// add to index
|
|
15291
|
+
if (index !== 'F') that._i[index] = entry;
|
|
15292
|
+
} return that;
|
|
15293
|
+
},
|
|
15294
|
+
getEntry: getEntry,
|
|
15295
|
+
setStrong: function (C, NAME, IS_MAP) {
|
|
15296
|
+
// add .keys, .values, .entries, [@@iterator]
|
|
15297
|
+
// 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11
|
|
15298
|
+
_iterDefine(C, NAME, function (iterated, kind) {
|
|
15299
|
+
this._t = _validateCollection(iterated, NAME); // target
|
|
15300
|
+
this._k = kind; // kind
|
|
15301
|
+
this._l = undefined; // previous
|
|
15302
|
+
}, function () {
|
|
15303
|
+
var that = this;
|
|
15304
|
+
var kind = that._k;
|
|
15305
|
+
var entry = that._l;
|
|
15306
|
+
// revert to the last existing entry
|
|
15307
|
+
while (entry && entry.r) entry = entry.p;
|
|
15308
|
+
// get next entry
|
|
15309
|
+
if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) {
|
|
15310
|
+
// or finish the iteration
|
|
15311
|
+
that._t = undefined;
|
|
15312
|
+
return _iterStep(1);
|
|
15313
|
+
}
|
|
15314
|
+
// return step by kind
|
|
15315
|
+
if (kind == 'keys') return _iterStep(0, entry.k);
|
|
15316
|
+
if (kind == 'values') return _iterStep(0, entry.v);
|
|
15317
|
+
return _iterStep(0, [entry.k, entry.v]);
|
|
15318
|
+
}, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
|
|
15319
|
+
|
|
15320
|
+
// add [@@species], 23.1.2.2, 23.2.2.2
|
|
15321
|
+
_setSpecies(NAME);
|
|
15322
|
+
}
|
|
15323
|
+
};
|
|
15324
|
+
|
|
15325
|
+
var SPECIES = _wks('species');
|
|
15326
|
+
|
|
15327
|
+
var _arraySpeciesConstructor = function (original) {
|
|
15328
|
+
var C;
|
|
15329
|
+
if (_isArray(original)) {
|
|
15330
|
+
C = original.constructor;
|
|
15331
|
+
// cross-realm fallback
|
|
15332
|
+
if (typeof C == 'function' && (C === Array || _isArray(C.prototype))) C = undefined;
|
|
15333
|
+
if (_isObject(C)) {
|
|
15334
|
+
C = C[SPECIES];
|
|
15335
|
+
if (C === null) C = undefined;
|
|
15336
|
+
}
|
|
15337
|
+
} return C === undefined ? Array : C;
|
|
15338
|
+
};
|
|
15339
|
+
|
|
15340
|
+
// 9.4.2.3 ArraySpeciesCreate(originalArray, length)
|
|
15341
|
+
|
|
15342
|
+
|
|
15343
|
+
var _arraySpeciesCreate = function (original, length) {
|
|
15344
|
+
return new (_arraySpeciesConstructor(original))(length);
|
|
15345
|
+
};
|
|
15346
|
+
|
|
15347
|
+
// 0 -> Array#forEach
|
|
15348
|
+
// 1 -> Array#map
|
|
15349
|
+
// 2 -> Array#filter
|
|
15350
|
+
// 3 -> Array#some
|
|
15351
|
+
// 4 -> Array#every
|
|
15352
|
+
// 5 -> Array#find
|
|
15353
|
+
// 6 -> Array#findIndex
|
|
15354
|
+
|
|
15355
|
+
|
|
15356
|
+
|
|
15357
|
+
|
|
15358
|
+
|
|
15359
|
+
var _arrayMethods = function (TYPE, $create) {
|
|
15360
|
+
var IS_MAP = TYPE == 1;
|
|
15361
|
+
var IS_FILTER = TYPE == 2;
|
|
15362
|
+
var IS_SOME = TYPE == 3;
|
|
15363
|
+
var IS_EVERY = TYPE == 4;
|
|
15364
|
+
var IS_FIND_INDEX = TYPE == 6;
|
|
15365
|
+
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
|
15366
|
+
var create = $create || _arraySpeciesCreate;
|
|
15367
|
+
return function ($this, callbackfn, that) {
|
|
15368
|
+
var O = _toObject($this);
|
|
15369
|
+
var self = _iobject(O);
|
|
15370
|
+
var f = _ctx(callbackfn, that, 3);
|
|
15371
|
+
var length = _toLength(self.length);
|
|
15372
|
+
var index = 0;
|
|
15373
|
+
var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
|
|
15374
|
+
var val, res;
|
|
15375
|
+
for (;length > index; index++) if (NO_HOLES || index in self) {
|
|
15376
|
+
val = self[index];
|
|
15377
|
+
res = f(val, index, O);
|
|
15378
|
+
if (TYPE) {
|
|
15379
|
+
if (IS_MAP) result[index] = res; // map
|
|
15380
|
+
else if (res) switch (TYPE) {
|
|
15381
|
+
case 3: return true; // some
|
|
15382
|
+
case 5: return val; // find
|
|
15383
|
+
case 6: return index; // findIndex
|
|
15384
|
+
case 2: result.push(val); // filter
|
|
15385
|
+
} else if (IS_EVERY) return false; // every
|
|
15386
|
+
}
|
|
15387
|
+
}
|
|
15388
|
+
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
|
|
15389
|
+
};
|
|
15390
|
+
};
|
|
15391
|
+
|
|
15392
|
+
var dP$1 = _objectDp.f;
|
|
15393
|
+
var each = _arrayMethods(0);
|
|
15394
|
+
|
|
15395
|
+
|
|
15396
|
+
var _collection = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
|
|
15397
|
+
var Base = _global[NAME];
|
|
15398
|
+
var C = Base;
|
|
15399
|
+
var ADDER = IS_MAP ? 'set' : 'add';
|
|
15400
|
+
var proto = C && C.prototype;
|
|
15401
|
+
var O = {};
|
|
15402
|
+
if (!_descriptors || typeof C != 'function' || !(IS_WEAK || proto.forEach && !_fails(function () {
|
|
15403
|
+
new C().entries().next();
|
|
15404
|
+
}))) {
|
|
15405
|
+
// create collection constructor
|
|
15406
|
+
C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
|
|
15407
|
+
_redefineAll(C.prototype, methods);
|
|
15408
|
+
_meta.NEED = true;
|
|
15409
|
+
} else {
|
|
15410
|
+
C = wrapper(function (target, iterable) {
|
|
15411
|
+
_anInstance(target, C, NAME, '_c');
|
|
15412
|
+
target._c = new Base();
|
|
15413
|
+
if (iterable != undefined) _forOf(iterable, IS_MAP, target[ADDER], target);
|
|
15414
|
+
});
|
|
15415
|
+
each('add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','), function (KEY) {
|
|
15416
|
+
var IS_ADDER = KEY == 'add' || KEY == 'set';
|
|
15417
|
+
if (KEY in proto && !(IS_WEAK && KEY == 'clear')) _hide(C.prototype, KEY, function (a, b) {
|
|
15418
|
+
_anInstance(this, C, KEY);
|
|
15419
|
+
if (!IS_ADDER && IS_WEAK && !_isObject(a)) return KEY == 'get' ? undefined : false;
|
|
15420
|
+
var result = this._c[KEY](a === 0 ? 0 : a, b);
|
|
15421
|
+
return IS_ADDER ? this : result;
|
|
15422
|
+
});
|
|
15423
|
+
});
|
|
15424
|
+
IS_WEAK || dP$1(C.prototype, 'size', {
|
|
15425
|
+
get: function () {
|
|
15426
|
+
return this._c.size;
|
|
15427
|
+
}
|
|
15428
|
+
});
|
|
15429
|
+
}
|
|
15430
|
+
|
|
15431
|
+
_setToStringTag(C, NAME);
|
|
15432
|
+
|
|
15433
|
+
O[NAME] = C;
|
|
15434
|
+
_export(_export.G + _export.W + _export.F, O);
|
|
15435
|
+
|
|
15436
|
+
if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);
|
|
15437
|
+
|
|
15438
|
+
return C;
|
|
15439
|
+
};
|
|
15440
|
+
|
|
15441
|
+
var SET = 'Set';
|
|
15442
|
+
|
|
15443
|
+
// 23.2 Set Objects
|
|
15444
|
+
var es6_set = _collection(SET, function (get) {
|
|
15445
|
+
return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
|
|
15446
|
+
}, {
|
|
15447
|
+
// 23.2.3.1 Set.prototype.add(value)
|
|
15448
|
+
add: function add(value) {
|
|
15449
|
+
return _collectionStrong.def(_validateCollection(this, SET), value = value === 0 ? 0 : value, value);
|
|
15450
|
+
}
|
|
15451
|
+
}, _collectionStrong);
|
|
15452
|
+
|
|
15453
|
+
var _arrayFromIterable = function (iter, ITERATOR) {
|
|
15454
|
+
var result = [];
|
|
15455
|
+
_forOf(iter, false, result.push, result, ITERATOR);
|
|
15456
|
+
return result;
|
|
15457
|
+
};
|
|
15458
|
+
|
|
15459
|
+
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
|
|
15460
|
+
|
|
15461
|
+
|
|
15462
|
+
var _collectionToJson = function (NAME) {
|
|
15463
|
+
return function toJSON() {
|
|
15464
|
+
if (_classof(this) != NAME) throw TypeError(NAME + "#toJSON isn't generic");
|
|
15465
|
+
return _arrayFromIterable(this);
|
|
15466
|
+
};
|
|
15467
|
+
};
|
|
15468
|
+
|
|
15469
|
+
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
|
|
15470
|
+
|
|
15471
|
+
|
|
15472
|
+
_export(_export.P + _export.R, 'Set', { toJSON: _collectionToJson('Set') });
|
|
15473
|
+
|
|
15474
|
+
// https://tc39.github.io/proposal-setmap-offrom/
|
|
15475
|
+
|
|
15476
|
+
|
|
15477
|
+
var _setCollectionOf = function (COLLECTION) {
|
|
15478
|
+
_export(_export.S, COLLECTION, { of: function of() {
|
|
15479
|
+
var length = arguments.length;
|
|
15480
|
+
var A = new Array(length);
|
|
15481
|
+
while (length--) A[length] = arguments[length];
|
|
15482
|
+
return new this(A);
|
|
15483
|
+
} });
|
|
15484
|
+
};
|
|
15485
|
+
|
|
15486
|
+
// https://tc39.github.io/proposal-setmap-offrom/#sec-set.of
|
|
15487
|
+
_setCollectionOf('Set');
|
|
15488
|
+
|
|
15489
|
+
// https://tc39.github.io/proposal-setmap-offrom/
|
|
15490
|
+
|
|
15491
|
+
|
|
15492
|
+
|
|
15493
|
+
|
|
15494
|
+
|
|
15495
|
+
var _setCollectionFrom = function (COLLECTION) {
|
|
15496
|
+
_export(_export.S, COLLECTION, { from: function from(source /* , mapFn, thisArg */) {
|
|
15497
|
+
var mapFn = arguments[1];
|
|
15498
|
+
var mapping, A, n, cb;
|
|
15499
|
+
_aFunction(this);
|
|
15500
|
+
mapping = mapFn !== undefined;
|
|
15501
|
+
if (mapping) _aFunction(mapFn);
|
|
15502
|
+
if (source == undefined) return new this();
|
|
15503
|
+
A = [];
|
|
15504
|
+
if (mapping) {
|
|
15505
|
+
n = 0;
|
|
15506
|
+
cb = _ctx(mapFn, arguments[2], 2);
|
|
15507
|
+
_forOf(source, false, function (nextItem) {
|
|
15508
|
+
A.push(cb(nextItem, n++));
|
|
15509
|
+
});
|
|
15510
|
+
} else {
|
|
15511
|
+
_forOf(source, false, A.push, A);
|
|
15512
|
+
}
|
|
15513
|
+
return new this(A);
|
|
15514
|
+
} });
|
|
15515
|
+
};
|
|
15516
|
+
|
|
15517
|
+
// https://tc39.github.io/proposal-setmap-offrom/#sec-set.from
|
|
15518
|
+
_setCollectionFrom('Set');
|
|
15519
|
+
|
|
15520
|
+
var set = _core.Set;
|
|
15521
|
+
|
|
15522
|
+
var set$1 = createCommonjsModule(function (module) {
|
|
15523
|
+
module.exports = { "default": set, __esModule: true };
|
|
15524
|
+
});
|
|
15525
|
+
|
|
15526
|
+
var _Set = unwrapExports(set$1);
|
|
15527
|
+
|
|
15528
|
+
/* usage & query
|
|
15529
|
+
const Publication = (props) => {
|
|
15530
|
+
const { cache, pub, year } = props
|
|
15531
|
+
|
|
15532
|
+
const targeting = {
|
|
15533
|
+
content_placement: [`/journals/${pub.identifier.current}`],
|
|
15534
|
+
document_url: [`/journals/${pub.identifier.current}`],
|
|
15535
|
+
}
|
|
15536
|
+
|
|
15537
|
+
return (
|
|
15538
|
+
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
15539
|
+
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
15540
|
+
</Shell>
|
|
15541
|
+
)
|
|
15542
|
+
}
|
|
15543
|
+
|
|
15544
|
+
Publication.getInitialProps = async (ctx) => {
|
|
15545
|
+
const { query } = ctx
|
|
15546
|
+
const {
|
|
15547
|
+
query: { year },
|
|
15548
|
+
} = ctx
|
|
15549
|
+
const pub = await client.fetch(
|
|
15550
|
+
`*[_type == 'publication'
|
|
15551
|
+
&& identifier.current == $publication][0] {
|
|
15552
|
+
...,
|
|
15553
|
+
'issues': *[_type == 'publication'
|
|
15554
|
+
&& is_visible
|
|
15555
|
+
&& references(^._id)] | order(year desc, month desc)
|
|
15556
|
+
}`,
|
|
15557
|
+
query
|
|
15558
|
+
)
|
|
15559
|
+
const builder = imageUrlBuilder(client)
|
|
15560
|
+
const urlFor = (source) => {
|
|
15561
|
+
return builder.image(source)
|
|
15562
|
+
}
|
|
15563
|
+
pub.issues.map((issue) => {
|
|
15564
|
+
issue.thumbnail = urlFor(issue.thumbnail).url()
|
|
15565
|
+
})
|
|
15566
|
+
return { pub, year }
|
|
15567
|
+
}
|
|
15568
|
+
|
|
15569
|
+
export default Publication
|
|
15570
|
+
*/
|
|
15571
|
+
|
|
15572
|
+
var PublicationLanding = function PublicationLanding(props) {
|
|
15573
|
+
var publication = props.publication,
|
|
15574
|
+
year = props.year,
|
|
15575
|
+
href = props.href;
|
|
15576
|
+
|
|
15577
|
+
|
|
15578
|
+
var router = useRouter();
|
|
15579
|
+
var years = [].concat(_toConsumableArray(new _Set(publication.issues.map(function (issue) {
|
|
15580
|
+
return issue.year;
|
|
15581
|
+
})))).sort().reverse();
|
|
15582
|
+
|
|
15583
|
+
var _useState = useState(publication.issues),
|
|
15584
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
15585
|
+
issueData = _useState2[0],
|
|
15586
|
+
setIssueData = _useState2[1];
|
|
15587
|
+
|
|
15588
|
+
var _useState3 = useState(year ? year : years[0]),
|
|
15589
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
15590
|
+
activeYear = _useState4[0],
|
|
15591
|
+
setActiveYear = _useState4[1];
|
|
15592
|
+
|
|
15593
|
+
useEffect(function () {
|
|
15594
|
+
router.push(router.pathname, '/' + (href ? href : 'publications') + '/' + publication.identifier.current + '?year=' + activeYear, { shallow: true });
|
|
15595
|
+
setIssueData(function () {
|
|
15596
|
+
return publication.issues.filter(function (issue) {
|
|
15597
|
+
return issue.year === activeYear;
|
|
15598
|
+
});
|
|
15599
|
+
});
|
|
15600
|
+
}, [activeYear]);
|
|
15601
|
+
|
|
15602
|
+
return React__default.createElement(
|
|
15603
|
+
'div',
|
|
15604
|
+
{ id: 'publicationLanding' },
|
|
15605
|
+
React__default.createElement(
|
|
15606
|
+
Row,
|
|
15607
|
+
{ style: { marginBottom: '1rem' } },
|
|
15608
|
+
React__default.createElement(
|
|
15609
|
+
Col,
|
|
15610
|
+
null,
|
|
15611
|
+
React__default.createElement(
|
|
15612
|
+
Dropdown,
|
|
15613
|
+
{ id: 'pubYearFilter' },
|
|
15614
|
+
React__default.createElement(
|
|
15615
|
+
Dropdown.Toggle,
|
|
15616
|
+
null,
|
|
15617
|
+
activeYear
|
|
15618
|
+
),
|
|
15619
|
+
React__default.createElement(
|
|
15620
|
+
Dropdown.Menu,
|
|
15621
|
+
null,
|
|
15622
|
+
years.map(function (yr, key) {
|
|
15623
|
+
return React__default.createElement(
|
|
15624
|
+
Dropdown.Item,
|
|
15625
|
+
{ key: key, onClick: function onClick() {
|
|
15626
|
+
return setActiveYear(yr);
|
|
15627
|
+
} },
|
|
15628
|
+
yr
|
|
15629
|
+
);
|
|
15630
|
+
})
|
|
15631
|
+
)
|
|
15632
|
+
)
|
|
15633
|
+
)
|
|
15634
|
+
),
|
|
15635
|
+
issueData && issueData.length > 0 ? issueData.map(function (issue, key) {
|
|
15636
|
+
return React__default.createElement(
|
|
15637
|
+
'a',
|
|
15638
|
+
{ key: key, href: publication.identifier.current + '/' + issue.identifier.current },
|
|
15639
|
+
React__default.createElement(
|
|
15640
|
+
Card,
|
|
15641
|
+
{ className: 'issueCard' },
|
|
15642
|
+
React__default.createElement(
|
|
15643
|
+
Row,
|
|
15644
|
+
null,
|
|
15645
|
+
React__default.createElement(
|
|
15646
|
+
Col,
|
|
15647
|
+
{ md: 3, id: 'issueThumbnail' },
|
|
15648
|
+
React__default.createElement(Card.Img, { src: issue.thumbnail })
|
|
15649
|
+
),
|
|
15650
|
+
React__default.createElement(
|
|
15651
|
+
Col,
|
|
15652
|
+
{ md: 9, id: 'issueDetail' },
|
|
15653
|
+
React__default.createElement(
|
|
15654
|
+
Card.Body,
|
|
15655
|
+
null,
|
|
15656
|
+
React__default.createElement(
|
|
15657
|
+
Card.Title,
|
|
15658
|
+
null,
|
|
15659
|
+
issue.name
|
|
15660
|
+
),
|
|
15661
|
+
React__default.createElement(
|
|
15662
|
+
'p',
|
|
15663
|
+
null,
|
|
15664
|
+
'Volume: ',
|
|
15665
|
+
issue.volume,
|
|
15666
|
+
React__default.createElement('br', null),
|
|
15667
|
+
'Issue: ',
|
|
15668
|
+
issue.number
|
|
15669
|
+
),
|
|
15670
|
+
React__default.createElement(
|
|
15671
|
+
Button,
|
|
15672
|
+
null,
|
|
15673
|
+
'View Issue'
|
|
15674
|
+
)
|
|
15675
|
+
)
|
|
15676
|
+
)
|
|
15677
|
+
)
|
|
15678
|
+
)
|
|
15679
|
+
);
|
|
15680
|
+
}) : React__default.createElement(
|
|
15681
|
+
'div',
|
|
15682
|
+
null,
|
|
15683
|
+
React__default.createElement(
|
|
15684
|
+
'h5',
|
|
15685
|
+
null,
|
|
15686
|
+
React__default.createElement(
|
|
15687
|
+
'em',
|
|
15688
|
+
{ className: 'pl-3' },
|
|
15689
|
+
'New content coming soon, please check back later.'
|
|
15690
|
+
)
|
|
15691
|
+
)
|
|
15692
|
+
)
|
|
15693
|
+
);
|
|
15694
|
+
};
|
|
15695
|
+
|
|
15171
15696
|
var fbsHero = function fbsHero(props) {
|
|
15172
15697
|
var removeTimeStamp = props.removeTimeStamp;
|
|
15173
15698
|
|
|
@@ -21635,4 +22160,4 @@ var auth = {
|
|
|
21635
22160
|
ProcessData: ProcessData_1
|
|
21636
22161
|
};
|
|
21637
22162
|
|
|
21638
|
-
export { AD300x250, AD300x250x600, ADFloatingFooter, ADFooter, ADGutter, ADSponsoredResources, ADWelcome, AccordionPanel, AdSlotsProvider, AlphabeticList, ArticleDetailDropdown, ArticleQueue, auth as Auth, Breadcrumbs$1 as Breadcrumbs, CMEDeck, ConferenceArticleCard, EventsDeck, Feature, fbsHero as ForbesHero, GridHero, Hero, HighlightenVideo, HorizontalHero, InfiniteScrollDeck, KMTracker, OncliveHero, OncliveLargeHero, PdfDownload, RelatedContent, RelatedTopicsDropdown, SetCookie, SocialShare$1 as SocialShare, VerticalHero, YahooHero, getSerializers };
|
|
22163
|
+
export { AD300x250, AD300x250x600, ADFloatingFooter, ADFooter, ADGutter, ADSponsoredResources, ADWelcome, AccordionPanel, AdSlotsProvider, AlphabeticList, ArticleDetailDropdown, ArticleQueue, auth as Auth, Breadcrumbs$1 as Breadcrumbs, CMEDeck, ConferenceArticleCard, EventsDeck, Feature, fbsHero as ForbesHero, GridHero, Hero, HighlightenVideo, HorizontalHero, InfiniteScrollDeck, KMTracker, OncliveHero, OncliveLargeHero, PdfDownload, PublicationLanding, RelatedContent, RelatedTopicsDropdown, SetCookie, SocialShare$1 as SocialShare, VerticalHero, YahooHero, getSerializers };
|