@mjhls/mjh-framework 1.0.794 → 1.0.795-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +29 -30
- package/dist/cjs/AD300x250x600.js +29 -30
- package/dist/cjs/AD728x90.js +32 -33
- package/dist/cjs/ADFloatingFooter.js +31 -32
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +31 -32
- package/dist/cjs/{ADInfeed-7cf51090.js → ADInfeed-bb09e44c.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +31 -32
- package/dist/cjs/ADSponsoredResources.js +31 -32
- package/dist/cjs/ADWebcast.js +31 -32
- package/dist/cjs/ADWelcome.js +32 -33
- package/dist/cjs/{ADlgInfeed-bf24708d.js → ADlgInfeed-fa91dbda.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +34 -35
- package/dist/cjs/AdSlotsProvider.js +16 -17
- package/dist/cjs/AlphabeticList.js +25 -26
- package/dist/cjs/ArticleCarousel.js +23 -24
- package/dist/cjs/ArticleProgramLandingPage.js +56 -57
- package/dist/cjs/ArticleSeriesLandingPage.js +40 -41
- package/dist/cjs/ArticleSeriesListing.js +60 -61
- package/dist/cjs/Auth.js +462 -686
- package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-091a991f.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +33 -36
- package/dist/cjs/Column3.js +58 -61
- package/dist/cjs/ConferenceArticleCard.js +23 -24
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +95 -99
- package/dist/cjs/DeckQueue.js +88 -92
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-946b8c39.js} +33 -34
- package/dist/cjs/EventsDeck.js +135 -142
- package/dist/cjs/ExternalResources.js +79 -80
- package/dist/cjs/Feature.js +25 -27
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +178 -182
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +58 -59
- package/dist/cjs/HamMagazine.js +131 -136
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +69 -70
- package/dist/cjs/HorizontalHero.js +26 -27
- package/dist/cjs/IssueContentDeck.js +72 -77
- package/dist/cjs/IssueDeck.js +71 -76
- package/dist/cjs/IssueLanding.js +42 -43
- package/dist/cjs/LeftNav.js +38 -40
- package/dist/cjs/MasterDeck.js +71 -72
- package/dist/cjs/MediaSeriesLanding.js +956 -966
- package/dist/cjs/NavDvm.js +74 -79
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +138 -143
- package/dist/cjs/NavNative.js +130 -138
- package/dist/cjs/NavNormal.js +48 -53
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +66 -67
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +108 -109
- package/dist/cjs/PdfDownload.js +9 -10
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +41 -42
- package/dist/cjs/PubToc.js +15 -16
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +108 -112
- package/dist/cjs/QueueDeckExpanded.js +294 -294
- package/dist/cjs/RecentNews.js +24 -25
- package/dist/cjs/RelatedContent.js +24 -25
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +38 -38
- package/dist/cjs/{SeriesSlider-2db54929.js → SeriesSlider-4abb21b4.js} +37 -38
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +36 -37
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-9cb50ae4.js → SocialSearchComponent-8dd468fd.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +58 -63
- package/dist/cjs/TaxonomyDescription.js +53 -54
- package/dist/cjs/TemplateNormal.js +75 -76
- package/dist/cjs/ThumbnailCard.js +20 -22
- package/dist/cjs/Ustream.js +27 -28
- package/dist/cjs/VerticalHero.js +17 -18
- package/dist/cjs/VideoProgramLandingPage.js +72 -76
- package/dist/cjs/VideoSeriesCard.js +31 -32
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +48 -49
- package/dist/cjs/VideoSeriesListing.js +77 -78
- package/dist/cjs/View.js +274 -283
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +62 -63
- package/dist/cjs/{_is-array-6128bd56.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-60b2f026.js} +8 -8
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-5762f850.js} +2 -2
- package/dist/cjs/{_to-object-6de10e57.js → _to-object-329a650b.js} +8 -8
- package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-140e5f89.js} +32 -32
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-c88be878.js → define-property-f4d12f4e.js} +6 -6
- package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-cc0bbaa4.js} +6 -6
- package/dist/cjs/{extends-29bdbc6d.js → extends-0a918631.js} +7 -7
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +76 -140
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/{getTargeting-a100d6e5.js → getTargeting-021d644c.js} +3 -3
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
- package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
- package/dist/cjs/{index-0e4427c8.js → index-8bf6c863.js} +11 -12
- package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
- package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
- package/dist/cjs/{index-08b35e31.js → index-f05824b5.js} +1018 -1013
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-4d410430.js} +21 -21
- package/dist/cjs/{index.esm-9225638f.js → index.esm-66ffa47a.js} +10 -5
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-90433435.js} +16 -7
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-ff47db6f.js} +13 -6
- package/dist/cjs/index.js +160 -163
- package/dist/cjs/{inherits-c2065b95.js → inherits-452ff02c.js} +19 -19
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/keys-a586b7a0.js +25 -0
- package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-8f385299.js} +14 -14
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/stringify-7c5aff47.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-9a3476fe.js} +9 -9
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-88a668c5.js → typeof-725500bc.js} +36 -36
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +23 -23
- package/dist/esm/AD300x250x600.js +23 -23
- package/dist/esm/AD728x90.js +26 -26
- package/dist/esm/ADFloatingFooter.js +22 -22
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +22 -22
- package/dist/esm/{ADInfeed-f7d00a9a.js → ADInfeed-ab8f9325.js} +6 -6
- package/dist/esm/ADSkyscraper.js +22 -22
- package/dist/esm/ADSponsoredResources.js +22 -22
- package/dist/esm/ADWebcast.js +22 -22
- package/dist/esm/ADWelcome.js +19 -19
- package/dist/esm/{ADlgInfeed-db64f46d.js → ADlgInfeed-49f41f83.js} +4 -4
- package/dist/esm/AccordionPanel.js +8 -8
- package/dist/esm/AdSlot.js +23 -23
- package/dist/esm/AdSlotsProvider.js +12 -12
- package/dist/esm/AlphabeticList.js +10 -10
- package/dist/esm/ArticleCarousel.js +17 -17
- package/dist/esm/ArticleProgramLandingPage.js +47 -47
- package/dist/esm/ArticleSeriesLandingPage.js +32 -32
- package/dist/esm/ArticleSeriesListing.js +33 -33
- package/dist/esm/Auth.js +375 -595
- package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-34b16174.js} +1 -1
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-e9b4ddcf.js} +34 -34
- package/dist/esm/Breadcrumbs.js +7 -7
- package/dist/esm/CMEDeck.js +24 -24
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +21 -21
- package/dist/esm/Column3.js +38 -38
- package/dist/esm/ConferenceArticleCard.js +7 -7
- package/dist/esm/DeckContent.js +48 -48
- package/dist/esm/DeckQueue.js +47 -47
- package/dist/esm/{Dfp-be030f2a.js → Dfp-965b3873.js} +14 -14
- package/dist/esm/EventsDeck.js +50 -50
- package/dist/esm/ExternalResources.js +47 -47
- package/dist/esm/Feature.js +4 -4
- package/dist/esm/ForbesHero.js +11 -11
- package/dist/esm/GridContent.js +80 -80
- package/dist/esm/GridHero.js +12 -12
- package/dist/esm/GroupDeck.js +13 -13
- package/dist/esm/HamMagazine.js +29 -29
- package/dist/esm/Hero.js +3 -3
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +44 -44
- package/dist/esm/HorizontalHero.js +5 -5
- package/dist/esm/IssueContentDeck.js +26 -26
- package/dist/esm/IssueDeck.js +36 -36
- package/dist/esm/IssueLanding.js +35 -35
- package/dist/esm/LeftNav.js +21 -21
- package/dist/esm/MasterDeck.js +36 -36
- package/dist/esm/MediaSeriesLanding.js +494 -501
- package/dist/esm/NavDvm.js +16 -16
- package/dist/esm/NavMagazine.js +34 -34
- package/dist/esm/NavNative.js +34 -34
- package/dist/esm/NavNormal.js +18 -18
- package/dist/esm/OncliveHero.js +5 -4
- package/dist/esm/OncliveLargeHero.js +12 -12
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +56 -56
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +6 -6
- package/dist/esm/PubSection.js +33 -33
- package/dist/esm/PubToc.js +8 -8
- package/dist/esm/PublicationDeck.js +23 -23
- package/dist/esm/PublicationLanding.js +49 -49
- package/dist/esm/QueueDeckExpanded.js +37 -37
- package/dist/esm/RecentNews.js +6 -6
- package/dist/esm/RelatedContent.js +6 -6
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +8 -8
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +19 -19
- package/dist/esm/{SeriesSlider-c8477bf3.js → SeriesSlider-36be7223.js} +10 -10
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +15 -15
- package/dist/esm/{SocialSearchComponent-09775683.js → SocialSearchComponent-719f230f.js} +12 -12
- package/dist/esm/TaxonomyCard.js +24 -24
- package/dist/esm/TaxonomyDescription.js +44 -44
- package/dist/esm/TemplateNormal.js +50 -50
- package/dist/esm/ThumbnailCard.js +6 -6
- package/dist/esm/Ustream.js +11 -11
- package/dist/esm/VerticalHero.js +3 -3
- package/dist/esm/VideoProgramLandingPage.js +52 -52
- package/dist/esm/VideoSeriesCard.js +12 -12
- package/dist/esm/VideoSeriesFilter.js +9 -9
- package/dist/esm/VideoSeriesLandingPage.js +37 -37
- package/dist/esm/VideoSeriesListing.js +34 -34
- package/dist/esm/View.js +108 -113
- package/dist/esm/YahooHero.js +14 -14
- package/dist/esm/YoutubeGroup.js +21 -21
- package/dist/esm/{_is-array-3e99e06e.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-5d49a330.js} +8 -8
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-7e804fce.js} +2 -2
- package/dist/esm/{_to-object-b50e61c3.js → _to-object-a4107da3.js} +9 -9
- package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-fc1c2e29.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
- package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-fe54dc9f.js → define-property-8af5f002.js} +6 -6
- package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-c990c18c.js} +7 -7
- package/dist/esm/{extends-60e0e1c6.js → extends-6f2fcc99.js} +7 -7
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +71 -135
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/{getTargeting-05c216d6.js → getTargeting-82e86707.js} +2 -2
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-c2daf449.js → index-41b5c632.js} +651 -639
- package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
- package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
- package/dist/esm/{index-5cc7b406.js → index-a9e53f80.js} +3 -3
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
- package/dist/esm/{index.esm-f6156a57.js → index.esm-29e48d38.js} +16 -7
- package/dist/esm/{index.esm-e874e770.js → index.esm-b08f4b04.js} +10 -5
- package/dist/esm/{index.esm-d4932dea.js → index.esm-cf08bf18.js} +13 -6
- package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
- package/dist/esm/index.js +117 -117
- package/dist/esm/{inherits-a41fe93f.js → inherits-cf8dde54.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-7a3adabf.js → keys-8eda7a5c.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-e4a934b2.js +851 -0
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
- package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-641f241f.js} +14 -14
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-4330ccdc.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-43aa614d.js} +9 -9
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-a286cf0c.js → typeof-6435ba1c.js} +36 -36
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/keys-7f2c2108.js +0 -25
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/cjs/stringify-c9ac1214.js +0 -17
- package/dist/esm/main-d4165069.js +0 -961
- package/dist/esm/stringify-59c8f690.js +0 -15
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
2
1
|
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';
|
|
3
9
|
import { c as cookie } from './index-db3bb315.js';
|
|
4
10
|
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,20 +29,9 @@ 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
|
-
|
|
43
32
|
var cookie = {
|
|
44
33
|
name: name, // grab everything before the first =
|
|
45
|
-
value: value,
|
|
34
|
+
value: options.decodeValues ? decodeURIComponent(value) : value, // decode cookie value
|
|
46
35
|
};
|
|
47
36
|
|
|
48
37
|
parts.forEach(function (part) {
|
|
@@ -213,7 +202,7 @@ setCookie.parse = parse_1;
|
|
|
213
202
|
setCookie.parseString = parseString_1;
|
|
214
203
|
setCookie.splitCookiesString = splitCookiesString_1;
|
|
215
204
|
|
|
216
|
-
var
|
|
205
|
+
var dist = createCommonjsModule(function (module, exports) {
|
|
217
206
|
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
218
207
|
__assign = Object.assign || function(t) {
|
|
219
208
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -226,33 +215,10 @@ var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
226
215
|
return __assign.apply(this, arguments);
|
|
227
216
|
};
|
|
228
217
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
229
|
-
exports.
|
|
230
|
-
|
|
231
|
-
|
|
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
|
-
*/
|
|
218
|
+
exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
var isBrowser = function () { return typeof window !== 'undefined'; };
|
|
256
222
|
function hasSameProperties(a, b) {
|
|
257
223
|
var aProps = Object.getOwnPropertyNames(a);
|
|
258
224
|
var bProps = Object.getOwnPropertyNames(b);
|
|
@@ -267,9 +233,8 @@ function hasSameProperties(a, b) {
|
|
|
267
233
|
}
|
|
268
234
|
return true;
|
|
269
235
|
}
|
|
270
|
-
exports.hasSameProperties = hasSameProperties;
|
|
271
236
|
/**
|
|
272
|
-
* Compare the cookie and return true if the cookies
|
|
237
|
+
* Compare the cookie and return true if the cookies has equivalent
|
|
273
238
|
* options and the cookies would be overwritten in the browser storage.
|
|
274
239
|
*
|
|
275
240
|
* @param a first Cookie for comparison
|
|
@@ -282,109 +247,71 @@ function areCookiesEqual(a, b) {
|
|
|
282
247
|
}
|
|
283
248
|
return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
|
|
284
249
|
}
|
|
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
|
-
|
|
313
250
|
/**
|
|
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
|
+
*
|
|
314
271
|
* Parses cookies.
|
|
315
272
|
*
|
|
316
|
-
* @param ctx
|
|
317
|
-
* @param options
|
|
273
|
+
* @param ctx
|
|
274
|
+
* @param options
|
|
318
275
|
*/
|
|
319
276
|
function parseCookies(ctx, options) {
|
|
320
|
-
|
|
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) {
|
|
277
|
+
if (ctx && ctx.req && ctx.req.headers && ctx.req.headers.cookie) {
|
|
322
278
|
return cookie.parse(ctx.req.headers.cookie, options);
|
|
323
279
|
}
|
|
324
|
-
if (
|
|
280
|
+
if (isBrowser()) {
|
|
325
281
|
return cookie.parse(document.cookie, options);
|
|
326
282
|
}
|
|
327
283
|
return {};
|
|
328
284
|
}
|
|
329
285
|
exports.parseCookies = parseCookies;
|
|
330
286
|
/**
|
|
287
|
+
*
|
|
331
288
|
* Sets a cookie.
|
|
332
289
|
*
|
|
333
|
-
* @param ctx
|
|
334
|
-
* @param name
|
|
335
|
-
* @param value
|
|
336
|
-
* @param options
|
|
290
|
+
* @param ctx
|
|
291
|
+
* @param name
|
|
292
|
+
* @param value
|
|
293
|
+
* @param options
|
|
337
294
|
*/
|
|
338
295
|
function setCookie$1(ctx, name, value, options) {
|
|
339
|
-
|
|
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
|
-
*/
|
|
296
|
+
if (ctx && ctx.res && ctx.res.getHeader && ctx.res.setHeader) {
|
|
352
297
|
var cookies = ctx.res.getHeader('Set-Cookie') || [];
|
|
353
298
|
if (typeof cookies === 'string')
|
|
354
299
|
cookies = [cookies];
|
|
355
300
|
if (typeof cookies === 'number')
|
|
356
301
|
cookies = [];
|
|
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);
|
|
302
|
+
var parsedCookies = setCookie.parse(cookies);
|
|
369
303
|
var cookiesToSet_1 = [];
|
|
370
304
|
parsedCookies.forEach(function (parsedCookie) {
|
|
371
|
-
if (!
|
|
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);
|
|
305
|
+
if (!areCookiesEqual(parsedCookie, createCookie(name, value, options))) {
|
|
306
|
+
cookiesToSet_1.push(cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({}, parsedCookie)));
|
|
380
307
|
}
|
|
381
308
|
});
|
|
382
309
|
cookiesToSet_1.push(cookie.serialize(name, value, options));
|
|
383
|
-
|
|
384
|
-
|
|
310
|
+
if (!ctx.res.finished) {
|
|
311
|
+
ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
|
|
312
|
+
}
|
|
385
313
|
}
|
|
386
|
-
|
|
387
|
-
if (utils.isBrowser()) {
|
|
314
|
+
if (isBrowser()) {
|
|
388
315
|
if (options && options.httpOnly) {
|
|
389
316
|
throw new Error('Can not set a httpOnly cookie in the browser.');
|
|
390
317
|
}
|
|
@@ -394,31 +321,40 @@ function setCookie$1(ctx, name, value, options) {
|
|
|
394
321
|
}
|
|
395
322
|
exports.setCookie = setCookie$1;
|
|
396
323
|
/**
|
|
324
|
+
*
|
|
397
325
|
* Destroys a cookie with a particular name.
|
|
398
326
|
*
|
|
399
|
-
* @param ctx
|
|
400
|
-
* @param name
|
|
401
|
-
* @param options
|
|
327
|
+
* @param ctx
|
|
328
|
+
* @param name
|
|
329
|
+
* @param options
|
|
402
330
|
*/
|
|
403
331
|
function destroyCookie(ctx, name, options) {
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
332
|
+
var opts = __assign(__assign({}, (options || {})), { maxAge: -1 });
|
|
333
|
+
if (ctx && ctx.res && ctx.res.setHeader && ctx.res.getHeader) {
|
|
334
|
+
var cookies = ctx.res.getHeader('Set-Cookie') || [];
|
|
335
|
+
if (typeof cookies === 'string')
|
|
336
|
+
cookies = [cookies];
|
|
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 {};
|
|
409
346
|
}
|
|
410
347
|
exports.destroyCookie = destroyCookie;
|
|
411
|
-
/* Utility Exports */
|
|
412
348
|
exports.default = {
|
|
413
349
|
set: setCookie$1,
|
|
414
350
|
get: parseCookies,
|
|
415
351
|
destroy: destroyCookie,
|
|
416
352
|
};
|
|
417
|
-
|
|
353
|
+
|
|
418
354
|
});
|
|
419
355
|
|
|
420
356
|
unwrapExports(dist);
|
|
421
|
-
dist.destroyCookie;
|
|
357
|
+
var dist_1 = dist.destroyCookie;
|
|
422
358
|
var dist_2 = dist.setCookie;
|
|
423
359
|
var dist_3 = dist.parseCookies;
|
|
424
360
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
2
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
5
|
-
import './web.dom.iterable-4109ff68.js';
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
6
4
|
import './_library-528f1934.js';
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
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
9
|
|
|
10
10
|
var _this = undefined;
|
|
11
11
|
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
export { g as default } from './index-c2daf449.js';
|
|
3
|
-
import './BlockContent-c99c9a8d.js';
|
|
4
|
-
import './entities-932b50cf.js';
|
|
5
|
-
import './slicedToArray-be2f7a22.js';
|
|
6
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
7
|
-
import './
|
|
8
|
-
import './es6.string.iterator-
|
|
9
|
-
import './
|
|
10
|
-
import './
|
|
11
|
-
import '
|
|
12
|
-
import './
|
|
13
|
-
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-cf8dde54.js';
|
|
12
|
+
import './define-property-8af5f002.js';
|
|
13
|
+
import './web.dom.iterable-4439f05a.js';
|
|
14
|
+
import './typeof-6435ba1c.js';
|
|
15
|
+
import './_is-array-58e95429.js';
|
|
16
|
+
import 'react';
|
|
17
|
+
import './index-a9e53f80.js';
|
|
14
18
|
import 'prop-types';
|
|
19
|
+
import 'react-bootstrap/Row';
|
|
20
|
+
import 'react-bootstrap/Col';
|
|
21
|
+
import './moment-e2f9b20c.js';
|
|
15
22
|
import 'next/router';
|
|
16
|
-
import './
|
|
17
|
-
import './
|
|
18
|
-
import './
|
|
19
|
-
import './stringify-59c8f690.js';
|
|
20
|
-
import './asyncToGenerator-7f8f9219.js';
|
|
21
|
-
import './_library-528f1934.js';
|
|
22
|
-
import './_iter-detect-7e5e5ce2.js';
|
|
23
|
-
import './Segment.js';
|
|
24
|
-
import './main-d4165069.js';
|
|
25
|
-
import './extends-60e0e1c6.js';
|
|
26
|
-
import './_object-pie-133f504a.js';
|
|
27
|
-
import './index-755f2cc2.js';
|
|
23
|
+
import './isSymbol-1981418f.js';
|
|
24
|
+
import './debounce-9207d8ee.js';
|
|
25
|
+
import './toNumber-2f7a84cd.js';
|
|
28
26
|
import 'react-dom';
|
|
29
|
-
import './
|
|
30
|
-
import './
|
|
31
|
-
import './
|
|
27
|
+
import './index-73819142.js';
|
|
28
|
+
import './index-5f7e79e7.js';
|
|
29
|
+
import './main-e4a934b2.js';
|
|
30
|
+
import './entities-7cc3bf45.js';
|
|
31
|
+
import './slicedToArray-641f241f.js';
|
|
32
|
+
import './stringify-4330ccdc.js';
|
|
33
|
+
import './asyncToGenerator-fc1c2e29.js';
|
|
34
|
+
import './Segment.js';
|
|
35
|
+
import './Beam.js';
|
|
36
|
+
import './AdSlot.js';
|
|
37
|
+
import './BlockContent-e9b4ddcf.js';
|
|
38
|
+
import './index-c7e2ac95.js';
|
|
39
|
+
import './smoothscroll-0cd4c7a6.js';
|
|
32
40
|
import './GroupDeck.js';
|
|
33
|
-
import '
|
|
34
|
-
import './
|
|
35
|
-
import './
|
|
41
|
+
import 'react-bootstrap';
|
|
42
|
+
import './iconBase-602d52fe.js';
|
|
43
|
+
import './index.esm-29e48d38.js';
|
|
44
|
+
export { g as default } from './index-41b5c632.js';
|
|
45
|
+
import './util-7700fc59.js';
|
|
46
|
+
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
36
47
|
import 'next/head';
|
|
37
48
|
import 'react-share';
|
|
38
|
-
import './
|
|
39
|
-
import './
|
|
49
|
+
import './SocialShare.js';
|
|
50
|
+
import './_object-to-array-7e804fce.js';
|
|
40
51
|
import 'react-bootstrap/Pagination';
|
|
41
52
|
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-a41fe93f.js';
|
|
49
|
-
import './_object-sap-f353c2a9.js';
|
|
50
|
-
import './define-property-fe54dc9f.js';
|
|
51
|
-
import './index.esm-f6156a57.js';
|
|
52
|
-
import './iconBase-ccc56b97.js';
|
|
53
53
|
import 'react-bootstrap/Figure';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { _ as
|
|
1
|
+
import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
2
|
+
import { _ as _extends } from './extends-6f2fcc99.js';
|
|
3
3
|
|
|
4
4
|
var getContentPlacementUrl = function getContentPlacementUrl(cp) {
|
|
5
5
|
var cp_url = '';
|
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-05c216d6.js';
|
|
4
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
5
|
-
import './_to-object-
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
9
|
-
import './core.get-iterator-method-
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
4
|
+
import './_iter-detect-5d49a330.js';
|
|
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-82e86707.js';
|
|
@@ -1,28 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
|
|
5
|
-
function _interopNamespace(e) {
|
|
6
|
-
if (e && e.__esModule) return e;
|
|
7
|
-
var n = Object.create(null);
|
|
8
|
-
if (e) {
|
|
9
|
-
Object.keys(e).forEach(function (k) {
|
|
10
|
-
if (k !== 'default') {
|
|
11
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return e[k];
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n['default'] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
1
|
+
import { createContext, createElement } from 'react';
|
|
26
2
|
|
|
27
3
|
var DefaultContext = {
|
|
28
4
|
color: undefined,
|
|
@@ -31,7 +7,7 @@ var DefaultContext = {
|
|
|
31
7
|
style: undefined,
|
|
32
8
|
attr: undefined
|
|
33
9
|
};
|
|
34
|
-
var IconContext =
|
|
10
|
+
var IconContext = createContext && createContext(DefaultContext);
|
|
35
11
|
|
|
36
12
|
var __assign = undefined && undefined.__assign || function () {
|
|
37
13
|
__assign = Object.assign || function (t) {
|
|
@@ -58,7 +34,7 @@ var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
58
34
|
|
|
59
35
|
function Tree2Element(tree) {
|
|
60
36
|
return tree && tree.map(function (node, i) {
|
|
61
|
-
return
|
|
37
|
+
return createElement(node.tag, __assign({
|
|
62
38
|
key: i
|
|
63
39
|
}, node.attr), Tree2Element(node.child));
|
|
64
40
|
});
|
|
@@ -66,7 +42,7 @@ function Tree2Element(tree) {
|
|
|
66
42
|
|
|
67
43
|
function GenIcon(data) {
|
|
68
44
|
return function (props) {
|
|
69
|
-
return
|
|
45
|
+
return createElement(IconBase, __assign({
|
|
70
46
|
attr: __assign({}, data.attr)
|
|
71
47
|
}, props), Tree2Element(data.child));
|
|
72
48
|
};
|
|
@@ -82,7 +58,7 @@ function IconBase(props) {
|
|
|
82
58
|
title = props.title,
|
|
83
59
|
svgProps = __rest(props, ["attr", "title"]);
|
|
84
60
|
|
|
85
|
-
return
|
|
61
|
+
return createElement("svg", __assign({
|
|
86
62
|
stroke: "currentColor",
|
|
87
63
|
fill: "currentColor",
|
|
88
64
|
strokeWidth: "0"
|
|
@@ -94,13 +70,12 @@ function IconBase(props) {
|
|
|
94
70
|
height: computedSize,
|
|
95
71
|
width: computedSize,
|
|
96
72
|
xmlns: "http://www.w3.org/2000/svg"
|
|
97
|
-
}), title &&
|
|
73
|
+
}), title && createElement("title", null, title), props.children);
|
|
98
74
|
};
|
|
99
75
|
|
|
100
|
-
return IconContext !== undefined ?
|
|
76
|
+
return IconContext !== undefined ? createElement(IconContext.Consumer, null, function (conf) {
|
|
101
77
|
return elem(conf);
|
|
102
78
|
}) : elem(DefaultContext);
|
|
103
79
|
}
|
|
104
80
|
|
|
105
|
-
|
|
106
|
-
exports.IconContext = IconContext;
|
|
81
|
+
export { GenIcon as G, IconContext as I };
|