@mjhls/mjh-framework 1.0.445 → 1.0.447

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 (238) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +32 -0
  3. package/dist/cjs/AD300x250.js +60 -0
  4. package/dist/cjs/AD300x250x600.js +60 -0
  5. package/dist/cjs/AD728x90.js +106 -0
  6. package/dist/cjs/ADFloatingFooter.js +139 -0
  7. package/dist/cjs/ADFooter.js +45 -0
  8. package/dist/cjs/ADGutter.js +88 -0
  9. package/dist/cjs/{ADInfeed-ae1f348d.js → ADInfeed-7609d929.js} +2 -2
  10. package/dist/cjs/ADSponsoredResources.js +106 -0
  11. package/dist/cjs/ADWelcome.js +150 -0
  12. package/dist/cjs/{ADlgInfeed-f4c4a1bf.js → ADlgInfeed-700551ef.js} +2 -2
  13. package/dist/cjs/AccordionPanel.js +95 -0
  14. package/dist/cjs/AdSlot.js +166 -0
  15. package/dist/cjs/AdSlotsProvider.js +31 -0
  16. package/dist/cjs/AlphabeticList.js +137 -0
  17. package/dist/cjs/ArticleQueue.js +863 -0
  18. package/dist/cjs/Auth.js +3950 -0
  19. package/dist/cjs/{AuthorComponent-b44bb44e.js → AuthorComponent-5bb8f868.js} +1 -1
  20. package/dist/cjs/Beam.js +347 -0
  21. package/dist/cjs/{TaxonomyCard-fa09aac1.js → BlockContent-80608595.js} +0 -236
  22. package/dist/cjs/Breadcrumbs.js +108 -0
  23. package/dist/cjs/CMEDeck.js +454 -0
  24. package/dist/cjs/Column1.js +39 -0
  25. package/dist/cjs/Column2.js +67 -0
  26. package/dist/cjs/Column3.js +141 -0
  27. package/dist/cjs/ConferenceArticleCard.js +91 -0
  28. package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
  29. package/dist/cjs/DeckContent.js +24 -13
  30. package/dist/cjs/DeckQueue.js +17 -10
  31. package/dist/cjs/{Dfp-d7639f4c.js → Dfp-19f10ad4.js} +8 -5
  32. package/dist/cjs/EventsDeck.js +1999 -0
  33. package/dist/cjs/Feature.js +120 -0
  34. package/dist/cjs/{Figure-cc919c38.js → Figure-ce37247b.js} +3 -2
  35. package/dist/cjs/ForbesHero.js +140 -0
  36. package/dist/cjs/GridContent.js +721 -33
  37. package/dist/cjs/GridHero.js +145 -0
  38. package/dist/cjs/GroupDeck.js +5 -3
  39. package/dist/cjs/HamMagazine.js +477 -0
  40. package/dist/cjs/Header.js +37 -0
  41. package/dist/cjs/Hero.js +56 -0
  42. package/dist/cjs/HighlightenVideo.js +69 -0
  43. package/dist/cjs/HorizontalHero.js +109 -0
  44. package/dist/cjs/InscreenSensor-04a70c60.js +864 -0
  45. package/dist/cjs/IssueContentDeck.js +4 -3
  46. package/dist/cjs/IssueDeck.js +6 -4
  47. package/dist/cjs/IssueLanding.js +115 -0
  48. package/dist/cjs/KMTracker.js +27 -0
  49. package/dist/cjs/LeftNav.js +99 -0
  50. package/dist/cjs/MasterDeck.js +15 -8
  51. package/dist/cjs/NavDvm.js +223 -0
  52. package/dist/cjs/NavFooter-3dcd99a8.js +66 -0
  53. package/dist/cjs/NavMagazine.js +436 -0
  54. package/dist/cjs/NavNative.js +278 -0
  55. package/dist/cjs/NavNormal.js +109 -0
  56. package/dist/cjs/OncliveHero.js +78 -0
  57. package/dist/cjs/OncliveLargeHero.js +243 -0
  58. package/dist/cjs/PageFilter.js +73 -0
  59. package/dist/cjs/PdfDownload.js +28 -0
  60. package/dist/cjs/PopUpModal.js +59 -0
  61. package/dist/cjs/PublicationLanding.js +556 -0
  62. package/dist/cjs/QueueDeckExpanded.js +20 -11
  63. package/dist/cjs/RelatedContent.js +107 -0
  64. package/dist/cjs/RelatedTopicsDropdown.js +90 -0
  65. package/dist/cjs/Search.js +67 -0
  66. package/dist/cjs/Segment.js +225 -0
  67. package/dist/cjs/SetCookie.js +10 -0
  68. package/dist/cjs/SideFooter.js +103 -0
  69. package/dist/cjs/SocialNavFooter-d9ab4d17.js +83 -0
  70. package/dist/cjs/SocialShare.js +72 -0
  71. package/dist/cjs/TaxonomyCard.js +241 -11
  72. package/dist/cjs/TemplateNormal.js +175 -13
  73. package/dist/cjs/Ustream.js +107 -6
  74. package/dist/cjs/VerticalHero.js +75 -0
  75. package/dist/cjs/VideoSeriesFilter.js +133 -0
  76. package/dist/cjs/VideoSeriesListing.js +13 -7
  77. package/dist/cjs/View.js +1156 -0
  78. package/dist/cjs/YahooHero.js +129 -0
  79. package/dist/cjs/YoutubeGroup.js +5 -3
  80. package/dist/cjs/_arrayMap-3b4a0f75.js +91 -0
  81. package/dist/cjs/_is-array-754e012d.js +74 -0
  82. package/dist/cjs/{_iter-detect-234453c3.js → _iter-detect-4d0352f8.js} +4 -4
  83. package/dist/cjs/_object-sap-5e74ba08.js +16 -0
  84. package/dist/cjs/_set-species-4458e975.js +56 -0
  85. package/dist/cjs/{AdSlot-257d8d4e.js → asyncToGenerator-db08763c.js} +1 -710
  86. package/dist/cjs/brightcove-react-player-loader.es-4ba0d3d5.js +2231 -0
  87. package/dist/cjs/{web.dom.iterable-5c889cf1.js → core.get-iterator-method-41e87ec1.js} +0 -46
  88. package/dist/cjs/debounce-32e57002.js +280 -0
  89. package/dist/cjs/{toConsumableArray-25d0e2a3.js → from-ea347372.js} +4 -29
  90. package/dist/cjs/{get-7a75c563.js → get-5dfcdc33.js} +14 -100
  91. package/dist/cjs/getKeywords.js +31 -0
  92. package/dist/cjs/getQuery.js +20 -0
  93. package/dist/cjs/getSerializers.js +8032 -0
  94. package/dist/cjs/getSeriesDetail.js +38 -0
  95. package/dist/cjs/getTargeting-3ced038f.js +108 -0
  96. package/dist/cjs/getTargeting.js +15 -0
  97. package/dist/cjs/iconBase-637d3f1e.js +83 -0
  98. package/dist/cjs/{debounce-420ff8a8.js → index-b2448ff6.js} +0 -483
  99. package/dist/cjs/index.esm-25423c2f.js +16 -0
  100. package/dist/cjs/index.esm-c0d8b44b.js +21 -0
  101. package/dist/cjs/index.esm-fcdbd2c6.js +31 -0
  102. package/dist/cjs/index.js +190 -23088
  103. package/dist/cjs/{inherits-b4036c94.js → inherits-4a2f1cc3.js} +6 -17
  104. package/dist/cjs/isSymbol-488934a7.js +211 -0
  105. package/dist/cjs/js.cookie-a511c430.js +160 -0
  106. package/dist/cjs/keys-a586b7a0.js +25 -0
  107. package/dist/cjs/{promise-0a493c7a.js → promise-074978a7.js} +15 -62
  108. package/dist/cjs/{slicedToArray-419d467a.js → slicedToArray-8063ee51.js} +5 -4
  109. package/dist/cjs/stringify-7c5aff47.js +17 -0
  110. package/dist/cjs/toConsumableArray-ca04303b.js +31 -0
  111. package/dist/cjs/{typeof-0d86b91c.js → typeof-583cdc4b.js} +20 -87
  112. package/dist/cjs/urlFor.js +10 -0
  113. package/dist/cjs/util-f2c1b65b.js +576 -0
  114. package/dist/cjs/web.dom.iterable-43c3e277.js +51 -0
  115. package/dist/esm/AD.js +26 -0
  116. package/dist/esm/AD300x250.js +54 -0
  117. package/dist/esm/AD300x250x600.js +54 -0
  118. package/dist/esm/AD728x90.js +100 -0
  119. package/dist/esm/ADFloatingFooter.js +133 -0
  120. package/dist/esm/ADFooter.js +39 -0
  121. package/dist/esm/ADGutter.js +82 -0
  122. package/dist/esm/{ADInfeed-dff74bbe.js → ADInfeed-1c17dc0e.js} +1 -1
  123. package/dist/esm/ADSponsoredResources.js +100 -0
  124. package/dist/esm/ADWelcome.js +144 -0
  125. package/dist/esm/{ADlgInfeed-7b29db85.js → ADlgInfeed-94d7f5dd.js} +1 -1
  126. package/dist/esm/AccordionPanel.js +88 -0
  127. package/dist/esm/AdSlot.js +159 -0
  128. package/dist/esm/AdSlotsProvider.js +25 -0
  129. package/dist/esm/AlphabeticList.js +131 -0
  130. package/dist/esm/ArticleQueue.js +855 -0
  131. package/dist/esm/Auth.js +3930 -0
  132. package/dist/esm/{AuthorComponent-4f5f15ed.js → AuthorComponent-f67cb027.js} +1 -1
  133. package/dist/esm/Beam.js +345 -0
  134. package/dist/esm/{TaxonomyCard-b22a742f.js → BlockContent-4af2feb9.js} +2 -233
  135. package/dist/esm/Breadcrumbs.js +101 -0
  136. package/dist/esm/CMEDeck.js +448 -0
  137. package/dist/esm/Column1.js +29 -0
  138. package/dist/esm/Column2.js +57 -0
  139. package/dist/esm/Column3.js +131 -0
  140. package/dist/esm/ConferenceArticleCard.js +85 -0
  141. package/dist/esm/ConferenceBanner-9162d0ca.js +18 -0
  142. package/dist/esm/DeckContent.js +24 -13
  143. package/dist/esm/DeckQueue.js +17 -10
  144. package/dist/esm/{Dfp-994cd0ab.js → Dfp-7addbfb1.js} +7 -4
  145. package/dist/esm/EventsDeck.js +1987 -0
  146. package/dist/esm/Feature.js +113 -0
  147. package/dist/esm/{Figure-1c55ebf0.js → Figure-408929f3.js} +4 -3
  148. package/dist/esm/ForbesHero.js +134 -0
  149. package/dist/esm/GridContent.js +714 -30
  150. package/dist/esm/GridHero.js +139 -0
  151. package/dist/esm/GroupDeck.js +6 -4
  152. package/dist/esm/HamMagazine.js +465 -0
  153. package/dist/esm/Header.js +28 -0
  154. package/dist/esm/Hero.js +50 -0
  155. package/dist/esm/HighlightenVideo.js +63 -0
  156. package/dist/esm/HorizontalHero.js +103 -0
  157. package/dist/esm/InscreenSensor-b7f931bf.js +857 -0
  158. package/dist/esm/IssueContentDeck.js +5 -4
  159. package/dist/esm/IssueDeck.js +8 -6
  160. package/dist/esm/IssueLanding.js +109 -0
  161. package/dist/esm/KMTracker.js +25 -0
  162. package/dist/esm/LeftNav.js +90 -0
  163. package/dist/esm/MasterDeck.js +17 -10
  164. package/dist/esm/NavDvm.js +211 -0
  165. package/dist/esm/NavFooter-c29526b7.js +60 -0
  166. package/dist/esm/NavMagazine.js +424 -0
  167. package/dist/esm/NavNative.js +266 -0
  168. package/dist/esm/NavNormal.js +97 -0
  169. package/dist/esm/OncliveHero.js +72 -0
  170. package/dist/esm/OncliveLargeHero.js +237 -0
  171. package/dist/esm/PageFilter.js +67 -0
  172. package/dist/esm/PdfDownload.js +22 -0
  173. package/dist/esm/PopUpModal.js +52 -0
  174. package/dist/esm/PublicationLanding.js +546 -0
  175. package/dist/esm/QueueDeckExpanded.js +22 -13
  176. package/dist/esm/RelatedContent.js +101 -0
  177. package/dist/esm/RelatedTopicsDropdown.js +82 -0
  178. package/dist/esm/Search.js +58 -0
  179. package/dist/esm/Segment.js +223 -0
  180. package/dist/esm/SetCookie.js +8 -0
  181. package/dist/esm/SideFooter.js +97 -0
  182. package/dist/esm/SocialNavFooter-1a531144.js +77 -0
  183. package/dist/esm/SocialShare.js +65 -0
  184. package/dist/esm/TaxonomyCard.js +237 -11
  185. package/dist/esm/TemplateNormal.js +175 -14
  186. package/dist/esm/Ustream.js +107 -6
  187. package/dist/esm/VerticalHero.js +69 -0
  188. package/dist/esm/VideoSeriesFilter.js +127 -0
  189. package/dist/esm/VideoSeriesListing.js +14 -8
  190. package/dist/esm/View.js +1145 -0
  191. package/dist/esm/YahooHero.js +123 -0
  192. package/dist/esm/YoutubeGroup.js +6 -4
  193. package/dist/esm/_arrayMap-a8dd2b2c.js +87 -0
  194. package/dist/esm/_is-array-dd5523d6.js +71 -0
  195. package/dist/esm/{_iter-detect-7c281f0a.js → _iter-detect-6e099a34.js} +2 -2
  196. package/dist/esm/_object-sap-56bb8073.js +14 -0
  197. package/dist/esm/_set-species-6f64f1c1.js +51 -0
  198. package/dist/esm/{_to-object-1b1f7766.js → _to-object-16fd8b46.js} +1 -1
  199. package/dist/esm/{AdSlot-362a1c30.js → asyncToGenerator-204b5a5c.js} +3 -703
  200. package/dist/esm/brightcove-react-player-loader.es-e1c6b0f2.js +2225 -0
  201. package/dist/esm/{web.dom.iterable-e6bf2bf6.js → core.get-iterator-method-f5c0d66a.js} +2 -47
  202. package/dist/esm/debounce-8cd9e09c.js +277 -0
  203. package/dist/esm/{extends-92072fff.js → extends-6e00b262.js} +1 -1
  204. package/dist/esm/{toConsumableArray-c5e2fde8.js → from-2c0a5f49.js} +4 -29
  205. package/dist/esm/{get-bc6cf9fb.js → get-ae817b75.js} +3 -86
  206. package/dist/esm/getKeywords.js +29 -0
  207. package/dist/esm/getQuery.js +18 -0
  208. package/dist/esm/getSerializers.js +8021 -0
  209. package/dist/esm/getSeriesDetail.js +36 -0
  210. package/dist/esm/getTargeting-8f4bd5db.js +105 -0
  211. package/dist/esm/getTargeting.js +9 -0
  212. package/dist/esm/iconBase-6ee2f2fb.js +81 -0
  213. package/dist/esm/{debounce-42a7f724.js → index-fb49124c.js} +2 -476
  214. package/dist/esm/index.esm-9d6faf80.js +17 -0
  215. package/dist/esm/index.esm-a7ad65ba.js +13 -0
  216. package/dist/esm/{index.esm-536609db.js → index.esm-b97cf389.js} +2 -80
  217. package/dist/esm/index.js +137 -23019
  218. package/dist/esm/{inherits-bbec2f34.js → inherits-2758cc14.js} +5 -15
  219. package/dist/esm/isSymbol-c1b9be80.js +203 -0
  220. package/dist/esm/js.cookie-6874175c.js +158 -0
  221. package/dist/esm/keys-04cdec91.js +23 -0
  222. package/dist/esm/{main-cf4930f0.js → main-8c8784b8.js} +1 -1
  223. package/dist/esm/{promise-2592a80a.js → promise-53143c9a.js} +6 -49
  224. package/dist/esm/{slicedToArray-04e02710.js → slicedToArray-f1e40361.js} +3 -2
  225. package/dist/esm/stringify-e30bc114.js +15 -0
  226. package/dist/esm/toConsumableArray-8712d678.js +29 -0
  227. package/dist/esm/{typeof-09bf9211.js → typeof-7e72fee0.js} +5 -70
  228. package/dist/esm/urlFor.js +8 -0
  229. package/dist/esm/util-7700fc59.js +574 -0
  230. package/dist/esm/web.dom.iterable-46c95e52.js +49 -0
  231. package/package.json +1 -1
  232. package/dist/cjs/GridContent-6a0216fb.js +0 -728
  233. package/dist/cjs/Normal-430e8e61.js +0 -2315
  234. package/dist/cjs/Ustream-46288bdf.js +0 -119
  235. package/dist/cjs/index.esm-340d3792.js +0 -110
  236. package/dist/esm/GridContent-7e11f013.js +0 -717
  237. package/dist/esm/Normal-6efd92da.js +0 -2282
  238. package/dist/esm/Ustream-c4f281a3.js +0 -112
@@ -0,0 +1,864 @@
1
+ 'use strict';
2
+
3
+ var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
+ var inherits = require('./inherits-4a2f1cc3.js');
5
+ var React = require('react');
6
+ var isSymbol = require('./isSymbol-488934a7.js');
7
+ var debounce = require('./debounce-32e57002.js');
8
+ var _arrayMap = require('./_arrayMap-3b4a0f75.js');
9
+
10
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
+
12
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
+
14
+ /**
15
+ * The base implementation of `_.findIndex` and `_.findLastIndex` without
16
+ * support for iteratee shorthands.
17
+ *
18
+ * @private
19
+ * @param {Array} array The array to inspect.
20
+ * @param {Function} predicate The function invoked per iteration.
21
+ * @param {number} fromIndex The index to search from.
22
+ * @param {boolean} [fromRight] Specify iterating from right to left.
23
+ * @returns {number} Returns the index of the matched value, else `-1`.
24
+ */
25
+ function baseFindIndex(array, predicate, fromIndex, fromRight) {
26
+ var length = array.length,
27
+ index = fromIndex + (fromRight ? 1 : -1);
28
+
29
+ while ((fromRight ? index-- : ++index < length)) {
30
+ if (predicate(array[index], index, array)) {
31
+ return index;
32
+ }
33
+ }
34
+ return -1;
35
+ }
36
+
37
+ var _baseFindIndex = baseFindIndex;
38
+
39
+ /**
40
+ * The base implementation of `_.isNaN` without support for number objects.
41
+ *
42
+ * @private
43
+ * @param {*} value The value to check.
44
+ * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
45
+ */
46
+ function baseIsNaN(value) {
47
+ return value !== value;
48
+ }
49
+
50
+ var _baseIsNaN = baseIsNaN;
51
+
52
+ /**
53
+ * A specialized version of `_.indexOf` which performs strict equality
54
+ * comparisons of values, i.e. `===`.
55
+ *
56
+ * @private
57
+ * @param {Array} array The array to inspect.
58
+ * @param {*} value The value to search for.
59
+ * @param {number} fromIndex The index to search from.
60
+ * @returns {number} Returns the index of the matched value, else `-1`.
61
+ */
62
+ function strictIndexOf(array, value, fromIndex) {
63
+ var index = fromIndex - 1,
64
+ length = array.length;
65
+
66
+ while (++index < length) {
67
+ if (array[index] === value) {
68
+ return index;
69
+ }
70
+ }
71
+ return -1;
72
+ }
73
+
74
+ var _strictIndexOf = strictIndexOf;
75
+
76
+ /**
77
+ * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
78
+ *
79
+ * @private
80
+ * @param {Array} array The array to inspect.
81
+ * @param {*} value The value to search for.
82
+ * @param {number} fromIndex The index to search from.
83
+ * @returns {number} Returns the index of the matched value, else `-1`.
84
+ */
85
+ function baseIndexOf(array, value, fromIndex) {
86
+ return value === value
87
+ ? _strictIndexOf(array, value, fromIndex)
88
+ : _baseFindIndex(array, _baseIsNaN, fromIndex);
89
+ }
90
+
91
+ var _baseIndexOf = baseIndexOf;
92
+
93
+ /** Used as references for various `Number` constants. */
94
+ var MAX_SAFE_INTEGER = 9007199254740991;
95
+
96
+ /**
97
+ * Checks if `value` is a valid array-like length.
98
+ *
99
+ * **Note:** This method is loosely based on
100
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
101
+ *
102
+ * @static
103
+ * @memberOf _
104
+ * @since 4.0.0
105
+ * @category Lang
106
+ * @param {*} value The value to check.
107
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
108
+ * @example
109
+ *
110
+ * _.isLength(3);
111
+ * // => true
112
+ *
113
+ * _.isLength(Number.MIN_VALUE);
114
+ * // => false
115
+ *
116
+ * _.isLength(Infinity);
117
+ * // => false
118
+ *
119
+ * _.isLength('3');
120
+ * // => false
121
+ */
122
+ function isLength(value) {
123
+ return typeof value == 'number' &&
124
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
125
+ }
126
+
127
+ var isLength_1 = isLength;
128
+
129
+ /**
130
+ * Checks if `value` is array-like. A value is considered array-like if it's
131
+ * not a function and has a `value.length` that's an integer greater than or
132
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
133
+ *
134
+ * @static
135
+ * @memberOf _
136
+ * @since 4.0.0
137
+ * @category Lang
138
+ * @param {*} value The value to check.
139
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
140
+ * @example
141
+ *
142
+ * _.isArrayLike([1, 2, 3]);
143
+ * // => true
144
+ *
145
+ * _.isArrayLike(document.body.children);
146
+ * // => true
147
+ *
148
+ * _.isArrayLike('abc');
149
+ * // => true
150
+ *
151
+ * _.isArrayLike(_.noop);
152
+ * // => false
153
+ */
154
+ function isArrayLike(value) {
155
+ return value != null && isLength_1(value.length) && !_arrayMap.isFunction_1(value);
156
+ }
157
+
158
+ var isArrayLike_1 = isArrayLike;
159
+
160
+ /** `Object#toString` result references. */
161
+ var stringTag = '[object String]';
162
+
163
+ /**
164
+ * Checks if `value` is classified as a `String` primitive or object.
165
+ *
166
+ * @static
167
+ * @since 0.1.0
168
+ * @memberOf _
169
+ * @category Lang
170
+ * @param {*} value The value to check.
171
+ * @returns {boolean} Returns `true` if `value` is a string, else `false`.
172
+ * @example
173
+ *
174
+ * _.isString('abc');
175
+ * // => true
176
+ *
177
+ * _.isString(1);
178
+ * // => false
179
+ */
180
+ function isString(value) {
181
+ return typeof value == 'string' ||
182
+ (!_arrayMap.isArray_1(value) && isSymbol.isObjectLike_1(value) && isSymbol._baseGetTag(value) == stringTag);
183
+ }
184
+
185
+ var isString_1 = isString;
186
+
187
+ /** Used as references for various `Number` constants. */
188
+ var INFINITY = 1 / 0,
189
+ MAX_INTEGER = 1.7976931348623157e+308;
190
+
191
+ /**
192
+ * Converts `value` to a finite number.
193
+ *
194
+ * @static
195
+ * @memberOf _
196
+ * @since 4.12.0
197
+ * @category Lang
198
+ * @param {*} value The value to convert.
199
+ * @returns {number} Returns the converted number.
200
+ * @example
201
+ *
202
+ * _.toFinite(3.2);
203
+ * // => 3.2
204
+ *
205
+ * _.toFinite(Number.MIN_VALUE);
206
+ * // => 5e-324
207
+ *
208
+ * _.toFinite(Infinity);
209
+ * // => 1.7976931348623157e+308
210
+ *
211
+ * _.toFinite('3.2');
212
+ * // => 3.2
213
+ */
214
+ function toFinite(value) {
215
+ if (!value) {
216
+ return value === 0 ? value : 0;
217
+ }
218
+ value = debounce.toNumber_1(value);
219
+ if (value === INFINITY || value === -INFINITY) {
220
+ var sign = (value < 0 ? -1 : 1);
221
+ return sign * MAX_INTEGER;
222
+ }
223
+ return value === value ? value : 0;
224
+ }
225
+
226
+ var toFinite_1 = toFinite;
227
+
228
+ /**
229
+ * Converts `value` to an integer.
230
+ *
231
+ * **Note:** This method is loosely based on
232
+ * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
233
+ *
234
+ * @static
235
+ * @memberOf _
236
+ * @since 4.0.0
237
+ * @category Lang
238
+ * @param {*} value The value to convert.
239
+ * @returns {number} Returns the converted integer.
240
+ * @example
241
+ *
242
+ * _.toInteger(3.2);
243
+ * // => 3
244
+ *
245
+ * _.toInteger(Number.MIN_VALUE);
246
+ * // => 0
247
+ *
248
+ * _.toInteger(Infinity);
249
+ * // => 1.7976931348623157e+308
250
+ *
251
+ * _.toInteger('3.2');
252
+ * // => 3
253
+ */
254
+ function toInteger(value) {
255
+ var result = toFinite_1(value),
256
+ remainder = result % 1;
257
+
258
+ return result === result ? (remainder ? result - remainder : result) : 0;
259
+ }
260
+
261
+ var toInteger_1 = toInteger;
262
+
263
+ /**
264
+ * The base implementation of `_.values` and `_.valuesIn` which creates an
265
+ * array of `object` property values corresponding to the property names
266
+ * of `props`.
267
+ *
268
+ * @private
269
+ * @param {Object} object The object to query.
270
+ * @param {Array} props The property names to get values for.
271
+ * @returns {Object} Returns the array of property values.
272
+ */
273
+ function baseValues(object, props) {
274
+ return _arrayMap._arrayMap(props, function(key) {
275
+ return object[key];
276
+ });
277
+ }
278
+
279
+ var _baseValues = baseValues;
280
+
281
+ /**
282
+ * The base implementation of `_.times` without support for iteratee shorthands
283
+ * or max array length checks.
284
+ *
285
+ * @private
286
+ * @param {number} n The number of times to invoke `iteratee`.
287
+ * @param {Function} iteratee The function invoked per iteration.
288
+ * @returns {Array} Returns the array of results.
289
+ */
290
+ function baseTimes(n, iteratee) {
291
+ var index = -1,
292
+ result = Array(n);
293
+
294
+ while (++index < n) {
295
+ result[index] = iteratee(index);
296
+ }
297
+ return result;
298
+ }
299
+
300
+ var _baseTimes = baseTimes;
301
+
302
+ /** `Object#toString` result references. */
303
+ var argsTag = '[object Arguments]';
304
+
305
+ /**
306
+ * The base implementation of `_.isArguments`.
307
+ *
308
+ * @private
309
+ * @param {*} value The value to check.
310
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
311
+ */
312
+ function baseIsArguments(value) {
313
+ return isSymbol.isObjectLike_1(value) && isSymbol._baseGetTag(value) == argsTag;
314
+ }
315
+
316
+ var _baseIsArguments = baseIsArguments;
317
+
318
+ /** Used for built-in method references. */
319
+ var objectProto = Object.prototype;
320
+
321
+ /** Used to check objects for own properties. */
322
+ var hasOwnProperty = objectProto.hasOwnProperty;
323
+
324
+ /** Built-in value references. */
325
+ var propertyIsEnumerable = objectProto.propertyIsEnumerable;
326
+
327
+ /**
328
+ * Checks if `value` is likely an `arguments` object.
329
+ *
330
+ * @static
331
+ * @memberOf _
332
+ * @since 0.1.0
333
+ * @category Lang
334
+ * @param {*} value The value to check.
335
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
336
+ * else `false`.
337
+ * @example
338
+ *
339
+ * _.isArguments(function() { return arguments; }());
340
+ * // => true
341
+ *
342
+ * _.isArguments([1, 2, 3]);
343
+ * // => false
344
+ */
345
+ var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
346
+ return isSymbol.isObjectLike_1(value) && hasOwnProperty.call(value, 'callee') &&
347
+ !propertyIsEnumerable.call(value, 'callee');
348
+ };
349
+
350
+ var isArguments_1 = isArguments;
351
+
352
+ /**
353
+ * This method returns `false`.
354
+ *
355
+ * @static
356
+ * @memberOf _
357
+ * @since 4.13.0
358
+ * @category Util
359
+ * @returns {boolean} Returns `false`.
360
+ * @example
361
+ *
362
+ * _.times(2, _.stubFalse);
363
+ * // => [false, false]
364
+ */
365
+ function stubFalse() {
366
+ return false;
367
+ }
368
+
369
+ var stubFalse_1 = stubFalse;
370
+
371
+ var isBuffer_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
372
+ /** Detect free variable `exports`. */
373
+ var freeExports = exports && !exports.nodeType && exports;
374
+
375
+ /** Detect free variable `module`. */
376
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
377
+
378
+ /** Detect the popular CommonJS extension `module.exports`. */
379
+ var moduleExports = freeModule && freeModule.exports === freeExports;
380
+
381
+ /** Built-in value references. */
382
+ var Buffer = moduleExports ? isSymbol._root.Buffer : undefined;
383
+
384
+ /* Built-in method references for those with the same name as other `lodash` methods. */
385
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
386
+
387
+ /**
388
+ * Checks if `value` is a buffer.
389
+ *
390
+ * @static
391
+ * @memberOf _
392
+ * @since 4.3.0
393
+ * @category Lang
394
+ * @param {*} value The value to check.
395
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
396
+ * @example
397
+ *
398
+ * _.isBuffer(new Buffer(2));
399
+ * // => true
400
+ *
401
+ * _.isBuffer(new Uint8Array(2));
402
+ * // => false
403
+ */
404
+ var isBuffer = nativeIsBuffer || stubFalse_1;
405
+
406
+ module.exports = isBuffer;
407
+ });
408
+
409
+ /** Used as references for various `Number` constants. */
410
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
411
+
412
+ /** Used to detect unsigned integer values. */
413
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
414
+
415
+ /**
416
+ * Checks if `value` is a valid array-like index.
417
+ *
418
+ * @private
419
+ * @param {*} value The value to check.
420
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
421
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
422
+ */
423
+ function isIndex(value, length) {
424
+ var type = typeof value;
425
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
426
+
427
+ return !!length &&
428
+ (type == 'number' ||
429
+ (type != 'symbol' && reIsUint.test(value))) &&
430
+ (value > -1 && value % 1 == 0 && value < length);
431
+ }
432
+
433
+ var _isIndex = isIndex;
434
+
435
+ /** `Object#toString` result references. */
436
+ var argsTag$1 = '[object Arguments]',
437
+ arrayTag = '[object Array]',
438
+ boolTag = '[object Boolean]',
439
+ dateTag = '[object Date]',
440
+ errorTag = '[object Error]',
441
+ funcTag = '[object Function]',
442
+ mapTag = '[object Map]',
443
+ numberTag = '[object Number]',
444
+ objectTag = '[object Object]',
445
+ regexpTag = '[object RegExp]',
446
+ setTag = '[object Set]',
447
+ stringTag$1 = '[object String]',
448
+ weakMapTag = '[object WeakMap]';
449
+
450
+ var arrayBufferTag = '[object ArrayBuffer]',
451
+ dataViewTag = '[object DataView]',
452
+ float32Tag = '[object Float32Array]',
453
+ float64Tag = '[object Float64Array]',
454
+ int8Tag = '[object Int8Array]',
455
+ int16Tag = '[object Int16Array]',
456
+ int32Tag = '[object Int32Array]',
457
+ uint8Tag = '[object Uint8Array]',
458
+ uint8ClampedTag = '[object Uint8ClampedArray]',
459
+ uint16Tag = '[object Uint16Array]',
460
+ uint32Tag = '[object Uint32Array]';
461
+
462
+ /** Used to identify `toStringTag` values of typed arrays. */
463
+ var typedArrayTags = {};
464
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
465
+ typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
466
+ typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
467
+ typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
468
+ typedArrayTags[uint32Tag] = true;
469
+ typedArrayTags[argsTag$1] = typedArrayTags[arrayTag] =
470
+ typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
471
+ typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
472
+ typedArrayTags[errorTag] = typedArrayTags[funcTag] =
473
+ typedArrayTags[mapTag] = typedArrayTags[numberTag] =
474
+ typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
475
+ typedArrayTags[setTag] = typedArrayTags[stringTag$1] =
476
+ typedArrayTags[weakMapTag] = false;
477
+
478
+ /**
479
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
480
+ *
481
+ * @private
482
+ * @param {*} value The value to check.
483
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
484
+ */
485
+ function baseIsTypedArray(value) {
486
+ return isSymbol.isObjectLike_1(value) &&
487
+ isLength_1(value.length) && !!typedArrayTags[isSymbol._baseGetTag(value)];
488
+ }
489
+
490
+ var _baseIsTypedArray = baseIsTypedArray;
491
+
492
+ /**
493
+ * The base implementation of `_.unary` without support for storing metadata.
494
+ *
495
+ * @private
496
+ * @param {Function} func The function to cap arguments for.
497
+ * @returns {Function} Returns the new capped function.
498
+ */
499
+ function baseUnary(func) {
500
+ return function(value) {
501
+ return func(value);
502
+ };
503
+ }
504
+
505
+ var _baseUnary = baseUnary;
506
+
507
+ var _nodeUtil = _commonjsHelpers.createCommonjsModule(function (module, exports) {
508
+ /** Detect free variable `exports`. */
509
+ var freeExports = exports && !exports.nodeType && exports;
510
+
511
+ /** Detect free variable `module`. */
512
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
513
+
514
+ /** Detect the popular CommonJS extension `module.exports`. */
515
+ var moduleExports = freeModule && freeModule.exports === freeExports;
516
+
517
+ /** Detect free variable `process` from Node.js. */
518
+ var freeProcess = moduleExports && isSymbol._freeGlobal.process;
519
+
520
+ /** Used to access faster Node.js helpers. */
521
+ var nodeUtil = (function() {
522
+ try {
523
+ // Use `util.types` for Node.js 10+.
524
+ var types = freeModule && freeModule.require && freeModule.require('util').types;
525
+
526
+ if (types) {
527
+ return types;
528
+ }
529
+
530
+ // Legacy `process.binding('util')` for Node.js < 10.
531
+ return freeProcess && freeProcess.binding && freeProcess.binding('util');
532
+ } catch (e) {}
533
+ }());
534
+
535
+ module.exports = nodeUtil;
536
+ });
537
+
538
+ /* Node.js helper references. */
539
+ var nodeIsTypedArray = _nodeUtil && _nodeUtil.isTypedArray;
540
+
541
+ /**
542
+ * Checks if `value` is classified as a typed array.
543
+ *
544
+ * @static
545
+ * @memberOf _
546
+ * @since 3.0.0
547
+ * @category Lang
548
+ * @param {*} value The value to check.
549
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
550
+ * @example
551
+ *
552
+ * _.isTypedArray(new Uint8Array);
553
+ * // => true
554
+ *
555
+ * _.isTypedArray([]);
556
+ * // => false
557
+ */
558
+ var isTypedArray = nodeIsTypedArray ? _baseUnary(nodeIsTypedArray) : _baseIsTypedArray;
559
+
560
+ var isTypedArray_1 = isTypedArray;
561
+
562
+ /** Used for built-in method references. */
563
+ var objectProto$1 = Object.prototype;
564
+
565
+ /** Used to check objects for own properties. */
566
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
567
+
568
+ /**
569
+ * Creates an array of the enumerable property names of the array-like `value`.
570
+ *
571
+ * @private
572
+ * @param {*} value The value to query.
573
+ * @param {boolean} inherited Specify returning inherited property names.
574
+ * @returns {Array} Returns the array of property names.
575
+ */
576
+ function arrayLikeKeys(value, inherited) {
577
+ var isArr = _arrayMap.isArray_1(value),
578
+ isArg = !isArr && isArguments_1(value),
579
+ isBuff = !isArr && !isArg && isBuffer_1(value),
580
+ isType = !isArr && !isArg && !isBuff && isTypedArray_1(value),
581
+ skipIndexes = isArr || isArg || isBuff || isType,
582
+ result = skipIndexes ? _baseTimes(value.length, String) : [],
583
+ length = result.length;
584
+
585
+ for (var key in value) {
586
+ if ((inherited || hasOwnProperty$1.call(value, key)) &&
587
+ !(skipIndexes && (
588
+ // Safari 9 has enumerable `arguments.length` in strict mode.
589
+ key == 'length' ||
590
+ // Node.js 0.10 has enumerable non-index properties on buffers.
591
+ (isBuff && (key == 'offset' || key == 'parent')) ||
592
+ // PhantomJS 2 has enumerable non-index properties on typed arrays.
593
+ (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
594
+ // Skip index properties.
595
+ _isIndex(key, length)
596
+ ))) {
597
+ result.push(key);
598
+ }
599
+ }
600
+ return result;
601
+ }
602
+
603
+ var _arrayLikeKeys = arrayLikeKeys;
604
+
605
+ /** Used for built-in method references. */
606
+ var objectProto$2 = Object.prototype;
607
+
608
+ /**
609
+ * Checks if `value` is likely a prototype object.
610
+ *
611
+ * @private
612
+ * @param {*} value The value to check.
613
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
614
+ */
615
+ function isPrototype(value) {
616
+ var Ctor = value && value.constructor,
617
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$2;
618
+
619
+ return value === proto;
620
+ }
621
+
622
+ var _isPrototype = isPrototype;
623
+
624
+ /**
625
+ * Creates a unary function that invokes `func` with its argument transformed.
626
+ *
627
+ * @private
628
+ * @param {Function} func The function to wrap.
629
+ * @param {Function} transform The argument transform.
630
+ * @returns {Function} Returns the new function.
631
+ */
632
+ function overArg(func, transform) {
633
+ return function(arg) {
634
+ return func(transform(arg));
635
+ };
636
+ }
637
+
638
+ var _overArg = overArg;
639
+
640
+ /* Built-in method references for those with the same name as other `lodash` methods. */
641
+ var nativeKeys = _overArg(Object.keys, Object);
642
+
643
+ var _nativeKeys = nativeKeys;
644
+
645
+ /** Used for built-in method references. */
646
+ var objectProto$3 = Object.prototype;
647
+
648
+ /** Used to check objects for own properties. */
649
+ var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
650
+
651
+ /**
652
+ * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
653
+ *
654
+ * @private
655
+ * @param {Object} object The object to query.
656
+ * @returns {Array} Returns the array of property names.
657
+ */
658
+ function baseKeys(object) {
659
+ if (!_isPrototype(object)) {
660
+ return _nativeKeys(object);
661
+ }
662
+ var result = [];
663
+ for (var key in Object(object)) {
664
+ if (hasOwnProperty$2.call(object, key) && key != 'constructor') {
665
+ result.push(key);
666
+ }
667
+ }
668
+ return result;
669
+ }
670
+
671
+ var _baseKeys = baseKeys;
672
+
673
+ /**
674
+ * Creates an array of the own enumerable property names of `object`.
675
+ *
676
+ * **Note:** Non-object values are coerced to objects. See the
677
+ * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
678
+ * for more details.
679
+ *
680
+ * @static
681
+ * @since 0.1.0
682
+ * @memberOf _
683
+ * @category Object
684
+ * @param {Object} object The object to query.
685
+ * @returns {Array} Returns the array of property names.
686
+ * @example
687
+ *
688
+ * function Foo() {
689
+ * this.a = 1;
690
+ * this.b = 2;
691
+ * }
692
+ *
693
+ * Foo.prototype.c = 3;
694
+ *
695
+ * _.keys(new Foo);
696
+ * // => ['a', 'b'] (iteration order is not guaranteed)
697
+ *
698
+ * _.keys('hi');
699
+ * // => ['0', '1']
700
+ */
701
+ function keys(object) {
702
+ return isArrayLike_1(object) ? _arrayLikeKeys(object) : _baseKeys(object);
703
+ }
704
+
705
+ var keys_1 = keys;
706
+
707
+ /**
708
+ * Creates an array of the own enumerable string keyed property values of `object`.
709
+ *
710
+ * **Note:** Non-object values are coerced to objects.
711
+ *
712
+ * @static
713
+ * @since 0.1.0
714
+ * @memberOf _
715
+ * @category Object
716
+ * @param {Object} object The object to query.
717
+ * @returns {Array} Returns the array of property values.
718
+ * @example
719
+ *
720
+ * function Foo() {
721
+ * this.a = 1;
722
+ * this.b = 2;
723
+ * }
724
+ *
725
+ * Foo.prototype.c = 3;
726
+ *
727
+ * _.values(new Foo);
728
+ * // => [1, 2] (iteration order is not guaranteed)
729
+ *
730
+ * _.values('hi');
731
+ * // => ['h', 'i']
732
+ */
733
+ function values(object) {
734
+ return object == null ? [] : _baseValues(object, keys_1(object));
735
+ }
736
+
737
+ var values_1 = values;
738
+
739
+ /* Built-in method references for those with the same name as other `lodash` methods. */
740
+ var nativeMax = Math.max;
741
+
742
+ /**
743
+ * Checks if `value` is in `collection`. If `collection` is a string, it's
744
+ * checked for a substring of `value`, otherwise
745
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
746
+ * is used for equality comparisons. If `fromIndex` is negative, it's used as
747
+ * the offset from the end of `collection`.
748
+ *
749
+ * @static
750
+ * @memberOf _
751
+ * @since 0.1.0
752
+ * @category Collection
753
+ * @param {Array|Object|string} collection The collection to inspect.
754
+ * @param {*} value The value to search for.
755
+ * @param {number} [fromIndex=0] The index to search from.
756
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
757
+ * @returns {boolean} Returns `true` if `value` is found, else `false`.
758
+ * @example
759
+ *
760
+ * _.includes([1, 2, 3], 1);
761
+ * // => true
762
+ *
763
+ * _.includes([1, 2, 3], 1, 2);
764
+ * // => false
765
+ *
766
+ * _.includes({ 'a': 1, 'b': 2 }, 1);
767
+ * // => true
768
+ *
769
+ * _.includes('abcd', 'bc');
770
+ * // => true
771
+ */
772
+ function includes(collection, value, fromIndex, guard) {
773
+ collection = isArrayLike_1(collection) ? collection : values_1(collection);
774
+ fromIndex = (fromIndex && !guard) ? toInteger_1(fromIndex) : 0;
775
+
776
+ var length = collection.length;
777
+ if (fromIndex < 0) {
778
+ fromIndex = nativeMax(length + fromIndex, 0);
779
+ }
780
+ return isString_1(collection)
781
+ ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
782
+ : (!!length && _baseIndexOf(collection, value, fromIndex) > -1);
783
+ }
784
+
785
+ var includes_1 = includes;
786
+
787
+ var InscreenSensor = function (_React$Component) {
788
+ inherits._inherits(InscreenSensor, _React$Component);
789
+
790
+ function InscreenSensor(props) {
791
+ inherits._classCallCheck(this, InscreenSensor);
792
+
793
+ var _this = inherits._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits._Object$getPrototypeOf(InscreenSensor)).call(this, props));
794
+
795
+ _this.scrollHandler = function () {
796
+ var visible = _this.checkInside();
797
+ if (visible !== _this.visible) {
798
+ _this.visible = visible;
799
+ _this.props.onChange(visible);
800
+ }
801
+ };
802
+
803
+ _this.checkInside = function () {
804
+ var rect = _this.wraperRef.current.getBoundingClientRect();
805
+ var _this$props$offSetTop = _this.props.offSetTop,
806
+ offSetTop = _this$props$offSetTop === undefined ? 0 : _this$props$offSetTop;
807
+ var top = rect.top,
808
+ bottom = rect.bottom;
809
+
810
+ var viewHeight = window.innerHeight;
811
+ var wrpElem = document.getElementsByClassName('inscreen-wrapper');
812
+
813
+ if (top > 0 && top <= offSetTop) {
814
+ if (wrpElem.length > 1 && top <= viewHeight && bottom > viewHeight) {
815
+ return 'top';
816
+ } else if (wrpElem.length > 1 && bottom < viewHeight) {
817
+ return 'small-top';
818
+ }
819
+ } else if (wrpElem.length > 1 && top < offSetTop && bottom + offSetTop >= viewHeight) {
820
+ return 'bottom';
821
+ }
822
+ };
823
+
824
+ _this.wraperRef = React__default['default'].createRef();
825
+ _this.visible = false;
826
+ return _this;
827
+ }
828
+
829
+ inherits._createClass(InscreenSensor, [{
830
+ key: 'componentDidMount',
831
+ value: function componentDidMount() {
832
+ this.visible = this.checkInside();
833
+ this.props.onChange(this.visible);
834
+ window.addEventListener('scroll', this.scrollHandler);
835
+ }
836
+ }, {
837
+ key: 'componentWillUnmount',
838
+ value: function componentWillUnmount() {
839
+ window.removeEventListener('scroll', this.scrollHandler);
840
+ }
841
+ }, {
842
+ key: 'render',
843
+ value: function render() {
844
+ var _props = this.props,
845
+ _props$className = _props.className,
846
+ className = _props$className === undefined ? '' : _props$className,
847
+ _props$style = _props.style,
848
+ style = _props$style === undefined ? {} : _props$style,
849
+ _props$id = _props.id,
850
+ id = _props$id === undefined ? '' : _props$id;
851
+
852
+ return React__default['default'].createElement(
853
+ 'div',
854
+ { ref: this.wraperRef, className: className, style: style, id: id },
855
+ this.props.children
856
+ );
857
+ }
858
+ }]);
859
+
860
+ return InscreenSensor;
861
+ }(React__default['default'].Component);
862
+
863
+ exports.InscreenSensor = InscreenSensor;
864
+ exports.includes_1 = includes_1;