@mjhls/mjh-framework 1.0.859 → 1.0.860-beta.0
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 +168 -168
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +17 -19
- package/dist/cjs/AD300x250x600.js +17 -19
- package/dist/cjs/AD728x90.js +18 -20
- package/dist/cjs/ADFloatingFooter.js +19 -21
- package/dist/cjs/ADFooter.js +11 -14
- package/dist/cjs/ADGutter.js +19 -21
- package/dist/cjs/{ADInfeed-ff26342c.js → ADInfeed-7c09edba.js} +10 -12
- package/dist/cjs/ADSkyscraper.js +19 -21
- package/dist/cjs/ADSponsoredResources.js +19 -21
- package/dist/cjs/ADWebcast.js +19 -21
- package/dist/cjs/ADWelcome.js +23 -25
- package/dist/cjs/{ADlgInfeed-ad4953d4.js → ADlgInfeed-2e7effc7.js} +7 -8
- package/dist/cjs/AccordionPanel.js +25 -29
- package/dist/cjs/AdSlot.js +21 -23
- package/dist/cjs/AdSlotsProvider.js +908 -18
- package/dist/cjs/AlgoliaSearch.js +14018 -55
- package/dist/cjs/AlphabeticList.js +21 -24
- package/dist/cjs/ArticleCarousel.js +15 -18
- package/dist/cjs/ArticleProgramLandingPage.js +35 -38
- package/dist/cjs/ArticleSeriesLandingPage.js +31 -33
- package/dist/cjs/ArticleSeriesListing.js +47 -49
- package/dist/cjs/Auth.js +1203 -245
- package/dist/cjs/AuthWrapper.js +564 -31
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-02e827ae.js} +13 -14
- package/dist/cjs/Beam.js +5 -7
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +24 -28
- package/dist/cjs/CMEDeck.js +72 -73
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +25 -30
- package/dist/cjs/Column3.js +42 -46
- package/dist/cjs/ConferenceArticleCard.js +35 -33
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +92 -97
- package/dist/cjs/DeckQueue.js +78 -82
- package/dist/cjs/{Dfp-0bf098b5.js → Dfp-14d2455c.js} +26 -28
- package/dist/cjs/EventsDeck.js +144 -153
- package/dist/cjs/ExternalResources.js +59 -62
- package/dist/cjs/Feature.js +26 -25
- package/dist/cjs/ForbesHero.js +37 -40
- package/dist/cjs/GridContent.js +215 -221
- package/dist/cjs/GridHero.js +38 -41
- package/dist/cjs/GroupDeck.js +52 -55
- package/dist/cjs/HamMagazine.js +130 -137
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +12 -10
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalArticleListing.js +49 -52
- package/dist/cjs/HorizontalHero.js +26 -24
- package/dist/cjs/IssueContentDeck.js +68 -75
- package/dist/cjs/IssueDeck.js +66 -73
- package/dist/cjs/IssueLanding.js +70 -73
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +28 -31
- package/dist/cjs/MasterDeck.js +69 -71
- package/dist/cjs/MediaSeriesLanding.js +920 -814
- package/dist/cjs/NavDvm.js +68 -75
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +131 -138
- package/dist/cjs/NavNative.js +122 -132
- package/dist/cjs/OncliveHero.js +20 -17
- package/dist/cjs/OncliveLargeHero.js +66 -69
- package/dist/cjs/PageFilter.js +11 -14
- package/dist/cjs/PartnerDetailListing.js +199 -301
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +16 -20
- package/dist/cjs/PubSection.js +28 -30
- package/dist/cjs/PubToc.js +12 -15
- package/dist/cjs/PublicationDeck.js +62 -64
- package/dist/cjs/PublicationLanding.js +144 -150
- package/dist/cjs/QueueDeckExpanded.js +294 -295
- package/dist/cjs/RecentNews.js +19 -20
- package/dist/cjs/RelatedContent.js +53 -51
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +15 -21
- package/dist/cjs/Segment.js +4 -6
- package/dist/cjs/SeriesListingDeck.js +32 -33
- package/dist/cjs/{SeriesSlider-60fa1342.js → SeriesSlider-94af9fcb.js} +38 -39
- package/dist/cjs/SideFooter.js +30 -33
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-650f6101.js} +35 -39
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +58 -61
- package/dist/cjs/TaxonomyDescription.js +34 -37
- package/dist/cjs/TemplateNormal.js +44 -46
- package/dist/cjs/ThumbnailCard.js +20 -19
- package/dist/cjs/Ustream.js +26 -29
- package/dist/cjs/VerticalHero.js +18 -16
- package/dist/cjs/VideoProgramLandingPage.js +52 -58
- package/dist/cjs/VideoSeriesCard.js +27 -28
- package/dist/cjs/VideoSeriesFilter.js +14 -16
- package/dist/cjs/VideoSeriesLandingPage.js +36 -38
- package/dist/cjs/VideoSeriesListing.js +64 -66
- package/dist/cjs/View.js +214 -220
- package/dist/cjs/YahooHero.js +33 -36
- package/dist/cjs/YoutubeGroup.js +58 -61
- package/dist/cjs/{_is-array-754e012d.js → _is-array-aa52fa1e.js} +9 -9
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-05795553.js} +6 -7
- package/dist/cjs/_object-sap-171b9ea5.js +16 -0
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-9bac8737.js} +4 -4
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-df19209d.js} +65 -67
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/{_to-object-329a650b.js → core.get-iterator-method-f3c44602.js} +239 -3
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-21887c62.js} +3 -3
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-77a37684.js} +1 -1
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-60837c34.js → extends-eed4f016.js} +9 -8
- package/dist/cjs/faundadb.js +5 -7
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +135 -73
- package/dist/cjs/getRootDocGroup.js +4 -6
- package/dist/cjs/getSerializers.js +24 -26
- package/dist/cjs/{getTargeting-3e45e4d4.js → getTargeting-8874437b.js} +12 -12
- package/dist/cjs/getTargeting.js +5 -7
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-99edf08a.js → index-3294d3bc.js} +1 -1
- package/dist/cjs/{index-9d365128.js → index-96b3db50.js} +10 -12
- package/dist/cjs/{index-44481153.js → index-98e01cb9.js} +47 -494
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index-cf3e6aca.js → index-cdcc0b5e.js} +1207 -962
- package/dist/cjs/index-e2e62963.js +89 -0
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +74 -80
- package/dist/cjs/{inherits-87492b40.js → inherits-12d44cca.js} +16 -14
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{keys-a586b7a0.js → keys-d207942e.js} +4 -4
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-7b5e57b0.js → main-02daeefe.js} +54 -90
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-f7f48f71.js} +11 -12
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-f6d4eaa8.js} +7 -9
- package/dist/cjs/{stringify-7c5aff47.js → stringify-bbc68047.js} +2 -2
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-c9b8a0d0.js} +8 -10
- package/dist/cjs/{typeof-9d7f610f.js → typeof-5f52cf64.js} +73 -74
- package/dist/cjs/urlFor.js +21 -4
- package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-9ebe112f.js} +4 -4
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-e34bf324.js} +8 -9
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +15 -16
- package/dist/esm/AD300x250x600.js +15 -16
- package/dist/esm/AD728x90.js +16 -17
- package/dist/esm/ADFloatingFooter.js +17 -18
- package/dist/esm/ADFooter.js +9 -11
- package/dist/esm/ADGutter.js +17 -18
- package/dist/esm/{ADInfeed-422ad6e6.js → ADInfeed-bfd129d9.js} +8 -8
- package/dist/esm/ADSkyscraper.js +17 -18
- package/dist/esm/ADSponsoredResources.js +17 -18
- package/dist/esm/ADWebcast.js +17 -18
- package/dist/esm/ADWelcome.js +21 -22
- package/dist/esm/{ADlgInfeed-f7468db8.js → ADlgInfeed-0489335b.js} +5 -5
- package/dist/esm/AccordionPanel.js +20 -22
- package/dist/esm/AdSlot.js +13 -14
- package/dist/esm/AdSlotsProvider.js +907 -16
- package/dist/esm/AlgoliaSearch.js +14011 -47
- package/dist/esm/AlphabeticList.js +19 -21
- package/dist/esm/ArticleCarousel.js +13 -15
- package/dist/esm/ArticleProgramLandingPage.js +33 -35
- package/dist/esm/ArticleSeriesLandingPage.js +29 -30
- package/dist/esm/ArticleSeriesListing.js +44 -45
- package/dist/esm/Auth.js +1187 -225
- package/dist/esm/AuthWrapper.js +564 -29
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-e6f95c2f.js} +11 -11
- package/dist/esm/Beam.js +5 -7
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +14 -16
- package/dist/esm/CMEDeck.js +69 -70
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +23 -25
- package/dist/esm/Column3.js +40 -41
- package/dist/esm/ConferenceArticleCard.js +33 -30
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +88 -89
- package/dist/esm/DeckQueue.js +74 -74
- package/dist/esm/{Dfp-85c9513e.js → Dfp-f867d061.js} +14 -15
- package/dist/esm/EventsDeck.js +119 -121
- package/dist/esm/ExternalResources.js +54 -56
- package/dist/esm/Feature.js +20 -17
- package/dist/esm/ForbesHero.js +31 -33
- package/dist/esm/GridContent.js +184 -185
- package/dist/esm/GridHero.js +32 -34
- package/dist/esm/GroupDeck.js +40 -42
- package/dist/esm/HamMagazine.js +105 -107
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +10 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +47 -49
- package/dist/esm/HorizontalHero.js +24 -21
- package/dist/esm/IssueContentDeck.js +56 -58
- package/dist/esm/IssueDeck.js +60 -62
- package/dist/esm/IssueLanding.js +68 -70
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +24 -25
- package/dist/esm/MasterDeck.js +66 -67
- package/dist/esm/MediaSeriesLanding.js +684 -575
- package/dist/esm/NavDvm.js +51 -53
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +108 -110
- package/dist/esm/NavNative.js +97 -99
- package/dist/esm/OncliveHero.js +18 -14
- package/dist/esm/OncliveLargeHero.js +55 -57
- package/dist/esm/PageFilter.js +9 -11
- package/dist/esm/PartnerDetailListing.js +90 -191
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +11 -13
- package/dist/esm/PubSection.js +26 -27
- package/dist/esm/PubToc.js +10 -12
- package/dist/esm/PublicationDeck.js +54 -51
- package/dist/esm/PublicationLanding.js +103 -105
- package/dist/esm/QueueDeckExpanded.js +260 -261
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +48 -45
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +10 -12
- package/dist/esm/Segment.js +4 -6
- package/dist/esm/SeriesListingDeck.js +27 -28
- package/dist/esm/{SeriesSlider-05ecb544.js → SeriesSlider-0371fc11.js} +29 -29
- package/dist/esm/SideFooter.js +27 -29
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-47815365.js → SocialSearchComponent-d7dec0c2.js} +29 -29
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +54 -52
- package/dist/esm/TaxonomyDescription.js +29 -31
- package/dist/esm/TemplateNormal.js +41 -42
- package/dist/esm/ThumbnailCard.js +13 -10
- package/dist/esm/Ustream.js +24 -26
- package/dist/esm/VerticalHero.js +16 -13
- package/dist/esm/VideoProgramLandingPage.js +45 -47
- package/dist/esm/VideoSeriesCard.js +22 -22
- package/dist/esm/VideoSeriesFilter.js +11 -13
- package/dist/esm/VideoSeriesLandingPage.js +29 -30
- package/dist/esm/VideoSeriesListing.js +61 -62
- package/dist/esm/View.js +197 -199
- package/dist/esm/YahooHero.js +28 -30
- package/dist/esm/YoutubeGroup.js +43 -45
- package/dist/esm/{_is-array-58e95429.js → _is-array-4df618a6.js} +1 -1
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-130ee549.js} +1 -2
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-8b8ea5a9.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-c54dd835.js} +1 -1
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-7bf8bc4d.js} +3 -5
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{_to-object-a4107da3.js → core.get-iterator-method-86d4db69.js} +230 -1
- package/dist/esm/{define-property-8af5f002.js → define-property-6d26cb48.js} +1 -1
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-d7d9b577.js} +1 -1
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/{extends-eb69e8ac.js → extends-5b1796d4.js} +2 -2
- package/dist/esm/faundadb.js +5 -7
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +130 -68
- package/dist/esm/getRootDocGroup.js +4 -6
- package/dist/esm/getSerializers.js +24 -26
- package/dist/esm/{getTargeting-9cb7e014.js → getTargeting-277c801e.js} +11 -11
- package/dist/esm/getTargeting.js +5 -7
- package/dist/esm/{index-1819118a.js → index-41a678ea.js} +41 -487
- package/dist/esm/{index-6c12bdd5.js → index-5f7e79e7.js} +4 -4
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/index-aaa2dae0.js +85 -0
- package/dist/esm/{index-fa2ffe86.js → index-ef6d5dcf.js} +1 -1
- package/dist/esm/{index-9bed8450.js → index-fe008ffe.js} +1162 -906
- 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-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +66 -69
- package/dist/esm/{inherits-0d8cda6e.js → inherits-2409637d.js} +5 -6
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{keys-8eda7a5c.js → keys-69989821.js} +2 -2
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-747e7d25.js → main-e4a934b2.js} +52 -87
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-67a08c9c.js} +2 -4
- package/dist/esm/{stringify-4330ccdc.js → stringify-70b72959.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-32282905.js} +2 -4
- package/dist/esm/{typeof-af9c50d8.js → typeof-c05a82ba.js} +4 -5
- package/dist/esm/urlFor.js +19 -2
- package/dist/esm/{ustream-api-9a50644d.js → ustream-api-4c4fe0ba.js} +4 -4
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-f8f967cd.js} +1 -2
- package/package.json +110 -110
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/_object-sap-5e74ba08.js +0 -16
- package/dist/cjs/core.get-iterator-method-f62321d4.js +0 -39
- package/dist/cjs/es6.string.iterator-cc0bbaa4.js +0 -210
- package/dist/esm/core.get-iterator-method-e1de7503.js +0 -36
- package/dist/esm/es6.string.iterator-c990c18c.js +0 -201
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
3
|
-
import './es6.string.iterator-c990c18c.js';
|
|
2
|
+
import './core.get-iterator-method-86d4db69.js';
|
|
4
3
|
import './_library-528f1934.js';
|
|
5
|
-
import './_iter-detect-
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
4
|
+
import './_iter-detect-130ee549.js';
|
|
5
|
+
import './web.dom.iterable-f8f967cd.js';
|
|
6
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7bf8bc4d.js';
|
|
9
7
|
import { c as cookie } from './index-db3bb315.js';
|
|
10
8
|
import getQuery from './getQuery.js';
|
|
11
9
|
|
|
@@ -29,9 +27,20 @@ function parseString(setCookieValue, options) {
|
|
|
29
27
|
? Object.assign({}, defaultParseOptions, options)
|
|
30
28
|
: defaultParseOptions;
|
|
31
29
|
|
|
30
|
+
try {
|
|
31
|
+
value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value
|
|
32
|
+
} catch (e) {
|
|
33
|
+
console.error(
|
|
34
|
+
"set-cookie-parser encountered an error while decoding a cookie with value '" +
|
|
35
|
+
value +
|
|
36
|
+
"'. Set options.decodeValues to false to disable this feature.",
|
|
37
|
+
e
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
|
|
32
41
|
var cookie = {
|
|
33
42
|
name: name, // grab everything before the first =
|
|
34
|
-
value:
|
|
43
|
+
value: value,
|
|
35
44
|
};
|
|
36
45
|
|
|
37
46
|
parts.forEach(function (part) {
|
|
@@ -202,7 +211,7 @@ setCookie.parse = parse_1;
|
|
|
202
211
|
setCookie.parseString = parseString_1;
|
|
203
212
|
setCookie.splitCookiesString = splitCookiesString_1;
|
|
204
213
|
|
|
205
|
-
var
|
|
214
|
+
var utils = createCommonjsModule(function (module, exports) {
|
|
206
215
|
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
207
216
|
__assign = Object.assign || function(t) {
|
|
208
217
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -215,10 +224,33 @@ var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
215
224
|
return __assign.apply(this, arguments);
|
|
216
225
|
};
|
|
217
226
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
218
|
-
exports.
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
227
|
+
exports.areCookiesEqual = exports.hasSameProperties = exports.createCookie = exports.isBrowser = void 0;
|
|
228
|
+
/**
|
|
229
|
+
* Tells whether we are in a browser or server.
|
|
230
|
+
*/
|
|
231
|
+
function isBrowser() {
|
|
232
|
+
return typeof window !== 'undefined';
|
|
233
|
+
}
|
|
234
|
+
exports.isBrowser = isBrowser;
|
|
235
|
+
/**
|
|
236
|
+
* Create an instance of the Cookie interface
|
|
237
|
+
*/
|
|
238
|
+
function createCookie(name, value, options) {
|
|
239
|
+
var sameSite = options.sameSite;
|
|
240
|
+
if (sameSite === true) {
|
|
241
|
+
sameSite = 'strict';
|
|
242
|
+
}
|
|
243
|
+
if (sameSite === undefined || sameSite === false) {
|
|
244
|
+
sameSite = 'lax';
|
|
245
|
+
}
|
|
246
|
+
var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
|
|
247
|
+
delete cookieToSet.encode;
|
|
248
|
+
return __assign({ name: name, value: value }, cookieToSet);
|
|
249
|
+
}
|
|
250
|
+
exports.createCookie = createCookie;
|
|
251
|
+
/**
|
|
252
|
+
* Tells whether given objects have the same properties.
|
|
253
|
+
*/
|
|
222
254
|
function hasSameProperties(a, b) {
|
|
223
255
|
var aProps = Object.getOwnPropertyNames(a);
|
|
224
256
|
var bProps = Object.getOwnPropertyNames(b);
|
|
@@ -233,8 +265,9 @@ function hasSameProperties(a, b) {
|
|
|
233
265
|
}
|
|
234
266
|
return true;
|
|
235
267
|
}
|
|
268
|
+
exports.hasSameProperties = hasSameProperties;
|
|
236
269
|
/**
|
|
237
|
-
* Compare the cookie and return true if the cookies
|
|
270
|
+
* Compare the cookie and return true if the cookies have equivalent
|
|
238
271
|
* options and the cookies would be overwritten in the browser storage.
|
|
239
272
|
*
|
|
240
273
|
* @param a first Cookie for comparison
|
|
@@ -247,71 +280,109 @@ function areCookiesEqual(a, b) {
|
|
|
247
280
|
}
|
|
248
281
|
return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
|
|
249
282
|
}
|
|
283
|
+
exports.areCookiesEqual = areCookiesEqual;
|
|
284
|
+
/* Functions */
|
|
285
|
+
|
|
286
|
+
});
|
|
287
|
+
|
|
288
|
+
unwrapExports(utils);
|
|
289
|
+
var utils_1 = utils.areCookiesEqual;
|
|
290
|
+
var utils_2 = utils.hasSameProperties;
|
|
291
|
+
var utils_3 = utils.createCookie;
|
|
292
|
+
var utils_4 = utils.isBrowser;
|
|
293
|
+
|
|
294
|
+
var dist = createCommonjsModule(function (module, exports) {
|
|
295
|
+
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
296
|
+
__assign = Object.assign || function(t) {
|
|
297
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
298
|
+
s = arguments[i];
|
|
299
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
300
|
+
t[p] = s[p];
|
|
301
|
+
}
|
|
302
|
+
return t;
|
|
303
|
+
};
|
|
304
|
+
return __assign.apply(this, arguments);
|
|
305
|
+
};
|
|
306
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
307
|
+
exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
250
311
|
/**
|
|
251
|
-
* Create an instance of the Cookie interface
|
|
252
|
-
*
|
|
253
|
-
* @param name name of the Cookie
|
|
254
|
-
* @param value value of the Cookie
|
|
255
|
-
* @param options Cookie options
|
|
256
|
-
*/
|
|
257
|
-
function createCookie(name, value, options) {
|
|
258
|
-
var sameSite = options.sameSite;
|
|
259
|
-
if (sameSite === true) {
|
|
260
|
-
sameSite = 'strict';
|
|
261
|
-
}
|
|
262
|
-
if (sameSite === undefined || sameSite === false) {
|
|
263
|
-
sameSite = 'lax';
|
|
264
|
-
}
|
|
265
|
-
var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
|
|
266
|
-
delete cookieToSet.encode;
|
|
267
|
-
return __assign({ name: name, value: value }, cookieToSet);
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
*
|
|
271
312
|
* Parses cookies.
|
|
272
313
|
*
|
|
273
|
-
* @param ctx
|
|
274
|
-
* @param options
|
|
314
|
+
* @param ctx NextJS page or API context, express context, null or undefined.
|
|
315
|
+
* @param options Options that we pass down to `cookie` library.
|
|
275
316
|
*/
|
|
276
317
|
function parseCookies(ctx, options) {
|
|
277
|
-
|
|
318
|
+
var _a, _b;
|
|
319
|
+
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) {
|
|
278
320
|
return cookie.parse(ctx.req.headers.cookie, options);
|
|
279
321
|
}
|
|
280
|
-
if (isBrowser()) {
|
|
322
|
+
if (utils.isBrowser()) {
|
|
281
323
|
return cookie.parse(document.cookie, options);
|
|
282
324
|
}
|
|
283
325
|
return {};
|
|
284
326
|
}
|
|
285
327
|
exports.parseCookies = parseCookies;
|
|
286
328
|
/**
|
|
287
|
-
*
|
|
288
329
|
* Sets a cookie.
|
|
289
330
|
*
|
|
290
|
-
* @param ctx
|
|
291
|
-
* @param name
|
|
292
|
-
* @param value
|
|
293
|
-
* @param options
|
|
331
|
+
* @param ctx NextJS page or API context, express context, null or undefined.
|
|
332
|
+
* @param name The name of your cookie.
|
|
333
|
+
* @param value The value of your cookie.
|
|
334
|
+
* @param options Options that we pass down to `cookie` library.
|
|
294
335
|
*/
|
|
295
336
|
function setCookie$1(ctx, name, value, options) {
|
|
296
|
-
|
|
337
|
+
var _a, _b;
|
|
338
|
+
if (options === void 0) { options = {}; }
|
|
339
|
+
// SSR
|
|
340
|
+
if (((_a = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _a === void 0 ? void 0 : _a.getHeader) && ctx.res.setHeader) {
|
|
341
|
+
// Check if response has finished and warn about it.
|
|
342
|
+
if ((_b = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _b === void 0 ? void 0 : _b.finished) {
|
|
343
|
+
console.warn("Not setting \"" + name + "\" cookie. Response has finished.");
|
|
344
|
+
console.warn("You should set cookie before res.send()");
|
|
345
|
+
return {};
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Load existing cookies from the header and parse them.
|
|
349
|
+
*/
|
|
297
350
|
var cookies = ctx.res.getHeader('Set-Cookie') || [];
|
|
298
351
|
if (typeof cookies === 'string')
|
|
299
352
|
cookies = [cookies];
|
|
300
353
|
if (typeof cookies === 'number')
|
|
301
354
|
cookies = [];
|
|
302
|
-
|
|
355
|
+
/**
|
|
356
|
+
* Parse cookies but ignore values - we've already encoded
|
|
357
|
+
* them in the previous call.
|
|
358
|
+
*/
|
|
359
|
+
var parsedCookies = setCookie.parse(cookies, {
|
|
360
|
+
decodeValues: false,
|
|
361
|
+
});
|
|
362
|
+
/**
|
|
363
|
+
* We create the new cookie and make sure that none of
|
|
364
|
+
* the existing cookies match it.
|
|
365
|
+
*/
|
|
366
|
+
var newCookie_1 = utils.createCookie(name, value, options);
|
|
303
367
|
var cookiesToSet_1 = [];
|
|
304
368
|
parsedCookies.forEach(function (parsedCookie) {
|
|
305
|
-
if (!areCookiesEqual(parsedCookie,
|
|
306
|
-
|
|
369
|
+
if (!utils.areCookiesEqual(parsedCookie, newCookie_1)) {
|
|
370
|
+
/**
|
|
371
|
+
* We serialize the cookie back to the original format
|
|
372
|
+
* if it isn't the same as the new one.
|
|
373
|
+
*/
|
|
374
|
+
var serializedCookie = cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({
|
|
375
|
+
// we prevent reencoding by default, but you might override it
|
|
376
|
+
encode: function (val) { return val; } }, parsedCookie));
|
|
377
|
+
cookiesToSet_1.push(serializedCookie);
|
|
307
378
|
}
|
|
308
379
|
});
|
|
309
380
|
cookiesToSet_1.push(cookie.serialize(name, value, options));
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
}
|
|
381
|
+
// Update the header.
|
|
382
|
+
ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
|
|
313
383
|
}
|
|
314
|
-
|
|
384
|
+
// Browser
|
|
385
|
+
if (utils.isBrowser()) {
|
|
315
386
|
if (options && options.httpOnly) {
|
|
316
387
|
throw new Error('Can not set a httpOnly cookie in the browser.');
|
|
317
388
|
}
|
|
@@ -321,30 +392,21 @@ function setCookie$1(ctx, name, value, options) {
|
|
|
321
392
|
}
|
|
322
393
|
exports.setCookie = setCookie$1;
|
|
323
394
|
/**
|
|
324
|
-
*
|
|
325
395
|
* Destroys a cookie with a particular name.
|
|
326
396
|
*
|
|
327
|
-
* @param ctx
|
|
328
|
-
* @param name
|
|
329
|
-
* @param options
|
|
397
|
+
* @param ctx NextJS page or API context, express context, null or undefined.
|
|
398
|
+
* @param name Cookie name.
|
|
399
|
+
* @param options Options that we pass down to `cookie` library.
|
|
330
400
|
*/
|
|
331
401
|
function destroyCookie(ctx, name, options) {
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
if (typeof cookies === 'number')
|
|
338
|
-
cookies = [];
|
|
339
|
-
cookies.push(cookie.serialize(name, '', opts));
|
|
340
|
-
ctx.res.setHeader('Set-Cookie', cookies);
|
|
341
|
-
}
|
|
342
|
-
if (isBrowser()) {
|
|
343
|
-
document.cookie = cookie.serialize(name, '', opts);
|
|
344
|
-
}
|
|
345
|
-
return {};
|
|
402
|
+
/**
|
|
403
|
+
* We forward the request destroy to setCookie function
|
|
404
|
+
* as it is the same function with modified maxAge value.
|
|
405
|
+
*/
|
|
406
|
+
return setCookie$1(ctx, name, '', __assign(__assign({}, (options || {})), { maxAge: -1 }));
|
|
346
407
|
}
|
|
347
408
|
exports.destroyCookie = destroyCookie;
|
|
409
|
+
/* Utility Exports */
|
|
348
410
|
exports.default = {
|
|
349
411
|
set: setCookie$1,
|
|
350
412
|
get: parseCookies,
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
3
|
-
import './es6.string.iterator-c990c18c.js';
|
|
2
|
+
import './core.get-iterator-method-86d4db69.js';
|
|
4
3
|
import './_library-528f1934.js';
|
|
5
|
-
import './_iter-detect-
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
4
|
+
import './_iter-detect-130ee549.js';
|
|
5
|
+
import './web.dom.iterable-f8f967cd.js';
|
|
6
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7bf8bc4d.js';
|
|
9
7
|
|
|
10
8
|
var _this = undefined;
|
|
11
9
|
|
|
@@ -1,58 +1,56 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
3
|
-
import './es6.string.iterator-c990c18c.js';
|
|
2
|
+
import './core.get-iterator-method-86d4db69.js';
|
|
4
3
|
import './_library-528f1934.js';
|
|
5
|
-
import './_iter-detect-
|
|
6
|
-
import './toConsumableArray-
|
|
7
|
-
import './core.get-iterator-method-e1de7503.js';
|
|
4
|
+
import './_iter-detect-130ee549.js';
|
|
5
|
+
import './toConsumableArray-32282905.js';
|
|
8
6
|
import './_object-pie-33c40e79.js';
|
|
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-
|
|
7
|
+
import './extends-5b1796d4.js';
|
|
8
|
+
import './_object-sap-8b8ea5a9.js';
|
|
9
|
+
import './inherits-2409637d.js';
|
|
10
|
+
import './define-property-6d26cb48.js';
|
|
11
|
+
import './web.dom.iterable-f8f967cd.js';
|
|
12
|
+
import './typeof-c05a82ba.js';
|
|
13
|
+
import './_is-array-4df618a6.js';
|
|
16
14
|
import 'react';
|
|
17
|
-
import './
|
|
15
|
+
import './events-6c3a7a63.js';
|
|
16
|
+
import './index-41a678ea.js';
|
|
18
17
|
import 'prop-types';
|
|
19
18
|
import 'react-bootstrap/Row';
|
|
20
19
|
import 'react-bootstrap/Col';
|
|
21
|
-
import './moment-
|
|
20
|
+
import './moment-e2f9b20c.js';
|
|
22
21
|
import 'next/router';
|
|
23
22
|
import './isSymbol-1981418f.js';
|
|
24
23
|
import './debounce-9207d8ee.js';
|
|
25
24
|
import './toNumber-2f7a84cd.js';
|
|
26
25
|
import 'react-dom';
|
|
27
|
-
import './
|
|
26
|
+
import './slicedToArray-67a08c9c.js';
|
|
27
|
+
import './index-73819142.js';
|
|
28
28
|
import './urlFor.js';
|
|
29
|
-
import './index-
|
|
30
|
-
import './main-
|
|
29
|
+
import './index-5f7e79e7.js';
|
|
30
|
+
import './main-e4a934b2.js';
|
|
31
31
|
import './entities-7cc3bf45.js';
|
|
32
|
-
import './
|
|
33
|
-
import './
|
|
34
|
-
import './asyncToGenerator-fc1c2e29.js';
|
|
32
|
+
import './stringify-70b72959.js';
|
|
33
|
+
import './asyncToGenerator-7bf8bc4d.js';
|
|
35
34
|
import './Segment.js';
|
|
36
35
|
import './Beam.js';
|
|
37
36
|
import './AdSlot.js';
|
|
38
37
|
import 'react-bootstrap/Button';
|
|
39
|
-
import './BlockContent-
|
|
38
|
+
import './BlockContent-e9b4ddcf.js';
|
|
40
39
|
import './index-c7e2ac95.js';
|
|
41
40
|
import './smoothscroll-0cd4c7a6.js';
|
|
42
41
|
import './GroupDeck.js';
|
|
43
42
|
import 'react-bootstrap';
|
|
44
43
|
import './iconBase-602d52fe.js';
|
|
45
|
-
import './index.esm-
|
|
46
|
-
export { g as default } from './index-
|
|
44
|
+
import './index.esm-29e48d38.js';
|
|
45
|
+
export { g as default } from './index-fe008ffe.js';
|
|
47
46
|
import './util-7700fc59.js';
|
|
48
|
-
import './brightcove-react-player-loader.es-
|
|
47
|
+
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
49
48
|
import 'next/head';
|
|
50
49
|
import 'react-share';
|
|
51
50
|
import './SocialShare.js';
|
|
52
|
-
import './_object-to-array-
|
|
51
|
+
import './_object-to-array-c54dd835.js';
|
|
53
52
|
import 'react-bootstrap/Pagination';
|
|
54
53
|
import 'react-bootstrap/Figure';
|
|
55
54
|
import 'react-bootstrap/OverlayTrigger';
|
|
56
55
|
import 'react-bootstrap/Tooltip';
|
|
57
56
|
import 'react-bootstrap/Popover';
|
|
58
|
-
import 'react-script-tag';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { _ as _toConsumableArray } from './toConsumableArray-
|
|
2
|
-
import { _ as _extends } from './extends-
|
|
1
|
+
import { _ as _toConsumableArray } from './toConsumableArray-32282905.js';
|
|
2
|
+
import { _ as _extends } from './extends-5b1796d4.js';
|
|
3
3
|
|
|
4
4
|
var getContentPlacementUrl = function getContentPlacementUrl(cp) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
var cp_url = '';
|
|
6
|
+
if (cp.ancestor && typeof cp.ancestor == 'string') {
|
|
7
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
|
|
8
|
+
}
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
|
|
11
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.parent;
|
|
12
|
+
}
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
return cp_url;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
var getTargeting = function getTargeting(props) {
|
package/dist/esm/getTargeting.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
5
|
-
import './toConsumableArray-43aa614d.js';
|
|
6
|
-
import './core.get-iterator-method-e1de7503.js';
|
|
2
|
+
import './core.get-iterator-method-86d4db69.js';
|
|
3
|
+
import './_iter-detect-130ee549.js';
|
|
4
|
+
import './toConsumableArray-32282905.js';
|
|
7
5
|
import './_object-pie-33c40e79.js';
|
|
8
|
-
import './extends-
|
|
9
|
-
export { g as default } from './getTargeting-
|
|
6
|
+
import './extends-5b1796d4.js';
|
|
7
|
+
export { g as default } from './getTargeting-277c801e.js';
|