@mjhls/mjh-framework 1.0.866-youtube-group-v1 → 1.0.867
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 +1 -1
- package/dist/cjs/AD300x250.js +22 -24
- package/dist/cjs/AD300x250x600.js +22 -24
- package/dist/cjs/AD728x90.js +25 -27
- package/dist/cjs/ADFloatingFooter.js +21 -23
- package/dist/cjs/ADFooter.js +4 -6
- package/dist/cjs/ADGutter.js +21 -23
- package/dist/cjs/{ADInfeed-25d48cc2.js → ADInfeed-7d13830e.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +21 -23
- package/dist/cjs/ADSponsoredResources.js +21 -23
- package/dist/cjs/ADWebcast.js +21 -23
- package/dist/cjs/ADWelcome.js +18 -20
- package/dist/cjs/{ADlgInfeed-a535a768.js → ADlgInfeed-d9dbfadc.js} +4 -4
- package/dist/cjs/AccordionPanel.js +6 -8
- package/dist/cjs/AdSlot.js +22 -24
- package/dist/cjs/AdSlotsProvider.js +11 -13
- package/dist/cjs/AlgoliaSearch.js +508 -500
- package/dist/cjs/AlphabeticList.js +8 -10
- package/dist/cjs/ArticleCarousel.js +13 -15
- package/dist/cjs/ArticleProgramLandingPage.js +48 -50
- package/dist/cjs/ArticleSeriesLandingPage.js +29 -31
- package/dist/cjs/ArticleSeriesListing.js +31 -33
- package/dist/cjs/Auth.js +482 -348
- package/dist/cjs/AuthWrapper.js +199 -240
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-39b37d84.js} +1 -1
- package/dist/cjs/Beam.js +6 -8
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-36e54d77.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +6 -8
- package/dist/cjs/CMEDeck.js +22 -24
- package/dist/cjs/Column2.js +14 -16
- package/dist/cjs/Column3.js +31 -33
- package/dist/cjs/ConferenceArticleCard.js +25 -22
- package/dist/cjs/DeckContent.js +40 -42
- package/dist/cjs/DeckQueue.js +30 -31
- package/dist/cjs/{Dfp-391fd124.js → Dfp-9be904d5.js} +13 -15
- package/dist/cjs/EventsDeck.js +44 -46
- package/dist/cjs/ExternalResources.js +45 -47
- package/dist/cjs/Feature.js +7 -4
- package/dist/cjs/ForbesHero.js +10 -12
- package/dist/cjs/GridContent.js +45 -47
- package/dist/cjs/GridHero.js +11 -13
- package/dist/cjs/GroupDeck.js +12 -14
- package/dist/cjs/HamMagazine.js +34 -36
- package/dist/cjs/Hero.js +7 -4
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +46 -48
- package/dist/cjs/HorizontalHero.js +7 -4
- package/dist/cjs/IssueContentDeck.js +11 -13
- package/dist/cjs/IssueDeck.js +14 -16
- package/dist/cjs/IssueLanding.js +82 -84
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +39 -41
- package/dist/cjs/MediaSeriesLanding.js +507 -465
- package/dist/cjs/NavDvm.js +11 -13
- package/dist/cjs/NavMagazine.js +38 -40
- package/dist/cjs/NavNative.js +39 -41
- package/dist/cjs/OncliveHero.js +7 -4
- package/dist/cjs/OncliveLargeHero.js +11 -13
- package/dist/cjs/PageFilter.js +4 -6
- package/dist/cjs/PartnerDetailListing.js +64 -2770
- package/dist/cjs/PdfDownload.js +1 -1
- package/dist/cjs/PopUpModal.js +4 -6
- package/dist/cjs/PubSection.js +32 -34
- package/dist/cjs/PubToc.js +6 -8
- package/dist/cjs/PublicationDeck.js +11 -8
- package/dist/cjs/PublicationLanding.js +76 -78
- package/dist/cjs/QueueDeckExpanded.js +36 -38
- package/dist/cjs/RecentNews.js +3 -3
- package/dist/cjs/RelatedContent.js +38 -35
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +6 -8
- package/dist/cjs/Segment.js +4 -6
- package/dist/cjs/SeriesListingDeck.js +18 -20
- package/dist/cjs/{SeriesSlider-0d3bf265.js → SeriesSlider-ce3261cb.js} +14 -14
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +15 -17
- package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-a4ae7b88.js} +10 -10
- package/dist/cjs/TaxonomyCard.js +12 -10
- package/dist/cjs/TaxonomyDescription.js +44 -46
- package/dist/cjs/TemplateNormal.js +45 -47
- package/dist/cjs/ThumbnailCard.js +10 -7
- package/dist/cjs/Ustream.js +11 -13
- package/dist/cjs/VerticalHero.js +6 -3
- package/dist/cjs/VideoProgramLandingPage.js +50 -52
- package/dist/cjs/VideoSeriesCard.js +14 -14
- package/dist/cjs/VideoSeriesFilter.js +7 -9
- package/dist/cjs/VideoSeriesLandingPage.js +35 -37
- package/dist/cjs/VideoSeriesListing.js +31 -33
- package/dist/cjs/View.js +89 -92
- package/dist/cjs/YahooHero.js +13 -15
- package/dist/cjs/YoutubeGroup.js +25 -46
- package/dist/cjs/{_is-array-754e012d.js → _is-array-54228b29.js} +14 -14
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-b1df62f0.js} +9 -10
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/_object-sap-d1978572.js +16 -0
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-ce86cae7.js} +5 -5
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-77821af0.js} +82 -84
- package/dist/cjs/{_to-object-329a650b.js → core.get-iterator-method-5643aa10.js} +256 -20
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/define-property-e8404b64.js +20 -0
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-9673846a.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{extends-0a918631.js → extends-7c86182f.js} +13 -13
- package/dist/cjs/faundadb.js +5 -7
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +133 -71
- package/dist/cjs/getRootDocGroup.js +4 -6
- package/dist/cjs/getSerializers.js +43 -45
- package/dist/cjs/{getTargeting-a9a871f0.js → getTargeting-9d509319.js} +11 -11
- package/dist/cjs/getTargeting.js +6 -8
- package/dist/cjs/{index-e2e62963.js → index-8041a4eb.js} +11 -1
- package/dist/cjs/{index-f83a102a.js → index-ad4e6a69.js} +202 -181
- package/dist/cjs/{index-9d365128.js → index-eadd5035.js} +7 -7
- package/dist/cjs/{index-b5eb3ff8.js → index-efca863c.js} +16 -11
- package/dist/cjs/{index-6367b7bf.js → index-f86bb269.js} +35 -35
- package/dist/cjs/{index-2cf30c83.js → index-fc2f1ca2.js} +4 -4
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-8123cf40.js} +1 -1
- package/dist/cjs/index.js +139 -140
- package/dist/cjs/{inherits-0c7830c5.js → inherits-de66ea16.js} +25 -26
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/keys-e982b3fa.js +25 -0
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-f0783643.js} +58 -10
- package/dist/cjs/{main-7b5e57b0.js → main-025fdc78.js} +234 -159
- package/dist/cjs/{moment-ca3bd9fb.js → moment-aca40de1.js} +1 -1
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-af932527.js} +17 -17
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-067dd3bc.js} +17 -19
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/stringify-f7a37a8d.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-d7797c2b.js} +12 -14
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/{typeof-9d7f610f.js → typeof-567e31ff.js} +97 -98
- package/dist/cjs/urlFor.js +19 -2
- package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-3819e4aa.js} +4 -4
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-d98303e0.js} +8 -9
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +22 -24
- package/dist/esm/AD300x250x600.js +22 -24
- package/dist/esm/AD728x90.js +25 -27
- package/dist/esm/ADFloatingFooter.js +21 -23
- package/dist/esm/ADFooter.js +4 -6
- package/dist/esm/ADGutter.js +21 -23
- package/dist/esm/{ADInfeed-56a3db8b.js → ADInfeed-0cbd7bed.js} +4 -4
- package/dist/esm/ADSkyscraper.js +21 -23
- package/dist/esm/ADSponsoredResources.js +21 -23
- package/dist/esm/ADWebcast.js +21 -23
- package/dist/esm/ADWelcome.js +18 -20
- package/dist/esm/{ADlgInfeed-53edb995.js → ADlgInfeed-2d1a52d9.js} +4 -4
- package/dist/esm/AccordionPanel.js +6 -8
- package/dist/esm/AdSlot.js +22 -24
- package/dist/esm/AdSlotsProvider.js +11 -13
- package/dist/esm/AlgoliaSearch.js +507 -499
- package/dist/esm/AlphabeticList.js +8 -10
- package/dist/esm/ArticleCarousel.js +13 -15
- package/dist/esm/ArticleProgramLandingPage.js +48 -50
- package/dist/esm/ArticleSeriesLandingPage.js +29 -31
- package/dist/esm/ArticleSeriesListing.js +31 -33
- package/dist/esm/Auth.js +482 -348
- package/dist/esm/AuthWrapper.js +199 -240
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-46a745ba.js} +1 -1
- package/dist/esm/Beam.js +6 -8
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-52cf21c5.js} +34 -34
- package/dist/esm/Breadcrumbs.js +5 -7
- package/dist/esm/CMEDeck.js +22 -24
- package/dist/esm/Column2.js +14 -16
- package/dist/esm/Column3.js +31 -33
- package/dist/esm/ConferenceArticleCard.js +25 -22
- package/dist/esm/DeckContent.js +40 -42
- package/dist/esm/DeckQueue.js +30 -31
- package/dist/esm/{Dfp-2f9796e1.js → Dfp-4ca12f2e.js} +13 -15
- package/dist/esm/EventsDeck.js +41 -43
- package/dist/esm/ExternalResources.js +45 -47
- package/dist/esm/Feature.js +7 -4
- package/dist/esm/ForbesHero.js +10 -12
- package/dist/esm/GridContent.js +45 -47
- package/dist/esm/GridHero.js +11 -13
- package/dist/esm/GroupDeck.js +12 -14
- package/dist/esm/HamMagazine.js +34 -36
- package/dist/esm/Hero.js +7 -4
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +46 -48
- package/dist/esm/HorizontalHero.js +7 -4
- package/dist/esm/IssueContentDeck.js +11 -13
- package/dist/esm/IssueDeck.js +13 -15
- package/dist/esm/IssueLanding.js +82 -84
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +20 -22
- package/dist/esm/MasterDeck.js +39 -41
- package/dist/esm/MediaSeriesLanding.js +507 -465
- package/dist/esm/NavDvm.js +11 -13
- package/dist/esm/NavMagazine.js +38 -40
- package/dist/esm/NavNative.js +37 -39
- package/dist/esm/OncliveHero.js +7 -4
- package/dist/esm/OncliveLargeHero.js +11 -13
- package/dist/esm/PageFilter.js +4 -6
- package/dist/esm/PartnerDetailListing.js +62 -2767
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +4 -6
- package/dist/esm/PubSection.js +32 -34
- package/dist/esm/PubToc.js +6 -8
- package/dist/esm/PublicationDeck.js +10 -7
- package/dist/esm/PublicationLanding.js +52 -54
- package/dist/esm/QueueDeckExpanded.js +36 -38
- package/dist/esm/RecentNews.js +3 -3
- package/dist/esm/RelatedContent.js +38 -35
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/Search.js +5 -7
- package/dist/esm/Segment.js +4 -6
- package/dist/esm/SeriesListingDeck.js +18 -20
- package/dist/esm/{SeriesSlider-7d89f4d9.js → SeriesSlider-485f514e.js} +14 -14
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +15 -17
- package/dist/esm/{SocialSearchComponent-47815365.js → SocialSearchComponent-41b6b480.js} +9 -9
- package/dist/esm/TaxonomyCard.js +12 -10
- package/dist/esm/TaxonomyDescription.js +44 -46
- package/dist/esm/TemplateNormal.js +45 -47
- package/dist/esm/ThumbnailCard.js +10 -7
- package/dist/esm/Ustream.js +11 -13
- package/dist/esm/VerticalHero.js +6 -3
- package/dist/esm/VideoProgramLandingPage.js +49 -51
- package/dist/esm/VideoSeriesCard.js +14 -14
- package/dist/esm/VideoSeriesFilter.js +7 -9
- package/dist/esm/VideoSeriesLandingPage.js +35 -37
- package/dist/esm/VideoSeriesListing.js +31 -33
- package/dist/esm/View.js +88 -91
- package/dist/esm/YahooHero.js +13 -15
- package/dist/esm/YoutubeGroup.js +25 -46
- package/dist/esm/{_is-array-58e95429.js → _is-array-893ab020.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-f089461c.js} +7 -8
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-169d6272.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-50a6b9a3.js} +2 -2
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-b4dfe691.js} +30 -32
- package/dist/esm/{_to-object-a4107da3.js → core.get-iterator-method-e903ff31.js} +247 -18
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/define-property-99e66838.js +18 -0
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-8fa0bc8d.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{extends-6f2fcc99.js → extends-dc6a71fd.js} +7 -7
- package/dist/esm/faundadb.js +5 -7
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +133 -71
- package/dist/esm/getRootDocGroup.js +4 -6
- package/dist/esm/getSerializers.js +43 -45
- package/dist/esm/{getTargeting-bd800589.js → getTargeting-ff2c9409.js} +11 -11
- package/dist/esm/getTargeting.js +6 -8
- package/dist/esm/{index-51a80699.js → index-0dbff1d1.js} +16 -11
- package/dist/esm/{index-f7fb1e25.js → index-2446af28.js} +4 -4
- package/dist/esm/{index-6c12bdd5.js → index-35bdcc81.js} +6 -6
- package/dist/esm/{index-82fea143.js → index-61397130.js} +198 -177
- package/dist/esm/{index-aaa2dae0.js → index-67e1773f.js} +11 -2
- package/dist/esm/{index-c00b0bbb.js → index-79cfd25c.js} +35 -35
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-8016b507.js} +1 -1
- package/dist/esm/index.js +120 -121
- package/dist/esm/{inherits-75d45541.js → inherits-8a801a18.js} +18 -19
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/keys-425c8ab0.js +23 -0
- package/dist/esm/{lodash-ec8c6b48.js → lodash-f97fd99a.js} +58 -10
- package/dist/esm/{main-747e7d25.js → main-b5c5aac1.js} +228 -153
- package/dist/esm/{moment-b6f49411.js → moment-bc12cb97.js} +1 -1
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-91f9716f.js} +16 -16
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-ca2c8b8d.js} +12 -14
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-c21932b3.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-7b1c0e23.js} +7 -9
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/{typeof-af9c50d8.js → typeof-83d9eb10.js} +34 -35
- package/dist/esm/urlFor.js +19 -2
- package/dist/esm/{ustream-api-9a50644d.js → ustream-api-41166338.js} +4 -4
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-fdf034f5.js} +2 -3
- package/package.json +111 -111
- package/dist/cjs/_object-sap-5e74ba08.js +0 -16
- package/dist/cjs/core.get-iterator-method-f62321d4.js +0 -39
- package/dist/cjs/define-property-f4d12f4e.js +0 -20
- package/dist/cjs/es6.string.iterator-cc0bbaa4.js +0 -210
- package/dist/cjs/keys-a586b7a0.js +0 -25
- package/dist/cjs/stringify-7c5aff47.js +0 -17
- package/dist/esm/core.get-iterator-method-e1de7503.js +0 -36
- package/dist/esm/define-property-8af5f002.js +0 -18
- package/dist/esm/es6.string.iterator-c990c18c.js +0 -201
- package/dist/esm/keys-8eda7a5c.js +0 -23
- package/dist/esm/stringify-4330ccdc.js +0 -15
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-a195642e.js} +1 -1
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-b43c695a.js} +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as isSymbol_1, _ as _root, i as isObject_1, b as _Symbol } from './isSymbol-
|
|
2
|
-
import { i as isFunction_1, e as eq_1 } from './eq-
|
|
1
|
+
import { a as isSymbol_1, _ as _root, i as isObject_1, b as _Symbol } from './isSymbol-a7e9aafe.js';
|
|
2
|
+
import { i as isFunction_1, e as eq_1 } from './eq-bdcbf886.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Checks if `value` is classified as an `Array` object.
|
|
@@ -80,10 +80,10 @@ function isMasked(func) {
|
|
|
80
80
|
var _isMasked = isMasked;
|
|
81
81
|
|
|
82
82
|
/** Used for built-in method references. */
|
|
83
|
-
var funcProto = Function.prototype;
|
|
83
|
+
var funcProto$1 = Function.prototype;
|
|
84
84
|
|
|
85
85
|
/** Used to resolve the decompiled source of functions. */
|
|
86
|
-
var funcToString = funcProto.toString;
|
|
86
|
+
var funcToString$1 = funcProto$1.toString;
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
89
|
* Converts `func` to its source code.
|
|
@@ -95,7 +95,7 @@ var funcToString = funcProto.toString;
|
|
|
95
95
|
function toSource(func) {
|
|
96
96
|
if (func != null) {
|
|
97
97
|
try {
|
|
98
|
-
return funcToString.call(func);
|
|
98
|
+
return funcToString$1.call(func);
|
|
99
99
|
} catch (e) {}
|
|
100
100
|
try {
|
|
101
101
|
return (func + '');
|
|
@@ -116,18 +116,18 @@ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
|
116
116
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
117
117
|
|
|
118
118
|
/** Used for built-in method references. */
|
|
119
|
-
var funcProto
|
|
120
|
-
objectProto = Object.prototype;
|
|
119
|
+
var funcProto = Function.prototype,
|
|
120
|
+
objectProto$2 = Object.prototype;
|
|
121
121
|
|
|
122
122
|
/** Used to resolve the decompiled source of functions. */
|
|
123
|
-
var funcToString
|
|
123
|
+
var funcToString = funcProto.toString;
|
|
124
124
|
|
|
125
125
|
/** Used to check objects for own properties. */
|
|
126
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
126
|
+
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
127
127
|
|
|
128
128
|
/** Used to detect if a method is native. */
|
|
129
129
|
var reIsNative = RegExp('^' +
|
|
130
|
-
funcToString
|
|
130
|
+
funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
|
|
131
131
|
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
132
132
|
);
|
|
133
133
|
|
|
@@ -216,7 +216,7 @@ function hashDelete(key) {
|
|
|
216
216
|
var _hashDelete = hashDelete;
|
|
217
217
|
|
|
218
218
|
/** Used to stand-in for `undefined` hash values. */
|
|
219
|
-
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
219
|
+
var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
220
220
|
|
|
221
221
|
/** Used for built-in method references. */
|
|
222
222
|
var objectProto$1 = Object.prototype;
|
|
@@ -237,7 +237,7 @@ function hashGet(key) {
|
|
|
237
237
|
var data = this.__data__;
|
|
238
238
|
if (_nativeCreate) {
|
|
239
239
|
var result = data[key];
|
|
240
|
-
return result === HASH_UNDEFINED ? undefined : result;
|
|
240
|
+
return result === HASH_UNDEFINED$1 ? undefined : result;
|
|
241
241
|
}
|
|
242
242
|
return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
|
|
243
243
|
}
|
|
@@ -245,10 +245,10 @@ function hashGet(key) {
|
|
|
245
245
|
var _hashGet = hashGet;
|
|
246
246
|
|
|
247
247
|
/** Used for built-in method references. */
|
|
248
|
-
var objectProto
|
|
248
|
+
var objectProto = Object.prototype;
|
|
249
249
|
|
|
250
250
|
/** Used to check objects for own properties. */
|
|
251
|
-
var hasOwnProperty
|
|
251
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
252
252
|
|
|
253
253
|
/**
|
|
254
254
|
* Checks if a hash value for `key` exists.
|
|
@@ -261,13 +261,13 @@ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
|
261
261
|
*/
|
|
262
262
|
function hashHas(key) {
|
|
263
263
|
var data = this.__data__;
|
|
264
|
-
return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty
|
|
264
|
+
return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
var _hashHas = hashHas;
|
|
268
268
|
|
|
269
269
|
/** Used to stand-in for `undefined` hash values. */
|
|
270
|
-
var HASH_UNDEFINED
|
|
270
|
+
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
271
271
|
|
|
272
272
|
/**
|
|
273
273
|
* Sets the hash `key` to `value`.
|
|
@@ -282,7 +282,7 @@ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
|
282
282
|
function hashSet(key, value) {
|
|
283
283
|
var data = this.__data__;
|
|
284
284
|
this.size += this.has(key) ? 0 : 1;
|
|
285
|
-
data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED
|
|
285
|
+
data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
|
|
286
286
|
return this;
|
|
287
287
|
}
|
|
288
288
|
|
|
@@ -765,7 +765,7 @@ function arrayMap(array, iteratee) {
|
|
|
765
765
|
var _arrayMap = arrayMap;
|
|
766
766
|
|
|
767
767
|
/** Used as references for various `Number` constants. */
|
|
768
|
-
var INFINITY = 1 / 0;
|
|
768
|
+
var INFINITY$1 = 1 / 0;
|
|
769
769
|
|
|
770
770
|
/** Used to convert symbols to primitives and strings. */
|
|
771
771
|
var symbolProto = _Symbol ? _Symbol.prototype : undefined,
|
|
@@ -792,7 +792,7 @@ function baseToString(value) {
|
|
|
792
792
|
return symbolToString ? symbolToString.call(value) : '';
|
|
793
793
|
}
|
|
794
794
|
var result = (value + '');
|
|
795
|
-
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
795
|
+
return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
|
|
796
796
|
}
|
|
797
797
|
|
|
798
798
|
var _baseToString = baseToString;
|
|
@@ -842,7 +842,7 @@ function castPath(value, object) {
|
|
|
842
842
|
var _castPath = castPath;
|
|
843
843
|
|
|
844
844
|
/** Used as references for various `Number` constants. */
|
|
845
|
-
var INFINITY
|
|
845
|
+
var INFINITY = 1 / 0;
|
|
846
846
|
|
|
847
847
|
/**
|
|
848
848
|
* Converts `value` to a string key if it's not a string or symbol.
|
|
@@ -856,7 +856,7 @@ function toKey(value) {
|
|
|
856
856
|
return value;
|
|
857
857
|
}
|
|
858
858
|
var result = (value + '');
|
|
859
|
-
return (result == '0' && (1 / value) == -INFINITY
|
|
859
|
+
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
860
860
|
}
|
|
861
861
|
|
|
862
862
|
var _toKey = toKey;
|
package/dist/esm/getQuery.js
CHANGED
|
@@ -8,9 +8,9 @@ var getQuery = function getQuery(type) {
|
|
|
8
8
|
|
|
9
9
|
switch (type) {
|
|
10
10
|
case 'related':
|
|
11
|
-
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n
|
|
11
|
+
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds,\n showSocialShare\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n }';
|
|
12
12
|
case 'article':
|
|
13
|
-
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n
|
|
13
|
+
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n },\n poster {\n _type,\n asset-> \n }\n },\n articles[]{\n ...,\n thumbnail{\n ...,\n asset-> \n },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n showSocialShare\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n\n }';
|
|
14
14
|
case 'publication':
|
|
15
15
|
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n taxonomyMapping[]->,\n pdf{asset->},\n } | order(year desc, month desc)\n }';
|
|
16
16
|
case 'issue':
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-b4dfe691.js';
|
|
1
2
|
import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-a4107da3.js';
|
|
3
|
-
import './es6.string.iterator-c990c18c.js';
|
|
4
|
-
import './_library-528f1934.js';
|
|
5
|
-
import './_iter-detect-5d49a330.js';
|
|
6
|
-
import './core.get-iterator-method-e1de7503.js';
|
|
7
|
-
import './web.dom.iterable-4439f05a.js';
|
|
8
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
9
3
|
import { c as cookie } from './index-db3bb315.js';
|
|
10
4
|
import getQuery from './getQuery.js';
|
|
5
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
6
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
7
|
+
import './_library-528f1934.js';
|
|
8
|
+
import './_iter-detect-f089461c.js';
|
|
11
9
|
|
|
12
10
|
var defaultParseOptions = {
|
|
13
11
|
decodeValues: true,
|
|
@@ -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
|
+
//# sourceMappingURL=utils.js.map
|
|
286
|
+
});
|
|
287
|
+
|
|
288
|
+
unwrapExports(utils);
|
|
289
|
+
utils.areCookiesEqual;
|
|
290
|
+
utils.hasSameProperties;
|
|
291
|
+
utils.createCookie;
|
|
292
|
+
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,40 +392,31 @@ 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,
|
|
351
413
|
destroy: destroyCookie,
|
|
352
414
|
};
|
|
353
|
-
|
|
415
|
+
//# sourceMappingURL=index.js.map
|
|
354
416
|
});
|
|
355
417
|
|
|
356
418
|
unwrapExports(dist);
|
|
357
|
-
|
|
419
|
+
dist.destroyCookie;
|
|
358
420
|
var dist_2 = dist.setCookie;
|
|
359
421
|
var dist_3 = dist.parseCookies;
|
|
360
422
|
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-b4dfe691.js';
|
|
1
2
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
3
|
-
import './
|
|
3
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
4
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
4
5
|
import './_library-528f1934.js';
|
|
5
|
-
import './_iter-detect-
|
|
6
|
-
import './core.get-iterator-method-e1de7503.js';
|
|
7
|
-
import './web.dom.iterable-4439f05a.js';
|
|
8
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
6
|
+
import './_iter-detect-f089461c.js';
|
|
9
7
|
|
|
10
8
|
var _this = undefined;
|
|
11
9
|
|
|
@@ -1,57 +1,55 @@
|
|
|
1
|
-
import './
|
|
2
|
-
import './_to-object-a4107da3.js';
|
|
3
|
-
import './es6.string.iterator-c990c18c.js';
|
|
4
|
-
import './_library-528f1934.js';
|
|
5
|
-
import './_iter-detect-5d49a330.js';
|
|
6
|
-
import './toConsumableArray-43aa614d.js';
|
|
7
|
-
import './core.get-iterator-method-e1de7503.js';
|
|
8
|
-
import './_object-pie-33c40e79.js';
|
|
9
|
-
import './extends-6f2fcc99.js';
|
|
10
|
-
import './_object-sap-964b6feb.js';
|
|
11
|
-
import './inherits-75d45541.js';
|
|
12
|
-
import './define-property-8af5f002.js';
|
|
13
|
-
import './web.dom.iterable-4439f05a.js';
|
|
14
|
-
import './typeof-af9c50d8.js';
|
|
15
|
-
import './_is-array-58e95429.js';
|
|
1
|
+
import './extends-dc6a71fd.js';
|
|
16
2
|
import 'react';
|
|
3
|
+
export { g as default } from './index-61397130.js';
|
|
4
|
+
import './BlockContent-52cf21c5.js';
|
|
5
|
+
import './entities-932b50cf.js';
|
|
6
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
7
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
8
|
+
import './_object-pie-133f504a.js';
|
|
9
|
+
import './slicedToArray-ca2c8b8d.js';
|
|
10
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
11
|
+
import 'react-bootstrap';
|
|
12
|
+
import './urlFor.js';
|
|
13
|
+
import './index-0dbff1d1.js';
|
|
14
|
+
import './index-2446af28.js';
|
|
17
15
|
import './events-6c3a7a63.js';
|
|
18
|
-
import './index-f7fb1e25.js';
|
|
19
16
|
import 'prop-types';
|
|
20
|
-
import 'react-bootstrap/Row';
|
|
21
|
-
import 'react-bootstrap/Col';
|
|
22
|
-
import './moment-b6f49411.js';
|
|
23
17
|
import 'next/router';
|
|
24
|
-
import './isSymbol-1981418f.js';
|
|
25
|
-
import './debounce-9207d8ee.js';
|
|
26
|
-
import './toNumber-2f7a84cd.js';
|
|
27
|
-
import 'react-dom';
|
|
28
|
-
import './index-51a80699.js';
|
|
29
|
-
import './urlFor.js';
|
|
30
|
-
import './index-6c12bdd5.js';
|
|
31
|
-
import './main-747e7d25.js';
|
|
32
|
-
import './entities-7cc3bf45.js';
|
|
33
|
-
import './slicedToArray-641f241f.js';
|
|
34
|
-
import './stringify-4330ccdc.js';
|
|
35
|
-
import './asyncToGenerator-fc1c2e29.js';
|
|
36
|
-
import './Segment.js';
|
|
37
|
-
import './Beam.js';
|
|
38
|
-
import './AdSlot.js';
|
|
39
|
-
import 'react-bootstrap/Button';
|
|
40
|
-
import './BlockContent-d05b5b23.js';
|
|
41
18
|
import './index-c7e2ac95.js';
|
|
42
|
-
import './
|
|
19
|
+
import './util-3ab476bf.js';
|
|
20
|
+
import './Beam.js';
|
|
21
|
+
import './stringify-c21932b3.js';
|
|
22
|
+
import './asyncToGenerator-b4dfe691.js';
|
|
23
|
+
import './_library-528f1934.js';
|
|
24
|
+
import './_iter-detect-f089461c.js';
|
|
25
|
+
import './Segment.js';
|
|
26
|
+
import './main-b5c5aac1.js';
|
|
27
|
+
import './index-35bdcc81.js';
|
|
28
|
+
import 'react-dom';
|
|
29
|
+
import './typeof-83d9eb10.js';
|
|
30
|
+
import './_is-array-893ab020.js';
|
|
31
|
+
import './brightcove-react-player-loader.es-b43c695a.js';
|
|
43
32
|
import './GroupDeck.js';
|
|
44
|
-
import '
|
|
45
|
-
import './
|
|
46
|
-
import './
|
|
47
|
-
export { g as default } from './index-82fea143.js';
|
|
48
|
-
import './util-7700fc59.js';
|
|
49
|
-
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
33
|
+
import './smoothscroll-fa4e3f8c.js';
|
|
34
|
+
import './moment-bc12cb97.js';
|
|
35
|
+
import './SocialShare.js';
|
|
50
36
|
import 'next/head';
|
|
51
37
|
import 'react-share';
|
|
52
|
-
import './
|
|
53
|
-
import './
|
|
38
|
+
import './_object-to-array-50a6b9a3.js';
|
|
39
|
+
import './toConsumableArray-7b1c0e23.js';
|
|
54
40
|
import 'react-bootstrap/Pagination';
|
|
41
|
+
import 'react-bootstrap/Button';
|
|
42
|
+
import './AdSlot.js';
|
|
43
|
+
import './debounce-533d9748.js';
|
|
44
|
+
import './isSymbol-a7e9aafe.js';
|
|
45
|
+
import './toNumber-5aeba6e7.js';
|
|
46
|
+
import 'react-bootstrap/Row';
|
|
47
|
+
import 'react-bootstrap/Col';
|
|
48
|
+
import './inherits-8a801a18.js';
|
|
49
|
+
import './_object-sap-169d6272.js';
|
|
50
|
+
import './define-property-99e66838.js';
|
|
51
|
+
import './index.esm-3fdda599.js';
|
|
52
|
+
import './iconBase-602d52fe.js';
|
|
55
53
|
import 'react-bootstrap/Figure';
|
|
56
54
|
import 'react-bootstrap/OverlayTrigger';
|
|
57
55
|
import 'react-bootstrap/Tooltip';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { _ as
|
|
1
|
+
import { _ as _extends } from './extends-dc6a71fd.js';
|
|
2
|
+
import { _ as _toConsumableArray } from './toConsumableArray-7b1c0e23.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
|
+
import './extends-dc6a71fd.js';
|
|
2
|
+
import './toConsumableArray-7b1c0e23.js';
|
|
3
|
+
export { g as default } from './getTargeting-ff2c9409.js';
|
|
1
4
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
3
|
-
import './
|
|
4
|
-
import './_iter-detect-
|
|
5
|
-
import './toConsumableArray-43aa614d.js';
|
|
6
|
-
import './core.get-iterator-method-e1de7503.js';
|
|
7
|
-
import './_object-pie-33c40e79.js';
|
|
8
|
-
import './extends-6f2fcc99.js';
|
|
9
|
-
export { g as default } from './getTargeting-bd800589.js';
|
|
5
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
6
|
+
import './_object-pie-133f504a.js';
|
|
7
|
+
import './_iter-detect-f089461c.js';
|