@quintype/arrow 3.15.1-perf.1 → 3.15.1-perf.4

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 (167) hide show
  1. package/atoms/Author/index.js +48 -2128
  2. package/atoms/Author/styles.arrow.css +1 -1
  3. package/atoms/AuthorWithTime/index.js +116 -2556
  4. package/atoms/AuthorWithTime/styles.arrow.css +1 -1
  5. package/atoms/CollectionName/index.js +48 -2127
  6. package/atoms/CollectionName/styles.arrow.css +1 -1
  7. package/atoms/ExtendedLoadMore/{index-6f8c780e.js → index-0f809dd9.js} +73 -62
  8. package/atoms/ExtendedLoadMore/index-142f015c.js +476 -0
  9. package/atoms/ExtendedLoadMore/{index-2d713010.js → index-37a9ccff.js} +63 -47
  10. package/atoms/ExtendedLoadMore/{index-8345922c.js → index-446679c8.js} +67 -51
  11. package/atoms/ExtendedLoadMore/{index-6daa674c.js → index-44f97338.js} +86 -68
  12. package/atoms/ExtendedLoadMore/{index-c8f346d0.js → index-57dd4870.js} +80 -64
  13. package/atoms/ExtendedLoadMore/{index-7eb05b3d.js → index-66dd4dbd.js} +70 -54
  14. package/atoms/ExtendedLoadMore/{index-6cb56d1a.js → index-8462c597.js} +93 -80
  15. package/atoms/ExtendedLoadMore/{index-aa8b8ab8.js → index-93cb06d1.js} +252 -226
  16. package/atoms/ExtendedLoadMore/index-afd44863.js +95 -0
  17. package/atoms/ExtendedLoadMore/{index-5a7900ba.js → index-b5754c5d.js} +67 -53
  18. package/atoms/ExtendedLoadMore/{index-4191a84c.js → index-bbaf526e.js} +78 -62
  19. package/atoms/ExtendedLoadMore/{index-99af722e.js → index-cfb262ef.js} +65 -48
  20. package/atoms/ExtendedLoadMore/index.js +20 -5
  21. package/atoms/ExtendedLoadMore/styles.arrow.css +1 -1
  22. package/atoms/Headline/index.js +95 -2175
  23. package/atoms/Headline/styles.arrow.css +1 -1
  24. package/atoms/HeroImage/index.js +91 -2230
  25. package/atoms/HeroImage/styles.arrow.css +1 -1
  26. package/atoms/LoadmoreButton/index.js +40 -2133
  27. package/atoms/LoadmoreButton/styles.arrow.css +1 -1
  28. package/atoms/ScrollSnap/index.js +89 -2241
  29. package/atoms/ScrollSnap/styles.arrow.css +1 -1
  30. package/atoms/SectionTag/index.js +40 -2120
  31. package/atoms/SectionTag/styles.arrow.css +1 -1
  32. package/atoms/Subheadline/index.js +35 -2115
  33. package/atoms/Subheadline/styles.arrow.css +1 -1
  34. package/atoms/TimeStamp/index.js +43 -2483
  35. package/atoms/TimeStamp/styles.arrow.css +1 -1
  36. package/molecules/KeyEvents/index.js +95 -2606
  37. package/molecules/KeyEvents/styles.arrow.css +1 -1
  38. package/molecules/PageIntroductionCard/index.js +59 -2487
  39. package/molecules/PageIntroductionCard/styles.arrow.css +1 -1
  40. package/molecules/SocialShareTemplate/index.js +213 -2800
  41. package/molecules/SocialShareTemplate/styles.arrow.css +1 -1
  42. package/molecules/StoryCard/index.js +308 -2816
  43. package/molecules/StoryCard/styles.arrow.css +1 -1
  44. package/molecules/StoryElementCard/index.js +611 -3352
  45. package/molecules/StoryElementCard/styles.arrow.css +1 -1
  46. package/molecules/StorycardContent/index.js +218 -2658
  47. package/molecules/StorycardContent/styles.arrow.css +1 -1
  48. package/package.json +1 -1
  49. package/rows/AlternateCollectionFilter/index.js +438 -2993
  50. package/rows/AlternateCollectionFilter/styles.arrow.css +1 -1
  51. package/rows/AsideCollection/index.js +432 -2987
  52. package/rows/AsideCollection/styles.arrow.css +1 -1
  53. package/rows/AstrologyCollection/index.js +411 -2966
  54. package/rows/AstrologyCollection/styles.arrow.css +1 -1
  55. package/rows/AuthorIntroductionCard/index.js +183 -2890
  56. package/rows/AuthorIntroductionCard/styles.arrow.css +1 -1
  57. package/rows/AuthorsList/index.js +217 -2936
  58. package/rows/AuthorsList/styles.arrow.css +1 -1
  59. package/rows/CollectionFilter/index.js +453 -3008
  60. package/rows/CollectionFilter/styles.arrow.css +1 -1
  61. package/rows/ElevenStories/index.js +439 -2959
  62. package/rows/ElevenStories/styles.arrow.css +1 -1
  63. package/rows/FourColFiveStories/index.js +374 -2872
  64. package/rows/FourColFiveStories/styles.arrow.css +1 -1
  65. package/rows/FourColGrid/index.js +426 -2927
  66. package/rows/FourColGrid/styles.arrow.css +1 -1
  67. package/rows/FourColPortraitStories/index.js +430 -2931
  68. package/rows/FourColPortraitStories/styles.arrow.css +1 -1
  69. package/rows/FourColSixteenStories/index.js +368 -2894
  70. package/rows/FourColSixteenStories/styles.arrow.css +1 -1
  71. package/rows/FourColTwelveStories/index.js +387 -2900
  72. package/rows/FourColTwelveStories/styles.arrow.css +1 -1
  73. package/rows/FourStorySlider/index.js +443 -2963
  74. package/rows/FourStorySlider/styles.arrow.css +1 -1
  75. package/rows/FourStorySliderPortrait/index.js +444 -2964
  76. package/rows/FourStorySliderPortrait/styles.arrow.css +1 -1
  77. package/rows/FourTabbedBigStorySlider/index.js +403 -2923
  78. package/rows/FourTabbedBigStorySlider/styles.arrow.css +1 -1
  79. package/rows/FullScreenSlider/index.js +422 -2942
  80. package/rows/FullScreenSlider/styles.arrow.css +1 -1
  81. package/rows/HalfScreenSlider/index.js +390 -2910
  82. package/rows/HalfScreenSlider/styles.arrow.css +1 -1
  83. package/rows/ListComponent/index.js +398 -2918
  84. package/rows/ListComponent/styles.arrow.css +1 -1
  85. package/rows/Listicles/index.js +189 -2375
  86. package/rows/Listicles/styles.arrow.css +1 -1
  87. package/rows/MagazineEditions/index.js +128 -2580
  88. package/rows/MagazineEditions/styles.arrow.css +1 -1
  89. package/rows/MagazineHeaderCard/index.js +125 -2577
  90. package/rows/MagazineHeaderCard/styles.arrow.css +1 -1
  91. package/rows/MagazineWidget/index.js +408 -2928
  92. package/rows/MagazineWidget/styles.arrow.css +1 -1
  93. package/rows/OneColStoryList/index.js +439 -2940
  94. package/rows/OneColStoryList/styles.arrow.css +1 -1
  95. package/rows/OpinionCollection/index.js +308 -2800
  96. package/rows/OpinionCollection/styles.arrow.css +1 -1
  97. package/rows/SixColSixStories/index.js +405 -2906
  98. package/rows/SixColSixStories/styles.arrow.css +1 -1
  99. package/rows/StoryCollection/index.js +432 -2987
  100. package/rows/StoryCollection/styles.arrow.css +1 -1
  101. package/rows/TagIntroductionCard/index.js +35 -1833
  102. package/rows/TagIntroductionCard/styles.arrow.css +1 -1
  103. package/rows/ThreeColFlexStories/index.js +421 -2922
  104. package/rows/ThreeColFlexStories/styles.arrow.css +1 -1
  105. package/rows/ThreeColFourteenStories/index.js +358 -2871
  106. package/rows/ThreeColFourteenStories/styles.arrow.css +1 -1
  107. package/rows/ThreeColGrid/index.js +428 -2929
  108. package/rows/ThreeColGrid/styles.arrow.css +1 -1
  109. package/rows/ThreeColSevenStory/index.js +406 -2926
  110. package/rows/ThreeColSevenStory/styles.arrow.css +1 -1
  111. package/rows/ThreeColSixStories/index.js +400 -2920
  112. package/rows/ThreeColSixStories/styles.arrow.css +1 -1
  113. package/rows/ThreeColTwelveStories/index.js +383 -2909
  114. package/rows/ThreeColTwelveStories/styles.arrow.css +1 -1
  115. package/rows/TwoColFourStories/index.js +395 -2915
  116. package/rows/TwoColFourStories/styles.arrow.css +1 -1
  117. package/rows/TwoColFourStoryHighlight/index.js +398 -2924
  118. package/rows/TwoColFourStoryHighlight/styles.arrow.css +1 -1
  119. package/rows/TwoColSevenStories/index.js +400 -2920
  120. package/rows/TwoColSevenStories/styles.arrow.css +1 -1
  121. package/rows/TwoColSixStories/index.js +398 -2924
  122. package/rows/TwoColSixStories/styles.arrow.css +1 -1
  123. package/rows/TwoColTenStoriesSidebar/index.js +418 -2938
  124. package/rows/TwoColTenStoriesSidebar/styles.arrow.css +1 -1
  125. package/rows/TwoColThreeStories/index.js +392 -2912
  126. package/rows/TwoColThreeStories/styles.arrow.css +1 -1
  127. package/story-elements/AlsoRead/index.js +92 -2229
  128. package/story-elements/AlsoRead/styles.arrow.css +1 -1
  129. package/story-elements/Attachment/index.js +53 -1899
  130. package/story-elements/Attachment/styles.arrow.css +1 -1
  131. package/story-elements/BigFact/index.js +49 -1895
  132. package/story-elements/BigFact/styles.arrow.css +1 -1
  133. package/story-elements/BlockQuote/index.js +79 -2206
  134. package/story-elements/BlockQuote/styles.arrow.css +1 -1
  135. package/story-elements/Blurb/index.js +52 -1957
  136. package/story-elements/Blurb/styles.arrow.css +1 -1
  137. package/story-elements/Image/index.js +147 -2329
  138. package/story-elements/Image/styles.arrow.css +1 -1
  139. package/story-elements/ImageGallery/index.js +135 -2317
  140. package/story-elements/ImageGallery/styles.arrow.css +1 -1
  141. package/story-elements/ImageSlideshow/index.js +173 -2355
  142. package/story-elements/ImageSlideshow/styles.arrow.css +1 -1
  143. package/story-elements/QuestionAnswer/index.js +79 -2207
  144. package/story-elements/QuestionAnswer/styles.arrow.css +1 -1
  145. package/story-elements/Quote/index.js +52 -1898
  146. package/story-elements/Quote/styles.arrow.css +1 -1
  147. package/story-elements/Reference/index.js +53 -1899
  148. package/story-elements/Reference/styles.arrow.css +1 -1
  149. package/story-elements/StoryElement/index.js +34 -1738
  150. package/story-elements/Summary/index.js +56 -1902
  151. package/story-elements/Summary/styles.arrow.css +1 -1
  152. package/story-elements/Text/index.js +48 -2176
  153. package/story-elements/Text/styles.arrow.css +1 -1
  154. package/story-elements/Video/index.js +35 -1739
  155. package/story-elements/Video/styles.arrow.css +1 -1
  156. package/story-templates/ListicleStoryTemplate/index.js +1182 -4038
  157. package/story-templates/ListicleStoryTemplate/styles.arrow.css +1 -1
  158. package/story-templates/LiveBlogStoryTemplate/index.js +1377 -4233
  159. package/story-templates/LiveBlogStoryTemplate/styles.arrow.css +1 -1
  160. package/story-templates/PhotoStoryTemplate/index.js +1162 -4018
  161. package/story-templates/PhotoStoryTemplate/styles.arrow.css +1 -1
  162. package/story-templates/TextStoryTemplate/index.js +1277 -4133
  163. package/story-templates/TextStoryTemplate/styles.arrow.css +1 -1
  164. package/story-templates/VideoStoryTemplate/index.js +1231 -4087
  165. package/story-templates/VideoStoryTemplate/styles.arrow.css +1 -1
  166. package/atoms/ExtendedLoadMore/index-e39b3ca8.js +0 -3023
  167. package/atoms/ExtendedLoadMore/index-f6e578e3.js +0 -86
@@ -1,2589 +1,32 @@
1
- import PropTypes, { PropTypes as PropTypes$1 } from 'prop-types';
2
- import React, { useContext, createContext, useState, useEffect } from 'react';
3
- import Timeago from 'react-timeago';
4
- import { utcToZonedTime, format } from 'date-fns-tz';
5
- import { Link, ResponsiveImage, ResponsiveHeroImage, LinkBase } from '@quintype/components';
6
- import { connect, useSelector } from 'react-redux';
7
-
8
- function _defineProperty(obj, key, value) {
9
- if (key in obj) {
10
- Object.defineProperty(obj, key, {
11
- value: value,
12
- enumerable: true,
13
- configurable: true,
14
- writable: true
15
- });
16
- } else {
17
- obj[key] = value;
18
- }
19
-
20
- return obj;
21
- }
22
-
23
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
24
- try {
25
- var info = gen[key](arg);
26
- var value = info.value;
27
- } catch (error) {
28
- reject(error);
29
- return;
30
- }
31
-
32
- if (info.done) {
33
- resolve(value);
34
- } else {
35
- Promise.resolve(value).then(_next, _throw);
36
- }
37
- }
38
-
39
- function _asyncToGenerator(fn) {
40
- return function () {
41
- var self = this,
42
- args = arguments;
43
- return new Promise(function (resolve, reject) {
44
- var gen = fn.apply(self, args);
45
-
46
- function _next(value) {
47
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
48
- }
49
-
50
- function _throw(err) {
51
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
52
- }
53
-
54
- _next(undefined);
55
- });
56
- };
57
- }
58
-
59
- function _arrayWithHoles(arr) {
60
- if (Array.isArray(arr)) return arr;
61
- }
62
-
63
- function _iterableToArrayLimit(arr, i) {
64
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
65
-
66
- if (_i == null) return;
67
- var _arr = [];
68
- var _n = true;
69
- var _d = false;
70
-
71
- var _s, _e;
72
-
73
- try {
74
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
75
- _arr.push(_s.value);
76
-
77
- if (i && _arr.length === i) break;
78
- }
79
- } catch (err) {
80
- _d = true;
81
- _e = err;
82
- } finally {
83
- try {
84
- if (!_n && _i["return"] != null) _i["return"]();
85
- } finally {
86
- if (_d) throw _e;
87
- }
88
- }
89
-
90
- return _arr;
91
- }
92
-
93
- function _arrayLikeToArray(arr, len) {
94
- if (len == null || len > arr.length) len = arr.length;
95
-
96
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
97
- arr2[i] = arr[i];
98
- }
99
-
100
- return arr2;
101
- }
102
-
103
- function _unsupportedIterableToArray(o, minLen) {
104
- if (!o) return;
105
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
106
- var n = Object.prototype.toString.call(o).slice(8, -1);
107
- if (n === "Object" && o.constructor) n = o.constructor.name;
108
- if (n === "Map" || n === "Set") return Array.from(o);
109
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
110
- }
111
-
112
- function _nonIterableRest() {
113
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
114
- }
115
-
116
- function _slicedToArray(arr, i) {
117
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
118
- }
119
-
120
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
121
-
122
- function getDefaultExportFromCjs (x) {
123
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
124
- }
125
-
126
- function createCommonjsModule(fn) {
127
- var module = { exports: {} };
128
- return fn(module, module.exports), module.exports;
129
- }
130
-
131
- var optionsDefaults_1 = createCommonjsModule(function (module, exports) {
132
-
133
- Object.defineProperty(exports, "__esModule", {
134
- value: true
135
- });
136
- exports["default"] = void 0;
137
- var optionsDefaults = {
138
- attributeNames: {
139
- styleName: 'className'
140
- },
141
- generateScopedName: '[path]___[name]__[local]___[hash:base64:5]',
142
- handleMissingStyleName: 'throw'
143
- };
144
- var _default = optionsDefaults;
145
- exports["default"] = _default;
146
-
147
-
148
- });
149
-
150
- var getClassName = createCommonjsModule(function (module, exports) {
151
-
152
- Object.defineProperty(exports, "__esModule", {
153
- value: true
154
- });
155
- exports["default"] = void 0;
156
-
157
- var _optionsDefaults = _interopRequireDefault(optionsDefaults_1);
158
-
159
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
160
-
161
- var isNamespacedStyleName = function isNamespacedStyleName(styleName) {
162
- return styleName.indexOf('.') !== -1;
163
- };
164
-
165
- var handleError = function handleError(message, handleMissingStyleName) {
166
- if (handleMissingStyleName === 'throw') {
167
- throw new Error(message);
168
- } else if (handleMissingStyleName === 'warn') {
169
- // eslint-disable-next-line no-console
170
- console.warn(message);
171
- }
172
-
173
- return null;
174
- };
175
-
176
- var getClassNameForNamespacedStyleName = function getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
177
- // Note:
178
- // Do not use the desctructing syntax with Babel.
179
- // Desctructing adds _slicedToArray helper.
180
- var styleNameParts = styleName.split('.');
181
- var importName = styleNameParts[0];
182
- var moduleName = styleNameParts[1];
183
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
184
-
185
- if (!moduleName) {
186
- return handleError('Invalid style name: ' + styleName, handleMissingStyleName);
187
- }
188
-
189
- if (!styleModuleImportMap[importName]) {
190
- return handleError('CSS module import does not exist: ' + importName, handleMissingStyleName);
191
- }
192
-
193
- if (!styleModuleImportMap[importName][moduleName]) {
194
- return handleError('CSS module does not exist: ' + moduleName, handleMissingStyleName);
195
- }
196
-
197
- return styleModuleImportMap[importName][moduleName];
198
- };
199
-
200
- var getClassNameFromMultipleImports = function getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
201
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
202
- var importKeysWithMatches = Object.keys(styleModuleImportMap).map(function (importKey) {
203
- return styleModuleImportMap[importKey][styleName] && importKey;
204
- }).filter(function (importKey) {
205
- return importKey;
206
- });
207
-
208
- if (importKeysWithMatches.length > 1) {
209
- throw new Error('Cannot resolve styleName "' + styleName + '" because it is present in multiple imports:' + '\n\n\t' + importKeysWithMatches.join('\n\t') + '\n\nYou can resolve this by using a named import, e.g:' + '\n\n\timport foo from "' + importKeysWithMatches[0] + '";' + '\n\t<div styleName="foo.' + styleName + '" />' + '\n\n');
210
- }
211
-
212
- if (importKeysWithMatches.length === 0) {
213
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
214
- }
215
-
216
- return styleModuleImportMap[importKeysWithMatches[0]][styleName];
217
- };
218
-
219
- var _default = function _default(styleNameValue, styleModuleImportMap, options) {
220
- var styleModuleImportMapKeys = Object.keys(styleModuleImportMap);
221
-
222
- var _ref = options || {},
223
- _ref$handleMissingSty = _ref.handleMissingStyleName,
224
- handleMissingStyleName = _ref$handleMissingSty === void 0 ? _optionsDefaults["default"].handleMissingStyleName : _ref$handleMissingSty,
225
- _ref$autoResolveMulti = _ref.autoResolveMultipleImports,
226
- autoResolveMultipleImports = _ref$autoResolveMulti === void 0 ? _optionsDefaults["default"].autoResolveMultipleImports : _ref$autoResolveMulti;
227
-
228
- if (!styleNameValue) {
229
- return '';
230
- }
231
-
232
- return styleNameValue.split(' ').filter(function (styleName) {
233
- return styleName;
234
- }).map(function (styleName) {
235
- if (isNamespacedStyleName(styleName)) {
236
- return getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleName);
237
- }
238
-
239
- if (styleModuleImportMapKeys.length === 0) {
240
- throw new Error('Cannot use styleName attribute for style name \'' + styleName + '\' without importing at least one stylesheet.');
241
- }
242
-
243
- if (styleModuleImportMapKeys.length > 1) {
244
- if (!autoResolveMultipleImports) {
245
- throw new Error('Cannot use anonymous style name \'' + styleName + '\' with more than one stylesheet import without setting \'autoResolveMultipleImports\' to true.');
246
- }
247
-
248
- return getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleName);
249
- }
250
-
251
- var styleModuleMap = styleModuleImportMap[styleModuleImportMapKeys[0]];
252
-
253
- if (!styleModuleMap[styleName]) {
254
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
255
- }
256
-
257
- return styleModuleMap[styleName];
258
- }).filter(function (className) {
259
- // Remove any styles which could not be found (if handleMissingStyleName === 'ignore')
260
- return className;
261
- }).join(' ');
262
- };
263
-
264
- exports["default"] = _default;
265
-
266
-
267
- });
268
-
269
- var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
270
-
271
- /**
272
- * Copyright (c) 2014-present, Facebook, Inc.
273
- *
274
- * This source code is licensed under the MIT license found in the
275
- * LICENSE file in the root directory of this source tree.
276
- */
277
-
278
- var runtime_1 = createCommonjsModule(function (module) {
279
- var runtime = (function (exports) {
280
-
281
- var Op = Object.prototype;
282
- var hasOwn = Op.hasOwnProperty;
283
- var undefined$1; // More compressible than void 0.
284
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
285
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
286
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
287
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
288
-
289
- function define(obj, key, value) {
290
- Object.defineProperty(obj, key, {
291
- value: value,
292
- enumerable: true,
293
- configurable: true,
294
- writable: true
295
- });
296
- return obj[key];
297
- }
298
- try {
299
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
300
- define({}, "");
301
- } catch (err) {
302
- define = function(obj, key, value) {
303
- return obj[key] = value;
304
- };
305
- }
306
-
307
- function wrap(innerFn, outerFn, self, tryLocsList) {
308
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
309
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
310
- var generator = Object.create(protoGenerator.prototype);
311
- var context = new Context(tryLocsList || []);
312
-
313
- // The ._invoke method unifies the implementations of the .next,
314
- // .throw, and .return methods.
315
- generator._invoke = makeInvokeMethod(innerFn, self, context);
316
-
317
- return generator;
318
- }
319
- exports.wrap = wrap;
320
-
321
- // Try/catch helper to minimize deoptimizations. Returns a completion
322
- // record like context.tryEntries[i].completion. This interface could
323
- // have been (and was previously) designed to take a closure to be
324
- // invoked without arguments, but in all the cases we care about we
325
- // already have an existing method we want to call, so there's no need
326
- // to create a new function object. We can even get away with assuming
327
- // the method takes exactly one argument, since that happens to be true
328
- // in every case, so we don't have to touch the arguments object. The
329
- // only additional allocation required is the completion record, which
330
- // has a stable shape and so hopefully should be cheap to allocate.
331
- function tryCatch(fn, obj, arg) {
332
- try {
333
- return { type: "normal", arg: fn.call(obj, arg) };
334
- } catch (err) {
335
- return { type: "throw", arg: err };
336
- }
337
- }
338
-
339
- var GenStateSuspendedStart = "suspendedStart";
340
- var GenStateSuspendedYield = "suspendedYield";
341
- var GenStateExecuting = "executing";
342
- var GenStateCompleted = "completed";
343
-
344
- // Returning this object from the innerFn has the same effect as
345
- // breaking out of the dispatch switch statement.
346
- var ContinueSentinel = {};
347
-
348
- // Dummy constructor functions that we use as the .constructor and
349
- // .constructor.prototype properties for functions that return Generator
350
- // objects. For full spec compliance, you may wish to configure your
351
- // minifier not to mangle the names of these two functions.
352
- function Generator() {}
353
- function GeneratorFunction() {}
354
- function GeneratorFunctionPrototype() {}
355
-
356
- // This is a polyfill for %IteratorPrototype% for environments that
357
- // don't natively support it.
358
- var IteratorPrototype = {};
359
- define(IteratorPrototype, iteratorSymbol, function () {
360
- return this;
361
- });
362
-
363
- var getProto = Object.getPrototypeOf;
364
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
365
- if (NativeIteratorPrototype &&
366
- NativeIteratorPrototype !== Op &&
367
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
368
- // This environment has a native %IteratorPrototype%; use it instead
369
- // of the polyfill.
370
- IteratorPrototype = NativeIteratorPrototype;
371
- }
372
-
373
- var Gp = GeneratorFunctionPrototype.prototype =
374
- Generator.prototype = Object.create(IteratorPrototype);
375
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
376
- define(Gp, "constructor", GeneratorFunctionPrototype);
377
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
378
- GeneratorFunction.displayName = define(
379
- GeneratorFunctionPrototype,
380
- toStringTagSymbol,
381
- "GeneratorFunction"
382
- );
383
-
384
- // Helper for defining the .next, .throw, and .return methods of the
385
- // Iterator interface in terms of a single ._invoke method.
386
- function defineIteratorMethods(prototype) {
387
- ["next", "throw", "return"].forEach(function(method) {
388
- define(prototype, method, function(arg) {
389
- return this._invoke(method, arg);
390
- });
391
- });
392
- }
393
-
394
- exports.isGeneratorFunction = function(genFun) {
395
- var ctor = typeof genFun === "function" && genFun.constructor;
396
- return ctor
397
- ? ctor === GeneratorFunction ||
398
- // For the native GeneratorFunction constructor, the best we can
399
- // do is to check its .name property.
400
- (ctor.displayName || ctor.name) === "GeneratorFunction"
401
- : false;
402
- };
403
-
404
- exports.mark = function(genFun) {
405
- if (Object.setPrototypeOf) {
406
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
407
- } else {
408
- genFun.__proto__ = GeneratorFunctionPrototype;
409
- define(genFun, toStringTagSymbol, "GeneratorFunction");
410
- }
411
- genFun.prototype = Object.create(Gp);
412
- return genFun;
413
- };
414
-
415
- // Within the body of any async function, `await x` is transformed to
416
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
417
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
418
- // meant to be awaited.
419
- exports.awrap = function(arg) {
420
- return { __await: arg };
421
- };
422
-
423
- function AsyncIterator(generator, PromiseImpl) {
424
- function invoke(method, arg, resolve, reject) {
425
- var record = tryCatch(generator[method], generator, arg);
426
- if (record.type === "throw") {
427
- reject(record.arg);
428
- } else {
429
- var result = record.arg;
430
- var value = result.value;
431
- if (value &&
432
- typeof value === "object" &&
433
- hasOwn.call(value, "__await")) {
434
- return PromiseImpl.resolve(value.__await).then(function(value) {
435
- invoke("next", value, resolve, reject);
436
- }, function(err) {
437
- invoke("throw", err, resolve, reject);
438
- });
439
- }
440
-
441
- return PromiseImpl.resolve(value).then(function(unwrapped) {
442
- // When a yielded Promise is resolved, its final value becomes
443
- // the .value of the Promise<{value,done}> result for the
444
- // current iteration.
445
- result.value = unwrapped;
446
- resolve(result);
447
- }, function(error) {
448
- // If a rejected Promise was yielded, throw the rejection back
449
- // into the async generator function so it can be handled there.
450
- return invoke("throw", error, resolve, reject);
451
- });
452
- }
453
- }
454
-
455
- var previousPromise;
456
-
457
- function enqueue(method, arg) {
458
- function callInvokeWithMethodAndArg() {
459
- return new PromiseImpl(function(resolve, reject) {
460
- invoke(method, arg, resolve, reject);
461
- });
462
- }
463
-
464
- return previousPromise =
465
- // If enqueue has been called before, then we want to wait until
466
- // all previous Promises have been resolved before calling invoke,
467
- // so that results are always delivered in the correct order. If
468
- // enqueue has not been called before, then it is important to
469
- // call invoke immediately, without waiting on a callback to fire,
470
- // so that the async generator function has the opportunity to do
471
- // any necessary setup in a predictable way. This predictability
472
- // is why the Promise constructor synchronously invokes its
473
- // executor callback, and why async functions synchronously
474
- // execute code before the first await. Since we implement simple
475
- // async functions in terms of async generators, it is especially
476
- // important to get this right, even though it requires care.
477
- previousPromise ? previousPromise.then(
478
- callInvokeWithMethodAndArg,
479
- // Avoid propagating failures to Promises returned by later
480
- // invocations of the iterator.
481
- callInvokeWithMethodAndArg
482
- ) : callInvokeWithMethodAndArg();
483
- }
484
-
485
- // Define the unified helper method that is used to implement .next,
486
- // .throw, and .return (see defineIteratorMethods).
487
- this._invoke = enqueue;
488
- }
489
-
490
- defineIteratorMethods(AsyncIterator.prototype);
491
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
492
- return this;
493
- });
494
- exports.AsyncIterator = AsyncIterator;
495
-
496
- // Note that simple async functions are implemented on top of
497
- // AsyncIterator objects; they just return a Promise for the value of
498
- // the final result produced by the iterator.
499
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
500
- if (PromiseImpl === void 0) PromiseImpl = Promise;
501
-
502
- var iter = new AsyncIterator(
503
- wrap(innerFn, outerFn, self, tryLocsList),
504
- PromiseImpl
505
- );
506
-
507
- return exports.isGeneratorFunction(outerFn)
508
- ? iter // If outerFn is a generator, return the full iterator.
509
- : iter.next().then(function(result) {
510
- return result.done ? result.value : iter.next();
511
- });
512
- };
513
-
514
- function makeInvokeMethod(innerFn, self, context) {
515
- var state = GenStateSuspendedStart;
516
-
517
- return function invoke(method, arg) {
518
- if (state === GenStateExecuting) {
519
- throw new Error("Generator is already running");
520
- }
521
-
522
- if (state === GenStateCompleted) {
523
- if (method === "throw") {
524
- throw arg;
525
- }
526
-
527
- // Be forgiving, per 25.3.3.3.3 of the spec:
528
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
529
- return doneResult();
530
- }
531
-
532
- context.method = method;
533
- context.arg = arg;
534
-
535
- while (true) {
536
- var delegate = context.delegate;
537
- if (delegate) {
538
- var delegateResult = maybeInvokeDelegate(delegate, context);
539
- if (delegateResult) {
540
- if (delegateResult === ContinueSentinel) continue;
541
- return delegateResult;
542
- }
543
- }
544
-
545
- if (context.method === "next") {
546
- // Setting context._sent for legacy support of Babel's
547
- // function.sent implementation.
548
- context.sent = context._sent = context.arg;
549
-
550
- } else if (context.method === "throw") {
551
- if (state === GenStateSuspendedStart) {
552
- state = GenStateCompleted;
553
- throw context.arg;
554
- }
555
-
556
- context.dispatchException(context.arg);
557
-
558
- } else if (context.method === "return") {
559
- context.abrupt("return", context.arg);
560
- }
561
-
562
- state = GenStateExecuting;
563
-
564
- var record = tryCatch(innerFn, self, context);
565
- if (record.type === "normal") {
566
- // If an exception is thrown from innerFn, we leave state ===
567
- // GenStateExecuting and loop back for another invocation.
568
- state = context.done
569
- ? GenStateCompleted
570
- : GenStateSuspendedYield;
571
-
572
- if (record.arg === ContinueSentinel) {
573
- continue;
574
- }
575
-
576
- return {
577
- value: record.arg,
578
- done: context.done
579
- };
580
-
581
- } else if (record.type === "throw") {
582
- state = GenStateCompleted;
583
- // Dispatch the exception by looping back around to the
584
- // context.dispatchException(context.arg) call above.
585
- context.method = "throw";
586
- context.arg = record.arg;
587
- }
588
- }
589
- };
590
- }
591
-
592
- // Call delegate.iterator[context.method](context.arg) and handle the
593
- // result, either by returning a { value, done } result from the
594
- // delegate iterator, or by modifying context.method and context.arg,
595
- // setting context.delegate to null, and returning the ContinueSentinel.
596
- function maybeInvokeDelegate(delegate, context) {
597
- var method = delegate.iterator[context.method];
598
- if (method === undefined$1) {
599
- // A .throw or .return when the delegate iterator has no .throw
600
- // method always terminates the yield* loop.
601
- context.delegate = null;
602
-
603
- if (context.method === "throw") {
604
- // Note: ["return"] must be used for ES3 parsing compatibility.
605
- if (delegate.iterator["return"]) {
606
- // If the delegate iterator has a return method, give it a
607
- // chance to clean up.
608
- context.method = "return";
609
- context.arg = undefined$1;
610
- maybeInvokeDelegate(delegate, context);
611
-
612
- if (context.method === "throw") {
613
- // If maybeInvokeDelegate(context) changed context.method from
614
- // "return" to "throw", let that override the TypeError below.
615
- return ContinueSentinel;
616
- }
617
- }
618
-
619
- context.method = "throw";
620
- context.arg = new TypeError(
621
- "The iterator does not provide a 'throw' method");
622
- }
623
-
624
- return ContinueSentinel;
625
- }
626
-
627
- var record = tryCatch(method, delegate.iterator, context.arg);
628
-
629
- if (record.type === "throw") {
630
- context.method = "throw";
631
- context.arg = record.arg;
632
- context.delegate = null;
633
- return ContinueSentinel;
634
- }
635
-
636
- var info = record.arg;
637
-
638
- if (! info) {
639
- context.method = "throw";
640
- context.arg = new TypeError("iterator result is not an object");
641
- context.delegate = null;
642
- return ContinueSentinel;
643
- }
644
-
645
- if (info.done) {
646
- // Assign the result of the finished delegate to the temporary
647
- // variable specified by delegate.resultName (see delegateYield).
648
- context[delegate.resultName] = info.value;
649
-
650
- // Resume execution at the desired location (see delegateYield).
651
- context.next = delegate.nextLoc;
652
-
653
- // If context.method was "throw" but the delegate handled the
654
- // exception, let the outer generator proceed normally. If
655
- // context.method was "next", forget context.arg since it has been
656
- // "consumed" by the delegate iterator. If context.method was
657
- // "return", allow the original .return call to continue in the
658
- // outer generator.
659
- if (context.method !== "return") {
660
- context.method = "next";
661
- context.arg = undefined$1;
662
- }
663
-
664
- } else {
665
- // Re-yield the result returned by the delegate method.
666
- return info;
667
- }
668
-
669
- // The delegate iterator is finished, so forget it and continue with
670
- // the outer generator.
671
- context.delegate = null;
672
- return ContinueSentinel;
673
- }
674
-
675
- // Define Generator.prototype.{next,throw,return} in terms of the
676
- // unified ._invoke helper method.
677
- defineIteratorMethods(Gp);
678
-
679
- define(Gp, toStringTagSymbol, "Generator");
680
-
681
- // A Generator should always return itself as the iterator object when the
682
- // @@iterator function is called on it. Some browsers' implementations of the
683
- // iterator prototype chain incorrectly implement this, causing the Generator
684
- // object to not be returned from this call. This ensures that doesn't happen.
685
- // See https://github.com/facebook/regenerator/issues/274 for more details.
686
- define(Gp, iteratorSymbol, function() {
687
- return this;
688
- });
689
-
690
- define(Gp, "toString", function() {
691
- return "[object Generator]";
692
- });
693
-
694
- function pushTryEntry(locs) {
695
- var entry = { tryLoc: locs[0] };
696
-
697
- if (1 in locs) {
698
- entry.catchLoc = locs[1];
699
- }
700
-
701
- if (2 in locs) {
702
- entry.finallyLoc = locs[2];
703
- entry.afterLoc = locs[3];
704
- }
705
-
706
- this.tryEntries.push(entry);
707
- }
708
-
709
- function resetTryEntry(entry) {
710
- var record = entry.completion || {};
711
- record.type = "normal";
712
- delete record.arg;
713
- entry.completion = record;
714
- }
715
-
716
- function Context(tryLocsList) {
717
- // The root entry object (effectively a try statement without a catch
718
- // or a finally block) gives us a place to store values thrown from
719
- // locations where there is no enclosing try statement.
720
- this.tryEntries = [{ tryLoc: "root" }];
721
- tryLocsList.forEach(pushTryEntry, this);
722
- this.reset(true);
723
- }
724
-
725
- exports.keys = function(object) {
726
- var keys = [];
727
- for (var key in object) {
728
- keys.push(key);
729
- }
730
- keys.reverse();
731
-
732
- // Rather than returning an object with a next method, we keep
733
- // things simple and return the next function itself.
734
- return function next() {
735
- while (keys.length) {
736
- var key = keys.pop();
737
- if (key in object) {
738
- next.value = key;
739
- next.done = false;
740
- return next;
741
- }
742
- }
743
-
744
- // To avoid creating an additional object, we just hang the .value
745
- // and .done properties off the next function object itself. This
746
- // also ensures that the minifier will not anonymize the function.
747
- next.done = true;
748
- return next;
749
- };
750
- };
751
-
752
- function values(iterable) {
753
- if (iterable) {
754
- var iteratorMethod = iterable[iteratorSymbol];
755
- if (iteratorMethod) {
756
- return iteratorMethod.call(iterable);
757
- }
758
-
759
- if (typeof iterable.next === "function") {
760
- return iterable;
761
- }
762
-
763
- if (!isNaN(iterable.length)) {
764
- var i = -1, next = function next() {
765
- while (++i < iterable.length) {
766
- if (hasOwn.call(iterable, i)) {
767
- next.value = iterable[i];
768
- next.done = false;
769
- return next;
770
- }
771
- }
772
-
773
- next.value = undefined$1;
774
- next.done = true;
775
-
776
- return next;
777
- };
778
-
779
- return next.next = next;
780
- }
781
- }
782
-
783
- // Return an iterator with no values.
784
- return { next: doneResult };
785
- }
786
- exports.values = values;
787
-
788
- function doneResult() {
789
- return { value: undefined$1, done: true };
790
- }
791
-
792
- Context.prototype = {
793
- constructor: Context,
794
-
795
- reset: function(skipTempReset) {
796
- this.prev = 0;
797
- this.next = 0;
798
- // Resetting context._sent for legacy support of Babel's
799
- // function.sent implementation.
800
- this.sent = this._sent = undefined$1;
801
- this.done = false;
802
- this.delegate = null;
803
-
804
- this.method = "next";
805
- this.arg = undefined$1;
806
-
807
- this.tryEntries.forEach(resetTryEntry);
808
-
809
- if (!skipTempReset) {
810
- for (var name in this) {
811
- // Not sure about the optimal order of these conditions:
812
- if (name.charAt(0) === "t" &&
813
- hasOwn.call(this, name) &&
814
- !isNaN(+name.slice(1))) {
815
- this[name] = undefined$1;
816
- }
817
- }
818
- }
819
- },
820
-
821
- stop: function() {
822
- this.done = true;
823
-
824
- var rootEntry = this.tryEntries[0];
825
- var rootRecord = rootEntry.completion;
826
- if (rootRecord.type === "throw") {
827
- throw rootRecord.arg;
828
- }
829
-
830
- return this.rval;
831
- },
832
-
833
- dispatchException: function(exception) {
834
- if (this.done) {
835
- throw exception;
836
- }
837
-
838
- var context = this;
839
- function handle(loc, caught) {
840
- record.type = "throw";
841
- record.arg = exception;
842
- context.next = loc;
843
-
844
- if (caught) {
845
- // If the dispatched exception was caught by a catch block,
846
- // then let that catch block handle the exception normally.
847
- context.method = "next";
848
- context.arg = undefined$1;
849
- }
850
-
851
- return !! caught;
852
- }
853
-
854
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
855
- var entry = this.tryEntries[i];
856
- var record = entry.completion;
857
-
858
- if (entry.tryLoc === "root") {
859
- // Exception thrown outside of any try block that could handle
860
- // it, so set the completion value of the entire function to
861
- // throw the exception.
862
- return handle("end");
863
- }
864
-
865
- if (entry.tryLoc <= this.prev) {
866
- var hasCatch = hasOwn.call(entry, "catchLoc");
867
- var hasFinally = hasOwn.call(entry, "finallyLoc");
868
-
869
- if (hasCatch && hasFinally) {
870
- if (this.prev < entry.catchLoc) {
871
- return handle(entry.catchLoc, true);
872
- } else if (this.prev < entry.finallyLoc) {
873
- return handle(entry.finallyLoc);
874
- }
875
-
876
- } else if (hasCatch) {
877
- if (this.prev < entry.catchLoc) {
878
- return handle(entry.catchLoc, true);
879
- }
880
-
881
- } else if (hasFinally) {
882
- if (this.prev < entry.finallyLoc) {
883
- return handle(entry.finallyLoc);
884
- }
885
-
886
- } else {
887
- throw new Error("try statement without catch or finally");
888
- }
889
- }
890
- }
891
- },
892
-
893
- abrupt: function(type, arg) {
894
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
895
- var entry = this.tryEntries[i];
896
- if (entry.tryLoc <= this.prev &&
897
- hasOwn.call(entry, "finallyLoc") &&
898
- this.prev < entry.finallyLoc) {
899
- var finallyEntry = entry;
900
- break;
901
- }
902
- }
903
-
904
- if (finallyEntry &&
905
- (type === "break" ||
906
- type === "continue") &&
907
- finallyEntry.tryLoc <= arg &&
908
- arg <= finallyEntry.finallyLoc) {
909
- // Ignore the finally entry if control is not jumping to a
910
- // location outside the try/catch block.
911
- finallyEntry = null;
912
- }
913
-
914
- var record = finallyEntry ? finallyEntry.completion : {};
915
- record.type = type;
916
- record.arg = arg;
917
-
918
- if (finallyEntry) {
919
- this.method = "next";
920
- this.next = finallyEntry.finallyLoc;
921
- return ContinueSentinel;
922
- }
923
-
924
- return this.complete(record);
925
- },
926
-
927
- complete: function(record, afterLoc) {
928
- if (record.type === "throw") {
929
- throw record.arg;
930
- }
931
-
932
- if (record.type === "break" ||
933
- record.type === "continue") {
934
- this.next = record.arg;
935
- } else if (record.type === "return") {
936
- this.rval = this.arg = record.arg;
937
- this.method = "return";
938
- this.next = "end";
939
- } else if (record.type === "normal" && afterLoc) {
940
- this.next = afterLoc;
941
- }
942
-
943
- return ContinueSentinel;
944
- },
945
-
946
- finish: function(finallyLoc) {
947
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
948
- var entry = this.tryEntries[i];
949
- if (entry.finallyLoc === finallyLoc) {
950
- this.complete(entry.completion, entry.afterLoc);
951
- resetTryEntry(entry);
952
- return ContinueSentinel;
953
- }
954
- }
955
- },
956
-
957
- "catch": function(tryLoc) {
958
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
959
- var entry = this.tryEntries[i];
960
- if (entry.tryLoc === tryLoc) {
961
- var record = entry.completion;
962
- if (record.type === "throw") {
963
- var thrown = record.arg;
964
- resetTryEntry(entry);
965
- }
966
- return thrown;
967
- }
968
- }
969
-
970
- // The context.catch method must only be called with a location
971
- // argument that corresponds to a known catch block.
972
- throw new Error("illegal catch attempt");
973
- },
974
-
975
- delegateYield: function(iterable, resultName, nextLoc) {
976
- this.delegate = {
977
- iterator: values(iterable),
978
- resultName: resultName,
979
- nextLoc: nextLoc
980
- };
981
-
982
- if (this.method === "next") {
983
- // Deliberately forget the last sent value so that we don't
984
- // accidentally pass it on to the delegate.
985
- this.arg = undefined$1;
986
- }
987
-
988
- return ContinueSentinel;
989
- }
990
- };
991
-
992
- // Regardless of whether this script is executing as a CommonJS module
993
- // or not, return the runtime object so that we can declare the variable
994
- // regeneratorRuntime in the outer scope, which allows this module to be
995
- // injected easily by `bin/regenerator --include-runtime script.js`.
996
- return exports;
997
-
998
- }(
999
- // If this script is executing as a CommonJS module, use module.exports
1000
- // as the regeneratorRuntime namespace. Otherwise create a new empty
1001
- // object. Either way, the resulting object will be used to initialize
1002
- // the regeneratorRuntime variable at the top of this file.
1003
- module.exports
1004
- ));
1005
-
1006
- try {
1007
- regeneratorRuntime = runtime;
1008
- } catch (accidentalStrictMode) {
1009
- // This module should not be running in strict mode, so the above
1010
- // assignment should always work unless something is misconfigured. Just
1011
- // in case runtime.js accidentally runs in strict mode, in modern engines
1012
- // we can explicitly access globalThis. In older engines we can escape
1013
- // strict mode using a global Function call. This could conceivably fail
1014
- // if a Content Security Policy forbids using Function, but in that case
1015
- // the proper solution is to fix the accidental strict mode problem. If
1016
- // you've misconfigured your bundler to force strict mode and applied a
1017
- // CSP to forbid Function, and you're not willing to fix either of those
1018
- // problems, please detail your unique predicament in a GitHub issue.
1019
- if (typeof globalThis === "object") {
1020
- globalThis.regeneratorRuntime = runtime;
1021
- } else {
1022
- Function("r", "regeneratorRuntime = r")(runtime);
1023
- }
1024
- }
1025
- });
1026
-
1027
- var regenerator = runtime_1;
1028
-
1029
- /**
1030
- * Checks if `value` is classified as an `Array` object.
1031
- *
1032
- * @static
1033
- * @memberOf _
1034
- * @since 0.1.0
1035
- * @category Lang
1036
- * @param {*} value The value to check.
1037
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1038
- * @example
1039
- *
1040
- * _.isArray([1, 2, 3]);
1041
- * // => true
1042
- *
1043
- * _.isArray(document.body.children);
1044
- * // => false
1045
- *
1046
- * _.isArray('abc');
1047
- * // => false
1048
- *
1049
- * _.isArray(_.noop);
1050
- * // => false
1051
- */
1052
- var isArray = Array.isArray;
1053
-
1054
- var isArray_1 = isArray;
1055
-
1056
- /** Detect free variable `global` from Node.js. */
1057
-
1058
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
1059
-
1060
- var _freeGlobal = freeGlobal;
1061
-
1062
- /** Detect free variable `self`. */
1063
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
1064
-
1065
- /** Used as a reference to the global object. */
1066
- var root = _freeGlobal || freeSelf || Function('return this')();
1067
-
1068
- var _root = root;
1069
-
1070
- /** Built-in value references. */
1071
- var Symbol$1 = _root.Symbol;
1072
-
1073
- var _Symbol = Symbol$1;
1074
-
1075
- /** Used for built-in method references. */
1076
- var objectProto$4 = Object.prototype;
1077
-
1078
- /** Used to check objects for own properties. */
1079
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
1080
-
1081
- /**
1082
- * Used to resolve the
1083
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1084
- * of values.
1085
- */
1086
- var nativeObjectToString$1 = objectProto$4.toString;
1087
-
1088
- /** Built-in value references. */
1089
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
1090
-
1091
- /**
1092
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
1093
- *
1094
- * @private
1095
- * @param {*} value The value to query.
1096
- * @returns {string} Returns the raw `toStringTag`.
1097
- */
1098
- function getRawTag(value) {
1099
- var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
1100
- tag = value[symToStringTag$1];
1101
-
1102
- try {
1103
- value[symToStringTag$1] = undefined;
1104
- var unmasked = true;
1105
- } catch (e) {}
1106
-
1107
- var result = nativeObjectToString$1.call(value);
1108
- if (unmasked) {
1109
- if (isOwn) {
1110
- value[symToStringTag$1] = tag;
1111
- } else {
1112
- delete value[symToStringTag$1];
1113
- }
1114
- }
1115
- return result;
1116
- }
1117
-
1118
- var _getRawTag = getRawTag;
1119
-
1120
- /** Used for built-in method references. */
1121
- var objectProto$3 = Object.prototype;
1122
-
1123
- /**
1124
- * Used to resolve the
1125
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1126
- * of values.
1127
- */
1128
- var nativeObjectToString = objectProto$3.toString;
1129
-
1130
- /**
1131
- * Converts `value` to a string using `Object.prototype.toString`.
1132
- *
1133
- * @private
1134
- * @param {*} value The value to convert.
1135
- * @returns {string} Returns the converted string.
1136
- */
1137
- function objectToString(value) {
1138
- return nativeObjectToString.call(value);
1139
- }
1140
-
1141
- var _objectToString = objectToString;
1142
-
1143
- /** `Object#toString` result references. */
1144
- var nullTag = '[object Null]',
1145
- undefinedTag = '[object Undefined]';
1146
-
1147
- /** Built-in value references. */
1148
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
1149
-
1150
- /**
1151
- * The base implementation of `getTag` without fallbacks for buggy environments.
1152
- *
1153
- * @private
1154
- * @param {*} value The value to query.
1155
- * @returns {string} Returns the `toStringTag`.
1156
- */
1157
- function baseGetTag(value) {
1158
- if (value == null) {
1159
- return value === undefined ? undefinedTag : nullTag;
1160
- }
1161
- return (symToStringTag && symToStringTag in Object(value))
1162
- ? _getRawTag(value)
1163
- : _objectToString(value);
1164
- }
1165
-
1166
- var _baseGetTag = baseGetTag;
1167
-
1168
- /**
1169
- * Checks if `value` is object-like. A value is object-like if it's not `null`
1170
- * and has a `typeof` result of "object".
1171
- *
1172
- * @static
1173
- * @memberOf _
1174
- * @since 4.0.0
1175
- * @category Lang
1176
- * @param {*} value The value to check.
1177
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
1178
- * @example
1179
- *
1180
- * _.isObjectLike({});
1181
- * // => true
1182
- *
1183
- * _.isObjectLike([1, 2, 3]);
1184
- * // => true
1185
- *
1186
- * _.isObjectLike(_.noop);
1187
- * // => false
1188
- *
1189
- * _.isObjectLike(null);
1190
- * // => false
1191
- */
1192
- function isObjectLike(value) {
1193
- return value != null && typeof value == 'object';
1194
- }
1195
-
1196
- var isObjectLike_1 = isObjectLike;
1197
-
1198
- /** `Object#toString` result references. */
1199
- var symbolTag = '[object Symbol]';
1200
-
1201
- /**
1202
- * Checks if `value` is classified as a `Symbol` primitive or object.
1203
- *
1204
- * @static
1205
- * @memberOf _
1206
- * @since 4.0.0
1207
- * @category Lang
1208
- * @param {*} value The value to check.
1209
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
1210
- * @example
1211
- *
1212
- * _.isSymbol(Symbol.iterator);
1213
- * // => true
1214
- *
1215
- * _.isSymbol('abc');
1216
- * // => false
1217
- */
1218
- function isSymbol(value) {
1219
- return typeof value == 'symbol' ||
1220
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
1221
- }
1222
-
1223
- var isSymbol_1 = isSymbol;
1224
-
1225
- /** Used to match property names within property paths. */
1226
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
1227
- reIsPlainProp = /^\w*$/;
1228
-
1229
- /**
1230
- * Checks if `value` is a property name and not a property path.
1231
- *
1232
- * @private
1233
- * @param {*} value The value to check.
1234
- * @param {Object} [object] The object to query keys on.
1235
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
1236
- */
1237
- function isKey(value, object) {
1238
- if (isArray_1(value)) {
1239
- return false;
1240
- }
1241
- var type = typeof value;
1242
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
1243
- value == null || isSymbol_1(value)) {
1244
- return true;
1245
- }
1246
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
1247
- (object != null && value in Object(object));
1248
- }
1249
-
1250
- var _isKey = isKey;
1251
-
1252
- /**
1253
- * Checks if `value` is the
1254
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1255
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1256
- *
1257
- * @static
1258
- * @memberOf _
1259
- * @since 0.1.0
1260
- * @category Lang
1261
- * @param {*} value The value to check.
1262
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1263
- * @example
1264
- *
1265
- * _.isObject({});
1266
- * // => true
1267
- *
1268
- * _.isObject([1, 2, 3]);
1269
- * // => true
1270
- *
1271
- * _.isObject(_.noop);
1272
- * // => true
1273
- *
1274
- * _.isObject(null);
1275
- * // => false
1276
- */
1277
- function isObject(value) {
1278
- var type = typeof value;
1279
- return value != null && (type == 'object' || type == 'function');
1280
- }
1281
-
1282
- var isObject_1 = isObject;
1283
-
1284
- /** `Object#toString` result references. */
1285
- var asyncTag = '[object AsyncFunction]',
1286
- funcTag = '[object Function]',
1287
- genTag = '[object GeneratorFunction]',
1288
- proxyTag = '[object Proxy]';
1289
-
1290
- /**
1291
- * Checks if `value` is classified as a `Function` object.
1292
- *
1293
- * @static
1294
- * @memberOf _
1295
- * @since 0.1.0
1296
- * @category Lang
1297
- * @param {*} value The value to check.
1298
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
1299
- * @example
1300
- *
1301
- * _.isFunction(_);
1302
- * // => true
1303
- *
1304
- * _.isFunction(/abc/);
1305
- * // => false
1306
- */
1307
- function isFunction(value) {
1308
- if (!isObject_1(value)) {
1309
- return false;
1310
- }
1311
- // The use of `Object#toString` avoids issues with the `typeof` operator
1312
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
1313
- var tag = _baseGetTag(value);
1314
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
1315
- }
1316
-
1317
- var isFunction_1 = isFunction;
1318
-
1319
- /** Used to detect overreaching core-js shims. */
1320
- var coreJsData = _root['__core-js_shared__'];
1321
-
1322
- var _coreJsData = coreJsData;
1323
-
1324
- /** Used to detect methods masquerading as native. */
1325
- var maskSrcKey = (function() {
1326
- var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
1327
- return uid ? ('Symbol(src)_1.' + uid) : '';
1328
- }());
1329
-
1330
- /**
1331
- * Checks if `func` has its source masked.
1332
- *
1333
- * @private
1334
- * @param {Function} func The function to check.
1335
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
1336
- */
1337
- function isMasked(func) {
1338
- return !!maskSrcKey && (maskSrcKey in func);
1339
- }
1340
-
1341
- var _isMasked = isMasked;
1342
-
1343
- /** Used for built-in method references. */
1344
- var funcProto$1 = Function.prototype;
1345
-
1346
- /** Used to resolve the decompiled source of functions. */
1347
- var funcToString$1 = funcProto$1.toString;
1348
-
1349
- /**
1350
- * Converts `func` to its source code.
1351
- *
1352
- * @private
1353
- * @param {Function} func The function to convert.
1354
- * @returns {string} Returns the source code.
1355
- */
1356
- function toSource(func) {
1357
- if (func != null) {
1358
- try {
1359
- return funcToString$1.call(func);
1360
- } catch (e) {}
1361
- try {
1362
- return (func + '');
1363
- } catch (e) {}
1364
- }
1365
- return '';
1366
- }
1367
-
1368
- var _toSource = toSource;
1369
-
1370
- /**
1371
- * Used to match `RegExp`
1372
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
1373
- */
1374
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
1375
-
1376
- /** Used to detect host constructors (Safari). */
1377
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
1378
-
1379
- /** Used for built-in method references. */
1380
- var funcProto = Function.prototype,
1381
- objectProto$2 = Object.prototype;
1382
-
1383
- /** Used to resolve the decompiled source of functions. */
1384
- var funcToString = funcProto.toString;
1385
-
1386
- /** Used to check objects for own properties. */
1387
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
1388
-
1389
- /** Used to detect if a method is native. */
1390
- var reIsNative = RegExp('^' +
1391
- funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
1392
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
1393
- );
1394
-
1395
- /**
1396
- * The base implementation of `_.isNative` without bad shim checks.
1397
- *
1398
- * @private
1399
- * @param {*} value The value to check.
1400
- * @returns {boolean} Returns `true` if `value` is a native function,
1401
- * else `false`.
1402
- */
1403
- function baseIsNative(value) {
1404
- if (!isObject_1(value) || _isMasked(value)) {
1405
- return false;
1406
- }
1407
- var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
1408
- return pattern.test(_toSource(value));
1409
- }
1410
-
1411
- var _baseIsNative = baseIsNative;
1412
-
1413
- /**
1414
- * Gets the value at `key` of `object`.
1415
- *
1416
- * @private
1417
- * @param {Object} [object] The object to query.
1418
- * @param {string} key The key of the property to get.
1419
- * @returns {*} Returns the property value.
1420
- */
1421
- function getValue(object, key) {
1422
- return object == null ? undefined : object[key];
1423
- }
1424
-
1425
- var _getValue = getValue;
1426
-
1427
- /**
1428
- * Gets the native function at `key` of `object`.
1429
- *
1430
- * @private
1431
- * @param {Object} object The object to query.
1432
- * @param {string} key The key of the method to get.
1433
- * @returns {*} Returns the function if it's native, else `undefined`.
1434
- */
1435
- function getNative(object, key) {
1436
- var value = _getValue(object, key);
1437
- return _baseIsNative(value) ? value : undefined;
1438
- }
1439
-
1440
- var _getNative = getNative;
1441
-
1442
- /* Built-in method references that are verified to be native. */
1443
- var nativeCreate = _getNative(Object, 'create');
1444
-
1445
- var _nativeCreate = nativeCreate;
1446
-
1447
- /**
1448
- * Removes all key-value entries from the hash.
1449
- *
1450
- * @private
1451
- * @name clear
1452
- * @memberOf Hash
1453
- */
1454
- function hashClear() {
1455
- this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
1456
- this.size = 0;
1457
- }
1458
-
1459
- var _hashClear = hashClear;
1460
-
1461
- /**
1462
- * Removes `key` and its value from the hash.
1463
- *
1464
- * @private
1465
- * @name delete
1466
- * @memberOf Hash
1467
- * @param {Object} hash The hash to modify.
1468
- * @param {string} key The key of the value to remove.
1469
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1470
- */
1471
- function hashDelete(key) {
1472
- var result = this.has(key) && delete this.__data__[key];
1473
- this.size -= result ? 1 : 0;
1474
- return result;
1475
- }
1476
-
1477
- var _hashDelete = hashDelete;
1478
-
1479
- /** Used to stand-in for `undefined` hash values. */
1480
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
1481
-
1482
- /** Used for built-in method references. */
1483
- var objectProto$1 = Object.prototype;
1484
-
1485
- /** Used to check objects for own properties. */
1486
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
1487
-
1488
- /**
1489
- * Gets the hash value for `key`.
1490
- *
1491
- * @private
1492
- * @name get
1493
- * @memberOf Hash
1494
- * @param {string} key The key of the value to get.
1495
- * @returns {*} Returns the entry value.
1496
- */
1497
- function hashGet(key) {
1498
- var data = this.__data__;
1499
- if (_nativeCreate) {
1500
- var result = data[key];
1501
- return result === HASH_UNDEFINED$1 ? undefined : result;
1502
- }
1503
- return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
1504
- }
1505
-
1506
- var _hashGet = hashGet;
1507
-
1508
- /** Used for built-in method references. */
1509
- var objectProto = Object.prototype;
1510
-
1511
- /** Used to check objects for own properties. */
1512
- var hasOwnProperty = objectProto.hasOwnProperty;
1513
-
1514
- /**
1515
- * Checks if a hash value for `key` exists.
1516
- *
1517
- * @private
1518
- * @name has
1519
- * @memberOf Hash
1520
- * @param {string} key The key of the entry to check.
1521
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1522
- */
1523
- function hashHas(key) {
1524
- var data = this.__data__;
1525
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
1526
- }
1527
-
1528
- var _hashHas = hashHas;
1529
-
1530
- /** Used to stand-in for `undefined` hash values. */
1531
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
1532
-
1533
- /**
1534
- * Sets the hash `key` to `value`.
1535
- *
1536
- * @private
1537
- * @name set
1538
- * @memberOf Hash
1539
- * @param {string} key The key of the value to set.
1540
- * @param {*} value The value to set.
1541
- * @returns {Object} Returns the hash instance.
1542
- */
1543
- function hashSet(key, value) {
1544
- var data = this.__data__;
1545
- this.size += this.has(key) ? 0 : 1;
1546
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
1547
- return this;
1548
- }
1549
-
1550
- var _hashSet = hashSet;
1551
-
1552
- /**
1553
- * Creates a hash object.
1554
- *
1555
- * @private
1556
- * @constructor
1557
- * @param {Array} [entries] The key-value pairs to cache.
1558
- */
1559
- function Hash(entries) {
1560
- var index = -1,
1561
- length = entries == null ? 0 : entries.length;
1562
-
1563
- this.clear();
1564
- while (++index < length) {
1565
- var entry = entries[index];
1566
- this.set(entry[0], entry[1]);
1567
- }
1568
- }
1569
-
1570
- // Add methods to `Hash`.
1571
- Hash.prototype.clear = _hashClear;
1572
- Hash.prototype['delete'] = _hashDelete;
1573
- Hash.prototype.get = _hashGet;
1574
- Hash.prototype.has = _hashHas;
1575
- Hash.prototype.set = _hashSet;
1576
-
1577
- var _Hash = Hash;
1578
-
1579
- /**
1580
- * Removes all key-value entries from the list cache.
1581
- *
1582
- * @private
1583
- * @name clear
1584
- * @memberOf ListCache
1585
- */
1586
- function listCacheClear() {
1587
- this.__data__ = [];
1588
- this.size = 0;
1589
- }
1590
-
1591
- var _listCacheClear = listCacheClear;
1592
-
1593
- /**
1594
- * Performs a
1595
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1596
- * comparison between two values to determine if they are equivalent.
1597
- *
1598
- * @static
1599
- * @memberOf _
1600
- * @since 4.0.0
1601
- * @category Lang
1602
- * @param {*} value The value to compare.
1603
- * @param {*} other The other value to compare.
1604
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1605
- * @example
1606
- *
1607
- * var object = { 'a': 1 };
1608
- * var other = { 'a': 1 };
1609
- *
1610
- * _.eq(object, object);
1611
- * // => true
1612
- *
1613
- * _.eq(object, other);
1614
- * // => false
1615
- *
1616
- * _.eq('a', 'a');
1617
- * // => true
1618
- *
1619
- * _.eq('a', Object('a'));
1620
- * // => false
1621
- *
1622
- * _.eq(NaN, NaN);
1623
- * // => true
1624
- */
1625
- function eq(value, other) {
1626
- return value === other || (value !== value && other !== other);
1627
- }
1628
-
1629
- var eq_1 = eq;
1630
-
1631
- /**
1632
- * Gets the index at which the `key` is found in `array` of key-value pairs.
1633
- *
1634
- * @private
1635
- * @param {Array} array The array to inspect.
1636
- * @param {*} key The key to search for.
1637
- * @returns {number} Returns the index of the matched value, else `-1`.
1638
- */
1639
- function assocIndexOf(array, key) {
1640
- var length = array.length;
1641
- while (length--) {
1642
- if (eq_1(array[length][0], key)) {
1643
- return length;
1644
- }
1645
- }
1646
- return -1;
1647
- }
1648
-
1649
- var _assocIndexOf = assocIndexOf;
1650
-
1651
- /** Used for built-in method references. */
1652
- var arrayProto = Array.prototype;
1653
-
1654
- /** Built-in value references. */
1655
- var splice = arrayProto.splice;
1656
-
1657
- /**
1658
- * Removes `key` and its value from the list cache.
1659
- *
1660
- * @private
1661
- * @name delete
1662
- * @memberOf ListCache
1663
- * @param {string} key The key of the value to remove.
1664
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1665
- */
1666
- function listCacheDelete(key) {
1667
- var data = this.__data__,
1668
- index = _assocIndexOf(data, key);
1669
-
1670
- if (index < 0) {
1671
- return false;
1672
- }
1673
- var lastIndex = data.length - 1;
1674
- if (index == lastIndex) {
1675
- data.pop();
1676
- } else {
1677
- splice.call(data, index, 1);
1678
- }
1679
- --this.size;
1680
- return true;
1681
- }
1682
-
1683
- var _listCacheDelete = listCacheDelete;
1684
-
1685
- /**
1686
- * Gets the list cache value for `key`.
1687
- *
1688
- * @private
1689
- * @name get
1690
- * @memberOf ListCache
1691
- * @param {string} key The key of the value to get.
1692
- * @returns {*} Returns the entry value.
1693
- */
1694
- function listCacheGet(key) {
1695
- var data = this.__data__,
1696
- index = _assocIndexOf(data, key);
1697
-
1698
- return index < 0 ? undefined : data[index][1];
1699
- }
1700
-
1701
- var _listCacheGet = listCacheGet;
1702
-
1703
- /**
1704
- * Checks if a list cache value for `key` exists.
1705
- *
1706
- * @private
1707
- * @name has
1708
- * @memberOf ListCache
1709
- * @param {string} key The key of the entry to check.
1710
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1711
- */
1712
- function listCacheHas(key) {
1713
- return _assocIndexOf(this.__data__, key) > -1;
1714
- }
1715
-
1716
- var _listCacheHas = listCacheHas;
1717
-
1718
- /**
1719
- * Sets the list cache `key` to `value`.
1720
- *
1721
- * @private
1722
- * @name set
1723
- * @memberOf ListCache
1724
- * @param {string} key The key of the value to set.
1725
- * @param {*} value The value to set.
1726
- * @returns {Object} Returns the list cache instance.
1727
- */
1728
- function listCacheSet(key, value) {
1729
- var data = this.__data__,
1730
- index = _assocIndexOf(data, key);
1731
-
1732
- if (index < 0) {
1733
- ++this.size;
1734
- data.push([key, value]);
1735
- } else {
1736
- data[index][1] = value;
1737
- }
1738
- return this;
1739
- }
1740
-
1741
- var _listCacheSet = listCacheSet;
1742
-
1743
- /**
1744
- * Creates an list cache object.
1745
- *
1746
- * @private
1747
- * @constructor
1748
- * @param {Array} [entries] The key-value pairs to cache.
1749
- */
1750
- function ListCache(entries) {
1751
- var index = -1,
1752
- length = entries == null ? 0 : entries.length;
1753
-
1754
- this.clear();
1755
- while (++index < length) {
1756
- var entry = entries[index];
1757
- this.set(entry[0], entry[1]);
1758
- }
1759
- }
1760
-
1761
- // Add methods to `ListCache`.
1762
- ListCache.prototype.clear = _listCacheClear;
1763
- ListCache.prototype['delete'] = _listCacheDelete;
1764
- ListCache.prototype.get = _listCacheGet;
1765
- ListCache.prototype.has = _listCacheHas;
1766
- ListCache.prototype.set = _listCacheSet;
1767
-
1768
- var _ListCache = ListCache;
1769
-
1770
- /* Built-in method references that are verified to be native. */
1771
- var Map = _getNative(_root, 'Map');
1772
-
1773
- var _Map = Map;
1774
-
1775
- /**
1776
- * Removes all key-value entries from the map.
1777
- *
1778
- * @private
1779
- * @name clear
1780
- * @memberOf MapCache
1781
- */
1782
- function mapCacheClear() {
1783
- this.size = 0;
1784
- this.__data__ = {
1785
- 'hash': new _Hash,
1786
- 'map': new (_Map || _ListCache),
1787
- 'string': new _Hash
1788
- };
1789
- }
1790
-
1791
- var _mapCacheClear = mapCacheClear;
1792
-
1793
- /**
1794
- * Checks if `value` is suitable for use as unique object key.
1795
- *
1796
- * @private
1797
- * @param {*} value The value to check.
1798
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1799
- */
1800
- function isKeyable(value) {
1801
- var type = typeof value;
1802
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1803
- ? (value !== '__proto__')
1804
- : (value === null);
1805
- }
1806
-
1807
- var _isKeyable = isKeyable;
1808
-
1809
- /**
1810
- * Gets the data for `map`.
1811
- *
1812
- * @private
1813
- * @param {Object} map The map to query.
1814
- * @param {string} key The reference key.
1815
- * @returns {*} Returns the map data.
1816
- */
1817
- function getMapData(map, key) {
1818
- var data = map.__data__;
1819
- return _isKeyable(key)
1820
- ? data[typeof key == 'string' ? 'string' : 'hash']
1821
- : data.map;
1822
- }
1823
-
1824
- var _getMapData = getMapData;
1825
-
1826
- /**
1827
- * Removes `key` and its value from the map.
1828
- *
1829
- * @private
1830
- * @name delete
1831
- * @memberOf MapCache
1832
- * @param {string} key The key of the value to remove.
1833
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1834
- */
1835
- function mapCacheDelete(key) {
1836
- var result = _getMapData(this, key)['delete'](key);
1837
- this.size -= result ? 1 : 0;
1838
- return result;
1839
- }
1840
-
1841
- var _mapCacheDelete = mapCacheDelete;
1842
-
1843
- /**
1844
- * Gets the map value for `key`.
1845
- *
1846
- * @private
1847
- * @name get
1848
- * @memberOf MapCache
1849
- * @param {string} key The key of the value to get.
1850
- * @returns {*} Returns the entry value.
1851
- */
1852
- function mapCacheGet(key) {
1853
- return _getMapData(this, key).get(key);
1854
- }
1855
-
1856
- var _mapCacheGet = mapCacheGet;
1857
-
1858
- /**
1859
- * Checks if a map value for `key` exists.
1860
- *
1861
- * @private
1862
- * @name has
1863
- * @memberOf MapCache
1864
- * @param {string} key The key of the entry to check.
1865
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1866
- */
1867
- function mapCacheHas(key) {
1868
- return _getMapData(this, key).has(key);
1869
- }
1870
-
1871
- var _mapCacheHas = mapCacheHas;
1872
-
1873
- /**
1874
- * Sets the map `key` to `value`.
1875
- *
1876
- * @private
1877
- * @name set
1878
- * @memberOf MapCache
1879
- * @param {string} key The key of the value to set.
1880
- * @param {*} value The value to set.
1881
- * @returns {Object} Returns the map cache instance.
1882
- */
1883
- function mapCacheSet(key, value) {
1884
- var data = _getMapData(this, key),
1885
- size = data.size;
1886
-
1887
- data.set(key, value);
1888
- this.size += data.size == size ? 0 : 1;
1889
- return this;
1890
- }
1891
-
1892
- var _mapCacheSet = mapCacheSet;
1893
-
1894
- /**
1895
- * Creates a map cache object to store key-value pairs.
1896
- *
1897
- * @private
1898
- * @constructor
1899
- * @param {Array} [entries] The key-value pairs to cache.
1900
- */
1901
- function MapCache(entries) {
1902
- var index = -1,
1903
- length = entries == null ? 0 : entries.length;
1904
-
1905
- this.clear();
1906
- while (++index < length) {
1907
- var entry = entries[index];
1908
- this.set(entry[0], entry[1]);
1909
- }
1910
- }
1911
-
1912
- // Add methods to `MapCache`.
1913
- MapCache.prototype.clear = _mapCacheClear;
1914
- MapCache.prototype['delete'] = _mapCacheDelete;
1915
- MapCache.prototype.get = _mapCacheGet;
1916
- MapCache.prototype.has = _mapCacheHas;
1917
- MapCache.prototype.set = _mapCacheSet;
1918
-
1919
- var _MapCache = MapCache;
1920
-
1921
- /** Error message constants. */
1922
- var FUNC_ERROR_TEXT = 'Expected a function';
1923
-
1924
- /**
1925
- * Creates a function that memoizes the result of `func`. If `resolver` is
1926
- * provided, it determines the cache key for storing the result based on the
1927
- * arguments provided to the memoized function. By default, the first argument
1928
- * provided to the memoized function is used as the map cache key. The `func`
1929
- * is invoked with the `this` binding of the memoized function.
1930
- *
1931
- * **Note:** The cache is exposed as the `cache` property on the memoized
1932
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
1933
- * constructor with one whose instances implement the
1934
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
1935
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
1936
- *
1937
- * @static
1938
- * @memberOf _
1939
- * @since 0.1.0
1940
- * @category Function
1941
- * @param {Function} func The function to have its output memoized.
1942
- * @param {Function} [resolver] The function to resolve the cache key.
1943
- * @returns {Function} Returns the new memoized function.
1944
- * @example
1945
- *
1946
- * var object = { 'a': 1, 'b': 2 };
1947
- * var other = { 'c': 3, 'd': 4 };
1948
- *
1949
- * var values = _.memoize(_.values);
1950
- * values(object);
1951
- * // => [1, 2]
1952
- *
1953
- * values(other);
1954
- * // => [3, 4]
1955
- *
1956
- * object.a = 2;
1957
- * values(object);
1958
- * // => [1, 2]
1959
- *
1960
- * // Modify the result cache.
1961
- * values.cache.set(object, ['a', 'b']);
1962
- * values(object);
1963
- * // => ['a', 'b']
1964
- *
1965
- * // Replace `_.memoize.Cache`.
1966
- * _.memoize.Cache = WeakMap;
1967
- */
1968
- function memoize(func, resolver) {
1969
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
1970
- throw new TypeError(FUNC_ERROR_TEXT);
1971
- }
1972
- var memoized = function() {
1973
- var args = arguments,
1974
- key = resolver ? resolver.apply(this, args) : args[0],
1975
- cache = memoized.cache;
1976
-
1977
- if (cache.has(key)) {
1978
- return cache.get(key);
1979
- }
1980
- var result = func.apply(this, args);
1981
- memoized.cache = cache.set(key, result) || cache;
1982
- return result;
1983
- };
1984
- memoized.cache = new (memoize.Cache || _MapCache);
1985
- return memoized;
1986
- }
1987
-
1988
- // Expose `MapCache`.
1989
- memoize.Cache = _MapCache;
1990
-
1991
- var memoize_1 = memoize;
1992
-
1993
- /** Used as the maximum memoize cache size. */
1994
- var MAX_MEMOIZE_SIZE = 500;
1995
-
1996
- /**
1997
- * A specialized version of `_.memoize` which clears the memoized function's
1998
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1999
- *
2000
- * @private
2001
- * @param {Function} func The function to have its output memoized.
2002
- * @returns {Function} Returns the new memoized function.
2003
- */
2004
- function memoizeCapped(func) {
2005
- var result = memoize_1(func, function(key) {
2006
- if (cache.size === MAX_MEMOIZE_SIZE) {
2007
- cache.clear();
2008
- }
2009
- return key;
2010
- });
2011
-
2012
- var cache = result.cache;
2013
- return result;
2014
- }
2015
-
2016
- var _memoizeCapped = memoizeCapped;
2017
-
2018
- /** Used to match property names within property paths. */
2019
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
2020
-
2021
- /** Used to match backslashes in property paths. */
2022
- var reEscapeChar = /\\(\\)?/g;
2023
-
2024
- /**
2025
- * Converts `string` to a property path array.
2026
- *
2027
- * @private
2028
- * @param {string} string The string to convert.
2029
- * @returns {Array} Returns the property path array.
2030
- */
2031
- var stringToPath = _memoizeCapped(function(string) {
2032
- var result = [];
2033
- if (string.charCodeAt(0) === 46 /* . */) {
2034
- result.push('');
2035
- }
2036
- string.replace(rePropName, function(match, number, quote, subString) {
2037
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
2038
- });
2039
- return result;
2040
- });
2041
-
2042
- var _stringToPath = stringToPath;
2043
-
2044
- /**
2045
- * A specialized version of `_.map` for arrays without support for iteratee
2046
- * shorthands.
2047
- *
2048
- * @private
2049
- * @param {Array} [array] The array to iterate over.
2050
- * @param {Function} iteratee The function invoked per iteration.
2051
- * @returns {Array} Returns the new mapped array.
2052
- */
2053
- function arrayMap(array, iteratee) {
2054
- var index = -1,
2055
- length = array == null ? 0 : array.length,
2056
- result = Array(length);
2057
-
2058
- while (++index < length) {
2059
- result[index] = iteratee(array[index], index, array);
2060
- }
2061
- return result;
2062
- }
2063
-
2064
- var _arrayMap = arrayMap;
2065
-
2066
- /** Used as references for various `Number` constants. */
2067
- var INFINITY$1 = 1 / 0;
2068
-
2069
- /** Used to convert symbols to primitives and strings. */
2070
- var symbolProto = _Symbol ? _Symbol.prototype : undefined,
2071
- symbolToString = symbolProto ? symbolProto.toString : undefined;
2072
-
2073
- /**
2074
- * The base implementation of `_.toString` which doesn't convert nullish
2075
- * values to empty strings.
2076
- *
2077
- * @private
2078
- * @param {*} value The value to process.
2079
- * @returns {string} Returns the string.
2080
- */
2081
- function baseToString(value) {
2082
- // Exit early for strings to avoid a performance hit in some environments.
2083
- if (typeof value == 'string') {
2084
- return value;
2085
- }
2086
- if (isArray_1(value)) {
2087
- // Recursively convert values (susceptible to call stack limits).
2088
- return _arrayMap(value, baseToString) + '';
2089
- }
2090
- if (isSymbol_1(value)) {
2091
- return symbolToString ? symbolToString.call(value) : '';
2092
- }
2093
- var result = (value + '');
2094
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
2095
- }
2096
-
2097
- var _baseToString = baseToString;
2098
-
2099
- /**
2100
- * Converts `value` to a string. An empty string is returned for `null`
2101
- * and `undefined` values. The sign of `-0` is preserved.
2102
- *
2103
- * @static
2104
- * @memberOf _
2105
- * @since 4.0.0
2106
- * @category Lang
2107
- * @param {*} value The value to convert.
2108
- * @returns {string} Returns the converted string.
2109
- * @example
2110
- *
2111
- * _.toString(null);
2112
- * // => ''
2113
- *
2114
- * _.toString(-0);
2115
- * // => '-0'
2116
- *
2117
- * _.toString([1, 2, 3]);
2118
- * // => '1,2,3'
2119
- */
2120
- function toString(value) {
2121
- return value == null ? '' : _baseToString(value);
2122
- }
2123
-
2124
- var toString_1 = toString;
2125
-
2126
- /**
2127
- * Casts `value` to a path array if it's not one.
2128
- *
2129
- * @private
2130
- * @param {*} value The value to inspect.
2131
- * @param {Object} [object] The object to query keys on.
2132
- * @returns {Array} Returns the cast property path array.
2133
- */
2134
- function castPath(value, object) {
2135
- if (isArray_1(value)) {
2136
- return value;
2137
- }
2138
- return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
2139
- }
2140
-
2141
- var _castPath = castPath;
2142
-
2143
- /** Used as references for various `Number` constants. */
2144
- var INFINITY = 1 / 0;
2145
-
2146
- /**
2147
- * Converts `value` to a string key if it's not a string or symbol.
2148
- *
2149
- * @private
2150
- * @param {*} value The value to inspect.
2151
- * @returns {string|symbol} Returns the key.
2152
- */
2153
- function toKey(value) {
2154
- if (typeof value == 'string' || isSymbol_1(value)) {
2155
- return value;
2156
- }
2157
- var result = (value + '');
2158
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
2159
- }
2160
-
2161
- var _toKey = toKey;
2162
-
2163
- /**
2164
- * The base implementation of `_.get` without support for default values.
2165
- *
2166
- * @private
2167
- * @param {Object} object The object to query.
2168
- * @param {Array|string} path The path of the property to get.
2169
- * @returns {*} Returns the resolved value.
2170
- */
2171
- function baseGet(object, path) {
2172
- path = _castPath(path, object);
2173
-
2174
- var index = 0,
2175
- length = path.length;
2176
-
2177
- while (object != null && index < length) {
2178
- object = object[_toKey(path[index++])];
2179
- }
2180
- return (index && index == length) ? object : undefined;
2181
- }
2182
-
2183
- var _baseGet = baseGet;
2184
-
2185
- /**
2186
- * Gets the value at `path` of `object`. If the resolved value is
2187
- * `undefined`, the `defaultValue` is returned in its place.
2188
- *
2189
- * @static
2190
- * @memberOf _
2191
- * @since 3.7.0
2192
- * @category Object
2193
- * @param {Object} object The object to query.
2194
- * @param {Array|string} path The path of the property to get.
2195
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
2196
- * @returns {*} Returns the resolved value.
2197
- * @example
2198
- *
2199
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
2200
- *
2201
- * _.get(object, 'a[0].b.c');
2202
- * // => 3
2203
- *
2204
- * _.get(object, ['a', '0', 'b', 'c']);
2205
- * // => 3
2206
- *
2207
- * _.get(object, 'a.b.c', 'default');
2208
- * // => 'default'
2209
- */
2210
- function get(object, path, defaultValue) {
2211
- var result = object == null ? undefined : _baseGet(object, path);
2212
- return result === undefined ? defaultValue : result;
2213
- }
2214
-
2215
- var get_1 = get;
2216
-
2217
- function _typeof(obj) {
2218
- "@babel/helpers - typeof";
2219
-
2220
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
2221
- return typeof obj;
2222
- } : function (obj) {
2223
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2224
- }, _typeof(obj);
2225
- }
2226
-
2227
- /**
2228
- * A specialized version of `_.reduce` for arrays without support for
2229
- * iteratee shorthands.
2230
- *
2231
- * @private
2232
- * @param {Array} [array] The array to iterate over.
2233
- * @param {Function} iteratee The function invoked per iteration.
2234
- * @param {*} [accumulator] The initial value.
2235
- * @param {boolean} [initAccum] Specify using the first element of `array` as
2236
- * the initial value.
2237
- * @returns {*} Returns the accumulated value.
2238
- */
2239
- function arrayReduce(array, iteratee, accumulator, initAccum) {
2240
- var index = -1,
2241
- length = array == null ? 0 : array.length;
2242
-
2243
- if (initAccum && length) {
2244
- accumulator = array[++index];
2245
- }
2246
- while (++index < length) {
2247
- accumulator = iteratee(accumulator, array[index], index, array);
2248
- }
2249
- return accumulator;
2250
- }
2251
-
2252
- var _arrayReduce = arrayReduce;
2253
-
2254
- /**
2255
- * The base implementation of `_.propertyOf` without support for deep paths.
2256
- *
2257
- * @private
2258
- * @param {Object} object The object to query.
2259
- * @returns {Function} Returns the new accessor function.
2260
- */
2261
- function basePropertyOf(object) {
2262
- return function(key) {
2263
- return object == null ? undefined : object[key];
2264
- };
2265
- }
2266
-
2267
- var _basePropertyOf = basePropertyOf;
2268
-
2269
- /** Used to map Latin Unicode letters to basic Latin letters. */
2270
- var deburredLetters = {
2271
- // Latin-1 Supplement block.
2272
- '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
2273
- '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
2274
- '\xc7': 'C', '\xe7': 'c',
2275
- '\xd0': 'D', '\xf0': 'd',
2276
- '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
2277
- '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
2278
- '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
2279
- '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
2280
- '\xd1': 'N', '\xf1': 'n',
2281
- '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
2282
- '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
2283
- '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
2284
- '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
2285
- '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
2286
- '\xc6': 'Ae', '\xe6': 'ae',
2287
- '\xde': 'Th', '\xfe': 'th',
2288
- '\xdf': 'ss',
2289
- // Latin Extended-A block.
2290
- '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
2291
- '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
2292
- '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
2293
- '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
2294
- '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
2295
- '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
2296
- '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
2297
- '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
2298
- '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
2299
- '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
2300
- '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
2301
- '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
2302
- '\u0134': 'J', '\u0135': 'j',
2303
- '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
2304
- '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
2305
- '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
2306
- '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
2307
- '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
2308
- '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
2309
- '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
2310
- '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
2311
- '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
2312
- '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
2313
- '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
2314
- '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
2315
- '\u0163': 't', '\u0165': 't', '\u0167': 't',
2316
- '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
2317
- '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
2318
- '\u0174': 'W', '\u0175': 'w',
2319
- '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
2320
- '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
2321
- '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
2322
- '\u0132': 'IJ', '\u0133': 'ij',
2323
- '\u0152': 'Oe', '\u0153': 'oe',
2324
- '\u0149': "'n", '\u017f': 's'
2325
- };
2326
-
2327
- /**
2328
- * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
2329
- * letters to basic Latin letters.
2330
- *
2331
- * @private
2332
- * @param {string} letter The matched letter to deburr.
2333
- * @returns {string} Returns the deburred letter.
2334
- */
2335
- var deburrLetter = _basePropertyOf(deburredLetters);
2336
-
2337
- var _deburrLetter = deburrLetter;
2338
-
2339
- /** Used to match Latin Unicode letters (excluding mathematical operators). */
2340
- var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
2341
-
2342
- /** Used to compose unicode character classes. */
2343
- var rsComboMarksRange$1 = '\\u0300-\\u036f',
2344
- reComboHalfMarksRange$1 = '\\ufe20-\\ufe2f',
2345
- rsComboSymbolsRange$1 = '\\u20d0-\\u20ff',
2346
- rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1;
2347
-
2348
- /** Used to compose unicode capture groups. */
2349
- var rsCombo$1 = '[' + rsComboRange$1 + ']';
2350
-
2351
- /**
2352
- * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
2353
- * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
2354
- */
2355
- var reComboMark = RegExp(rsCombo$1, 'g');
2356
-
2357
- /**
2358
- * Deburrs `string` by converting
2359
- * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
2360
- * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
2361
- * letters to basic Latin letters and removing
2362
- * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
2363
- *
2364
- * @static
2365
- * @memberOf _
2366
- * @since 3.0.0
2367
- * @category String
2368
- * @param {string} [string=''] The string to deburr.
2369
- * @returns {string} Returns the deburred string.
2370
- * @example
2371
- *
2372
- * _.deburr('déjà vu');
2373
- * // => 'deja vu'
2374
- */
2375
- function deburr(string) {
2376
- string = toString_1(string);
2377
- return string && string.replace(reLatin, _deburrLetter).replace(reComboMark, '');
2378
- }
2379
-
2380
- var deburr_1 = deburr;
2381
-
2382
- /** Used to match words composed of alphanumeric characters. */
2383
- var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
2384
-
2385
- /**
2386
- * Splits an ASCII `string` into an array of its words.
2387
- *
2388
- * @private
2389
- * @param {string} The string to inspect.
2390
- * @returns {Array} Returns the words of `string`.
2391
- */
2392
- function asciiWords(string) {
2393
- return string.match(reAsciiWord) || [];
2394
- }
2395
-
2396
- var _asciiWords = asciiWords;
2397
-
2398
- /** Used to detect strings that need a more robust regexp to match words. */
2399
- var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
2400
-
2401
- /**
2402
- * Checks if `string` contains a word composed of Unicode symbols.
2403
- *
2404
- * @private
2405
- * @param {string} string The string to inspect.
2406
- * @returns {boolean} Returns `true` if a word is found, else `false`.
2407
- */
2408
- function hasUnicodeWord(string) {
2409
- return reHasUnicodeWord.test(string);
2410
- }
2411
-
2412
- var _hasUnicodeWord = hasUnicodeWord;
2413
-
2414
- /** Used to compose unicode character classes. */
2415
- var rsAstralRange = '\\ud800-\\udfff',
2416
- rsComboMarksRange = '\\u0300-\\u036f',
2417
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
2418
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
2419
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
2420
- rsDingbatRange = '\\u2700-\\u27bf',
2421
- rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
2422
- rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
2423
- rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
2424
- rsPunctuationRange = '\\u2000-\\u206f',
2425
- rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
2426
- rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
2427
- rsVarRange = '\\ufe0e\\ufe0f',
2428
- rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
2429
-
2430
- /** Used to compose unicode capture groups. */
2431
- var rsApos$1 = "['\u2019]",
2432
- rsBreak = '[' + rsBreakRange + ']',
2433
- rsCombo = '[' + rsComboRange + ']',
2434
- rsDigits = '\\d+',
2435
- rsDingbat = '[' + rsDingbatRange + ']',
2436
- rsLower = '[' + rsLowerRange + ']',
2437
- rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
2438
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
2439
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
2440
- rsNonAstral = '[^' + rsAstralRange + ']',
2441
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
2442
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
2443
- rsUpper = '[' + rsUpperRange + ']',
2444
- rsZWJ = '\\u200d';
2445
-
2446
- /** Used to compose unicode regexes. */
2447
- var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
2448
- rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
2449
- rsOptContrLower = '(?:' + rsApos$1 + '(?:d|ll|m|re|s|t|ve))?',
2450
- rsOptContrUpper = '(?:' + rsApos$1 + '(?:D|LL|M|RE|S|T|VE))?',
2451
- reOptMod = rsModifier + '?',
2452
- rsOptVar = '[' + rsVarRange + ']?',
2453
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
2454
- rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
2455
- rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
2456
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
2457
- rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;
2458
-
2459
- /** Used to match complex or compound words. */
2460
- var reUnicodeWord = RegExp([
2461
- rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
2462
- rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
2463
- rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
2464
- rsUpper + '+' + rsOptContrUpper,
2465
- rsOrdUpper,
2466
- rsOrdLower,
2467
- rsDigits,
2468
- rsEmoji
2469
- ].join('|'), 'g');
2470
-
2471
- /**
2472
- * Splits a Unicode `string` into an array of its words.
2473
- *
2474
- * @private
2475
- * @param {string} The string to inspect.
2476
- * @returns {Array} Returns the words of `string`.
2477
- */
2478
- function unicodeWords(string) {
2479
- return string.match(reUnicodeWord) || [];
2480
- }
2481
-
2482
- var _unicodeWords = unicodeWords;
2483
-
2484
- /**
2485
- * Splits `string` into an array of its words.
2486
- *
2487
- * @static
2488
- * @memberOf _
2489
- * @since 3.0.0
2490
- * @category String
2491
- * @param {string} [string=''] The string to inspect.
2492
- * @param {RegExp|string} [pattern] The pattern to match words.
2493
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
2494
- * @returns {Array} Returns the words of `string`.
2495
- * @example
2496
- *
2497
- * _.words('fred, barney, & pebbles');
2498
- * // => ['fred', 'barney', 'pebbles']
2499
- *
2500
- * _.words('fred, barney, & pebbles', /[^, ]+/g);
2501
- * // => ['fred', 'barney', '&', 'pebbles']
2502
- */
2503
- function words(string, pattern, guard) {
2504
- string = toString_1(string);
2505
- pattern = guard ? undefined : pattern;
2506
-
2507
- if (pattern === undefined) {
2508
- return _hasUnicodeWord(string) ? _unicodeWords(string) : _asciiWords(string);
2509
- }
2510
- return string.match(pattern) || [];
2511
- }
2512
-
2513
- var words_1 = words;
2514
-
2515
- /** Used to compose unicode capture groups. */
2516
- var rsApos = "['\u2019]";
2517
-
2518
- /** Used to match apostrophes. */
2519
- var reApos = RegExp(rsApos, 'g');
2520
-
2521
- /**
2522
- * Creates a function like `_.camelCase`.
2523
- *
2524
- * @private
2525
- * @param {Function} callback The function to combine each word.
2526
- * @returns {Function} Returns the new compounder function.
2527
- */
2528
- function createCompounder(callback) {
2529
- return function(string) {
2530
- return _arrayReduce(words_1(deburr_1(string).replace(reApos, '')), callback, '');
2531
- };
2532
- }
2533
-
2534
- var _createCompounder = createCompounder;
2535
-
2536
- /**
2537
- * Converts `string`, as space separated words, to upper case.
2538
- *
2539
- * @static
2540
- * @memberOf _
2541
- * @since 4.0.0
2542
- * @category String
2543
- * @param {string} [string=''] The string to convert.
2544
- * @returns {string} Returns the upper cased string.
2545
- * @example
2546
- *
2547
- * _.upperCase('--foo-bar');
2548
- * // => 'FOO BAR'
2549
- *
2550
- * _.upperCase('fooBar');
2551
- * // => 'FOO BAR'
2552
- *
2553
- * _.upperCase('__foo_bar__');
2554
- * // => 'FOO BAR'
2555
- */
2556
- var upperCase = _createCompounder(function(result, word, index) {
2557
- return result + (index ? ' ' : '') + word.toUpperCase();
2558
- });
2559
-
2560
- var upperCase_1 = upperCase;
2561
-
2562
- /**
2563
- * Converts `string`, as space separated words, to lower case.
2564
- *
2565
- * @static
2566
- * @memberOf _
2567
- * @since 4.0.0
2568
- * @category String
2569
- * @param {string} [string=''] The string to convert.
2570
- * @returns {string} Returns the lower cased string.
2571
- * @example
2572
- *
2573
- * _.lowerCase('--Foo-Bar--');
2574
- * // => 'foo bar'
2575
- *
2576
- * _.lowerCase('fooBar');
2577
- * // => 'foo bar'
2578
- *
2579
- * _.lowerCase('__FOO_BAR__');
2580
- * // => 'foo bar'
2581
- */
2582
- var lowerCase = _createCompounder(function(result, word, index) {
2583
- return result + (index ? ' ' : '') + word.toLowerCase();
2584
- });
2585
-
2586
- var lowerCase_1 = lowerCase;
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
+ var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
7
+ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
8
+ var _getClassName = require('babel-plugin-react-css-modules/dist/browser/getClassName');
9
+ var _regeneratorRuntime = require('@babel/runtime/regenerator');
10
+ var lodash = require('lodash');
11
+ var PropTypes = require('prop-types');
12
+ var React = require('react');
13
+ var _typeof = require('@babel/runtime/helpers/typeof');
14
+ var Timeago = require('react-timeago');
15
+ var dateFnsTz = require('date-fns-tz');
16
+ var components = require('@quintype/components');
17
+ var reactRedux = require('react-redux');
18
+
19
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
20
+
21
+ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
22
+ var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator);
23
+ var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
24
+ var _getClassName__default = /*#__PURE__*/_interopDefaultLegacy(_getClassName);
25
+ var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
26
+ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
27
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
28
+ var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
29
+ var Timeago__default = /*#__PURE__*/_interopDefaultLegacy(Timeago);
2587
30
 
2588
31
  function truncate() {
2589
32
  var string = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
@@ -2611,7 +54,7 @@ var timestampToFormat = function timestampToFormat(value, unit, suffix, timestam
2611
54
  var localizedMonth = month;
2612
55
 
2613
56
  if (isUpperCase) {
2614
- localizedMonth = upperCase_1(month);
57
+ localizedMonth = lodash.upperCase(month);
2615
58
  }
2616
59
 
2617
60
  var year = dateTime.getFullYear();
@@ -2624,7 +67,7 @@ var timestampToFormat = function timestampToFormat(value, unit, suffix, timestam
2624
67
  var timetoShow;
2625
68
 
2626
69
  if (localizedMonths) {
2627
- localizedMonth = get_1(localizedMonths, [lowerCase_1(month)]) || month;
70
+ localizedMonth = lodash.get(localizedMonths, [lodash.lowerCase(month)]) || month;
2628
71
  }
2629
72
 
2630
73
  if (localizedMeridiem) {
@@ -2654,17 +97,17 @@ function formatter(value, unit, suffix, date, config) {
2654
97
  var showDateForUnits = ["day", "week", "month", "year"]; // suffix here refers to ago
2655
98
  // unit here refers to seconds, minute, minutes,...
2656
99
 
2657
- var localizedSuffix = get_1(config, ["localizedPublishTime", suffix]) || suffix;
100
+ var localizedSuffix = lodash.get(config, ["localizedPublishTime", suffix]) || suffix;
2658
101
  var localizedUnitOfTime;
2659
102
 
2660
103
  if (unit === "hour" && value > 23 || showDateForUnits.indexOf(unit) !== -1) {
2661
104
  return timestampToFormat(value, unit, suffix, date, config);
2662
105
  } else if (value > 1) {
2663
- localizedUnitOfTime = get_1(config, ["localizedPublishTime", "".concat(unit, "s")]) || "".concat(unit, "s");
106
+ localizedUnitOfTime = lodash.get(config, ["localizedPublishTime", "".concat(unit, "s")]) || "".concat(unit, "s");
2664
107
  return "".concat(value, " ").concat(localizedUnitOfTime, " ").concat(localizedSuffix);
2665
108
  }
2666
109
 
2667
- localizedUnitOfTime = get_1(config, ["localizedPublishTime", unit]) || unit;
110
+ localizedUnitOfTime = lodash.get(config, ["localizedPublishTime", unit]) || unit;
2668
111
  return "".concat(value, " ").concat(localizedUnitOfTime, " ").concat(localizedSuffix, " ");
2669
112
  }
2670
113
 
@@ -2717,10 +160,10 @@ var clientWidths = {
2717
160
  tablet: 1024
2718
161
  };
2719
162
  var clientWidth = function clientWidth(device) {
2720
- var foundDeviceWidth = get_1(clientWidths, device);
163
+ var foundDeviceWidth = lodash.get(clientWidths, device);
2721
164
 
2722
165
  if (foundDeviceWidth) {
2723
- return get_1(global, "document.documentElement.clientWidth") <= foundDeviceWidth;
166
+ return lodash.get(global, "document.documentElement.clientWidth") <= foundDeviceWidth;
2724
167
  }
2725
168
 
2726
169
  return false;
@@ -2750,7 +193,7 @@ var getSlug = function getSlug(collection) {
2750
193
  var isSection = collection.template === "section";
2751
194
 
2752
195
  if (isSection) {
2753
- var sectionId = get_1(collection, ["metadata", "section", "0", "id"], "");
196
+ var sectionId = lodash.get(collection, ["metadata", "section", "0", "id"], "");
2754
197
  var sections = config.sections;
2755
198
  var section = sections && sections.find(function (section) {
2756
199
  return section.id === sectionId;
@@ -2766,25 +209,25 @@ function isExternalStory() {
2766
209
  storyTemplate = _story$storyTemplate === void 0 ? "" : _story$storyTemplate,
2767
210
  _story$metadata = story.metadata,
2768
211
  metadata = _story$metadata === void 0 ? {} : _story$metadata;
2769
- return storyTemplate === "news-elsewhere" ? get_1(metadata, ["reference-url"], "") : "";
212
+ return storyTemplate === "news-elsewhere" ? lodash.get(metadata, ["reference-url"], "") : "";
2770
213
  } // Adds target='_blank' attribute to anchor tags if not present
2771
214
  var isEmpty = function isEmpty(value) {
2772
215
  return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
2773
- _typeof(value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
216
+ _typeof__default["default"](value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
2774
217
  };
2775
- PropTypes.shape({
2776
- "sketches-host": PropTypes.string,
2777
- "cdn-name": PropTypes.string,
2778
- "cdn-image": PropTypes.string
218
+ PropTypes__default["default"].shape({
219
+ "sketches-host": PropTypes__default["default"].string,
220
+ "cdn-name": PropTypes__default["default"].string,
221
+ "cdn-image": PropTypes__default["default"].string
2779
222
  });
2780
- PropTypes.shape({
2781
- headline: PropTypes.string,
2782
- "last-published-at": PropTypes.number,
2783
- subheadline: PropTypes.string
223
+ PropTypes__default["default"].shape({
224
+ headline: PropTypes__default["default"].string,
225
+ "last-published-at": PropTypes__default["default"].number,
226
+ subheadline: PropTypes__default["default"].string
2784
227
  });
2785
228
  var getStoryUrl = function getStoryUrl(story) {
2786
229
  var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
2787
- return get_1(story, ["story-template"]) === "news-elsewhere" ? get_1(story, ["metadata", "reference-url"], "") : story.url || defaultValue;
230
+ return lodash.get(story, ["story-template"]) === "news-elsewhere" ? lodash.get(story, ["metadata", "reference-url"], "") : story.url || defaultValue;
2788
231
  };
2789
232
  var generateNavigateSlug = function generateNavigateSlug() {
2790
233
  var collection = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -2815,11 +258,11 @@ var generateNavigateSlug = function generateNavigateSlug() {
2815
258
  return "/";
2816
259
  };
2817
260
  var getCollectionData = /*#__PURE__*/function () {
2818
- var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(collectionSlug) {
261
+ var _ref = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(collectionSlug) {
2819
262
  var mountAtPrefix,
2820
263
  result,
2821
264
  _args = arguments;
2822
- return regenerator.wrap(function _callee$(_context) {
265
+ return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
2823
266
  while (1) {
2824
267
  switch (_context.prev = _context.next) {
2825
268
  case 0:
@@ -2859,17 +302,17 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
2859
302
  var timezone = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
2860
303
 
2861
304
  if (timezone && template === "story") {
2862
- var zonedTime = timezone && utcToZonedTime(date, timezone);
2863
- var formatZonedTime = zonedTime && format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
305
+ var zonedTime = timezone && dateFnsTz.utcToZonedTime(date, timezone);
306
+ var formatZonedTime = zonedTime && dateFnsTz.format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
2864
307
  timeZone: timezone
2865
308
  });
2866
309
  var timeStamp = timestampToFormat("", "", "", date, config);
2867
- return /*#__PURE__*/React.createElement("time", {
310
+ return /*#__PURE__*/React__default["default"].createElement("time", {
2868
311
  dateTime: formatZonedTime
2869
312
  }, timeStamp);
2870
313
  }
2871
314
 
2872
- return /*#__PURE__*/React.createElement(Timeago, {
315
+ return /*#__PURE__*/React__default["default"].createElement(Timeago__default["default"], {
2873
316
  date: date,
2874
317
  formatter: function formatter(value, unit, suffix, date) {
2875
318
  return _formatter(value, unit, suffix, date, config);
@@ -2877,21 +320,21 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
2877
320
  });
2878
321
  };
2879
322
 
2880
- var StateContext = /*#__PURE__*/createContext(); // eslint-disable-next-line react/display-name
323
+ var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
2881
324
 
2882
325
  var StateProvider = function StateProvider(RowComponent) {
2883
326
  return function (props) {
2884
327
  return (
2885
328
  /*#__PURE__*/
2886
329
  // eslint-disable-next-line react/prop-types
2887
- React.createElement(StateContext.Provider, {
330
+ React__default["default"].createElement(StateContext.Provider, {
2888
331
  value: props.config
2889
- }, /*#__PURE__*/React.createElement(RowComponent, props))
332
+ }, /*#__PURE__*/React__default["default"].createElement(RowComponent, props))
2890
333
  );
2891
334
  };
2892
335
  };
2893
336
  var useStateValue = function useStateValue() {
2894
- return useContext(StateContext);
337
+ return React.useContext(StateContext);
2895
338
  };
2896
339
 
2897
340
  var _styleModuleImportMap$e = {
@@ -2909,22 +352,22 @@ var TimeStamp = function TimeStamp(_ref) {
2909
352
  _ref$config = _ref.config,
2910
353
  config = _ref$config === void 0 ? {} : _ref$config;
2911
354
  var configState = useStateValue() || {};
2912
- var isTime = get_1(config, ["showTime"], get_1(configState, ["showTime"], true));
355
+ var isTime = lodash.get(config, ["showTime"], lodash.get(configState, ["showTime"], true));
2913
356
  var time = story["last-published-at"] || story["first-published-at"];
2914
357
  var isBottomClasses = isBottom ? "bottom-fix" : "";
2915
358
  var textColor = getTextColor(configState.theme);
2916
- return /*#__PURE__*/React.createElement(React.Fragment, null, isTime && /*#__PURE__*/React.createElement("div", {
359
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
2917
360
  "data-test-id": "publish-time",
2918
- className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$e)
2919
- }, /*#__PURE__*/React.createElement("div", {
361
+ className: "time arr--publish-time " + _getClassName__default["default"]("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$e)
362
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2920
363
  className: "timestamp-m_time-wrapper__3O2lM"
2921
364
  }, getTimeStamp(time, formatter, config))));
2922
365
  };
2923
366
  TimeStamp.propTypes = {
2924
367
  /** The Story Object from the API response */
2925
- story: PropTypes.object,
2926
- isBottom: PropTypes.bool,
2927
- config: PropTypes.object
368
+ story: PropTypes__default["default"].object,
369
+ isBottom: PropTypes__default["default"].bool,
370
+ config: PropTypes__default["default"].object
2928
371
  };
2929
372
 
2930
373
  var _styleModuleImportMap$d = {
@@ -2950,9 +393,9 @@ var AuthorBase = function AuthorBase(_ref) {
2950
393
  _ref$config = _ref.config,
2951
394
  config = _ref$config === void 0 ? {} : _ref$config;
2952
395
  var configData = useStateValue() || {};
2953
- var isAuthor = get_1(configData, ["showAuthor"], true);
396
+ var isAuthor = lodash.get(configData, ["showAuthor"], true);
2954
397
 
2955
- var _get = get_1(story, ["authors", "0"], ""),
398
+ var _get = lodash.get(story, ["authors", "0"], ""),
2956
399
  avatarUrl = _get["avatar-url"],
2957
400
  avatarS3Key = _get["avatar-s3-key"],
2958
401
  authorName = _get.name,
@@ -2960,17 +403,17 @@ var AuthorBase = function AuthorBase(_ref) {
2960
403
 
2961
404
  var isBottomClasses = isBottom ? "bottom-fix" : "";
2962
405
  var textColor = getTextColor(configData.theme);
2963
- var mountAt = get_1(config, ["mountAt"], "");
406
+ var mountAt = lodash.get(config, ["mountAt"], "");
2964
407
 
2965
408
  var authorImage = function authorImage(dir) {
2966
409
  if (!avatarUrl && !avatarS3Key) {
2967
410
  return null;
2968
411
  }
2969
412
 
2970
- return /*#__PURE__*/React.createElement("div", {
413
+ return /*#__PURE__*/React__default["default"].createElement("div", {
2971
414
  "data-test-id": "author-image",
2972
- className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$d)
2973
- }, /*#__PURE__*/React.createElement("figure", null, avatarS3Key ? /*#__PURE__*/React.createElement(ResponsiveImage, {
415
+ className: _getClassName__default["default"]("author-image ".concat(dir, "-image"), _styleModuleImportMap$d)
416
+ }, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
2974
417
  slug: avatarS3Key,
2975
418
  "aspect-ratio": [1, 1],
2976
419
  defaultWidth: 400,
@@ -2978,49 +421,49 @@ var AuthorBase = function AuthorBase(_ref) {
2978
421
  auto: ["format", "compress"]
2979
422
  },
2980
423
  alt: authorName
2981
- }) : /*#__PURE__*/React.createElement("img", {
424
+ }) : /*#__PURE__*/React__default["default"].createElement("img", {
2982
425
  src: avatarUrl
2983
426
  })));
2984
427
  };
2985
428
 
2986
429
  var isPrefix = function isPrefix(dir) {
2987
430
  if (prefix) {
2988
- return /*#__PURE__*/React.createElement("div", {
2989
- className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$d)
431
+ return /*#__PURE__*/React__default["default"].createElement("div", {
432
+ className: "arr-author-prefix " + _getClassName__default["default"]("prefix ".concat(textColor), _styleModuleImportMap$d)
2990
433
  }, prefix);
2991
434
  }
2992
435
 
2993
436
  return !hideAuthorImage && authorImage(dir);
2994
437
  };
2995
438
 
2996
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement(Link, {
439
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
2997
440
  href: "".concat(mountAt, "/author/") + slug,
2998
441
  "aria-label": "author-name",
2999
- className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$d)
3000
- }, isPrefix("ltr"), /*#__PURE__*/React.createElement("div", {
442
+ className: "author-name arr-author-name arrow-component " + _getClassName__default["default"]("author ".concat(isBottomClasses), _styleModuleImportMap$d)
443
+ }, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
3001
444
  "data-test-id": "author-name",
3002
- className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$d)
445
+ className: "author-name " + _getClassName__default["default"]("author-name ".concat(textColor), _styleModuleImportMap$d)
3003
446
  }, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
3004
447
  };
3005
448
 
3006
449
  function mapStateToProps$1(state) {
3007
450
  return {
3008
- config: get_1(state, ["qt", "config"], {})
451
+ config: lodash.get(state, ["qt", "config"], {})
3009
452
  };
3010
453
  }
3011
454
 
3012
- var Author = connect(mapStateToProps$1)(AuthorBase);
455
+ var Author = reactRedux.connect(mapStateToProps$1)(AuthorBase);
3013
456
  AuthorBase.propTypes = {
3014
457
  /** The Story Object from the API response */
3015
- story: PropTypes.object.isRequired,
458
+ story: PropTypes__default["default"].object.isRequired,
3016
459
 
3017
460
  /** Hide Author Avatar Image */
3018
- hideAuthorImage: PropTypes.bool,
461
+ hideAuthorImage: PropTypes__default["default"].bool,
3019
462
  // fix Author bottom of the storyCard
3020
- isBottom: PropTypes.bool,
463
+ isBottom: PropTypes__default["default"].bool,
3021
464
  // fix prefix before the author name
3022
- prefix: PropTypes.string,
3023
- config: PropTypes.object
465
+ prefix: PropTypes__default["default"].string,
466
+ config: PropTypes__default["default"].object
3024
467
  };
3025
468
  AuthorBase.defaultProps = {
3026
469
  hideAuthorImage: false,
@@ -3041,14 +484,14 @@ var Dot = function Dot(_ref) {
3041
484
  height = _ref$height === void 0 ? "3px" : _ref$height,
3042
485
  _ref$color = _ref.color,
3043
486
  color = _ref$color === void 0 ? "light" : _ref$color;
3044
- return /*#__PURE__*/React.createElement("div", {
3045
- className: _getClassName(color, _styleModuleImportMap$c)
3046
- }, /*#__PURE__*/React.createElement("svg", {
487
+ return /*#__PURE__*/React__default["default"].createElement("div", {
488
+ className: _getClassName__default["default"](color, _styleModuleImportMap$c)
489
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
3047
490
  xmlns: "http://www.w3.org/2000/svg",
3048
491
  width: width,
3049
492
  height: height,
3050
493
  viewBox: "0 0 3 3"
3051
- }, /*#__PURE__*/React.createElement("circle", {
494
+ }, /*#__PURE__*/React__default["default"].createElement("circle", {
3052
495
  cx: "87",
3053
496
  cy: "9",
3054
497
  r: "1",
@@ -3059,9 +502,9 @@ var Dot = function Dot(_ref) {
3059
502
  };
3060
503
  Dot.propTypes = {
3061
504
  /** height , width and color of the dot icon */
3062
- color: PropTypes.string,
3063
- width: PropTypes.string,
3064
- height: PropTypes.string
505
+ color: PropTypes__default["default"].string,
506
+ width: PropTypes__default["default"].string,
507
+ height: PropTypes__default["default"].string
3065
508
  };
3066
509
 
3067
510
  var _styleModuleImportMap$b = {
@@ -3077,22 +520,22 @@ var Divider = function Divider(_ref) {
3077
520
  height = _ref$height === void 0 ? "10" : _ref$height,
3078
521
  _ref$color = _ref.color,
3079
522
  color = _ref$color === void 0 ? "light" : _ref$color;
3080
- return /*#__PURE__*/React.createElement("div", {
3081
- className: _getClassName(color, _styleModuleImportMap$b)
3082
- }, /*#__PURE__*/React.createElement("svg", {
523
+ return /*#__PURE__*/React__default["default"].createElement("div", {
524
+ className: _getClassName__default["default"](color, _styleModuleImportMap$b)
525
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
3083
526
  xmlns: "http://www.w3.org/2000/svg",
3084
527
  width: width,
3085
528
  height: height
3086
- }, /*#__PURE__*/React.createElement("path", {
529
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3087
530
  fill: "inherit",
3088
531
  d: "M0 0h1v10H0z"
3089
532
  })));
3090
533
  };
3091
534
  Divider.propTypes = {
3092
535
  /** height , width and color of the dot icon */
3093
- color: PropTypes.string,
3094
- width: PropTypes.string,
3095
- height: PropTypes.string
536
+ color: PropTypes__default["default"].string,
537
+ width: PropTypes__default["default"].string,
538
+ height: PropTypes__default["default"].string
3096
539
  };
3097
540
 
3098
541
  var _styleModuleImportMap$a = {
@@ -3110,28 +553,28 @@ var ReadTime = function ReadTime(_ref) {
3110
553
  _ref$isLightTheme = _ref.isLightTheme,
3111
554
  isLightTheme = _ref$isLightTheme === void 0 ? false : _ref$isLightTheme;
3112
555
  var config = useStateValue() || {};
3113
- var showReadTime = get_1(config, ["showReadTime"]) || get_1(opts, ["showReadTime"], true);
3114
- var readTime = get_1(story, ["read-time"], 0);
556
+ var showReadTime = lodash.get(config, ["showReadTime"]) || lodash.get(opts, ["showReadTime"], true);
557
+ var readTime = lodash.get(story, ["read-time"], 0);
3115
558
  var textColor = isLightTheme ? "light" : getTextColor(config.theme);
3116
559
  if (!showReadTime || !readTime) return null;
3117
- var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
3118
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
560
+ var timeToRead = lodash.get(opts, ["localizedTimeToRead"]) || "min read";
561
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3119
562
  "data-test-id": "read-time",
3120
- className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$a)
3121
- }, /*#__PURE__*/React.createElement("span", {
563
+ className: "arrow-component arr--read-time " + _getClassName__default["default"]("read-time-wrapper ".concat(textColor), _styleModuleImportMap$a)
564
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
3122
565
  className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
3123
- }, /*#__PURE__*/React.createElement(Dot, {
566
+ }, /*#__PURE__*/React__default["default"].createElement(Dot, {
3124
567
  color: textColor
3125
- })), /*#__PURE__*/React.createElement("span", null, readTime, " ", timeToRead)));
568
+ })), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
3126
569
  };
3127
570
  ReadTime.propTypes = {
3128
- story: PropTypes.shape({
3129
- "read-time": PropTypes.number
571
+ story: PropTypes__default["default"].shape({
572
+ "read-time": PropTypes__default["default"].number
3130
573
  }),
3131
- opts: PropTypes.shape({
3132
- showReadTime: PropTypes.bool
574
+ opts: PropTypes__default["default"].shape({
575
+ showReadTime: PropTypes__default["default"].bool
3133
576
  }),
3134
- isLightTheme: PropTypes.bool
577
+ isLightTheme: PropTypes__default["default"].bool
3135
578
  };
3136
579
 
3137
580
  var _styleModuleImportMap$9 = {
@@ -3153,42 +596,42 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3153
596
  config = _ref$config === void 0 ? {} : _ref$config,
3154
597
  isLightTheme = _ref.isLightTheme;
3155
598
  var configState = useStateValue() || {};
3156
- var isAuthor = get_1(config, ["showAuthor"], get_1(configState, ["showAuthor"], true));
3157
- var isTime = get_1(config, ["showTime"], get_1(configState, ["showTime"], true));
3158
- var isReadTime = get_1(configState, ["showReadTime"], true);
599
+ var isAuthor = lodash.get(config, ["showAuthor"], lodash.get(configState, ["showAuthor"], true));
600
+ var isTime = lodash.get(config, ["showTime"], lodash.get(configState, ["showTime"], true));
601
+ var isReadTime = lodash.get(configState, ["showReadTime"], true);
3159
602
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3160
603
  var seperatorStyle = separator === "dot" ? "dot" : "dash";
3161
604
  var textColor = isLightTheme ? "light" : getTextColor(configState.theme);
3162
605
 
3163
606
  var getSeparator = function getSeparator() {
3164
607
  if (separator === "divider") {
3165
- return /*#__PURE__*/React.createElement(Divider, {
608
+ return /*#__PURE__*/React__default["default"].createElement(Divider, {
3166
609
  color: textColor
3167
610
  });
3168
611
  }
3169
612
 
3170
- return /*#__PURE__*/React.createElement(Dot, {
613
+ return /*#__PURE__*/React__default["default"].createElement(Dot, {
3171
614
  color: textColor
3172
615
  });
3173
616
  };
3174
617
 
3175
618
  var getTimeStamp = function getTimeStamp() {
3176
619
  if (!isTime) return null;
3177
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement("span", {
3178
- className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$9)
3179
- }, getSeparator()), /*#__PURE__*/React.createElement(TimeStamp, {
620
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
621
+ className: "arr-separator " + _getClassName__default["default"]("".concat(seperatorStyle), _styleModuleImportMap$9)
622
+ }, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
3180
623
  story: story,
3181
624
  config: config
3182
- }), isReadTime && /*#__PURE__*/React.createElement(ReadTime, {
625
+ }), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
3183
626
  story: story,
3184
627
  opts: config,
3185
628
  isLightTheme: isLightTheme
3186
629
  }));
3187
630
  };
3188
631
 
3189
- return /*#__PURE__*/React.createElement("div", {
3190
- className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$9)
3191
- }, isAuthor ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Author, {
632
+ return /*#__PURE__*/React__default["default"].createElement("div", {
633
+ className: "arr--author-time " + _getClassName__default["default"]("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$9)
634
+ }, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
3192
635
  story: story,
3193
636
  isBottom: true,
3194
637
  hideAuthorImage: hideAuthorImage,
@@ -3196,19 +639,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3196
639
  }), getTimeStamp()) : getTimeStamp());
3197
640
  };
3198
641
  AuthorWithTime.propTypes = {
3199
- story: PropTypes.object,
642
+ story: PropTypes__default["default"].object,
3200
643
 
3201
644
  /** Style of separator between the Author & Timestamp */
3202
- separator: PropTypes.oneOf(["dot", "divider"]),
645
+ separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
3203
646
 
3204
647
  /** hide the author image */
3205
- hideAuthorImage: PropTypes.bool,
648
+ hideAuthorImage: PropTypes__default["default"].bool,
3206
649
  // fix author and time at the end
3207
- isBottom: PropTypes.bool,
650
+ isBottom: PropTypes__default["default"].bool,
3208
651
  // fix prefix before the author name
3209
- prefix: PropTypes.string,
3210
- config: PropTypes.object,
3211
- isLightTheme: PropTypes.bool
652
+ prefix: PropTypes__default["default"].string,
653
+ config: PropTypes__default["default"].object,
654
+ isLightTheme: PropTypes__default["default"].bool
3212
655
  };
3213
656
  AuthorWithTime.defaultProps = {
3214
657
  separator: "dot",
@@ -3243,7 +686,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
3243
686
  _ref$navigate = _ref.navigate,
3244
687
  navigate = _ref$navigate === void 0 ? true : _ref$navigate;
3245
688
  var collectionTitle = useStateValue() || {};
3246
- var showRowTitle = get_1(collectionTitle, ["showRowTitle"], true);
689
+ var showRowTitle = lodash.get(collectionTitle, ["showRowTitle"], true);
3247
690
  var supportedTemplates = ["borderLeft", "borderBottom", "crossLine", "borderBottomFull"];
3248
691
  var templateStyle = supportedTemplates.includes(collectionNameTemplate) ? " collection-".concat(collectionNameTemplate) : "";
3249
692
  var slug = navigate && collection && getSlug(collection, config) || "";
@@ -3254,7 +697,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
3254
697
  var borderBottomFullStyle = templateStyle.includes("collection-borderBottomFull") ? "4px solid ".concat(CollectionNameBorderColor) : "";
3255
698
 
3256
699
  var borderBottomStyle = function borderBottomStyle() {
3257
- return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React.createElement("div", {
700
+ return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React__default["default"].createElement("div", {
3258
701
  className: "collection-name-m_border-bottom__1MnlV",
3259
702
  style: {
3260
703
  borderBottom: "4px solid ".concat(CollectionNameBorderColor)
@@ -3314,40 +757,40 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
3314
757
  }
3315
758
  };
3316
759
 
3317
- return /*#__PURE__*/React.createElement(React.Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React.createElement("div", {
760
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React__default["default"].createElement("div", {
3318
761
  style: {
3319
762
  borderBottom: borderBottomFullStyle
3320
763
  },
3321
764
  "data-test-id": "collection-name",
3322
- className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$8)
3323
- }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React.createElement("span", {
765
+ className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName__default["default"]("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$8)
766
+ }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
3324
767
  className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
3325
768
  style: {
3326
769
  color: CollectionNameBorderColor,
3327
770
  fontSize: getBorderHeight()
3328
771
  }
3329
- }), slug && !slug.includes(undefined) ? /*#__PURE__*/React.createElement(Link, {
772
+ }), slug && !slug.includes(undefined) ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
3330
773
  href: slug,
3331
774
  "aria-label": "collection-name"
3332
- }, /*#__PURE__*/React.createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React.createElement(HeaderTag, null, collectionName), borderBottomStyle()));
775
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName), borderBottomStyle()));
3333
776
  };
3334
777
  CollectionNameBase.propTypes = {
3335
778
  /** Collection name border color */
3336
- collectionNameBorderColor: PropTypes$1.string,
779
+ collectionNameBorderColor: PropTypes.PropTypes.string,
3337
780
 
3338
781
  /** The Collection Object from the API response */
3339
- collection: PropTypes$1.object,
782
+ collection: PropTypes.PropTypes.object,
3340
783
 
3341
784
  /** The publisher config from the API response */
3342
- config: PropTypes$1.object,
785
+ config: PropTypes.PropTypes.object,
3343
786
 
3344
787
  /** The style template for the component */
3345
- collectionNameTemplate: PropTypes$1.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
788
+ collectionNameTemplate: PropTypes.PropTypes.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
3346
789
 
3347
790
  /** Header tags ranging h1-h6, where h[headerLevel] */
3348
- headerLevel: PropTypes$1.string,
3349
- customCollectionName: PropTypes$1.string,
3350
- navigate: PropTypes$1.bool
791
+ headerLevel: PropTypes.PropTypes.string,
792
+ customCollectionName: PropTypes.PropTypes.string,
793
+ navigate: PropTypes.PropTypes.bool
3351
794
  };
3352
795
  CollectionNameBase.defaultProps = {
3353
796
  collectionNameTemplate: "",
@@ -3356,11 +799,11 @@ CollectionNameBase.defaultProps = {
3356
799
 
3357
800
  function mapStateToProps(state) {
3358
801
  return {
3359
- config: get_1(state, ["qt", "config"], {})
802
+ config: lodash.get(state, ["qt", "config"], {})
3360
803
  };
3361
804
  }
3362
805
 
3363
- var CollectionName = connect(mapStateToProps)(CollectionNameBase);
806
+ var CollectionName = reactRedux.connect(mapStateToProps)(CollectionNameBase);
3364
807
 
3365
808
  var CrownIcon = function CrownIcon(_ref) {
3366
809
  var height = _ref.height,
@@ -3368,7 +811,7 @@ var CrownIcon = function CrownIcon(_ref) {
3368
811
  _ref$color = _ref.color,
3369
812
  color = _ref$color === void 0 ? "#D8D8D8" : _ref$color,
3370
813
  positionTop = _ref.positionTop;
3371
- return /*#__PURE__*/React.createElement("svg", {
814
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3372
815
  xmlns: "http://www.w3.org/2000/svg",
3373
816
  width: width,
3374
817
  height: height,
@@ -3377,28 +820,28 @@ var CrownIcon = function CrownIcon(_ref) {
3377
820
  position: "relative",
3378
821
  top: positionTop
3379
822
  }
3380
- }, /*#__PURE__*/React.createElement("g", {
823
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3381
824
  fill: "none",
3382
825
  fillRule: "evenodd",
3383
826
  stroke: "none",
3384
827
  strokeWidth: "1"
3385
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
828
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3386
829
  transform: "translate(8 8)"
3387
- }, /*#__PURE__*/React.createElement("path", {
830
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3388
831
  d: "M0 0H24V24H0z"
3389
- }), /*#__PURE__*/React.createElement("g", {
832
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
3390
833
  fill: color,
3391
834
  fillRule: "nonzero",
3392
835
  transform: "translate(0 2)"
3393
- }, /*#__PURE__*/React.createElement("path", {
836
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3394
837
  d: "M21.043 19.553c0-.743-.601-1.344-1.344-1.344h-15.4a1.343 1.343 0 100 2.688h15.4c.743 0 1.344-.603 1.344-1.344zM1.598 8.673c.022 0 .042 0 .064-.003l2.131 7.713h16.411l2.132-7.713c.022 0 .041.003.063.003a1.599 1.599 0 10-1.52-1.108L17.025 9.82 12.882 2.95a1.599 1.599 0 10-1.765 0L6.976 9.82 3.121 7.565a1.599 1.599 0 10-1.523 1.107z"
3395
838
  }))))));
3396
839
  };
3397
840
  CrownIcon.propTypes = {
3398
- height: PropTypes.string,
3399
- width: PropTypes.string,
3400
- color: PropTypes.string,
3401
- positionTop: PropTypes.string
841
+ height: PropTypes__default["default"].string,
842
+ width: PropTypes__default["default"].string,
843
+ color: PropTypes__default["default"].string,
844
+ positionTop: PropTypes__default["default"].string
3402
845
  };
3403
846
 
3404
847
  var KeyIcon = function KeyIcon(_ref) {
@@ -3407,7 +850,7 @@ var KeyIcon = function KeyIcon(_ref) {
3407
850
  _ref$color = _ref.color,
3408
851
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3409
852
  positionTop = _ref.positionTop;
3410
- return /*#__PURE__*/React.createElement("svg", {
853
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3411
854
  xmlns: "http://www.w3.org/2000/svg",
3412
855
  width: width,
3413
856
  height: height,
@@ -3416,16 +859,16 @@ var KeyIcon = function KeyIcon(_ref) {
3416
859
  position: "relative",
3417
860
  top: positionTop
3418
861
  }
3419
- }, /*#__PURE__*/React.createElement("g", {
862
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3420
863
  fill: "none",
3421
864
  fillRule: "evenodd",
3422
865
  stroke: "none",
3423
866
  strokeWidth: "1"
3424
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
867
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3425
868
  transform: "translate(8 8)"
3426
- }, /*#__PURE__*/React.createElement("path", {
869
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3427
870
  d: "M0 0H24V24H0z"
3428
- }), /*#__PURE__*/React.createElement("path", {
871
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
3429
872
  fill: color,
3430
873
  fillRule: "nonzero",
3431
874
  d: "M12.71 4.364A6.54 6.54 0 000 6.545a6.54 6.54 0 0012.71 2.182h4.745v4.364h4.363V8.727H24V4.364H12.71zM6.544 8.727a2.181 2.181 0 110-4.362 2.181 2.181 0 010 4.362z",
@@ -3433,10 +876,10 @@ var KeyIcon = function KeyIcon(_ref) {
3433
876
  })))));
3434
877
  };
3435
878
  KeyIcon.propTypes = {
3436
- height: PropTypes.string,
3437
- width: PropTypes.string,
3438
- color: PropTypes.string,
3439
- positionTop: PropTypes.string
879
+ height: PropTypes__default["default"].string,
880
+ width: PropTypes__default["default"].string,
881
+ color: PropTypes__default["default"].string,
882
+ positionTop: PropTypes__default["default"].string
3440
883
  };
3441
884
 
3442
885
  var LockIcon = function LockIcon(_ref) {
@@ -3445,7 +888,7 @@ var LockIcon = function LockIcon(_ref) {
3445
888
  _ref$color = _ref.color,
3446
889
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3447
890
  positionTop = _ref.positionTop;
3448
- return /*#__PURE__*/React.createElement("svg", {
891
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3449
892
  xmlns: "http://www.w3.org/2000/svg",
3450
893
  width: width,
3451
894
  height: height,
@@ -3454,28 +897,28 @@ var LockIcon = function LockIcon(_ref) {
3454
897
  position: "relative",
3455
898
  top: positionTop
3456
899
  }
3457
- }, /*#__PURE__*/React.createElement("g", {
900
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3458
901
  fill: "none",
3459
902
  fillRule: "evenodd",
3460
903
  stroke: "none",
3461
904
  strokeWidth: "1"
3462
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
905
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3463
906
  transform: "translate(8 8)"
3464
- }, /*#__PURE__*/React.createElement("path", {
907
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3465
908
  d: "M0 0H24V24H0z"
3466
- }), /*#__PURE__*/React.createElement("g", {
909
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
3467
910
  fill: color,
3468
911
  fillRule: "nonzero",
3469
912
  transform: "translate(3)"
3470
- }, /*#__PURE__*/React.createElement("path", {
913
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3471
914
  d: "M15.692 9h-.747V6c0-3.31-2.681-6-5.978-6C5.67 0 2.989 2.69 2.989 6v3h-.747A2.249 2.249 0 000 11.25v10.5A2.249 2.249 0 002.242 24h13.45a2.249 2.249 0 002.242-2.25v-10.5A2.249 2.249 0 0015.692 9zM4.982 6c0-2.206 1.787-4 3.985-4s3.985 1.794 3.985 4v3h-7.97V6z"
3472
915
  }))))));
3473
916
  };
3474
917
  LockIcon.propTypes = {
3475
- height: PropTypes.string,
3476
- width: PropTypes.string,
3477
- color: PropTypes.string,
3478
- positionTop: PropTypes.string
918
+ height: PropTypes__default["default"].string,
919
+ width: PropTypes__default["default"].string,
920
+ color: PropTypes__default["default"].string,
921
+ positionTop: PropTypes__default["default"].string
3479
922
  };
3480
923
 
3481
924
  var StarIcon = function StarIcon(_ref) {
@@ -3485,7 +928,7 @@ var StarIcon = function StarIcon(_ref) {
3485
928
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3486
929
  _ref$positionTop = _ref.positionTop,
3487
930
  positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
3488
- return /*#__PURE__*/React.createElement("svg", {
931
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3489
932
  xmlns: "http://www.w3.org/2000/svg",
3490
933
  width: width,
3491
934
  height: height,
@@ -3494,21 +937,21 @@ var StarIcon = function StarIcon(_ref) {
3494
937
  position: "relative",
3495
938
  top: positionTop
3496
939
  }
3497
- }, /*#__PURE__*/React.createElement("g", {
940
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3498
941
  fill: "none",
3499
942
  fillRule: "evenodd",
3500
943
  stroke: "none",
3501
944
  strokeWidth: "1"
3502
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
945
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
3503
946
  fill: color,
3504
947
  d: "M20 26L12.946577 29.7082039 14.2936609 21.854102 8.5873218 16.2917961 16.4732885 15.145898 20 8 23.5267115 15.145898 31.4126782 16.2917961 25.7063391 21.854102 27.053423 29.7082039z"
3505
948
  }))));
3506
949
  };
3507
950
  StarIcon.propTypes = {
3508
- height: PropTypes.string,
3509
- width: PropTypes.string,
3510
- color: PropTypes.string,
3511
- positionTop: PropTypes.string
951
+ height: PropTypes__default["default"].string,
952
+ width: PropTypes__default["default"].string,
953
+ color: PropTypes__default["default"].string,
954
+ positionTop: PropTypes__default["default"].string
3512
955
  };
3513
956
 
3514
957
  var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
@@ -3520,7 +963,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3520
963
 
3521
964
  switch (iconType) {
3522
965
  case "crown":
3523
- return /*#__PURE__*/React.createElement(CrownIcon, {
966
+ return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
3524
967
  width: width,
3525
968
  height: height,
3526
969
  color: color,
@@ -3528,7 +971,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3528
971
  });
3529
972
 
3530
973
  case "lock":
3531
- return /*#__PURE__*/React.createElement(LockIcon, {
974
+ return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
3532
975
  width: width,
3533
976
  height: height,
3534
977
  color: color,
@@ -3536,7 +979,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3536
979
  });
3537
980
 
3538
981
  case "key":
3539
- return /*#__PURE__*/React.createElement(KeyIcon, {
982
+ return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
3540
983
  width: width,
3541
984
  height: height,
3542
985
  color: color,
@@ -3544,7 +987,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3544
987
  });
3545
988
 
3546
989
  default:
3547
- return /*#__PURE__*/React.createElement(StarIcon, {
990
+ return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
3548
991
  width: width,
3549
992
  height: height,
3550
993
  color: color,
@@ -3553,21 +996,21 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3553
996
  }
3554
997
  };
3555
998
  PremiumStoryIcon.propTypes = {
3556
- width: PropTypes.string,
3557
- height: PropTypes.string,
3558
- color: PropTypes.string,
3559
- iconType: PropTypes.string,
3560
- positionTop: PropTypes.string
999
+ width: PropTypes__default["default"].string,
1000
+ height: PropTypes__default["default"].string,
1001
+ color: PropTypes__default["default"].string,
1002
+ iconType: PropTypes__default["default"].string,
1003
+ positionTop: PropTypes__default["default"].string
3561
1004
  };
3562
1005
 
3563
1006
  function LiveIcon() {
3564
- return /*#__PURE__*/React.createElement("svg", {
1007
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3565
1008
  className: "live-icon",
3566
1009
  xmlns: "http://www.w3.org/2000/svg",
3567
1010
  width: "25",
3568
1011
  height: "24",
3569
1012
  viewBox: "0 0 25 24"
3570
- }, /*#__PURE__*/React.createElement("path", {
1013
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3571
1014
  fill: "#ff5858",
3572
1015
  d: "M12 18a6 6 0 110-12 6 6 0 010 12zm0 2.5a8.5 8.5 0 110-17 8.5 8.5 0 010 17zm0-1a7.5 7.5 0 100-15 7.5 7.5 0 000 15z"
3573
1016
  }));
@@ -3596,8 +1039,8 @@ var Headline = function Headline(_ref) {
3596
1039
  enablePremiumStoryIcon = _premiumStoryIconConf3 === void 0 ? false : _premiumStoryIconConf3,
3597
1040
  _premiumStoryIconConf4 = premiumStoryIconConfig.showLiveIcon,
3598
1041
  showLiveIcon = _premiumStoryIconConf4 === void 0 ? false : _premiumStoryIconConf4;
3599
- var alternateHeadline = get_1(story, ["alternative", "home", "default", "headline"]);
3600
- var premiumStory = enablePremiumStoryIcon && get_1(story, ["access"]) === "subscription";
1042
+ var alternateHeadline = lodash.get(story, ["alternative", "home", "default", "headline"]);
1043
+ var premiumStory = enablePremiumStoryIcon && lodash.get(story, ["access"]) === "subscription";
3601
1044
  var headline = alternateHeadline || story.headline;
3602
1045
  var HeaderTag = "h" + headerLevel;
3603
1046
 
@@ -3623,38 +1066,38 @@ var Headline = function Headline(_ref) {
3623
1066
  var textColor = getTextColor(configData.theme);
3624
1067
  var wrapperClass = premiumStory ? "wrapper" : "";
3625
1068
  var iconSize = "24px";
3626
- var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
3627
- return /*#__PURE__*/React.createElement("div", {
1069
+ var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !lodash.get(story, ["metadata", "is-closed"], false);
1070
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3628
1071
  "data-test-id": "headline",
3629
- className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$7)
3630
- }, premiumStory && /*#__PURE__*/React.createElement(PremiumStoryIcon, {
1072
+ className: "arrow-component arr--headline " + _getClassName__default["default"](wrapperClass, _styleModuleImportMap$7)
1073
+ }, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
3631
1074
  width: iconSize,
3632
1075
  height: iconSize,
3633
1076
  color: iconColor,
3634
1077
  iconType: iconStyle,
3635
1078
  positionTop: positionHeadline()
3636
- }), isLink ? /*#__PURE__*/React.createElement(Link, {
1079
+ }), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
3637
1080
  href: getStoryUrl(story, "/".concat(story.slug)),
3638
1081
  externalLink: isExternalStory(story),
3639
1082
  "aria-label": "headline"
3640
- }, /*#__PURE__*/React.createElement(HeaderTag, {
3641
- className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$7)
3642
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline)) : /*#__PURE__*/React.createElement(HeaderTag, {
3643
- className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$7)
3644
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline));
1083
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
1084
+ className: _getClassName__default["default"]("headline ".concat(textColor), _styleModuleImportMap$7)
1085
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
1086
+ className: _getClassName__default["default"]("headline ".concat(textColor), _styleModuleImportMap$7)
1087
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
3645
1088
  };
3646
1089
  Headline.propTypes = {
3647
1090
  /** The Story Object from the API response */
3648
- story: PropTypes.object.isRequired,
1091
+ story: PropTypes__default["default"].object.isRequired,
3649
1092
 
3650
1093
  /** Header tags ranging h1-h6, where h[headerLevel] */
3651
- headerLevel: PropTypes.string,
3652
- premiumStoryIconConfig: PropTypes.shape({
3653
- iconColor: PropTypes.string,
3654
- iconType: PropTypes.string,
3655
- enablePremiumStoryIcon: PropTypes.bool
1094
+ headerLevel: PropTypes__default["default"].string,
1095
+ premiumStoryIconConfig: PropTypes__default["default"].shape({
1096
+ iconColor: PropTypes__default["default"].string,
1097
+ iconType: PropTypes__default["default"].string,
1098
+ enablePremiumStoryIcon: PropTypes__default["default"].bool
3656
1099
  }),
3657
- isLink: PropTypes.bool
1100
+ isLink: PropTypes__default["default"].bool
3658
1101
  };
3659
1102
  Headline.defaultProps = {
3660
1103
  headerLevel: "6",
@@ -3668,27 +1111,27 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
3668
1111
  height = _ref$height === void 0 ? 30 : _ref$height,
3669
1112
  _ref$iconColor = _ref.iconColor,
3670
1113
  iconColor = _ref$iconColor === void 0 ? "#99B0CB" : _ref$iconColor;
3671
- return /*#__PURE__*/React.createElement("svg", {
1114
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3672
1115
  width: width,
3673
1116
  height: height,
3674
1117
  viewBox: "0 0 102 76",
3675
1118
  version: "1.1"
3676
- }, /*#__PURE__*/React.createElement("g", {
1119
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3677
1120
  id: "demo-home-copy",
3678
1121
  stroke: "none",
3679
1122
  strokeWidth: "1",
3680
1123
  fill: "none",
3681
1124
  fillRule: "evenodd",
3682
1125
  transform: "translate(-377.000000, -314.000000)"
3683
- }, /*#__PURE__*/React.createElement("g", {
1126
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3684
1127
  id: "Group-13",
3685
1128
  transform: "translate(377.000000, 314.000000)"
3686
- }, /*#__PURE__*/React.createElement("path", {
1129
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3687
1130
  d: "M43.2,49.7 L62.2,19.2 L87.2,59.4 L17,59.4 L32.8,39.4 L43.2,49.7 Z M29.9,28.6 C25.8683213,28.6 22.6,25.3316787 22.6,21.3 C22.6,17.2683213 25.8683213,14 29.9,14 C33.9316787,14 37.2,17.2683213 37.2,21.3 C37.2,25.3316787 33.9316787,28.6 29.9,28.6 Z",
3688
1131
  id: "Combined-Shape",
3689
1132
  fill: iconColor,
3690
1133
  fillRule: "nonzero"
3691
- }), /*#__PURE__*/React.createElement("rect", {
1134
+ }), /*#__PURE__*/React__default["default"].createElement("rect", {
3692
1135
  id: "Rectangle-19",
3693
1136
  stroke: iconColor,
3694
1137
  strokeWidth: "3",
@@ -3700,24 +1143,24 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
3700
1143
  }))));
3701
1144
  };
3702
1145
  ImageFallbackIcon.propTypes = {
3703
- width: PropTypes.object,
3704
- height: PropTypes.object,
3705
- iconColor: PropTypes.object
1146
+ width: PropTypes__default["default"].object,
1147
+ height: PropTypes__default["default"].object,
1148
+ iconColor: PropTypes__default["default"].object
3706
1149
  };
3707
1150
 
3708
1151
  var imageFallback = function imageFallback() {
3709
- return /*#__PURE__*/React.createElement("div", {
1152
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3710
1153
  className: "arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"
3711
- }, /*#__PURE__*/React.createElement("figure", {
1154
+ }, /*#__PURE__*/React__default["default"].createElement("figure", {
3712
1155
  className: "arr--fallback-svg fallback-m_fallback-svg__tK9fL"
3713
- }, /*#__PURE__*/React.createElement(ImageFallbackIcon, null)));
1156
+ }, /*#__PURE__*/React__default["default"].createElement(ImageFallbackIcon, null)));
3714
1157
  };
3715
1158
 
3716
1159
  var FallbackImage = function FallbackImage(_ref) {
3717
1160
  var slug = _ref.slug;
3718
1161
 
3719
1162
  if (slug) {
3720
- return /*#__PURE__*/React.createElement(Link, {
1163
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3721
1164
  href: slug,
3722
1165
  "aria-label": "image-fallback"
3723
1166
  }, imageFallback());
@@ -3726,23 +1169,23 @@ var FallbackImage = function FallbackImage(_ref) {
3726
1169
  }
3727
1170
  };
3728
1171
  FallbackImage.propTypes = {
3729
- slug: PropTypes.string
1172
+ slug: PropTypes__default["default"].string
3730
1173
  };
3731
1174
 
3732
1175
  var HyperLinkIcon = function HyperLinkIcon() {
3733
- return /*#__PURE__*/React.createElement("svg", {
1176
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3734
1177
  xmlns: "http://www.w3.org/2000/svg",
3735
1178
  width: "36",
3736
1179
  height: "28"
3737
- }, /*#__PURE__*/React.createElement("g", {
1180
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3738
1181
  fill: "none",
3739
1182
  fillRule: "evenodd"
3740
- }, /*#__PURE__*/React.createElement("rect", {
1183
+ }, /*#__PURE__*/React__default["default"].createElement("rect", {
3741
1184
  width: "36",
3742
1185
  height: "28",
3743
1186
  fill: "#3D6FCF",
3744
1187
  rx: "4"
3745
- }), /*#__PURE__*/React.createElement("path", {
1188
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
3746
1189
  stroke: "#FFF",
3747
1190
  strokeLinecap: "round",
3748
1191
  strokeLinejoin: "round",
@@ -3755,16 +1198,16 @@ var HyperLink = function HyperLink(_ref) {
3755
1198
  var _ref$hyperLink = _ref.hyperLink,
3756
1199
  hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
3757
1200
  if (!hyperLink) return null;
3758
- return /*#__PURE__*/React.createElement(Link, {
1201
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3759
1202
  href: hyperLink,
3760
1203
  "aria-label": "hyperlink-button",
3761
1204
  className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
3762
1205
  target: "_blank",
3763
1206
  rel: "noopener noreferrer"
3764
- }, /*#__PURE__*/React.createElement(HyperLinkIcon, null));
1207
+ }, /*#__PURE__*/React__default["default"].createElement(HyperLinkIcon, null));
3765
1208
  };
3766
1209
  HyperLink.propTypes = {
3767
- hyperLink: PropTypes.string
1210
+ hyperLink: PropTypes__default["default"].string
3768
1211
  };
3769
1212
 
3770
1213
  var _styleModuleImportMap$6 = {
@@ -3800,8 +1243,8 @@ var HeroImage = function HeroImage(_ref) {
3800
1243
  StoryTemplateIcon = _config$StoryTemplate === void 0 ? function () {
3801
1244
  return null;
3802
1245
  } : _config$StoryTemplate;
3803
- var showImagePlaceholder = useSelector(function (state) {
3804
- return get_1(state, ["qt", "config", "showPlaceholder"]);
1246
+ var showImagePlaceholder = reactRedux.useSelector(function (state) {
1247
+ return lodash.get(state, ["qt", "config", "showPlaceholder"]);
3805
1248
  });
3806
1249
  var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
3807
1250
  var fullBleed = FullBleed ? "" : "with-padding";
@@ -3810,7 +1253,7 @@ var HeroImage = function HeroImage(_ref) {
3810
1253
  var heroImageMobClasses = isHorizontalMobile ? "right-padding-mob" : "";
3811
1254
 
3812
1255
  var getPadding = function getPadding(aspectRatio) {
3813
- var _aspectRatio = _slicedToArray(aspectRatio, 2),
1256
+ var _aspectRatio = _slicedToArray__default["default"](aspectRatio, 2),
3814
1257
  height = _aspectRatio[0],
3815
1258
  width = _aspectRatio[1];
3816
1259
 
@@ -3822,7 +1265,7 @@ var HeroImage = function HeroImage(_ref) {
3822
1265
  return 0;
3823
1266
  };
3824
1267
 
3825
- var _aspectRatio2 = _slicedToArray(aspectRatio, 2),
1268
+ var _aspectRatio2 = _slicedToArray__default["default"](aspectRatio, 2),
3826
1269
  mobileAspectRatio = _aspectRatio2[0],
3827
1270
  _aspectRatio2$ = _aspectRatio2[1],
3828
1271
  desktopAspectRatio = _aspectRatio2$ === void 0 ? mobileAspectRatio : _aspectRatio2$;
@@ -3830,43 +1273,43 @@ var HeroImage = function HeroImage(_ref) {
3830
1273
  var isMobile = clientWidth("mobile");
3831
1274
  var imageAspectRatio = isMobile ? mobileAspectRatio : desktopAspectRatio;
3832
1275
  var imagePadding = isMobile ? getPadding(mobileAspectRatio) : getPadding(desktopAspectRatio);
3833
- var slug = get_1(story, ["hero-image-s3-key"]) || get_1(story, ["alternative", "home", "default", "hero-image", "hero-image-s3-key"]);
3834
- var hyperLink = get_1(story, ["hero-image-hyperlink"], "");
1276
+ var slug = lodash.get(story, ["hero-image-s3-key"]) || lodash.get(story, ["alternative", "home", "default", "hero-image", "hero-image-s3-key"]);
1277
+ var hyperLink = lodash.get(story, ["hero-image-hyperlink"], "");
3835
1278
 
3836
1279
  var fallbackImage = function fallbackImage() {
3837
1280
  if (!slug) {
3838
1281
  if (fallbackImageUrl && !isStoryPageImage) {
3839
- return /*#__PURE__*/React.createElement("figure", {
1282
+ return /*#__PURE__*/React__default["default"].createElement("figure", {
3840
1283
  style: {
3841
1284
  paddingTop: imagePadding + "%"
3842
1285
  },
3843
- className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$6)
3844
- }, /*#__PURE__*/React.createElement("img", {
1286
+ className: "arr--responsive-hero-image " + _getClassName__default["default"]("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$6)
1287
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
3845
1288
  className: "qt-image",
3846
1289
  "data-src": "".concat(fallbackImageUrl),
3847
1290
  alt: "image-fallback"
3848
1291
  }));
3849
1292
  }
3850
1293
 
3851
- return /*#__PURE__*/React.createElement(React.Fragment, null, defaultFallback ? /*#__PURE__*/React.createElement("div", {
1294
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, defaultFallback ? /*#__PURE__*/React__default["default"].createElement("div", {
3852
1295
  "data-test-id": "arr--fallback-hero-image",
3853
1296
  style: {
3854
1297
  paddingTop: imagePadding + "%"
3855
1298
  },
3856
- className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$6)
3857
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
1299
+ className: "arr--fallback-hero-image " + _getClassName__default["default"]("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$6)
1300
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3858
1301
  storyTemplate: story["story-template"]
3859
- }), /*#__PURE__*/React.createElement(FallbackImage, null)) : null);
1302
+ }), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
3860
1303
  }
3861
1304
 
3862
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("figure", {
1305
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("figure", {
3863
1306
  style: {
3864
1307
  paddingTop: imagePadding + "%"
3865
1308
  },
3866
- className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$6)
3867
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
1309
+ className: "arr--responsive-hero-image " + _getClassName__default["default"]("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$6)
1310
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3868
1311
  storyTemplate: story["story-template"]
3869
- }), /*#__PURE__*/React.createElement(ResponsiveHeroImage, {
1312
+ }), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
3870
1313
  story: story,
3871
1314
  aspectRatio: imageAspectRatio,
3872
1315
  defaultWidth: defaultWidth,
@@ -3875,48 +1318,48 @@ var HeroImage = function HeroImage(_ref) {
3875
1318
  auto: ["format", "compress"],
3876
1319
  fit: "max"
3877
1320
  }
3878
- })), isStoryPageImage && hyperLink && /*#__PURE__*/React.createElement(HyperLink, {
1321
+ })), isStoryPageImage && hyperLink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
3879
1322
  hyperLink: hyperLink
3880
1323
  }));
3881
1324
  };
3882
1325
 
3883
- return story && (isStoryPageImage ? /*#__PURE__*/React.createElement("div", {
1326
+ return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
3884
1327
  "data-test-id": "arr--hero-image",
3885
- className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$6)
3886
- }, fallbackImage()) : /*#__PURE__*/React.createElement(Link, {
1328
+ className: "arr--hero-image " + _getClassName__default["default"]("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$6)
1329
+ }, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
3887
1330
  "data-test-id": "arr--hero-image",
3888
1331
  href: getStoryUrl(story, "/".concat(story.slug)),
3889
1332
  externalLink: isExternalStory(story),
3890
1333
  "aria-label": "fallback-hero-image",
3891
- className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$6)
1334
+ className: "arr--hero-image " + _getClassName__default["default"]("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$6)
3892
1335
  }, fallbackImage()));
3893
1336
  };
3894
1337
  HeroImage.propTypes = {
3895
1338
  /** The Story Object from the API response */
3896
- story: PropTypes.object.isRequired,
1339
+ story: PropTypes__default["default"].object.isRequired,
3897
1340
 
3898
1341
  /** Removes the Hero Image padding for the image to bleed over the margin */
3899
- FullBleed: PropTypes.bool,
1342
+ FullBleed: PropTypes__default["default"].bool,
3900
1343
 
3901
1344
  /** The default width for the image, in case the browser does not support srcset */
3902
- defaultWidth: PropTypes.number,
1345
+ defaultWidth: PropTypes__default["default"].number,
3903
1346
 
3904
1347
  /** The list of available widths */
3905
- widths: PropTypes.array,
1348
+ widths: PropTypes__default["default"].array,
3906
1349
  // fatch the correct hero image
3907
- aspectRatio: PropTypes.array,
1350
+ aspectRatio: PropTypes__default["default"].array,
3908
1351
  // Hints for the browser to choose the best size
3909
1352
 
3910
1353
  /** This prop is responsible for adding padding-right of the image and remove padding bottom of the image */
3911
- isHorizontal: PropTypes.bool,
1354
+ isHorizontal: PropTypes__default["default"].bool,
3912
1355
 
3913
1356
  /** This prop is responsible for adding padding-bottom in desktop and padding-right in mobile */
3914
- isHorizontalMobile: PropTypes.bool,
1357
+ isHorizontalMobile: PropTypes__default["default"].bool,
3915
1358
  // this prop is responsive for rendering fallback image on story page
3916
- defaultFallback: PropTypes.bool,
3917
- isHorizontalWithImageLast: PropTypes.bool,
3918
- isStoryPageImage: PropTypes.bool,
3919
- config: PropTypes.object
1359
+ defaultFallback: PropTypes__default["default"].bool,
1360
+ isHorizontalWithImageLast: PropTypes__default["default"].bool,
1361
+ isStoryPageImage: PropTypes__default["default"].bool,
1362
+ config: PropTypes__default["default"].object
3920
1363
  };
3921
1364
  HeroImage.defaultProps = {
3922
1365
  FullBleed: true,
@@ -3951,9 +1394,9 @@ var SectionTag = function SectionTag(_ref) {
3951
1394
  borderColor = _ref$borderColor === void 0 ? "" : _ref$borderColor,
3952
1395
  isLightTheme = _ref.isLightTheme;
3953
1396
  var config = useStateValue() || {};
3954
- var isSection = get_1(config, ["showSection"], true);
3955
- var templateFromRowContext = get_1(config, ["sectionTagTemplate"]);
3956
- var section = get_1(story, ["sections", 0], "");
1397
+ var isSection = lodash.get(config, ["showSection"], true);
1398
+ var templateFromRowContext = lodash.get(config, ["sectionTagTemplate"]);
1399
+ var section = lodash.get(story, ["sections", 0], "");
3957
1400
  var supportedTemplates = ["borderBottomSml", "borderLeft", "solid"];
3958
1401
  var getUrl = section ? section["section-url"] : "/";
3959
1402
  var colorToApplyContrast = template === "solid" || templateFromRowContext === "solid" ? borderColor : config.theme;
@@ -3966,22 +1409,22 @@ var SectionTag = function SectionTag(_ref) {
3966
1409
  }
3967
1410
 
3968
1411
  if (!isSection) return null;
3969
- return /*#__PURE__*/React.createElement(Link, {
1412
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3970
1413
  href: getUrl,
3971
1414
  className: "arrow-component arr--section-name",
3972
1415
  "aria-label": "section-name"
3973
- }, /*#__PURE__*/React.createElement("div", {
1416
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3974
1417
  "data-test-id": "sectionTag",
3975
1418
  style: {
3976
1419
  backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
3977
1420
  },
3978
- className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$5)
3979
- }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React.createElement("span", {
1421
+ className: "section-tag arrow-component " + _getClassName__default["default"]("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$5)
1422
+ }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
3980
1423
  className: "section-m_border-left__2oUyp",
3981
1424
  style: {
3982
1425
  color: sectionTagBorderColor
3983
1426
  }
3984
- }), section["display-name"] || section["name"], /*#__PURE__*/React.createElement("div", {
1427
+ }), section["display-name"] || section["name"], /*#__PURE__*/React__default["default"].createElement("div", {
3985
1428
  className: "section-m_border-bottom__3cRoD",
3986
1429
  style: {
3987
1430
  backgroundColor: "".concat(template === "solid" ? "" : sectionTagBorderColor)
@@ -3990,13 +1433,13 @@ var SectionTag = function SectionTag(_ref) {
3990
1433
  };
3991
1434
  SectionTag.propTypes = {
3992
1435
  /** The Story Object from the API response */
3993
- story: PropTypes.object.isRequired,
1436
+ story: PropTypes__default["default"].object.isRequired,
3994
1437
 
3995
1438
  /** The style template for section tag */
3996
- template: PropTypes.oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
3997
- borderColor: PropTypes.string,
3998
- solidBorderColor: PropTypes.string,
3999
- isLightTheme: PropTypes.bool
1439
+ template: PropTypes__default["default"].oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
1440
+ borderColor: PropTypes__default["default"].string,
1441
+ solidBorderColor: PropTypes__default["default"].string,
1442
+ isLightTheme: PropTypes__default["default"].bool
4000
1443
  };
4001
1444
  SectionTag.defaultProps = {
4002
1445
  template: "",
@@ -4020,28 +1463,28 @@ var Subheadline = function Subheadline(_ref) {
4020
1463
  forceShowAtom = _ref.forceShowAtom,
4021
1464
  showFullContent = _ref.showFullContent;
4022
1465
  var config = useStateValue() || {};
4023
- var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
1466
+ var subheadline = forceShowAtom || lodash.get(config, ["showSubheadline"], true);
4024
1467
  if (!subheadline) return null;
4025
1468
  var textColor = getTextColor(config.theme);
4026
- return /*#__PURE__*/React.createElement("div", {
1469
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4027
1470
  style: {
4028
1471
  WebkitLineClamp: lineClamp
4029
1472
  },
4030
1473
  "data-test-id": "subheadline",
4031
- className: ("p-alt arr--sub-headline arrow-component ".concat(clazzName) ? "p-alt arr--sub-headline arrow-component ".concat(clazzName) + " " : "") + _getClassName("subheadline ".concat(textColor), _styleModuleImportMap$4)
1474
+ className: ("p-alt arr--sub-headline arrow-component ".concat(clazzName) ? "p-alt arr--sub-headline arrow-component ".concat(clazzName) + " " : "") + _getClassName__default["default"]("subheadline ".concat(textColor), _styleModuleImportMap$4)
4032
1475
  }, showFullContent || typeof lineClamp === "number" ? story.subheadline : truncate(story.subheadline, truncateChars, true));
4033
1476
  };
4034
1477
  Subheadline.propTypes = {
4035
1478
  /** The Story Object from the API response */
4036
- story: PropTypes.object.isRequired,
1479
+ story: PropTypes__default["default"].object.isRequired,
4037
1480
  // Restricts the number of lines for subheadline.
4038
- lineClamp: PropTypes.number,
1481
+ lineClamp: PropTypes__default["default"].number,
4039
1482
 
4040
1483
  /** Number of characters to truncate the subheadline */
4041
- truncateChars: PropTypes.number,
4042
- clazzName: PropTypes.string,
4043
- forceShowAtom: PropTypes.bool,
4044
- showFullContent: PropTypes.bool
1484
+ truncateChars: PropTypes__default["default"].number,
1485
+ clazzName: PropTypes__default["default"].string,
1486
+ forceShowAtom: PropTypes__default["default"].bool,
1487
+ showFullContent: PropTypes__default["default"].bool
4045
1488
  };
4046
1489
  Subheadline.defaultProps = {
4047
1490
  forceShowAtom: false,
@@ -4090,7 +1533,7 @@ var StoryCard = function StoryCard(_ref) {
4090
1533
  prefix = _ref.prefix,
4091
1534
  config = _ref.config,
4092
1535
  isHorizontalWithImageLast = _ref.isHorizontalWithImageLast;
4093
- if (!story || isEmpty(story)) return /*#__PURE__*/React.createElement("div", null);
1536
+ if (!story || isEmpty(story)) return /*#__PURE__*/React__default["default"].createElement("div", null);
4094
1537
  var borderOptions = ["default", "full", "bottom", "boxShadow"];
4095
1538
  var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : ""; // TODO optimize conditions
4096
1539
 
@@ -4100,7 +1543,7 @@ var StoryCard = function StoryCard(_ref) {
4100
1543
  var bgImgContentOverlapClass = bgImgContentOverlap ? "content-overlap" : "";
4101
1544
  var textColor = getTextColor(theme);
4102
1545
  var horizontalMobileClasses = isHorizontalMobile ? "horizontal-mob" : "";
4103
- var defaultStorycard = /*#__PURE__*/React.createElement(DefaultStoryCard, {
1546
+ var defaultStorycard = /*#__PURE__*/React__default["default"].createElement(DefaultStoryCard, {
4104
1547
  story: story,
4105
1548
  aspectRatio: aspectRatio,
4106
1549
  border: border,
@@ -4114,13 +1557,13 @@ var StoryCard = function StoryCard(_ref) {
4114
1557
  config: config,
4115
1558
  isHorizontalWithImageLast: isHorizontalWithImageLast
4116
1559
  });
4117
- return /*#__PURE__*/React.createElement("div", {
1560
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4118
1561
  "data-test-id": "story-card",
4119
1562
  style: {
4120
1563
  backgroundColor: theme,
4121
1564
  color: textColor
4122
1565
  },
4123
- className: "arr--story-card " + _getClassName("card ".concat(horizontalCardStyle, " ").concat(borderTemplate, " ").concat(textColor, " ").concat(bgImageClasses, " ").concat(bgImgContentOverlapClass, " ").concat(horizontalMobileClasses), _styleModuleImportMap$3)
1566
+ className: "arr--story-card " + _getClassName__default["default"]("card ".concat(horizontalCardStyle, " ").concat(borderTemplate, " ").concat(textColor, " ").concat(bgImageClasses, " ").concat(bgImgContentOverlapClass, " ").concat(horizontalMobileClasses), _styleModuleImportMap$3)
4124
1567
  }, children || defaultStorycard);
4125
1568
  };
4126
1569
 
@@ -4143,91 +1586,91 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
4143
1586
  var SectionTagborderColor = rgbToHex(borderColor);
4144
1587
  var _config$localizationC = config.localizationConfig,
4145
1588
  localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
4146
- return /*#__PURE__*/React.createElement(React.Fragment, null, isHorizontal ? /*#__PURE__*/React.createElement(HeroImage, {
1589
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isHorizontal ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4147
1590
  config: config,
4148
1591
  story: story,
4149
1592
  isHorizontal: true,
4150
1593
  isHorizontalMobile: isHorizontalMobile,
4151
1594
  aspectRatio: aspectRatio
4152
- }) : isHorizontalWithImageLast ? /*#__PURE__*/React.createElement(HeroImage, {
1595
+ }) : isHorizontalWithImageLast ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4153
1596
  config: config,
4154
1597
  story: story,
4155
1598
  isHorizontalWithImageLast: true,
4156
1599
  isHorizontalMobile: isHorizontalMobile,
4157
1600
  aspectRatio: aspectRatio
4158
- }) : /*#__PURE__*/React.createElement(HeroImage, {
1601
+ }) : /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4159
1602
  story: story,
4160
1603
  config: config,
4161
1604
  isHorizontalMobile: isHorizontalMobile,
4162
1605
  aspectRatio: aspectRatio
4163
- }), /*#__PURE__*/React.createElement("div", {
4164
- className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap$3)
4165
- }, /*#__PURE__*/React.createElement(SectionTag, {
1606
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
1607
+ className: "arr--story-content " + _getClassName__default["default"]("content ".concat(alignment), _styleModuleImportMap$3)
1608
+ }, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4166
1609
  story: story,
4167
1610
  borderColor: SectionTagborderColor
4168
- }), /*#__PURE__*/React.createElement(Headline, {
1611
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
4169
1612
  story: story,
4170
1613
  headerLevel: headerLevel,
4171
1614
  premiumStoryIconConfig: config
4172
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
1615
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
4173
1616
  config: localizationConfig,
4174
1617
  story: story,
4175
1618
  isBottom: true,
4176
1619
  prefix: prefix,
4177
1620
  hideAuthorImage: hideAuthorImage
4178
- }), /*#__PURE__*/React.createElement(Subheadline, {
1621
+ }), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
4179
1622
  story: story
4180
1623
  })));
4181
1624
  };
4182
1625
 
4183
1626
  DefaultStoryCard.propTypes = {
4184
- story: PropTypes.object.isRequired,
4185
- border: PropTypes.oneOfType([PropTypes.string]),
4186
- isBottom: PropTypes.bool,
4187
- isHorizontal: PropTypes.bool,
4188
- aspectRatio: PropTypes.oneOfType([PropTypes.array]),
4189
- isHorizontalMobile: PropTypes.bool,
4190
- centerAlign: PropTypes.bool,
4191
- headerLevel: PropTypes.string,
4192
- borderColor: PropTypes.string,
4193
- hideAuthorImage: PropTypes.bool,
4194
- prefix: PropTypes.string,
4195
- config: PropTypes.object,
4196
- isHorizontalWithImageLast: PropTypes.bool
1627
+ story: PropTypes__default["default"].object.isRequired,
1628
+ border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
1629
+ isBottom: PropTypes__default["default"].bool,
1630
+ isHorizontal: PropTypes__default["default"].bool,
1631
+ aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
1632
+ isHorizontalMobile: PropTypes__default["default"].bool,
1633
+ centerAlign: PropTypes__default["default"].bool,
1634
+ headerLevel: PropTypes__default["default"].string,
1635
+ borderColor: PropTypes__default["default"].string,
1636
+ hideAuthorImage: PropTypes__default["default"].bool,
1637
+ prefix: PropTypes__default["default"].string,
1638
+ config: PropTypes__default["default"].object,
1639
+ isHorizontalWithImageLast: PropTypes__default["default"].bool
4197
1640
  };
4198
1641
  StoryCard.propTypes = {
4199
1642
  /** The Story Object from the API response */
4200
- story: PropTypes.object.isRequired,
4201
- children: PropTypes.node,
1643
+ story: PropTypes__default["default"].object.isRequired,
1644
+ children: PropTypes__default["default"].node,
4202
1645
 
4203
1646
  /** Flip the Story Card to Horizonal mode */
4204
- isHorizontal: PropTypes.bool,
1647
+ isHorizontal: PropTypes__default["default"].bool,
4205
1648
 
4206
1649
  /** Add border to the Story Card */
4207
- border: PropTypes.oneOfType([PropTypes.string]),
1650
+ border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
4208
1651
  // story card with background image
4209
- useImageAsBackground: PropTypes.bool,
1652
+ useImageAsBackground: PropTypes__default["default"].bool,
4210
1653
  // story card content overlap with image
4211
- bgImgContentOverlap: PropTypes.bool,
1654
+ bgImgContentOverlap: PropTypes__default["default"].bool,
4212
1655
 
4213
1656
  /** add aspect ratio for hero image */
4214
- aspectRatio: PropTypes.oneOfType([PropTypes.array]),
1657
+ aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
4215
1658
 
4216
1659
  /** add theme(dark /light/custom color) for storycard */
4217
- theme: PropTypes.string,
1660
+ theme: PropTypes__default["default"].string,
4218
1661
 
4219
1662
  /** flip the story card mobile design horizontal */
4220
- isHorizontalMobile: PropTypes.bool,
1663
+ isHorizontalMobile: PropTypes__default["default"].bool,
4221
1664
  // make content center align in desktop and left align in mobile
4222
- centerAlign: PropTypes.bool,
4223
- headerLevel: PropTypes.string,
4224
- borderColor: PropTypes.string,
1665
+ centerAlign: PropTypes__default["default"].bool,
1666
+ headerLevel: PropTypes__default["default"].string,
1667
+ borderColor: PropTypes__default["default"].string,
4225
1668
  // handle author image through storycard
4226
- hideAuthorImage: PropTypes.bool,
1669
+ hideAuthorImage: PropTypes__default["default"].bool,
4227
1670
  // handle author prefix through storycard
4228
- prefix: PropTypes.string,
4229
- config: PropTypes.object,
4230
- isHorizontalWithImageLast: PropTypes.bool
1671
+ prefix: PropTypes__default["default"].string,
1672
+ config: PropTypes__default["default"].object,
1673
+ isHorizontalWithImageLast: PropTypes__default["default"].bool
4231
1674
  };
4232
1675
  StoryCard.defaultProps = {
4233
1676
  isHorizontal: false,
@@ -4242,19 +1685,19 @@ StoryCard.defaultProps = {
4242
1685
  var ClockIcon = function ClockIcon(_ref) {
4243
1686
  var _ref$color = _ref.color,
4244
1687
  color = _ref$color === void 0 ? "#333" : _ref$color;
4245
- return /*#__PURE__*/React.createElement("svg", {
1688
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
4246
1689
  xmlns: "http://www.w3.org/2000/svg",
4247
1690
  width: "24",
4248
1691
  height: "24",
4249
1692
  viewBox: "0 0 24 24"
4250
- }, /*#__PURE__*/React.createElement("path", {
1693
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
4251
1694
  fill: color,
4252
1695
  fillRule: "evenodd",
4253
1696
  d: "M12 19.75a7.513 7.513 0 003.875-1.047 7.832 7.832 0 002.828-2.828A7.513 7.513 0 0019.75 12a7.513 7.513 0 00-1.047-3.875c-.698-1.187-1.64-2.13-2.828-2.828S13.395 4.25 12 4.25a7.51 7.51 0 00-3.875 1.047c-1.188.698-2.13 1.64-2.828 2.828S4.25 10.605 4.25 12a7.51 7.51 0 001.047 3.875 7.824 7.824 0 002.828 2.828A7.513 7.513 0 0012 19.75zm.016-1a6.64 6.64 0 01-3.391-.906 6.716 6.716 0 01-2.469-2.453 6.563 6.563 0 01-.906-3.375c0-1.22.302-2.35.906-3.391A6.711 6.711 0 018.61 6.156a6.563 6.563 0 013.375-.906c1.22 0 2.35.302 3.391.906a6.716 6.716 0 012.469 2.453A6.592 6.592 0 0118.751 12a6.616 6.616 0 01-.906 3.375 6.716 6.716 0 01-2.453 2.469 6.563 6.563 0 01-3.375.906zm2.283-3.92l.076-.002a.343.343 0 00.25-.14l.25-.375a.365.365 0 00.078-.266.328.328 0 00-.14-.234l-2.22-1.625V7.625a.362.362 0 00-.109-.266.36.36 0 00-.265-.109h-.438a.357.357 0 00-.265.11.358.358 0 00-.11.265v5c0 .125.052.219.156.281l2.532 1.844a.383.383 0 00.281.078l-.076.001z"
4254
1697
  }));
4255
1698
  };
4256
1699
  ClockIcon.propTypes = {
4257
- color: PropTypes.string
1700
+ color: PropTypes__default["default"].string
4258
1701
  };
4259
1702
 
4260
1703
  var _styleModuleImportMap$2 = {
@@ -4268,7 +1711,7 @@ var _styleModuleImportMap$2 = {
4268
1711
 
4269
1712
  function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4270
1713
 
4271
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1714
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4272
1715
  var LoadmoreButton = function LoadmoreButton(_ref) {
4273
1716
  var _ref$config = _ref.config,
4274
1717
  config = _ref$config === void 0 ? {} : _ref$config,
@@ -4289,26 +1732,26 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
4289
1732
  if (!showButton) return null;
4290
1733
  var textColor = getTextColor(theme);
4291
1734
  var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread$1(_objectSpread$1({}, qtConfig), config));
4292
- return template === "SubsequentLoadCount" ? /*#__PURE__*/React.createElement("div", {
1735
+ return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
4293
1736
  onClick: onClick,
4294
1737
  "data-test-id": "load-more",
4295
- className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$2)
4296
- }, buttonText) : /*#__PURE__*/React.createElement(LinkBase, {
1738
+ className: "arr--button " + _getClassName__default["default"]("button ".concat(textColor, " default"), _styleModuleImportMap$2)
1739
+ }, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
4297
1740
  href: slug,
4298
1741
  navigateTo: navigate,
4299
1742
  "data-test-id": "load-more",
4300
1743
  "aria-label": "load-more"
4301
- }, /*#__PURE__*/React.createElement("div", {
4302
- className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$2)
1744
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
1745
+ className: "arr--button " + _getClassName__default["default"]("button ".concat(textColor, " default"), _styleModuleImportMap$2)
4303
1746
  }, buttonText));
4304
1747
  };
4305
1748
  LoadmoreButton.propTypes = {
4306
- collection: PropTypes.object,
4307
- template: PropTypes.string,
4308
- config: PropTypes.object,
4309
- onClick: PropTypes.func,
4310
- navigate: PropTypes.func,
4311
- qtConfig: PropTypes.object
1749
+ collection: PropTypes__default["default"].object,
1750
+ template: PropTypes__default["default"].string,
1751
+ config: PropTypes__default["default"].object,
1752
+ onClick: PropTypes__default["default"].func,
1753
+ navigate: PropTypes__default["default"].func,
1754
+ qtConfig: PropTypes__default["default"].object
4312
1755
  };
4313
1756
 
4314
1757
  var _styleModuleImportMap$1 = {
@@ -4346,23 +1789,23 @@ var KeyEventCards = function KeyEventCards(props) {
4346
1789
  var updateColor = textColor === "dark" ? dark : light;
4347
1790
  var lastElement = index === cardLength - 1;
4348
1791
  var borderLeft = lastElement ? "borderNone" : "";
4349
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
4350
- className: _getClassName("time-wrapper ".concat(textColor), _styleModuleImportMap$1)
4351
- }, /*#__PURE__*/React.createElement(ClockIcon, {
1792
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
1793
+ className: _getClassName__default["default"]("time-wrapper ".concat(textColor), _styleModuleImportMap$1)
1794
+ }, /*#__PURE__*/React__default["default"].createElement(ClockIcon, {
4352
1795
  color: updateColor
4353
1796
  }), getTimeStamp(cardAddedAt, timestampToFormat, {
4354
1797
  showTime: true,
4355
1798
  isTimeFirst: true
4356
- })), /*#__PURE__*/React.createElement("a", {
1799
+ })), /*#__PURE__*/React__default["default"].createElement("a", {
4357
1800
  href: "".concat(mountAt, "/").concat(slug, "#").concat(id),
4358
1801
  "aria-label": "event-title"
4359
- }, /*#__PURE__*/React.createElement("div", {
4360
- className: _getClassName("event-title ".concat(textColor, " ").concat(borderLeft), _styleModuleImportMap$1)
1802
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
1803
+ className: _getClassName__default["default"]("event-title ".concat(textColor, " ").concat(borderLeft), _styleModuleImportMap$1)
4361
1804
  }, storyElements.map(function (element, index) {
4362
- return element.type === "title" && /*#__PURE__*/React.createElement("h3", {
1805
+ return element.type === "title" && /*#__PURE__*/React__default["default"].createElement("h3", {
4363
1806
  key: index
4364
1807
  }, element.text);
4365
- }), showLoadMore && lastElement && loadCards && /*#__PURE__*/React.createElement("div", {
1808
+ }), showLoadMore && lastElement && loadCards && /*#__PURE__*/React__default["default"].createElement("div", {
4366
1809
  className: "key-events-m_fade-out__11jv_",
4367
1810
  style: {
4368
1811
  backgroundImage: "linear-gradient(to bottom, transparent, ".concat(theme, ")")
@@ -4371,19 +1814,19 @@ var KeyEventCards = function KeyEventCards(props) {
4371
1814
  };
4372
1815
 
4373
1816
  KeyEventCards.propTypes = {
4374
- card: PropTypes.shape({
4375
- "card-added-at": PropTypes.number,
4376
- "story-elements": PropTypes.array,
4377
- id: PropTypes.string
1817
+ card: PropTypes__default["default"].shape({
1818
+ "card-added-at": PropTypes__default["default"].number,
1819
+ "story-elements": PropTypes__default["default"].array,
1820
+ id: PropTypes__default["default"].string
4378
1821
  }),
4379
- config: PropTypes.object,
4380
- slug: PropTypes.string,
4381
- story: PropTypes.object,
4382
- elements: PropTypes.array,
4383
- index: PropTypes.number,
4384
- cardLength: PropTypes.number,
4385
- loadCards: PropTypes.bool,
4386
- showLoadMore: PropTypes.bool
1822
+ config: PropTypes__default["default"].object,
1823
+ slug: PropTypes__default["default"].string,
1824
+ story: PropTypes__default["default"].object,
1825
+ elements: PropTypes__default["default"].array,
1826
+ index: PropTypes__default["default"].number,
1827
+ cardLength: PropTypes__default["default"].number,
1828
+ loadCards: PropTypes__default["default"].bool,
1829
+ showLoadMore: PropTypes__default["default"].bool
4387
1830
  };
4388
1831
  var KeyEventsBase = function KeyEventsBase(_ref) {
4389
1832
  var _ref$story = _ref.story,
@@ -4392,23 +1835,23 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
4392
1835
  config = _ref$config === void 0 ? {} : _ref$config,
4393
1836
  _ref$showLoadMore = _ref.showLoadMore,
4394
1837
  showLoadMore = _ref$showLoadMore === void 0 ? true : _ref$showLoadMore;
4395
- var cards = get_1(story, ["cards"], []);
1838
+ var cards = lodash.get(story, ["cards"], []);
4396
1839
  var theme = config.theme,
4397
1840
  _config$initialLoadCo = config.initialLoadCount,
4398
1841
  initialLoadCount = _config$initialLoadCo === void 0 ? 4 : _config$initialLoadCo;
4399
1842
  var textColor = getTextColor(theme);
4400
1843
 
4401
- var _useState = useState(initialLoadCount),
4402
- _useState2 = _slicedToArray(_useState, 2),
1844
+ var _useState = React.useState(initialLoadCount),
1845
+ _useState2 = _slicedToArray__default["default"](_useState, 2),
4403
1846
  initialCount = _useState2[0],
4404
1847
  updatedCount = _useState2[1];
4405
1848
 
4406
1849
  var cardsWithKeyEvents = cards.filter(function (card) {
4407
- return get_1(card.metadata, ["attributes", "key-event"]);
1850
+ return lodash.get(card.metadata, ["attributes", "key-event"]);
4408
1851
  });
4409
1852
  var lastElement = cardsWithKeyEvents.length > initialCount;
4410
- var qtConfig = useSelector(function (state) {
4411
- return get_1(state, ["qt", "config"], {});
1853
+ var qtConfig = reactRedux.useSelector(function (state) {
1854
+ return lodash.get(state, ["qt", "config"], {});
4412
1855
  });
4413
1856
 
4414
1857
  var onClick = function onClick() {
@@ -4421,7 +1864,7 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
4421
1864
 
4422
1865
  var showAllCards = !showLoadMore ? cardsWithKeyEvents.slice(0, 4) : cardsWithKeyEvents.slice(0, initialCount);
4423
1866
  var keyEvents = showAllCards.map(function (card, index, source) {
4424
- return /*#__PURE__*/React.createElement(KeyEventCards, {
1867
+ return /*#__PURE__*/React__default["default"].createElement(KeyEventCards, {
4425
1868
  cardLength: source.length,
4426
1869
  card: card,
4427
1870
  key: card.id,
@@ -4432,14 +1875,14 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
4432
1875
  showLoadMore: showLoadMore
4433
1876
  });
4434
1877
  });
4435
- return /*#__PURE__*/React.createElement("div", {
1878
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4436
1879
  style: {
4437
1880
  background: theme
4438
1881
  },
4439
- className: "arrow-component " + _getClassName("container ".concat(textColor), _styleModuleImportMap$1)
4440
- }, /*#__PURE__*/React.createElement("h3", null, "Key Events"), /*#__PURE__*/React.createElement("div", {
1882
+ className: "arrow-component " + _getClassName__default["default"]("container ".concat(textColor), _styleModuleImportMap$1)
1883
+ }, /*#__PURE__*/React__default["default"].createElement("h3", null, "Key Events"), /*#__PURE__*/React__default["default"].createElement("div", {
4441
1884
  className: "key-events-m_cards-wrapper__3f8aB"
4442
- }, keyEvents), showLoadMore && lastElement && /*#__PURE__*/React.createElement(LoadmoreButton, {
1885
+ }, keyEvents), showLoadMore && lastElement && /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
4443
1886
  onClick: onClick,
4444
1887
  template: "SubsequentLoadCount",
4445
1888
  config: config,
@@ -4447,15 +1890,15 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
4447
1890
  }));
4448
1891
  };
4449
1892
  KeyEventsBase.propTypes = {
4450
- story: PropTypes.object,
4451
- config: PropTypes.object,
4452
- showLoadMore: PropTypes.bool
1893
+ story: PropTypes__default["default"].object,
1894
+ config: PropTypes__default["default"].object,
1895
+ showLoadMore: PropTypes__default["default"].bool
4453
1896
  };
4454
1897
  var KeyEvents = StateProvider(KeyEventsBase);
4455
1898
 
4456
1899
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4457
1900
 
4458
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1901
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4459
1902
  var _styleModuleImportMap = {
4460
1903
  "./aside-collection.m.css": {
4461
1904
  "stories": "aside-collection-m_stories__9wfUs",
@@ -4488,22 +1931,22 @@ var StoryCollection = function StoryCollection(_ref) {
4488
1931
 
4489
1932
  var heading = title || "Related Stories";
4490
1933
  var isHorizontal = horizontal ? "horizontal-wrapper" : "";
4491
- var mountAt = get_1(config, ["mountAtPrefix"], "");
1934
+ var mountAt = lodash.get(config, ["mountAtPrefix"], "");
4492
1935
 
4493
- var _useState = useState([]),
4494
- _useState2 = _slicedToArray(_useState, 2),
1936
+ var _useState = React.useState([]),
1937
+ _useState2 = _slicedToArray__default["default"](_useState, 2),
4495
1938
  storyList = _useState2[0],
4496
1939
  updateStoryList = _useState2[1];
4497
1940
 
4498
- var _useState3 = useState([]),
4499
- _useState4 = _slicedToArray(_useState3, 2),
1941
+ var _useState3 = React.useState([]),
1942
+ _useState4 = _slicedToArray__default["default"](_useState3, 2),
4500
1943
  collectionData = _useState4[0],
4501
1944
  updateCollectionData = _useState4[1];
4502
1945
 
4503
1946
  var updateStoryListItems = /*#__PURE__*/function () {
4504
- var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(slug) {
1947
+ var _ref3 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(slug) {
4505
1948
  var collectionDataResponse, storyItems;
4506
- return regenerator.wrap(function _callee$(_context) {
1949
+ return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
4507
1950
  while (1) {
4508
1951
  switch (_context.prev = _context.next) {
4509
1952
  case 0:
@@ -4529,59 +1972,59 @@ var StoryCollection = function StoryCollection(_ref) {
4529
1972
  };
4530
1973
  }();
4531
1974
 
4532
- useEffect(function () {
1975
+ React.useEffect(function () {
4533
1976
  if (collectionSlug) {
4534
1977
  updateStoryListItems(collectionSlug);
4535
1978
  }
4536
1979
  }, [collectionSlug]);
4537
- useEffect(function () {
1980
+ React.useEffect(function () {
4538
1981
  if (!collectionSlug && data) {
4539
1982
  var storyItems = data.items || data;
4540
1983
  updateStoryList(storyItems);
4541
1984
  }
4542
1985
  }, [data, collectionSlug]);
4543
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CollectionName, {
1986
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
4544
1987
  customCollectionName: heading,
4545
1988
  textColor: true,
4546
1989
  collection: collectionData
4547
- }), /*#__PURE__*/React.createElement("div", {
1990
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4548
1991
  className: "aside-collection-m_stories__9wfUs"
4549
1992
  }, storyList && storyList.length > 0 ? storyList.slice(0, 4).map(function (item) {
4550
1993
  var story = item.story || item;
4551
- return /*#__PURE__*/React.createElement("div", {
1994
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4552
1995
  className: "aside-collection-m_story__17Jdm",
4553
1996
  key: story.id
4554
- }, /*#__PURE__*/React.createElement(StoryCard, {
1997
+ }, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
4555
1998
  story: story,
4556
1999
  isHorizontal: true,
4557
2000
  theme: theme,
4558
2001
  config: config
4559
- }, /*#__PURE__*/React.createElement("div", {
2002
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4560
2003
  className: "aside-collection-m_story-hero-image__13nFY"
4561
- }, /*#__PURE__*/React.createElement(HeroImage, {
2004
+ }, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4562
2005
  story: story,
4563
2006
  aspectRatio: [[4, 3]]
4564
- })), /*#__PURE__*/React.createElement("div", null, isHorizontal && /*#__PURE__*/React.createElement(SectionTag, {
2007
+ })), /*#__PURE__*/React__default["default"].createElement("div", null, isHorizontal && /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4565
2008
  story: story
4566
- }), /*#__PURE__*/React.createElement(Headline, {
2009
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
4567
2010
  story: story
4568
- }), /*#__PURE__*/React.createElement("div", {
2011
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4569
2012
  className: "aside-collection-m_story-byline__37KRG"
4570
- }, /*#__PURE__*/React.createElement(AuthorWithTime, {
2013
+ }, /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
4571
2014
  config: opts,
4572
2015
  story: story
4573
2016
  })))));
4574
- }) : /*#__PURE__*/React.createElement("div", {
2017
+ }) : /*#__PURE__*/React__default["default"].createElement("div", {
4575
2018
  "data-test-id": "no-stories",
4576
2019
  className: "aside-collection-m_info__3p4zt"
4577
2020
  }, "No stories found.")));
4578
2021
  };
4579
2022
  StoryCollection.propTypes = {
4580
- data: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
4581
- config: PropTypes.object,
4582
- horizontal: PropTypes.bool,
4583
- slotData: PropTypes.object,
4584
- opts: PropTypes.object
2023
+ data: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].array]),
2024
+ config: PropTypes__default["default"].object,
2025
+ horizontal: PropTypes__default["default"].bool,
2026
+ slotData: PropTypes__default["default"].object,
2027
+ opts: PropTypes__default["default"].object
4585
2028
  };
4586
2029
  var AsideCollectionBase = function AsideCollectionBase(_ref4) {
4587
2030
  var _ref4$data = _ref4.data,
@@ -4608,14 +2051,14 @@ var AsideCollectionBase = function AsideCollectionBase(_ref4) {
4608
2051
  var isHorizontal = horizontal ? "horizontal-wrapper" : "";
4609
2052
 
4610
2053
  if (horizontal) {
4611
- return /*#__PURE__*/React.createElement("div", {
2054
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4612
2055
  style: {
4613
2056
  backgroundColor: theme
4614
2057
  },
4615
2058
  "data-test-id": "aside-collection",
4616
2059
  id: "aside-collection-".concat(storyId),
4617
- className: "arrow-component arr--aside-collection " + _getClassName("wrapper ".concat(isHorizontal), _styleModuleImportMap)
4618
- }, /*#__PURE__*/React.createElement(StoryCollection, {
2060
+ className: "arrow-component arr--aside-collection " + _getClassName__default["default"]("wrapper ".concat(isHorizontal), _styleModuleImportMap)
2061
+ }, /*#__PURE__*/React__default["default"].createElement(StoryCollection, {
4619
2062
  data: data,
4620
2063
  horizontal: horizontal,
4621
2064
  config: config,
@@ -4628,23 +2071,23 @@ var AsideCollectionBase = function AsideCollectionBase(_ref4) {
4628
2071
  var asideSlot = function asideSlot(type, slot, index) {
4629
2072
  switch (type) {
4630
2073
  case "ad":
4631
- return /*#__PURE__*/React.createElement("div", {
2074
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4632
2075
  className: "aside-collection-ad-slot aside-collection-m_ad-slot__28nE2"
4633
2076
  }, adComponent(_objectSpread(_objectSpread({}, slot), {}, {
4634
2077
  id: "ad-".concat(index, "_").concat(storyId)
4635
2078
  })));
4636
2079
 
4637
2080
  case "widget":
4638
- return /*#__PURE__*/React.createElement("div", {
2081
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4639
2082
  className: "aside-collection-ad-slot aside-collection-m_ad-slot__28nE2"
4640
2083
  }, widgetComp(_objectSpread(_objectSpread({}, slot), {}, {
4641
2084
  id: "widget-".concat(index, "_").concat(storyId)
4642
2085
  })));
4643
2086
 
4644
2087
  case "collection":
4645
- return /*#__PURE__*/React.createElement("div", {
2088
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4646
2089
  id: "aside-collection-".concat(index, "_").concat(storyId)
4647
- }, /*#__PURE__*/React.createElement(StoryCollection, {
2090
+ }, /*#__PURE__*/React__default["default"].createElement(StoryCollection, {
4648
2091
  slotData: slot,
4649
2092
  data: data,
4650
2093
  horizontal: horizontal,
@@ -4654,13 +2097,13 @@ var AsideCollectionBase = function AsideCollectionBase(_ref4) {
4654
2097
  }
4655
2098
  };
4656
2099
 
4657
- return /*#__PURE__*/React.createElement("div", {
2100
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4658
2101
  style: {
4659
2102
  backgroundColor: theme
4660
2103
  },
4661
2104
  "data-test-id": "aside-collection",
4662
- className: "arrow-component arr--aside-collection " + _getClassName(["wrapper", isHorizontal, isSticky].join(" "), _styleModuleImportMap)
4663
- }, enableKeyEvents && /*#__PURE__*/React.createElement(KeyEvents, {
2105
+ className: "arrow-component arr--aside-collection " + _getClassName__default["default"](["wrapper", isHorizontal, isSticky].join(" "), _styleModuleImportMap)
2106
+ }, enableKeyEvents && /*#__PURE__*/React__default["default"].createElement(KeyEvents, {
4664
2107
  story: keyEventsData.story,
4665
2108
  showLoadMore: keyEventsData.showLoadMore,
4666
2109
  config: keyEventsData.config
@@ -4669,22 +2112,24 @@ var AsideCollectionBase = function AsideCollectionBase(_ref4) {
4669
2112
  }));
4670
2113
  };
4671
2114
  AsideCollectionBase.propTypes = {
4672
- data: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
4673
- config: PropTypes.object,
4674
- opts: PropTypes.object,
4675
- horizontal: PropTypes.bool,
4676
- slots: PropTypes.array,
4677
- adComponent: PropTypes.func,
4678
- widgetComp: PropTypes.func,
4679
- sticky: PropTypes.bool,
4680
- keyEventsData: PropTypes.shape({
4681
- story: PropTypes.object,
4682
- config: PropTypes.object,
4683
- showLoadMore: PropTypes["boolean"]
2115
+ data: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].array]),
2116
+ config: PropTypes__default["default"].object,
2117
+ opts: PropTypes__default["default"].object,
2118
+ horizontal: PropTypes__default["default"].bool,
2119
+ slots: PropTypes__default["default"].array,
2120
+ adComponent: PropTypes__default["default"].func,
2121
+ widgetComp: PropTypes__default["default"].func,
2122
+ sticky: PropTypes__default["default"].bool,
2123
+ keyEventsData: PropTypes__default["default"].shape({
2124
+ story: PropTypes__default["default"].object,
2125
+ config: PropTypes__default["default"].object,
2126
+ showLoadMore: PropTypes__default["default"]["boolean"]
4684
2127
  }),
4685
- enableKeyEvents: PropTypes["boolean"],
4686
- storyId: PropTypes.string
2128
+ enableKeyEvents: PropTypes__default["default"]["boolean"],
2129
+ storyId: PropTypes__default["default"].string
4687
2130
  };
4688
2131
  var AsideCollection = StateProvider(AsideCollectionBase);
4689
2132
 
4690
- export { AsideCollection, AsideCollectionBase, StoryCollection };
2133
+ exports.AsideCollection = AsideCollection;
2134
+ exports.AsideCollectionBase = AsideCollectionBase;
2135
+ exports.StoryCollection = StoryCollection;