@mjhls/mjh-framework 1.0.849 → 1.0.850-affiliatefix-v1
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 +1 -1
- package/dist/cjs/AD300x250.js +24 -23
- package/dist/cjs/AD300x250x600.js +24 -23
- package/dist/cjs/AD728x90.js +27 -26
- package/dist/cjs/ADFloatingFooter.js +23 -22
- package/dist/cjs/ADFooter.js +6 -6
- package/dist/cjs/ADGutter.js +23 -22
- package/dist/cjs/{ADInfeed-86e987a0.js → ADInfeed-859820d9.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +23 -22
- package/dist/cjs/ADSponsoredResources.js +23 -22
- package/dist/cjs/ADWebcast.js +23 -22
- package/dist/cjs/ADWelcome.js +20 -19
- package/dist/cjs/{ADlgInfeed-5d6f91d7.js → ADlgInfeed-da3a36a6.js} +4 -4
- package/dist/cjs/AccordionPanel.js +8 -8
- package/dist/cjs/AdSlot.js +24 -91
- package/dist/cjs/AdSlotsProvider.js +18 -27
- package/dist/cjs/AlgoliaSearch.js +14088 -30
- package/dist/cjs/AlphabeticList.js +10 -10
- package/dist/cjs/ArticleCarousel.js +17 -17
- package/dist/cjs/ArticleProgramLandingPage.js +50 -50
- package/dist/cjs/ArticleSeriesLandingPage.js +32 -31
- package/dist/cjs/ArticleSeriesListing.js +33 -32
- package/dist/cjs/Auth.js +484 -348
- package/dist/cjs/AuthWrapper.js +1866 -15
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-c21aac7f.js} +1 -1
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-36e54d77.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +8 -8
- package/dist/cjs/CMEDeck.js +25 -24
- package/dist/cjs/Column2.js +16 -16
- package/dist/cjs/Column3.js +33 -32
- package/dist/cjs/ConferenceArticleCard.js +7 -7
- package/dist/cjs/DeckContent.js +34 -33
- package/dist/cjs/DeckQueue.js +33 -32
- package/dist/cjs/{Dfp-0bf098b5.js → Dfp-93399f8c.js} +15 -14
- package/dist/cjs/EventsDeck.js +28 -28
- package/dist/cjs/ExternalResources.js +47 -47
- package/dist/cjs/Feature.js +4 -4
- package/dist/cjs/ForbesHero.js +12 -12
- package/dist/cjs/GridContent.js +84 -202
- package/dist/cjs/GridHero.js +13 -13
- package/dist/cjs/GroupDeck.js +14 -14
- package/dist/cjs/HamMagazine.js +28 -28
- package/dist/cjs/Hero.js +4 -4
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +47 -47
- package/dist/cjs/HorizontalHero.js +5 -5
- package/dist/cjs/IssueContentDeck.js +13 -13
- package/dist/cjs/IssueDeck.js +16 -16
- package/dist/cjs/IssueLanding.js +56 -56
- package/dist/cjs/LeftNav.js +22 -21
- package/dist/cjs/MasterDeck.js +33 -32
- package/dist/cjs/MediaSeriesLanding.js +1054 -855
- package/dist/cjs/NavDvm.js +13 -13
- package/dist/cjs/NavMagazine.js +31 -31
- package/dist/cjs/NavNative.js +38 -38
- package/dist/cjs/OncliveHero.js +4 -4
- package/dist/cjs/OncliveLargeHero.js +13 -13
- package/dist/cjs/PageFilter.js +6 -6
- package/dist/cjs/PartnerDetailListing.js +66 -1258
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PopUpModal.js +6 -6
- package/dist/cjs/PubSection.js +35 -34
- package/dist/cjs/PubToc.js +8 -8
- package/dist/cjs/PublicationDeck.js +8 -8
- package/dist/cjs/PublicationLanding.js +28 -28
- package/dist/cjs/QueueDeckExpanded.js +38 -37
- package/dist/cjs/RecentNews.js +4 -4
- package/dist/cjs/RelatedContent.js +7 -7
- package/dist/cjs/Search.js +8 -8
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +20 -19
- package/dist/cjs/{SeriesSlider-60fa1342.js → SeriesSlider-34c6cc2b.js} +10 -10
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +15 -15
- package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-948138c7.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +10 -10
- package/dist/cjs/TaxonomyDescription.js +46 -46
- package/dist/cjs/TemplateNormal.js +48 -47
- package/dist/cjs/ThumbnailCard.js +7 -7
- package/dist/cjs/Ustream.js +14 -14
- package/dist/cjs/VerticalHero.js +3 -3
- package/dist/cjs/VideoProgramLandingPage.js +52 -52
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +38 -37
- package/dist/cjs/VideoSeriesListing.js +35 -36
- package/dist/cjs/View.js +91 -173
- package/dist/cjs/YahooHero.js +15 -15
- package/dist/cjs/YoutubeGroup.js +22 -22
- package/dist/cjs/{_is-array-754e012d.js → _is-array-6128bd56.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-55a5657a.js} +8 -8
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-a175b4a9.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-8fe5a54f.js} +2 -2
- package/dist/cjs/{_to-object-329a650b.js → _to-object-6de10e57.js} +8 -8
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-58c289d9.js} +32 -32
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-f474eacc.js} +2 -2
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-c88be878.js} +6 -6
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-0cb76d99.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/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-c2573ffd.js} +6 -6
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-60837c34.js → extends-29bdbc6d.js} +8 -7
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +135 -71
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +46 -46
- package/dist/cjs/{getTargeting-3e45e4d4.js → getTargeting-be6168ad.js} +8 -17
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-80e98193.js → index-060c5d65.js} +438 -245
- package/dist/cjs/index-50be6759.js +105 -0
- 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-99edf08a.js → index-f86bb269.js} +44 -45
- package/dist/cjs/{index-44481153.js → index-fc2f1ca2.js} +42 -488
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-00a6aade.js} +1 -1
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-2bb721c8.js} +2 -2
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-c1e16606.js} +1 -1
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-f27f80d9.js} +1 -1
- package/dist/cjs/index.js +139 -137
- package/dist/cjs/{inherits-87492b40.js → inherits-c2065b95.js} +22 -19
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/keys-7f2c2108.js +25 -0
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-f0783643.js} +58 -10
- package/dist/cjs/main-f1c77adb.js +973 -0
- 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-5d1bc3b3.js} +14 -14
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/stringify-c9ac1214.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-ddb70795.js} +9 -9
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/typeof-1358762e.js +33 -0
- package/dist/cjs/{typeof-9d7f610f.js → typeof-88a668c5.js} +35 -35
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-b2b9092f.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-46657b5c.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +27 -26
- package/dist/esm/AD300x250x600.js +27 -26
- package/dist/esm/AD728x90.js +30 -29
- package/dist/esm/ADFloatingFooter.js +29 -28
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +29 -28
- package/dist/esm/{ADInfeed-4096aff2.js → ADInfeed-4bf3b2f9.js} +9 -9
- package/dist/esm/ADSkyscraper.js +29 -28
- package/dist/esm/ADSponsoredResources.js +29 -28
- package/dist/esm/ADWebcast.js +29 -28
- package/dist/esm/ADWelcome.js +30 -29
- package/dist/esm/{ADlgInfeed-8e4fcfbd.js → ADlgInfeed-a3377c4a.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +27 -94
- package/dist/esm/AdSlotsProvider.js +19 -28
- package/dist/esm/AlgoliaSearch.js +14108 -50
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +56 -56
- package/dist/esm/ArticleSeriesLandingPage.js +38 -37
- package/dist/esm/ArticleSeriesListing.js +57 -56
- package/dist/esm/Auth.js +554 -418
- package/dist/esm/AuthWrapper.js +1880 -28
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-30aeba69.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-c99c9a8d.js} +35 -35
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +80 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +27 -27
- package/dist/esm/Column3.js +52 -51
- package/dist/esm/ConferenceArticleCard.js +20 -20
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +79 -78
- package/dist/esm/DeckQueue.js +71 -70
- package/dist/esm/{Dfp-85c9513e.js → Dfp-2c43d2a0.js} +23 -22
- package/dist/esm/EventsDeck.js +88 -88
- package/dist/esm/ExternalResources.js +73 -73
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +35 -35
- package/dist/esm/GridContent.js +144 -261
- package/dist/esm/GridHero.js +37 -37
- package/dist/esm/GroupDeck.js +47 -47
- package/dist/esm/HamMagazine.js +105 -105
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +10 -10
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +69 -69
- package/dist/esm/HorizontalHero.js +23 -23
- package/dist/esm/IssueContentDeck.js +50 -50
- package/dist/esm/IssueDeck.js +47 -47
- package/dist/esm/IssueLanding.js +64 -64
- package/dist/esm/LeftNav.js +35 -34
- package/dist/esm/MasterDeck.js +66 -65
- package/dist/esm/MediaSeriesLanding.js +1073 -874
- package/dist/esm/NavDvm.js +56 -56
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +113 -113
- package/dist/esm/NavNative.js +109 -109
- package/dist/esm/OncliveHero.js +16 -16
- package/dist/esm/OncliveLargeHero.js +60 -60
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +114 -1305
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +40 -39
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +39 -39
- package/dist/esm/PublicationLanding.js +75 -75
- package/dist/esm/QueueDeckExpanded.js +276 -275
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +20 -20
- 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 +6 -6
- package/dist/esm/SeriesListingDeck.js +33 -32
- package/dist/esm/{SeriesSlider-05ecb544.js → SeriesSlider-5d5c08f4.js} +27 -27
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +32 -32
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-47815365.js → SocialSearchComponent-db963c3e.js} +29 -29
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +42 -42
- package/dist/esm/TaxonomyDescription.js +50 -50
- package/dist/esm/TemplateNormal.js +68 -67
- package/dist/esm/ThumbnailCard.js +14 -14
- package/dist/esm/Ustream.js +27 -27
- package/dist/esm/VerticalHero.js +14 -14
- package/dist/esm/VideoProgramLandingPage.js +64 -64
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +43 -42
- package/dist/esm/VideoSeriesListing.js +75 -76
- package/dist/esm/View.js +243 -325
- package/dist/esm/YahooHero.js +35 -35
- package/dist/esm/YoutubeGroup.js +47 -47
- package/dist/esm/{_is-array-58e95429.js → _is-array-3e99e06e.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-7e5e5ce2.js} +8 -8
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-f353c2a9.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-0f197f89.js} +2 -2
- package/dist/esm/{_to-object-a4107da3.js → _to-object-b50e61c3.js} +9 -9
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-7f8f9219.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
- package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-133dfacd.js} +2 -2
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-8af5f002.js → define-property-fe54dc9f.js} +6 -6
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-f5ff6f5a.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/{es6.string.iterator-c990c18c.js → es6.string.iterator-bc33758b.js} +7 -7
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/{extends-eb69e8ac.js → extends-60e0e1c6.js} +8 -8
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +135 -71
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +46 -46
- package/dist/esm/{getTargeting-9cb7e014.js → getTargeting-68291ce9.js} +8 -17
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -5
- package/dist/esm/{index-295b6942.js → index-01d53c17.js} +759 -565
- package/dist/esm/{index-51a80699.js → index-0dbff1d1.js} +16 -11
- package/dist/esm/{index-6c12bdd5.js → index-755f2cc2.js} +10 -10
- package/dist/esm/{index-fa2ffe86.js → index-79cfd25c.js} +44 -45
- package/dist/esm/index-98ca9cec.js +100 -0
- package/dist/esm/{index-1819118a.js → index-f0fc23eb.js} +44 -490
- package/dist/esm/{index.es-c6222053.js → index.es-a6137319.js} +5 -5
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-37268dca.js} +16 -16
- package/dist/esm/{index.esm-c6715e80.js → index.esm-9b042655.js} +1 -1
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-d4932dea.js} +1 -1
- package/dist/esm/{index.esm-3fdda599.js → index.esm-f6156a57.js} +1 -1
- package/dist/esm/index.js +135 -133
- package/dist/esm/{inherits-0d8cda6e.js → inherits-a41fe93f.js} +20 -20
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-8eda7a5c.js → keys-7a3adabf.js} +6 -6
- package/dist/esm/{lodash-ec8c6b48.js → lodash-f97fd99a.js} +58 -10
- package/dist/esm/main-d4165069.js +961 -0
- package/dist/esm/{moment-b6f49411.js → moment-bc12cb97.js} +1 -1
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-9be47857.js} +20 -20
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-be2f7a22.js} +14 -14
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-59c8f690.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-6d9a4616.js} +9 -9
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/typeof-2f07d0e8.js +30 -0
- package/dist/esm/{typeof-af9c50d8.js → typeof-a286cf0c.js} +35 -35
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-9a50644d.js → ustream-api-33a866b6.js} +4 -4
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-4109ff68.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/keys-a586b7a0.js +0 -25
- package/dist/cjs/main-7b5e57b0.js +0 -898
- package/dist/cjs/stringify-7c5aff47.js +0 -17
- package/dist/esm/main-747e7d25.js +0 -886
- 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/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 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 },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current\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 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 },\n articles[]{\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 },\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,13 @@
|
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.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 './es6.string.iterator-bc33758b.js';
|
|
6
|
+
import './_to-object-b50e61c3.js';
|
|
7
|
+
import './web.dom.iterable-4109ff68.js';
|
|
8
|
+
import './_library-528f1934.js';
|
|
9
|
+
import './core.get-iterator-method-133dfacd.js';
|
|
10
|
+
import './_iter-detect-7e5e5ce2.js';
|
|
11
11
|
|
|
12
12
|
var defaultParseOptions = {
|
|
13
13
|
decodeValues: true,
|
|
@@ -29,9 +29,20 @@ function parseString(setCookieValue, options) {
|
|
|
29
29
|
? Object.assign({}, defaultParseOptions, options)
|
|
30
30
|
: defaultParseOptions;
|
|
31
31
|
|
|
32
|
+
try {
|
|
33
|
+
value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value
|
|
34
|
+
} catch (e) {
|
|
35
|
+
console.error(
|
|
36
|
+
"set-cookie-parser encountered an error while decoding a cookie with value '" +
|
|
37
|
+
value +
|
|
38
|
+
"'. Set options.decodeValues to false to disable this feature.",
|
|
39
|
+
e
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
32
43
|
var cookie = {
|
|
33
44
|
name: name, // grab everything before the first =
|
|
34
|
-
value:
|
|
45
|
+
value: value,
|
|
35
46
|
};
|
|
36
47
|
|
|
37
48
|
parts.forEach(function (part) {
|
|
@@ -202,7 +213,7 @@ setCookie.parse = parse_1;
|
|
|
202
213
|
setCookie.parseString = parseString_1;
|
|
203
214
|
setCookie.splitCookiesString = splitCookiesString_1;
|
|
204
215
|
|
|
205
|
-
var
|
|
216
|
+
var utils = createCommonjsModule(function (module, exports) {
|
|
206
217
|
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
207
218
|
__assign = Object.assign || function(t) {
|
|
208
219
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -215,10 +226,33 @@ var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
215
226
|
return __assign.apply(this, arguments);
|
|
216
227
|
};
|
|
217
228
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
218
|
-
exports.
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
229
|
+
exports.areCookiesEqual = exports.hasSameProperties = exports.createCookie = exports.isBrowser = void 0;
|
|
230
|
+
/**
|
|
231
|
+
* Tells whether we are in a browser or server.
|
|
232
|
+
*/
|
|
233
|
+
function isBrowser() {
|
|
234
|
+
return typeof window !== 'undefined';
|
|
235
|
+
}
|
|
236
|
+
exports.isBrowser = isBrowser;
|
|
237
|
+
/**
|
|
238
|
+
* Create an instance of the Cookie interface
|
|
239
|
+
*/
|
|
240
|
+
function createCookie(name, value, options) {
|
|
241
|
+
var sameSite = options.sameSite;
|
|
242
|
+
if (sameSite === true) {
|
|
243
|
+
sameSite = 'strict';
|
|
244
|
+
}
|
|
245
|
+
if (sameSite === undefined || sameSite === false) {
|
|
246
|
+
sameSite = 'lax';
|
|
247
|
+
}
|
|
248
|
+
var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
|
|
249
|
+
delete cookieToSet.encode;
|
|
250
|
+
return __assign({ name: name, value: value }, cookieToSet);
|
|
251
|
+
}
|
|
252
|
+
exports.createCookie = createCookie;
|
|
253
|
+
/**
|
|
254
|
+
* Tells whether given objects have the same properties.
|
|
255
|
+
*/
|
|
222
256
|
function hasSameProperties(a, b) {
|
|
223
257
|
var aProps = Object.getOwnPropertyNames(a);
|
|
224
258
|
var bProps = Object.getOwnPropertyNames(b);
|
|
@@ -233,8 +267,9 @@ function hasSameProperties(a, b) {
|
|
|
233
267
|
}
|
|
234
268
|
return true;
|
|
235
269
|
}
|
|
270
|
+
exports.hasSameProperties = hasSameProperties;
|
|
236
271
|
/**
|
|
237
|
-
* Compare the cookie and return true if the cookies
|
|
272
|
+
* Compare the cookie and return true if the cookies have equivalent
|
|
238
273
|
* options and the cookies would be overwritten in the browser storage.
|
|
239
274
|
*
|
|
240
275
|
* @param a first Cookie for comparison
|
|
@@ -247,71 +282,109 @@ function areCookiesEqual(a, b) {
|
|
|
247
282
|
}
|
|
248
283
|
return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
|
|
249
284
|
}
|
|
285
|
+
exports.areCookiesEqual = areCookiesEqual;
|
|
286
|
+
/* Functions */
|
|
287
|
+
//# sourceMappingURL=utils.js.map
|
|
288
|
+
});
|
|
289
|
+
|
|
290
|
+
unwrapExports(utils);
|
|
291
|
+
utils.areCookiesEqual;
|
|
292
|
+
utils.hasSameProperties;
|
|
293
|
+
utils.createCookie;
|
|
294
|
+
utils.isBrowser;
|
|
295
|
+
|
|
296
|
+
var dist = createCommonjsModule(function (module, exports) {
|
|
297
|
+
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
298
|
+
__assign = Object.assign || function(t) {
|
|
299
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
300
|
+
s = arguments[i];
|
|
301
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
302
|
+
t[p] = s[p];
|
|
303
|
+
}
|
|
304
|
+
return t;
|
|
305
|
+
};
|
|
306
|
+
return __assign.apply(this, arguments);
|
|
307
|
+
};
|
|
308
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
309
|
+
exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
250
313
|
/**
|
|
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
314
|
* Parses cookies.
|
|
272
315
|
*
|
|
273
|
-
* @param ctx
|
|
274
|
-
* @param options
|
|
316
|
+
* @param ctx NextJS page or API context, express context, null or undefined.
|
|
317
|
+
* @param options Options that we pass down to `cookie` library.
|
|
275
318
|
*/
|
|
276
319
|
function parseCookies(ctx, options) {
|
|
277
|
-
|
|
320
|
+
var _a, _b;
|
|
321
|
+
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
322
|
return cookie.parse(ctx.req.headers.cookie, options);
|
|
279
323
|
}
|
|
280
|
-
if (isBrowser()) {
|
|
324
|
+
if (utils.isBrowser()) {
|
|
281
325
|
return cookie.parse(document.cookie, options);
|
|
282
326
|
}
|
|
283
327
|
return {};
|
|
284
328
|
}
|
|
285
329
|
exports.parseCookies = parseCookies;
|
|
286
330
|
/**
|
|
287
|
-
*
|
|
288
331
|
* Sets a cookie.
|
|
289
332
|
*
|
|
290
|
-
* @param ctx
|
|
291
|
-
* @param name
|
|
292
|
-
* @param value
|
|
293
|
-
* @param options
|
|
333
|
+
* @param ctx NextJS page or API context, express context, null or undefined.
|
|
334
|
+
* @param name The name of your cookie.
|
|
335
|
+
* @param value The value of your cookie.
|
|
336
|
+
* @param options Options that we pass down to `cookie` library.
|
|
294
337
|
*/
|
|
295
338
|
function setCookie$1(ctx, name, value, options) {
|
|
296
|
-
|
|
339
|
+
var _a, _b;
|
|
340
|
+
if (options === void 0) { options = {}; }
|
|
341
|
+
// SSR
|
|
342
|
+
if (((_a = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _a === void 0 ? void 0 : _a.getHeader) && ctx.res.setHeader) {
|
|
343
|
+
// Check if response has finished and warn about it.
|
|
344
|
+
if ((_b = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _b === void 0 ? void 0 : _b.finished) {
|
|
345
|
+
console.warn("Not setting \"" + name + "\" cookie. Response has finished.");
|
|
346
|
+
console.warn("You should set cookie before res.send()");
|
|
347
|
+
return {};
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Load existing cookies from the header and parse them.
|
|
351
|
+
*/
|
|
297
352
|
var cookies = ctx.res.getHeader('Set-Cookie') || [];
|
|
298
353
|
if (typeof cookies === 'string')
|
|
299
354
|
cookies = [cookies];
|
|
300
355
|
if (typeof cookies === 'number')
|
|
301
356
|
cookies = [];
|
|
302
|
-
|
|
357
|
+
/**
|
|
358
|
+
* Parse cookies but ignore values - we've already encoded
|
|
359
|
+
* them in the previous call.
|
|
360
|
+
*/
|
|
361
|
+
var parsedCookies = setCookie.parse(cookies, {
|
|
362
|
+
decodeValues: false,
|
|
363
|
+
});
|
|
364
|
+
/**
|
|
365
|
+
* We create the new cookie and make sure that none of
|
|
366
|
+
* the existing cookies match it.
|
|
367
|
+
*/
|
|
368
|
+
var newCookie_1 = utils.createCookie(name, value, options);
|
|
303
369
|
var cookiesToSet_1 = [];
|
|
304
370
|
parsedCookies.forEach(function (parsedCookie) {
|
|
305
|
-
if (!areCookiesEqual(parsedCookie,
|
|
306
|
-
|
|
371
|
+
if (!utils.areCookiesEqual(parsedCookie, newCookie_1)) {
|
|
372
|
+
/**
|
|
373
|
+
* We serialize the cookie back to the original format
|
|
374
|
+
* if it isn't the same as the new one.
|
|
375
|
+
*/
|
|
376
|
+
var serializedCookie = cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({
|
|
377
|
+
// we prevent reencoding by default, but you might override it
|
|
378
|
+
encode: function (val) { return val; } }, parsedCookie));
|
|
379
|
+
cookiesToSet_1.push(serializedCookie);
|
|
307
380
|
}
|
|
308
381
|
});
|
|
309
382
|
cookiesToSet_1.push(cookie.serialize(name, value, options));
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
}
|
|
383
|
+
// Update the header.
|
|
384
|
+
ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
|
|
313
385
|
}
|
|
314
|
-
|
|
386
|
+
// Browser
|
|
387
|
+
if (utils.isBrowser()) {
|
|
315
388
|
if (options && options.httpOnly) {
|
|
316
389
|
throw new Error('Can not set a httpOnly cookie in the browser.');
|
|
317
390
|
}
|
|
@@ -321,40 +394,31 @@ function setCookie$1(ctx, name, value, options) {
|
|
|
321
394
|
}
|
|
322
395
|
exports.setCookie = setCookie$1;
|
|
323
396
|
/**
|
|
324
|
-
*
|
|
325
397
|
* Destroys a cookie with a particular name.
|
|
326
398
|
*
|
|
327
|
-
* @param ctx
|
|
328
|
-
* @param name
|
|
329
|
-
* @param options
|
|
399
|
+
* @param ctx NextJS page or API context, express context, null or undefined.
|
|
400
|
+
* @param name Cookie name.
|
|
401
|
+
* @param options Options that we pass down to `cookie` library.
|
|
330
402
|
*/
|
|
331
403
|
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 {};
|
|
404
|
+
/**
|
|
405
|
+
* We forward the request destroy to setCookie function
|
|
406
|
+
* as it is the same function with modified maxAge value.
|
|
407
|
+
*/
|
|
408
|
+
return setCookie$1(ctx, name, '', __assign(__assign({}, (options || {})), { maxAge: -1 }));
|
|
346
409
|
}
|
|
347
410
|
exports.destroyCookie = destroyCookie;
|
|
411
|
+
/* Utility Exports */
|
|
348
412
|
exports.default = {
|
|
349
413
|
set: setCookie$1,
|
|
350
414
|
get: parseCookies,
|
|
351
415
|
destroy: destroyCookie,
|
|
352
416
|
};
|
|
353
|
-
|
|
417
|
+
//# sourceMappingURL=index.js.map
|
|
354
418
|
});
|
|
355
419
|
|
|
356
420
|
unwrapExports(dist);
|
|
357
|
-
|
|
421
|
+
dist.destroyCookie;
|
|
358
422
|
var dist_2 = dist.setCookie;
|
|
359
423
|
var dist_3 = dist.parseCookies;
|
|
360
424
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
1
2
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
3
|
-
import './
|
|
3
|
+
import './es6.string.iterator-bc33758b.js';
|
|
4
|
+
import './_to-object-b50e61c3.js';
|
|
5
|
+
import './web.dom.iterable-4109ff68.js';
|
|
4
6
|
import './_library-528f1934.js';
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
7
|
-
import './web.dom.iterable-4439f05a.js';
|
|
8
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
7
|
+
import './core.get-iterator-method-133dfacd.js';
|
|
8
|
+
import './_iter-detect-7e5e5ce2.js';
|
|
9
9
|
|
|
10
10
|
var _this = undefined;
|
|
11
11
|
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import './_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 './toConsumableArray-43aa614d.js';
|
|
7
|
-
import './core.get-iterator-method-e1de7503.js';
|
|
8
|
-
import './_object-pie-33c40e79.js';
|
|
9
|
-
import './extends-eb69e8ac.js';
|
|
10
|
-
import './_object-sap-964b6feb.js';
|
|
11
|
-
import './inherits-0d8cda6e.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';
|
|
16
1
|
import 'react';
|
|
17
|
-
|
|
2
|
+
export { g as default } from './index-01d53c17.js';
|
|
3
|
+
import './BlockContent-c99c9a8d.js';
|
|
4
|
+
import './entities-932b50cf.js';
|
|
5
|
+
import './slicedToArray-be2f7a22.js';
|
|
6
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
7
|
+
import './web.dom.iterable-4109ff68.js';
|
|
8
|
+
import './es6.string.iterator-bc33758b.js';
|
|
9
|
+
import './_to-object-b50e61c3.js';
|
|
10
|
+
import './core.get-iterator-method-133dfacd.js';
|
|
11
|
+
import 'react-bootstrap';
|
|
12
|
+
import './urlFor.js';
|
|
13
|
+
import './index-0dbff1d1.js';
|
|
14
|
+
import './index-f0fc23eb.js';
|
|
15
|
+
import './events-6c3a7a63.js';
|
|
18
16
|
import 'prop-types';
|
|
19
|
-
import 'react-bootstrap/Row';
|
|
20
|
-
import 'react-bootstrap/Col';
|
|
21
|
-
import './moment-b6f49411.js';
|
|
22
17
|
import 'next/router';
|
|
23
|
-
import './isSymbol-1981418f.js';
|
|
24
|
-
import './debounce-9207d8ee.js';
|
|
25
|
-
import './toNumber-2f7a84cd.js';
|
|
26
|
-
import 'react-dom';
|
|
27
|
-
import './index-51a80699.js';
|
|
28
|
-
import './urlFor.js';
|
|
29
|
-
import './index-6c12bdd5.js';
|
|
30
|
-
import './main-747e7d25.js';
|
|
31
|
-
import './entities-7cc3bf45.js';
|
|
32
|
-
import './slicedToArray-641f241f.js';
|
|
33
|
-
import './stringify-4330ccdc.js';
|
|
34
|
-
import './asyncToGenerator-fc1c2e29.js';
|
|
35
|
-
import './Segment.js';
|
|
36
|
-
import './Beam.js';
|
|
37
|
-
import './AdSlot.js';
|
|
38
|
-
import 'react-bootstrap/Button';
|
|
39
|
-
import './BlockContent-d05b5b23.js';
|
|
40
18
|
import './index-c7e2ac95.js';
|
|
41
|
-
import './
|
|
19
|
+
import './util-3ab476bf.js';
|
|
20
|
+
import './Beam.js';
|
|
21
|
+
import './stringify-59c8f690.js';
|
|
22
|
+
import './asyncToGenerator-7f8f9219.js';
|
|
23
|
+
import './_library-528f1934.js';
|
|
24
|
+
import './_iter-detect-7e5e5ce2.js';
|
|
25
|
+
import './Segment.js';
|
|
26
|
+
import './main-d4165069.js';
|
|
27
|
+
import './extends-60e0e1c6.js';
|
|
28
|
+
import './_object-pie-133f504a.js';
|
|
29
|
+
import './index-755f2cc2.js';
|
|
30
|
+
import 'react-dom';
|
|
31
|
+
import './typeof-a286cf0c.js';
|
|
32
|
+
import './_is-array-3e99e06e.js';
|
|
33
|
+
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
42
34
|
import './GroupDeck.js';
|
|
43
|
-
import '
|
|
44
|
-
import './
|
|
45
|
-
import './
|
|
46
|
-
export { g as default } from './index-295b6942.js';
|
|
47
|
-
import './util-7700fc59.js';
|
|
48
|
-
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
35
|
+
import './smoothscroll-fa4e3f8c.js';
|
|
36
|
+
import './moment-bc12cb97.js';
|
|
37
|
+
import './SocialShare.js';
|
|
49
38
|
import 'next/head';
|
|
50
39
|
import 'react-share';
|
|
51
|
-
import './
|
|
52
|
-
import './
|
|
40
|
+
import './_object-to-array-0f197f89.js';
|
|
41
|
+
import './toConsumableArray-6d9a4616.js';
|
|
53
42
|
import 'react-bootstrap/Pagination';
|
|
43
|
+
import 'react-bootstrap/Button';
|
|
44
|
+
import './AdSlot.js';
|
|
45
|
+
import './debounce-533d9748.js';
|
|
46
|
+
import './isSymbol-a7e9aafe.js';
|
|
47
|
+
import './toNumber-5aeba6e7.js';
|
|
48
|
+
import 'react-bootstrap/Row';
|
|
49
|
+
import 'react-bootstrap/Col';
|
|
50
|
+
import './inherits-a41fe93f.js';
|
|
51
|
+
import './_object-sap-f353c2a9.js';
|
|
52
|
+
import './define-property-fe54dc9f.js';
|
|
53
|
+
import './index.esm-f6156a57.js';
|
|
54
|
+
import './iconBase-ccc56b97.js';
|
|
54
55
|
import 'react-bootstrap/Figure';
|
|
55
|
-
import 'react-script-tag';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { _ as
|
|
1
|
+
import { _ as _extends } from './extends-60e0e1c6.js';
|
|
2
|
+
import { _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
3
3
|
|
|
4
4
|
var getContentPlacementUrl = function getContentPlacementUrl(cp) {
|
|
5
5
|
var cp_url = '';
|
|
@@ -11,7 +11,7 @@ var getContentPlacementUrl = function getContentPlacementUrl(cp) {
|
|
|
11
11
|
cp_url += (cp_url === '' ? '' : '/') + cp.parent;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
cp_url += (cp_url === '' ? '' : '/') +
|
|
14
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.path;
|
|
15
15
|
|
|
16
16
|
return cp_url;
|
|
17
17
|
};
|
|
@@ -90,6 +90,9 @@ var getTargeting = function getTargeting(props) {
|
|
|
90
90
|
if (document_groups && prevUrl && prevUrl.length) {
|
|
91
91
|
document_groups.forEach(function (item) {
|
|
92
92
|
var path = item.path;
|
|
93
|
+
if (cpModificationRequired) {
|
|
94
|
+
path = getContentPlacementUrl(item);
|
|
95
|
+
}
|
|
93
96
|
|
|
94
97
|
var previous_url_to_check = prevUrl;
|
|
95
98
|
if (prevUrl.includes('?')) {
|
|
@@ -97,14 +100,6 @@ var getTargeting = function getTargeting(props) {
|
|
|
97
100
|
}
|
|
98
101
|
|
|
99
102
|
if (previous_url_to_check.endsWith(path)) {
|
|
100
|
-
if (item.adTargetingURL) {
|
|
101
|
-
path = item.adTargetingURL;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
if (cpModificationRequired) {
|
|
105
|
-
path = getContentPlacementUrl(item);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
103
|
document_group_urls.push(path);
|
|
109
104
|
}
|
|
110
105
|
});
|
|
@@ -113,15 +108,11 @@ var getTargeting = function getTargeting(props) {
|
|
|
113
108
|
if (document_groups) {
|
|
114
109
|
if (document_group_urls.length === 0) {
|
|
115
110
|
document_group_urls = document_groups.map(function (item) {
|
|
116
|
-
return cpModificationRequired ? getContentPlacementUrl(item) : item.
|
|
111
|
+
return cpModificationRequired ? getContentPlacementUrl(item) : item.path;
|
|
117
112
|
});
|
|
118
113
|
}
|
|
119
114
|
} else {
|
|
120
|
-
|
|
121
|
-
if (article.documentGroup && article.documentGroup.adTargetingURL) {
|
|
122
|
-
path = article.documentGroup.adTargetingURL;
|
|
123
|
-
}
|
|
124
|
-
document_group_urls = [path];
|
|
115
|
+
document_group_urls = [document_group];
|
|
125
116
|
}
|
|
126
117
|
|
|
127
118
|
var articleKeywords = [].concat(_toConsumableArray(internalTag), _toConsumableArray(userDefinedTag), _toConsumableArray(SponsorshipTag), _toConsumableArray(seoTag));
|
package/dist/esm/getTargeting.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import './extends-60e0e1c6.js';
|
|
2
|
+
import './toConsumableArray-6d9a4616.js';
|
|
3
|
+
export { g as default } from './getTargeting-68291ce9.js';
|
|
1
4
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
5
|
-
import './
|
|
6
|
-
import './core.get-iterator-method-
|
|
7
|
-
import './_object-pie-33c40e79.js';
|
|
8
|
-
import './extends-eb69e8ac.js';
|
|
9
|
-
export { g as default } from './getTargeting-9cb7e014.js';
|
|
5
|
+
import './_to-object-b50e61c3.js';
|
|
6
|
+
import './_object-pie-133f504a.js';
|
|
7
|
+
import './es6.string.iterator-bc33758b.js';
|
|
8
|
+
import './_iter-detect-7e5e5ce2.js';
|
|
9
|
+
import './core.get-iterator-method-133dfacd.js';
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
1
|
+
import * as React from 'react';
|
|
4
2
|
|
|
5
3
|
var DefaultContext = {
|
|
6
4
|
color: undefined,
|
|
@@ -80,5 +78,4 @@ function IconBase(props) {
|
|
|
80
78
|
}) : elem(DefaultContext);
|
|
81
79
|
}
|
|
82
80
|
|
|
83
|
-
|
|
84
|
-
exports.IconContext = IconContext;
|
|
81
|
+
export { GenIcon as G, IconContext as I };
|