@mjhls/mjh-framework 1.0.711-beta.2 → 1.0.711-cors-proxy

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 (229) hide show
  1. package/dist/cjs/AD.js +10 -9
  2. package/dist/cjs/AD300x250.js +10 -9
  3. package/dist/cjs/AD300x250x600.js +10 -9
  4. package/dist/cjs/AD728x90.js +11 -10
  5. package/dist/cjs/ADFloatingFooter.js +12 -11
  6. package/dist/cjs/ADFooter.js +9 -8
  7. package/dist/cjs/ADGutter.js +12 -11
  8. package/dist/cjs/{ADInfeed-5a561d7c.js → ADInfeed-71e2533d.js} +11 -9
  9. package/dist/cjs/ADSkyscraper.js +12 -11
  10. package/dist/cjs/ADSponsoredResources.js +12 -11
  11. package/dist/cjs/ADWebcast.js +12 -11
  12. package/dist/cjs/ADWelcome.js +16 -15
  13. package/dist/cjs/{ADlgInfeed-c50f81d4.js → ADlgInfeed-2c6a814f.js} +7 -6
  14. package/dist/cjs/AccordionPanel.js +24 -22
  15. package/dist/cjs/AdSlot.js +14 -13
  16. package/dist/cjs/AdSlotsProvider.js +7 -6
  17. package/dist/cjs/AlphabeticList.js +16 -15
  18. package/dist/cjs/ArticleCarousel.js +12 -12
  19. package/dist/cjs/ArticleSeriesListing.js +41 -41
  20. package/dist/cjs/Auth.js +232 -144
  21. package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-ac8972ce.js} +13 -12
  22. package/dist/cjs/{BlockContent-091a991f.js → BlockContent-8b494587.js} +25 -24
  23. package/dist/cjs/Breadcrumbs.js +23 -21
  24. package/dist/cjs/BrowseVideosListing.js +29 -29
  25. package/dist/cjs/CMEDeck.js +63 -63
  26. package/dist/cjs/Column1.js +14 -11
  27. package/dist/cjs/Column2.js +22 -19
  28. package/dist/cjs/Column3.js +35 -32
  29. package/dist/cjs/ConferenceArticleCard.js +19 -18
  30. package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
  31. package/dist/cjs/DeckContent.js +77 -73
  32. package/dist/cjs/DeckQueue.js +73 -69
  33. package/dist/cjs/{Dfp-ce7ac168.js → Dfp-234d2d8e.js} +21 -20
  34. package/dist/cjs/EventsDeck.js +123 -116
  35. package/dist/cjs/ExternalResources.js +47 -47
  36. package/dist/cjs/Feature.js +26 -24
  37. package/dist/cjs/ForbesHero.js +34 -33
  38. package/dist/cjs/GridContent.js +153 -149
  39. package/dist/cjs/GridHero.js +35 -34
  40. package/dist/cjs/GroupDeck.js +43 -43
  41. package/dist/cjs/HamMagazine.js +119 -114
  42. package/dist/cjs/Header.js +13 -11
  43. package/dist/cjs/Hero.js +11 -10
  44. package/dist/cjs/HighlightenVideo.js +17 -16
  45. package/dist/cjs/HorizontalHero.js +25 -24
  46. package/dist/cjs/IssueContentDeck.js +70 -65
  47. package/dist/cjs/IssueDeck.js +65 -60
  48. package/dist/cjs/IssueLanding.js +19 -18
  49. package/dist/cjs/LeftNav.js +22 -20
  50. package/dist/cjs/MasterDeck.js +51 -50
  51. package/dist/cjs/NavDvm.js +68 -63
  52. package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
  53. package/dist/cjs/NavMagazine.js +121 -116
  54. package/dist/cjs/NavNative.js +107 -99
  55. package/dist/cjs/NavNormal.js +41 -36
  56. package/dist/cjs/OncliveHero.js +18 -18
  57. package/dist/cjs/OncliveLargeHero.js +59 -58
  58. package/dist/cjs/PageFilter.js +9 -8
  59. package/dist/cjs/PartnerDetailListing.js +72 -72
  60. package/dist/cjs/PdfDownload.js +9 -8
  61. package/dist/cjs/PopUpModal.js +15 -13
  62. package/dist/cjs/PublicationDeck.js +64 -59
  63. package/dist/cjs/PublicationLanding.js +64 -60
  64. package/dist/cjs/QueueDeckExpanded.js +270 -270
  65. package/dist/cjs/RecentNews.js +23 -22
  66. package/dist/cjs/RelatedContent.js +22 -21
  67. package/dist/cjs/RelatedTopicsDropdown.js +22 -19
  68. package/dist/cjs/RolesDeck.js +32 -27
  69. package/dist/cjs/Search.js +16 -12
  70. package/dist/cjs/SideFooter.js +24 -23
  71. package/dist/cjs/SocialIcons.js +10 -9
  72. package/dist/cjs/{SocialSearchComponent-8dd468fd.js → SocialSearchComponent-87578cd1.js} +38 -34
  73. package/dist/cjs/SocialShare.js +31 -29
  74. package/dist/cjs/TaxonomyCard.js +59 -54
  75. package/dist/cjs/TaxonomyDescription.js +23 -23
  76. package/dist/cjs/TemplateNormal.js +36 -35
  77. package/dist/cjs/ThumbnailCard.js +19 -17
  78. package/dist/cjs/Ustream.js +21 -20
  79. package/dist/cjs/VerticalHero.js +17 -16
  80. package/dist/cjs/VideoSeriesCard.js +24 -23
  81. package/dist/cjs/VideoSeriesFilter.js +9 -9
  82. package/dist/cjs/VideoSeriesListing.js +56 -56
  83. package/dist/cjs/View.js +183 -180
  84. package/dist/cjs/YahooHero.js +30 -29
  85. package/dist/cjs/YoutubeGroup.js +51 -51
  86. package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-5c98aec7.js} +10 -8
  87. package/dist/cjs/getRelatedArticle.js +8 -8
  88. package/dist/cjs/getSerializers.js +12 -13
  89. package/dist/cjs/{getTargeting-9af0ef69.js → getTargeting-fee8c429.js} +2 -2
  90. package/dist/cjs/getTargeting.js +1 -1
  91. package/dist/cjs/iconBase-68959171.js +0 -3
  92. package/dist/cjs/{index-3294d3bc.js → index-6367b7bf.js} +16 -17
  93. package/dist/cjs/{index-da796b8c.js → index-8a3fb0bc.js} +12 -10
  94. package/dist/cjs/{index-9b8a57e5.js → index-ad961307.js} +811 -788
  95. package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
  96. package/dist/cjs/{index-8bf6c863.js → index-e08f00ce.js} +9 -8
  97. package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
  98. package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
  99. package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
  100. package/dist/cjs/{index.esm-4d410430.js → index.esm-3ffa049c.js} +20 -20
  101. package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
  102. package/dist/cjs/index.js +31 -37
  103. package/dist/cjs/{inherits-c9f99d47.js → inherits-87492b40.js} +1 -1
  104. package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
  105. package/dist/cjs/{main-02daeefe.js → main-7b5e57b0.js} +90 -54
  106. package/dist/cjs/{moment-575fe24c.js → moment-ca3bd9fb.js} +10 -8
  107. package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-07939b41.js} +12 -11
  108. package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-95231a70.js} +50 -0
  109. package/dist/cjs/timeDifferenceCalc.js +1 -1
  110. package/dist/cjs/{typeof-725500bc.js → typeof-9d7f610f.js} +1 -1
  111. package/dist/cjs/urlFor.js +2 -2
  112. package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
  113. package/dist/esm/AD.js +7 -7
  114. package/dist/esm/AD300x250.js +7 -7
  115. package/dist/esm/AD300x250x600.js +7 -7
  116. package/dist/esm/AD728x90.js +8 -8
  117. package/dist/esm/ADFloatingFooter.js +9 -9
  118. package/dist/esm/ADFooter.js +6 -6
  119. package/dist/esm/ADGutter.js +9 -9
  120. package/dist/esm/{ADInfeed-d4c94a16.js → ADInfeed-73a22dad.js} +5 -5
  121. package/dist/esm/ADSkyscraper.js +9 -9
  122. package/dist/esm/ADSponsoredResources.js +9 -9
  123. package/dist/esm/ADWebcast.js +9 -9
  124. package/dist/esm/ADWelcome.js +13 -13
  125. package/dist/esm/{ADlgInfeed-5b170d9e.js → ADlgInfeed-e5c107b7.js} +4 -4
  126. package/dist/esm/AccordionPanel.js +17 -17
  127. package/dist/esm/AdSlot.js +5 -5
  128. package/dist/esm/AdSlotsProvider.js +4 -4
  129. package/dist/esm/AlphabeticList.js +13 -13
  130. package/dist/esm/ArticleCarousel.js +9 -10
  131. package/dist/esm/ArticleSeriesListing.js +35 -36
  132. package/dist/esm/Auth.js +209 -125
  133. package/dist/esm/{AuthorComponent-00f13201.js → AuthorComponent-23afa074.js} +10 -10
  134. package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-d05b5b23.js} +4 -4
  135. package/dist/esm/Breadcrumbs.js +11 -11
  136. package/dist/esm/BrowseVideosListing.js +26 -27
  137. package/dist/esm/CMEDeck.js +60 -60
  138. package/dist/esm/Column1.js +5 -5
  139. package/dist/esm/Column2.js +12 -12
  140. package/dist/esm/Column3.js +24 -24
  141. package/dist/esm/ConferenceArticleCard.js +14 -14
  142. package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
  143. package/dist/esm/DeckContent.js +54 -54
  144. package/dist/esm/DeckQueue.js +47 -47
  145. package/dist/esm/{Dfp-14e866d7.js → Dfp-f9463b48.js} +10 -10
  146. package/dist/esm/EventsDeck.js +66 -66
  147. package/dist/esm/ExternalResources.js +40 -41
  148. package/dist/esm/Feature.js +17 -17
  149. package/dist/esm/ForbesHero.js +28 -28
  150. package/dist/esm/GridContent.js +111 -111
  151. package/dist/esm/GridHero.js +29 -29
  152. package/dist/esm/GroupDeck.js +37 -38
  153. package/dist/esm/HamMagazine.js +86 -86
  154. package/dist/esm/Header.js +7 -7
  155. package/dist/esm/Hero.js +7 -7
  156. package/dist/esm/HighlightenVideo.js +14 -14
  157. package/dist/esm/HorizontalHero.js +21 -21
  158. package/dist/esm/IssueContentDeck.js +41 -41
  159. package/dist/esm/IssueDeck.js +34 -34
  160. package/dist/esm/IssueLanding.js +16 -16
  161. package/dist/esm/LeftNav.js +16 -16
  162. package/dist/esm/MasterDeck.js +44 -44
  163. package/dist/esm/NavDvm.js +43 -43
  164. package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
  165. package/dist/esm/NavMagazine.js +90 -90
  166. package/dist/esm/NavNative.js +72 -72
  167. package/dist/esm/NavNormal.js +21 -21
  168. package/dist/esm/OncliveHero.js +14 -15
  169. package/dist/esm/OncliveLargeHero.js +52 -52
  170. package/dist/esm/PageFilter.js +6 -6
  171. package/dist/esm/PartnerDetailListing.js +67 -68
  172. package/dist/esm/PdfDownload.js +6 -6
  173. package/dist/esm/PopUpModal.js +8 -8
  174. package/dist/esm/PublicationDeck.js +35 -35
  175. package/dist/esm/PublicationLanding.js +35 -35
  176. package/dist/esm/QueueDeckExpanded.js +251 -251
  177. package/dist/esm/RecentNews.js +19 -19
  178. package/dist/esm/RelatedContent.js +17 -17
  179. package/dist/esm/RelatedTopicsDropdown.js +11 -11
  180. package/dist/esm/RolesDeck.js +13 -13
  181. package/dist/esm/Search.js +5 -5
  182. package/dist/esm/SideFooter.js +19 -19
  183. package/dist/esm/SocialIcons.js +7 -7
  184. package/dist/esm/{SocialSearchComponent-8ac29f4f.js → SocialSearchComponent-91c19daa.js} +25 -25
  185. package/dist/esm/SocialShare.js +25 -25
  186. package/dist/esm/TaxonomyCard.js +36 -36
  187. package/dist/esm/TaxonomyDescription.js +17 -18
  188. package/dist/esm/TemplateNormal.js +29 -29
  189. package/dist/esm/ThumbnailCard.js +10 -10
  190. package/dist/esm/Ustream.js +18 -18
  191. package/dist/esm/VerticalHero.js +13 -13
  192. package/dist/esm/VideoSeriesCard.js +17 -17
  193. package/dist/esm/VideoSeriesFilter.js +6 -6
  194. package/dist/esm/VideoSeriesListing.js +49 -50
  195. package/dist/esm/View.js +158 -159
  196. package/dist/esm/YahooHero.js +25 -25
  197. package/dist/esm/YoutubeGroup.js +36 -37
  198. package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-4abff0b1.js} +7 -6
  199. package/dist/esm/getRelatedArticle.js +1 -1
  200. package/dist/esm/getSerializers.js +12 -13
  201. package/dist/esm/{index-4d1ed4ba.js → index-1a7c57c9.js} +748 -732
  202. package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
  203. package/dist/esm/{index-a9e53f80.js → index-acfb8079.js} +3 -3
  204. package/dist/esm/{index-ef6d5dcf.js → index-c00b0bbb.js} +16 -17
  205. package/dist/esm/{index-5f9f807a.js → index-c5fd0af5.js} +4 -4
  206. package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
  207. package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
  208. package/dist/esm/{index.esm-fd746768.js → index.esm-8ee5ff72.js} +17 -18
  209. package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
  210. package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
  211. package/dist/esm/index.js +26 -30
  212. package/dist/esm/{inherits-7ee3e0c1.js → inherits-596840e8.js} +1 -1
  213. package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
  214. package/dist/esm/{main-e4a934b2.js → main-747e7d25.js} +87 -52
  215. package/dist/esm/{moment-e2f9b20c.js → moment-b6f49411.js} +10 -8
  216. package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
  217. package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-4b699764.js} +51 -2
  218. package/dist/esm/timeDifferenceCalc.js +1 -1
  219. package/dist/esm/{typeof-08f2c380.js → typeof-ee095d0c.js} +1 -1
  220. package/dist/esm/urlFor.js +1 -1
  221. package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
  222. package/package.json +1 -1
  223. package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
  224. package/dist/cjs/VideoProgramLandingPage.js +0 -247
  225. package/dist/cjs/VideoSeriesLandingPage.js +0 -177
  226. package/dist/cjs/index-187c967e.js +0 -54
  227. package/dist/esm/VideoProgramLandingPage.js +0 -242
  228. package/dist/esm/VideoSeriesLandingPage.js +0 -172
  229. package/dist/esm/index-c7e2ac95.js +0 -52
@@ -1,242 +0,0 @@
1
- import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-ded78eb9.js';
3
- import './es6.string.iterator-9b2af4a5.js';
4
- import './_library-528f1934.js';
5
- import './_iter-detect-59409a32.js';
6
- import './toConsumableArray-725434a0.js';
7
- import './core.get-iterator-method-54d2e411.js';
8
- import './_object-pie-71ac75a4.js';
9
- import { _ as _extends } from './extends-cc5da797.js';
10
- import './_object-sap-4d59d5bd.js';
11
- import './inherits-7ee3e0c1.js';
12
- import './define-property-de3fc946.js';
13
- import './web.dom.iterable-8956f9a5.js';
14
- import './typeof-08f2c380.js';
15
- import './_is-array-49698029.js';
16
- import React__default from 'react';
17
- import './index-a9e53f80.js';
18
- import 'prop-types';
19
- import 'react-bootstrap/Container';
20
- import 'react-bootstrap/Row';
21
- import Col from 'react-bootstrap/Col';
22
- import './moment-e2f9b20c.js';
23
- import 'next/router';
24
- import './isSymbol-807e927e.js';
25
- import './debounce-1a993acf.js';
26
- import './index.es-29c1cef5.js';
27
- import 'react-dom';
28
- import './visibility-sensor-0baa4eea.js';
29
- import './index-73819142.js';
30
- import './index-5f9f807a.js';
31
- import './main-e4a934b2.js';
32
- import './entities-7cc3bf45.js';
33
- import './stringify-008c8802.js';
34
- import './slicedToArray-7021e5df.js';
35
- import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7c654f36.js';
36
- import './_set-species-cede29f8.js';
37
- import './Segment.js';
38
- import './Beam.js';
39
- import './AdSlot.js';
40
- import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
41
- import './index-c7e2ac95.js';
42
- import './smoothscroll-0cd4c7a6.js';
43
- import './GroupDeck.js';
44
- import './YoutubeGroup.js';
45
- import 'react-bootstrap';
46
- import './iconBase-602d52fe.js';
47
- import './index.esm-29e48d38.js';
48
- import VideoSeriesListing from './VideoSeriesListing.js';
49
- import Button from 'react-bootstrap/Button';
50
- import Form from 'react-bootstrap/Form';
51
- import { g as getSerializers } from './index-4d1ed4ba.js';
52
- import './util-7700fc59.js';
53
- import './brightcove-react-player-loader.es-83f53e4e.js';
54
- import 'react-bootstrap/Pagination';
55
- import 'next/head';
56
- import 'react-bootstrap/Figure';
57
-
58
- var _this = undefined;
59
-
60
- var cache = { topic_ids: [] };
61
-
62
- var VideoProgramLandingPage = function VideoProgramLandingPage(props) {
63
- var client = props.client,
64
- virtualBlock = props.virtualBlock,
65
- topics = props.topics,
66
- posts = props.posts,
67
- query = props.query,
68
- params = props.params,
69
- _props$currentPage = props.currentPage,
70
- currentPage = _props$currentPage === undefined ? 1 : _props$currentPage,
71
- pageview = props.pageview,
72
- _props$columns = props.columns,
73
- columns = _props$columns === undefined ? 'rotate' : _props$columns,
74
- _props$variant = props.variant,
75
- variant = _props$variant === undefined ? 'top' : _props$variant,
76
- _props$page = props.page,
77
- page = _props$page === undefined ? '' : _props$page,
78
- _props$autoScroll = props.autoScroll,
79
- autoScroll = _props$autoScroll === undefined ? true : _props$autoScroll,
80
- defaultImage = props.defaultImage,
81
- mapping = props.mapping;
82
-
83
- return React__default.createElement(
84
- 'div',
85
- null,
86
- virtualBlock && React__default.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: virtualBlock.body, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config())),
87
- React__default.createElement(
88
- 'div',
89
- { className: 'peer-exchange-filter-container' },
90
- React__default.createElement(
91
- Form,
92
- { className: 'ml-3', method: 'post' },
93
- React__default.createElement(
94
- Form.Row,
95
- null,
96
- React__default.createElement(
97
- Col,
98
- null,
99
- React__default.createElement(
100
- Form.Group,
101
- { controlId: 'topic' },
102
- React__default.createElement(
103
- Form.Control,
104
- { as: 'select', name: 'topic_id', placeholder: 'Filter by Topic' },
105
- React__default.createElement(
106
- 'option',
107
- { value: '' },
108
- 'All Topics'
109
- ),
110
- topics && topics.map(function (topic) {
111
- if (props.topic_id === topic._id || topic.name == 'Peer Exchange') {
112
- return null;
113
- } else {
114
- return React__default.createElement(
115
- 'option',
116
- { value: topic._id },
117
- topic.name
118
- );
119
- }
120
- })
121
- )
122
- )
123
- ),
124
- React__default.createElement(
125
- Col,
126
- null,
127
- React__default.createElement(
128
- Button,
129
- { type: 'submit', variant: 'secondary' },
130
- 'Apply'
131
- )
132
- )
133
- )
134
- )
135
- ),
136
- posts && React__default.createElement(VideoSeriesListing, {
137
- client: client,
138
- mapping: mapping,
139
- dataRecord: posts,
140
- query: query,
141
- params: params,
142
- currentPage: currentPage,
143
- pageview: pageview,
144
- columns: columns,
145
- variant: variant,
146
- page: page,
147
- autoScroll: autoScroll,
148
- defaultImage: defaultImage
149
- })
150
- );
151
- };
152
-
153
- VideoProgramLandingPage.getInitialData = function () {
154
- var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(context, client) {
155
- var itemsPerPage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 6;
156
- var topicId = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
157
- var pathname, virtualBlock, query, taxonomy_ids_res, taxonomy_ids, i, res, j, topics, urlQuery, currentPage, start, params, posts;
158
- return regenerator.wrap(function _callee$(_context) {
159
- while (1) {
160
- switch (_context.prev = _context.next) {
161
- case 0:
162
- // Virtual Block
163
- pathname = context.pathname;
164
- _context.next = 3;
165
- return client.fetch('*[_type == \'virtualBlock\' && identifier == \'' + pathname + '\'][0]');
166
-
167
- case 3:
168
- virtualBlock = _context.sent;
169
-
170
-
171
- // Topics for filtering
172
- query = '';
173
-
174
- if (!(cache && cache.topic_ids && cache.topic_ids.length > 0)) {
175
- _context.next = 8;
176
- break;
177
- }
178
-
179
- _context.next = 15;
180
- break;
181
-
182
- case 8:
183
- query = '*[\n _type == \'article\' \n && !(_id in path("drafts.**")) \n && defined(title) \n && defined(url)\n && references(\'02c6c999-e6fe-4275-98ca-ceef28f91e14\') \n && is_visible == true \n && dateTime(published) <= dateTime(now())\n ]{\n \'taxonomy_id\': taxonomyMapping[]->_id\n }';
184
- _context.next = 11;
185
- return client.fetch(query);
186
-
187
- case 11:
188
- taxonomy_ids_res = _context.sent;
189
- taxonomy_ids = [];
190
-
191
- for (i = 0; i < taxonomy_ids_res.length; i++) {
192
- res = taxonomy_ids_res[i];
193
-
194
- for (j = 0; j < res.taxonomy_id.length; j++) {
195
- if (!taxonomy_ids.includes(res.taxonomy_id[j])) {
196
- taxonomy_ids.push(res.taxonomy_id[j]);
197
- }
198
- }
199
- }
200
- cache.topic_ids = taxonomy_ids;
201
-
202
- case 15:
203
- query = '*[_type == \'taxonomy\' && _id in $taxonomy_ids] | order(name asc)';
204
- _context.next = 18;
205
- return client.fetch(query, { taxonomy_ids: cache.topic_ids });
206
-
207
- case 18:
208
- topics = _context.sent;
209
-
210
-
211
- // Posts
212
- urlQuery = context.query;
213
- currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
214
- start = (currentPage - 1) * itemsPerPage;
215
- params = {
216
- from: start,
217
- to: start + itemsPerPage,
218
- url: pathname
219
- };
220
-
221
- query = '*[\n _type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible == true\n && dateTime(published) <= dateTime(now())\n && references(\'02c6c999-e6fe-4275-98ca-ceef28f91e14\')\n ' + (topicId ? '&& references(\'' + topicId + '\')' : '') + '\n ] | order(published desc) [$from...$to]{\n \t\t...,\n \t\ttitle,\n \t\tsummary,\n \t\tpublished,\n \t\tthumbnail,\n \t\turl,\n \t\ttaxonomy,\n \t\tcontentCategory->,\n \t\tbody[_type == "youtubeGallery"],\n \t\t\'pageNumber\': ' + currentPage + '\n \t}';
222
- _context.next = 26;
223
- return client.fetch(query, params);
224
-
225
- case 26:
226
- posts = _context.sent;
227
- return _context.abrupt('return', { virtualBlock: virtualBlock, topics: topics, posts: posts, query: query, params: params, currentPage: currentPage });
228
-
229
- case 28:
230
- case 'end':
231
- return _context.stop();
232
- }
233
- }
234
- }, _callee, _this);
235
- }));
236
-
237
- return function (_x, _x2) {
238
- return _ref.apply(this, arguments);
239
- };
240
- }();
241
-
242
- export default VideoProgramLandingPage;
@@ -1,172 +0,0 @@
1
- import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-ded78eb9.js';
3
- import './es6.string.iterator-9b2af4a5.js';
4
- import './_library-528f1934.js';
5
- import './_iter-detect-59409a32.js';
6
- import './toConsumableArray-725434a0.js';
7
- import './core.get-iterator-method-54d2e411.js';
8
- import './_object-pie-71ac75a4.js';
9
- import './extends-cc5da797.js';
10
- import './_object-sap-4d59d5bd.js';
11
- import './inherits-7ee3e0c1.js';
12
- import './define-property-de3fc946.js';
13
- import './web.dom.iterable-8956f9a5.js';
14
- import { _ as _typeof } from './typeof-08f2c380.js';
15
- import './_is-array-49698029.js';
16
- import React__default from 'react';
17
- import './index-a9e53f80.js';
18
- import 'prop-types';
19
- import 'react-bootstrap/Container';
20
- import 'react-bootstrap/Row';
21
- import 'react-bootstrap/Col';
22
- import 'react-bootstrap/Card';
23
- import { m as moment } from './moment-e2f9b20c.js';
24
- import 'next/router';
25
- import './isSymbol-807e927e.js';
26
- import './debounce-1a993acf.js';
27
- import './index.es-29c1cef5.js';
28
- import 'react-dom';
29
- import './visibility-sensor-0baa4eea.js';
30
- import './index-73819142.js';
31
- import './index-5f9f807a.js';
32
- import './main-e4a934b2.js';
33
- import './stringify-008c8802.js';
34
- import './slicedToArray-7021e5df.js';
35
- import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7c654f36.js';
36
- import './_set-species-cede29f8.js';
37
- import './Segment.js';
38
- import './Beam.js';
39
- import './AdSlot.js';
40
- import './ADInfeed-d4c94a16.js';
41
- import './lodash-17fdfebb.js';
42
- import './ADlgInfeed-5b170d9e.js';
43
- import { g as getYoutubeId } from './index-c7e2ac95.js';
44
- import MasterDeck from './MasterDeck.js';
45
- import 'react-bootstrap/Breadcrumb';
46
- import Breadcrumbs from './Breadcrumbs.js';
47
- import './style-inject.es-1f59c1d0.js';
48
- import VideoSeriesCard from './VideoSeriesCard.js';
49
-
50
- var _this = undefined;
51
-
52
- var VideoSeriesLandingPage = function VideoSeriesLandingPage(props) {
53
- var summary = props.summary,
54
- client = props.client,
55
- posts = props.posts,
56
- _props$variant = props.variant,
57
- variant = _props$variant === undefined ? 'left' : _props$variant,
58
- _props$defaultImage = props.defaultImage,
59
- defaultImage = _props$defaultImage === undefined ? '/placeholder.jpg' : _props$defaultImage,
60
- mapping = props.mapping,
61
- query = props.query,
62
- params = props.params,
63
- _props$currentPage = props.currentPage,
64
- currentPage = _props$currentPage === undefined ? 1 : _props$currentPage,
65
- pageview = props.pageview,
66
- _props$autoScroll = props.autoScroll,
67
- autoScroll = _props$autoScroll === undefined ? true : _props$autoScroll,
68
- rightItems = props.rightItems,
69
- brandInsightAd = props.brandInsightAd,
70
- _props$showBI = props.showBI,
71
- showBI = _props$showBI === undefined ? false : _props$showBI,
72
- _props$lgInfeedAd = props.lgInfeedAd,
73
- lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd;
74
-
75
- return React__default.createElement(
76
- 'div',
77
- null,
78
- summary && React__default.createElement(
79
- 'div',
80
- { style: { fontSize: '1rem' }, className: 'series-summary px-1 my-4' },
81
- summary
82
- ),
83
- React__default.createElement(Breadcrumbs, null),
84
- posts && React__default.createElement(MasterDeck, {
85
- deck: VideoSeriesCard,
86
- variant: variant,
87
- client: client,
88
- defaultImage: defaultImage,
89
- mapping: mapping,
90
- dataRecord: posts,
91
- query: query,
92
- params: params,
93
- currentPage: currentPage,
94
- pageview: pageview,
95
- autoScroll: autoScroll,
96
- rightItems: rightItems,
97
- brandInsightAd: brandInsightAd,
98
- showBI: showBI,
99
- lgInfeedAd: lgInfeedAd
100
- })
101
- );
102
- };
103
-
104
- VideoSeriesLandingPage.getInitialData = function () {
105
- var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(context, client) {
106
- var itemsPerPage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
107
- var today, urlQuery, seriesName, currentPage, start, params, query, posts, seriesTitle, summary, url;
108
- return regenerator.wrap(function _callee$(_context) {
109
- while (1) {
110
- switch (_context.prev = _context.next) {
111
- case 0:
112
- today = moment().utc().format();
113
- urlQuery = context.query;
114
- seriesName = urlQuery.series;
115
- currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
116
- start = (currentPage - 1) * itemsPerPage;
117
- params = {
118
- from: start,
119
- to: start + itemsPerPage,
120
- itemsPerPage: itemsPerPage
121
- };
122
- query = '*[\n _type == \'article\' \n && !(_id in path("drafts.**")) \n && defined(title) \n && defined(url) \n && dateTime(published) <= dateTime(now()) \n && references(\'02c6c999-e6fe-4275-98ca-ceef28f91e14\') \n && is_visible == true \n && url.current == \'' + seriesName + '\'\n ][$from...$to] | order(published desc) {\n\t\ttitle,\n\t\tsummary,\n\t\tpublished,\n\t\tthumbnail,\n\t\turl,\n\t\ttaxonomy,\n\t\tbody[_type == "youtubeGallery"]\n\t}';
123
- _context.next = 9;
124
- return client.fetch(query, params);
125
-
126
- case 9:
127
- posts = _context.sent;
128
- seriesTitle = '';
129
- summary = '';
130
-
131
-
132
- if (posts.length > 0 && posts[0].body.length > 0 && posts[0].body[0].videos) {
133
- url = posts[0].url.current + '?seriesVid=';
134
-
135
- seriesTitle = posts[0].title;
136
- summary = posts[0].summary;
137
- posts = posts[0].body[0].videos.filter(function (video) {
138
- if ((video.is_visible === true || !video.hasOwnProperty('is_visible')) && (today >= video.published || !video.hasOwnProperty('published'))) {
139
- return video;
140
- }
141
- });
142
- //start youtube thumbnail fix
143
- posts.map(function (post, index) {
144
- if (post.thumbnail && _typeof(post.thumbnail) !== 'object' || !post.thumbnail) {
145
- var id = getYoutubeId(post.url);
146
- var imageURL = 'https://img.youtube.com/vi/' + id + '/hqdefault.jpg';
147
- return post['thumbnail'] = imageURL, post['url'] = {
148
- current: url + (index + 1)
149
- };
150
- }
151
- return post['url'] = {
152
- current: url + (index + 1)
153
- };
154
- });
155
- //end
156
- }
157
- return _context.abrupt('return', { posts: posts, query: query, params: params, seriesTitle: seriesTitle, summary: summary, seriesName: seriesName });
158
-
159
- case 14:
160
- case 'end':
161
- return _context.stop();
162
- }
163
- }
164
- }, _callee, _this);
165
- }));
166
-
167
- return function (_x, _x2) {
168
- return _ref.apply(this, arguments);
169
- };
170
- }();
171
-
172
- export default VideoSeriesLandingPage;
@@ -1,52 +0,0 @@
1
- import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
2
-
3
- var getYoutubeId = createCommonjsModule(function (module, exports) {
4
- (function (root, factory) {
5
- {
6
- module.exports = factory();
7
- }
8
- }(commonjsGlobal, function (exports) {
9
-
10
- return function (url, opts) {
11
- if (opts == undefined) {
12
- opts = {fuzzy: true};
13
- }
14
-
15
- if (/youtu\.?be/.test(url)) {
16
-
17
- // Look first for known patterns
18
- var i;
19
- var patterns = [
20
- /youtu\.be\/([^#\&\?]{11})/, // youtu.be/<id>
21
- /\?v=([^#\&\?]{11})/, // ?v=<id>
22
- /\&v=([^#\&\?]{11})/, // &v=<id>
23
- /embed\/([^#\&\?]{11})/, // embed/<id>
24
- /\/v\/([^#\&\?]{11})/ // /v/<id>
25
- ];
26
-
27
- // If any pattern matches, return the ID
28
- for (i = 0; i < patterns.length; ++i) {
29
- if (patterns[i].test(url)) {
30
- return patterns[i].exec(url)[1];
31
- }
32
- }
33
-
34
- if (opts.fuzzy) {
35
- // If that fails, break it apart by certain characters and look
36
- // for the 11 character key
37
- var tokens = url.split(/[\/\&\?=#\.\s]/g);
38
- for (i = 0; i < tokens.length; ++i) {
39
- if (/^[^#\&\?]{11}$/.test(tokens[i])) {
40
- return tokens[i];
41
- }
42
- }
43
- }
44
- }
45
-
46
- return null;
47
- };
48
-
49
- }));
50
- });
51
-
52
- export { getYoutubeId as g };