@mjhls/mjh-framework 1.0.702-beta-v1 → 1.0.702
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/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +19 -17
- package/dist/cjs/AD300x250x600.js +19 -17
- package/dist/cjs/AD728x90.js +20 -18
- package/dist/cjs/ADFloatingFooter.js +18 -16
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +18 -16
- package/dist/cjs/{ADInfeed-38066a36.js → ADInfeed-ede153e2.js} +2 -2
- package/dist/cjs/ADSkyscraper.js +18 -16
- package/dist/cjs/ADSponsoredResources.js +18 -16
- package/dist/cjs/ADWebcast.js +18 -16
- package/dist/cjs/ADWelcome.js +18 -16
- package/dist/cjs/{ADlgInfeed-d95c9027.js → ADlgInfeed-6a121a0d.js} +2 -2
- package/dist/cjs/AccordionPanel.js +6 -6
- package/dist/cjs/AdSlot.js +19 -17
- package/dist/cjs/AdSlotsProvider.js +4 -2
- package/dist/cjs/AlphabeticList.js +9 -9
- package/dist/cjs/ArticleCarousel.js +16 -13
- package/dist/cjs/ArticleSeriesListing.js +27 -24
- package/dist/cjs/Auth.js +768 -486
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-d19285ed.js} +1 -1
- package/dist/cjs/Beam.js +19 -19
- package/dist/cjs/{BlockContent-80b15fac.js → BlockContent-e53217a7.js} +23 -25
- package/dist/cjs/Breadcrumbs.js +5 -5
- package/dist/cjs/BrowseVideosListing.js +17 -14
- package/dist/cjs/CMEDeck.js +26 -23
- package/dist/cjs/Column2.js +15 -13
- package/dist/cjs/Column3.js +24 -22
- package/dist/cjs/ConferenceArticleCard.js +2 -2
- package/dist/cjs/DeckContent.js +33 -30
- package/dist/cjs/DeckQueue.js +32 -29
- package/dist/cjs/{Dfp-390337bf.js → Dfp-13ff07b4.js} +13 -10
- package/dist/cjs/EventsDeck.js +35 -34
- package/dist/cjs/ExternalResources.js +35 -32
- package/dist/cjs/Feature.js +4 -3
- package/dist/cjs/ForbesHero.js +12 -9
- package/dist/cjs/GridContent.js +45 -42
- package/dist/cjs/GridHero.js +12 -9
- package/dist/cjs/GroupDeck.js +13 -13
- package/dist/cjs/HamMagazine.js +19 -17
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HighlightenVideo.js +1 -1
- package/dist/cjs/HorizontalHero.js +3 -3
- package/dist/cjs/IssueContentDeck.js +12 -9
- package/dist/cjs/IssueDeck.js +15 -12
- package/dist/cjs/IssueLanding.js +29 -26
- package/dist/cjs/LeftNav.js +18 -16
- package/dist/cjs/MasterDeck.js +37 -34
- package/dist/cjs/NavDvm.js +9 -9
- package/dist/cjs/NavMagazine.js +19 -17
- package/dist/cjs/NavNative.js +16 -14
- package/dist/cjs/NavNormal.js +10 -10
- package/dist/cjs/OncliveHero.js +2 -3
- package/dist/cjs/OncliveLargeHero.js +12 -9
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/PartnerDetailListing.js +45 -1239
- package/dist/cjs/PdfDownload.js +1 -1
- package/dist/cjs/PopUpModal.js +5 -5
- package/dist/cjs/PublicationDeck.js +8 -5
- package/dist/cjs/PublicationLanding.js +60 -57
- package/dist/cjs/QueueDeckExpanded.js +36 -33
- package/dist/cjs/RecentNews.js +3 -3
- package/dist/cjs/RelatedContent.js +6 -3
- package/dist/cjs/Search.js +5 -5
- package/dist/cjs/Segment.js +20 -20
- package/dist/cjs/SetCookie.js +2 -2
- package/dist/cjs/SideFooter.js +16 -14
- package/dist/cjs/{SocialSearchComponent-56d49a1a.js → SocialSearchComponent-1ef1e6fb.js} +7 -7
- package/dist/cjs/TaxonomyCard.js +10 -7
- package/dist/cjs/TemplateNormal.js +33 -31
- package/dist/cjs/ThumbnailCard.js +5 -2
- package/dist/cjs/Ustream.js +10 -9
- package/dist/cjs/VerticalHero.js +2 -2
- package/dist/cjs/VideoSeriesCard.js +13 -10
- package/dist/cjs/VideoSeriesFilter.js +11 -11
- package/dist/cjs/VideoSeriesListing.js +27 -24
- package/dist/cjs/View.js +51 -48
- package/dist/cjs/YahooHero.js +12 -9
- package/dist/cjs/YoutubeGroup.js +17 -14
- package/dist/cjs/{_to-object-329a650b.js → _export-a917dedd.js} +31 -31
- package/dist/cjs/{_is-array-754e012d.js → _is-array-a82382b4.js} +11 -11
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-671c90bd.js} +10 -10
- package/dist/cjs/{_library-dd23b178.js → _library-4360b4e4.js} +1 -1
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-6bed508e.js} +2 -2
- package/dist/cjs/_object-sap-947ef6fb.js +16 -0
- package/dist/cjs/_prop-types_commonjs-external-1a8c9893.js +10 -0
- package/dist/cjs/_react-dom_commonjs-external-3c49a59a.js +9 -0
- package/dist/cjs/_react_commonjs-external-58b78ee1.js +10 -0
- package/dist/cjs/{_set-species-f92c67c5.js → _set-species-47156c42.js} +17 -17
- package/dist/cjs/{asyncToGenerator-533d476a.js → asyncToGenerator-fd8e35e7.js} +69 -69
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-05029198.js} +4 -3
- package/dist/cjs/core.get-iterator-method-07b02ac3.js +39 -0
- package/dist/cjs/{debounce-eb287781.js → debounce-fb3a46a9.js} +7 -7
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-9b6df20e.js} +4 -4
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-d3c0cfc0.js} +2 -2
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-e5f4ce45.js} +34 -34
- package/dist/cjs/{extends-60837c34.js → extends-5fde0677.js} +11 -11
- package/dist/cjs/{get-68c52cb1.js → get-70ef997d.js} +11 -11
- package/dist/cjs/getRelatedArticle.js +426 -15
- package/dist/cjs/getSerializers.js +33 -30
- package/dist/cjs/{getTargeting-fee8c429.js → getTargeting-5ca9bfaf.js} +2 -2
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/{index-da796b8c.js → index-29e3f3a9.js} +11 -12
- package/dist/cjs/{index-3294d3bc.js → index-949261b4.js} +18 -19
- package/dist/cjs/{index-58dae365.js → index-b1ee7cd9.js} +335 -329
- package/dist/cjs/index-bd6c9f56.js +211 -0
- package/dist/cjs/{index-099d45ae.js → index-d7577df6.js} +12 -16
- package/dist/cjs/{index-39beccb3.js → index-ff69979f.js} +26 -21
- package/dist/cjs/{index.es-9110add6.js → index.es-e9d84959.js} +23 -5
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
- package/dist/cjs/{index.esm-4d410430.js → index.esm-8a8fa078.js} +3 -4
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +61 -57
- package/dist/cjs/{inherits-513d81cd.js → inherits-02a27fbf.js} +16 -16
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-a0d5eb50.js} +5 -5
- package/dist/cjs/{js.cookie-a511c430.js → js.cookie-e4684873.js} +1 -1
- package/dist/cjs/{keys-a586b7a0.js → keys-1a65eb47.js} +5 -5
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-257df6c4.js} +1 -1
- package/dist/cjs/{main-03ffa84c.js → main-1442052b.js} +90 -57
- package/dist/cjs/{moment-575fe24c.js → moment-29403f08.js} +11 -8
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-5604d0d1.js} +11 -13
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-d0ac47b9.js} +10 -10
- package/dist/cjs/{smoothscroll-95231a70.js → smoothscroll-03c20c7d.js} +1 -1
- package/dist/cjs/{stringify-7c5aff47.js → stringify-e064b7d0.js} +2 -2
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-d47f0c64.js} +13 -13
- package/dist/cjs/{typeof-725500bc.js → typeof-5763a25b.js} +84 -84
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-ede0bc7b.js} +5 -6
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-cd8a9ccb.js} +10 -10
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +21 -19
- package/dist/esm/AD300x250x600.js +21 -19
- package/dist/esm/AD728x90.js +22 -20
- package/dist/esm/ADFloatingFooter.js +20 -18
- package/dist/esm/ADFooter.js +5 -5
- package/dist/esm/ADGutter.js +20 -18
- package/dist/esm/{ADInfeed-7b1b2fcb.js → ADInfeed-d890d5ca.js} +4 -4
- package/dist/esm/ADSkyscraper.js +20 -18
- package/dist/esm/ADSponsoredResources.js +20 -18
- package/dist/esm/ADWebcast.js +20 -18
- package/dist/esm/ADWelcome.js +20 -18
- package/dist/esm/{ADlgInfeed-2afe92e6.js → ADlgInfeed-1d006b36.js} +4 -4
- package/dist/esm/AccordionPanel.js +6 -6
- package/dist/esm/AdSlot.js +19 -17
- package/dist/esm/AdSlotsProvider.js +4 -2
- package/dist/esm/AlphabeticList.js +9 -9
- package/dist/esm/ArticleCarousel.js +16 -13
- package/dist/esm/ArticleSeriesListing.js +27 -24
- package/dist/esm/Auth.js +763 -481
- package/dist/esm/{AuthorComponent-00f13201.js → AuthorComponent-8ffb1deb.js} +1 -1
- package/dist/esm/Beam.js +19 -19
- package/dist/esm/{BlockContent-c409aca5.js → BlockContent-e6f64e62.js} +23 -21
- package/dist/esm/Breadcrumbs.js +5 -5
- package/dist/esm/BrowseVideosListing.js +17 -14
- package/dist/esm/CMEDeck.js +26 -23
- package/dist/esm/Column2.js +15 -13
- package/dist/esm/Column3.js +24 -22
- package/dist/esm/ConferenceArticleCard.js +2 -2
- package/dist/esm/DeckContent.js +33 -30
- package/dist/esm/DeckQueue.js +32 -29
- package/dist/esm/{Dfp-741c01be.js → Dfp-7db56716.js} +13 -10
- package/dist/esm/EventsDeck.js +35 -34
- package/dist/esm/ExternalResources.js +35 -32
- package/dist/esm/Feature.js +4 -3
- package/dist/esm/ForbesHero.js +12 -9
- package/dist/esm/GridContent.js +45 -42
- package/dist/esm/GridHero.js +12 -9
- package/dist/esm/GroupDeck.js +13 -13
- package/dist/esm/HamMagazine.js +19 -17
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HighlightenVideo.js +1 -1
- package/dist/esm/HorizontalHero.js +3 -3
- package/dist/esm/IssueContentDeck.js +12 -9
- package/dist/esm/IssueDeck.js +15 -12
- package/dist/esm/IssueLanding.js +29 -26
- package/dist/esm/LeftNav.js +18 -16
- package/dist/esm/MasterDeck.js +37 -34
- package/dist/esm/NavDvm.js +9 -9
- package/dist/esm/NavMagazine.js +19 -17
- package/dist/esm/NavNative.js +16 -14
- package/dist/esm/NavNormal.js +10 -10
- package/dist/esm/OncliveHero.js +2 -3
- package/dist/esm/OncliveLargeHero.js +12 -9
- package/dist/esm/PageFilter.js +5 -5
- package/dist/esm/PartnerDetailListing.js +45 -1238
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +5 -5
- package/dist/esm/PublicationDeck.js +8 -5
- package/dist/esm/PublicationLanding.js +60 -57
- package/dist/esm/QueueDeckExpanded.js +36 -33
- package/dist/esm/RecentNews.js +3 -3
- package/dist/esm/RelatedContent.js +6 -3
- package/dist/esm/Search.js +5 -5
- package/dist/esm/Segment.js +20 -20
- package/dist/esm/SetCookie.js +2 -2
- package/dist/esm/SideFooter.js +16 -14
- package/dist/esm/{SocialSearchComponent-677ed3bd.js → SocialSearchComponent-4eae0149.js} +7 -7
- package/dist/esm/TaxonomyCard.js +10 -7
- package/dist/esm/TemplateNormal.js +35 -33
- package/dist/esm/ThumbnailCard.js +5 -2
- package/dist/esm/Ustream.js +10 -9
- package/dist/esm/VerticalHero.js +2 -2
- package/dist/esm/VideoSeriesCard.js +13 -10
- package/dist/esm/VideoSeriesFilter.js +11 -11
- package/dist/esm/VideoSeriesListing.js +27 -24
- package/dist/esm/View.js +56 -53
- package/dist/esm/YahooHero.js +12 -9
- package/dist/esm/YoutubeGroup.js +17 -14
- package/dist/esm/{_to-object-ded78eb9.js → _export-f7ec2adf.js} +3 -3
- package/dist/esm/{_is-array-49698029.js → _is-array-5bea6006.js} +10 -10
- package/dist/esm/{_iter-detect-59409a32.js → _iter-detect-65720de7.js} +8 -8
- package/dist/esm/_library-90219a8d.js +3 -0
- package/dist/esm/{_object-pie-71ac75a4.js → _object-pie-8e2f6c3a.js} +1 -1
- package/dist/esm/_object-sap-146241c9.js +14 -0
- package/dist/esm/_prop-types_commonjs-external-9481d338.js +5 -0
- package/dist/esm/_react-dom_commonjs-external-f1a1ac81.js +5 -0
- package/dist/esm/_react_commonjs-external-22b61490.js +5 -0
- package/dist/esm/{_set-species-cede29f8.js → _set-species-26ee5c2a.js} +14 -14
- package/dist/esm/{asyncToGenerator-7c654f36.js → asyncToGenerator-0c61f551.js} +69 -69
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-e761d404.js} +4 -3
- package/dist/esm/core.get-iterator-method-dbbb346b.js +36 -0
- package/dist/esm/{debounce-1a993acf.js → debounce-7b569c00.js} +6 -6
- package/dist/esm/{define-property-de3fc946.js → define-property-7a40a451.js} +4 -4
- package/dist/esm/{defineProperty-b798470d.js → defineProperty-a2ac5d3d.js} +2 -2
- package/dist/esm/{es6.string.iterator-9b2af4a5.js → es6.string.iterator-13b94db0.js} +27 -27
- package/dist/esm/{extends-cc5da797.js → extends-8e0228d5.js} +11 -11
- package/dist/esm/{get-5ee14cda.js → get-bb2155d5.js} +10 -10
- package/dist/esm/getRelatedArticle.js +426 -15
- package/dist/esm/getSerializers.js +33 -30
- package/dist/esm/{getTargeting-2acdec91.js → getTargeting-d97a1e83.js} +2 -2
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-ef6d5dcf.js → index-1295881c.js} +16 -17
- package/dist/esm/{index-3f4dd6f2.js → index-17490425.js} +12 -12
- package/dist/esm/{index-7779a6df.js → index-4540328d.js} +338 -332
- package/dist/esm/{index-5f9f807a.js → index-a4e850af.js} +11 -8
- package/dist/esm/index-db3bb315.js +207 -0
- package/dist/esm/{index-3849e3fe.js → index-f7fdcc91.js} +26 -21
- package/dist/esm/{index.es-29c1cef5.js → index.es-a6137319.js} +23 -5
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-fd746768.js → index.esm-4838a32e.js} +3 -4
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
- package/dist/esm/index.js +60 -56
- package/dist/esm/{inherits-7ee3e0c1.js → inherits-d1948b66.js} +16 -16
- package/dist/esm/{isSymbol-807e927e.js → isSymbol-2b7f6e65.js} +1 -1
- package/dist/esm/{js.cookie-6874175c.js → js.cookie-2ce24ab0.js} +1 -1
- package/dist/esm/{keys-fc2d4c34.js → keys-e091cb65.js} +5 -5
- package/dist/esm/{lodash-ec8c6b48.js → lodash-2b866578.js} +1 -1
- package/dist/esm/{main-35ff7b4f.js → main-140f99b4.js} +88 -52
- package/dist/esm/{moment-e2f9b20c.js → moment-8797a4d3.js} +11 -9
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-40e8d28f.js} +11 -9
- package/dist/esm/{slicedToArray-7021e5df.js → slicedToArray-8818fe95.js} +10 -10
- package/dist/esm/{stringify-008c8802.js → stringify-dedf4a20.js} +2 -2
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-725434a0.js → toConsumableArray-02217419.js} +13 -13
- package/dist/esm/{typeof-08f2c380.js → typeof-a10a5616.js} +85 -85
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-7b6316cf.js} +5 -3
- package/dist/esm/{web.dom.iterable-8956f9a5.js → web.dom.iterable-c3ba4d37.js} +10 -10
- package/package.json +3 -3
- package/dist/cjs/_object-sap-5e74ba08.js +0 -16
- package/dist/cjs/core.get-iterator-method-f62321d4.js +0 -39
- package/dist/esm/_library-528f1934.js +0 -3
- package/dist/esm/_object-sap-4d59d5bd.js +0 -14
- package/dist/esm/core.get-iterator-method-54d2e411.js +0 -36
- /package/dist/esm/{smoothscroll-4b699764.js → smoothscroll-2d74941c.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { f as fails, d as toObject, I as IObject, $ as $keys, D as DESCRIPTORS, a as $export, r as require$$7 } from './_export-f7ec2adf.js';
|
|
3
|
+
import { $ as $GOPS, r as require$$0 } from './_object-pie-8e2f6c3a.js';
|
|
4
4
|
|
|
5
5
|
// 19.1.2.1 Object.assign(target, source, ...)
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ import { a as _objectGops, _ as _objectPie } from './_object-pie-71ac75a4.js';
|
|
|
12
12
|
var $assign = Object.assign;
|
|
13
13
|
|
|
14
14
|
// should work with symbols and should have deterministic property order (V8 bug)
|
|
15
|
-
var _objectAssign = !$assign ||
|
|
15
|
+
var _objectAssign = !$assign || fails(function () {
|
|
16
16
|
var A = {};
|
|
17
17
|
var B = {};
|
|
18
18
|
// eslint-disable-next-line no-undef
|
|
@@ -22,20 +22,20 @@ var _objectAssign = !$assign || _fails(function () {
|
|
|
22
22
|
K.split('').forEach(function (k) { B[k] = k; });
|
|
23
23
|
return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
|
|
24
24
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
|
|
25
|
-
var T =
|
|
25
|
+
var T = toObject(target);
|
|
26
26
|
var aLen = arguments.length;
|
|
27
27
|
var index = 1;
|
|
28
|
-
var getSymbols =
|
|
29
|
-
var isEnum =
|
|
28
|
+
var getSymbols = $GOPS.f;
|
|
29
|
+
var isEnum = require$$0.f;
|
|
30
30
|
while (aLen > index) {
|
|
31
|
-
var S =
|
|
32
|
-
var keys = getSymbols ?
|
|
31
|
+
var S = IObject(arguments[index++]);
|
|
32
|
+
var keys = getSymbols ? $keys(S).concat(getSymbols(S)) : $keys(S);
|
|
33
33
|
var length = keys.length;
|
|
34
34
|
var j = 0;
|
|
35
35
|
var key;
|
|
36
36
|
while (length > j) {
|
|
37
37
|
key = keys[j++];
|
|
38
|
-
if (!
|
|
38
|
+
if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];
|
|
39
39
|
}
|
|
40
40
|
} return T;
|
|
41
41
|
} : $assign;
|
|
@@ -43,9 +43,9 @@ var _objectAssign = !$assign || _fails(function () {
|
|
|
43
43
|
// 19.1.3.1 Object.assign(target, source)
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
$export($export.S + $export.F, 'Object', { assign: _objectAssign });
|
|
47
47
|
|
|
48
|
-
var assign =
|
|
48
|
+
var assign = require$$7.Object.assign;
|
|
49
49
|
|
|
50
50
|
var assign$1 = createCommonjsModule(function (module) {
|
|
51
51
|
module.exports = { "default": assign, __esModule: true };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as
|
|
1
|
+
import { i as isSymbol, a as isObject, b as baseGetTag, r as root, S as Symbol } from './isSymbol-2b7f6e65.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Checks if `value` is classified as an `Array` object.
|
|
@@ -45,7 +45,7 @@ function isKey(value, object) {
|
|
|
45
45
|
}
|
|
46
46
|
var type = typeof value;
|
|
47
47
|
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
|
|
48
|
-
value == null ||
|
|
48
|
+
value == null || isSymbol(value)) {
|
|
49
49
|
return true;
|
|
50
50
|
}
|
|
51
51
|
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
|
|
@@ -78,19 +78,19 @@ var asyncTag = '[object AsyncFunction]',
|
|
|
78
78
|
* // => false
|
|
79
79
|
*/
|
|
80
80
|
function isFunction(value) {
|
|
81
|
-
if (!
|
|
81
|
+
if (!isObject(value)) {
|
|
82
82
|
return false;
|
|
83
83
|
}
|
|
84
84
|
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
85
85
|
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
86
|
-
var tag =
|
|
86
|
+
var tag = baseGetTag(value);
|
|
87
87
|
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
var isFunction_1 = isFunction;
|
|
91
91
|
|
|
92
92
|
/** Used to detect overreaching core-js shims. */
|
|
93
|
-
var coreJsData =
|
|
93
|
+
var coreJsData = root['__core-js_shared__'];
|
|
94
94
|
|
|
95
95
|
var _coreJsData = coreJsData;
|
|
96
96
|
|
|
@@ -174,7 +174,7 @@ var reIsNative = RegExp('^' +
|
|
|
174
174
|
* else `false`.
|
|
175
175
|
*/
|
|
176
176
|
function baseIsNative(value) {
|
|
177
|
-
if (!
|
|
177
|
+
if (!isObject(value) || _isMasked(value)) {
|
|
178
178
|
return false;
|
|
179
179
|
}
|
|
180
180
|
var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
|
|
@@ -541,7 +541,7 @@ ListCache.prototype.set = _listCacheSet;
|
|
|
541
541
|
var _ListCache = ListCache;
|
|
542
542
|
|
|
543
543
|
/* Built-in method references that are verified to be native. */
|
|
544
|
-
var Map = _getNative(
|
|
544
|
+
var Map = _getNative(root, 'Map');
|
|
545
545
|
|
|
546
546
|
var _Map = Map;
|
|
547
547
|
|
|
@@ -840,7 +840,7 @@ var _arrayMap = arrayMap;
|
|
|
840
840
|
var INFINITY = 1 / 0;
|
|
841
841
|
|
|
842
842
|
/** Used to convert symbols to primitives and strings. */
|
|
843
|
-
var symbolProto =
|
|
843
|
+
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
844
844
|
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
845
845
|
|
|
846
846
|
/**
|
|
@@ -860,7 +860,7 @@ function baseToString(value) {
|
|
|
860
860
|
// Recursively convert values (susceptible to call stack limits).
|
|
861
861
|
return _arrayMap(value, baseToString) + '';
|
|
862
862
|
}
|
|
863
|
-
if (
|
|
863
|
+
if (isSymbol(value)) {
|
|
864
864
|
return symbolToString ? symbolToString.call(value) : '';
|
|
865
865
|
}
|
|
866
866
|
var result = (value + '');
|
|
@@ -924,7 +924,7 @@ var INFINITY$1 = 1 / 0;
|
|
|
924
924
|
* @returns {string|symbol} Returns the key.
|
|
925
925
|
*/
|
|
926
926
|
function toKey(value) {
|
|
927
|
-
if (typeof value == 'string' ||
|
|
927
|
+
if (typeof value == 'string' || isSymbol(value)) {
|
|
928
928
|
return value;
|
|
929
929
|
}
|
|
930
930
|
var result = (value + '');
|
|
@@ -1,19 +1,430 @@
|
|
|
1
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
3
|
-
import './es6.string.iterator-
|
|
4
|
-
import './_library-
|
|
5
|
-
import './_iter-detect-
|
|
6
|
-
import './core.get-iterator-method-
|
|
7
|
-
import './web.dom.iterable-
|
|
8
|
-
import { a as _asyncToGenerator,
|
|
9
|
-
import './_set-species-
|
|
10
|
-
import {
|
|
1
|
+
import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import './_export-f7ec2adf.js';
|
|
3
|
+
import './es6.string.iterator-13b94db0.js';
|
|
4
|
+
import './_library-90219a8d.js';
|
|
5
|
+
import './_iter-detect-65720de7.js';
|
|
6
|
+
import './core.get-iterator-method-dbbb346b.js';
|
|
7
|
+
import './web.dom.iterable-c3ba4d37.js';
|
|
8
|
+
import { a as _asyncToGenerator, b as _regeneratorRuntime } from './asyncToGenerator-0c61f551.js';
|
|
9
|
+
import './_set-species-26ee5c2a.js';
|
|
10
|
+
import { c as cookie } from './index-db3bb315.js';
|
|
11
11
|
import getQuery from './getQuery.js';
|
|
12
12
|
|
|
13
|
+
var defaultParseOptions = {
|
|
14
|
+
decodeValues: true,
|
|
15
|
+
map: false,
|
|
16
|
+
silent: false,
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
function isNonEmptyString(str) {
|
|
20
|
+
return typeof str === "string" && !!str.trim();
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function parseString(setCookieValue, options) {
|
|
24
|
+
var parts = setCookieValue.split(";").filter(isNonEmptyString);
|
|
25
|
+
var nameValue = parts.shift().split("=");
|
|
26
|
+
var name = nameValue.shift();
|
|
27
|
+
var value = nameValue.join("="); // everything after the first =, joined by a "=" if there was more than one part
|
|
28
|
+
|
|
29
|
+
options = options
|
|
30
|
+
? Object.assign({}, defaultParseOptions, options)
|
|
31
|
+
: defaultParseOptions;
|
|
32
|
+
|
|
33
|
+
try {
|
|
34
|
+
value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value
|
|
35
|
+
} catch (e) {
|
|
36
|
+
console.error(
|
|
37
|
+
`set-cookie-parser encountered an error while decoding a cookie with value '${value}'. Set options.decodeValues to false to disable this feature.`,
|
|
38
|
+
e
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
var cookie = {
|
|
43
|
+
name: name, // grab everything before the first =
|
|
44
|
+
value: value,
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
parts.forEach(function (part) {
|
|
48
|
+
var sides = part.split("=");
|
|
49
|
+
var key = sides.shift().trimLeft().toLowerCase();
|
|
50
|
+
var value = sides.join("=");
|
|
51
|
+
if (key === "expires") {
|
|
52
|
+
cookie.expires = new Date(value);
|
|
53
|
+
} else if (key === "max-age") {
|
|
54
|
+
cookie.maxAge = parseInt(value, 10);
|
|
55
|
+
} else if (key === "secure") {
|
|
56
|
+
cookie.secure = true;
|
|
57
|
+
} else if (key === "httponly") {
|
|
58
|
+
cookie.httpOnly = true;
|
|
59
|
+
} else if (key === "samesite") {
|
|
60
|
+
cookie.sameSite = value;
|
|
61
|
+
} else {
|
|
62
|
+
cookie[key] = value;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
return cookie;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function parse(input, options) {
|
|
70
|
+
options = options
|
|
71
|
+
? Object.assign({}, defaultParseOptions, options)
|
|
72
|
+
: defaultParseOptions;
|
|
73
|
+
|
|
74
|
+
if (!input) {
|
|
75
|
+
if (!options.map) {
|
|
76
|
+
return [];
|
|
77
|
+
} else {
|
|
78
|
+
return {};
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (input.headers && input.headers["set-cookie"]) {
|
|
83
|
+
// fast-path for node.js (which automatically normalizes header names to lower-case
|
|
84
|
+
input = input.headers["set-cookie"];
|
|
85
|
+
} else if (input.headers) {
|
|
86
|
+
// slow-path for other environments - see #25
|
|
87
|
+
var sch =
|
|
88
|
+
input.headers[
|
|
89
|
+
Object.keys(input.headers).find(function (key) {
|
|
90
|
+
return key.toLowerCase() === "set-cookie";
|
|
91
|
+
})
|
|
92
|
+
];
|
|
93
|
+
// warn if called on a request-like object with a cookie header rather than a set-cookie header - see #34, 36
|
|
94
|
+
if (!sch && input.headers.cookie && !options.silent) {
|
|
95
|
+
console.warn(
|
|
96
|
+
"Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
input = sch;
|
|
100
|
+
}
|
|
101
|
+
if (!Array.isArray(input)) {
|
|
102
|
+
input = [input];
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
options = options
|
|
106
|
+
? Object.assign({}, defaultParseOptions, options)
|
|
107
|
+
: defaultParseOptions;
|
|
108
|
+
|
|
109
|
+
if (!options.map) {
|
|
110
|
+
return input.filter(isNonEmptyString).map(function (str) {
|
|
111
|
+
return parseString(str, options);
|
|
112
|
+
});
|
|
113
|
+
} else {
|
|
114
|
+
var cookies = {};
|
|
115
|
+
return input.filter(isNonEmptyString).reduce(function (cookies, str) {
|
|
116
|
+
var cookie = parseString(str, options);
|
|
117
|
+
cookies[cookie.name] = cookie;
|
|
118
|
+
return cookies;
|
|
119
|
+
}, cookies);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/*
|
|
124
|
+
Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas
|
|
125
|
+
that are within a single set-cookie field-value, such as in the Expires portion.
|
|
126
|
+
|
|
127
|
+
This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2
|
|
128
|
+
Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128
|
|
129
|
+
React Native's fetch does this for *every* header, including set-cookie.
|
|
130
|
+
|
|
131
|
+
Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25
|
|
132
|
+
Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation
|
|
133
|
+
*/
|
|
134
|
+
function splitCookiesString(cookiesString) {
|
|
135
|
+
if (Array.isArray(cookiesString)) {
|
|
136
|
+
return cookiesString;
|
|
137
|
+
}
|
|
138
|
+
if (typeof cookiesString !== "string") {
|
|
139
|
+
return [];
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
var cookiesStrings = [];
|
|
143
|
+
var pos = 0;
|
|
144
|
+
var start;
|
|
145
|
+
var ch;
|
|
146
|
+
var lastComma;
|
|
147
|
+
var nextStart;
|
|
148
|
+
var cookiesSeparatorFound;
|
|
149
|
+
|
|
150
|
+
function skipWhitespace() {
|
|
151
|
+
while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
|
|
152
|
+
pos += 1;
|
|
153
|
+
}
|
|
154
|
+
return pos < cookiesString.length;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function notSpecialChar() {
|
|
158
|
+
ch = cookiesString.charAt(pos);
|
|
159
|
+
|
|
160
|
+
return ch !== "=" && ch !== ";" && ch !== ",";
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
while (pos < cookiesString.length) {
|
|
164
|
+
start = pos;
|
|
165
|
+
cookiesSeparatorFound = false;
|
|
166
|
+
|
|
167
|
+
while (skipWhitespace()) {
|
|
168
|
+
ch = cookiesString.charAt(pos);
|
|
169
|
+
if (ch === ",") {
|
|
170
|
+
// ',' is a cookie separator if we have later first '=', not ';' or ','
|
|
171
|
+
lastComma = pos;
|
|
172
|
+
pos += 1;
|
|
173
|
+
|
|
174
|
+
skipWhitespace();
|
|
175
|
+
nextStart = pos;
|
|
176
|
+
|
|
177
|
+
while (pos < cookiesString.length && notSpecialChar()) {
|
|
178
|
+
pos += 1;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// currently special character
|
|
182
|
+
if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
|
|
183
|
+
// we found cookies separator
|
|
184
|
+
cookiesSeparatorFound = true;
|
|
185
|
+
// pos is inside the next cookie, so back up and return it.
|
|
186
|
+
pos = nextStart;
|
|
187
|
+
cookiesStrings.push(cookiesString.substring(start, lastComma));
|
|
188
|
+
start = pos;
|
|
189
|
+
} else {
|
|
190
|
+
// in param ',' or param separator ';',
|
|
191
|
+
// we continue from that comma
|
|
192
|
+
pos = lastComma + 1;
|
|
193
|
+
}
|
|
194
|
+
} else {
|
|
195
|
+
pos += 1;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
if (!cookiesSeparatorFound || pos >= cookiesString.length) {
|
|
200
|
+
cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
return cookiesStrings;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
var setCookie = parse;
|
|
208
|
+
var parse_1 = parse;
|
|
209
|
+
var parseString_1 = parseString;
|
|
210
|
+
var splitCookiesString_1 = splitCookiesString;
|
|
211
|
+
setCookie.parse = parse_1;
|
|
212
|
+
setCookie.parseString = parseString_1;
|
|
213
|
+
setCookie.splitCookiesString = splitCookiesString_1;
|
|
214
|
+
|
|
215
|
+
var utils = createCommonjsModule(function (module, exports) {
|
|
216
|
+
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
217
|
+
__assign = Object.assign || function(t) {
|
|
218
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
219
|
+
s = arguments[i];
|
|
220
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
221
|
+
t[p] = s[p];
|
|
222
|
+
}
|
|
223
|
+
return t;
|
|
224
|
+
};
|
|
225
|
+
return __assign.apply(this, arguments);
|
|
226
|
+
};
|
|
227
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
228
|
+
exports.areCookiesEqual = exports.hasSameProperties = exports.createCookie = exports.isBrowser = void 0;
|
|
229
|
+
/**
|
|
230
|
+
* Tells whether we are in a browser or server.
|
|
231
|
+
*/
|
|
232
|
+
function isBrowser() {
|
|
233
|
+
return typeof window !== 'undefined';
|
|
234
|
+
}
|
|
235
|
+
exports.isBrowser = isBrowser;
|
|
236
|
+
/**
|
|
237
|
+
* Create an instance of the Cookie interface
|
|
238
|
+
*/
|
|
239
|
+
function createCookie(name, value, options) {
|
|
240
|
+
var sameSite = options.sameSite;
|
|
241
|
+
if (sameSite === true) {
|
|
242
|
+
sameSite = 'strict';
|
|
243
|
+
}
|
|
244
|
+
if (sameSite === undefined || sameSite === false) {
|
|
245
|
+
sameSite = 'lax';
|
|
246
|
+
}
|
|
247
|
+
var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
|
|
248
|
+
delete cookieToSet.encode;
|
|
249
|
+
return __assign({ name: name, value: value }, cookieToSet);
|
|
250
|
+
}
|
|
251
|
+
exports.createCookie = createCookie;
|
|
252
|
+
/**
|
|
253
|
+
* Tells whether given objects have the same properties.
|
|
254
|
+
*/
|
|
255
|
+
function hasSameProperties(a, b) {
|
|
256
|
+
var aProps = Object.getOwnPropertyNames(a);
|
|
257
|
+
var bProps = Object.getOwnPropertyNames(b);
|
|
258
|
+
if (aProps.length !== bProps.length) {
|
|
259
|
+
return false;
|
|
260
|
+
}
|
|
261
|
+
for (var i = 0; i < aProps.length; i++) {
|
|
262
|
+
var propName = aProps[i];
|
|
263
|
+
if (a[propName] !== b[propName]) {
|
|
264
|
+
return false;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
return true;
|
|
268
|
+
}
|
|
269
|
+
exports.hasSameProperties = hasSameProperties;
|
|
270
|
+
/**
|
|
271
|
+
* Compare the cookie and return true if the cookies have equivalent
|
|
272
|
+
* options and the cookies would be overwritten in the browser storage.
|
|
273
|
+
*
|
|
274
|
+
* @param a first Cookie for comparison
|
|
275
|
+
* @param b second Cookie for comparison
|
|
276
|
+
*/
|
|
277
|
+
function areCookiesEqual(a, b) {
|
|
278
|
+
var sameSiteSame = a.sameSite === b.sameSite;
|
|
279
|
+
if (typeof a.sameSite === 'string' && typeof b.sameSite === 'string') {
|
|
280
|
+
sameSiteSame = a.sameSite.toLowerCase() === b.sameSite.toLowerCase();
|
|
281
|
+
}
|
|
282
|
+
return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
|
|
283
|
+
}
|
|
284
|
+
exports.areCookiesEqual = areCookiesEqual;
|
|
285
|
+
/* Functions */
|
|
286
|
+
|
|
287
|
+
});
|
|
288
|
+
|
|
289
|
+
unwrapExports(utils);
|
|
290
|
+
var utils_1 = utils.areCookiesEqual;
|
|
291
|
+
var utils_2 = utils.hasSameProperties;
|
|
292
|
+
var utils_3 = utils.createCookie;
|
|
293
|
+
var utils_4 = utils.isBrowser;
|
|
294
|
+
|
|
295
|
+
var dist = createCommonjsModule(function (module, exports) {
|
|
296
|
+
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
297
|
+
__assign = Object.assign || function(t) {
|
|
298
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
299
|
+
s = arguments[i];
|
|
300
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
301
|
+
t[p] = s[p];
|
|
302
|
+
}
|
|
303
|
+
return t;
|
|
304
|
+
};
|
|
305
|
+
return __assign.apply(this, arguments);
|
|
306
|
+
};
|
|
307
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
308
|
+
exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Parses cookies.
|
|
314
|
+
*
|
|
315
|
+
* @param ctx NextJS page or API context, express context, null or undefined.
|
|
316
|
+
* @param options Options that we pass down to `cookie` library.
|
|
317
|
+
*/
|
|
318
|
+
function parseCookies(ctx, options) {
|
|
319
|
+
var _a, _b;
|
|
320
|
+
if ((_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.req) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b.cookie) {
|
|
321
|
+
return cookie.parse(ctx.req.headers.cookie, options);
|
|
322
|
+
}
|
|
323
|
+
if (utils.isBrowser()) {
|
|
324
|
+
return cookie.parse(document.cookie, options);
|
|
325
|
+
}
|
|
326
|
+
return {};
|
|
327
|
+
}
|
|
328
|
+
exports.parseCookies = parseCookies;
|
|
329
|
+
/**
|
|
330
|
+
* Sets a cookie.
|
|
331
|
+
*
|
|
332
|
+
* @param ctx NextJS page or API context, express context, null or undefined.
|
|
333
|
+
* @param name The name of your cookie.
|
|
334
|
+
* @param value The value of your cookie.
|
|
335
|
+
* @param options Options that we pass down to `cookie` library.
|
|
336
|
+
*/
|
|
337
|
+
function setCookie$1(ctx, name, value, options) {
|
|
338
|
+
var _a, _b;
|
|
339
|
+
if (options === void 0) { options = {}; }
|
|
340
|
+
// SSR
|
|
341
|
+
if (((_a = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _a === void 0 ? void 0 : _a.getHeader) && ctx.res.setHeader) {
|
|
342
|
+
// Check if response has finished and warn about it.
|
|
343
|
+
if ((_b = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _b === void 0 ? void 0 : _b.finished) {
|
|
344
|
+
console.warn("Not setting \"" + name + "\" cookie. Response has finished.");
|
|
345
|
+
console.warn("You should set cookie before res.send()");
|
|
346
|
+
return {};
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Load existing cookies from the header and parse them.
|
|
350
|
+
*/
|
|
351
|
+
var cookies = ctx.res.getHeader('Set-Cookie') || [];
|
|
352
|
+
if (typeof cookies === 'string')
|
|
353
|
+
cookies = [cookies];
|
|
354
|
+
if (typeof cookies === 'number')
|
|
355
|
+
cookies = [];
|
|
356
|
+
/**
|
|
357
|
+
* Parse cookies but ignore values - we've already encoded
|
|
358
|
+
* them in the previous call.
|
|
359
|
+
*/
|
|
360
|
+
var parsedCookies = setCookie.parse(cookies, {
|
|
361
|
+
decodeValues: false,
|
|
362
|
+
});
|
|
363
|
+
/**
|
|
364
|
+
* We create the new cookie and make sure that none of
|
|
365
|
+
* the existing cookies match it.
|
|
366
|
+
*/
|
|
367
|
+
var newCookie_1 = utils.createCookie(name, value, options);
|
|
368
|
+
var cookiesToSet_1 = [];
|
|
369
|
+
parsedCookies.forEach(function (parsedCookie) {
|
|
370
|
+
if (!utils.areCookiesEqual(parsedCookie, newCookie_1)) {
|
|
371
|
+
/**
|
|
372
|
+
* We serialize the cookie back to the original format
|
|
373
|
+
* if it isn't the same as the new one.
|
|
374
|
+
*/
|
|
375
|
+
var serializedCookie = cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({
|
|
376
|
+
// we prevent reencoding by default, but you might override it
|
|
377
|
+
encode: function (val) { return val; } }, parsedCookie));
|
|
378
|
+
cookiesToSet_1.push(serializedCookie);
|
|
379
|
+
}
|
|
380
|
+
});
|
|
381
|
+
cookiesToSet_1.push(cookie.serialize(name, value, options));
|
|
382
|
+
// Update the header.
|
|
383
|
+
ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
|
|
384
|
+
}
|
|
385
|
+
// Browser
|
|
386
|
+
if (utils.isBrowser()) {
|
|
387
|
+
if (options && options.httpOnly) {
|
|
388
|
+
throw new Error('Can not set a httpOnly cookie in the browser.');
|
|
389
|
+
}
|
|
390
|
+
document.cookie = cookie.serialize(name, value, options);
|
|
391
|
+
}
|
|
392
|
+
return {};
|
|
393
|
+
}
|
|
394
|
+
exports.setCookie = setCookie$1;
|
|
395
|
+
/**
|
|
396
|
+
* Destroys a cookie with a particular name.
|
|
397
|
+
*
|
|
398
|
+
* @param ctx NextJS page or API context, express context, null or undefined.
|
|
399
|
+
* @param name Cookie name.
|
|
400
|
+
* @param options Options that we pass down to `cookie` library.
|
|
401
|
+
*/
|
|
402
|
+
function destroyCookie(ctx, name, options) {
|
|
403
|
+
/**
|
|
404
|
+
* We forward the request destroy to setCookie function
|
|
405
|
+
* as it is the same function with modified maxAge value.
|
|
406
|
+
*/
|
|
407
|
+
return setCookie$1(ctx, name, '', __assign(__assign({}, (options || {})), { maxAge: -1 }));
|
|
408
|
+
}
|
|
409
|
+
exports.destroyCookie = destroyCookie;
|
|
410
|
+
/* Utility Exports */
|
|
411
|
+
exports.default = {
|
|
412
|
+
set: setCookie$1,
|
|
413
|
+
get: parseCookies,
|
|
414
|
+
destroy: destroyCookie,
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
});
|
|
418
|
+
|
|
419
|
+
unwrapExports(dist);
|
|
420
|
+
var dist_1 = dist.destroyCookie;
|
|
421
|
+
var dist_2 = dist.setCookie;
|
|
422
|
+
var dist_3 = dist.parseCookies;
|
|
423
|
+
|
|
13
424
|
var _this = undefined;
|
|
14
425
|
|
|
15
426
|
var getRelatedArticle = function () {
|
|
16
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
427
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
17
428
|
var ctx = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
18
429
|
var client = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
19
430
|
var article = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
@@ -22,7 +433,7 @@ var getRelatedArticle = function () {
|
|
|
22
433
|
|
|
23
434
|
var _article$url, url, documentGroupMapping, issueGroup, content_placement, references, params, articles, filters, cookies, prevSlugs, query;
|
|
24
435
|
|
|
25
|
-
return
|
|
436
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
26
437
|
while (1) {
|
|
27
438
|
switch (_context.prev = _context.next) {
|
|
28
439
|
case 0:
|
|
@@ -86,13 +497,13 @@ var getRelatedArticle = function () {
|
|
|
86
497
|
|
|
87
498
|
|
|
88
499
|
if (ctx && url) {
|
|
89
|
-
cookies =
|
|
500
|
+
cookies = dist_3(ctx);
|
|
90
501
|
prevSlugs = cookies['prevSlugs'];
|
|
91
502
|
|
|
92
503
|
if (!!prevSlugs) {
|
|
93
|
-
|
|
504
|
+
dist_2(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
|
|
94
505
|
filters = '&& !(url.current in [' + prevSlugs + '])';
|
|
95
|
-
} else
|
|
506
|
+
} else dist_2(ctx, 'prevSlugs', '"' + url + '"', {});
|
|
96
507
|
}
|
|
97
508
|
|
|
98
509
|
query = getQuery('related', filters, '', articleCount).replace('&& taxonomyMapping[]._ref in $taxonomy', '');
|
|
@@ -1,49 +1,52 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
3
|
-
import './es6.string.iterator-
|
|
4
|
-
import './_library-
|
|
5
|
-
import './_iter-detect-
|
|
6
|
-
import './toConsumableArray-
|
|
7
|
-
import './core.get-iterator-method-
|
|
8
|
-
import './_object-pie-
|
|
9
|
-
import './extends-
|
|
10
|
-
import './_object-sap-
|
|
11
|
-
import './inherits-
|
|
12
|
-
import './define-property-
|
|
13
|
-
import './web.dom.iterable-
|
|
14
|
-
import './typeof-
|
|
15
|
-
import './_is-array-
|
|
2
|
+
import './_export-f7ec2adf.js';
|
|
3
|
+
import './es6.string.iterator-13b94db0.js';
|
|
4
|
+
import './_library-90219a8d.js';
|
|
5
|
+
import './_iter-detect-65720de7.js';
|
|
6
|
+
import './toConsumableArray-02217419.js';
|
|
7
|
+
import './core.get-iterator-method-dbbb346b.js';
|
|
8
|
+
import './_object-pie-8e2f6c3a.js';
|
|
9
|
+
import './extends-8e0228d5.js';
|
|
10
|
+
import './_object-sap-146241c9.js';
|
|
11
|
+
import './inherits-d1948b66.js';
|
|
12
|
+
import './define-property-7a40a451.js';
|
|
13
|
+
import './web.dom.iterable-c3ba4d37.js';
|
|
14
|
+
import './typeof-a10a5616.js';
|
|
15
|
+
import './_is-array-5bea6006.js';
|
|
16
16
|
import 'react';
|
|
17
|
-
import './index-
|
|
17
|
+
import './index-17490425.js';
|
|
18
18
|
import 'prop-types';
|
|
19
|
+
import './_react_commonjs-external-22b61490.js';
|
|
20
|
+
import './_prop-types_commonjs-external-9481d338.js';
|
|
19
21
|
import 'react-bootstrap/Row';
|
|
20
22
|
import 'react-bootstrap/Col';
|
|
21
|
-
import './moment-
|
|
23
|
+
import './moment-8797a4d3.js';
|
|
22
24
|
import 'next/router';
|
|
23
|
-
import './isSymbol-
|
|
24
|
-
import './debounce-
|
|
25
|
+
import './isSymbol-2b7f6e65.js';
|
|
26
|
+
import './debounce-7b569c00.js';
|
|
25
27
|
import 'react-dom';
|
|
26
|
-
import './
|
|
27
|
-
import './index-
|
|
28
|
-
import './
|
|
28
|
+
import './_react-dom_commonjs-external-f1a1ac81.js';
|
|
29
|
+
import './index-f7fdcc91.js';
|
|
30
|
+
import './index-a4e850af.js';
|
|
31
|
+
import './main-140f99b4.js';
|
|
29
32
|
import './entities-7cc3bf45.js';
|
|
30
|
-
import './stringify-
|
|
31
|
-
import './slicedToArray-
|
|
32
|
-
import './asyncToGenerator-
|
|
33
|
-
import './_set-species-
|
|
33
|
+
import './stringify-dedf4a20.js';
|
|
34
|
+
import './slicedToArray-8818fe95.js';
|
|
35
|
+
import './asyncToGenerator-0c61f551.js';
|
|
36
|
+
import './_set-species-26ee5c2a.js';
|
|
34
37
|
import './Segment.js';
|
|
35
38
|
import './Beam.js';
|
|
36
39
|
import './AdSlot.js';
|
|
37
|
-
import './BlockContent-
|
|
38
|
-
import './smoothscroll-
|
|
40
|
+
import './BlockContent-e6f64e62.js';
|
|
41
|
+
import './smoothscroll-2d74941c.js';
|
|
39
42
|
import './GroupDeck.js';
|
|
40
43
|
import 'react-bootstrap';
|
|
41
44
|
import './iconBase-602d52fe.js';
|
|
42
|
-
import './index.esm-
|
|
45
|
+
import './index.esm-3fdda599.js';
|
|
43
46
|
import 'react-bootstrap/Button';
|
|
44
|
-
export { g as default } from './index-
|
|
47
|
+
export { g as default } from './index-4540328d.js';
|
|
45
48
|
import './util-7700fc59.js';
|
|
46
|
-
import './brightcove-react-player-loader.es-
|
|
49
|
+
import './brightcove-react-player-loader.es-e761d404.js';
|
|
47
50
|
import 'react-bootstrap/Pagination';
|
|
48
51
|
import 'next/head';
|
|
49
52
|
import 'react-bootstrap/Figure';
|