@mjhls/mjh-framework 1.0.383 → 1.0.384

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