@mjhls/mjh-framework 1.0.819-ad-refresh → 1.0.820

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.
Files changed (210) hide show
  1. package/README.md +170 -170
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +3 -2
  4. package/dist/cjs/AD300x250x600.js +3 -2
  5. package/dist/cjs/AD728x90.js +3 -2
  6. package/dist/cjs/ADFloatingFooter.js +3 -2
  7. package/dist/cjs/ADGutter.js +3 -2
  8. package/dist/cjs/ADSkyscraper.js +3 -2
  9. package/dist/cjs/ADSponsoredResources.js +3 -2
  10. package/dist/cjs/ADWebcast.js +3 -2
  11. package/dist/cjs/ADWelcome.js +3 -2
  12. package/dist/cjs/AccordionPanel.js +2 -2
  13. package/dist/cjs/AdSlot.js +3 -2
  14. package/dist/cjs/AdSlotsProvider.js +6 -27
  15. package/dist/cjs/AlgoliaSearch.js +14099 -17
  16. package/dist/cjs/ArticleCarousel.js +2 -1
  17. package/dist/cjs/ArticleProgramLandingPage.js +7 -5
  18. package/dist/cjs/ArticleSeriesLandingPage.js +5 -4
  19. package/dist/cjs/ArticleSeriesListing.js +6 -4
  20. package/dist/cjs/AuthWrapper.js +1 -1
  21. package/dist/cjs/CMEDeck.js +3 -2
  22. package/dist/cjs/Column3.js +3 -2
  23. package/dist/cjs/ConferenceArticleCard.js +19 -24
  24. package/dist/cjs/DeckContent.js +20 -25
  25. package/dist/cjs/DeckQueue.js +11 -17
  26. package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-93399f8c.js} +2 -1
  27. package/dist/cjs/EventsDeck.js +18 -18
  28. package/dist/cjs/ExternalResources.js +7 -5
  29. package/dist/cjs/Feature.js +6 -10
  30. package/dist/cjs/ForbesHero.js +12 -14
  31. package/dist/cjs/GridContent.js +24 -29
  32. package/dist/cjs/GridHero.js +10 -19
  33. package/dist/cjs/GroupDeck.js +4 -8
  34. package/dist/cjs/HamMagazine.js +15 -15
  35. package/dist/cjs/Hero.js +3 -14
  36. package/dist/cjs/HorizontalArticleListing.js +7 -5
  37. package/dist/cjs/HorizontalHero.js +7 -8
  38. package/dist/cjs/IssueContentDeck.js +10 -27
  39. package/dist/cjs/IssueDeck.js +10 -12
  40. package/dist/cjs/IssueLanding.js +38 -36
  41. package/dist/cjs/KMTracker.js +15 -15
  42. package/dist/cjs/LeftNav.js +3 -2
  43. package/dist/cjs/MasterDeck.js +14 -13
  44. package/dist/cjs/MediaSeriesLanding.js +307 -407
  45. package/dist/cjs/NavMagazine.js +16 -16
  46. package/dist/cjs/NavNative.js +12 -12
  47. package/dist/cjs/NavNormal.js +2 -2
  48. package/dist/cjs/OncliveHero.js +6 -7
  49. package/dist/cjs/OncliveLargeHero.js +21 -22
  50. package/dist/cjs/PartnerDetailListing.js +13 -16
  51. package/dist/cjs/PdfDownload.js +2 -2
  52. package/dist/cjs/PubSection.js +6 -4
  53. package/dist/cjs/PublicationDeck.js +10 -12
  54. package/dist/cjs/PublicationLanding.js +26 -29
  55. package/dist/cjs/QueueDeckExpanded.js +74 -72
  56. package/dist/cjs/RecentNews.js +5 -8
  57. package/dist/cjs/RelatedContent.js +35 -38
  58. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  59. package/dist/cjs/SeriesListingDeck.js +5 -3
  60. package/dist/cjs/{SeriesSlider-2db54929.js → SeriesSlider-d54fa925.js} +7 -12
  61. package/dist/cjs/SideFooter.js +2 -2
  62. package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-ecb4f972.js} +3 -3
  63. package/dist/cjs/TaxonomyCard.js +11 -14
  64. package/dist/cjs/TaxonomyDescription.js +7 -5
  65. package/dist/cjs/TemplateNormal.js +8 -7
  66. package/dist/cjs/ThumbnailCard.js +6 -10
  67. package/dist/cjs/Ustream.js +4 -4
  68. package/dist/cjs/VerticalHero.js +3 -7
  69. package/dist/cjs/VideoProgramLandingPage.js +7 -5
  70. package/dist/cjs/VideoSeriesCard.js +9 -8
  71. package/dist/cjs/VideoSeriesLandingPage.js +6 -4
  72. package/dist/cjs/VideoSeriesListing.js +7 -5
  73. package/dist/cjs/View.js +17 -16
  74. package/dist/cjs/YahooHero.js +11 -13
  75. package/dist/cjs/YoutubeGroup.js +9 -13
  76. package/dist/cjs/events-1b438fe7.js +469 -0
  77. package/dist/cjs/getSerializers.js +7 -5
  78. package/dist/cjs/{getTargeting-a100d6e5.js → getTargeting-be6168ad.js} +9 -9
  79. package/dist/cjs/getTargeting.js +1 -1
  80. package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
  81. package/dist/cjs/{index-48bd6cd5.js → index-179d21a3.js} +49 -93
  82. package/dist/cjs/index-8041a4eb.js +99 -0
  83. package/dist/cjs/{index-0e4427c8.js → index-fc2f1ca2.js} +2 -467
  84. package/dist/cjs/{index.esm-f27f80d9.js → index.esm-05850a2f.js} +1 -1
  85. package/dist/cjs/{index.esm-9225638f.js → index.esm-3b9b8952.js} +1 -1
  86. package/dist/cjs/{index.esm-2bb721c8.js → index.esm-8123cf40.js} +1 -1
  87. package/dist/cjs/{index.esm-00a6aade.js → index.esm-974f47d9.js} +1 -1
  88. package/dist/cjs/index.js +19 -32
  89. package/dist/cjs/{main-f1c77adb.js → main-025fdc78.js} +3 -3
  90. package/dist/cjs/urlFor.js +34 -2
  91. package/dist/esm/AD.js +7 -7
  92. package/dist/esm/AD300x250.js +7 -6
  93. package/dist/esm/AD300x250x600.js +7 -6
  94. package/dist/esm/AD728x90.js +8 -7
  95. package/dist/esm/ADFloatingFooter.js +10 -9
  96. package/dist/esm/ADFooter.js +6 -6
  97. package/dist/esm/ADGutter.js +10 -9
  98. package/dist/esm/{ADInfeed-4a09242b.js → ADInfeed-28b1e946.js} +5 -5
  99. package/dist/esm/ADSkyscraper.js +10 -9
  100. package/dist/esm/ADSponsoredResources.js +10 -9
  101. package/dist/esm/ADWebcast.js +10 -9
  102. package/dist/esm/ADWelcome.js +14 -13
  103. package/dist/esm/{ADlgInfeed-0bff9a62.js → ADlgInfeed-0b474b02.js} +4 -4
  104. package/dist/esm/AccordionPanel.js +18 -18
  105. package/dist/esm/AdSlot.js +6 -5
  106. package/dist/esm/AdSlotsProvider.js +8 -28
  107. package/dist/esm/AlgoliaSearch.js +14123 -41
  108. package/dist/esm/AlphabeticList.js +13 -13
  109. package/dist/esm/ArticleCarousel.js +7 -6
  110. package/dist/esm/ArticleProgramLandingPage.js +19 -17
  111. package/dist/esm/ArticleSeriesLandingPage.js +13 -12
  112. package/dist/esm/ArticleSeriesListing.js +33 -31
  113. package/dist/esm/Auth.js +70 -70
  114. package/dist/esm/AuthWrapper.js +26 -26
  115. package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-5ae7409f.js} +10 -10
  116. package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-52cf21c5.js} +3 -3
  117. package/dist/esm/Breadcrumbs.js +11 -11
  118. package/dist/esm/CMEDeck.js +62 -61
  119. package/dist/esm/Column1.js +5 -5
  120. package/dist/esm/Column2.js +12 -12
  121. package/dist/esm/Column3.js +24 -23
  122. package/dist/esm/ConferenceArticleCard.js +32 -37
  123. package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
  124. package/dist/esm/DeckContent.js +63 -68
  125. package/dist/esm/DeckQueue.js +48 -54
  126. package/dist/esm/{Dfp-be030f2a.js → Dfp-43f121ff.js} +11 -10
  127. package/dist/esm/EventsDeck.js +81 -81
  128. package/dist/esm/ExternalResources.js +37 -35
  129. package/dist/esm/Feature.js +20 -24
  130. package/dist/esm/ForbesHero.js +32 -34
  131. package/dist/esm/GridContent.js +109 -114
  132. package/dist/esm/GridHero.js +31 -40
  133. package/dist/esm/GroupDeck.js +38 -42
  134. package/dist/esm/HamMagazine.js +95 -95
  135. package/dist/esm/Header.js +8 -8
  136. package/dist/esm/Hero.js +8 -19
  137. package/dist/esm/HighlightenVideo.js +14 -14
  138. package/dist/esm/HorizontalArticleListing.js +33 -31
  139. package/dist/esm/HorizontalHero.js +25 -26
  140. package/dist/esm/IssueContentDeck.js +48 -65
  141. package/dist/esm/IssueDeck.js +43 -45
  142. package/dist/esm/IssueLanding.js +53 -51
  143. package/dist/esm/KMTracker.js +15 -15
  144. package/dist/esm/LeftNav.js +17 -16
  145. package/dist/esm/MasterDeck.js +48 -47
  146. package/dist/esm/MediaSeriesLanding.js +334 -434
  147. package/dist/esm/NavDvm.js +43 -43
  148. package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
  149. package/dist/esm/NavMagazine.js +99 -99
  150. package/dist/esm/NavNative.js +86 -86
  151. package/dist/esm/NavNormal.js +22 -22
  152. package/dist/esm/OncliveHero.js +18 -19
  153. package/dist/esm/OncliveLargeHero.js +58 -59
  154. package/dist/esm/PageFilter.js +6 -6
  155. package/dist/esm/PartnerDetailListing.js +68 -71
  156. package/dist/esm/PdfDownload.js +7 -7
  157. package/dist/esm/PopUpModal.js +8 -8
  158. package/dist/esm/PubSection.js +16 -14
  159. package/dist/esm/PubToc.js +5 -5
  160. package/dist/esm/PublicationDeck.js +43 -45
  161. package/dist/esm/PublicationLanding.js +75 -78
  162. package/dist/esm/QueueDeckExpanded.js +262 -260
  163. package/dist/esm/RecentNews.js +21 -24
  164. package/dist/esm/RelatedContent.js +46 -49
  165. package/dist/esm/RelatedTopicsDropdown.js +21 -21
  166. package/dist/esm/RolesDeck.js +13 -13
  167. package/dist/esm/Search.js +5 -5
  168. package/dist/esm/SeriesListingDeck.js +21 -19
  169. package/dist/esm/{SeriesSlider-c8477bf3.js → SeriesSlider-8f2aca58.js} +25 -30
  170. package/dist/esm/SideFooter.js +21 -21
  171. package/dist/esm/SocialIcons.js +7 -7
  172. package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-cd38ae60.js} +22 -22
  173. package/dist/esm/SocialShare.js +25 -25
  174. package/dist/esm/TaxonomyCard.js +43 -46
  175. package/dist/esm/TaxonomyDescription.js +15 -13
  176. package/dist/esm/TemplateNormal.js +31 -30
  177. package/dist/esm/ThumbnailCard.js +11 -15
  178. package/dist/esm/Ustream.js +18 -18
  179. package/dist/esm/VerticalHero.js +14 -18
  180. package/dist/esm/VideoProgramLandingPage.js +26 -24
  181. package/dist/esm/VideoSeriesCard.js +19 -18
  182. package/dist/esm/VideoSeriesFilter.js +6 -6
  183. package/dist/esm/VideoSeriesLandingPage.js +14 -12
  184. package/dist/esm/VideoSeriesListing.js +50 -48
  185. package/dist/esm/View.js +178 -177
  186. package/dist/esm/YahooHero.js +29 -31
  187. package/dist/esm/YoutubeGroup.js +36 -40
  188. package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-b43c695a.js} +3 -3
  189. package/dist/esm/events-6c3a7a63.js +467 -0
  190. package/dist/esm/getSerializers.js +10 -8
  191. package/dist/esm/{getTargeting-05c216d6.js → getTargeting-68291ce9.js} +9 -9
  192. package/dist/esm/getTargeting.js +1 -1
  193. package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
  194. package/dist/esm/{index-5cc7b406.js → index-2446af28.js} +4 -469
  195. package/dist/esm/{index-755f2cc2.js → index-35bdcc81.js} +4 -4
  196. package/dist/esm/{index-343d9c07.js → index-5cc7293b.js} +357 -401
  197. package/dist/esm/index-67e1773f.js +94 -0
  198. package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
  199. package/dist/esm/{index.esm-f6156a57.js → index.esm-3fdda599.js} +1 -1
  200. package/dist/esm/{index.esm-37268dca.js → index.esm-8016b507.js} +16 -16
  201. package/dist/esm/{index.esm-d4932dea.js → index.esm-a8ff922c.js} +1 -1
  202. package/dist/esm/{index.esm-e874e770.js → index.esm-d6f88d94.js} +1 -1
  203. package/dist/esm/index.js +43 -55
  204. package/dist/esm/{main-d4165069.js → main-b5c5aac1.js} +19 -19
  205. package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-91f9716f.js} +5 -5
  206. package/dist/esm/urlFor.js +34 -2
  207. package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
  208. package/package.json +110 -110
  209. /package/dist/cjs/{ADInfeed-eb4ce360.js → ADInfeed-8b336c67.js} +0 -0
  210. /package/dist/cjs/{ADlgInfeed-8a05b63f.js → ADlgInfeed-aedd5e18.js} +0 -0
@@ -1,10 +1,11 @@
1
- import React__default from 'react';
1
+ import React from 'react';
2
2
  import { m as moment } from './moment-bc12cb97.js';
3
- import { i as imageUrlBuilder } from './index-0dbff1d1.js';
3
+ import urlFor from './urlFor.js';
4
4
  import { c as clean_html_1 } from './entities-932b50cf.js';
5
- import { A as AuthorComponent } from './AuthorComponent-30aeba69.js';
6
- import { L as LazyLoad } from './index-755f2cc2.js';
5
+ import { A as AuthorComponent } from './AuthorComponent-5ae7409f.js';
6
+ import { L as LazyLoad } from './index-35bdcc81.js';
7
7
  import './_commonjsHelpers-0c4b6f40.js';
8
+ import './index-0dbff1d1.js';
8
9
  import './slicedToArray-be2f7a22.js';
9
10
  import './web.dom.iterable-4109ff68.js';
10
11
  import './es6.string.iterator-bc33758b.js';
@@ -20,49 +21,45 @@ var YahooHero = function YahooHero(props) {
20
21
  var subArticles = props.dataRecord.slice(1, props.dataRecord.length);
21
22
  var client = props.client;
22
23
 
23
- var builder = imageUrlBuilder(client);
24
- function urlFor(source) {
25
- return builder.image(source).auto('format');
26
- }
27
24
 
28
25
  var topArticleThumbnail = '';
29
26
  var topArticleAltText = topArticle.title;
30
27
  if (topArticle.thumbnail && topArticle.thumbnail.asset) {
31
- topArticleThumbnail = urlFor(topArticle.thumbnail.asset).width(600).url();
28
+ topArticleThumbnail = urlFor({ client: client, source: topArticle.thumbnail.asset, imageWidth: 600 });
32
29
  topArticleAltText = topArticle.thumbnail.asset.originalFileName;
33
30
  } else if (props.thumbnail) {
34
31
  topArticleThumbnail = props.thumbnail;
35
32
  }
36
33
 
37
- return React__default.createElement(
34
+ return React.createElement(
38
35
  'div',
39
36
  { className: 'article-hero' },
40
- React__default.createElement(
37
+ React.createElement(
41
38
  'a',
42
39
  { href: '/view/' + topArticle.url.current },
43
- React__default.createElement(
40
+ React.createElement(
44
41
  'div',
45
42
  { className: 'yh-top-article' },
46
- React__default.createElement(
43
+ React.createElement(
47
44
  'div',
48
45
  { className: 'yh-top-article--img' },
49
- React__default.createElement('img', { src: topArticleThumbnail, alt: topArticleAltText })
46
+ React.createElement('img', { src: topArticleThumbnail, alt: topArticleAltText })
50
47
  ),
51
- React__default.createElement('div', { className: 'yh-top-article--blur' }),
52
- React__default.createElement(
48
+ React.createElement('div', { className: 'yh-top-article--blur' }),
49
+ React.createElement(
53
50
  'div',
54
51
  { className: 'yh-top-article--body' },
55
- React__default.createElement(
52
+ React.createElement(
56
53
  'h1',
57
54
  null,
58
55
  topArticle.title
59
56
  ),
60
- React__default.createElement(
57
+ React.createElement(
61
58
  'p',
62
59
  null,
63
60
  moment(topArticle.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM DD, YYYY hh:mma')
64
61
  ),
65
- React__default.createElement(
62
+ React.createElement(
66
63
  'p',
67
64
  null,
68
65
  clean_html_1(topArticle.summary)
@@ -70,53 +67,54 @@ var YahooHero = function YahooHero(props) {
70
67
  )
71
68
  )
72
69
  ),
73
- React__default.createElement(
70
+ React.createElement(
74
71
  'div',
75
72
  { className: 'yh-sub-article-container' },
76
73
  subArticles.map(function (article, index) {
77
74
  var articleThumbnail = '';
78
75
  article.title;
79
76
  if (article.thumbnail && article.thumbnail.asset) {
80
- articleThumbnail = urlFor(article.thumbnail.asset).width(250).url();
77
+ articleThumbnail = urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 250 });
78
+
81
79
  article.thumbnail.asset.originalFileName;
82
80
  } else if (props.thumbnail) {
83
81
  articleThumbnail = props.thumbnail;
84
82
  }
85
83
 
86
- return React__default.createElement(
84
+ return React.createElement(
87
85
  'div',
88
86
  { key: index, className: 'yh-sub-article' },
89
- React__default.createElement(
87
+ React.createElement(
90
88
  'a',
91
89
  { href: '/view/' + article.url.current },
92
- React__default.createElement('img', { src: articleThumbnail })
90
+ React.createElement('img', { src: articleThumbnail })
93
91
  ),
94
- React__default.createElement(
92
+ React.createElement(
95
93
  'a',
96
94
  { href: '/view/' + article.url.current },
97
- React__default.createElement(
95
+ React.createElement(
98
96
  'h6',
99
97
  { className: 'yh-sub-article--title' },
100
98
  article.title
101
99
  )
102
100
  ),
103
- React__default.createElement(
101
+ React.createElement(
104
102
  'p',
105
103
  { className: 'yh-sub-article--info' },
106
104
  moment(article.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM DD, YYYY hh:mma')
107
105
  ),
108
- article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
106
+ article.authorMapping && article.authorMapping.length > 0 && React.createElement(
109
107
  LazyLoad,
110
108
  { height: 50 },
111
- React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
109
+ React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
112
110
  )
113
111
  );
114
112
  })
115
113
  ),
116
- React__default.createElement(
114
+ React.createElement(
117
115
  'style',
118
116
  { jsx: 'true' },
119
- '\n .article-hero{\n padding-bottom:15px\n }\n .yh-top-article {\n display: flex;\n flex-direction: row;\n position: relative;\n font-family: Roboto, sans-serif;\n margin-bottom: 1rem;\n border-radius: 15px;\n overflow: hidden;\n min-height: 315px;\n }\n .yh-top-article--img {\n width: 100%;\n min-height: 240px;\n overflow: hidden;\n }\n .yh-top-article--img img {\n width: 100%;\n height: auto;\n min-height: 100%;\n max-height: 315px;\n object-fit: cover;\n }\n .yh-top-article--body {\n height: 100%;\n width: 40%;\n min-width: 320px;\n right: 0;\n position: absolute;\n color: white;\n padding: 1.75rem;\n height: 315px;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n flex-direction: column;\n }\n .yh-top-article--body h1 {\n color: white!important;\n font-size: 1.4rem;\n font-weight: 500;\n margin-bottom: 0.5rem;\n }\n .yh-top-article--body p {\n font-size: 0.9rem;\n margin-bottom: 0.5rem;\n }\n .yh-top-article--blur {\n height: 100%;\n width: 40%;\n right: 0;\n position: absolute;\n filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));\n background: rgba(0,0,0,.65);\n min-width: 320px;\n }\n .yh-sub-article-container {\n display: flex;\n justify-content: space-between;\n }\n .yh-sub-article {\n width: 23.25%;\n }\n .yh-sub-article p.yh-sub-article--title {\n font-weight: bold;\n }\n .yh-sub-article img {\n width: 100%;\n height: 150px;\n object-fit: cover;\n border-radius: 15px;\n }\n .yh-sub-article img[src=\'' + props.thumbnail + '\']{\n object-fit: contain;\n }\n .yh-sub-article--title {\n font-weight: bold;\n margin-top: .25rem;\n font-size: 1rem;\n margin-bottom: .25rem;\n }\n .yh-sub-article--info {\n font-size: .8rem;\n margin-bottom: 0;\n\n }\n @media screen and (max-width: 968px) {\n .yh-sub-article-container {\n flex-wrap: wrap;\n }\n .yh-sub-article {\n width: 48%;\n margin-bottom: 1rem;\n }\n }\n '
117
+ '\n .article-hero{\n padding-bottom:15px\n }\n .yh-top-article {\n display: flex;\n flex-direction: row;\n position: relative;\n font-family: Roboto, sans-serif;\n margin-bottom: 1rem;\n border-radius: 15px;\n overflow: hidden;\n min-height: 315px;\n }\n .yh-top-article--img {\n width: 100%;\n min-height: 240px;\n overflow: hidden;\n }\n .yh-top-article--img img {\n width: 100%;\n height: auto;\n min-height: 100%;\n max-height: 615px;\n object-fit: cover;\n }\n .yh-top-article--body {\n height: 100%;\n width: 40%;\n min-width: 320px;\n right: 0;\n position: absolute;\n color: white;\n padding: 1.75rem;\n height: 315px;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n flex-direction: column;\n }\n .yh-top-article--body h1 {\n color: white!important;\n font-size: 1.4rem;\n font-weight: 500;\n margin-bottom: 0.5rem;\n }\n .yh-top-article--body p {\n font-size: 0.9rem;\n margin-bottom: 0.5rem;\n }\n .yh-top-article--blur {\n height: 100%;\n width: 40%;\n right: 0;\n position: absolute;\n filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));\n background: rgba(0,0,0,.65);\n min-width: 320px;\n }\n .yh-sub-article-container {\n display: flex;\n justify-content: space-between;\n }\n .yh-sub-article {\n width: 23.25%;\n }\n .yh-sub-article p.yh-sub-article--title {\n font-weight: bold;\n }\n .yh-sub-article img {\n width: 100%;\n max-height: 150px;\n object-fit: cover;\n border-radius: 15px;\n }\n .yh-sub-article img[src=\'' + props.thumbnail + '\']{\n object-fit: contain;\n }\n .yh-sub-article--title {\n font-weight: bold;\n margin-top: .25rem;\n font-size: 1rem;\n margin-bottom: .25rem;\n }\n .yh-sub-article--info {\n font-size: .8rem;\n margin-bottom: 0;\n\n }\n @media screen and (max-width: 968px) {\n .yh-sub-article-container {\n flex-wrap: wrap;\n }\n .yh-sub-article {\n width: 48%;\n margin-bottom: 1rem;\n }\n }\n '
120
118
  )
121
119
  );
122
120
  };
@@ -1,11 +1,11 @@
1
1
  import { _ as _typeof } from './typeof-a286cf0c.js';
2
2
  import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
3
- import React__default, { useRef, useState, useEffect } from 'react';
3
+ import React, { useRef, useState, useEffect } from 'react';
4
4
  import { g as getYoutubeId } from './index-c7e2ac95.js';
5
- import { L as LazyLoad } from './index-755f2cc2.js';
5
+ import { L as LazyLoad } from './index-35bdcc81.js';
6
6
  import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
7
- import { i as imageUrlBuilder } from './index-0dbff1d1.js';
8
- import { m as main_43, a as main_49, b as main_42 } from './main-d4165069.js';
7
+ import urlFor from './urlFor.js';
8
+ import { m as main_43, a as main_49, b as main_42 } from './main-b5c5aac1.js';
9
9
  import './_commonjsHelpers-0c4b6f40.js';
10
10
  import './es6.string.iterator-bc33758b.js';
11
11
  import './_to-object-b50e61c3.js';
@@ -16,11 +16,12 @@ import './_library-528f1934.js';
16
16
  import './core.get-iterator-method-133dfacd.js';
17
17
  import 'react-dom';
18
18
  import 'prop-types';
19
+ import './index-0dbff1d1.js';
19
20
 
20
- /*
21
- GROQ query -
22
- accepts an array of title, URL
23
- `https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
21
+ /*
22
+ GROQ query -
23
+ accepts an array of title, URL
24
+ `https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
24
25
  */
25
26
 
26
27
  var YoutubeGroup = function YoutubeGroup(props) {
@@ -50,11 +51,6 @@ var YoutubeGroup = function YoutubeGroup(props) {
50
51
  tileHeight = _useState8[0],
51
52
  setTileHeight = _useState8[1];
52
53
 
53
- var urlFor = function urlFor(source, client) {
54
- var builder = imageUrlBuilder(client);
55
- return builder.image(source).auto('format');
56
- };
57
-
58
54
  useEffect(function () {
59
55
  //IE11 Polyfill
60
56
  smoothscroll.polyfill();
@@ -199,13 +195,13 @@ var YoutubeGroup = function YoutubeGroup(props) {
199
195
  displayEpisodeNumber = _props$displayEpisode === undefined ? false : _props$displayEpisode;
200
196
 
201
197
 
202
- return React__default.createElement(
198
+ return React.createElement(
203
199
  'div',
204
200
  { ref: viewableWindow, id: 'vid-slider', style: { maxWidth: '100%' }, className: 'col' },
205
- React__default.createElement(
201
+ React.createElement(
206
202
  'div',
207
203
  { ref: viewableArea, className: 'row', style: { display: 'flex', alignItems: 'center' } },
208
- showScroller && showScroller && React__default.createElement(
204
+ showScroller && showScroller && React.createElement(
209
205
  'div',
210
206
  {
211
207
  onClick: function onClick(e) {
@@ -220,9 +216,9 @@ var YoutubeGroup = function YoutubeGroup(props) {
220
216
  borderRadius: '50%',
221
217
  paddingLeft: '19px'
222
218
  } },
223
- React__default.createElement('i', { style: { border: 'solid #fff', borderWidth: '0 4px 4px 0', marginLeft: '3px' }, className: 'arrow left' })
219
+ React.createElement('i', { style: { border: 'solid #fff', borderWidth: '0 4px 4px 0', marginLeft: '3px' }, className: 'arrow left' })
224
220
  ),
225
- showScroller && showScroller && React__default.createElement(
221
+ showScroller && showScroller && React.createElement(
226
222
  'div',
227
223
  {
228
224
  onClick: function onClick(e) {
@@ -237,9 +233,9 @@ var YoutubeGroup = function YoutubeGroup(props) {
237
233
  borderRadius: '50%',
238
234
  paddingRight: '19px'
239
235
  } },
240
- React__default.createElement('i', { style: { border: 'solid #fff', borderWidth: '0 4px 4px 0', marginRight: '3px' }, className: 'arrow right' })
236
+ React.createElement('i', { style: { border: 'solid #fff', borderWidth: '0 4px 4px 0', marginRight: '3px' }, className: 'arrow right' })
241
237
  ),
242
- React__default.createElement(
238
+ React.createElement(
243
239
  'div',
244
240
  { ref: innerSlider, className: 'row__inner' },
245
241
  props.dataset && props.dataset.map(function (video, index) {
@@ -248,44 +244,44 @@ var YoutubeGroup = function YoutubeGroup(props) {
248
244
  var url = video.url;
249
245
  var thumbnail = void 0;
250
246
  if (video.thumbnail && video.thumbnail.asset) {
251
- thumbnail = urlFor(video.thumbnail, props.client);
247
+ thumbnail = urlFor({ source: video.thumbnail, client: props.client });
252
248
  } else if (_typeof(video.thumbnail == 'string')) {
253
249
  thumbnail = video.thumbnail;
254
250
  } else {
255
251
  thumbnail = 'https://img.youtube.com/vi/' + getYoutubeId(video.url) + '/hqdefault.jpg';
256
252
  }
257
253
 
258
- return React__default.createElement(
254
+ return React.createElement(
259
255
  'div',
260
256
  { ref: function ref(ele) {
261
257
  return tileArray.current[index] = ele;
262
258
  }, key: index, className: 'tile', style: { width: tileSize + 'px' } },
263
- current && current === url ? React__default.createElement(
259
+ current && current === url ? React.createElement(
264
260
  'div',
265
261
  { className: 'now-playing' },
266
262
  'Now Playing'
267
263
  ) : '',
268
- React__default.createElement(
264
+ React.createElement(
269
265
  'a',
270
266
  { onClick: function onClick() {
271
267
  return handleClick(url, index + 1);
272
268
  } },
273
- React__default.createElement(
269
+ React.createElement(
274
270
  'div',
275
271
  { className: 'tile__media', style: { width: tileSize + 'px', height: tileHeight + 'px' } },
276
- React__default.createElement(
272
+ React.createElement(
277
273
  LazyLoad,
278
274
  null,
279
- React__default.createElement('img', { className: 'tile__img', style: { width: tileSize + 'px', height: tileHeight + 'px' }, src: thumbnail, alt: '' })
275
+ React.createElement('img', { className: 'tile__img', style: { width: tileSize + 'px', height: tileHeight + 'px' }, src: thumbnail, alt: '' })
280
276
  )
281
277
  ),
282
- React__default.createElement(
278
+ React.createElement(
283
279
  'div',
284
280
  { style: { color: variant }, className: 'tile__title' },
285
- displayEpisodeNumber ? React__default.createElement(
281
+ displayEpisodeNumber ? React.createElement(
286
282
  'span',
287
283
  null,
288
- React__default.createElement(
284
+ React.createElement(
289
285
  'b',
290
286
  { style: { marginLeft: '.25rem', display: 'inline-block' } },
291
287
  'EP. ',
@@ -303,34 +299,34 @@ var YoutubeGroup = function YoutubeGroup(props) {
303
299
  var _url = '' + video.link;
304
300
  var _thumbnail = void 0;
305
301
  if (video.thumbnail && video.thumbnail.asset) {
306
- _thumbnail = urlFor(video.thumbnail, props.client);
302
+ _thumbnail = urlFor({ source: video.thumbnail, client: props.client });
307
303
  } else {
308
304
  _thumbnail = 'https://img.youtube.com/vi/' + getYoutubeId(video.url) + '/hqdefault.jpg';
309
305
  }
310
- return React__default.createElement(
306
+ return React.createElement(
311
307
  'div',
312
308
  { ref: function ref(ele) {
313
309
  return tileArray.current[index] = ele;
314
310
  }, key: index, style: { width: tileSize + 'px' }, className: 'tile' },
315
- React__default.createElement(
311
+ React.createElement(
316
312
  'a',
317
313
  { href: _url },
318
- React__default.createElement(
314
+ React.createElement(
319
315
  'div',
320
316
  { className: 'tile__media', style: { width: tileSize + 'px', height: tileHeight + 'px' } },
321
- React__default.createElement(
317
+ React.createElement(
322
318
  LazyLoad,
323
319
  null,
324
- React__default.createElement('img', { className: 'tile__img', src: _thumbnail, style: { width: tileSize + 'px', height: tileHeight + 'px' }, alt: '' })
320
+ React.createElement('img', { className: 'tile__img', src: _thumbnail, style: { width: tileSize + 'px', height: tileHeight + 'px' }, alt: '' })
325
321
  )
326
322
  ),
327
- React__default.createElement(
323
+ React.createElement(
328
324
  'div',
329
325
  { style: { color: variant }, className: 'tile__title' },
330
- displayEpisodeNumber ? React__default.createElement(
326
+ displayEpisodeNumber ? React.createElement(
331
327
  'span',
332
328
  null,
333
- React__default.createElement(
329
+ React.createElement(
334
330
  'b',
335
331
  { style: { marginLeft: '.25rem', display: 'inline-block' } },
336
332
  'EP. ',
@@ -347,7 +343,7 @@ var YoutubeGroup = function YoutubeGroup(props) {
347
343
  })
348
344
  )
349
345
  ),
350
- React__default.createElement(
346
+ React.createElement(
351
347
  'style',
352
348
  { jsx: 'true' },
353
349
  '\n #vid-slider * {\n box-sizing: border-box;\n -ms-overflow-style: none;\n }\n #vid-slider::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider {\n position: relative;\n -ms-overflow-style: none;\n padding: 0 2.5rem;\n margin-bottom: 2rem;\n }\n #vid-slider.col {\n padding: 0 2.5rem;\n }\n #vid-slider .now-playing {\n position: absolute;\n top: 0.5rem;\n left: 1rem;\n color: white;\n background: rgba(0, 0, 0, 0.75);\n }\n #vid-slider h1,\n #vid-slider p {\n text-align: center;\n width: 100%;\n max-width: 500px;\n margin: auto;\n }\n #vid-slider a:link,\n #vid-slider a:hover,\n #vid-slider a:active,\n #vid-slider a:visited {\n transition: color 150ms;\n color: #95a5a6;\n text-decoration: none;\n }\n #vid-slider .contain {\n width: 100%;\n }\n #vid-slider .row {\n overflow-x: hidden;\n width: 100%;\n -ms-overflow-style: none;\n overflow-y: hidden !important;\n }\n #vid-slider .tile__info {\n white-space: normal !important;\n position: absolute;\n width: 100%;\n text-align: center;\n color: ' + (props.dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: 0.9rem;\n font-weight: normal;\n transition: opacity 0.25s;\n }\n #vid-slider .row__inner {\n display: flex;\n transition: 450ms -webkit-transform;\n transition: 450ms transform;\n transition: 450ms transform, 450ms -webkit-transform;\n font-size: 0;\n white-space: nowrap;\n margin-top: 1.5rem !important;\n padding-bottom: 10px;\n padding-left: 0;\n }\n #vid-slider .tile {\n position: relative;\n display: inline-block;\n height: 100%;\n margin-right: 0.5rem;\n font-size: 20px;\n cursor: pointer;\n transition: 450ms all;\n -webkit-transform-origin: center left;\n transform-origin: center left;\n }\n #vid-slider .tile:first-child {\n margin-left: 0;\n }\n #vid-slider .tile__img {\n height: auto;\n\n -o-object-fit: cover;\n object-fit: cover;\n object-position: center;\n }\n #vid-slider .tile__details {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n font-size: 10px;\n opacity: 0;\n background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);\n transition: 450ms opacity;\n }\n #vid-slider .tile__details:after,\n #vid-slider .tile__details:before {\n content: \'\';\n\n position: absolute;\n top: 50%;\n left: 50%;\n display: #000;\n }\n #vid-slider .tile__details:after {\n margin-top: -25px;\n margin-left: -25px;\n width: 50px;\n height: 50px;\n border: 3px solid #ecf0f1;\n line-height: 50px;\n text-align: center;\n border-radius: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1;\n }\n #vid-slider .tile__details:before {\n content: \'\';\n background: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 64 64\' width=\'64\' height=\'64\' fill=\'white\'><path d=\'M26 46 L46 32 L26 18 Z\'/></svg>")\n no-repeat center center;\n left: 0;\n width: 100%;\n height: 3rem;\n font-size: 30px;\n margin-right: 12px;\n margin-top: -24px;\n text-align: center;\n z-index: 2;\n color: white;\n }\n\n .tile__media {\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: flex-start;\n }\n\n #vid-slider .tile__title {\n white-space: normal !important;\n max-width: ' + tileSize + 'px;\n text-align: center;\n color: ' + (props.dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: ' + (main_42 ? '0.75rem' : '0.9rem') + ';\n font-weight: normal;\n transition: opacity 0.25s;\n -webkit-font-smoothing: antialiased;\n }\n\n #vid-slider .tile__slider-prev,\n #vid-slider .tile__slider-next {\n width: 30px;\n background: transparent;\n border: none;\n position: absolute;\n transform: translateY(-50%);\n z-index: 99;\n cursor: pointer;\n color: ' + (props.dark ? 'white' : 'black') + ';\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 2rem;\n }\n #vid-slider .tile__slider-prev {\n left: -0.5rem;\n padding: 1rem;\n }\n #vid-slider .tile__slider-next {\n right: -0.5rem;\n padding: 1rem;\n }\n #vid-slider,\n #vid-slider .row {\n margin: 0;\n padding-right: 0 1.2rem;\n }\n\n #vid-slider .row::-webkit-scrollbar-thumb {\n background-color: transparent !important;\n }\n #vid-slider i {\n border: solid ' + (props.dark ? 'white' : 'black') + ';\n border-width: 0 4px 4px 0;\n display: inline-block;\n padding: 4px;\n pointer-events: none;\n }\n #vid-slider .right {\n transform: rotate(-45deg);\n -webkit-transform: rotate(-45deg);\n }\n #vid-slider .left {\n transform: rotate(135deg);\n -webkit-transform: rotate(135deg);\n }\n @media screen and (max-width: 1399px) {\n #vid-slider,\n #vidHolder {\n }\n #vid-slider .tile__img {\n }\n }\n @media screen and (max-width: 1200px) {\n #vid-slider,\n #vidHolder {\n }\n }\n @media screen and (max-width: 967px) {\n #vid-slider {\n max-width: 100%;\n }\n #vid-slider .tile__img {\n }\n }\n\n @media screen and (max-width: 768px) {\n #vidHolder {\n position: unset;\n width: 100%;\n }\n\n #vid-slider .tile__img {\n }\n #vid-slider .row__inner {\n margin-top: 1.5rem !important;\n }\n }\n\n @media screen and (max-width: 590px) {\n #vid-slider .tile__img {\n }\n }\n '
@@ -1,4 +1,4 @@
1
- import React__default from 'react';
1
+ import React from 'react';
2
2
  import { a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
3
3
 
4
4
  var slice = Array.prototype.slice;
@@ -2217,10 +2217,10 @@ function (_React$Component) {
2217
2217
  ref: this.setRefNode
2218
2218
  });
2219
2219
 
2220
- return React__default.createElement('div', props);
2220
+ return React.createElement('div', props);
2221
2221
  };
2222
2222
 
2223
2223
  return ReactPlayerLoader;
2224
- }(React__default.Component);
2224
+ }(React.Component);
2225
2225
 
2226
2226
  export { ReactPlayerLoader as R };