@mjhls/mjh-framework 1.0.708 → 1.0.709-ad-refresh-v2
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/AD.js +9 -10
- package/dist/cjs/AD300x250.js +24 -25
- package/dist/cjs/AD300x250x600.js +24 -25
- package/dist/cjs/AD728x90.js +27 -28
- package/dist/cjs/ADFloatingFooter.js +26 -27
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +26 -27
- package/dist/cjs/{ADInfeed-54ab0509.js → ADInfeed-766b8949.js} +11 -13
- package/dist/cjs/ADSkyscraper.js +26 -27
- package/dist/cjs/ADSponsoredResources.js +26 -27
- package/dist/cjs/ADWebcast.js +26 -27
- package/dist/cjs/ADWelcome.js +30 -31
- package/dist/cjs/{ADlgInfeed-a1255904.js → ADlgInfeed-59dae10c.js} +8 -9
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +31 -32
- package/dist/cjs/AdSlotsProvider.js +17 -11
- package/dist/cjs/AlphabeticList.js +24 -25
- package/dist/cjs/ArticleCarousel.js +22 -22
- package/dist/cjs/ArticleSeriesListing.js +59 -59
- package/dist/cjs/Auth.js +530 -816
- package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +9 -9
- package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-80b15fac.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/BrowseVideosListing.js +40 -40
- package/dist/cjs/CMEDeck.js +78 -78
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +32 -35
- package/dist/cjs/Column3.js +55 -58
- package/dist/cjs/ConferenceArticleCard.js +22 -23
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +94 -98
- package/dist/cjs/DeckQueue.js +86 -90
- package/dist/cjs/{Dfp-a863cf48.js → Dfp-390337bf.js} +30 -31
- package/dist/cjs/EventsDeck.js +129 -136
- package/dist/cjs/ExternalResources.js +74 -75
- package/dist/cjs/Feature.js +25 -27
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +177 -181
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +49 -50
- package/dist/cjs/HamMagazine.js +130 -135
- package/dist/cjs/Header.js +11 -13
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalHero.js +25 -26
- package/dist/cjs/IssueContentDeck.js +72 -77
- package/dist/cjs/IssueDeck.js +70 -75
- package/dist/cjs/IssueLanding.js +40 -41
- package/dist/cjs/LeftNav.js +36 -38
- package/dist/cjs/MasterDeck.js +71 -72
- package/dist/cjs/NavDvm.js +75 -80
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +138 -143
- package/dist/cjs/NavNative.js +115 -123
- package/dist/cjs/NavNormal.js +48 -53
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +66 -67
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +1302 -106
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +74 -78
- package/dist/cjs/QueueDeckExpanded.js +292 -292
- package/dist/cjs/RecentNews.js +23 -24
- package/dist/cjs/RelatedContent.js +24 -25
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +7 -7
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +35 -36
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-294bd0ea.js → SocialSearchComponent-8dd468fd.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +57 -62
- package/dist/cjs/TaxonomyDescription.js +50 -51
- package/dist/cjs/TemplateNormal.js +72 -73
- package/dist/cjs/ThumbnailCard.js +20 -22
- package/dist/cjs/Ustream.js +26 -27
- package/dist/cjs/VerticalHero.js +17 -18
- package/dist/cjs/VideoSeriesCard.js +32 -33
- package/dist/cjs/VideoSeriesFilter.js +19 -19
- package/dist/cjs/VideoSeriesListing.js +73 -73
- package/dist/cjs/View.js +220 -223
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +140 -148
- package/dist/cjs/{_is-array-63ae4740.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-2613ffa1.js → _iter-detect-60b2f026.js} +2 -2
- package/dist/cjs/{_object-sap-c5bd707d.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_set-species-a8cfdb84.js → _set-species-f92c67c5.js} +4 -4
- package/dist/cjs/{_to-object-821a2927.js → _to-object-329a650b.js} +4 -4
- package/dist/cjs/{asyncToGenerator-2edcb6ad.js → asyncToGenerator-533d476a.js} +8 -8
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-b4615fd3.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{define-property-aff11f8a.js → define-property-f4d12f4e.js} +1 -1
- package/dist/cjs/{defineProperty-d6fbb280.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{es6.string.iterator-20d42c53.js → es6.string.iterator-cc0bbaa4.js} +2 -2
- package/dist/cjs/{extends-1e24fc8d.js → extends-60837c34.js} +1 -1
- package/dist/cjs/getRelatedArticle.js +13 -424
- package/dist/cjs/getSerializers.js +41 -41
- package/dist/cjs/{getTargeting-497b581d.js → getTargeting-fee8c429.js} +2 -2
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-5ad2b070.js → index-099d45ae.js} +17 -16
- package/dist/cjs/{index-4d74ffd6.js → index-3294d3bc.js} +41 -40
- package/dist/cjs/{index-d48b231c.js → index-39beccb3.js} +24 -29
- package/dist/cjs/{index-80f57cff.js → index-da796b8c.js} +15 -17
- package/dist/cjs/{index-4d37a34d.js → index-fb139660.js} +429 -440
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +127 -128
- package/dist/cjs/{inherits-2eb23889.js → inherits-513d81cd.js} +8 -8
- package/dist/cjs/{keys-95c064c9.js → keys-a586b7a0.js} +2 -2
- package/dist/cjs/{lodash-4ef21f0f.js → lodash-7fd85bcf.js} +1 -1
- package/dist/cjs/{main-eeffe77b.js → main-02daeefe.js} +80 -115
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-db24842a.js → slicedToArray-8f385299.js} +4 -4
- package/dist/cjs/{smoothscroll-1abb448e.js → smoothscroll-95231a70.js} +1 -1
- package/dist/cjs/{stringify-01cf47f7.js → stringify-7c5aff47.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-cf0865fc.js → toConsumableArray-9a3476fe.js} +4 -4
- package/dist/cjs/{typeof-97065d40.js → typeof-725500bc.js} +7 -7
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
- package/dist/cjs/{web.dom.iterable-4480325a.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +21 -21
- package/dist/esm/AD300x250x600.js +21 -21
- package/dist/esm/AD728x90.js +24 -24
- package/dist/esm/ADFloatingFooter.js +23 -23
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +23 -23
- package/dist/esm/{ADInfeed-18cb6a8b.js → ADInfeed-07b705de.js} +7 -7
- package/dist/esm/ADSkyscraper.js +23 -23
- package/dist/esm/ADSponsoredResources.js +23 -23
- package/dist/esm/ADWebcast.js +23 -23
- package/dist/esm/ADWelcome.js +27 -27
- package/dist/esm/{ADlgInfeed-51d02f5d.js → ADlgInfeed-a02c8625.js} +6 -6
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +23 -23
- package/dist/esm/AdSlotsProvider.js +14 -7
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +19 -18
- package/dist/esm/ArticleSeriesListing.js +54 -53
- package/dist/esm/Auth.js +515 -797
- package/dist/esm/{AuthorComponent-c29a0075.js → AuthorComponent-00f13201.js} +11 -11
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-c409aca5.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/BrowseVideosListing.js +37 -36
- package/dist/esm/CMEDeck.js +74 -74
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +26 -26
- package/dist/esm/Column3.js +48 -48
- package/dist/esm/ConferenceArticleCard.js +18 -18
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +76 -76
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-db06d7dc.js → Dfp-741c01be.js} +20 -20
- package/dist/esm/EventsDeck.js +82 -82
- package/dist/esm/ExternalResources.js +68 -68
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +139 -139
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +45 -45
- package/dist/esm/HamMagazine.js +104 -104
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +37 -37
- package/dist/esm/LeftNav.js +32 -32
- package/dist/esm/MasterDeck.js +65 -65
- package/dist/esm/NavDvm.js +57 -57
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +114 -114
- package/dist/esm/NavNative.js +91 -91
- package/dist/esm/NavNormal.js +36 -36
- package/dist/esm/OncliveHero.js +17 -16
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +1299 -103
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +50 -50
- package/dist/esm/QueueDeckExpanded.js +272 -272
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +19 -19
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +7 -7
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +31 -31
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-c4a19bac.js → SocialSearchComponent-8ac29f4f.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- package/dist/esm/TaxonomyDescription.js +45 -45
- package/dist/esm/TemplateNormal.js +66 -66
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoSeriesCard.js +24 -24
- package/dist/esm/VideoSeriesFilter.js +16 -16
- package/dist/esm/VideoSeriesListing.js +67 -66
- package/dist/esm/View.js +211 -210
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +128 -135
- package/dist/esm/{_is-array-9383b394.js → _is-array-49698029.js} +6 -6
- package/dist/esm/{_iter-detect-d4d262ee.js → _iter-detect-59409a32.js} +2 -2
- package/dist/esm/{_object-sap-6a003379.js → _object-sap-4d59d5bd.js} +1 -1
- package/dist/esm/{_set-species-0b056cff.js → _set-species-cede29f8.js} +4 -4
- package/dist/esm/{_to-object-9bef3b62.js → _to-object-ded78eb9.js} +5 -5
- package/dist/esm/{asyncToGenerator-acd1cc47.js → asyncToGenerator-7c654f36.js} +8 -8
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{core.get-iterator-method-1b116089.js → core.get-iterator-method-54d2e411.js} +2 -2
- package/dist/esm/{define-property-9a008401.js → define-property-de3fc946.js} +1 -1
- package/dist/esm/{defineProperty-ddd52c29.js → defineProperty-b798470d.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{es6.string.iterator-b24a54f2.js → es6.string.iterator-9b2af4a5.js} +3 -3
- package/dist/esm/{extends-c2b1c9d7.js → extends-cc5da797.js} +1 -1
- package/dist/esm/getRelatedArticle.js +13 -424
- package/dist/esm/getSerializers.js +41 -41
- package/dist/esm/{getTargeting-b1a7be54.js → getTargeting-2acdec91.js} +2 -2
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-b2d06f45.js → index-0bb373e2.js} +380 -384
- package/dist/esm/{index-3f5c03b2.js → index-3849e3fe.js} +24 -29
- package/dist/esm/{index-669ff425.js → index-3f4dd6f2.js} +12 -10
- package/dist/esm/{index-752d1dae.js → index-5f9f807a.js} +10 -10
- package/dist/esm/{index-ccb770c7.js → index-ef6d5dcf.js} +41 -40
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +105 -106
- package/dist/esm/{inherits-18d4a779.js → inherits-7ee3e0c1.js} +5 -5
- package/dist/esm/{keys-9bb7939c.js → keys-fc2d4c34.js} +2 -2
- package/dist/esm/{lodash-ad27652f.js → lodash-ec8c6b48.js} +1 -1
- package/dist/esm/{main-ad1ecb54.js → main-e4a934b2.js} +78 -113
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- package/dist/esm/{slicedToArray-34468155.js → slicedToArray-7021e5df.js} +4 -4
- package/dist/esm/{smoothscroll-ab6e0238.js → smoothscroll-4b699764.js} +1 -1
- package/dist/esm/{stringify-8a4f19f7.js → stringify-008c8802.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-5212fee7.js → toConsumableArray-725434a0.js} +4 -4
- package/dist/esm/{typeof-64422756.js → typeof-08f2c380.js} +7 -7
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
- package/dist/esm/{web.dom.iterable-ca37144a.js → web.dom.iterable-8956f9a5.js} +3 -3
- package/package.json +3 -3
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/esm/index-db3bb315.js +0 -207
|
@@ -23,10 +23,10 @@ if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
|
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
var _core = createCommonjsModule(function (module) {
|
|
26
|
-
var core = module.exports = { version: '2.6.
|
|
26
|
+
var core = module.exports = { version: '2.6.11' };
|
|
27
27
|
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
|
|
28
28
|
});
|
|
29
|
-
_core.version;
|
|
29
|
+
var _core_1 = _core.version;
|
|
30
30
|
|
|
31
31
|
var _aFunction = function (it) {
|
|
32
32
|
if (typeof it != 'function') throw TypeError(it + ' is not a function!');
|
|
@@ -263,8 +263,8 @@ var store = _global[SHARED] || (_global[SHARED] = {});
|
|
|
263
263
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
264
264
|
})('versions', []).push({
|
|
265
265
|
version: _core.version,
|
|
266
|
-
mode:
|
|
267
|
-
copyright: '©
|
|
266
|
+
mode: 'pure' ,
|
|
267
|
+
copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
|
|
268
268
|
});
|
|
269
269
|
});
|
|
270
270
|
|
|
@@ -315,4 +315,4 @@ var _toObject = function (it) {
|
|
|
315
315
|
return Object(_defined(it));
|
|
316
316
|
};
|
|
317
317
|
|
|
318
|
-
export { _toInteger as A, _sharedKey as B, _toIobject as _, _objectKeys as a, _descriptors as b, _export as c, _core as d, _isObject as e, _ctx as f, _objectDp as g, _toObject as h, _iobject as i, _toLength as j, _global as k, _fails as l, _hide as m, _aFunction as n,
|
|
318
|
+
export { _toInteger as A, _sharedKey as B, _toIobject as _, _objectKeys as a, _descriptors as b, _export as c, _core as d, _isObject as e, _ctx as f, _objectDp as g, _toObject as h, _iobject as i, _toLength as j, _global as k, _fails as l, _hide as m, _aFunction as n, _anObject as o, _propertyDesc as p, _objectKeysInternal as q, _enumBugKeys as r, _toPrimitive as s, _ie8DomDefine as t, _has as u, _shared as v, _uid as w, _cof as x, _domCreate as y, _defined as z };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import {
|
|
3
|
-
import './
|
|
2
|
+
import { o as _anObject, n as _aFunction, k as _global, x as _cof, f as _ctx, y as _domCreate, e as _isObject, c as _export, d as _core } from './_to-object-ded78eb9.js';
|
|
3
|
+
import { b as _wks, g as _html, c as _setToStringTag } from './es6.string.iterator-9b2af4a5.js';
|
|
4
4
|
import { _ as _library } from './_library-528f1934.js';
|
|
5
|
-
import {
|
|
6
|
-
import { _ as _classof } from './core.get-iterator-method-
|
|
7
|
-
import
|
|
8
|
-
import { _ as
|
|
5
|
+
import { _ as _iterDetect } from './_iter-detect-59409a32.js';
|
|
6
|
+
import { _ as _classof } from './core.get-iterator-method-54d2e411.js';
|
|
7
|
+
import './web.dom.iterable-8956f9a5.js';
|
|
8
|
+
import { _ as _anInstance, b as _redefineAll, c as _setSpecies, a as _forOf } from './_set-species-cede29f8.js';
|
|
9
9
|
|
|
10
10
|
var runtime = createCommonjsModule(function (module) {
|
|
11
11
|
/**
|
|
@@ -38,7 +38,7 @@ var runtime = createCommonjsModule(function (module) {
|
|
|
38
38
|
|
|
39
39
|
// Define the runtime globally (as expected by generated code) as either
|
|
40
40
|
// module.exports (if we're in a module) or a new, empty object.
|
|
41
|
-
runtime = global.regeneratorRuntime =
|
|
41
|
+
runtime = global.regeneratorRuntime = module.exports ;
|
|
42
42
|
|
|
43
43
|
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
44
44
|
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
@@ -1219,7 +1219,7 @@ _export(_export.S + _export.F * !USE_NATIVE, PROMISE, {
|
|
|
1219
1219
|
_export(_export.S + _export.F * (_library ), PROMISE, {
|
|
1220
1220
|
// 25.4.4.6 Promise.resolve(x)
|
|
1221
1221
|
resolve: function resolve(x) {
|
|
1222
|
-
return _promiseResolve(this === Wrapper ? $Promise : this, x);
|
|
1222
|
+
return _promiseResolve( this === Wrapper ? $Promise : this, x);
|
|
1223
1223
|
}
|
|
1224
1224
|
});
|
|
1225
1225
|
_export(_export.S + _export.F * !(USE_NATIVE && _iterDetect(function (iter) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
3
|
|
|
4
4
|
var slice = Array.prototype.slice;
|
|
5
5
|
|
|
@@ -625,7 +625,7 @@ if (typeof window !== "undefined") {
|
|
|
625
625
|
|
|
626
626
|
var window_1 = win;
|
|
627
627
|
|
|
628
|
-
/*! @name @brightcove/react-player-loader @version 1.4.
|
|
628
|
+
/*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
|
|
629
629
|
|
|
630
630
|
function _extends() {
|
|
631
631
|
_extends = Object.assign || function (target) {
|
|
@@ -659,7 +659,7 @@ function _assertThisInitialized(self) {
|
|
|
659
659
|
return self;
|
|
660
660
|
}
|
|
661
661
|
|
|
662
|
-
/*! @name @brightcove/player-loader @version 1.
|
|
662
|
+
/*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
|
|
663
663
|
|
|
664
664
|
function _extends$1() {
|
|
665
665
|
_extends$1 = Object.assign || function (target) {
|
|
@@ -679,7 +679,7 @@ function _extends$1() {
|
|
|
679
679
|
return _extends$1.apply(this, arguments);
|
|
680
680
|
}
|
|
681
681
|
|
|
682
|
-
var version = "1.
|
|
682
|
+
var version = "1.7.1";
|
|
683
683
|
|
|
684
684
|
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
|
|
685
685
|
var version$1 = "1.2.0";
|
|
@@ -996,7 +996,6 @@ var createInPageEmbed = function createInPageEmbed(params) {
|
|
|
996
996
|
deliveryConfigId: 'data-delivery-config-id',
|
|
997
997
|
playlistId: 'data-playlist-id',
|
|
998
998
|
playlistVideoId: 'data-playlist-video-id',
|
|
999
|
-
poster: 'poster',
|
|
1000
999
|
videoId: 'data-video-id'
|
|
1001
1000
|
};
|
|
1002
1001
|
var tagName = embedOptions && embedOptions.tagName || EMBED_TAG_NAME_VIDEOJS;
|
|
@@ -2217,10 +2216,10 @@ function (_React$Component) {
|
|
|
2217
2216
|
ref: this.setRefNode
|
|
2218
2217
|
});
|
|
2219
2218
|
|
|
2220
|
-
return
|
|
2219
|
+
return React__default.createElement('div', props);
|
|
2221
2220
|
};
|
|
2222
2221
|
|
|
2223
2222
|
return ReactPlayerLoader;
|
|
2224
|
-
}(
|
|
2223
|
+
}(React__default.Component);
|
|
2225
2224
|
|
|
2226
2225
|
export { ReactPlayerLoader as R };
|
package/dist/esm/{core.get-iterator-method-1b116089.js → core.get-iterator-method-54d2e411.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { x as _cof, d as _core } from './_to-object-
|
|
2
|
-
import { b as _wks,
|
|
1
|
+
import { x as _cof, d as _core } from './_to-object-ded78eb9.js';
|
|
2
|
+
import { b as _wks, e as _iterators } from './es6.string.iterator-9b2af4a5.js';
|
|
3
3
|
|
|
4
4
|
// getting tag from 19.1.3.6 Object.prototype.toString()
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import { c as _export, g as _objectDp, b as _descriptors, d as _core } from './_to-object-
|
|
2
|
+
import { c as _export, g as _objectDp, b as _descriptors, d as _core } from './_to-object-ded78eb9.js';
|
|
3
3
|
|
|
4
4
|
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
|
|
5
5
|
_export(_export.S + _export.F * !_descriptors, 'Object', { defineProperty: _objectDp.f });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import { d as defineProperty$1 } from './define-property-
|
|
2
|
+
import { d as defineProperty$1 } from './define-property-de3fc946.js';
|
|
3
3
|
|
|
4
4
|
var defineProperty = createCommonjsModule(function (module, exports) {
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z as _defined, A as _toInteger, m as _hide, b as _descriptors, p as _anObject, a as _objectKeys, g as _objectDp, k as _global, B as _sharedKey, y as _domCreate, r as _enumBugKeys, v as _shared, w as _uid, u as _has, o as _propertyDesc, h as _toObject, c as _export } from './_to-object-9bef3b62.js';
|
|
2
1
|
import { c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import { z as _defined, A as _toInteger, m as _hide, b as _descriptors, o as _anObject, a as _objectKeys, g as _objectDp, k as _global, B as _sharedKey, y as _domCreate, r as _enumBugKeys, v as _shared, w as _uid, u as _has, p as _propertyDesc, h as _toObject, c as _export } from './_to-object-ded78eb9.js';
|
|
3
3
|
|
|
4
4
|
// true -> String#at
|
|
5
5
|
// false -> String#codePointAt
|
|
@@ -162,7 +162,7 @@ var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORC
|
|
|
162
162
|
$default = function values() { return $native.call(this); };
|
|
163
163
|
}
|
|
164
164
|
// Define iterator
|
|
165
|
-
if ((FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
|
|
165
|
+
if (( FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
|
|
166
166
|
_hide(proto, ITERATOR, $default);
|
|
167
167
|
}
|
|
168
168
|
// Plug for library
|
|
@@ -198,4 +198,4 @@ _iterDefine(String, 'String', function (iterated) {
|
|
|
198
198
|
return { value: point, done: false };
|
|
199
199
|
});
|
|
200
200
|
|
|
201
|
-
export { _objectCreate as _, _iterDefine as a, _wks as b, _setToStringTag as c, _objectGpo as d,
|
|
201
|
+
export { _objectCreate as _, _iterDefine as a, _wks as b, _setToStringTag as c, _objectGpo as d, _iterators as e, _redefine as f, _html as g };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import { l as _fails, h as _toObject, i as _iobject, a as _objectKeys, b as _descriptors, c as _export, d as _core } from './_to-object-
|
|
2
|
+
import { l as _fails, h as _toObject, i as _iobject, a as _objectKeys, b as _descriptors, c as _export, d as _core } from './_to-object-ded78eb9.js';
|
|
3
3
|
import { a as _objectGops, _ as _objectPie } from './_object-pie-71ac75a4.js';
|
|
4
4
|
|
|
5
5
|
// 19.1.2.1 Object.assign(target, source, ...)
|
|
@@ -1,425 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import getQuery from './getQuery.js';
|
|
5
|
-
import './es6.string.iterator-b24a54f2.js';
|
|
6
|
-
import './_to-object-9bef3b62.js';
|
|
7
|
-
import './web.dom.iterable-ca37144a.js';
|
|
1
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import './_to-object-ded78eb9.js';
|
|
3
|
+
import './es6.string.iterator-9b2af4a5.js';
|
|
8
4
|
import './_library-528f1934.js';
|
|
9
|
-
import './
|
|
10
|
-
import './
|
|
11
|
-
import './
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
utils.areCookiesEqual;
|
|
291
|
-
utils.hasSameProperties;
|
|
292
|
-
utils.createCookie;
|
|
293
|
-
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
|
-
dist.destroyCookie;
|
|
421
|
-
var dist_2 = dist.setCookie;
|
|
422
|
-
var dist_3 = dist.parseCookies;
|
|
5
|
+
import './_iter-detect-59409a32.js';
|
|
6
|
+
import './core.get-iterator-method-54d2e411.js';
|
|
7
|
+
import './web.dom.iterable-8956f9a5.js';
|
|
8
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7c654f36.js';
|
|
9
|
+
import './_set-species-cede29f8.js';
|
|
10
|
+
import { parseCookies, setCookie } from 'nookies';
|
|
11
|
+
import getQuery from './getQuery.js';
|
|
423
12
|
|
|
424
13
|
var _this = undefined;
|
|
425
14
|
|
|
@@ -497,13 +86,13 @@ var getRelatedArticle = function () {
|
|
|
497
86
|
|
|
498
87
|
|
|
499
88
|
if (ctx && url) {
|
|
500
|
-
cookies =
|
|
89
|
+
cookies = parseCookies(ctx);
|
|
501
90
|
prevSlugs = cookies['prevSlugs'];
|
|
502
91
|
|
|
503
92
|
if (!!prevSlugs) {
|
|
504
|
-
|
|
93
|
+
setCookie(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
|
|
505
94
|
filters = '&& !(url.current in [' + prevSlugs + '])';
|
|
506
|
-
} else
|
|
95
|
+
} else setCookie(ctx, 'prevSlugs', '"' + url + '"', {});
|
|
507
96
|
}
|
|
508
97
|
|
|
509
98
|
query = getQuery('related', filters, '', articleCount).replace('&& taxonomyMapping[]._ref in $taxonomy', '');
|