@mjhls/mjh-framework 1.0.445 → 1.0.446

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 +134 -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 +128 -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
@@ -232,55 +232,9 @@ var core_getIteratorMethod = _toObject._core.getIteratorMethod = function (it) {
232
232
  || _iterators[_classof(it)];
233
233
  };
234
234
 
235
- var _iterStep = function (done, value) {
236
- return { value: value, done: !!done };
237
- };
238
-
239
- // 22.1.3.4 Array.prototype.entries()
240
- // 22.1.3.13 Array.prototype.keys()
241
- // 22.1.3.29 Array.prototype.values()
242
- // 22.1.3.30 Array.prototype[@@iterator]()
243
- var es6_array_iterator = _iterDefine(Array, 'Array', function (iterated, kind) {
244
- this._t = _toObject._toIobject(iterated); // target
245
- this._i = 0; // next index
246
- this._k = kind; // kind
247
- // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
248
- }, function () {
249
- var O = this._t;
250
- var kind = this._k;
251
- var index = this._i++;
252
- if (!O || index >= O.length) {
253
- this._t = undefined;
254
- return _iterStep(1);
255
- }
256
- if (kind == 'keys') return _iterStep(0, index);
257
- if (kind == 'values') return _iterStep(0, O[index]);
258
- return _iterStep(0, [index, O[index]]);
259
- }, 'values');
260
-
261
- // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
262
- _iterators.Arguments = _iterators.Array;
263
-
264
- var TO_STRING_TAG = _wks('toStringTag');
265
-
266
- var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
267
- 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
268
- 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
269
- 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
270
- 'TextTrackList,TouchList').split(',');
271
-
272
- for (var i = 0; i < DOMIterables.length; i++) {
273
- var NAME = DOMIterables[i];
274
- var Collection = _toObject._global[NAME];
275
- var proto = Collection && Collection.prototype;
276
- if (proto && !proto[TO_STRING_TAG]) _toObject._hide(proto, TO_STRING_TAG, NAME);
277
- _iterators[NAME] = _iterators.Array;
278
- }
279
-
280
235
  exports._classof = _classof;
281
236
  exports._html = _html;
282
237
  exports._iterDefine = _iterDefine;
283
- exports._iterStep = _iterStep;
284
238
  exports._iterators = _iterators;
285
239
  exports._objectCreate = _objectCreate;
286
240
  exports._objectGpo = _objectGpo;
@@ -0,0 +1,280 @@
1
+ 'use strict';
2
+
3
+ var isSymbol = require('./isSymbol-488934a7.js');
4
+
5
+ /**
6
+ * Gets the timestamp of the number of milliseconds that have elapsed since
7
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
8
+ *
9
+ * @static
10
+ * @memberOf _
11
+ * @since 2.4.0
12
+ * @category Date
13
+ * @returns {number} Returns the timestamp.
14
+ * @example
15
+ *
16
+ * _.defer(function(stamp) {
17
+ * console.log(_.now() - stamp);
18
+ * }, _.now());
19
+ * // => Logs the number of milliseconds it took for the deferred invocation.
20
+ */
21
+ var now = function() {
22
+ return isSymbol._root.Date.now();
23
+ };
24
+
25
+ var now_1 = now;
26
+
27
+ /** Used as references for various `Number` constants. */
28
+ var NAN = 0 / 0;
29
+
30
+ /** Used to match leading and trailing whitespace. */
31
+ var reTrim = /^\s+|\s+$/g;
32
+
33
+ /** Used to detect bad signed hexadecimal string values. */
34
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
35
+
36
+ /** Used to detect binary string values. */
37
+ var reIsBinary = /^0b[01]+$/i;
38
+
39
+ /** Used to detect octal string values. */
40
+ var reIsOctal = /^0o[0-7]+$/i;
41
+
42
+ /** Built-in method references without a dependency on `root`. */
43
+ var freeParseInt = parseInt;
44
+
45
+ /**
46
+ * Converts `value` to a number.
47
+ *
48
+ * @static
49
+ * @memberOf _
50
+ * @since 4.0.0
51
+ * @category Lang
52
+ * @param {*} value The value to process.
53
+ * @returns {number} Returns the number.
54
+ * @example
55
+ *
56
+ * _.toNumber(3.2);
57
+ * // => 3.2
58
+ *
59
+ * _.toNumber(Number.MIN_VALUE);
60
+ * // => 5e-324
61
+ *
62
+ * _.toNumber(Infinity);
63
+ * // => Infinity
64
+ *
65
+ * _.toNumber('3.2');
66
+ * // => 3.2
67
+ */
68
+ function toNumber(value) {
69
+ if (typeof value == 'number') {
70
+ return value;
71
+ }
72
+ if (isSymbol.isSymbol_1(value)) {
73
+ return NAN;
74
+ }
75
+ if (isSymbol.isObject_1(value)) {
76
+ var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
77
+ value = isSymbol.isObject_1(other) ? (other + '') : other;
78
+ }
79
+ if (typeof value != 'string') {
80
+ return value === 0 ? value : +value;
81
+ }
82
+ value = value.replace(reTrim, '');
83
+ var isBinary = reIsBinary.test(value);
84
+ return (isBinary || reIsOctal.test(value))
85
+ ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
86
+ : (reIsBadHex.test(value) ? NAN : +value);
87
+ }
88
+
89
+ var toNumber_1 = toNumber;
90
+
91
+ /** Error message constants. */
92
+ var FUNC_ERROR_TEXT = 'Expected a function';
93
+
94
+ /* Built-in method references for those with the same name as other `lodash` methods. */
95
+ var nativeMax = Math.max,
96
+ nativeMin = Math.min;
97
+
98
+ /**
99
+ * Creates a debounced function that delays invoking `func` until after `wait`
100
+ * milliseconds have elapsed since the last time the debounced function was
101
+ * invoked. The debounced function comes with a `cancel` method to cancel
102
+ * delayed `func` invocations and a `flush` method to immediately invoke them.
103
+ * Provide `options` to indicate whether `func` should be invoked on the
104
+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
105
+ * with the last arguments provided to the debounced function. Subsequent
106
+ * calls to the debounced function return the result of the last `func`
107
+ * invocation.
108
+ *
109
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
110
+ * invoked on the trailing edge of the timeout only if the debounced function
111
+ * is invoked more than once during the `wait` timeout.
112
+ *
113
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
114
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
115
+ *
116
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
117
+ * for details over the differences between `_.debounce` and `_.throttle`.
118
+ *
119
+ * @static
120
+ * @memberOf _
121
+ * @since 0.1.0
122
+ * @category Function
123
+ * @param {Function} func The function to debounce.
124
+ * @param {number} [wait=0] The number of milliseconds to delay.
125
+ * @param {Object} [options={}] The options object.
126
+ * @param {boolean} [options.leading=false]
127
+ * Specify invoking on the leading edge of the timeout.
128
+ * @param {number} [options.maxWait]
129
+ * The maximum time `func` is allowed to be delayed before it's invoked.
130
+ * @param {boolean} [options.trailing=true]
131
+ * Specify invoking on the trailing edge of the timeout.
132
+ * @returns {Function} Returns the new debounced function.
133
+ * @example
134
+ *
135
+ * // Avoid costly calculations while the window size is in flux.
136
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
137
+ *
138
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
139
+ * jQuery(element).on('click', _.debounce(sendMail, 300, {
140
+ * 'leading': true,
141
+ * 'trailing': false
142
+ * }));
143
+ *
144
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
145
+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
146
+ * var source = new EventSource('/stream');
147
+ * jQuery(source).on('message', debounced);
148
+ *
149
+ * // Cancel the trailing debounced invocation.
150
+ * jQuery(window).on('popstate', debounced.cancel);
151
+ */
152
+ function debounce(func, wait, options) {
153
+ var lastArgs,
154
+ lastThis,
155
+ maxWait,
156
+ result,
157
+ timerId,
158
+ lastCallTime,
159
+ lastInvokeTime = 0,
160
+ leading = false,
161
+ maxing = false,
162
+ trailing = true;
163
+
164
+ if (typeof func != 'function') {
165
+ throw new TypeError(FUNC_ERROR_TEXT);
166
+ }
167
+ wait = toNumber_1(wait) || 0;
168
+ if (isSymbol.isObject_1(options)) {
169
+ leading = !!options.leading;
170
+ maxing = 'maxWait' in options;
171
+ maxWait = maxing ? nativeMax(toNumber_1(options.maxWait) || 0, wait) : maxWait;
172
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
173
+ }
174
+
175
+ function invokeFunc(time) {
176
+ var args = lastArgs,
177
+ thisArg = lastThis;
178
+
179
+ lastArgs = lastThis = undefined;
180
+ lastInvokeTime = time;
181
+ result = func.apply(thisArg, args);
182
+ return result;
183
+ }
184
+
185
+ function leadingEdge(time) {
186
+ // Reset any `maxWait` timer.
187
+ lastInvokeTime = time;
188
+ // Start the timer for the trailing edge.
189
+ timerId = setTimeout(timerExpired, wait);
190
+ // Invoke the leading edge.
191
+ return leading ? invokeFunc(time) : result;
192
+ }
193
+
194
+ function remainingWait(time) {
195
+ var timeSinceLastCall = time - lastCallTime,
196
+ timeSinceLastInvoke = time - lastInvokeTime,
197
+ timeWaiting = wait - timeSinceLastCall;
198
+
199
+ return maxing
200
+ ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
201
+ : timeWaiting;
202
+ }
203
+
204
+ function shouldInvoke(time) {
205
+ var timeSinceLastCall = time - lastCallTime,
206
+ timeSinceLastInvoke = time - lastInvokeTime;
207
+
208
+ // Either this is the first call, activity has stopped and we're at the
209
+ // trailing edge, the system time has gone backwards and we're treating
210
+ // it as the trailing edge, or we've hit the `maxWait` limit.
211
+ return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
212
+ (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
213
+ }
214
+
215
+ function timerExpired() {
216
+ var time = now_1();
217
+ if (shouldInvoke(time)) {
218
+ return trailingEdge(time);
219
+ }
220
+ // Restart the timer.
221
+ timerId = setTimeout(timerExpired, remainingWait(time));
222
+ }
223
+
224
+ function trailingEdge(time) {
225
+ timerId = undefined;
226
+
227
+ // Only invoke if we have `lastArgs` which means `func` has been
228
+ // debounced at least once.
229
+ if (trailing && lastArgs) {
230
+ return invokeFunc(time);
231
+ }
232
+ lastArgs = lastThis = undefined;
233
+ return result;
234
+ }
235
+
236
+ function cancel() {
237
+ if (timerId !== undefined) {
238
+ clearTimeout(timerId);
239
+ }
240
+ lastInvokeTime = 0;
241
+ lastArgs = lastCallTime = lastThis = timerId = undefined;
242
+ }
243
+
244
+ function flush() {
245
+ return timerId === undefined ? result : trailingEdge(now_1());
246
+ }
247
+
248
+ function debounced() {
249
+ var time = now_1(),
250
+ isInvoking = shouldInvoke(time);
251
+
252
+ lastArgs = arguments;
253
+ lastThis = this;
254
+ lastCallTime = time;
255
+
256
+ if (isInvoking) {
257
+ if (timerId === undefined) {
258
+ return leadingEdge(lastCallTime);
259
+ }
260
+ if (maxing) {
261
+ // Handle invocations in a tight loop.
262
+ clearTimeout(timerId);
263
+ timerId = setTimeout(timerExpired, wait);
264
+ return invokeFunc(lastCallTime);
265
+ }
266
+ }
267
+ if (timerId === undefined) {
268
+ timerId = setTimeout(timerExpired, wait);
269
+ }
270
+ return result;
271
+ }
272
+ debounced.cancel = cancel;
273
+ debounced.flush = flush;
274
+ return debounced;
275
+ }
276
+
277
+ var debounce_1 = debounce;
278
+
279
+ exports.debounce_1 = debounce_1;
280
+ exports.toNumber_1 = toNumber_1;
@@ -2,8 +2,8 @@
2
2
 
3
3
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
4
  var _toObject = require('./_to-object-329a650b.js');
5
- var web_dom_iterable = require('./web.dom.iterable-5c889cf1.js');
6
- var _iterDetect = require('./_iter-detect-234453c3.js');
5
+ var core_getIteratorMethod = require('./core.get-iterator-method-41e87ec1.js');
6
+ var _iterDetect = require('./_iter-detect-4d0352f8.js');
7
7
 
8
8
  var _createProperty = function (object, index, value) {
9
9
  if (index in object) _toObject._objectDp.f(object, index, _toObject._propertyDesc(0, value));
@@ -19,7 +19,7 @@ _toObject._export(_toObject._export.S + _toObject._export.F * !_iterDetect._iter
19
19
  var mapfn = aLen > 1 ? arguments[1] : undefined;
20
20
  var mapping = mapfn !== undefined;
21
21
  var index = 0;
22
- var iterFn = web_dom_iterable.core_getIteratorMethod(O);
22
+ var iterFn = core_getIteratorMethod.core_getIteratorMethod(O);
23
23
  var length, result, step, iterator;
24
24
  if (mapping) mapfn = _toObject._ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
25
25
  // if object isn't iterable or it's array with default iterator - use simple case
@@ -46,30 +46,5 @@ module.exports = { "default": from_1, __esModule: true };
46
46
 
47
47
  var _Array$from = _commonjsHelpers.unwrapExports(from_1$1);
48
48
 
49
- var toConsumableArray = _commonjsHelpers.createCommonjsModule(function (module, exports) {
50
-
51
- exports.__esModule = true;
52
-
53
-
54
-
55
- var _from2 = _interopRequireDefault(from_1$1);
56
-
57
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
58
-
59
- exports.default = function (arr) {
60
- if (Array.isArray(arr)) {
61
- for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
62
- arr2[i] = arr[i];
63
- }
64
-
65
- return arr2;
66
- } else {
67
- return (0, _from2.default)(arr);
68
- }
69
- };
70
- });
71
-
72
- var _toConsumableArray = _commonjsHelpers.unwrapExports(toConsumableArray);
73
-
74
49
  exports._Array$from = _Array$from;
75
- exports._toConsumableArray = _toConsumableArray;
50
+ exports.from_1 = from_1$1;
@@ -1,33 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var debounce = require('./debounce-420ff8a8.js');
4
-
5
- /**
6
- * Checks if `value` is classified as an `Array` object.
7
- *
8
- * @static
9
- * @memberOf _
10
- * @since 0.1.0
11
- * @category Lang
12
- * @param {*} value The value to check.
13
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
14
- * @example
15
- *
16
- * _.isArray([1, 2, 3]);
17
- * // => true
18
- *
19
- * _.isArray(document.body.children);
20
- * // => false
21
- *
22
- * _.isArray('abc');
23
- * // => false
24
- *
25
- * _.isArray(_.noop);
26
- * // => false
27
- */
28
- var isArray = Array.isArray;
29
-
30
- var isArray_1 = isArray;
3
+ var isSymbol = require('./isSymbol-488934a7.js');
4
+ var _arrayMap = require('./_arrayMap-3b4a0f75.js');
31
5
 
32
6
  /** Used to match property names within property paths. */
33
7
  var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
@@ -42,12 +16,12 @@ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
42
16
  * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
43
17
  */
44
18
  function isKey(value, object) {
45
- if (isArray_1(value)) {
19
+ if (_arrayMap.isArray_1(value)) {
46
20
  return false;
47
21
  }
48
22
  var type = typeof value;
49
23
  if (type == 'number' || type == 'symbol' || type == 'boolean' ||
50
- value == null || debounce.isSymbol_1(value)) {
24
+ value == null || isSymbol.isSymbol_1(value)) {
51
25
  return true;
52
26
  }
53
27
  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
@@ -56,43 +30,8 @@ function isKey(value, object) {
56
30
 
57
31
  var _isKey = isKey;
58
32
 
59
- /** `Object#toString` result references. */
60
- var asyncTag = '[object AsyncFunction]',
61
- funcTag = '[object Function]',
62
- genTag = '[object GeneratorFunction]',
63
- proxyTag = '[object Proxy]';
64
-
65
- /**
66
- * Checks if `value` is classified as a `Function` object.
67
- *
68
- * @static
69
- * @memberOf _
70
- * @since 0.1.0
71
- * @category Lang
72
- * @param {*} value The value to check.
73
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
74
- * @example
75
- *
76
- * _.isFunction(_);
77
- * // => true
78
- *
79
- * _.isFunction(/abc/);
80
- * // => false
81
- */
82
- function isFunction(value) {
83
- if (!debounce.isObject_1(value)) {
84
- return false;
85
- }
86
- // The use of `Object#toString` avoids issues with the `typeof` operator
87
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
88
- var tag = debounce._baseGetTag(value);
89
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
90
- }
91
-
92
- var isFunction_1 = isFunction;
93
-
94
33
  /** Used to detect overreaching core-js shims. */
95
- var coreJsData = debounce._root['__core-js_shared__'];
34
+ var coreJsData = isSymbol._root['__core-js_shared__'];
96
35
 
97
36
  var _coreJsData = coreJsData;
98
37
 
@@ -176,10 +115,10 @@ var reIsNative = RegExp('^' +
176
115
  * else `false`.
177
116
  */
178
117
  function baseIsNative(value) {
179
- if (!debounce.isObject_1(value) || _isMasked(value)) {
118
+ if (!isSymbol.isObject_1(value) || _isMasked(value)) {
180
119
  return false;
181
120
  }
182
- var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
121
+ var pattern = _arrayMap.isFunction_1(value) ? reIsNative : reIsHostCtor;
183
122
  return pattern.test(_toSource(value));
184
123
  }
185
124
 
@@ -543,7 +482,7 @@ ListCache.prototype.set = _listCacheSet;
543
482
  var _ListCache = ListCache;
544
483
 
545
484
  /* Built-in method references that are verified to be native. */
546
- var Map = _getNative(debounce._root, 'Map');
485
+ var Map = _getNative(isSymbol._root, 'Map');
547
486
 
548
487
  var _Map = Map;
549
488
 
@@ -816,33 +755,11 @@ var stringToPath = _memoizeCapped(function(string) {
816
755
 
817
756
  var _stringToPath = stringToPath;
818
757
 
819
- /**
820
- * A specialized version of `_.map` for arrays without support for iteratee
821
- * shorthands.
822
- *
823
- * @private
824
- * @param {Array} [array] The array to iterate over.
825
- * @param {Function} iteratee The function invoked per iteration.
826
- * @returns {Array} Returns the new mapped array.
827
- */
828
- function arrayMap(array, iteratee) {
829
- var index = -1,
830
- length = array == null ? 0 : array.length,
831
- result = Array(length);
832
-
833
- while (++index < length) {
834
- result[index] = iteratee(array[index], index, array);
835
- }
836
- return result;
837
- }
838
-
839
- var _arrayMap = arrayMap;
840
-
841
758
  /** Used as references for various `Number` constants. */
842
759
  var INFINITY = 1 / 0;
843
760
 
844
761
  /** Used to convert symbols to primitives and strings. */
845
- var symbolProto = debounce._Symbol ? debounce._Symbol.prototype : undefined,
762
+ var symbolProto = isSymbol._Symbol ? isSymbol._Symbol.prototype : undefined,
846
763
  symbolToString = symbolProto ? symbolProto.toString : undefined;
847
764
 
848
765
  /**
@@ -858,11 +775,11 @@ function baseToString(value) {
858
775
  if (typeof value == 'string') {
859
776
  return value;
860
777
  }
861
- if (isArray_1(value)) {
778
+ if (_arrayMap.isArray_1(value)) {
862
779
  // Recursively convert values (susceptible to call stack limits).
863
- return _arrayMap(value, baseToString) + '';
780
+ return _arrayMap._arrayMap(value, baseToString) + '';
864
781
  }
865
- if (debounce.isSymbol_1(value)) {
782
+ if (isSymbol.isSymbol_1(value)) {
866
783
  return symbolToString ? symbolToString.call(value) : '';
867
784
  }
868
785
  var result = (value + '');
@@ -907,7 +824,7 @@ var toString_1 = toString;
907
824
  * @returns {Array} Returns the cast property path array.
908
825
  */
909
826
  function castPath(value, object) {
910
- if (isArray_1(value)) {
827
+ if (_arrayMap.isArray_1(value)) {
911
828
  return value;
912
829
  }
913
830
  return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
@@ -926,7 +843,7 @@ var INFINITY$1 = 1 / 0;
926
843
  * @returns {string|symbol} Returns the key.
927
844
  */
928
845
  function toKey(value) {
929
- if (typeof value == 'string' || debounce.isSymbol_1(value)) {
846
+ if (typeof value == 'string' || isSymbol.isSymbol_1(value)) {
930
847
  return value;
931
848
  }
932
849
  var result = (value + '');
@@ -989,7 +906,4 @@ function get(object, path, defaultValue) {
989
906
 
990
907
  var get_1 = get;
991
908
 
992
- exports._arrayMap = _arrayMap;
993
909
  exports.get_1 = get_1;
994
- exports.isArray_1 = isArray_1;
995
- exports.isFunction_1 = isFunction_1;
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+
3
+ var getKeywords = function getKeywords(article) {
4
+ var keywords = [];
5
+ var internalTag = article.internalTag,
6
+ userDefinedTag = article.userDefinedTag,
7
+ SponsorshipTag = article.SponsorshipTag;
8
+
9
+
10
+ if (internalTag) {
11
+ internalTag.map(function (item) {
12
+ keywords.push(item);
13
+ });
14
+ }
15
+
16
+ if (userDefinedTag) {
17
+ userDefinedTag.map(function (item) {
18
+ keywords.push(item);
19
+ });
20
+ }
21
+
22
+ if (SponsorshipTag) {
23
+ SponsorshipTag.map(function (item) {
24
+ keywords.push(item);
25
+ });
26
+ }
27
+
28
+ return keywords;
29
+ };
30
+
31
+ module.exports = getKeywords;
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ require('./_commonjsHelpers-06173234.js');
4
+ var moment = require('./moment-66a6a284.js');
5
+
6
+ var getQuery = function getQuery(type) {
7
+ var today = moment.moment().utc().format();
8
+ switch (type) {
9
+ case 'related':
10
+ return '*[\n _type == "article" \n && defined(title) \n && defined(url) \n && !(_id in path("drafts.**")) \n && is_visible == true \n && published <= \'' + today + '\' \n && passwordLock!=true \n && taxonomyMapping[]._ref in $taxonomy \n && contentCategory->.name != \'Poll\' \n && contentCategory->.name != \'Slideshows\' \n && url.current != $url \n && !defined(body[].videos)\n ]| order(published desc)[$index]{\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n }';
11
+ case 'article':
12
+ return '*[\n _type == "article" \n && !(_id in path("drafts.**")) \n && defined(title) \n && defined(url) \n && url.current == $url \n ][0]{\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n \n }';
13
+ case 'publication':
14
+ return '*[_type == \'publication\'\n && identifier.current == $publication][0] {\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n pdf{asset->}\n } | order(year desc, month desc)\n }';
15
+ case 'issue':
16
+ return '*[_type == \'publication\' \n && identifier.current == $publication][0] {\n ...,\n \'issue\': *[_type == \'publication\' \n && references(^._id)\n && identifier.current == $issue][0] {\n ...,\n \'articles\': *[_type == \'article\' \n && !(_id in path("drafts.**"))\n && defined(title) \n && is_visible \n && defined(url) \n && dateTime(published) <= dateTime($currentDate) \n && references(^._id)] {\n ...,\n authorMapping[0]->,\n contentCategory->,\n issueSection-> {\n name\n }\n }\n }\n }';
17
+ }
18
+ };
19
+
20
+ module.exports = getQuery;