@mjhls/mjh-framework 1.0.992 → 1.0.993-topelement-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 +168 -168
- package/dist/cjs/AD.js +6 -6
- package/dist/cjs/AD300x250.js +5 -5
- package/dist/cjs/AD300x250x600.js +5 -5
- package/dist/cjs/AD728x90.js +6 -6
- package/dist/cjs/ADFloatingFooter.js +8 -8
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +8 -8
- package/dist/cjs/{ADInfeed-e87afe8a.js → ADInfeed-f316b66a.js} +5 -5
- package/dist/cjs/ADSkyscraper.js +8 -8
- package/dist/cjs/ADSponsoredResources.js +8 -8
- package/dist/cjs/ADWebcast.js +8 -8
- package/dist/cjs/ADWelcome.js +12 -12
- package/dist/cjs/{ADlgInfeed-b5a3d436.js → ADlgInfeed-2003306e.js} +3 -3
- package/dist/cjs/AccordionPanel.js +17 -17
- package/dist/cjs/AdSlot.js +9 -9
- package/dist/cjs/AdSlotsProvider.js +7 -8
- package/dist/cjs/AlgoliaSearch.js +1334 -1125
- package/dist/cjs/AlphabeticList.js +12 -12
- package/dist/cjs/ArticleCarousel.js +5 -5
- package/dist/cjs/ArticleProgramLandingPage.js +17 -16
- package/dist/cjs/ArticleSeriesLandingPage.js +11 -11
- package/dist/cjs/ArticleSeriesListing.js +29 -29
- package/dist/cjs/Auth.js +23094 -258
- package/dist/cjs/AuthWrapper.js +138 -42
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-7d00f6d5.js} +9 -9
- package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-96b44364.js} +18 -18
- package/dist/cjs/Breadcrumbs.js +17 -17
- package/dist/cjs/CMEDeck.js +65 -61
- package/dist/cjs/Column1.js +7 -7
- package/dist/cjs/Column2.js +17 -18
- package/dist/cjs/Column3.js +28 -29
- package/dist/cjs/ConferenceArticleCard.js +27 -27
- package/dist/cjs/{ConferenceBanner-6c9e718a.js → ConferenceBanner-213003ce.js} +3 -3
- package/dist/cjs/ContentCardPaginated.js +49 -50
- package/dist/cjs/DeckContent.js +66 -66
- package/dist/cjs/DeckQueue.js +57 -57
- package/dist/cjs/DeckQueuePaginated.js +46 -47
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-c313a700.js} +17 -17
- package/dist/cjs/EventsDeck.js +137 -110
- package/dist/cjs/ExternalResources.js +40 -39
- package/dist/cjs/Feature.js +17 -17
- package/dist/cjs/ForbesHero.js +25 -25
- package/dist/cjs/GridContent.js +134 -134
- package/dist/cjs/GridContentPaginated.js +121 -122
- package/dist/cjs/GridHero.js +26 -26
- package/dist/cjs/GroupDeck.js +33 -33
- package/dist/cjs/HamMagazine.js +121 -121
- package/dist/cjs/Header.js +9 -9
- package/dist/cjs/HealthCareProfessionalModal.js +18 -18
- package/dist/cjs/Hero.js +5 -5
- package/dist/cjs/HighlightenVideo.js +13 -13
- package/dist/cjs/HorizontalArticleListing.js +31 -30
- package/dist/cjs/HorizontalHero.js +17 -17
- package/dist/cjs/{ImageSlider-6c00b878.js → ImageSlider-ca708da8.js} +1315 -176
- package/dist/cjs/IssueContentDeck.js +49 -49
- package/dist/cjs/IssueDeck.js +48 -48
- package/dist/cjs/IssueLanding.js +51 -50
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +29 -20
- package/dist/cjs/MasterDeck.js +47 -47
- package/dist/cjs/MasterDeckPaginated.js +37 -38
- package/dist/cjs/{MediaSeriesCard-9677fbc3.js → MediaSeriesCard-f6db8f70.js} +673 -577
- package/dist/cjs/MediaSeriesLanding.js +44 -43
- package/dist/cjs/MediaSeriesLandingPaginated.js +43 -43
- package/dist/cjs/NavDvm.js +93 -62
- package/dist/cjs/NavFooter-880e9d87.js +71 -0
- package/dist/cjs/NavMagazine.js +136 -118
- package/dist/cjs/NavNative.js +127 -108
- package/dist/cjs/OncliveHero.js +11 -11
- package/dist/cjs/OncliveLargeHero.js +49 -49
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/Pagination-6359861a.js +97 -0
- package/dist/cjs/PartnerDetailListing.js +71 -56
- package/dist/cjs/PartnerDetailListingPaginated.js +61 -52
- package/dist/cjs/PdfDownload.js +4 -4
- package/dist/cjs/PixelTracking.js +9 -9
- package/dist/cjs/PopUpModal.js +9 -9
- package/dist/cjs/PtceDeck.js +13 -13
- package/dist/cjs/PubSection.js +13 -13
- package/dist/cjs/PubToc.js +4 -4
- package/dist/cjs/PublicationDeck.js +44 -44
- package/dist/cjs/{PublicationFeature-5ccf9b13.js → PublicationFeature-a989a2b3.js} +29 -29
- package/dist/cjs/PublicationLanding.js +99 -99
- package/dist/cjs/QueueDeckExpanded.js +245 -245
- package/dist/cjs/QueueDeckExpandedPaginated.js +222 -223
- package/dist/cjs/RecentNews.js +15 -15
- package/dist/cjs/RelatedContent.js +42 -42
- package/dist/cjs/RelatedTopicsDropdown.js +24 -24
- package/dist/cjs/RolesDeck.js +20 -20
- package/dist/cjs/Schema.js +2 -1
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +18 -18
- package/dist/cjs/{SeriesSlider-594b19eb.js → SeriesSlider-f5248377.js} +26 -26
- package/dist/cjs/SideFooter.js +25 -26
- package/dist/cjs/SocialIcons.js +6 -6
- package/dist/cjs/{SocialSearchComponent-b7faaedc.js → SocialSearchComponent-ca9c0c45.js} +28 -28
- package/dist/cjs/SocialShare.js +25 -25
- package/dist/cjs/TaxonomyCard.js +51 -47
- package/dist/cjs/TaxonomyDescription.js +14 -13
- package/dist/cjs/TemplateNormal.js +28 -29
- package/dist/cjs/ThumbnailCard.js +10 -10
- package/dist/cjs/Ustream.js +9 -9
- package/dist/cjs/VerticalHero.js +10 -10
- package/dist/cjs/VideoProgramLandingPage.js +31 -30
- package/dist/cjs/VideoSeriesCard.js +14 -14
- package/dist/cjs/VideoSeriesFilter.js +5 -5
- package/dist/cjs/VideoSeriesLandingPage.js +11 -11
- package/dist/cjs/VideoSeriesListing.js +46 -46
- package/dist/cjs/View.js +235 -230
- package/dist/cjs/YahooHero.js +22 -22
- package/dist/cjs/YoutubeGroup.js +37 -37
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-4c7825a1.js} +2 -2
- package/dist/cjs/checkSisterSite-b29833b2.js +19 -0
- package/dist/cjs/defineProperty-ad65f5f0.js +110 -0
- package/dist/{esm/util-8ed16d48.js → cjs/empty-559717f3.js} +146 -1
- package/dist/cjs/getSerializers.js +9 -8
- package/dist/cjs/{getTargeting-ba942d9a.js → getTargeting-4439c99d.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-be4097c0.js +2 -4
- package/dist/cjs/index-0cf4c9fc.js +904 -0
- package/dist/cjs/{index-eadd5035.js → index-65621b6c.js} +5 -5
- package/dist/cjs/{index-f86bb269.js → index-96c331fd.js} +53 -52
- package/dist/cjs/{index-50be6759.js → index-9ec837cc.js} +9 -25
- package/dist/cjs/{index-5e63adb9.js → index-b10d6863.js} +492 -503
- package/dist/cjs/{index-fc2f1ca2.js → index-d2a6ef75.js} +4 -4
- package/dist/cjs/{index.es-f3e47207.js → index.es-1ab8dda7.js} +4 -4
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-f59ef5b4.js} +19 -18
- package/dist/cjs/index.js +107 -113
- package/dist/cjs/{main-f1c77adb.js → main-6054981e.js} +17 -22
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-2c5c389a.js} +7 -7
- package/dist/cjs/ustream-api-3819e4aa.js +1 -1
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-56020df6.js} +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +2 -2
- package/dist/esm/AD300x250x600.js +2 -2
- package/dist/esm/AD728x90.js +2 -2
- package/dist/esm/ADFloatingFooter.js +2 -2
- package/dist/esm/ADFooter.js +1 -1
- package/dist/esm/ADGutter.js +2 -2
- package/dist/esm/ADSkyscraper.js +2 -2
- package/dist/esm/ADSponsoredResources.js +2 -2
- package/dist/esm/ADWebcast.js +2 -2
- package/dist/esm/ADWelcome.js +2 -2
- package/dist/esm/AccordionPanel.js +1 -1
- package/dist/esm/AdSlot.js +2 -2
- package/dist/esm/AdSlotsProvider.js +4 -4
- package/dist/esm/AlgoliaSearch.js +780 -571
- package/dist/esm/AlphabeticList.js +1 -1
- package/dist/esm/ArticleCarousel.js +2 -2
- package/dist/esm/ArticleProgramLandingPage.js +6 -5
- package/dist/esm/ArticleSeriesLandingPage.js +4 -4
- package/dist/esm/ArticleSeriesListing.js +2 -2
- package/dist/esm/Auth.js +23019 -181
- package/dist/esm/AuthWrapper.js +112 -16
- package/dist/esm/Beam.js +1 -1
- package/dist/esm/Breadcrumbs.js +1 -1
- package/dist/esm/CMEDeck.js +7 -3
- package/dist/esm/Column1.js +1 -2
- package/dist/esm/Column2.js +4 -6
- package/dist/esm/Column3.js +3 -5
- package/dist/esm/ConferenceArticleCard.js +16 -16
- package/dist/esm/ContentCardPaginated.js +4 -5
- package/dist/esm/DeckContent.js +11 -11
- package/dist/esm/DeckQueue.js +2 -2
- package/dist/esm/DeckQueuePaginated.js +3 -4
- package/dist/esm/Dfp-102f0beb.js +1 -1
- package/dist/esm/EventsDeck.js +49 -22
- package/dist/esm/ExternalResources.js +10 -9
- package/dist/esm/Feature.js +2 -2
- package/dist/esm/ForbesHero.js +1 -1
- package/dist/esm/GridContent.js +4 -4
- package/dist/esm/GridContentPaginated.js +5 -6
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/GroupDeck.js +1 -1
- package/dist/esm/HamMagazine.js +21 -22
- package/dist/esm/Header.js +1 -2
- package/dist/esm/HealthCareProfessionalModal.js +2 -2
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HighlightenVideo.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +6 -5
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/{ImageSlider-f84174cb.js → ImageSlider-fada4f0c.js} +1257 -119
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/IssueLanding.js +37 -36
- package/dist/esm/KMTracker.js +16 -16
- package/dist/esm/LeftNav.js +14 -6
- package/dist/esm/MasterDeck.js +12 -12
- package/dist/esm/MasterDeckPaginated.js +13 -14
- package/dist/esm/{MediaSeriesCard-8b14906f.js → MediaSeriesCard-96ac8ed4.js} +376 -280
- package/dist/esm/MediaSeriesLanding.js +15 -14
- package/dist/esm/MediaSeriesLandingPaginated.js +16 -16
- package/dist/esm/NavDvm.js +38 -8
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-3272e9cd.js} +9 -4
- package/dist/esm/NavMagazine.js +35 -18
- package/dist/esm/NavNative.js +34 -16
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/PageFilter.js +1 -1
- package/dist/esm/Pagination-9fe9f61d.js +90 -0
- package/dist/esm/PartnerDetailListing.js +32 -17
- package/dist/esm/PartnerDetailListingPaginated.js +25 -16
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +1 -1
- package/dist/esm/PtceDeck.js +1 -1
- package/dist/esm/PubSection.js +4 -4
- package/dist/esm/PubToc.js +1 -1
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/PublicationLanding.js +27 -27
- package/dist/esm/QueueDeckExpanded.js +4 -4
- package/dist/esm/QueueDeckExpandedPaginated.js +5 -6
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +29 -29
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +1 -1
- package/dist/esm/Schema.js +3 -2
- package/dist/esm/Search.js +1 -1
- package/dist/esm/Segment.js +1 -1
- package/dist/esm/SeriesListingDeck.js +3 -3
- package/dist/esm/{SeriesSlider-f771e20d.js → SeriesSlider-4875823e.js} +5 -5
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +8 -9
- package/dist/esm/SocialIcons.js +1 -1
- package/dist/esm/{SocialSearchComponent-4b56cd8c.js → SocialSearchComponent-68d948b9.js} +2 -2
- package/dist/esm/SocialShare.js +1 -1
- package/dist/esm/TaxonomyCard.js +8 -4
- package/dist/esm/TaxonomyDescription.js +6 -5
- package/dist/esm/TemplateNormal.js +6 -7
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +2 -2
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +6 -5
- package/dist/esm/VideoSeriesCard.js +2 -2
- package/dist/esm/VideoSeriesFilter.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +4 -4
- package/dist/esm/VideoSeriesListing.js +2 -2
- package/dist/esm/View.js +18 -12
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +6 -6
- package/dist/esm/checkSisterSite-baa4fb6b.js +17 -0
- package/dist/esm/defineProperty-50094484.js +101 -0
- package/dist/{cjs/util-93a37fd0.js → esm/empty-a8042e3c.js} +135 -3
- package/dist/esm/getKeywords.js +1 -1
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +1 -1
- package/dist/esm/getRootDocGroup.js +1 -1
- package/dist/esm/getSerializers.js +5 -4
- package/dist/esm/getSeriesDetail.js +1 -1
- package/dist/esm/{getTargeting-9bd28724.js → getTargeting-c6884f34.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-e0aeabc5.js → index-076baa11.js} +8 -18
- package/dist/esm/{index-98ca9cec.js → index-0ce54f8a.js} +10 -25
- package/dist/esm/{index-79cfd25c.js → index-30a6257d.js} +53 -52
- package/dist/esm/index-e7075467.js +897 -0
- package/dist/esm/{index.esm-37268dca.js → index.esm-07c37a92.js} +5 -4
- package/dist/esm/index.js +16 -22
- package/dist/esm/{main-1894c974.js → main-9f6806ea.js} +4 -9
- package/dist/esm/stringify-2b084bee.js +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/ustream-api-d3714624.js +1 -1
- package/package.json +115 -115
- package/dist/cjs/NavFooter-3dcd99a8.js +0 -66
- package/dist/cjs/Pagination-1e0d5f1d.js +0 -90
- package/dist/cjs/defineProperty-9673846a.js +0 -34
- package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/Pagination-cd21f8c2.js +0 -82
- package/dist/esm/defineProperty-23a8f8cd.js +0 -68
- package/dist/esm/defineProperty-8c30428f.js +0 -32
- package/dist/esm/typeof-2f07d0e8.js +0 -30
- /package/dist/esm/{ADInfeed-5765a73a.js → ADInfeed-777bb0b3.js} +0 -0
- /package/dist/esm/{ADlgInfeed-5e36f317.js → ADlgInfeed-e7fd1bb6.js} +0 -0
package/dist/esm/YoutubeGroup.js
CHANGED
|
@@ -4,7 +4,7 @@ import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
|
4
4
|
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
5
5
|
import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
|
|
6
6
|
import urlFor from './urlFor.js';
|
|
7
|
-
import { m as main_43, a as main_49, b as main_42 } from './main-
|
|
7
|
+
import { m as main_43, a as main_49, b as main_42 } from './main-9f6806ea.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './web.dom.iterable-ab4dea5c.js';
|
|
10
10
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -12,10 +12,10 @@ import 'react-dom';
|
|
|
12
12
|
import 'prop-types';
|
|
13
13
|
import './index-3f5c03b2.js';
|
|
14
14
|
|
|
15
|
-
/*
|
|
16
|
-
GROQ query -
|
|
17
|
-
accepts an array of title, URL
|
|
18
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
15
|
+
/*
|
|
16
|
+
GROQ query -
|
|
17
|
+
accepts an array of title, URL
|
|
18
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
var YoutubeGroup = function YoutubeGroup(props) {
|
|
@@ -362,4 +362,4 @@ var YoutubeGroup = function YoutubeGroup(props) {
|
|
|
362
362
|
);
|
|
363
363
|
};
|
|
364
364
|
|
|
365
|
-
export default
|
|
365
|
+
export { YoutubeGroup as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var siteArray = ['community.onclive.com', 'fetchdvm360.com', 'aestheticauthority.com', 'app.onecommunity.com', 'cannapatientcare.com', 'chiefhealthcareexecutive.com', 'genetherapylive.com', 'giantsofcancercare.com', 'medicalworldnews.com', 'pbmi.com', 'pharmacytimes.org', 'gotoper.com', 'education.gotoper.com', 'mjhlifesciences.com', 'ajmc.com', 'appliedclinicaltrialsonline.com', 'biopharminternational.com', 'cancernetwork.com', 'cancerhorizon.com', 'cannabissciencetech.com', 'centerforbiosimilars.com', 'chromatographyonline.com', 'contagionlive.com', 'contemporaryclinic.com', 'contemporaryobgyn.net', 'contemporarypediatrics.com', 'consultantlive.com', 'curetoday.com', 'dentalproductsreport.com', 'dermatologytimes.com', 'diagnosticimaging.com', 'drugtopics.com', 'dvm360.com', 'endocrinologynetwork.com', 'europe.ophthalmologytimes.com', 'formularywatch.com', 'hcplive.com', 'infectioncontroltoday.com', 'lungquest.com', 'managedhealthcareexecutive.com', 'medicaleconomics.com', 'modernretina.com', 'movingmountainsformultiplemyeloma.com', 'naspmeeting.com', 'neurologylive.com', 'nutritionaloutlook.com', 'onclive.com', 'oncliveevents.com', 'oncnursingnews.com', 'ophthalmologytimes.com', 'optometrytimes.com', 'onecommunity.com', 'patientcareonline.com', 'pharmaceuticalcommerce.com', 'pharmacytimes.com', 'pharmacistmomsgroup.com', 'pharmexec.com', 'pharmtech.com', 'physicianspractice.com', 'practicalcardiology.com', 'psychiatrictimes.com', 'rheumatologynetwork.com', 'spectroscopyonline.com', 'studio.mjhassoc.com', 'targetedonc.com', 'turbomachinerymag.com', 'urologytimes.com'];
|
|
2
|
+
|
|
3
|
+
var checkSisterSite = function checkSisterSite(url) {
|
|
4
|
+
if (url.includes('http://' ) || url.includes('https://' )) {
|
|
5
|
+
url = url.replace('www.', '').split('/').slice(2, 3).join('/');
|
|
6
|
+
var array = url.split('.');
|
|
7
|
+
var length = array.length;
|
|
8
|
+
if (length === 2) {
|
|
9
|
+
url = url;
|
|
10
|
+
} else {
|
|
11
|
+
url = url.split('.').splice(1).join('.');
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return url && url.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) && siteArray.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) || url.charAt(0) === '/' ? true : false;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { checkSisterSite as c };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
function _classCallCheck(instance, Constructor) {
|
|
2
|
+
if (!(instance instanceof Constructor)) {
|
|
3
|
+
throw new TypeError("Cannot call a class as a function");
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function _defineProperties(target, props) {
|
|
8
|
+
for (var i = 0; i < props.length; i++) {
|
|
9
|
+
var descriptor = props[i];
|
|
10
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
11
|
+
descriptor.configurable = true;
|
|
12
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
13
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
18
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
19
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
20
|
+
return Constructor;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function _assertThisInitialized(self) {
|
|
24
|
+
if (self === void 0) {
|
|
25
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return self;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function _setPrototypeOf(o, p) {
|
|
32
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
33
|
+
o.__proto__ = p;
|
|
34
|
+
return o;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
return _setPrototypeOf(o, p);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function _inherits(subClass, superClass) {
|
|
41
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
42
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
46
|
+
constructor: {
|
|
47
|
+
value: subClass,
|
|
48
|
+
writable: true,
|
|
49
|
+
configurable: true
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function _typeof(obj) {
|
|
56
|
+
"@babel/helpers - typeof";
|
|
57
|
+
|
|
58
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
59
|
+
_typeof = function _typeof(obj) {
|
|
60
|
+
return typeof obj;
|
|
61
|
+
};
|
|
62
|
+
} else {
|
|
63
|
+
_typeof = function _typeof(obj) {
|
|
64
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return _typeof(obj);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function _possibleConstructorReturn(self, call) {
|
|
72
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
73
|
+
return call;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return _assertThisInitialized(self);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function _getPrototypeOf(o) {
|
|
80
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
81
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
82
|
+
};
|
|
83
|
+
return _getPrototypeOf(o);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function _defineProperty(obj, key, value) {
|
|
87
|
+
if (key in obj) {
|
|
88
|
+
Object.defineProperty(obj, key, {
|
|
89
|
+
value: value,
|
|
90
|
+
enumerable: true,
|
|
91
|
+
configurable: true,
|
|
92
|
+
writable: true
|
|
93
|
+
});
|
|
94
|
+
} else {
|
|
95
|
+
obj[key] = value;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return obj;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export { _defineProperty as _, _typeof as a, _inherits as b, _getPrototypeOf as c, _possibleConstructorReturn as d, _classCallCheck as e, _assertThisInitialized as f, _createClass as g };
|
|
@@ -1,6 +1,136 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
// shim for using process in browser
|
|
2
|
+
// based off https://github.com/defunctzombie/node-process/blob/master/browser.js
|
|
3
|
+
|
|
4
|
+
function defaultSetTimout() {
|
|
5
|
+
throw new Error('setTimeout has not been defined');
|
|
6
|
+
}
|
|
7
|
+
function defaultClearTimeout () {
|
|
8
|
+
throw new Error('clearTimeout has not been defined');
|
|
9
|
+
}
|
|
10
|
+
var cachedSetTimeout = defaultSetTimout;
|
|
11
|
+
var cachedClearTimeout = defaultClearTimeout;
|
|
12
|
+
if (typeof global.setTimeout === 'function') {
|
|
13
|
+
cachedSetTimeout = setTimeout;
|
|
14
|
+
}
|
|
15
|
+
if (typeof global.clearTimeout === 'function') {
|
|
16
|
+
cachedClearTimeout = clearTimeout;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function runTimeout(fun) {
|
|
20
|
+
if (cachedSetTimeout === setTimeout) {
|
|
21
|
+
//normal enviroments in sane situations
|
|
22
|
+
return setTimeout(fun, 0);
|
|
23
|
+
}
|
|
24
|
+
// if setTimeout wasn't available but was latter defined
|
|
25
|
+
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
26
|
+
cachedSetTimeout = setTimeout;
|
|
27
|
+
return setTimeout(fun, 0);
|
|
28
|
+
}
|
|
29
|
+
try {
|
|
30
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
31
|
+
return cachedSetTimeout(fun, 0);
|
|
32
|
+
} catch(e){
|
|
33
|
+
try {
|
|
34
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
35
|
+
return cachedSetTimeout.call(null, fun, 0);
|
|
36
|
+
} catch(e){
|
|
37
|
+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
|
38
|
+
return cachedSetTimeout.call(this, fun, 0);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
}
|
|
44
|
+
function runClearTimeout(marker) {
|
|
45
|
+
if (cachedClearTimeout === clearTimeout) {
|
|
46
|
+
//normal enviroments in sane situations
|
|
47
|
+
return clearTimeout(marker);
|
|
48
|
+
}
|
|
49
|
+
// if clearTimeout wasn't available but was latter defined
|
|
50
|
+
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
51
|
+
cachedClearTimeout = clearTimeout;
|
|
52
|
+
return clearTimeout(marker);
|
|
53
|
+
}
|
|
54
|
+
try {
|
|
55
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
56
|
+
return cachedClearTimeout(marker);
|
|
57
|
+
} catch (e){
|
|
58
|
+
try {
|
|
59
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
60
|
+
return cachedClearTimeout.call(null, marker);
|
|
61
|
+
} catch (e){
|
|
62
|
+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
|
63
|
+
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
64
|
+
return cachedClearTimeout.call(this, marker);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
}
|
|
71
|
+
var queue = [];
|
|
72
|
+
var draining = false;
|
|
73
|
+
var currentQueue;
|
|
74
|
+
var queueIndex = -1;
|
|
75
|
+
|
|
76
|
+
function cleanUpNextTick() {
|
|
77
|
+
if (!draining || !currentQueue) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
draining = false;
|
|
81
|
+
if (currentQueue.length) {
|
|
82
|
+
queue = currentQueue.concat(queue);
|
|
83
|
+
} else {
|
|
84
|
+
queueIndex = -1;
|
|
85
|
+
}
|
|
86
|
+
if (queue.length) {
|
|
87
|
+
drainQueue();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function drainQueue() {
|
|
92
|
+
if (draining) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
var timeout = runTimeout(cleanUpNextTick);
|
|
96
|
+
draining = true;
|
|
97
|
+
|
|
98
|
+
var len = queue.length;
|
|
99
|
+
while(len) {
|
|
100
|
+
currentQueue = queue;
|
|
101
|
+
queue = [];
|
|
102
|
+
while (++queueIndex < len) {
|
|
103
|
+
if (currentQueue) {
|
|
104
|
+
currentQueue[queueIndex].run();
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
queueIndex = -1;
|
|
108
|
+
len = queue.length;
|
|
109
|
+
}
|
|
110
|
+
currentQueue = null;
|
|
111
|
+
draining = false;
|
|
112
|
+
runClearTimeout(timeout);
|
|
113
|
+
}
|
|
114
|
+
function nextTick(fun) {
|
|
115
|
+
var args = new Array(arguments.length - 1);
|
|
116
|
+
if (arguments.length > 1) {
|
|
117
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
118
|
+
args[i - 1] = arguments[i];
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
queue.push(new Item(fun, args));
|
|
122
|
+
if (queue.length === 1 && !draining) {
|
|
123
|
+
runTimeout(drainQueue);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
// v8 likes predictible objects
|
|
127
|
+
function Item(fun, array) {
|
|
128
|
+
this.fun = fun;
|
|
129
|
+
this.array = array;
|
|
130
|
+
}
|
|
131
|
+
Item.prototype.run = function () {
|
|
132
|
+
this.fun.apply(null, this.array);
|
|
133
|
+
};
|
|
4
134
|
|
|
5
135
|
// from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js
|
|
6
136
|
var performance = global.performance || {};
|
|
@@ -584,4 +714,6 @@ var util = {
|
|
|
584
714
|
debuglog: debuglog
|
|
585
715
|
};
|
|
586
716
|
|
|
587
|
-
|
|
717
|
+
var tls = {};
|
|
718
|
+
|
|
719
|
+
export { isString as a, isNullOrUndefined as b, isNull as c, debuglog as d, inherits$1 as e, deprecate as f, isObject as i, nextTick as n, tls as t, util as u };
|
package/dist/esm/getKeywords.js
CHANGED
package/dist/esm/getQuery.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export { g as default } from './index-
|
|
2
|
+
export { g as default } from './index-076baa11.js';
|
|
3
3
|
import './BlockContent-1e73bd2c.js';
|
|
4
4
|
import './entities-6d9154b4.js';
|
|
5
5
|
import './slicedToArray-6ebcbfea.js';
|
|
@@ -14,14 +14,14 @@ import './events-6c3a7a63.js';
|
|
|
14
14
|
import 'prop-types';
|
|
15
15
|
import 'next/router';
|
|
16
16
|
import './index-c7e2ac95.js';
|
|
17
|
-
import './
|
|
17
|
+
import './empty-a8042e3c.js';
|
|
18
18
|
import './Beam.js';
|
|
19
19
|
import './stringify-2b084bee.js';
|
|
20
20
|
import './asyncToGenerator-958ef5fc.js';
|
|
21
21
|
import './_library-528f1934.js';
|
|
22
22
|
import './_iter-detect-98db3b07.js';
|
|
23
23
|
import './Segment.js';
|
|
24
|
-
import './main-
|
|
24
|
+
import './main-9f6806ea.js';
|
|
25
25
|
import './extends-6d8e3924.js';
|
|
26
26
|
import './_object-pie-133f504a.js';
|
|
27
27
|
import './urlForFile-b69adffc.js';
|
|
@@ -33,7 +33,7 @@ import './brightcove-react-player-loader.es-57a70a56.js';
|
|
|
33
33
|
import 'react-bootstrap/Modal';
|
|
34
34
|
import 'react-bootstrap/Button';
|
|
35
35
|
import 'react-bootstrap/Form';
|
|
36
|
-
import '
|
|
36
|
+
import './index-e7075467.js';
|
|
37
37
|
import './GroupDeck.js';
|
|
38
38
|
import './smoothscroll-fa4e3f8c.js';
|
|
39
39
|
import './moment-bc12cb97.js';
|
|
@@ -58,3 +58,4 @@ import 'react-bootstrap/Figure';
|
|
|
58
58
|
import 'react-bootstrap/OverlayTrigger';
|
|
59
59
|
import 'react-bootstrap/Tooltip';
|
|
60
60
|
import 'react-bootstrap/Popover';
|
|
61
|
+
import './checkSisterSite-baa4fb6b.js';
|
|
@@ -2,18 +2,18 @@ import { _ as _extends } from './extends-6d8e3924.js';
|
|
|
2
2
|
import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.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,6 +1,6 @@
|
|
|
1
1
|
import './extends-6d8e3924.js';
|
|
2
2
|
import './toConsumableArray-f7074d7c.js';
|
|
3
|
-
export { g as default } from './getTargeting-
|
|
3
|
+
export { g as default } from './getTargeting-c6884f34.js';
|
|
4
4
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
5
5
|
import './core.get-iterator-method-ea258bb1.js';
|
|
6
6
|
import './_object-pie-133f504a.js';
|
|
@@ -7,10 +7,10 @@ import Router, { useRouter } from 'next/router';
|
|
|
7
7
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
10
|
-
import { u as util } from './
|
|
10
|
+
import { u as util, t as tls } from './empty-a8042e3c.js';
|
|
11
11
|
import './Beam.js';
|
|
12
12
|
import Segment from './Segment.js';
|
|
13
|
-
import { e as main_18, b as main_42, m as main_43 } from './main-
|
|
13
|
+
import { e as main_18, b as main_42, m as main_43 } from './main-9f6806ea.js';
|
|
14
14
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
15
15
|
import { _ as _extends, b as _extends$1 } from './extends-6d8e3924.js';
|
|
16
16
|
import { u as urlForFile } from './urlForFile-b69adffc.js';
|
|
@@ -22,7 +22,7 @@ import { _ as _JSON$stringify } from './stringify-2b084bee.js';
|
|
|
22
22
|
import Modal from 'react-bootstrap/Modal';
|
|
23
23
|
import Button from 'react-bootstrap/Button';
|
|
24
24
|
import Form from 'react-bootstrap/Form';
|
|
25
|
-
import ReactGA from '
|
|
25
|
+
import { R as ReactGA } from './index-e7075467.js';
|
|
26
26
|
import GroupDeck from './GroupDeck.js';
|
|
27
27
|
import { m as moment } from './moment-bc12cb97.js';
|
|
28
28
|
import SocialShare from './SocialShare.js';
|
|
@@ -41,6 +41,7 @@ import Figure$2 from 'react-bootstrap/Figure';
|
|
|
41
41
|
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
|
|
42
42
|
import Tooltip from 'react-bootstrap/Tooltip';
|
|
43
43
|
import Popover from 'react-bootstrap/Popover';
|
|
44
|
+
import { c as checkSisterSite } from './checkSisterSite-baa4fb6b.js';
|
|
44
45
|
|
|
45
46
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
46
47
|
var pageNumber = selectedIndex + 1;
|
|
@@ -910,8 +911,6 @@ var tty = {
|
|
|
910
911
|
WriteStream: WriteStream
|
|
911
912
|
};
|
|
912
913
|
|
|
913
|
-
var require$$2 = {};
|
|
914
|
-
|
|
915
914
|
var node = createCommonjsModule(function (module, exports) {
|
|
916
915
|
/**
|
|
917
916
|
* Module dependencies.
|
|
@@ -1098,14 +1097,14 @@ function createWritableStdioStream (fd) {
|
|
|
1098
1097
|
break;
|
|
1099
1098
|
|
|
1100
1099
|
case 'FILE':
|
|
1101
|
-
var fs =
|
|
1100
|
+
var fs = tls;
|
|
1102
1101
|
stream = new fs.SyncWriteStream(fd, { autoClose: false });
|
|
1103
1102
|
stream._type = 'fs';
|
|
1104
1103
|
break;
|
|
1105
1104
|
|
|
1106
1105
|
case 'PIPE':
|
|
1107
1106
|
case 'TCP':
|
|
1108
|
-
var net =
|
|
1107
|
+
var net = tls;
|
|
1109
1108
|
stream = new net.Socket({
|
|
1110
1109
|
fd: fd,
|
|
1111
1110
|
readable: false,
|
|
@@ -10347,8 +10346,6 @@ var DigiohSmartTag = function DigiohSmartTag(props) {
|
|
|
10347
10346
|
return React__default.createElement('div', { id: FormID });
|
|
10348
10347
|
};
|
|
10349
10348
|
|
|
10350
|
-
var siteArray = ['aestheticauthority.com', 'cannapatientcare.com', 'chiefhealthcareexecutive.com', 'genetherapylive.com', 'giantsofcancercare.com', 'medicalworldnews.com', 'pbmi.com', 'pharmacytimes.org', 'gotoper.com', 'education.gotoper.com', 'mjhlifesciences.com', 'ajmc.com', 'appliedclinicaltrialsonline.com', 'biopharminternational.com', 'cancernetwork.com', 'cannabissciencetech.com', 'centerforbiosimilars.com', 'chromatographyonline.com', 'contagionlive.com', 'contemporaryclinic.com', 'contemporaryobgyn.net', 'contemporarypediatrics.com', 'curetoday.com', 'dentalproductsreport.com', 'dermatologytimes.com', 'diagnosticimaging.com', 'drugtopics.com', 'dvm360.com', 'endocrinologynetwork.com', 'europe.ophthalmologytimes.com', 'formularywatch.com', 'hcplive.com', 'infectioncontroltoday.com', 'managedhealthcareexecutive.com', 'medicaleconomics.com', 'modernretina.com', 'neurologylive.com', 'nutritionaloutlook.com', 'onclive.com', 'oncnursingnews.com', 'ophthalmologytimes.com', 'optometrytimes.com', 'patientcareonline.com', 'pharmaceuticalcommerce.com', 'pharmacytimes.com', 'pharmexec.com', 'pharmtech.com', 'physicianspractice.com', 'practicalcardiology.com', 'psychiatrictimes.com', 'rheumatologynetwork.com', 'spectroscopyonline.com', 'targetedonc.com', 'turbomachinerymag.com', 'urologytimes.com'];
|
|
10351
|
-
|
|
10352
10349
|
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
10353
10350
|
if (/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|http?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|(^mailto)/i.test(url)) {
|
|
10354
10351
|
return true;
|
|
@@ -10390,15 +10387,8 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
10390
10387
|
}
|
|
10391
10388
|
}, []);
|
|
10392
10389
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10393
|
-
var checkBaseUrl = function checkBaseUrl(url) {
|
|
10394
|
-
if (url.includes('http://') || url.includes('https://')) {
|
|
10395
|
-
//to remove http:// or https:// to check URLs
|
|
10396
|
-
url = url.replace('www.', '').split('/').slice(2, 3).join('/');
|
|
10397
|
-
}
|
|
10398
|
-
return ogUrl && ogUrl.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) || siteArray.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) ? true : false;
|
|
10399
|
-
};
|
|
10400
10390
|
var checkNoFollow = function checkNoFollow(url, nofollow) {
|
|
10401
|
-
if (url && !isExernalUrl || url &&
|
|
10391
|
+
if (url && !isExernalUrl || url && checkSisterSite(url)) {
|
|
10402
10392
|
//if not external url, nofollow is disabled
|
|
10403
10393
|
return '';
|
|
10404
10394
|
} else if (url && (nofollow || nofollow == undefined)) {
|
|
@@ -10422,7 +10412,7 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
10422
10412
|
);
|
|
10423
10413
|
}
|
|
10424
10414
|
|
|
10425
|
-
var linkRel = (href && checkNoFollow(href, nofollow)) + ' ' + (href && blank && !
|
|
10415
|
+
var linkRel = (href && checkNoFollow(href, nofollow)) + ' ' + (href && blank && !checkSisterSite(href) ? 'noreferrer noopener' : '');
|
|
10426
10416
|
return href ? linkRel.trim().length > 0 ? React__default.createElement(
|
|
10427
10417
|
'a',
|
|
10428
10418
|
_extends({ rel: linkRel.trim(), href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
@@ -33,18 +33,9 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
33
33
|
return target;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
function _setPrototypeOf(o, p) {
|
|
37
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
38
|
-
o.__proto__ = p;
|
|
39
|
-
return o;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
return _setPrototypeOf(o, p);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
36
|
var classnames = createCommonjsModule(function (module) {
|
|
46
37
|
/*!
|
|
47
|
-
Copyright (c)
|
|
38
|
+
Copyright (c) 2017 Jed Watson.
|
|
48
39
|
Licensed under the MIT License (MIT), see
|
|
49
40
|
http://jedwatson.github.io/classnames
|
|
50
41
|
*/
|
|
@@ -54,7 +45,7 @@ var classnames = createCommonjsModule(function (module) {
|
|
|
54
45
|
|
|
55
46
|
var hasOwn = {}.hasOwnProperty;
|
|
56
47
|
|
|
57
|
-
function classNames() {
|
|
48
|
+
function classNames () {
|
|
58
49
|
var classes = [];
|
|
59
50
|
|
|
60
51
|
for (var i = 0; i < arguments.length; i++) {
|
|
@@ -65,22 +56,16 @@ var classnames = createCommonjsModule(function (module) {
|
|
|
65
56
|
|
|
66
57
|
if (argType === 'string' || argType === 'number') {
|
|
67
58
|
classes.push(arg);
|
|
68
|
-
} else if (Array.isArray(arg)) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
classes.push(inner);
|
|
73
|
-
}
|
|
59
|
+
} else if (Array.isArray(arg) && arg.length) {
|
|
60
|
+
var inner = classNames.apply(null, arg);
|
|
61
|
+
if (inner) {
|
|
62
|
+
classes.push(inner);
|
|
74
63
|
}
|
|
75
64
|
} else if (argType === 'object') {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
classes.push(key);
|
|
80
|
-
}
|
|
65
|
+
for (var key in arg) {
|
|
66
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
67
|
+
classes.push(key);
|
|
81
68
|
}
|
|
82
|
-
} else {
|
|
83
|
-
classes.push(arg.toString());
|
|
84
69
|
}
|
|
85
70
|
}
|
|
86
71
|
}
|
|
@@ -97,4 +82,4 @@ var classnames = createCommonjsModule(function (module) {
|
|
|
97
82
|
}());
|
|
98
83
|
});
|
|
99
84
|
|
|
100
|
-
export { _objectWithoutPropertiesLoose as _,
|
|
85
|
+
export { _objectWithoutPropertiesLoose as _, _extends as a, classnames as c };
|