@mjhls/mjh-framework 1.0.703 → 1.0.704-beta-v2

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 (266) hide show
  1. package/dist/cjs/AD.js +1 -1
  2. package/dist/cjs/AD300x250.js +17 -19
  3. package/dist/cjs/AD300x250x600.js +17 -19
  4. package/dist/cjs/AD728x90.js +18 -20
  5. package/dist/cjs/ADFloatingFooter.js +16 -18
  6. package/dist/cjs/ADFooter.js +5 -5
  7. package/dist/cjs/ADGutter.js +16 -18
  8. package/dist/cjs/{ADInfeed-ede153e2.js → ADInfeed-38066a36.js} +2 -2
  9. package/dist/cjs/ADSkyscraper.js +16 -18
  10. package/dist/cjs/ADSponsoredResources.js +16 -18
  11. package/dist/cjs/ADWebcast.js +16 -18
  12. package/dist/cjs/ADWelcome.js +17 -19
  13. package/dist/cjs/{ADlgInfeed-6a121a0d.js → ADlgInfeed-d95c9027.js} +2 -2
  14. package/dist/cjs/AccordionPanel.js +6 -6
  15. package/dist/cjs/AdSlot.js +17 -19
  16. package/dist/cjs/AdSlotsProvider.js +2 -4
  17. package/dist/cjs/AlphabeticList.js +9 -9
  18. package/dist/cjs/ArticleCarousel.js +13 -16
  19. package/dist/cjs/ArticleSeriesListing.js +24 -27
  20. package/dist/cjs/Auth.js +280 -762
  21. package/dist/cjs/{AuthorComponent-d19285ed.js → AuthorComponent-bb831b74.js} +1 -1
  22. package/dist/cjs/Beam.js +19 -19
  23. package/dist/cjs/{BlockContent-e53217a7.js → BlockContent-80b15fac.js} +25 -23
  24. package/dist/cjs/Breadcrumbs.js +5 -5
  25. package/dist/cjs/BrowseVideosListing.js +14 -17
  26. package/dist/cjs/CMEDeck.js +23 -26
  27. package/dist/cjs/Column2.js +13 -15
  28. package/dist/cjs/Column3.js +22 -24
  29. package/dist/cjs/ConferenceArticleCard.js +2 -2
  30. package/dist/cjs/DeckContent.js +30 -33
  31. package/dist/cjs/DeckQueue.js +29 -32
  32. package/dist/cjs/{Dfp-13ff07b4.js → Dfp-390337bf.js} +10 -13
  33. package/dist/cjs/EventsDeck.js +34 -35
  34. package/dist/cjs/ExternalResources.js +32 -35
  35. package/dist/cjs/Feature.js +3 -4
  36. package/dist/cjs/ForbesHero.js +9 -12
  37. package/dist/cjs/GridContent.js +42 -45
  38. package/dist/cjs/GridHero.js +9 -12
  39. package/dist/cjs/GroupDeck.js +13 -13
  40. package/dist/cjs/HamMagazine.js +17 -19
  41. package/dist/cjs/Hero.js +1 -1
  42. package/dist/cjs/HighlightenVideo.js +1 -1
  43. package/dist/cjs/HorizontalHero.js +3 -3
  44. package/dist/cjs/IssueContentDeck.js +9 -12
  45. package/dist/cjs/IssueDeck.js +12 -15
  46. package/dist/cjs/IssueLanding.js +26 -29
  47. package/dist/cjs/LeftNav.js +16 -18
  48. package/dist/cjs/MasterDeck.js +34 -37
  49. package/dist/cjs/NavDvm.js +9 -9
  50. package/dist/cjs/NavMagazine.js +17 -19
  51. package/dist/cjs/NavNative.js +14 -16
  52. package/dist/cjs/NavNormal.js +10 -10
  53. package/dist/cjs/OncliveHero.js +3 -2
  54. package/dist/cjs/OncliveLargeHero.js +9 -12
  55. package/dist/cjs/PageFilter.js +5 -5
  56. package/dist/cjs/PartnerDetailListing.js +38 -41
  57. package/dist/cjs/PdfDownload.js +1 -1
  58. package/dist/cjs/PopUpModal.js +5 -5
  59. package/dist/cjs/PublicationDeck.js +5 -8
  60. package/dist/cjs/PublicationLanding.js +57 -60
  61. package/dist/cjs/QueueDeckExpanded.js +33 -36
  62. package/dist/cjs/RecentNews.js +3 -3
  63. package/dist/cjs/RelatedContent.js +3 -6
  64. package/dist/cjs/Search.js +5 -5
  65. package/dist/cjs/Segment.js +20 -20
  66. package/dist/cjs/SetCookie.js +2 -2
  67. package/dist/cjs/SideFooter.js +14 -16
  68. package/dist/cjs/{SocialSearchComponent-1ef1e6fb.js → SocialSearchComponent-56d49a1a.js} +7 -7
  69. package/dist/cjs/TaxonomyCard.js +7 -10
  70. package/dist/cjs/TemplateNormal.js +31 -33
  71. package/dist/cjs/ThumbnailCard.js +2 -5
  72. package/dist/cjs/Ustream.js +9 -10
  73. package/dist/cjs/VerticalHero.js +2 -2
  74. package/dist/cjs/VideoSeriesCard.js +10 -13
  75. package/dist/cjs/VideoSeriesFilter.js +11 -11
  76. package/dist/cjs/VideoSeriesListing.js +24 -27
  77. package/dist/cjs/View.js +46 -49
  78. package/dist/cjs/YahooHero.js +9 -12
  79. package/dist/cjs/YoutubeGroup.js +14 -17
  80. package/dist/cjs/{_is-array-a82382b4.js → _is-array-754e012d.js} +11 -11
  81. package/dist/cjs/{_iter-detect-671c90bd.js → _iter-detect-60b2f026.js} +10 -10
  82. package/dist/cjs/{_library-4360b4e4.js → _library-dd23b178.js} +1 -1
  83. package/dist/cjs/{_object-pie-6bed508e.js → _object-pie-68c5bcbc.js} +2 -2
  84. package/dist/cjs/_object-sap-5e74ba08.js +16 -0
  85. package/dist/cjs/{_set-species-47156c42.js → _set-species-f92c67c5.js} +17 -17
  86. package/dist/cjs/{_export-a917dedd.js → _to-object-329a650b.js} +31 -31
  87. package/dist/cjs/{asyncToGenerator-fd8e35e7.js → asyncToGenerator-533d476a.js} +69 -69
  88. package/dist/cjs/{brightcove-react-player-loader.es-05029198.js → brightcove-react-player-loader.es-156bd4d6.js} +3 -4
  89. package/dist/cjs/core.get-iterator-method-f62321d4.js +39 -0
  90. package/dist/cjs/{debounce-fb3a46a9.js → debounce-eb287781.js} +7 -7
  91. package/dist/cjs/{define-property-9b6df20e.js → define-property-f4d12f4e.js} +4 -4
  92. package/dist/cjs/{defineProperty-d3c0cfc0.js → defineProperty-55548b25.js} +2 -2
  93. package/dist/cjs/{es6.string.iterator-e5f4ce45.js → es6.string.iterator-cc0bbaa4.js} +34 -34
  94. package/dist/cjs/{extends-5fde0677.js → extends-60837c34.js} +11 -11
  95. package/dist/cjs/{get-70ef997d.js → get-68c52cb1.js} +11 -11
  96. package/dist/cjs/getRelatedArticle.js +72 -134
  97. package/dist/cjs/getSerializers.js +30 -33
  98. package/dist/cjs/{getTargeting-5ca9bfaf.js → getTargeting-fee8c429.js} +2 -2
  99. package/dist/cjs/getTargeting.js +8 -8
  100. package/dist/cjs/{index-d7577df6.js → index-099d45ae.js} +16 -12
  101. package/dist/cjs/{index-949261b4.js → index-3294d3bc.js} +19 -18
  102. package/dist/cjs/{index-ff69979f.js → index-39beccb3.js} +21 -26
  103. package/dist/cjs/{index-b1ee7cd9.js → index-58dae365.js} +329 -335
  104. package/dist/cjs/{index-29e3f3a9.js → index-da796b8c.js} +12 -11
  105. package/dist/cjs/{index.es-e9d84959.js → index.es-9110add6.js} +5 -23
  106. package/dist/cjs/{index.esm-8a8fa078.js → index.esm-4d410430.js} +4 -3
  107. package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
  108. package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
  109. package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
  110. package/dist/cjs/index.js +54 -57
  111. package/dist/cjs/{inherits-02a27fbf.js → inherits-513d81cd.js} +16 -16
  112. package/dist/cjs/{isSymbol-a0d5eb50.js → isSymbol-04666465.js} +5 -5
  113. package/dist/cjs/{js.cookie-e4684873.js → js.cookie-a511c430.js} +1 -1
  114. package/dist/cjs/{keys-1a65eb47.js → keys-a586b7a0.js} +5 -5
  115. package/dist/cjs/{lodash-257df6c4.js → lodash-7fd85bcf.js} +1 -1
  116. package/dist/cjs/{main-1442052b.js → main-03ffa84c.js} +57 -90
  117. package/dist/cjs/{moment-29403f08.js → moment-575fe24c.js} +8 -11
  118. package/dist/cjs/{react-social-icons-5604d0d1.js → react-social-icons-f7f48f71.js} +13 -11
  119. package/dist/cjs/{slicedToArray-d0ac47b9.js → slicedToArray-8f385299.js} +10 -10
  120. package/dist/cjs/{smoothscroll-03c20c7d.js → smoothscroll-95231a70.js} +1 -1
  121. package/dist/cjs/{stringify-e064b7d0.js → stringify-7c5aff47.js} +2 -2
  122. package/dist/cjs/timeDifferenceCalc.js +1 -1
  123. package/dist/cjs/{toConsumableArray-d47f0c64.js → toConsumableArray-9a3476fe.js} +13 -13
  124. package/dist/cjs/{typeof-5763a25b.js → typeof-725500bc.js} +84 -84
  125. package/dist/cjs/urlFor.js +1 -1
  126. package/dist/cjs/{visibility-sensor-ede0bc7b.js → visibility-sensor-0c45a583.js} +6 -5
  127. package/dist/cjs/{web.dom.iterable-cd8a9ccb.js → web.dom.iterable-a0e279c1.js} +10 -10
  128. package/dist/esm/AD.js +1 -1
  129. package/dist/esm/AD300x250.js +19 -21
  130. package/dist/esm/AD300x250x600.js +19 -21
  131. package/dist/esm/AD728x90.js +20 -22
  132. package/dist/esm/ADFloatingFooter.js +18 -20
  133. package/dist/esm/ADFooter.js +5 -5
  134. package/dist/esm/ADGutter.js +18 -20
  135. package/dist/esm/{ADInfeed-d890d5ca.js → ADInfeed-7b1b2fcb.js} +4 -4
  136. package/dist/esm/ADSkyscraper.js +18 -20
  137. package/dist/esm/ADSponsoredResources.js +18 -20
  138. package/dist/esm/ADWebcast.js +18 -20
  139. package/dist/esm/ADWelcome.js +19 -21
  140. package/dist/esm/{ADlgInfeed-1d006b36.js → ADlgInfeed-2afe92e6.js} +4 -4
  141. package/dist/esm/AccordionPanel.js +6 -6
  142. package/dist/esm/AdSlot.js +17 -19
  143. package/dist/esm/AdSlotsProvider.js +2 -4
  144. package/dist/esm/AlphabeticList.js +9 -9
  145. package/dist/esm/ArticleCarousel.js +13 -16
  146. package/dist/esm/ArticleSeriesListing.js +24 -27
  147. package/dist/esm/Auth.js +280 -762
  148. package/dist/esm/{AuthorComponent-8ffb1deb.js → AuthorComponent-00f13201.js} +1 -1
  149. package/dist/esm/Beam.js +19 -19
  150. package/dist/esm/{BlockContent-e6f64e62.js → BlockContent-c409aca5.js} +21 -23
  151. package/dist/esm/Breadcrumbs.js +5 -5
  152. package/dist/esm/BrowseVideosListing.js +14 -17
  153. package/dist/esm/CMEDeck.js +23 -26
  154. package/dist/esm/Column2.js +13 -15
  155. package/dist/esm/Column3.js +22 -24
  156. package/dist/esm/ConferenceArticleCard.js +2 -2
  157. package/dist/esm/DeckContent.js +30 -33
  158. package/dist/esm/DeckQueue.js +29 -32
  159. package/dist/esm/{Dfp-7db56716.js → Dfp-741c01be.js} +10 -13
  160. package/dist/esm/EventsDeck.js +34 -35
  161. package/dist/esm/ExternalResources.js +32 -35
  162. package/dist/esm/Feature.js +3 -4
  163. package/dist/esm/ForbesHero.js +9 -12
  164. package/dist/esm/GridContent.js +42 -45
  165. package/dist/esm/GridHero.js +9 -12
  166. package/dist/esm/GroupDeck.js +13 -13
  167. package/dist/esm/HamMagazine.js +17 -19
  168. package/dist/esm/Hero.js +1 -1
  169. package/dist/esm/HighlightenVideo.js +1 -1
  170. package/dist/esm/HorizontalHero.js +3 -3
  171. package/dist/esm/IssueContentDeck.js +9 -12
  172. package/dist/esm/IssueDeck.js +12 -15
  173. package/dist/esm/IssueLanding.js +26 -29
  174. package/dist/esm/LeftNav.js +16 -18
  175. package/dist/esm/MasterDeck.js +34 -37
  176. package/dist/esm/NavDvm.js +9 -9
  177. package/dist/esm/NavMagazine.js +17 -19
  178. package/dist/esm/NavNative.js +14 -16
  179. package/dist/esm/NavNormal.js +10 -10
  180. package/dist/esm/OncliveHero.js +3 -2
  181. package/dist/esm/OncliveLargeHero.js +9 -12
  182. package/dist/esm/PageFilter.js +5 -5
  183. package/dist/esm/PartnerDetailListing.js +38 -41
  184. package/dist/esm/PdfDownload.js +1 -1
  185. package/dist/esm/PopUpModal.js +5 -5
  186. package/dist/esm/PublicationDeck.js +5 -8
  187. package/dist/esm/PublicationLanding.js +57 -60
  188. package/dist/esm/QueueDeckExpanded.js +33 -36
  189. package/dist/esm/RecentNews.js +3 -3
  190. package/dist/esm/RelatedContent.js +3 -6
  191. package/dist/esm/Search.js +5 -5
  192. package/dist/esm/Segment.js +20 -20
  193. package/dist/esm/SetCookie.js +2 -2
  194. package/dist/esm/SideFooter.js +14 -16
  195. package/dist/esm/{SocialSearchComponent-4eae0149.js → SocialSearchComponent-677ed3bd.js} +7 -7
  196. package/dist/esm/TaxonomyCard.js +7 -10
  197. package/dist/esm/TemplateNormal.js +33 -35
  198. package/dist/esm/ThumbnailCard.js +2 -5
  199. package/dist/esm/Ustream.js +9 -10
  200. package/dist/esm/VerticalHero.js +2 -2
  201. package/dist/esm/VideoSeriesCard.js +10 -13
  202. package/dist/esm/VideoSeriesFilter.js +11 -11
  203. package/dist/esm/VideoSeriesListing.js +24 -27
  204. package/dist/esm/View.js +51 -54
  205. package/dist/esm/YahooHero.js +9 -12
  206. package/dist/esm/YoutubeGroup.js +14 -17
  207. package/dist/esm/{_is-array-5bea6006.js → _is-array-49698029.js} +10 -10
  208. package/dist/esm/{_iter-detect-65720de7.js → _iter-detect-59409a32.js} +8 -8
  209. package/dist/esm/_library-528f1934.js +3 -0
  210. package/dist/esm/{_object-pie-8e2f6c3a.js → _object-pie-71ac75a4.js} +1 -1
  211. package/dist/esm/_object-sap-4d59d5bd.js +14 -0
  212. package/dist/esm/{_set-species-26ee5c2a.js → _set-species-cede29f8.js} +14 -14
  213. package/dist/esm/{_export-f7ec2adf.js → _to-object-ded78eb9.js} +3 -3
  214. package/dist/esm/{asyncToGenerator-0c61f551.js → asyncToGenerator-7c654f36.js} +69 -69
  215. package/dist/esm/{brightcove-react-player-loader.es-e761d404.js → brightcove-react-player-loader.es-83f53e4e.js} +3 -4
  216. package/dist/esm/core.get-iterator-method-54d2e411.js +36 -0
  217. package/dist/esm/{debounce-7b569c00.js → debounce-1a993acf.js} +6 -6
  218. package/dist/esm/{define-property-7a40a451.js → define-property-de3fc946.js} +4 -4
  219. package/dist/esm/{defineProperty-a2ac5d3d.js → defineProperty-b798470d.js} +2 -2
  220. package/dist/esm/{es6.string.iterator-13b94db0.js → es6.string.iterator-9b2af4a5.js} +27 -27
  221. package/dist/esm/{extends-8e0228d5.js → extends-cc5da797.js} +11 -11
  222. package/dist/esm/{get-bb2155d5.js → get-5ee14cda.js} +10 -10
  223. package/dist/esm/getRelatedArticle.js +72 -134
  224. package/dist/esm/getSerializers.js +30 -33
  225. package/dist/esm/{getTargeting-d97a1e83.js → getTargeting-2acdec91.js} +2 -2
  226. package/dist/esm/getTargeting.js +8 -8
  227. package/dist/esm/{index-f7fdcc91.js → index-3849e3fe.js} +21 -26
  228. package/dist/esm/{index-17490425.js → index-3f4dd6f2.js} +12 -12
  229. package/dist/esm/{index-a4e850af.js → index-5f9f807a.js} +8 -11
  230. package/dist/esm/{index-4540328d.js → index-7779a6df.js} +332 -338
  231. package/dist/esm/{index-1295881c.js → index-ef6d5dcf.js} +17 -16
  232. package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
  233. package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
  234. package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
  235. package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
  236. package/dist/esm/{index.esm-4838a32e.js → index.esm-fd746768.js} +4 -3
  237. package/dist/esm/index.js +54 -57
  238. package/dist/esm/{inherits-d1948b66.js → inherits-7ee3e0c1.js} +16 -16
  239. package/dist/esm/{isSymbol-2b7f6e65.js → isSymbol-807e927e.js} +1 -1
  240. package/dist/esm/{js.cookie-2ce24ab0.js → js.cookie-6874175c.js} +1 -1
  241. package/dist/esm/{keys-e091cb65.js → keys-fc2d4c34.js} +5 -5
  242. package/dist/esm/{lodash-2b866578.js → lodash-ec8c6b48.js} +1 -1
  243. package/dist/esm/{main-140f99b4.js → main-35ff7b4f.js} +52 -88
  244. package/dist/esm/{moment-8797a4d3.js → moment-e2f9b20c.js} +9 -11
  245. package/dist/esm/{react-social-icons-40e8d28f.js → react-social-icons-a7d5c5c7.js} +9 -11
  246. package/dist/esm/{slicedToArray-8818fe95.js → slicedToArray-7021e5df.js} +10 -10
  247. package/dist/esm/{stringify-dedf4a20.js → stringify-008c8802.js} +2 -2
  248. package/dist/esm/timeDifferenceCalc.js +1 -1
  249. package/dist/esm/{toConsumableArray-02217419.js → toConsumableArray-725434a0.js} +13 -13
  250. package/dist/esm/{typeof-a10a5616.js → typeof-08f2c380.js} +85 -85
  251. package/dist/esm/urlFor.js +1 -1
  252. package/dist/esm/{visibility-sensor-7b6316cf.js → visibility-sensor-0baa4eea.js} +3 -5
  253. package/dist/esm/{web.dom.iterable-c3ba4d37.js → web.dom.iterable-8956f9a5.js} +10 -10
  254. package/package.json +3 -3
  255. package/dist/cjs/_object-sap-947ef6fb.js +0 -16
  256. package/dist/cjs/_prop-types_commonjs-external-1a8c9893.js +0 -10
  257. package/dist/cjs/_react-dom_commonjs-external-3c49a59a.js +0 -9
  258. package/dist/cjs/_react_commonjs-external-58b78ee1.js +0 -10
  259. package/dist/cjs/core.get-iterator-method-07b02ac3.js +0 -39
  260. package/dist/esm/_library-90219a8d.js +0 -3
  261. package/dist/esm/_object-sap-146241c9.js +0 -14
  262. package/dist/esm/_prop-types_commonjs-external-9481d338.js +0 -5
  263. package/dist/esm/_react-dom_commonjs-external-f1a1ac81.js +0 -5
  264. package/dist/esm/_react_commonjs-external-22b61490.js +0 -5
  265. package/dist/esm/core.get-iterator-method-dbbb346b.js +0 -36
  266. /package/dist/esm/{smoothscroll-2d74941c.js → smoothscroll-4b699764.js} +0 -0
@@ -58,35 +58,35 @@ function parseSource(source) {
58
58
  if (typeof source === 'string' && isUrl(source)) {
59
59
  // Someone passed an existing image url?
60
60
  image = {
61
- asset: { _ref: urlToId(source) },
61
+ asset: { _ref: urlToId(source) }
62
62
  };
63
63
  }
64
64
  else if (typeof source === 'string') {
65
65
  // Just an asset id
66
66
  image = {
67
- asset: { _ref: source },
67
+ asset: { _ref: source }
68
68
  };
69
69
  }
70
70
  else if (isRef(source)) {
71
71
  // We just got passed an asset directly
72
72
  image = {
73
- asset: source,
73
+ asset: source
74
74
  };
75
75
  }
76
76
  else if (isAsset(source)) {
77
77
  // If we were passed an image asset document
78
78
  image = {
79
79
  asset: {
80
- _ref: source._id || '',
81
- },
80
+ _ref: source._id || ''
81
+ }
82
82
  };
83
83
  }
84
84
  else if (isAssetStub(source)) {
85
85
  // If we were passed a partial asset (`url`, but no `_id`)
86
86
  image = {
87
87
  asset: {
88
- _ref: urlToId(source.asset.url),
89
- },
88
+ _ref: urlToId(source.asset.url)
89
+ }
90
90
  };
91
91
  }
92
92
  else if (typeof source.asset === 'object') {
@@ -127,7 +127,7 @@ function applyDefaults(image) {
127
127
  left: 0,
128
128
  top: 0,
129
129
  bottom: 0,
130
- right: 0,
130
+ right: 0
131
131
  };
132
132
  }
133
133
  if (!result.hotspot) {
@@ -135,7 +135,7 @@ function applyDefaults(image) {
135
135
  x: 0.5,
136
136
  y: 0.5,
137
137
  height: 1.0,
138
- width: 1.0,
138
+ width: 1.0
139
139
  };
140
140
  }
141
141
  return result;
@@ -182,8 +182,7 @@ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS = [
182
182
  ['crop', 'crop'],
183
183
  ['saturation', 'sat'],
184
184
  ['auto', 'auto'],
185
- ['dpr', 'dpr'],
186
- ['pad', 'pad'],
185
+ ['dpr', 'dpr']
187
186
  ];
188
187
  function urlForImage(options) {
189
188
  var spec = __assign({}, (options || {}));
@@ -202,7 +201,7 @@ function urlForImage(options) {
202
201
  left: cropLeft,
203
202
  top: cropTop,
204
203
  width: Math.round(asset.width - image.crop.right * asset.width - cropLeft),
205
- height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop),
204
+ height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
206
205
  };
207
206
  // Compute hot spot rect in terms of pixel coordinates
208
207
  var hotSpotVerticalRadius = (image.hotspot.height * asset.height) / 2;
@@ -213,7 +212,7 @@ function urlForImage(options) {
213
212
  left: hotSpotCenterX - hotSpotHorizontalRadius,
214
213
  top: hotSpotCenterY - hotSpotVerticalRadius,
215
214
  right: hotSpotCenterX + hotSpotHorizontalRadius,
216
- bottom: hotSpotCenterY + hotSpotVerticalRadius,
215
+ bottom: hotSpotCenterY + hotSpotVerticalRadius
217
216
  };
218
217
  // If irrelevant, or if we are requested to: don't perform crop/fit based on
219
218
  // the crop/hotspot.
@@ -295,7 +294,7 @@ function fit(source, spec) {
295
294
  left: Math.round(left),
296
295
  top: Math.round(top_2),
297
296
  width: Math.round(width),
298
- height: Math.round(height),
297
+ height: Math.round(height)
299
298
  };
300
299
  }
301
300
  else {
@@ -317,13 +316,13 @@ function fit(source, spec) {
317
316
  left: Math.max(0, Math.floor(left)),
318
317
  top: Math.max(0, Math.floor(top_3)),
319
318
  width: Math.round(width),
320
- height: Math.round(height),
319
+ height: Math.round(height)
321
320
  };
322
321
  }
323
322
  return {
324
323
  width: imgWidth,
325
324
  height: imgHeight,
326
- rect: cropRect,
325
+ rect: cropRect
327
326
  };
328
327
  }
329
328
 
@@ -357,7 +356,7 @@ var urlForImage_1$1 = __importStar(urlForImage_1);
357
356
  var validFits = ['clip', 'crop', 'fill', 'fillmax', 'max', 'scale', 'min'];
358
357
  var validCrops = ['top', 'bottom', 'left', 'right', 'center', 'focalpoint', 'entropy'];
359
358
  var validAutoModes = ['format'];
360
- function isSanityClientLike(client) {
359
+ function isSanityClient(client) {
361
360
  return client ? typeof client.clientConfig === 'object' : false;
362
361
  }
363
362
  function rewriteSpecName(key) {
@@ -374,14 +373,14 @@ function rewriteSpecName(key) {
374
373
  function urlBuilder(options) {
375
374
  // Did we get a SanityClient?
376
375
  var client = options;
377
- if (isSanityClientLike(client)) {
376
+ if (isSanityClient(client)) {
378
377
  // Inherit config from client
379
378
  var _a = client.clientConfig, apiUrl = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
380
379
  var apiHost = apiUrl || 'https://api.sanity.io';
381
380
  return new ImageUrlBuilder(null, {
382
381
  baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
383
382
  projectId: projectId,
384
- dataset: dataset,
383
+ dataset: dataset
385
384
  });
386
385
  }
387
386
  // Or just accept the options as given
@@ -394,7 +393,7 @@ var ImageUrlBuilder = /** @class */ (function () {
394
393
  ? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
395
394
  }
396
395
  ImageUrlBuilder.prototype.withOptions = function (options) {
397
- var baseUrl = options.baseUrl || this.options.baseUrl;
396
+ var baseUrl = options.baseUrl || '';
398
397
  var newOptions = { baseUrl: baseUrl };
399
398
  for (var key in options) {
400
399
  if (options.hasOwnProperty(key)) {
@@ -488,7 +487,7 @@ var ImageUrlBuilder = /** @class */ (function () {
488
487
  ImageUrlBuilder.prototype.flipHorizontal = function () {
489
488
  return this.withOptions({ flipHorizontal: true });
490
489
  };
491
- // Flip image vertically
490
+ // Flip image verically
492
491
  ImageUrlBuilder.prototype.flipVertical = function () {
493
492
  return this.withOptions({ flipVertical: true });
494
493
  };
@@ -518,15 +517,11 @@ var ImageUrlBuilder = /** @class */ (function () {
518
517
  }
519
518
  return this.withOptions({ auto: value });
520
519
  };
521
- // Specify the number of pixels to pad the image
522
- ImageUrlBuilder.prototype.pad = function (pad) {
523
- return this.withOptions({ pad: pad });
524
- };
525
520
  // Gets the url based on the submitted parameters
526
521
  ImageUrlBuilder.prototype.url = function () {
527
522
  return urlForImage_1$1.default(this.options);
528
523
  };
529
- // Alias for url()
524
+ // Synonym for url()
530
525
  ImageUrlBuilder.prototype.toString = function () {
531
526
  return this.url();
532
527
  };
@@ -1,8 +1,6 @@
1
1
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
- import 'react';
3
- import 'prop-types';
4
- import { r as require$$0$1 } from './_react_commonjs-external-22b61490.js';
5
- import { r as require$$0 } from './_prop-types_commonjs-external-9481d338.js';
2
+ import React__default from 'react';
3
+ import PropTypes from 'prop-types';
6
4
 
7
5
  var domain;
8
6
 
@@ -823,13 +821,15 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
823
821
  });
824
822
 
825
823
  if (_this5.lazyLoadIsEnabled()) {
824
+ var args = [];
825
+
826
826
  var config = _this5.getLazyLoadConfig();
827
827
 
828
- if (config) {
829
- pubadsService.enableLazyLoad(config);
830
- } else {
831
- pubadsService.enableLazyLoad();
828
+ if (config !== null) {
829
+ args.push(config);
832
830
  }
831
+
832
+ pubadsService.enableLazyLoad.call(args);
833
833
  }
834
834
 
835
835
  if (_this5.singleRequestIsEnabled()) {
@@ -1029,9 +1029,9 @@ Object.defineProperty(exports, "__esModule", {
1029
1029
  });
1030
1030
  exports.default = exports.Context = void 0;
1031
1031
 
1032
- var _react = _interopRequireDefault(require$$0$1);
1032
+ var _react = _interopRequireDefault(React__default);
1033
1033
 
1034
- var _propTypes = _interopRequireDefault(require$$0);
1034
+ var _propTypes = _interopRequireDefault(PropTypes);
1035
1035
 
1036
1036
  var _manager = _interopRequireDefault(manager);
1037
1037
 
@@ -1337,9 +1337,9 @@ Object.defineProperty(exports, "__esModule", {
1337
1337
  });
1338
1338
  exports.default = exports.AdSlot = void 0;
1339
1339
 
1340
- var _react = _interopRequireDefault(require$$0$1);
1340
+ var _react = _interopRequireDefault(React__default);
1341
1341
 
1342
- var _propTypes = _interopRequireDefault(require$$0);
1342
+ var _propTypes = _interopRequireDefault(PropTypes);
1343
1343
 
1344
1344
  var _manager = _interopRequireDefault(manager);
1345
1345
 
@@ -1,10 +1,7 @@
1
1
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
- import 'react';
3
- import 'prop-types';
4
- import { r as require$$0$1 } from './_react_commonjs-external-22b61490.js';
5
- import { r as require$$0 } from './_prop-types_commonjs-external-9481d338.js';
6
- import 'react-dom';
7
- import { _ as _reactDom } from './_react-dom_commonjs-external-f1a1ac81.js';
2
+ import React__default from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import reactDom from 'react-dom';
8
5
 
9
6
  var event = createCommonjsModule(function (module, exports) {
10
7
 
@@ -182,15 +179,15 @@ var _createClass = function () { function defineProperties(target, props) { for
182
179
 
183
180
 
184
181
 
185
- var _react2 = _interopRequireDefault(require$$0$1);
182
+ var _react2 = _interopRequireDefault(React__default);
186
183
 
187
184
 
188
185
 
189
- var _reactDom2 = _interopRequireDefault(_reactDom);
186
+ var _reactDom2 = _interopRequireDefault(reactDom);
190
187
 
191
188
 
192
189
 
193
- var _propTypes2 = _interopRequireDefault(require$$0);
190
+ var _propTypes2 = _interopRequireDefault(PropTypes);
194
191
 
195
192
 
196
193
 
@@ -533,7 +530,7 @@ var LazyLoad = function (_Component) {
533
530
  }]);
534
531
 
535
532
  return LazyLoad;
536
- }(require$$0$1.Component);
533
+ }(React__default.Component);
537
534
 
538
535
  LazyLoad.propTypes = {
539
536
  once: _propTypes2.default.bool,
@@ -590,7 +587,7 @@ var decorator = function decorator() {
590
587
  }]);
591
588
 
592
589
  return LazyLoadDecorated;
593
- }(require$$0$1.Component);
590
+ }(React__default.Component);
594
591
  };
595
592
  };
596
593