@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
@@ -1,5 +1,5 @@
1
1
  import { c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
2
- import { z as _defined, A as _toInteger, k as _hide, e as _descriptors, n as _anObject, _ as _objectKeys, f as _objectDp, i as _global, B as _sharedKey, y as _domCreate, t as _enumBugKeys, x as _shared, p as _uid, q as _has, o as _propertyDesc, a as _toObject, l as _export, r as _cof, b as _core, u as _toIobject } from './_to-object-1b1f7766.js';
2
+ import { z as _defined, A as _toInteger, i as _hide, b as _descriptors, m as _anObject, n as _objectKeys, c as _objectDp, g as _global, B as _sharedKey, y as _domCreate, p as _enumBugKeys, v as _shared, w as _uid, t as _has, u as _propertyDesc, d as _toObject, j as _export, x as _cof, l as _core } from './_to-object-16fd8b46.js';
3
3
 
4
4
  // true -> String#at
5
5
  // false -> String#codePointAt
@@ -230,49 +230,4 @@ var core_getIteratorMethod = _core.getIteratorMethod = function (it) {
230
230
  || _iterators[_classof(it)];
231
231
  };
232
232
 
233
- var _iterStep = function (done, value) {
234
- return { value: value, done: !!done };
235
- };
236
-
237
- // 22.1.3.4 Array.prototype.entries()
238
- // 22.1.3.13 Array.prototype.keys()
239
- // 22.1.3.29 Array.prototype.values()
240
- // 22.1.3.30 Array.prototype[@@iterator]()
241
- var es6_array_iterator = _iterDefine(Array, 'Array', function (iterated, kind) {
242
- this._t = _toIobject(iterated); // target
243
- this._i = 0; // next index
244
- this._k = kind; // kind
245
- // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
246
- }, function () {
247
- var O = this._t;
248
- var kind = this._k;
249
- var index = this._i++;
250
- if (!O || index >= O.length) {
251
- this._t = undefined;
252
- return _iterStep(1);
253
- }
254
- if (kind == 'keys') return _iterStep(0, index);
255
- if (kind == 'values') return _iterStep(0, O[index]);
256
- return _iterStep(0, [index, O[index]]);
257
- }, 'values');
258
-
259
- // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
260
- _iterators.Arguments = _iterators.Array;
261
-
262
- var TO_STRING_TAG = _wks('toStringTag');
263
-
264
- var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
265
- 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
266
- 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
267
- 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
268
- 'TextTrackList,TouchList').split(',');
269
-
270
- for (var i = 0; i < DOMIterables.length; i++) {
271
- var NAME = DOMIterables[i];
272
- var Collection = _global[NAME];
273
- var proto = Collection && Collection.prototype;
274
- if (proto && !proto[TO_STRING_TAG]) _hide(proto, TO_STRING_TAG, NAME);
275
- _iterators[NAME] = _iterators.Array;
276
- }
277
-
278
- export { _objectCreate as _, _iterDefine as a, _iterStep as b, _wks as c, _setToStringTag as d, _classof as e, _objectGpo as f, core_getIteratorMethod as g, _iterators as h, _redefine as i, _html as j };
233
+ export { _objectCreate as _, _iterDefine as a, _wks as b, _setToStringTag as c, _classof as d, _objectGpo as e, _iterators as f, core_getIteratorMethod as g, _redefine as h, _html as i };
@@ -0,0 +1,277 @@
1
+ import { _ as _root, i as isSymbol_1, a as isObject_1 } from './isSymbol-c1b9be80.js';
2
+
3
+ /**
4
+ * Gets the timestamp of the number of milliseconds that have elapsed since
5
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
6
+ *
7
+ * @static
8
+ * @memberOf _
9
+ * @since 2.4.0
10
+ * @category Date
11
+ * @returns {number} Returns the timestamp.
12
+ * @example
13
+ *
14
+ * _.defer(function(stamp) {
15
+ * console.log(_.now() - stamp);
16
+ * }, _.now());
17
+ * // => Logs the number of milliseconds it took for the deferred invocation.
18
+ */
19
+ var now = function() {
20
+ return _root.Date.now();
21
+ };
22
+
23
+ var now_1 = now;
24
+
25
+ /** Used as references for various `Number` constants. */
26
+ var NAN = 0 / 0;
27
+
28
+ /** Used to match leading and trailing whitespace. */
29
+ var reTrim = /^\s+|\s+$/g;
30
+
31
+ /** Used to detect bad signed hexadecimal string values. */
32
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
33
+
34
+ /** Used to detect binary string values. */
35
+ var reIsBinary = /^0b[01]+$/i;
36
+
37
+ /** Used to detect octal string values. */
38
+ var reIsOctal = /^0o[0-7]+$/i;
39
+
40
+ /** Built-in method references without a dependency on `root`. */
41
+ var freeParseInt = parseInt;
42
+
43
+ /**
44
+ * Converts `value` to a number.
45
+ *
46
+ * @static
47
+ * @memberOf _
48
+ * @since 4.0.0
49
+ * @category Lang
50
+ * @param {*} value The value to process.
51
+ * @returns {number} Returns the number.
52
+ * @example
53
+ *
54
+ * _.toNumber(3.2);
55
+ * // => 3.2
56
+ *
57
+ * _.toNumber(Number.MIN_VALUE);
58
+ * // => 5e-324
59
+ *
60
+ * _.toNumber(Infinity);
61
+ * // => Infinity
62
+ *
63
+ * _.toNumber('3.2');
64
+ * // => 3.2
65
+ */
66
+ function toNumber(value) {
67
+ if (typeof value == 'number') {
68
+ return value;
69
+ }
70
+ if (isSymbol_1(value)) {
71
+ return NAN;
72
+ }
73
+ if (isObject_1(value)) {
74
+ var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
75
+ value = isObject_1(other) ? (other + '') : other;
76
+ }
77
+ if (typeof value != 'string') {
78
+ return value === 0 ? value : +value;
79
+ }
80
+ value = value.replace(reTrim, '');
81
+ var isBinary = reIsBinary.test(value);
82
+ return (isBinary || reIsOctal.test(value))
83
+ ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
84
+ : (reIsBadHex.test(value) ? NAN : +value);
85
+ }
86
+
87
+ var toNumber_1 = toNumber;
88
+
89
+ /** Error message constants. */
90
+ var FUNC_ERROR_TEXT = 'Expected a function';
91
+
92
+ /* Built-in method references for those with the same name as other `lodash` methods. */
93
+ var nativeMax = Math.max,
94
+ nativeMin = Math.min;
95
+
96
+ /**
97
+ * Creates a debounced function that delays invoking `func` until after `wait`
98
+ * milliseconds have elapsed since the last time the debounced function was
99
+ * invoked. The debounced function comes with a `cancel` method to cancel
100
+ * delayed `func` invocations and a `flush` method to immediately invoke them.
101
+ * Provide `options` to indicate whether `func` should be invoked on the
102
+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
103
+ * with the last arguments provided to the debounced function. Subsequent
104
+ * calls to the debounced function return the result of the last `func`
105
+ * invocation.
106
+ *
107
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
108
+ * invoked on the trailing edge of the timeout only if the debounced function
109
+ * is invoked more than once during the `wait` timeout.
110
+ *
111
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
112
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
113
+ *
114
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
115
+ * for details over the differences between `_.debounce` and `_.throttle`.
116
+ *
117
+ * @static
118
+ * @memberOf _
119
+ * @since 0.1.0
120
+ * @category Function
121
+ * @param {Function} func The function to debounce.
122
+ * @param {number} [wait=0] The number of milliseconds to delay.
123
+ * @param {Object} [options={}] The options object.
124
+ * @param {boolean} [options.leading=false]
125
+ * Specify invoking on the leading edge of the timeout.
126
+ * @param {number} [options.maxWait]
127
+ * The maximum time `func` is allowed to be delayed before it's invoked.
128
+ * @param {boolean} [options.trailing=true]
129
+ * Specify invoking on the trailing edge of the timeout.
130
+ * @returns {Function} Returns the new debounced function.
131
+ * @example
132
+ *
133
+ * // Avoid costly calculations while the window size is in flux.
134
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
135
+ *
136
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
137
+ * jQuery(element).on('click', _.debounce(sendMail, 300, {
138
+ * 'leading': true,
139
+ * 'trailing': false
140
+ * }));
141
+ *
142
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
143
+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
144
+ * var source = new EventSource('/stream');
145
+ * jQuery(source).on('message', debounced);
146
+ *
147
+ * // Cancel the trailing debounced invocation.
148
+ * jQuery(window).on('popstate', debounced.cancel);
149
+ */
150
+ function debounce(func, wait, options) {
151
+ var lastArgs,
152
+ lastThis,
153
+ maxWait,
154
+ result,
155
+ timerId,
156
+ lastCallTime,
157
+ lastInvokeTime = 0,
158
+ leading = false,
159
+ maxing = false,
160
+ trailing = true;
161
+
162
+ if (typeof func != 'function') {
163
+ throw new TypeError(FUNC_ERROR_TEXT);
164
+ }
165
+ wait = toNumber_1(wait) || 0;
166
+ if (isObject_1(options)) {
167
+ leading = !!options.leading;
168
+ maxing = 'maxWait' in options;
169
+ maxWait = maxing ? nativeMax(toNumber_1(options.maxWait) || 0, wait) : maxWait;
170
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
171
+ }
172
+
173
+ function invokeFunc(time) {
174
+ var args = lastArgs,
175
+ thisArg = lastThis;
176
+
177
+ lastArgs = lastThis = undefined;
178
+ lastInvokeTime = time;
179
+ result = func.apply(thisArg, args);
180
+ return result;
181
+ }
182
+
183
+ function leadingEdge(time) {
184
+ // Reset any `maxWait` timer.
185
+ lastInvokeTime = time;
186
+ // Start the timer for the trailing edge.
187
+ timerId = setTimeout(timerExpired, wait);
188
+ // Invoke the leading edge.
189
+ return leading ? invokeFunc(time) : result;
190
+ }
191
+
192
+ function remainingWait(time) {
193
+ var timeSinceLastCall = time - lastCallTime,
194
+ timeSinceLastInvoke = time - lastInvokeTime,
195
+ timeWaiting = wait - timeSinceLastCall;
196
+
197
+ return maxing
198
+ ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
199
+ : timeWaiting;
200
+ }
201
+
202
+ function shouldInvoke(time) {
203
+ var timeSinceLastCall = time - lastCallTime,
204
+ timeSinceLastInvoke = time - lastInvokeTime;
205
+
206
+ // Either this is the first call, activity has stopped and we're at the
207
+ // trailing edge, the system time has gone backwards and we're treating
208
+ // it as the trailing edge, or we've hit the `maxWait` limit.
209
+ return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
210
+ (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
211
+ }
212
+
213
+ function timerExpired() {
214
+ var time = now_1();
215
+ if (shouldInvoke(time)) {
216
+ return trailingEdge(time);
217
+ }
218
+ // Restart the timer.
219
+ timerId = setTimeout(timerExpired, remainingWait(time));
220
+ }
221
+
222
+ function trailingEdge(time) {
223
+ timerId = undefined;
224
+
225
+ // Only invoke if we have `lastArgs` which means `func` has been
226
+ // debounced at least once.
227
+ if (trailing && lastArgs) {
228
+ return invokeFunc(time);
229
+ }
230
+ lastArgs = lastThis = undefined;
231
+ return result;
232
+ }
233
+
234
+ function cancel() {
235
+ if (timerId !== undefined) {
236
+ clearTimeout(timerId);
237
+ }
238
+ lastInvokeTime = 0;
239
+ lastArgs = lastCallTime = lastThis = timerId = undefined;
240
+ }
241
+
242
+ function flush() {
243
+ return timerId === undefined ? result : trailingEdge(now_1());
244
+ }
245
+
246
+ function debounced() {
247
+ var time = now_1(),
248
+ isInvoking = shouldInvoke(time);
249
+
250
+ lastArgs = arguments;
251
+ lastThis = this;
252
+ lastCallTime = time;
253
+
254
+ if (isInvoking) {
255
+ if (timerId === undefined) {
256
+ return leadingEdge(lastCallTime);
257
+ }
258
+ if (maxing) {
259
+ // Handle invocations in a tight loop.
260
+ clearTimeout(timerId);
261
+ timerId = setTimeout(timerExpired, wait);
262
+ return invokeFunc(lastCallTime);
263
+ }
264
+ }
265
+ if (timerId === undefined) {
266
+ timerId = setTimeout(timerExpired, wait);
267
+ }
268
+ return result;
269
+ }
270
+ debounced.cancel = cancel;
271
+ debounced.flush = flush;
272
+ return debounced;
273
+ }
274
+
275
+ var debounce_1 = debounce;
276
+
277
+ export { debounce_1 as d, toNumber_1 as t };
@@ -1,5 +1,5 @@
1
1
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
- import { j as _fails, a as _toObject, g as _iobject, _ as _objectKeys, e as _descriptors, l as _export, b as _core } from './_to-object-1b1f7766.js';
2
+ import { h as _fails, d as _toObject, e as _iobject, n as _objectKeys, b as _descriptors, j as _export, l as _core } from './_to-object-16fd8b46.js';
3
3
  import { _ as _objectGops, a as _objectPie } from './_object-pie-33c40e79.js';
4
4
 
5
5
  // 19.1.2.1 Object.assign(target, source, ...)
@@ -1,7 +1,7 @@
1
1
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
- import { f as _objectDp, o as _propertyDesc, l as _export, a as _toObject, d as _ctx, h as _toLength, b as _core } from './_to-object-1b1f7766.js';
3
- import { g as core_getIteratorMethod } from './web.dom.iterable-e6bf2bf6.js';
4
- import { _ as _iterDetect, a as _isArrayIter, b as _iterCall } from './_iter-detect-7c281f0a.js';
2
+ import { c as _objectDp, u as _propertyDesc, j as _export, d as _toObject, a as _ctx, f as _toLength, l as _core } from './_to-object-16fd8b46.js';
3
+ import { g as core_getIteratorMethod } from './core.get-iterator-method-f5c0d66a.js';
4
+ import { _ as _iterDetect, a as _isArrayIter, b as _iterCall } from './_iter-detect-6e099a34.js';
5
5
 
6
6
  var _createProperty = function (object, index, value) {
7
7
  if (index in object) _objectDp.f(object, index, _propertyDesc(0, value));
@@ -44,29 +44,4 @@ module.exports = { "default": from_1, __esModule: true };
44
44
 
45
45
  var _Array$from = unwrapExports(from_1$1);
46
46
 
47
- var toConsumableArray = createCommonjsModule(function (module, exports) {
48
-
49
- exports.__esModule = true;
50
-
51
-
52
-
53
- var _from2 = _interopRequireDefault(from_1$1);
54
-
55
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
56
-
57
- exports.default = function (arr) {
58
- if (Array.isArray(arr)) {
59
- for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
60
- arr2[i] = arr[i];
61
- }
62
-
63
- return arr2;
64
- } else {
65
- return (0, _from2.default)(arr);
66
- }
67
- };
68
- });
69
-
70
- var _toConsumableArray = unwrapExports(toConsumableArray);
71
-
72
- export { _toConsumableArray as _, _Array$from as a };
47
+ export { _Array$from as _, from_1$1 as f };
@@ -1,31 +1,5 @@
1
- import { f as isSymbol_1, g as isObject_1, _ as _baseGetTag, b as _root, h as _Symbol } from './debounce-42a7f724.js';
2
-
3
- /**
4
- * Checks if `value` is classified as an `Array` object.
5
- *
6
- * @static
7
- * @memberOf _
8
- * @since 0.1.0
9
- * @category Lang
10
- * @param {*} value The value to check.
11
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
12
- * @example
13
- *
14
- * _.isArray([1, 2, 3]);
15
- * // => true
16
- *
17
- * _.isArray(document.body.children);
18
- * // => false
19
- *
20
- * _.isArray('abc');
21
- * // => false
22
- *
23
- * _.isArray(_.noop);
24
- * // => false
25
- */
26
- var isArray = Array.isArray;
27
-
28
- var isArray_1 = isArray;
1
+ import { i as isSymbol_1, _ as _root, a as isObject_1, b as _Symbol } from './isSymbol-c1b9be80.js';
2
+ import { i as isArray_1, a as isFunction_1, _ as _arrayMap } from './_arrayMap-a8dd2b2c.js';
29
3
 
30
4
  /** Used to match property names within property paths. */
31
5
  var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
@@ -54,41 +28,6 @@ function isKey(value, object) {
54
28
 
55
29
  var _isKey = isKey;
56
30
 
57
- /** `Object#toString` result references. */
58
- var asyncTag = '[object AsyncFunction]',
59
- funcTag = '[object Function]',
60
- genTag = '[object GeneratorFunction]',
61
- proxyTag = '[object Proxy]';
62
-
63
- /**
64
- * Checks if `value` is classified as a `Function` object.
65
- *
66
- * @static
67
- * @memberOf _
68
- * @since 0.1.0
69
- * @category Lang
70
- * @param {*} value The value to check.
71
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
72
- * @example
73
- *
74
- * _.isFunction(_);
75
- * // => true
76
- *
77
- * _.isFunction(/abc/);
78
- * // => false
79
- */
80
- function isFunction(value) {
81
- if (!isObject_1(value)) {
82
- return false;
83
- }
84
- // The use of `Object#toString` avoids issues with the `typeof` operator
85
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
86
- var tag = _baseGetTag(value);
87
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
88
- }
89
-
90
- var isFunction_1 = isFunction;
91
-
92
31
  /** Used to detect overreaching core-js shims. */
93
32
  var coreJsData = _root['__core-js_shared__'];
94
33
 
@@ -814,28 +753,6 @@ var stringToPath = _memoizeCapped(function(string) {
814
753
 
815
754
  var _stringToPath = stringToPath;
816
755
 
817
- /**
818
- * A specialized version of `_.map` for arrays without support for iteratee
819
- * shorthands.
820
- *
821
- * @private
822
- * @param {Array} [array] The array to iterate over.
823
- * @param {Function} iteratee The function invoked per iteration.
824
- * @returns {Array} Returns the new mapped array.
825
- */
826
- function arrayMap(array, iteratee) {
827
- var index = -1,
828
- length = array == null ? 0 : array.length,
829
- result = Array(length);
830
-
831
- while (++index < length) {
832
- result[index] = iteratee(array[index], index, array);
833
- }
834
- return result;
835
- }
836
-
837
- var _arrayMap = arrayMap;
838
-
839
756
  /** Used as references for various `Number` constants. */
840
757
  var INFINITY = 1 / 0;
841
758
 
@@ -987,4 +904,4 @@ function get(object, path, defaultValue) {
987
904
 
988
905
  var get_1 = get;
989
906
 
990
- export { _arrayMap as _, isArray_1 as a, get_1 as g, isFunction_1 as i };
907
+ export { get_1 as g };
@@ -0,0 +1,29 @@
1
+ var getKeywords = function getKeywords(article) {
2
+ var keywords = [];
3
+ var internalTag = article.internalTag,
4
+ userDefinedTag = article.userDefinedTag,
5
+ SponsorshipTag = article.SponsorshipTag;
6
+
7
+
8
+ if (internalTag) {
9
+ internalTag.map(function (item) {
10
+ keywords.push(item);
11
+ });
12
+ }
13
+
14
+ if (userDefinedTag) {
15
+ userDefinedTag.map(function (item) {
16
+ keywords.push(item);
17
+ });
18
+ }
19
+
20
+ if (SponsorshipTag) {
21
+ SponsorshipTag.map(function (item) {
22
+ keywords.push(item);
23
+ });
24
+ }
25
+
26
+ return keywords;
27
+ };
28
+
29
+ export default getKeywords;
@@ -0,0 +1,18 @@
1
+ import './_commonjsHelpers-0c4b6f40.js';
2
+ import { m as moment } from './moment-12415288.js';
3
+
4
+ var getQuery = function getQuery(type) {
5
+ var today = moment().utc().format();
6
+ switch (type) {
7
+ case 'related':
8
+ 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 }';
9
+ case 'article':
10
+ 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 }';
11
+ case 'publication':
12
+ 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 }';
13
+ case 'issue':
14
+ 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 }';
15
+ }
16
+ };
17
+
18
+ export default getQuery;