@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,2535 +1,51 @@
1
- import React, { useContext, createContext, useState, useEffect, useRef } from 'react';
2
- import PropTypes, { PropTypes as PropTypes$1 } from 'prop-types';
3
- import { useSelector, connect, useDispatch } from 'react-redux';
4
- import { Link, ResponsiveHeroImage, LinkBase, ResponsiveImage, collectionToStories } from '@quintype/components';
5
- import Timeago from 'react-timeago';
6
- import { utcToZonedTime, format } from 'date-fns-tz';
7
- import ReactDOM from 'react-dom';
8
-
9
- function _arrayWithHoles(arr) {
10
- if (Array.isArray(arr)) return arr;
11
- }
12
-
13
- function _iterableToArray(iter) {
14
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
15
- }
16
-
17
- function _arrayLikeToArray(arr, len) {
18
- if (len == null || len > arr.length) len = arr.length;
19
-
20
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
21
- arr2[i] = arr[i];
22
- }
23
-
24
- return arr2;
25
- }
26
-
27
- function _unsupportedIterableToArray(o, minLen) {
28
- if (!o) return;
29
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
30
- var n = Object.prototype.toString.call(o).slice(8, -1);
31
- if (n === "Object" && o.constructor) n = o.constructor.name;
32
- if (n === "Map" || n === "Set") return Array.from(o);
33
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
34
- }
35
-
36
- function _nonIterableRest() {
37
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
38
- }
39
-
40
- function _toArray(arr) {
41
- return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
42
- }
43
-
44
- /**
45
- * Checks if `value` is classified as an `Array` object.
46
- *
47
- * @static
48
- * @memberOf _
49
- * @since 0.1.0
50
- * @category Lang
51
- * @param {*} value The value to check.
52
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
53
- * @example
54
- *
55
- * _.isArray([1, 2, 3]);
56
- * // => true
57
- *
58
- * _.isArray(document.body.children);
59
- * // => false
60
- *
61
- * _.isArray('abc');
62
- * // => false
63
- *
64
- * _.isArray(_.noop);
65
- * // => false
66
- */
67
- var isArray = Array.isArray;
68
-
69
- var isArray_1 = isArray;
70
-
71
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
72
-
73
- function getDefaultExportFromCjs (x) {
74
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
75
- }
76
-
77
- function createCommonjsModule(fn) {
78
- var module = { exports: {} };
79
- return fn(module, module.exports), module.exports;
80
- }
81
-
82
- /** Detect free variable `global` from Node.js. */
83
-
84
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
85
-
86
- var _freeGlobal = freeGlobal;
87
-
88
- /** Detect free variable `self`. */
89
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
90
-
91
- /** Used as a reference to the global object. */
92
- var root = _freeGlobal || freeSelf || Function('return this')();
93
-
94
- var _root = root;
95
-
96
- /** Built-in value references. */
97
- var Symbol$1 = _root.Symbol;
98
-
99
- var _Symbol = Symbol$1;
100
-
101
- /** Used for built-in method references. */
102
- var objectProto$4 = Object.prototype;
103
-
104
- /** Used to check objects for own properties. */
105
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
106
-
107
- /**
108
- * Used to resolve the
109
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
110
- * of values.
111
- */
112
- var nativeObjectToString$1 = objectProto$4.toString;
113
-
114
- /** Built-in value references. */
115
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
116
-
117
- /**
118
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
119
- *
120
- * @private
121
- * @param {*} value The value to query.
122
- * @returns {string} Returns the raw `toStringTag`.
123
- */
124
- function getRawTag(value) {
125
- var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
126
- tag = value[symToStringTag$1];
127
-
128
- try {
129
- value[symToStringTag$1] = undefined;
130
- var unmasked = true;
131
- } catch (e) {}
132
-
133
- var result = nativeObjectToString$1.call(value);
134
- if (unmasked) {
135
- if (isOwn) {
136
- value[symToStringTag$1] = tag;
137
- } else {
138
- delete value[symToStringTag$1];
139
- }
140
- }
141
- return result;
142
- }
143
-
144
- var _getRawTag = getRawTag;
145
-
146
- /** Used for built-in method references. */
147
- var objectProto$3 = Object.prototype;
148
-
149
- /**
150
- * Used to resolve the
151
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
152
- * of values.
153
- */
154
- var nativeObjectToString = objectProto$3.toString;
155
-
156
- /**
157
- * Converts `value` to a string using `Object.prototype.toString`.
158
- *
159
- * @private
160
- * @param {*} value The value to convert.
161
- * @returns {string} Returns the converted string.
162
- */
163
- function objectToString(value) {
164
- return nativeObjectToString.call(value);
165
- }
166
-
167
- var _objectToString = objectToString;
168
-
169
- /** `Object#toString` result references. */
170
- var nullTag = '[object Null]',
171
- undefinedTag = '[object Undefined]';
172
-
173
- /** Built-in value references. */
174
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
175
-
176
- /**
177
- * The base implementation of `getTag` without fallbacks for buggy environments.
178
- *
179
- * @private
180
- * @param {*} value The value to query.
181
- * @returns {string} Returns the `toStringTag`.
182
- */
183
- function baseGetTag(value) {
184
- if (value == null) {
185
- return value === undefined ? undefinedTag : nullTag;
186
- }
187
- return (symToStringTag && symToStringTag in Object(value))
188
- ? _getRawTag(value)
189
- : _objectToString(value);
190
- }
191
-
192
- var _baseGetTag = baseGetTag;
193
-
194
- /**
195
- * Checks if `value` is object-like. A value is object-like if it's not `null`
196
- * and has a `typeof` result of "object".
197
- *
198
- * @static
199
- * @memberOf _
200
- * @since 4.0.0
201
- * @category Lang
202
- * @param {*} value The value to check.
203
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
204
- * @example
205
- *
206
- * _.isObjectLike({});
207
- * // => true
208
- *
209
- * _.isObjectLike([1, 2, 3]);
210
- * // => true
211
- *
212
- * _.isObjectLike(_.noop);
213
- * // => false
214
- *
215
- * _.isObjectLike(null);
216
- * // => false
217
- */
218
- function isObjectLike(value) {
219
- return value != null && typeof value == 'object';
220
- }
221
-
222
- var isObjectLike_1 = isObjectLike;
223
-
224
- /** `Object#toString` result references. */
225
- var symbolTag = '[object Symbol]';
226
-
227
- /**
228
- * Checks if `value` is classified as a `Symbol` primitive or object.
229
- *
230
- * @static
231
- * @memberOf _
232
- * @since 4.0.0
233
- * @category Lang
234
- * @param {*} value The value to check.
235
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
236
- * @example
237
- *
238
- * _.isSymbol(Symbol.iterator);
239
- * // => true
240
- *
241
- * _.isSymbol('abc');
242
- * // => false
243
- */
244
- function isSymbol(value) {
245
- return typeof value == 'symbol' ||
246
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
247
- }
248
-
249
- var isSymbol_1 = isSymbol;
250
-
251
- /** Used to match property names within property paths. */
252
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
253
- reIsPlainProp = /^\w*$/;
254
-
255
- /**
256
- * Checks if `value` is a property name and not a property path.
257
- *
258
- * @private
259
- * @param {*} value The value to check.
260
- * @param {Object} [object] The object to query keys on.
261
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
262
- */
263
- function isKey(value, object) {
264
- if (isArray_1(value)) {
265
- return false;
266
- }
267
- var type = typeof value;
268
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
269
- value == null || isSymbol_1(value)) {
270
- return true;
271
- }
272
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
273
- (object != null && value in Object(object));
274
- }
275
-
276
- var _isKey = isKey;
277
-
278
- /**
279
- * Checks if `value` is the
280
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
281
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
282
- *
283
- * @static
284
- * @memberOf _
285
- * @since 0.1.0
286
- * @category Lang
287
- * @param {*} value The value to check.
288
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
289
- * @example
290
- *
291
- * _.isObject({});
292
- * // => true
293
- *
294
- * _.isObject([1, 2, 3]);
295
- * // => true
296
- *
297
- * _.isObject(_.noop);
298
- * // => true
299
- *
300
- * _.isObject(null);
301
- * // => false
302
- */
303
- function isObject(value) {
304
- var type = typeof value;
305
- return value != null && (type == 'object' || type == 'function');
306
- }
307
-
308
- var isObject_1 = isObject;
309
-
310
- /** `Object#toString` result references. */
311
- var asyncTag = '[object AsyncFunction]',
312
- funcTag = '[object Function]',
313
- genTag = '[object GeneratorFunction]',
314
- proxyTag = '[object Proxy]';
315
-
316
- /**
317
- * Checks if `value` is classified as a `Function` object.
318
- *
319
- * @static
320
- * @memberOf _
321
- * @since 0.1.0
322
- * @category Lang
323
- * @param {*} value The value to check.
324
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
325
- * @example
326
- *
327
- * _.isFunction(_);
328
- * // => true
329
- *
330
- * _.isFunction(/abc/);
331
- * // => false
332
- */
333
- function isFunction(value) {
334
- if (!isObject_1(value)) {
335
- return false;
336
- }
337
- // The use of `Object#toString` avoids issues with the `typeof` operator
338
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
339
- var tag = _baseGetTag(value);
340
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
341
- }
342
-
343
- var isFunction_1 = isFunction;
344
-
345
- /** Used to detect overreaching core-js shims. */
346
- var coreJsData = _root['__core-js_shared__'];
347
-
348
- var _coreJsData = coreJsData;
349
-
350
- /** Used to detect methods masquerading as native. */
351
- var maskSrcKey = (function() {
352
- var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
353
- return uid ? ('Symbol(src)_1.' + uid) : '';
354
- }());
355
-
356
- /**
357
- * Checks if `func` has its source masked.
358
- *
359
- * @private
360
- * @param {Function} func The function to check.
361
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
362
- */
363
- function isMasked(func) {
364
- return !!maskSrcKey && (maskSrcKey in func);
365
- }
366
-
367
- var _isMasked = isMasked;
368
-
369
- /** Used for built-in method references. */
370
- var funcProto$1 = Function.prototype;
371
-
372
- /** Used to resolve the decompiled source of functions. */
373
- var funcToString$1 = funcProto$1.toString;
374
-
375
- /**
376
- * Converts `func` to its source code.
377
- *
378
- * @private
379
- * @param {Function} func The function to convert.
380
- * @returns {string} Returns the source code.
381
- */
382
- function toSource(func) {
383
- if (func != null) {
384
- try {
385
- return funcToString$1.call(func);
386
- } catch (e) {}
387
- try {
388
- return (func + '');
389
- } catch (e) {}
390
- }
391
- return '';
392
- }
393
-
394
- var _toSource = toSource;
395
-
396
- /**
397
- * Used to match `RegExp`
398
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
399
- */
400
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
401
-
402
- /** Used to detect host constructors (Safari). */
403
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
404
-
405
- /** Used for built-in method references. */
406
- var funcProto = Function.prototype,
407
- objectProto$2 = Object.prototype;
408
-
409
- /** Used to resolve the decompiled source of functions. */
410
- var funcToString = funcProto.toString;
411
-
412
- /** Used to check objects for own properties. */
413
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
414
-
415
- /** Used to detect if a method is native. */
416
- var reIsNative = RegExp('^' +
417
- funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
418
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
419
- );
420
-
421
- /**
422
- * The base implementation of `_.isNative` without bad shim checks.
423
- *
424
- * @private
425
- * @param {*} value The value to check.
426
- * @returns {boolean} Returns `true` if `value` is a native function,
427
- * else `false`.
428
- */
429
- function baseIsNative(value) {
430
- if (!isObject_1(value) || _isMasked(value)) {
431
- return false;
432
- }
433
- var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
434
- return pattern.test(_toSource(value));
435
- }
436
-
437
- var _baseIsNative = baseIsNative;
438
-
439
- /**
440
- * Gets the value at `key` of `object`.
441
- *
442
- * @private
443
- * @param {Object} [object] The object to query.
444
- * @param {string} key The key of the property to get.
445
- * @returns {*} Returns the property value.
446
- */
447
- function getValue(object, key) {
448
- return object == null ? undefined : object[key];
449
- }
450
-
451
- var _getValue = getValue;
452
-
453
- /**
454
- * Gets the native function at `key` of `object`.
455
- *
456
- * @private
457
- * @param {Object} object The object to query.
458
- * @param {string} key The key of the method to get.
459
- * @returns {*} Returns the function if it's native, else `undefined`.
460
- */
461
- function getNative(object, key) {
462
- var value = _getValue(object, key);
463
- return _baseIsNative(value) ? value : undefined;
464
- }
465
-
466
- var _getNative = getNative;
467
-
468
- /* Built-in method references that are verified to be native. */
469
- var nativeCreate = _getNative(Object, 'create');
470
-
471
- var _nativeCreate = nativeCreate;
472
-
473
- /**
474
- * Removes all key-value entries from the hash.
475
- *
476
- * @private
477
- * @name clear
478
- * @memberOf Hash
479
- */
480
- function hashClear() {
481
- this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
482
- this.size = 0;
483
- }
484
-
485
- var _hashClear = hashClear;
486
-
487
- /**
488
- * Removes `key` and its value from the hash.
489
- *
490
- * @private
491
- * @name delete
492
- * @memberOf Hash
493
- * @param {Object} hash The hash to modify.
494
- * @param {string} key The key of the value to remove.
495
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
496
- */
497
- function hashDelete(key) {
498
- var result = this.has(key) && delete this.__data__[key];
499
- this.size -= result ? 1 : 0;
500
- return result;
501
- }
502
-
503
- var _hashDelete = hashDelete;
504
-
505
- /** Used to stand-in for `undefined` hash values. */
506
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
507
-
508
- /** Used for built-in method references. */
509
- var objectProto$1 = Object.prototype;
510
-
511
- /** Used to check objects for own properties. */
512
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
513
-
514
- /**
515
- * Gets the hash value for `key`.
516
- *
517
- * @private
518
- * @name get
519
- * @memberOf Hash
520
- * @param {string} key The key of the value to get.
521
- * @returns {*} Returns the entry value.
522
- */
523
- function hashGet(key) {
524
- var data = this.__data__;
525
- if (_nativeCreate) {
526
- var result = data[key];
527
- return result === HASH_UNDEFINED$1 ? undefined : result;
528
- }
529
- return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
530
- }
531
-
532
- var _hashGet = hashGet;
533
-
534
- /** Used for built-in method references. */
535
- var objectProto = Object.prototype;
536
-
537
- /** Used to check objects for own properties. */
538
- var hasOwnProperty = objectProto.hasOwnProperty;
539
-
540
- /**
541
- * Checks if a hash value for `key` exists.
542
- *
543
- * @private
544
- * @name has
545
- * @memberOf Hash
546
- * @param {string} key The key of the entry to check.
547
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
548
- */
549
- function hashHas(key) {
550
- var data = this.__data__;
551
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
552
- }
553
-
554
- var _hashHas = hashHas;
555
-
556
- /** Used to stand-in for `undefined` hash values. */
557
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
558
-
559
- /**
560
- * Sets the hash `key` to `value`.
561
- *
562
- * @private
563
- * @name set
564
- * @memberOf Hash
565
- * @param {string} key The key of the value to set.
566
- * @param {*} value The value to set.
567
- * @returns {Object} Returns the hash instance.
568
- */
569
- function hashSet(key, value) {
570
- var data = this.__data__;
571
- this.size += this.has(key) ? 0 : 1;
572
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
573
- return this;
574
- }
575
-
576
- var _hashSet = hashSet;
577
-
578
- /**
579
- * Creates a hash object.
580
- *
581
- * @private
582
- * @constructor
583
- * @param {Array} [entries] The key-value pairs to cache.
584
- */
585
- function Hash(entries) {
586
- var index = -1,
587
- length = entries == null ? 0 : entries.length;
588
-
589
- this.clear();
590
- while (++index < length) {
591
- var entry = entries[index];
592
- this.set(entry[0], entry[1]);
593
- }
594
- }
595
-
596
- // Add methods to `Hash`.
597
- Hash.prototype.clear = _hashClear;
598
- Hash.prototype['delete'] = _hashDelete;
599
- Hash.prototype.get = _hashGet;
600
- Hash.prototype.has = _hashHas;
601
- Hash.prototype.set = _hashSet;
602
-
603
- var _Hash = Hash;
604
-
605
- /**
606
- * Removes all key-value entries from the list cache.
607
- *
608
- * @private
609
- * @name clear
610
- * @memberOf ListCache
611
- */
612
- function listCacheClear() {
613
- this.__data__ = [];
614
- this.size = 0;
615
- }
616
-
617
- var _listCacheClear = listCacheClear;
618
-
619
- /**
620
- * Performs a
621
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
622
- * comparison between two values to determine if they are equivalent.
623
- *
624
- * @static
625
- * @memberOf _
626
- * @since 4.0.0
627
- * @category Lang
628
- * @param {*} value The value to compare.
629
- * @param {*} other The other value to compare.
630
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
631
- * @example
632
- *
633
- * var object = { 'a': 1 };
634
- * var other = { 'a': 1 };
635
- *
636
- * _.eq(object, object);
637
- * // => true
638
- *
639
- * _.eq(object, other);
640
- * // => false
641
- *
642
- * _.eq('a', 'a');
643
- * // => true
644
- *
645
- * _.eq('a', Object('a'));
646
- * // => false
647
- *
648
- * _.eq(NaN, NaN);
649
- * // => true
650
- */
651
- function eq(value, other) {
652
- return value === other || (value !== value && other !== other);
653
- }
654
-
655
- var eq_1 = eq;
656
-
657
- /**
658
- * Gets the index at which the `key` is found in `array` of key-value pairs.
659
- *
660
- * @private
661
- * @param {Array} array The array to inspect.
662
- * @param {*} key The key to search for.
663
- * @returns {number} Returns the index of the matched value, else `-1`.
664
- */
665
- function assocIndexOf(array, key) {
666
- var length = array.length;
667
- while (length--) {
668
- if (eq_1(array[length][0], key)) {
669
- return length;
670
- }
671
- }
672
- return -1;
673
- }
674
-
675
- var _assocIndexOf = assocIndexOf;
676
-
677
- /** Used for built-in method references. */
678
- var arrayProto = Array.prototype;
679
-
680
- /** Built-in value references. */
681
- var splice = arrayProto.splice;
682
-
683
- /**
684
- * Removes `key` and its value from the list cache.
685
- *
686
- * @private
687
- * @name delete
688
- * @memberOf ListCache
689
- * @param {string} key The key of the value to remove.
690
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
691
- */
692
- function listCacheDelete(key) {
693
- var data = this.__data__,
694
- index = _assocIndexOf(data, key);
695
-
696
- if (index < 0) {
697
- return false;
698
- }
699
- var lastIndex = data.length - 1;
700
- if (index == lastIndex) {
701
- data.pop();
702
- } else {
703
- splice.call(data, index, 1);
704
- }
705
- --this.size;
706
- return true;
707
- }
708
-
709
- var _listCacheDelete = listCacheDelete;
710
-
711
- /**
712
- * Gets the list cache value for `key`.
713
- *
714
- * @private
715
- * @name get
716
- * @memberOf ListCache
717
- * @param {string} key The key of the value to get.
718
- * @returns {*} Returns the entry value.
719
- */
720
- function listCacheGet(key) {
721
- var data = this.__data__,
722
- index = _assocIndexOf(data, key);
723
-
724
- return index < 0 ? undefined : data[index][1];
725
- }
726
-
727
- var _listCacheGet = listCacheGet;
728
-
729
- /**
730
- * Checks if a list cache value for `key` exists.
731
- *
732
- * @private
733
- * @name has
734
- * @memberOf ListCache
735
- * @param {string} key The key of the entry to check.
736
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
737
- */
738
- function listCacheHas(key) {
739
- return _assocIndexOf(this.__data__, key) > -1;
740
- }
741
-
742
- var _listCacheHas = listCacheHas;
743
-
744
- /**
745
- * Sets the list cache `key` to `value`.
746
- *
747
- * @private
748
- * @name set
749
- * @memberOf ListCache
750
- * @param {string} key The key of the value to set.
751
- * @param {*} value The value to set.
752
- * @returns {Object} Returns the list cache instance.
753
- */
754
- function listCacheSet(key, value) {
755
- var data = this.__data__,
756
- index = _assocIndexOf(data, key);
757
-
758
- if (index < 0) {
759
- ++this.size;
760
- data.push([key, value]);
761
- } else {
762
- data[index][1] = value;
763
- }
764
- return this;
765
- }
766
-
767
- var _listCacheSet = listCacheSet;
768
-
769
- /**
770
- * Creates an list cache object.
771
- *
772
- * @private
773
- * @constructor
774
- * @param {Array} [entries] The key-value pairs to cache.
775
- */
776
- function ListCache(entries) {
777
- var index = -1,
778
- length = entries == null ? 0 : entries.length;
779
-
780
- this.clear();
781
- while (++index < length) {
782
- var entry = entries[index];
783
- this.set(entry[0], entry[1]);
784
- }
785
- }
786
-
787
- // Add methods to `ListCache`.
788
- ListCache.prototype.clear = _listCacheClear;
789
- ListCache.prototype['delete'] = _listCacheDelete;
790
- ListCache.prototype.get = _listCacheGet;
791
- ListCache.prototype.has = _listCacheHas;
792
- ListCache.prototype.set = _listCacheSet;
793
-
794
- var _ListCache = ListCache;
795
-
796
- /* Built-in method references that are verified to be native. */
797
- var Map = _getNative(_root, 'Map');
798
-
799
- var _Map = Map;
800
-
801
- /**
802
- * Removes all key-value entries from the map.
803
- *
804
- * @private
805
- * @name clear
806
- * @memberOf MapCache
807
- */
808
- function mapCacheClear() {
809
- this.size = 0;
810
- this.__data__ = {
811
- 'hash': new _Hash,
812
- 'map': new (_Map || _ListCache),
813
- 'string': new _Hash
814
- };
815
- }
816
-
817
- var _mapCacheClear = mapCacheClear;
818
-
819
- /**
820
- * Checks if `value` is suitable for use as unique object key.
821
- *
822
- * @private
823
- * @param {*} value The value to check.
824
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
825
- */
826
- function isKeyable(value) {
827
- var type = typeof value;
828
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
829
- ? (value !== '__proto__')
830
- : (value === null);
831
- }
832
-
833
- var _isKeyable = isKeyable;
834
-
835
- /**
836
- * Gets the data for `map`.
837
- *
838
- * @private
839
- * @param {Object} map The map to query.
840
- * @param {string} key The reference key.
841
- * @returns {*} Returns the map data.
842
- */
843
- function getMapData(map, key) {
844
- var data = map.__data__;
845
- return _isKeyable(key)
846
- ? data[typeof key == 'string' ? 'string' : 'hash']
847
- : data.map;
848
- }
849
-
850
- var _getMapData = getMapData;
851
-
852
- /**
853
- * Removes `key` and its value from the map.
854
- *
855
- * @private
856
- * @name delete
857
- * @memberOf MapCache
858
- * @param {string} key The key of the value to remove.
859
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
860
- */
861
- function mapCacheDelete(key) {
862
- var result = _getMapData(this, key)['delete'](key);
863
- this.size -= result ? 1 : 0;
864
- return result;
865
- }
866
-
867
- var _mapCacheDelete = mapCacheDelete;
868
-
869
- /**
870
- * Gets the map value for `key`.
871
- *
872
- * @private
873
- * @name get
874
- * @memberOf MapCache
875
- * @param {string} key The key of the value to get.
876
- * @returns {*} Returns the entry value.
877
- */
878
- function mapCacheGet(key) {
879
- return _getMapData(this, key).get(key);
880
- }
881
-
882
- var _mapCacheGet = mapCacheGet;
883
-
884
- /**
885
- * Checks if a map value for `key` exists.
886
- *
887
- * @private
888
- * @name has
889
- * @memberOf MapCache
890
- * @param {string} key The key of the entry to check.
891
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
892
- */
893
- function mapCacheHas(key) {
894
- return _getMapData(this, key).has(key);
895
- }
896
-
897
- var _mapCacheHas = mapCacheHas;
898
-
899
- /**
900
- * Sets the map `key` to `value`.
901
- *
902
- * @private
903
- * @name set
904
- * @memberOf MapCache
905
- * @param {string} key The key of the value to set.
906
- * @param {*} value The value to set.
907
- * @returns {Object} Returns the map cache instance.
908
- */
909
- function mapCacheSet(key, value) {
910
- var data = _getMapData(this, key),
911
- size = data.size;
912
-
913
- data.set(key, value);
914
- this.size += data.size == size ? 0 : 1;
915
- return this;
916
- }
917
-
918
- var _mapCacheSet = mapCacheSet;
919
-
920
- /**
921
- * Creates a map cache object to store key-value pairs.
922
- *
923
- * @private
924
- * @constructor
925
- * @param {Array} [entries] The key-value pairs to cache.
926
- */
927
- function MapCache(entries) {
928
- var index = -1,
929
- length = entries == null ? 0 : entries.length;
930
-
931
- this.clear();
932
- while (++index < length) {
933
- var entry = entries[index];
934
- this.set(entry[0], entry[1]);
935
- }
936
- }
937
-
938
- // Add methods to `MapCache`.
939
- MapCache.prototype.clear = _mapCacheClear;
940
- MapCache.prototype['delete'] = _mapCacheDelete;
941
- MapCache.prototype.get = _mapCacheGet;
942
- MapCache.prototype.has = _mapCacheHas;
943
- MapCache.prototype.set = _mapCacheSet;
944
-
945
- var _MapCache = MapCache;
946
-
947
- /** Error message constants. */
948
- var FUNC_ERROR_TEXT = 'Expected a function';
949
-
950
- /**
951
- * Creates a function that memoizes the result of `func`. If `resolver` is
952
- * provided, it determines the cache key for storing the result based on the
953
- * arguments provided to the memoized function. By default, the first argument
954
- * provided to the memoized function is used as the map cache key. The `func`
955
- * is invoked with the `this` binding of the memoized function.
956
- *
957
- * **Note:** The cache is exposed as the `cache` property on the memoized
958
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
959
- * constructor with one whose instances implement the
960
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
961
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
962
- *
963
- * @static
964
- * @memberOf _
965
- * @since 0.1.0
966
- * @category Function
967
- * @param {Function} func The function to have its output memoized.
968
- * @param {Function} [resolver] The function to resolve the cache key.
969
- * @returns {Function} Returns the new memoized function.
970
- * @example
971
- *
972
- * var object = { 'a': 1, 'b': 2 };
973
- * var other = { 'c': 3, 'd': 4 };
974
- *
975
- * var values = _.memoize(_.values);
976
- * values(object);
977
- * // => [1, 2]
978
- *
979
- * values(other);
980
- * // => [3, 4]
981
- *
982
- * object.a = 2;
983
- * values(object);
984
- * // => [1, 2]
985
- *
986
- * // Modify the result cache.
987
- * values.cache.set(object, ['a', 'b']);
988
- * values(object);
989
- * // => ['a', 'b']
990
- *
991
- * // Replace `_.memoize.Cache`.
992
- * _.memoize.Cache = WeakMap;
993
- */
994
- function memoize(func, resolver) {
995
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
996
- throw new TypeError(FUNC_ERROR_TEXT);
997
- }
998
- var memoized = function() {
999
- var args = arguments,
1000
- key = resolver ? resolver.apply(this, args) : args[0],
1001
- cache = memoized.cache;
1002
-
1003
- if (cache.has(key)) {
1004
- return cache.get(key);
1005
- }
1006
- var result = func.apply(this, args);
1007
- memoized.cache = cache.set(key, result) || cache;
1008
- return result;
1009
- };
1010
- memoized.cache = new (memoize.Cache || _MapCache);
1011
- return memoized;
1012
- }
1013
-
1014
- // Expose `MapCache`.
1015
- memoize.Cache = _MapCache;
1016
-
1017
- var memoize_1 = memoize;
1018
-
1019
- /** Used as the maximum memoize cache size. */
1020
- var MAX_MEMOIZE_SIZE = 500;
1021
-
1022
- /**
1023
- * A specialized version of `_.memoize` which clears the memoized function's
1024
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1025
- *
1026
- * @private
1027
- * @param {Function} func The function to have its output memoized.
1028
- * @returns {Function} Returns the new memoized function.
1029
- */
1030
- function memoizeCapped(func) {
1031
- var result = memoize_1(func, function(key) {
1032
- if (cache.size === MAX_MEMOIZE_SIZE) {
1033
- cache.clear();
1034
- }
1035
- return key;
1036
- });
1037
-
1038
- var cache = result.cache;
1039
- return result;
1040
- }
1041
-
1042
- var _memoizeCapped = memoizeCapped;
1043
-
1044
- /** Used to match property names within property paths. */
1045
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1046
-
1047
- /** Used to match backslashes in property paths. */
1048
- var reEscapeChar = /\\(\\)?/g;
1049
-
1050
- /**
1051
- * Converts `string` to a property path array.
1052
- *
1053
- * @private
1054
- * @param {string} string The string to convert.
1055
- * @returns {Array} Returns the property path array.
1056
- */
1057
- var stringToPath = _memoizeCapped(function(string) {
1058
- var result = [];
1059
- if (string.charCodeAt(0) === 46 /* . */) {
1060
- result.push('');
1061
- }
1062
- string.replace(rePropName, function(match, number, quote, subString) {
1063
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1064
- });
1065
- return result;
1066
- });
1067
-
1068
- var _stringToPath = stringToPath;
1069
-
1070
- /**
1071
- * A specialized version of `_.map` for arrays without support for iteratee
1072
- * shorthands.
1073
- *
1074
- * @private
1075
- * @param {Array} [array] The array to iterate over.
1076
- * @param {Function} iteratee The function invoked per iteration.
1077
- * @returns {Array} Returns the new mapped array.
1078
- */
1079
- function arrayMap(array, iteratee) {
1080
- var index = -1,
1081
- length = array == null ? 0 : array.length,
1082
- result = Array(length);
1083
-
1084
- while (++index < length) {
1085
- result[index] = iteratee(array[index], index, array);
1086
- }
1087
- return result;
1088
- }
1089
-
1090
- var _arrayMap = arrayMap;
1091
-
1092
- /** Used as references for various `Number` constants. */
1093
- var INFINITY$1 = 1 / 0;
1094
-
1095
- /** Used to convert symbols to primitives and strings. */
1096
- var symbolProto = _Symbol ? _Symbol.prototype : undefined,
1097
- symbolToString = symbolProto ? symbolProto.toString : undefined;
1098
-
1099
- /**
1100
- * The base implementation of `_.toString` which doesn't convert nullish
1101
- * values to empty strings.
1102
- *
1103
- * @private
1104
- * @param {*} value The value to process.
1105
- * @returns {string} Returns the string.
1106
- */
1107
- function baseToString(value) {
1108
- // Exit early for strings to avoid a performance hit in some environments.
1109
- if (typeof value == 'string') {
1110
- return value;
1111
- }
1112
- if (isArray_1(value)) {
1113
- // Recursively convert values (susceptible to call stack limits).
1114
- return _arrayMap(value, baseToString) + '';
1115
- }
1116
- if (isSymbol_1(value)) {
1117
- return symbolToString ? symbolToString.call(value) : '';
1118
- }
1119
- var result = (value + '');
1120
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
1121
- }
1122
-
1123
- var _baseToString = baseToString;
1124
-
1125
- /**
1126
- * Converts `value` to a string. An empty string is returned for `null`
1127
- * and `undefined` values. The sign of `-0` is preserved.
1128
- *
1129
- * @static
1130
- * @memberOf _
1131
- * @since 4.0.0
1132
- * @category Lang
1133
- * @param {*} value The value to convert.
1134
- * @returns {string} Returns the converted string.
1135
- * @example
1136
- *
1137
- * _.toString(null);
1138
- * // => ''
1139
- *
1140
- * _.toString(-0);
1141
- * // => '-0'
1142
- *
1143
- * _.toString([1, 2, 3]);
1144
- * // => '1,2,3'
1145
- */
1146
- function toString(value) {
1147
- return value == null ? '' : _baseToString(value);
1148
- }
1149
-
1150
- var toString_1 = toString;
1151
-
1152
- /**
1153
- * Casts `value` to a path array if it's not one.
1154
- *
1155
- * @private
1156
- * @param {*} value The value to inspect.
1157
- * @param {Object} [object] The object to query keys on.
1158
- * @returns {Array} Returns the cast property path array.
1159
- */
1160
- function castPath(value, object) {
1161
- if (isArray_1(value)) {
1162
- return value;
1163
- }
1164
- return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
1165
- }
1166
-
1167
- var _castPath = castPath;
1168
-
1169
- /** Used as references for various `Number` constants. */
1170
- var INFINITY = 1 / 0;
1171
-
1172
- /**
1173
- * Converts `value` to a string key if it's not a string or symbol.
1174
- *
1175
- * @private
1176
- * @param {*} value The value to inspect.
1177
- * @returns {string|symbol} Returns the key.
1178
- */
1179
- function toKey(value) {
1180
- if (typeof value == 'string' || isSymbol_1(value)) {
1181
- return value;
1182
- }
1183
- var result = (value + '');
1184
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
1185
- }
1186
-
1187
- var _toKey = toKey;
1188
-
1189
- /**
1190
- * The base implementation of `_.get` without support for default values.
1191
- *
1192
- * @private
1193
- * @param {Object} object The object to query.
1194
- * @param {Array|string} path The path of the property to get.
1195
- * @returns {*} Returns the resolved value.
1196
- */
1197
- function baseGet(object, path) {
1198
- path = _castPath(path, object);
1199
-
1200
- var index = 0,
1201
- length = path.length;
1202
-
1203
- while (object != null && index < length) {
1204
- object = object[_toKey(path[index++])];
1205
- }
1206
- return (index && index == length) ? object : undefined;
1207
- }
1208
-
1209
- var _baseGet = baseGet;
1210
-
1211
- /**
1212
- * Gets the value at `path` of `object`. If the resolved value is
1213
- * `undefined`, the `defaultValue` is returned in its place.
1214
- *
1215
- * @static
1216
- * @memberOf _
1217
- * @since 3.7.0
1218
- * @category Object
1219
- * @param {Object} object The object to query.
1220
- * @param {Array|string} path The path of the property to get.
1221
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
1222
- * @returns {*} Returns the resolved value.
1223
- * @example
1224
- *
1225
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
1226
- *
1227
- * _.get(object, 'a[0].b.c');
1228
- * // => 3
1229
- *
1230
- * _.get(object, ['a', '0', 'b', 'c']);
1231
- * // => 3
1232
- *
1233
- * _.get(object, 'a.b.c', 'default');
1234
- * // => 'default'
1235
- */
1236
- function get(object, path, defaultValue) {
1237
- var result = object == null ? undefined : _baseGet(object, path);
1238
- return result === undefined ? defaultValue : result;
1239
- }
1240
-
1241
- var get_1 = get;
1242
-
1243
- function _iterableToArrayLimit(arr, i) {
1244
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1245
-
1246
- if (_i == null) return;
1247
- var _arr = [];
1248
- var _n = true;
1249
- var _d = false;
1250
-
1251
- var _s, _e;
1252
-
1253
- try {
1254
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
1255
- _arr.push(_s.value);
1256
-
1257
- if (i && _arr.length === i) break;
1258
- }
1259
- } catch (err) {
1260
- _d = true;
1261
- _e = err;
1262
- } finally {
1263
- try {
1264
- if (!_n && _i["return"] != null) _i["return"]();
1265
- } finally {
1266
- if (_d) throw _e;
1267
- }
1268
- }
1269
-
1270
- return _arr;
1271
- }
1272
-
1273
- function _slicedToArray(arr, i) {
1274
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
1275
- }
1276
-
1277
- var optionsDefaults_1 = createCommonjsModule(function (module, exports) {
1278
-
1279
- Object.defineProperty(exports, "__esModule", {
1280
- value: true
1281
- });
1282
- exports["default"] = void 0;
1283
- var optionsDefaults = {
1284
- attributeNames: {
1285
- styleName: 'className'
1286
- },
1287
- generateScopedName: '[path]___[name]__[local]___[hash:base64:5]',
1288
- handleMissingStyleName: 'throw'
1289
- };
1290
- var _default = optionsDefaults;
1291
- exports["default"] = _default;
1292
-
1293
-
1294
- });
1295
-
1296
- var getClassName = createCommonjsModule(function (module, exports) {
1297
-
1298
- Object.defineProperty(exports, "__esModule", {
1299
- value: true
1300
- });
1301
- exports["default"] = void 0;
1302
-
1303
- var _optionsDefaults = _interopRequireDefault(optionsDefaults_1);
1304
-
1305
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
1306
-
1307
- var isNamespacedStyleName = function isNamespacedStyleName(styleName) {
1308
- return styleName.indexOf('.') !== -1;
1309
- };
1310
-
1311
- var handleError = function handleError(message, handleMissingStyleName) {
1312
- if (handleMissingStyleName === 'throw') {
1313
- throw new Error(message);
1314
- } else if (handleMissingStyleName === 'warn') {
1315
- // eslint-disable-next-line no-console
1316
- console.warn(message);
1317
- }
1318
-
1319
- return null;
1320
- };
1321
-
1322
- var getClassNameForNamespacedStyleName = function getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
1323
- // Note:
1324
- // Do not use the desctructing syntax with Babel.
1325
- // Desctructing adds _slicedToArray helper.
1326
- var styleNameParts = styleName.split('.');
1327
- var importName = styleNameParts[0];
1328
- var moduleName = styleNameParts[1];
1329
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
1330
-
1331
- if (!moduleName) {
1332
- return handleError('Invalid style name: ' + styleName, handleMissingStyleName);
1333
- }
1334
-
1335
- if (!styleModuleImportMap[importName]) {
1336
- return handleError('CSS module import does not exist: ' + importName, handleMissingStyleName);
1337
- }
1338
-
1339
- if (!styleModuleImportMap[importName][moduleName]) {
1340
- return handleError('CSS module does not exist: ' + moduleName, handleMissingStyleName);
1341
- }
1342
-
1343
- return styleModuleImportMap[importName][moduleName];
1344
- };
1345
-
1346
- var getClassNameFromMultipleImports = function getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
1347
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
1348
- var importKeysWithMatches = Object.keys(styleModuleImportMap).map(function (importKey) {
1349
- return styleModuleImportMap[importKey][styleName] && importKey;
1350
- }).filter(function (importKey) {
1351
- return importKey;
1352
- });
1353
-
1354
- if (importKeysWithMatches.length > 1) {
1355
- 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');
1356
- }
1357
-
1358
- if (importKeysWithMatches.length === 0) {
1359
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
1360
- }
1361
-
1362
- return styleModuleImportMap[importKeysWithMatches[0]][styleName];
1363
- };
1364
-
1365
- var _default = function _default(styleNameValue, styleModuleImportMap, options) {
1366
- var styleModuleImportMapKeys = Object.keys(styleModuleImportMap);
1367
-
1368
- var _ref = options || {},
1369
- _ref$handleMissingSty = _ref.handleMissingStyleName,
1370
- handleMissingStyleName = _ref$handleMissingSty === void 0 ? _optionsDefaults["default"].handleMissingStyleName : _ref$handleMissingSty,
1371
- _ref$autoResolveMulti = _ref.autoResolveMultipleImports,
1372
- autoResolveMultipleImports = _ref$autoResolveMulti === void 0 ? _optionsDefaults["default"].autoResolveMultipleImports : _ref$autoResolveMulti;
1373
-
1374
- if (!styleNameValue) {
1375
- return '';
1376
- }
1377
-
1378
- return styleNameValue.split(' ').filter(function (styleName) {
1379
- return styleName;
1380
- }).map(function (styleName) {
1381
- if (isNamespacedStyleName(styleName)) {
1382
- return getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleName);
1383
- }
1384
-
1385
- if (styleModuleImportMapKeys.length === 0) {
1386
- throw new Error('Cannot use styleName attribute for style name \'' + styleName + '\' without importing at least one stylesheet.');
1387
- }
1388
-
1389
- if (styleModuleImportMapKeys.length > 1) {
1390
- if (!autoResolveMultipleImports) {
1391
- throw new Error('Cannot use anonymous style name \'' + styleName + '\' with more than one stylesheet import without setting \'autoResolveMultipleImports\' to true.');
1392
- }
1393
-
1394
- return getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleName);
1395
- }
1396
-
1397
- var styleModuleMap = styleModuleImportMap[styleModuleImportMapKeys[0]];
1398
-
1399
- if (!styleModuleMap[styleName]) {
1400
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
1401
- }
1402
-
1403
- return styleModuleMap[styleName];
1404
- }).filter(function (className) {
1405
- // Remove any styles which could not be found (if handleMissingStyleName === 'ignore')
1406
- return className;
1407
- }).join(' ');
1408
- };
1409
-
1410
- exports["default"] = _default;
1411
-
1412
-
1413
- });
1414
-
1415
- var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
1416
-
1417
- /**
1418
- * Copyright (c) 2014-present, Facebook, Inc.
1419
- *
1420
- * This source code is licensed under the MIT license found in the
1421
- * LICENSE file in the root directory of this source tree.
1422
- */
1423
-
1424
- createCommonjsModule(function (module) {
1425
- var runtime = (function (exports) {
1426
-
1427
- var Op = Object.prototype;
1428
- var hasOwn = Op.hasOwnProperty;
1429
- var undefined$1; // More compressible than void 0.
1430
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
1431
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
1432
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
1433
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
1434
-
1435
- function define(obj, key, value) {
1436
- Object.defineProperty(obj, key, {
1437
- value: value,
1438
- enumerable: true,
1439
- configurable: true,
1440
- writable: true
1441
- });
1442
- return obj[key];
1443
- }
1444
- try {
1445
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
1446
- define({}, "");
1447
- } catch (err) {
1448
- define = function(obj, key, value) {
1449
- return obj[key] = value;
1450
- };
1451
- }
1452
-
1453
- function wrap(innerFn, outerFn, self, tryLocsList) {
1454
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
1455
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
1456
- var generator = Object.create(protoGenerator.prototype);
1457
- var context = new Context(tryLocsList || []);
1458
-
1459
- // The ._invoke method unifies the implementations of the .next,
1460
- // .throw, and .return methods.
1461
- generator._invoke = makeInvokeMethod(innerFn, self, context);
1462
-
1463
- return generator;
1464
- }
1465
- exports.wrap = wrap;
1466
-
1467
- // Try/catch helper to minimize deoptimizations. Returns a completion
1468
- // record like context.tryEntries[i].completion. This interface could
1469
- // have been (and was previously) designed to take a closure to be
1470
- // invoked without arguments, but in all the cases we care about we
1471
- // already have an existing method we want to call, so there's no need
1472
- // to create a new function object. We can even get away with assuming
1473
- // the method takes exactly one argument, since that happens to be true
1474
- // in every case, so we don't have to touch the arguments object. The
1475
- // only additional allocation required is the completion record, which
1476
- // has a stable shape and so hopefully should be cheap to allocate.
1477
- function tryCatch(fn, obj, arg) {
1478
- try {
1479
- return { type: "normal", arg: fn.call(obj, arg) };
1480
- } catch (err) {
1481
- return { type: "throw", arg: err };
1482
- }
1483
- }
1484
-
1485
- var GenStateSuspendedStart = "suspendedStart";
1486
- var GenStateSuspendedYield = "suspendedYield";
1487
- var GenStateExecuting = "executing";
1488
- var GenStateCompleted = "completed";
1489
-
1490
- // Returning this object from the innerFn has the same effect as
1491
- // breaking out of the dispatch switch statement.
1492
- var ContinueSentinel = {};
1493
-
1494
- // Dummy constructor functions that we use as the .constructor and
1495
- // .constructor.prototype properties for functions that return Generator
1496
- // objects. For full spec compliance, you may wish to configure your
1497
- // minifier not to mangle the names of these two functions.
1498
- function Generator() {}
1499
- function GeneratorFunction() {}
1500
- function GeneratorFunctionPrototype() {}
1501
-
1502
- // This is a polyfill for %IteratorPrototype% for environments that
1503
- // don't natively support it.
1504
- var IteratorPrototype = {};
1505
- define(IteratorPrototype, iteratorSymbol, function () {
1506
- return this;
1507
- });
1508
-
1509
- var getProto = Object.getPrototypeOf;
1510
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
1511
- if (NativeIteratorPrototype &&
1512
- NativeIteratorPrototype !== Op &&
1513
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
1514
- // This environment has a native %IteratorPrototype%; use it instead
1515
- // of the polyfill.
1516
- IteratorPrototype = NativeIteratorPrototype;
1517
- }
1518
-
1519
- var Gp = GeneratorFunctionPrototype.prototype =
1520
- Generator.prototype = Object.create(IteratorPrototype);
1521
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
1522
- define(Gp, "constructor", GeneratorFunctionPrototype);
1523
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
1524
- GeneratorFunction.displayName = define(
1525
- GeneratorFunctionPrototype,
1526
- toStringTagSymbol,
1527
- "GeneratorFunction"
1528
- );
1529
-
1530
- // Helper for defining the .next, .throw, and .return methods of the
1531
- // Iterator interface in terms of a single ._invoke method.
1532
- function defineIteratorMethods(prototype) {
1533
- ["next", "throw", "return"].forEach(function(method) {
1534
- define(prototype, method, function(arg) {
1535
- return this._invoke(method, arg);
1536
- });
1537
- });
1538
- }
1539
-
1540
- exports.isGeneratorFunction = function(genFun) {
1541
- var ctor = typeof genFun === "function" && genFun.constructor;
1542
- return ctor
1543
- ? ctor === GeneratorFunction ||
1544
- // For the native GeneratorFunction constructor, the best we can
1545
- // do is to check its .name property.
1546
- (ctor.displayName || ctor.name) === "GeneratorFunction"
1547
- : false;
1548
- };
1549
-
1550
- exports.mark = function(genFun) {
1551
- if (Object.setPrototypeOf) {
1552
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
1553
- } else {
1554
- genFun.__proto__ = GeneratorFunctionPrototype;
1555
- define(genFun, toStringTagSymbol, "GeneratorFunction");
1556
- }
1557
- genFun.prototype = Object.create(Gp);
1558
- return genFun;
1559
- };
1560
-
1561
- // Within the body of any async function, `await x` is transformed to
1562
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
1563
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
1564
- // meant to be awaited.
1565
- exports.awrap = function(arg) {
1566
- return { __await: arg };
1567
- };
1568
-
1569
- function AsyncIterator(generator, PromiseImpl) {
1570
- function invoke(method, arg, resolve, reject) {
1571
- var record = tryCatch(generator[method], generator, arg);
1572
- if (record.type === "throw") {
1573
- reject(record.arg);
1574
- } else {
1575
- var result = record.arg;
1576
- var value = result.value;
1577
- if (value &&
1578
- typeof value === "object" &&
1579
- hasOwn.call(value, "__await")) {
1580
- return PromiseImpl.resolve(value.__await).then(function(value) {
1581
- invoke("next", value, resolve, reject);
1582
- }, function(err) {
1583
- invoke("throw", err, resolve, reject);
1584
- });
1585
- }
1586
-
1587
- return PromiseImpl.resolve(value).then(function(unwrapped) {
1588
- // When a yielded Promise is resolved, its final value becomes
1589
- // the .value of the Promise<{value,done}> result for the
1590
- // current iteration.
1591
- result.value = unwrapped;
1592
- resolve(result);
1593
- }, function(error) {
1594
- // If a rejected Promise was yielded, throw the rejection back
1595
- // into the async generator function so it can be handled there.
1596
- return invoke("throw", error, resolve, reject);
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _toArray = require('@babel/runtime/helpers/toArray');
6
+ var React = require('react');
7
+ var lodash = require('lodash');
8
+ var PropTypes = require('prop-types');
9
+ var reactRedux = require('react-redux');
10
+ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
11
+ var _getClassName = require('babel-plugin-react-css-modules/dist/browser/getClassName');
12
+ var components = require('@quintype/components');
13
+ require('@babel/runtime/helpers/asyncToGenerator');
14
+ require('@babel/runtime/helpers/typeof');
15
+ require('@babel/runtime/regenerator');
16
+ var Timeago = require('react-timeago');
17
+ var dateFnsTz = require('date-fns-tz');
18
+ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
19
+ var ReactDOM = require('react-dom');
20
+
21
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
22
+
23
+ function _interopNamespace(e) {
24
+ if (e && e.__esModule) return e;
25
+ var n = Object.create(null);
26
+ if (e) {
27
+ Object.keys(e).forEach(function (k) {
28
+ if (k !== 'default') {
29
+ var d = Object.getOwnPropertyDescriptor(e, k);
30
+ Object.defineProperty(n, k, d.get ? d : {
31
+ enumerable: true,
32
+ get: function () { return e[k]; }
1597
33
  });
1598
34
  }
1599
- }
1600
-
1601
- var previousPromise;
1602
-
1603
- function enqueue(method, arg) {
1604
- function callInvokeWithMethodAndArg() {
1605
- return new PromiseImpl(function(resolve, reject) {
1606
- invoke(method, arg, resolve, reject);
1607
- });
1608
- }
1609
-
1610
- return previousPromise =
1611
- // If enqueue has been called before, then we want to wait until
1612
- // all previous Promises have been resolved before calling invoke,
1613
- // so that results are always delivered in the correct order. If
1614
- // enqueue has not been called before, then it is important to
1615
- // call invoke immediately, without waiting on a callback to fire,
1616
- // so that the async generator function has the opportunity to do
1617
- // any necessary setup in a predictable way. This predictability
1618
- // is why the Promise constructor synchronously invokes its
1619
- // executor callback, and why async functions synchronously
1620
- // execute code before the first await. Since we implement simple
1621
- // async functions in terms of async generators, it is especially
1622
- // important to get this right, even though it requires care.
1623
- previousPromise ? previousPromise.then(
1624
- callInvokeWithMethodAndArg,
1625
- // Avoid propagating failures to Promises returned by later
1626
- // invocations of the iterator.
1627
- callInvokeWithMethodAndArg
1628
- ) : callInvokeWithMethodAndArg();
1629
- }
1630
-
1631
- // Define the unified helper method that is used to implement .next,
1632
- // .throw, and .return (see defineIteratorMethods).
1633
- this._invoke = enqueue;
1634
- }
1635
-
1636
- defineIteratorMethods(AsyncIterator.prototype);
1637
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
1638
- return this;
1639
- });
1640
- exports.AsyncIterator = AsyncIterator;
1641
-
1642
- // Note that simple async functions are implemented on top of
1643
- // AsyncIterator objects; they just return a Promise for the value of
1644
- // the final result produced by the iterator.
1645
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
1646
- if (PromiseImpl === void 0) PromiseImpl = Promise;
1647
-
1648
- var iter = new AsyncIterator(
1649
- wrap(innerFn, outerFn, self, tryLocsList),
1650
- PromiseImpl
1651
- );
1652
-
1653
- return exports.isGeneratorFunction(outerFn)
1654
- ? iter // If outerFn is a generator, return the full iterator.
1655
- : iter.next().then(function(result) {
1656
- return result.done ? result.value : iter.next();
1657
- });
1658
- };
1659
-
1660
- function makeInvokeMethod(innerFn, self, context) {
1661
- var state = GenStateSuspendedStart;
1662
-
1663
- return function invoke(method, arg) {
1664
- if (state === GenStateExecuting) {
1665
- throw new Error("Generator is already running");
1666
- }
1667
-
1668
- if (state === GenStateCompleted) {
1669
- if (method === "throw") {
1670
- throw arg;
1671
- }
1672
-
1673
- // Be forgiving, per 25.3.3.3.3 of the spec:
1674
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
1675
- return doneResult();
1676
- }
1677
-
1678
- context.method = method;
1679
- context.arg = arg;
1680
-
1681
- while (true) {
1682
- var delegate = context.delegate;
1683
- if (delegate) {
1684
- var delegateResult = maybeInvokeDelegate(delegate, context);
1685
- if (delegateResult) {
1686
- if (delegateResult === ContinueSentinel) continue;
1687
- return delegateResult;
1688
- }
1689
- }
1690
-
1691
- if (context.method === "next") {
1692
- // Setting context._sent for legacy support of Babel's
1693
- // function.sent implementation.
1694
- context.sent = context._sent = context.arg;
1695
-
1696
- } else if (context.method === "throw") {
1697
- if (state === GenStateSuspendedStart) {
1698
- state = GenStateCompleted;
1699
- throw context.arg;
1700
- }
1701
-
1702
- context.dispatchException(context.arg);
1703
-
1704
- } else if (context.method === "return") {
1705
- context.abrupt("return", context.arg);
1706
- }
1707
-
1708
- state = GenStateExecuting;
1709
-
1710
- var record = tryCatch(innerFn, self, context);
1711
- if (record.type === "normal") {
1712
- // If an exception is thrown from innerFn, we leave state ===
1713
- // GenStateExecuting and loop back for another invocation.
1714
- state = context.done
1715
- ? GenStateCompleted
1716
- : GenStateSuspendedYield;
1717
-
1718
- if (record.arg === ContinueSentinel) {
1719
- continue;
1720
- }
1721
-
1722
- return {
1723
- value: record.arg,
1724
- done: context.done
1725
- };
1726
-
1727
- } else if (record.type === "throw") {
1728
- state = GenStateCompleted;
1729
- // Dispatch the exception by looping back around to the
1730
- // context.dispatchException(context.arg) call above.
1731
- context.method = "throw";
1732
- context.arg = record.arg;
1733
- }
1734
- }
1735
- };
1736
- }
1737
-
1738
- // Call delegate.iterator[context.method](context.arg) and handle the
1739
- // result, either by returning a { value, done } result from the
1740
- // delegate iterator, or by modifying context.method and context.arg,
1741
- // setting context.delegate to null, and returning the ContinueSentinel.
1742
- function maybeInvokeDelegate(delegate, context) {
1743
- var method = delegate.iterator[context.method];
1744
- if (method === undefined$1) {
1745
- // A .throw or .return when the delegate iterator has no .throw
1746
- // method always terminates the yield* loop.
1747
- context.delegate = null;
1748
-
1749
- if (context.method === "throw") {
1750
- // Note: ["return"] must be used for ES3 parsing compatibility.
1751
- if (delegate.iterator["return"]) {
1752
- // If the delegate iterator has a return method, give it a
1753
- // chance to clean up.
1754
- context.method = "return";
1755
- context.arg = undefined$1;
1756
- maybeInvokeDelegate(delegate, context);
1757
-
1758
- if (context.method === "throw") {
1759
- // If maybeInvokeDelegate(context) changed context.method from
1760
- // "return" to "throw", let that override the TypeError below.
1761
- return ContinueSentinel;
1762
- }
1763
- }
1764
-
1765
- context.method = "throw";
1766
- context.arg = new TypeError(
1767
- "The iterator does not provide a 'throw' method");
1768
- }
1769
-
1770
- return ContinueSentinel;
1771
- }
1772
-
1773
- var record = tryCatch(method, delegate.iterator, context.arg);
1774
-
1775
- if (record.type === "throw") {
1776
- context.method = "throw";
1777
- context.arg = record.arg;
1778
- context.delegate = null;
1779
- return ContinueSentinel;
1780
- }
1781
-
1782
- var info = record.arg;
1783
-
1784
- if (! info) {
1785
- context.method = "throw";
1786
- context.arg = new TypeError("iterator result is not an object");
1787
- context.delegate = null;
1788
- return ContinueSentinel;
1789
- }
1790
-
1791
- if (info.done) {
1792
- // Assign the result of the finished delegate to the temporary
1793
- // variable specified by delegate.resultName (see delegateYield).
1794
- context[delegate.resultName] = info.value;
1795
-
1796
- // Resume execution at the desired location (see delegateYield).
1797
- context.next = delegate.nextLoc;
1798
-
1799
- // If context.method was "throw" but the delegate handled the
1800
- // exception, let the outer generator proceed normally. If
1801
- // context.method was "next", forget context.arg since it has been
1802
- // "consumed" by the delegate iterator. If context.method was
1803
- // "return", allow the original .return call to continue in the
1804
- // outer generator.
1805
- if (context.method !== "return") {
1806
- context.method = "next";
1807
- context.arg = undefined$1;
1808
- }
1809
-
1810
- } else {
1811
- // Re-yield the result returned by the delegate method.
1812
- return info;
1813
- }
1814
-
1815
- // The delegate iterator is finished, so forget it and continue with
1816
- // the outer generator.
1817
- context.delegate = null;
1818
- return ContinueSentinel;
1819
- }
1820
-
1821
- // Define Generator.prototype.{next,throw,return} in terms of the
1822
- // unified ._invoke helper method.
1823
- defineIteratorMethods(Gp);
1824
-
1825
- define(Gp, toStringTagSymbol, "Generator");
1826
-
1827
- // A Generator should always return itself as the iterator object when the
1828
- // @@iterator function is called on it. Some browsers' implementations of the
1829
- // iterator prototype chain incorrectly implement this, causing the Generator
1830
- // object to not be returned from this call. This ensures that doesn't happen.
1831
- // See https://github.com/facebook/regenerator/issues/274 for more details.
1832
- define(Gp, iteratorSymbol, function() {
1833
- return this;
1834
- });
1835
-
1836
- define(Gp, "toString", function() {
1837
- return "[object Generator]";
1838
- });
1839
-
1840
- function pushTryEntry(locs) {
1841
- var entry = { tryLoc: locs[0] };
1842
-
1843
- if (1 in locs) {
1844
- entry.catchLoc = locs[1];
1845
- }
1846
-
1847
- if (2 in locs) {
1848
- entry.finallyLoc = locs[2];
1849
- entry.afterLoc = locs[3];
1850
- }
1851
-
1852
- this.tryEntries.push(entry);
1853
- }
1854
-
1855
- function resetTryEntry(entry) {
1856
- var record = entry.completion || {};
1857
- record.type = "normal";
1858
- delete record.arg;
1859
- entry.completion = record;
1860
- }
1861
-
1862
- function Context(tryLocsList) {
1863
- // The root entry object (effectively a try statement without a catch
1864
- // or a finally block) gives us a place to store values thrown from
1865
- // locations where there is no enclosing try statement.
1866
- this.tryEntries = [{ tryLoc: "root" }];
1867
- tryLocsList.forEach(pushTryEntry, this);
1868
- this.reset(true);
1869
- }
1870
-
1871
- exports.keys = function(object) {
1872
- var keys = [];
1873
- for (var key in object) {
1874
- keys.push(key);
1875
- }
1876
- keys.reverse();
1877
-
1878
- // Rather than returning an object with a next method, we keep
1879
- // things simple and return the next function itself.
1880
- return function next() {
1881
- while (keys.length) {
1882
- var key = keys.pop();
1883
- if (key in object) {
1884
- next.value = key;
1885
- next.done = false;
1886
- return next;
1887
- }
1888
- }
1889
-
1890
- // To avoid creating an additional object, we just hang the .value
1891
- // and .done properties off the next function object itself. This
1892
- // also ensures that the minifier will not anonymize the function.
1893
- next.done = true;
1894
- return next;
1895
- };
1896
- };
1897
-
1898
- function values(iterable) {
1899
- if (iterable) {
1900
- var iteratorMethod = iterable[iteratorSymbol];
1901
- if (iteratorMethod) {
1902
- return iteratorMethod.call(iterable);
1903
- }
1904
-
1905
- if (typeof iterable.next === "function") {
1906
- return iterable;
1907
- }
1908
-
1909
- if (!isNaN(iterable.length)) {
1910
- var i = -1, next = function next() {
1911
- while (++i < iterable.length) {
1912
- if (hasOwn.call(iterable, i)) {
1913
- next.value = iterable[i];
1914
- next.done = false;
1915
- return next;
1916
- }
1917
- }
1918
-
1919
- next.value = undefined$1;
1920
- next.done = true;
1921
-
1922
- return next;
1923
- };
1924
-
1925
- return next.next = next;
1926
- }
1927
- }
1928
-
1929
- // Return an iterator with no values.
1930
- return { next: doneResult };
1931
- }
1932
- exports.values = values;
1933
-
1934
- function doneResult() {
1935
- return { value: undefined$1, done: true };
1936
- }
1937
-
1938
- Context.prototype = {
1939
- constructor: Context,
1940
-
1941
- reset: function(skipTempReset) {
1942
- this.prev = 0;
1943
- this.next = 0;
1944
- // Resetting context._sent for legacy support of Babel's
1945
- // function.sent implementation.
1946
- this.sent = this._sent = undefined$1;
1947
- this.done = false;
1948
- this.delegate = null;
1949
-
1950
- this.method = "next";
1951
- this.arg = undefined$1;
1952
-
1953
- this.tryEntries.forEach(resetTryEntry);
1954
-
1955
- if (!skipTempReset) {
1956
- for (var name in this) {
1957
- // Not sure about the optimal order of these conditions:
1958
- if (name.charAt(0) === "t" &&
1959
- hasOwn.call(this, name) &&
1960
- !isNaN(+name.slice(1))) {
1961
- this[name] = undefined$1;
1962
- }
1963
- }
1964
- }
1965
- },
1966
-
1967
- stop: function() {
1968
- this.done = true;
1969
-
1970
- var rootEntry = this.tryEntries[0];
1971
- var rootRecord = rootEntry.completion;
1972
- if (rootRecord.type === "throw") {
1973
- throw rootRecord.arg;
1974
- }
1975
-
1976
- return this.rval;
1977
- },
1978
-
1979
- dispatchException: function(exception) {
1980
- if (this.done) {
1981
- throw exception;
1982
- }
1983
-
1984
- var context = this;
1985
- function handle(loc, caught) {
1986
- record.type = "throw";
1987
- record.arg = exception;
1988
- context.next = loc;
1989
-
1990
- if (caught) {
1991
- // If the dispatched exception was caught by a catch block,
1992
- // then let that catch block handle the exception normally.
1993
- context.method = "next";
1994
- context.arg = undefined$1;
1995
- }
1996
-
1997
- return !! caught;
1998
- }
1999
-
2000
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2001
- var entry = this.tryEntries[i];
2002
- var record = entry.completion;
2003
-
2004
- if (entry.tryLoc === "root") {
2005
- // Exception thrown outside of any try block that could handle
2006
- // it, so set the completion value of the entire function to
2007
- // throw the exception.
2008
- return handle("end");
2009
- }
2010
-
2011
- if (entry.tryLoc <= this.prev) {
2012
- var hasCatch = hasOwn.call(entry, "catchLoc");
2013
- var hasFinally = hasOwn.call(entry, "finallyLoc");
2014
-
2015
- if (hasCatch && hasFinally) {
2016
- if (this.prev < entry.catchLoc) {
2017
- return handle(entry.catchLoc, true);
2018
- } else if (this.prev < entry.finallyLoc) {
2019
- return handle(entry.finallyLoc);
2020
- }
2021
-
2022
- } else if (hasCatch) {
2023
- if (this.prev < entry.catchLoc) {
2024
- return handle(entry.catchLoc, true);
2025
- }
2026
-
2027
- } else if (hasFinally) {
2028
- if (this.prev < entry.finallyLoc) {
2029
- return handle(entry.finallyLoc);
2030
- }
2031
-
2032
- } else {
2033
- throw new Error("try statement without catch or finally");
2034
- }
2035
- }
2036
- }
2037
- },
2038
-
2039
- abrupt: function(type, arg) {
2040
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2041
- var entry = this.tryEntries[i];
2042
- if (entry.tryLoc <= this.prev &&
2043
- hasOwn.call(entry, "finallyLoc") &&
2044
- this.prev < entry.finallyLoc) {
2045
- var finallyEntry = entry;
2046
- break;
2047
- }
2048
- }
2049
-
2050
- if (finallyEntry &&
2051
- (type === "break" ||
2052
- type === "continue") &&
2053
- finallyEntry.tryLoc <= arg &&
2054
- arg <= finallyEntry.finallyLoc) {
2055
- // Ignore the finally entry if control is not jumping to a
2056
- // location outside the try/catch block.
2057
- finallyEntry = null;
2058
- }
2059
-
2060
- var record = finallyEntry ? finallyEntry.completion : {};
2061
- record.type = type;
2062
- record.arg = arg;
2063
-
2064
- if (finallyEntry) {
2065
- this.method = "next";
2066
- this.next = finallyEntry.finallyLoc;
2067
- return ContinueSentinel;
2068
- }
2069
-
2070
- return this.complete(record);
2071
- },
2072
-
2073
- complete: function(record, afterLoc) {
2074
- if (record.type === "throw") {
2075
- throw record.arg;
2076
- }
2077
-
2078
- if (record.type === "break" ||
2079
- record.type === "continue") {
2080
- this.next = record.arg;
2081
- } else if (record.type === "return") {
2082
- this.rval = this.arg = record.arg;
2083
- this.method = "return";
2084
- this.next = "end";
2085
- } else if (record.type === "normal" && afterLoc) {
2086
- this.next = afterLoc;
2087
- }
2088
-
2089
- return ContinueSentinel;
2090
- },
2091
-
2092
- finish: function(finallyLoc) {
2093
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2094
- var entry = this.tryEntries[i];
2095
- if (entry.finallyLoc === finallyLoc) {
2096
- this.complete(entry.completion, entry.afterLoc);
2097
- resetTryEntry(entry);
2098
- return ContinueSentinel;
2099
- }
2100
- }
2101
- },
2102
-
2103
- "catch": function(tryLoc) {
2104
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2105
- var entry = this.tryEntries[i];
2106
- if (entry.tryLoc === tryLoc) {
2107
- var record = entry.completion;
2108
- if (record.type === "throw") {
2109
- var thrown = record.arg;
2110
- resetTryEntry(entry);
2111
- }
2112
- return thrown;
2113
- }
2114
- }
2115
-
2116
- // The context.catch method must only be called with a location
2117
- // argument that corresponds to a known catch block.
2118
- throw new Error("illegal catch attempt");
2119
- },
2120
-
2121
- delegateYield: function(iterable, resultName, nextLoc) {
2122
- this.delegate = {
2123
- iterator: values(iterable),
2124
- resultName: resultName,
2125
- nextLoc: nextLoc
2126
- };
2127
-
2128
- if (this.method === "next") {
2129
- // Deliberately forget the last sent value so that we don't
2130
- // accidentally pass it on to the delegate.
2131
- this.arg = undefined$1;
2132
- }
2133
-
2134
- return ContinueSentinel;
2135
- }
2136
- };
2137
-
2138
- // Regardless of whether this script is executing as a CommonJS module
2139
- // or not, return the runtime object so that we can declare the variable
2140
- // regeneratorRuntime in the outer scope, which allows this module to be
2141
- // injected easily by `bin/regenerator --include-runtime script.js`.
2142
- return exports;
2143
-
2144
- }(
2145
- // If this script is executing as a CommonJS module, use module.exports
2146
- // as the regeneratorRuntime namespace. Otherwise create a new empty
2147
- // object. Either way, the resulting object will be used to initialize
2148
- // the regeneratorRuntime variable at the top of this file.
2149
- module.exports
2150
- ));
2151
-
2152
- try {
2153
- regeneratorRuntime = runtime;
2154
- } catch (accidentalStrictMode) {
2155
- // This module should not be running in strict mode, so the above
2156
- // assignment should always work unless something is misconfigured. Just
2157
- // in case runtime.js accidentally runs in strict mode, in modern engines
2158
- // we can explicitly access globalThis. In older engines we can escape
2159
- // strict mode using a global Function call. This could conceivably fail
2160
- // if a Content Security Policy forbids using Function, but in that case
2161
- // the proper solution is to fix the accidental strict mode problem. If
2162
- // you've misconfigured your bundler to force strict mode and applied a
2163
- // CSP to forbid Function, and you're not willing to fix either of those
2164
- // problems, please detail your unique predicament in a GitHub issue.
2165
- if (typeof globalThis === "object") {
2166
- globalThis.regeneratorRuntime = runtime;
2167
- } else {
2168
- Function("r", "regeneratorRuntime = r")(runtime);
2169
- }
2170
- }
2171
- });
2172
-
2173
- /**
2174
- * A specialized version of `_.reduce` for arrays without support for
2175
- * iteratee shorthands.
2176
- *
2177
- * @private
2178
- * @param {Array} [array] The array to iterate over.
2179
- * @param {Function} iteratee The function invoked per iteration.
2180
- * @param {*} [accumulator] The initial value.
2181
- * @param {boolean} [initAccum] Specify using the first element of `array` as
2182
- * the initial value.
2183
- * @returns {*} Returns the accumulated value.
2184
- */
2185
- function arrayReduce(array, iteratee, accumulator, initAccum) {
2186
- var index = -1,
2187
- length = array == null ? 0 : array.length;
2188
-
2189
- if (initAccum && length) {
2190
- accumulator = array[++index];
2191
- }
2192
- while (++index < length) {
2193
- accumulator = iteratee(accumulator, array[index], index, array);
2194
- }
2195
- return accumulator;
2196
- }
2197
-
2198
- var _arrayReduce = arrayReduce;
2199
-
2200
- /**
2201
- * The base implementation of `_.propertyOf` without support for deep paths.
2202
- *
2203
- * @private
2204
- * @param {Object} object The object to query.
2205
- * @returns {Function} Returns the new accessor function.
2206
- */
2207
- function basePropertyOf(object) {
2208
- return function(key) {
2209
- return object == null ? undefined : object[key];
2210
- };
2211
- }
2212
-
2213
- var _basePropertyOf = basePropertyOf;
2214
-
2215
- /** Used to map Latin Unicode letters to basic Latin letters. */
2216
- var deburredLetters = {
2217
- // Latin-1 Supplement block.
2218
- '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
2219
- '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
2220
- '\xc7': 'C', '\xe7': 'c',
2221
- '\xd0': 'D', '\xf0': 'd',
2222
- '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
2223
- '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
2224
- '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
2225
- '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
2226
- '\xd1': 'N', '\xf1': 'n',
2227
- '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
2228
- '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
2229
- '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
2230
- '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
2231
- '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
2232
- '\xc6': 'Ae', '\xe6': 'ae',
2233
- '\xde': 'Th', '\xfe': 'th',
2234
- '\xdf': 'ss',
2235
- // Latin Extended-A block.
2236
- '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
2237
- '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
2238
- '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
2239
- '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
2240
- '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
2241
- '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
2242
- '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
2243
- '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
2244
- '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
2245
- '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
2246
- '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
2247
- '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
2248
- '\u0134': 'J', '\u0135': 'j',
2249
- '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
2250
- '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
2251
- '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
2252
- '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
2253
- '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
2254
- '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
2255
- '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
2256
- '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
2257
- '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
2258
- '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
2259
- '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
2260
- '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
2261
- '\u0163': 't', '\u0165': 't', '\u0167': 't',
2262
- '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
2263
- '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
2264
- '\u0174': 'W', '\u0175': 'w',
2265
- '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
2266
- '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
2267
- '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
2268
- '\u0132': 'IJ', '\u0133': 'ij',
2269
- '\u0152': 'Oe', '\u0153': 'oe',
2270
- '\u0149': "'n", '\u017f': 's'
2271
- };
2272
-
2273
- /**
2274
- * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
2275
- * letters to basic Latin letters.
2276
- *
2277
- * @private
2278
- * @param {string} letter The matched letter to deburr.
2279
- * @returns {string} Returns the deburred letter.
2280
- */
2281
- var deburrLetter = _basePropertyOf(deburredLetters);
2282
-
2283
- var _deburrLetter = deburrLetter;
2284
-
2285
- /** Used to match Latin Unicode letters (excluding mathematical operators). */
2286
- var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
2287
-
2288
- /** Used to compose unicode character classes. */
2289
- var rsComboMarksRange$1 = '\\u0300-\\u036f',
2290
- reComboHalfMarksRange$1 = '\\ufe20-\\ufe2f',
2291
- rsComboSymbolsRange$1 = '\\u20d0-\\u20ff',
2292
- rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1;
2293
-
2294
- /** Used to compose unicode capture groups. */
2295
- var rsCombo$1 = '[' + rsComboRange$1 + ']';
2296
-
2297
- /**
2298
- * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
2299
- * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
2300
- */
2301
- var reComboMark = RegExp(rsCombo$1, 'g');
2302
-
2303
- /**
2304
- * Deburrs `string` by converting
2305
- * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
2306
- * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
2307
- * letters to basic Latin letters and removing
2308
- * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
2309
- *
2310
- * @static
2311
- * @memberOf _
2312
- * @since 3.0.0
2313
- * @category String
2314
- * @param {string} [string=''] The string to deburr.
2315
- * @returns {string} Returns the deburred string.
2316
- * @example
2317
- *
2318
- * _.deburr('déjà vu');
2319
- * // => 'deja vu'
2320
- */
2321
- function deburr(string) {
2322
- string = toString_1(string);
2323
- return string && string.replace(reLatin, _deburrLetter).replace(reComboMark, '');
2324
- }
2325
-
2326
- var deburr_1 = deburr;
2327
-
2328
- /** Used to match words composed of alphanumeric characters. */
2329
- var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
2330
-
2331
- /**
2332
- * Splits an ASCII `string` into an array of its words.
2333
- *
2334
- * @private
2335
- * @param {string} The string to inspect.
2336
- * @returns {Array} Returns the words of `string`.
2337
- */
2338
- function asciiWords(string) {
2339
- return string.match(reAsciiWord) || [];
2340
- }
2341
-
2342
- var _asciiWords = asciiWords;
2343
-
2344
- /** Used to detect strings that need a more robust regexp to match words. */
2345
- 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 ]/;
2346
-
2347
- /**
2348
- * Checks if `string` contains a word composed of Unicode symbols.
2349
- *
2350
- * @private
2351
- * @param {string} string The string to inspect.
2352
- * @returns {boolean} Returns `true` if a word is found, else `false`.
2353
- */
2354
- function hasUnicodeWord(string) {
2355
- return reHasUnicodeWord.test(string);
2356
- }
2357
-
2358
- var _hasUnicodeWord = hasUnicodeWord;
2359
-
2360
- /** Used to compose unicode character classes. */
2361
- var rsAstralRange = '\\ud800-\\udfff',
2362
- rsComboMarksRange = '\\u0300-\\u036f',
2363
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
2364
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
2365
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
2366
- rsDingbatRange = '\\u2700-\\u27bf',
2367
- rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
2368
- rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
2369
- rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
2370
- rsPunctuationRange = '\\u2000-\\u206f',
2371
- 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',
2372
- rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
2373
- rsVarRange = '\\ufe0e\\ufe0f',
2374
- rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
2375
-
2376
- /** Used to compose unicode capture groups. */
2377
- var rsApos$1 = "['\u2019]",
2378
- rsBreak = '[' + rsBreakRange + ']',
2379
- rsCombo = '[' + rsComboRange + ']',
2380
- rsDigits = '\\d+',
2381
- rsDingbat = '[' + rsDingbatRange + ']',
2382
- rsLower = '[' + rsLowerRange + ']',
2383
- rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
2384
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
2385
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
2386
- rsNonAstral = '[^' + rsAstralRange + ']',
2387
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
2388
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
2389
- rsUpper = '[' + rsUpperRange + ']',
2390
- rsZWJ = '\\u200d';
2391
-
2392
- /** Used to compose unicode regexes. */
2393
- var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
2394
- rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
2395
- rsOptContrLower = '(?:' + rsApos$1 + '(?:d|ll|m|re|s|t|ve))?',
2396
- rsOptContrUpper = '(?:' + rsApos$1 + '(?:D|LL|M|RE|S|T|VE))?',
2397
- reOptMod = rsModifier + '?',
2398
- rsOptVar = '[' + rsVarRange + ']?',
2399
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
2400
- rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
2401
- rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
2402
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
2403
- rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;
2404
-
2405
- /** Used to match complex or compound words. */
2406
- var reUnicodeWord = RegExp([
2407
- rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
2408
- rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
2409
- rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
2410
- rsUpper + '+' + rsOptContrUpper,
2411
- rsOrdUpper,
2412
- rsOrdLower,
2413
- rsDigits,
2414
- rsEmoji
2415
- ].join('|'), 'g');
2416
-
2417
- /**
2418
- * Splits a Unicode `string` into an array of its words.
2419
- *
2420
- * @private
2421
- * @param {string} The string to inspect.
2422
- * @returns {Array} Returns the words of `string`.
2423
- */
2424
- function unicodeWords(string) {
2425
- return string.match(reUnicodeWord) || [];
2426
- }
2427
-
2428
- var _unicodeWords = unicodeWords;
2429
-
2430
- /**
2431
- * Splits `string` into an array of its words.
2432
- *
2433
- * @static
2434
- * @memberOf _
2435
- * @since 3.0.0
2436
- * @category String
2437
- * @param {string} [string=''] The string to inspect.
2438
- * @param {RegExp|string} [pattern] The pattern to match words.
2439
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
2440
- * @returns {Array} Returns the words of `string`.
2441
- * @example
2442
- *
2443
- * _.words('fred, barney, & pebbles');
2444
- * // => ['fred', 'barney', 'pebbles']
2445
- *
2446
- * _.words('fred, barney, & pebbles', /[^, ]+/g);
2447
- * // => ['fred', 'barney', '&', 'pebbles']
2448
- */
2449
- function words(string, pattern, guard) {
2450
- string = toString_1(string);
2451
- pattern = guard ? undefined : pattern;
2452
-
2453
- if (pattern === undefined) {
2454
- return _hasUnicodeWord(string) ? _unicodeWords(string) : _asciiWords(string);
35
+ });
2455
36
  }
2456
- return string.match(pattern) || [];
37
+ n["default"] = e;
38
+ return Object.freeze(n);
2457
39
  }
2458
40
 
2459
- var words_1 = words;
2460
-
2461
- /** Used to compose unicode capture groups. */
2462
- var rsApos = "['\u2019]";
2463
-
2464
- /** Used to match apostrophes. */
2465
- var reApos = RegExp(rsApos, 'g');
2466
-
2467
- /**
2468
- * Creates a function like `_.camelCase`.
2469
- *
2470
- * @private
2471
- * @param {Function} callback The function to combine each word.
2472
- * @returns {Function} Returns the new compounder function.
2473
- */
2474
- function createCompounder(callback) {
2475
- return function(string) {
2476
- return _arrayReduce(words_1(deburr_1(string).replace(reApos, '')), callback, '');
2477
- };
2478
- }
2479
-
2480
- var _createCompounder = createCompounder;
2481
-
2482
- /**
2483
- * Converts `string`, as space separated words, to upper case.
2484
- *
2485
- * @static
2486
- * @memberOf _
2487
- * @since 4.0.0
2488
- * @category String
2489
- * @param {string} [string=''] The string to convert.
2490
- * @returns {string} Returns the upper cased string.
2491
- * @example
2492
- *
2493
- * _.upperCase('--foo-bar');
2494
- * // => 'FOO BAR'
2495
- *
2496
- * _.upperCase('fooBar');
2497
- * // => 'FOO BAR'
2498
- *
2499
- * _.upperCase('__foo_bar__');
2500
- * // => 'FOO BAR'
2501
- */
2502
- var upperCase = _createCompounder(function(result, word, index) {
2503
- return result + (index ? ' ' : '') + word.toUpperCase();
2504
- });
2505
-
2506
- var upperCase_1 = upperCase;
2507
-
2508
- /**
2509
- * Converts `string`, as space separated words, to lower case.
2510
- *
2511
- * @static
2512
- * @memberOf _
2513
- * @since 4.0.0
2514
- * @category String
2515
- * @param {string} [string=''] The string to convert.
2516
- * @returns {string} Returns the lower cased string.
2517
- * @example
2518
- *
2519
- * _.lowerCase('--Foo-Bar--');
2520
- * // => 'foo bar'
2521
- *
2522
- * _.lowerCase('fooBar');
2523
- * // => 'foo bar'
2524
- *
2525
- * _.lowerCase('__FOO_BAR__');
2526
- * // => 'foo bar'
2527
- */
2528
- var lowerCase = _createCompounder(function(result, word, index) {
2529
- return result + (index ? ' ' : '') + word.toLowerCase();
2530
- });
2531
-
2532
- var lowerCase_1 = lowerCase;
41
+ var _toArray__default = /*#__PURE__*/_interopDefaultLegacy(_toArray);
42
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
43
+ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
44
+ var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
45
+ var _getClassName__default = /*#__PURE__*/_interopDefaultLegacy(_getClassName);
46
+ var Timeago__default = /*#__PURE__*/_interopDefaultLegacy(Timeago);
47
+ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
48
+ var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
2533
49
 
2534
50
  var timestampToFormat = function timestampToFormat(value, unit, suffix, timestamp) {
2535
51
  var config = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
@@ -2550,7 +66,7 @@ var timestampToFormat = function timestampToFormat(value, unit, suffix, timestam
2550
66
  var localizedMonth = month;
2551
67
 
2552
68
  if (isUpperCase) {
2553
- localizedMonth = upperCase_1(month);
69
+ localizedMonth = lodash.upperCase(month);
2554
70
  }
2555
71
 
2556
72
  var year = dateTime.getFullYear();
@@ -2563,7 +79,7 @@ var timestampToFormat = function timestampToFormat(value, unit, suffix, timestam
2563
79
  var timetoShow;
2564
80
 
2565
81
  if (localizedMonths) {
2566
- localizedMonth = get_1(localizedMonths, [lowerCase_1(month)]) || month;
82
+ localizedMonth = lodash.get(localizedMonths, [lodash.lowerCase(month)]) || month;
2567
83
  }
2568
84
 
2569
85
  if (localizedMeridiem) {
@@ -2593,17 +109,17 @@ function formatter(value, unit, suffix, date, config) {
2593
109
  var showDateForUnits = ["day", "week", "month", "year"]; // suffix here refers to ago
2594
110
  // unit here refers to seconds, minute, minutes,...
2595
111
 
2596
- var localizedSuffix = get_1(config, ["localizedPublishTime", suffix]) || suffix;
112
+ var localizedSuffix = lodash.get(config, ["localizedPublishTime", suffix]) || suffix;
2597
113
  var localizedUnitOfTime;
2598
114
 
2599
115
  if (unit === "hour" && value > 23 || showDateForUnits.indexOf(unit) !== -1) {
2600
116
  return timestampToFormat(value, unit, suffix, date, config);
2601
117
  } else if (value > 1) {
2602
- localizedUnitOfTime = get_1(config, ["localizedPublishTime", "".concat(unit, "s")]) || "".concat(unit, "s");
118
+ localizedUnitOfTime = lodash.get(config, ["localizedPublishTime", "".concat(unit, "s")]) || "".concat(unit, "s");
2603
119
  return "".concat(value, " ").concat(localizedUnitOfTime, " ").concat(localizedSuffix);
2604
120
  }
2605
121
 
2606
- localizedUnitOfTime = get_1(config, ["localizedPublishTime", unit]) || unit;
122
+ localizedUnitOfTime = lodash.get(config, ["localizedPublishTime", unit]) || unit;
2607
123
  return "".concat(value, " ").concat(localizedUnitOfTime, " ").concat(localizedSuffix, " ");
2608
124
  }
2609
125
 
@@ -2656,10 +172,10 @@ var clientWidths = {
2656
172
  tablet: 1024
2657
173
  };
2658
174
  var clientWidth = function clientWidth(device) {
2659
- var foundDeviceWidth = get_1(clientWidths, device);
175
+ var foundDeviceWidth = lodash.get(clientWidths, device);
2660
176
 
2661
177
  if (foundDeviceWidth) {
2662
- return get_1(global, "document.documentElement.clientWidth") <= foundDeviceWidth;
178
+ return lodash.get(global, "document.documentElement.clientWidth") <= foundDeviceWidth;
2663
179
  }
2664
180
 
2665
181
  return false;
@@ -2701,7 +217,7 @@ var getSlug = function getSlug(collection) {
2701
217
  var isSection = collection.template === "section";
2702
218
 
2703
219
  if (isSection) {
2704
- var sectionId = get_1(collection, ["metadata", "section", "0", "id"], "");
220
+ var sectionId = lodash.get(collection, ["metadata", "section", "0", "id"], "");
2705
221
  var sections = config.sections;
2706
222
  var section = sections && sections.find(function (section) {
2707
223
  return section.id === sectionId;
@@ -2717,21 +233,21 @@ function isExternalStory() {
2717
233
  storyTemplate = _story$storyTemplate === void 0 ? "" : _story$storyTemplate,
2718
234
  _story$metadata = story.metadata,
2719
235
  metadata = _story$metadata === void 0 ? {} : _story$metadata;
2720
- return storyTemplate === "news-elsewhere" ? get_1(metadata, ["reference-url"], "") : "";
236
+ return storyTemplate === "news-elsewhere" ? lodash.get(metadata, ["reference-url"], "") : "";
2721
237
  } // Adds target='_blank' attribute to anchor tags if not present
2722
- PropTypes.shape({
2723
- "sketches-host": PropTypes.string,
2724
- "cdn-name": PropTypes.string,
2725
- "cdn-image": PropTypes.string
238
+ PropTypes__default["default"].shape({
239
+ "sketches-host": PropTypes__default["default"].string,
240
+ "cdn-name": PropTypes__default["default"].string,
241
+ "cdn-image": PropTypes__default["default"].string
2726
242
  });
2727
- PropTypes.shape({
2728
- headline: PropTypes.string,
2729
- "last-published-at": PropTypes.number,
2730
- subheadline: PropTypes.string
243
+ PropTypes__default["default"].shape({
244
+ headline: PropTypes__default["default"].string,
245
+ "last-published-at": PropTypes__default["default"].number,
246
+ subheadline: PropTypes__default["default"].string
2731
247
  });
2732
248
  var getStoryUrl = function getStoryUrl(story) {
2733
249
  var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
2734
- return get_1(story, ["story-template"]) === "news-elsewhere" ? get_1(story, ["metadata", "reference-url"], "") : story.url || defaultValue;
250
+ return lodash.get(story, ["story-template"]) === "news-elsewhere" ? lodash.get(story, ["metadata", "reference-url"], "") : story.url || defaultValue;
2735
251
  };
2736
252
  var navigateTo = function navigateTo(dispatch) {
2737
253
  var url = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
@@ -2771,17 +287,17 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
2771
287
  var timezone = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
2772
288
 
2773
289
  if (timezone && template === "story") {
2774
- var zonedTime = timezone && utcToZonedTime(date, timezone);
2775
- var formatZonedTime = zonedTime && format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
290
+ var zonedTime = timezone && dateFnsTz.utcToZonedTime(date, timezone);
291
+ var formatZonedTime = zonedTime && dateFnsTz.format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
2776
292
  timeZone: timezone
2777
293
  });
2778
294
  var timeStamp = timestampToFormat("", "", "", date, config);
2779
- return /*#__PURE__*/React.createElement("time", {
295
+ return /*#__PURE__*/React__default["default"].createElement("time", {
2780
296
  dateTime: formatZonedTime
2781
297
  }, timeStamp);
2782
298
  }
2783
299
 
2784
- return /*#__PURE__*/React.createElement(Timeago, {
300
+ return /*#__PURE__*/React__default["default"].createElement(Timeago__default["default"], {
2785
301
  date: date,
2786
302
  formatter: function formatter(value, unit, suffix, date) {
2787
303
  return _formatter(value, unit, suffix, date, config);
@@ -2789,21 +305,21 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
2789
305
  });
2790
306
  };
2791
307
 
2792
- var StateContext = /*#__PURE__*/createContext(); // eslint-disable-next-line react/display-name
308
+ var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
2793
309
 
2794
310
  var StateProvider = function StateProvider(RowComponent) {
2795
311
  return function (props) {
2796
312
  return (
2797
313
  /*#__PURE__*/
2798
314
  // eslint-disable-next-line react/prop-types
2799
- React.createElement(StateContext.Provider, {
315
+ React__default["default"].createElement(StateContext.Provider, {
2800
316
  value: props.config
2801
- }, /*#__PURE__*/React.createElement(RowComponent, props))
317
+ }, /*#__PURE__*/React__default["default"].createElement(RowComponent, props))
2802
318
  );
2803
319
  };
2804
320
  };
2805
321
  var useStateValue = function useStateValue() {
2806
- return useContext(StateContext);
322
+ return React.useContext(StateContext);
2807
323
  };
2808
324
 
2809
325
  var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
@@ -2813,27 +329,27 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
2813
329
  height = _ref$height === void 0 ? 30 : _ref$height,
2814
330
  _ref$iconColor = _ref.iconColor,
2815
331
  iconColor = _ref$iconColor === void 0 ? "#99B0CB" : _ref$iconColor;
2816
- return /*#__PURE__*/React.createElement("svg", {
332
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2817
333
  width: width,
2818
334
  height: height,
2819
335
  viewBox: "0 0 102 76",
2820
336
  version: "1.1"
2821
- }, /*#__PURE__*/React.createElement("g", {
337
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2822
338
  id: "demo-home-copy",
2823
339
  stroke: "none",
2824
340
  strokeWidth: "1",
2825
341
  fill: "none",
2826
342
  fillRule: "evenodd",
2827
343
  transform: "translate(-377.000000, -314.000000)"
2828
- }, /*#__PURE__*/React.createElement("g", {
344
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2829
345
  id: "Group-13",
2830
346
  transform: "translate(377.000000, 314.000000)"
2831
- }, /*#__PURE__*/React.createElement("path", {
347
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2832
348
  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",
2833
349
  id: "Combined-Shape",
2834
350
  fill: iconColor,
2835
351
  fillRule: "nonzero"
2836
- }), /*#__PURE__*/React.createElement("rect", {
352
+ }), /*#__PURE__*/React__default["default"].createElement("rect", {
2837
353
  id: "Rectangle-19",
2838
354
  stroke: iconColor,
2839
355
  strokeWidth: "3",
@@ -2845,24 +361,24 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
2845
361
  }))));
2846
362
  };
2847
363
  ImageFallbackIcon.propTypes = {
2848
- width: PropTypes.object,
2849
- height: PropTypes.object,
2850
- iconColor: PropTypes.object
364
+ width: PropTypes__default["default"].object,
365
+ height: PropTypes__default["default"].object,
366
+ iconColor: PropTypes__default["default"].object
2851
367
  };
2852
368
 
2853
369
  var imageFallback = function imageFallback() {
2854
- return /*#__PURE__*/React.createElement("div", {
370
+ return /*#__PURE__*/React__default["default"].createElement("div", {
2855
371
  className: "arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"
2856
- }, /*#__PURE__*/React.createElement("figure", {
372
+ }, /*#__PURE__*/React__default["default"].createElement("figure", {
2857
373
  className: "arr--fallback-svg fallback-m_fallback-svg__tK9fL"
2858
- }, /*#__PURE__*/React.createElement(ImageFallbackIcon, null)));
374
+ }, /*#__PURE__*/React__default["default"].createElement(ImageFallbackIcon, null)));
2859
375
  };
2860
376
 
2861
377
  var FallbackImage = function FallbackImage(_ref) {
2862
378
  var slug = _ref.slug;
2863
379
 
2864
380
  if (slug) {
2865
- return /*#__PURE__*/React.createElement(Link, {
381
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
2866
382
  href: slug,
2867
383
  "aria-label": "image-fallback"
2868
384
  }, imageFallback());
@@ -2871,23 +387,23 @@ var FallbackImage = function FallbackImage(_ref) {
2871
387
  }
2872
388
  };
2873
389
  FallbackImage.propTypes = {
2874
- slug: PropTypes.string
390
+ slug: PropTypes__default["default"].string
2875
391
  };
2876
392
 
2877
393
  var HyperLinkIcon = function HyperLinkIcon() {
2878
- return /*#__PURE__*/React.createElement("svg", {
394
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2879
395
  xmlns: "http://www.w3.org/2000/svg",
2880
396
  width: "36",
2881
397
  height: "28"
2882
- }, /*#__PURE__*/React.createElement("g", {
398
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2883
399
  fill: "none",
2884
400
  fillRule: "evenodd"
2885
- }, /*#__PURE__*/React.createElement("rect", {
401
+ }, /*#__PURE__*/React__default["default"].createElement("rect", {
2886
402
  width: "36",
2887
403
  height: "28",
2888
404
  fill: "#3D6FCF",
2889
405
  rx: "4"
2890
- }), /*#__PURE__*/React.createElement("path", {
406
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
2891
407
  stroke: "#FFF",
2892
408
  strokeLinecap: "round",
2893
409
  strokeLinejoin: "round",
@@ -2900,16 +416,16 @@ var HyperLink = function HyperLink(_ref) {
2900
416
  var _ref$hyperLink = _ref.hyperLink,
2901
417
  hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
2902
418
  if (!hyperLink) return null;
2903
- return /*#__PURE__*/React.createElement(Link, {
419
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
2904
420
  href: hyperLink,
2905
421
  "aria-label": "hyperlink-button",
2906
422
  className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
2907
423
  target: "_blank",
2908
424
  rel: "noopener noreferrer"
2909
- }, /*#__PURE__*/React.createElement(HyperLinkIcon, null));
425
+ }, /*#__PURE__*/React__default["default"].createElement(HyperLinkIcon, null));
2910
426
  };
2911
427
  HyperLink.propTypes = {
2912
- hyperLink: PropTypes.string
428
+ hyperLink: PropTypes__default["default"].string
2913
429
  };
2914
430
 
2915
431
  var _styleModuleImportMap$b = {
@@ -2945,8 +461,8 @@ var HeroImage = function HeroImage(_ref) {
2945
461
  StoryTemplateIcon = _config$StoryTemplate === void 0 ? function () {
2946
462
  return null;
2947
463
  } : _config$StoryTemplate;
2948
- var showImagePlaceholder = useSelector(function (state) {
2949
- return get_1(state, ["qt", "config", "showPlaceholder"]);
464
+ var showImagePlaceholder = reactRedux.useSelector(function (state) {
465
+ return lodash.get(state, ["qt", "config", "showPlaceholder"]);
2950
466
  });
2951
467
  var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
2952
468
  var fullBleed = FullBleed ? "" : "with-padding";
@@ -2955,7 +471,7 @@ var HeroImage = function HeroImage(_ref) {
2955
471
  var heroImageMobClasses = isHorizontalMobile ? "right-padding-mob" : "";
2956
472
 
2957
473
  var getPadding = function getPadding(aspectRatio) {
2958
- var _aspectRatio = _slicedToArray(aspectRatio, 2),
474
+ var _aspectRatio = _slicedToArray__default["default"](aspectRatio, 2),
2959
475
  height = _aspectRatio[0],
2960
476
  width = _aspectRatio[1];
2961
477
 
@@ -2967,7 +483,7 @@ var HeroImage = function HeroImage(_ref) {
2967
483
  return 0;
2968
484
  };
2969
485
 
2970
- var _aspectRatio2 = _slicedToArray(aspectRatio, 2),
486
+ var _aspectRatio2 = _slicedToArray__default["default"](aspectRatio, 2),
2971
487
  mobileAspectRatio = _aspectRatio2[0],
2972
488
  _aspectRatio2$ = _aspectRatio2[1],
2973
489
  desktopAspectRatio = _aspectRatio2$ === void 0 ? mobileAspectRatio : _aspectRatio2$;
@@ -2975,43 +491,43 @@ var HeroImage = function HeroImage(_ref) {
2975
491
  var isMobile = clientWidth("mobile");
2976
492
  var imageAspectRatio = isMobile ? mobileAspectRatio : desktopAspectRatio;
2977
493
  var imagePadding = isMobile ? getPadding(mobileAspectRatio) : getPadding(desktopAspectRatio);
2978
- var slug = get_1(story, ["hero-image-s3-key"]) || get_1(story, ["alternative", "home", "default", "hero-image", "hero-image-s3-key"]);
2979
- var hyperLink = get_1(story, ["hero-image-hyperlink"], "");
494
+ var slug = lodash.get(story, ["hero-image-s3-key"]) || lodash.get(story, ["alternative", "home", "default", "hero-image", "hero-image-s3-key"]);
495
+ var hyperLink = lodash.get(story, ["hero-image-hyperlink"], "");
2980
496
 
2981
497
  var fallbackImage = function fallbackImage() {
2982
498
  if (!slug) {
2983
499
  if (fallbackImageUrl && !isStoryPageImage) {
2984
- return /*#__PURE__*/React.createElement("figure", {
500
+ return /*#__PURE__*/React__default["default"].createElement("figure", {
2985
501
  style: {
2986
502
  paddingTop: imagePadding + "%"
2987
503
  },
2988
- className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$b)
2989
- }, /*#__PURE__*/React.createElement("img", {
504
+ className: "arr--responsive-hero-image " + _getClassName__default["default"]("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$b)
505
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
2990
506
  className: "qt-image",
2991
507
  "data-src": "".concat(fallbackImageUrl),
2992
508
  alt: "image-fallback"
2993
509
  }));
2994
510
  }
2995
511
 
2996
- return /*#__PURE__*/React.createElement(React.Fragment, null, defaultFallback ? /*#__PURE__*/React.createElement("div", {
512
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, defaultFallback ? /*#__PURE__*/React__default["default"].createElement("div", {
2997
513
  "data-test-id": "arr--fallback-hero-image",
2998
514
  style: {
2999
515
  paddingTop: imagePadding + "%"
3000
516
  },
3001
- className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$b)
3002
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
517
+ className: "arr--fallback-hero-image " + _getClassName__default["default"]("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$b)
518
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3003
519
  storyTemplate: story["story-template"]
3004
- }), /*#__PURE__*/React.createElement(FallbackImage, null)) : null);
520
+ }), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
3005
521
  }
3006
522
 
3007
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("figure", {
523
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("figure", {
3008
524
  style: {
3009
525
  paddingTop: imagePadding + "%"
3010
526
  },
3011
- className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$b)
3012
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
527
+ className: "arr--responsive-hero-image " + _getClassName__default["default"]("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$b)
528
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3013
529
  storyTemplate: story["story-template"]
3014
- }), /*#__PURE__*/React.createElement(ResponsiveHeroImage, {
530
+ }), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
3015
531
  story: story,
3016
532
  aspectRatio: imageAspectRatio,
3017
533
  defaultWidth: defaultWidth,
@@ -3020,48 +536,48 @@ var HeroImage = function HeroImage(_ref) {
3020
536
  auto: ["format", "compress"],
3021
537
  fit: "max"
3022
538
  }
3023
- })), isStoryPageImage && hyperLink && /*#__PURE__*/React.createElement(HyperLink, {
539
+ })), isStoryPageImage && hyperLink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
3024
540
  hyperLink: hyperLink
3025
541
  }));
3026
542
  };
3027
543
 
3028
- return story && (isStoryPageImage ? /*#__PURE__*/React.createElement("div", {
544
+ return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
3029
545
  "data-test-id": "arr--hero-image",
3030
- className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$b)
3031
- }, fallbackImage()) : /*#__PURE__*/React.createElement(Link, {
546
+ className: "arr--hero-image " + _getClassName__default["default"]("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$b)
547
+ }, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
3032
548
  "data-test-id": "arr--hero-image",
3033
549
  href: getStoryUrl(story, "/".concat(story.slug)),
3034
550
  externalLink: isExternalStory(story),
3035
551
  "aria-label": "fallback-hero-image",
3036
- className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$b)
552
+ className: "arr--hero-image " + _getClassName__default["default"]("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$b)
3037
553
  }, fallbackImage()));
3038
554
  };
3039
555
  HeroImage.propTypes = {
3040
556
  /** The Story Object from the API response */
3041
- story: PropTypes.object.isRequired,
557
+ story: PropTypes__default["default"].object.isRequired,
3042
558
 
3043
559
  /** Removes the Hero Image padding for the image to bleed over the margin */
3044
- FullBleed: PropTypes.bool,
560
+ FullBleed: PropTypes__default["default"].bool,
3045
561
 
3046
562
  /** The default width for the image, in case the browser does not support srcset */
3047
- defaultWidth: PropTypes.number,
563
+ defaultWidth: PropTypes__default["default"].number,
3048
564
 
3049
565
  /** The list of available widths */
3050
- widths: PropTypes.array,
566
+ widths: PropTypes__default["default"].array,
3051
567
  // fatch the correct hero image
3052
- aspectRatio: PropTypes.array,
568
+ aspectRatio: PropTypes__default["default"].array,
3053
569
  // Hints for the browser to choose the best size
3054
570
 
3055
571
  /** This prop is responsible for adding padding-right of the image and remove padding bottom of the image */
3056
- isHorizontal: PropTypes.bool,
572
+ isHorizontal: PropTypes__default["default"].bool,
3057
573
 
3058
574
  /** This prop is responsible for adding padding-bottom in desktop and padding-right in mobile */
3059
- isHorizontalMobile: PropTypes.bool,
575
+ isHorizontalMobile: PropTypes__default["default"].bool,
3060
576
  // this prop is responsive for rendering fallback image on story page
3061
- defaultFallback: PropTypes.bool,
3062
- isHorizontalWithImageLast: PropTypes.bool,
3063
- isStoryPageImage: PropTypes.bool,
3064
- config: PropTypes.object
577
+ defaultFallback: PropTypes__default["default"].bool,
578
+ isHorizontalWithImageLast: PropTypes__default["default"].bool,
579
+ isStoryPageImage: PropTypes__default["default"].bool,
580
+ config: PropTypes__default["default"].object
3065
581
  };
3066
582
  HeroImage.defaultProps = {
3067
583
  FullBleed: true,
@@ -3076,21 +592,6 @@ HeroImage.defaultProps = {
3076
592
  config: {}
3077
593
  };
3078
594
 
3079
- function _defineProperty(obj, key, value) {
3080
- if (key in obj) {
3081
- Object.defineProperty(obj, key, {
3082
- value: value,
3083
- enumerable: true,
3084
- configurable: true,
3085
- writable: true
3086
- });
3087
- } else {
3088
- obj[key] = value;
3089
- }
3090
-
3091
- return obj;
3092
- }
3093
-
3094
595
  var _styleModuleImportMap$a = {
3095
596
  "./load-more.m.css": {
3096
597
  "button": "load-more-m_button__1mmf1",
@@ -3102,7 +603,7 @@ var _styleModuleImportMap$a = {
3102
603
 
3103
604
  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; }
3104
605
 
3105
- 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; }
606
+ 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; }
3106
607
  var LoadmoreButton = function LoadmoreButton(_ref) {
3107
608
  var _ref$config = _ref.config,
3108
609
  config = _ref$config === void 0 ? {} : _ref$config,
@@ -3123,26 +624,26 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
3123
624
  if (!showButton) return null;
3124
625
  var textColor = getTextColor(theme);
3125
626
  var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread(_objectSpread({}, qtConfig), config));
3126
- return template === "SubsequentLoadCount" ? /*#__PURE__*/React.createElement("div", {
627
+ return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
3127
628
  onClick: onClick,
3128
629
  "data-test-id": "load-more",
3129
- className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$a)
3130
- }, buttonText) : /*#__PURE__*/React.createElement(LinkBase, {
630
+ className: "arr--button " + _getClassName__default["default"]("button ".concat(textColor, " default"), _styleModuleImportMap$a)
631
+ }, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
3131
632
  href: slug,
3132
633
  navigateTo: navigate,
3133
634
  "data-test-id": "load-more",
3134
635
  "aria-label": "load-more"
3135
- }, /*#__PURE__*/React.createElement("div", {
3136
- className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$a)
636
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
637
+ className: "arr--button " + _getClassName__default["default"]("button ".concat(textColor, " default"), _styleModuleImportMap$a)
3137
638
  }, buttonText));
3138
639
  };
3139
640
  LoadmoreButton.propTypes = {
3140
- collection: PropTypes.object,
3141
- template: PropTypes.string,
3142
- config: PropTypes.object,
3143
- onClick: PropTypes.func,
3144
- navigate: PropTypes.func,
3145
- qtConfig: PropTypes.object
641
+ collection: PropTypes__default["default"].object,
642
+ template: PropTypes__default["default"].string,
643
+ config: PropTypes__default["default"].object,
644
+ onClick: PropTypes__default["default"].func,
645
+ navigate: PropTypes__default["default"].func,
646
+ qtConfig: PropTypes__default["default"].object
3146
647
  };
3147
648
 
3148
649
  var _styleModuleImportMap$9 = {
@@ -3170,7 +671,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
3170
671
  _ref$navigate = _ref.navigate,
3171
672
  navigate = _ref$navigate === void 0 ? true : _ref$navigate;
3172
673
  var collectionTitle = useStateValue() || {};
3173
- var showRowTitle = get_1(collectionTitle, ["showRowTitle"], true);
674
+ var showRowTitle = lodash.get(collectionTitle, ["showRowTitle"], true);
3174
675
  var supportedTemplates = ["borderLeft", "borderBottom", "crossLine", "borderBottomFull"];
3175
676
  var templateStyle = supportedTemplates.includes(collectionNameTemplate) ? " collection-".concat(collectionNameTemplate) : "";
3176
677
  var slug = navigate && collection && getSlug(collection, config) || "";
@@ -3181,7 +682,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
3181
682
  var borderBottomFullStyle = templateStyle.includes("collection-borderBottomFull") ? "4px solid ".concat(CollectionNameBorderColor) : "";
3182
683
 
3183
684
  var borderBottomStyle = function borderBottomStyle() {
3184
- return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React.createElement("div", {
685
+ return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React__default["default"].createElement("div", {
3185
686
  className: "collection-name-m_border-bottom__1MnlV",
3186
687
  style: {
3187
688
  borderBottom: "4px solid ".concat(CollectionNameBorderColor)
@@ -3241,40 +742,40 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
3241
742
  }
3242
743
  };
3243
744
 
3244
- return /*#__PURE__*/React.createElement(React.Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React.createElement("div", {
745
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React__default["default"].createElement("div", {
3245
746
  style: {
3246
747
  borderBottom: borderBottomFullStyle
3247
748
  },
3248
749
  "data-test-id": "collection-name",
3249
- className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$9)
3250
- }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React.createElement("span", {
750
+ className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName__default["default"]("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$9)
751
+ }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
3251
752
  className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
3252
753
  style: {
3253
754
  color: CollectionNameBorderColor,
3254
755
  fontSize: getBorderHeight()
3255
756
  }
3256
- }), slug && !slug.includes(undefined) ? /*#__PURE__*/React.createElement(Link, {
757
+ }), slug && !slug.includes(undefined) ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
3257
758
  href: slug,
3258
759
  "aria-label": "collection-name"
3259
- }, /*#__PURE__*/React.createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React.createElement(HeaderTag, null, collectionName), borderBottomStyle()));
760
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName), borderBottomStyle()));
3260
761
  };
3261
762
  CollectionNameBase.propTypes = {
3262
763
  /** Collection name border color */
3263
- collectionNameBorderColor: PropTypes$1.string,
764
+ collectionNameBorderColor: PropTypes.PropTypes.string,
3264
765
 
3265
766
  /** The Collection Object from the API response */
3266
- collection: PropTypes$1.object,
767
+ collection: PropTypes.PropTypes.object,
3267
768
 
3268
769
  /** The publisher config from the API response */
3269
- config: PropTypes$1.object,
770
+ config: PropTypes.PropTypes.object,
3270
771
 
3271
772
  /** The style template for the component */
3272
- collectionNameTemplate: PropTypes$1.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
773
+ collectionNameTemplate: PropTypes.PropTypes.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
3273
774
 
3274
775
  /** Header tags ranging h1-h6, where h[headerLevel] */
3275
- headerLevel: PropTypes$1.string,
3276
- customCollectionName: PropTypes$1.string,
3277
- navigate: PropTypes$1.bool
776
+ headerLevel: PropTypes.PropTypes.string,
777
+ customCollectionName: PropTypes.PropTypes.string,
778
+ navigate: PropTypes.PropTypes.bool
3278
779
  };
3279
780
  CollectionNameBase.defaultProps = {
3280
781
  collectionNameTemplate: "",
@@ -3283,11 +784,11 @@ CollectionNameBase.defaultProps = {
3283
784
 
3284
785
  function mapStateToProps$1(state) {
3285
786
  return {
3286
- config: get_1(state, ["qt", "config"], {})
787
+ config: lodash.get(state, ["qt", "config"], {})
3287
788
  };
3288
789
  }
3289
790
 
3290
- var CollectionName = connect(mapStateToProps$1)(CollectionNameBase);
791
+ var CollectionName = reactRedux.connect(mapStateToProps$1)(CollectionNameBase);
3291
792
 
3292
793
  var CrownIcon = function CrownIcon(_ref) {
3293
794
  var height = _ref.height,
@@ -3295,7 +796,7 @@ var CrownIcon = function CrownIcon(_ref) {
3295
796
  _ref$color = _ref.color,
3296
797
  color = _ref$color === void 0 ? "#D8D8D8" : _ref$color,
3297
798
  positionTop = _ref.positionTop;
3298
- return /*#__PURE__*/React.createElement("svg", {
799
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3299
800
  xmlns: "http://www.w3.org/2000/svg",
3300
801
  width: width,
3301
802
  height: height,
@@ -3304,28 +805,28 @@ var CrownIcon = function CrownIcon(_ref) {
3304
805
  position: "relative",
3305
806
  top: positionTop
3306
807
  }
3307
- }, /*#__PURE__*/React.createElement("g", {
808
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3308
809
  fill: "none",
3309
810
  fillRule: "evenodd",
3310
811
  stroke: "none",
3311
812
  strokeWidth: "1"
3312
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
813
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3313
814
  transform: "translate(8 8)"
3314
- }, /*#__PURE__*/React.createElement("path", {
815
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3315
816
  d: "M0 0H24V24H0z"
3316
- }), /*#__PURE__*/React.createElement("g", {
817
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
3317
818
  fill: color,
3318
819
  fillRule: "nonzero",
3319
820
  transform: "translate(0 2)"
3320
- }, /*#__PURE__*/React.createElement("path", {
821
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3321
822
  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"
3322
823
  }))))));
3323
824
  };
3324
825
  CrownIcon.propTypes = {
3325
- height: PropTypes.string,
3326
- width: PropTypes.string,
3327
- color: PropTypes.string,
3328
- positionTop: PropTypes.string
826
+ height: PropTypes__default["default"].string,
827
+ width: PropTypes__default["default"].string,
828
+ color: PropTypes__default["default"].string,
829
+ positionTop: PropTypes__default["default"].string
3329
830
  };
3330
831
 
3331
832
  var KeyIcon = function KeyIcon(_ref) {
@@ -3334,7 +835,7 @@ var KeyIcon = function KeyIcon(_ref) {
3334
835
  _ref$color = _ref.color,
3335
836
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3336
837
  positionTop = _ref.positionTop;
3337
- return /*#__PURE__*/React.createElement("svg", {
838
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3338
839
  xmlns: "http://www.w3.org/2000/svg",
3339
840
  width: width,
3340
841
  height: height,
@@ -3343,16 +844,16 @@ var KeyIcon = function KeyIcon(_ref) {
3343
844
  position: "relative",
3344
845
  top: positionTop
3345
846
  }
3346
- }, /*#__PURE__*/React.createElement("g", {
847
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3347
848
  fill: "none",
3348
849
  fillRule: "evenodd",
3349
850
  stroke: "none",
3350
851
  strokeWidth: "1"
3351
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
852
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3352
853
  transform: "translate(8 8)"
3353
- }, /*#__PURE__*/React.createElement("path", {
854
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3354
855
  d: "M0 0H24V24H0z"
3355
- }), /*#__PURE__*/React.createElement("path", {
856
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
3356
857
  fill: color,
3357
858
  fillRule: "nonzero",
3358
859
  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",
@@ -3360,10 +861,10 @@ var KeyIcon = function KeyIcon(_ref) {
3360
861
  })))));
3361
862
  };
3362
863
  KeyIcon.propTypes = {
3363
- height: PropTypes.string,
3364
- width: PropTypes.string,
3365
- color: PropTypes.string,
3366
- positionTop: PropTypes.string
864
+ height: PropTypes__default["default"].string,
865
+ width: PropTypes__default["default"].string,
866
+ color: PropTypes__default["default"].string,
867
+ positionTop: PropTypes__default["default"].string
3367
868
  };
3368
869
 
3369
870
  var LockIcon = function LockIcon(_ref) {
@@ -3372,7 +873,7 @@ var LockIcon = function LockIcon(_ref) {
3372
873
  _ref$color = _ref.color,
3373
874
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3374
875
  positionTop = _ref.positionTop;
3375
- return /*#__PURE__*/React.createElement("svg", {
876
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3376
877
  xmlns: "http://www.w3.org/2000/svg",
3377
878
  width: width,
3378
879
  height: height,
@@ -3381,28 +882,28 @@ var LockIcon = function LockIcon(_ref) {
3381
882
  position: "relative",
3382
883
  top: positionTop
3383
884
  }
3384
- }, /*#__PURE__*/React.createElement("g", {
885
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3385
886
  fill: "none",
3386
887
  fillRule: "evenodd",
3387
888
  stroke: "none",
3388
889
  strokeWidth: "1"
3389
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
890
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3390
891
  transform: "translate(8 8)"
3391
- }, /*#__PURE__*/React.createElement("path", {
892
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3392
893
  d: "M0 0H24V24H0z"
3393
- }), /*#__PURE__*/React.createElement("g", {
894
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
3394
895
  fill: color,
3395
896
  fillRule: "nonzero",
3396
897
  transform: "translate(3)"
3397
- }, /*#__PURE__*/React.createElement("path", {
898
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3398
899
  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"
3399
900
  }))))));
3400
901
  };
3401
902
  LockIcon.propTypes = {
3402
- height: PropTypes.string,
3403
- width: PropTypes.string,
3404
- color: PropTypes.string,
3405
- positionTop: PropTypes.string
903
+ height: PropTypes__default["default"].string,
904
+ width: PropTypes__default["default"].string,
905
+ color: PropTypes__default["default"].string,
906
+ positionTop: PropTypes__default["default"].string
3406
907
  };
3407
908
 
3408
909
  var StarIcon = function StarIcon(_ref) {
@@ -3412,7 +913,7 @@ var StarIcon = function StarIcon(_ref) {
3412
913
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3413
914
  _ref$positionTop = _ref.positionTop,
3414
915
  positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
3415
- return /*#__PURE__*/React.createElement("svg", {
916
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3416
917
  xmlns: "http://www.w3.org/2000/svg",
3417
918
  width: width,
3418
919
  height: height,
@@ -3421,21 +922,21 @@ var StarIcon = function StarIcon(_ref) {
3421
922
  position: "relative",
3422
923
  top: positionTop
3423
924
  }
3424
- }, /*#__PURE__*/React.createElement("g", {
925
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3425
926
  fill: "none",
3426
927
  fillRule: "evenodd",
3427
928
  stroke: "none",
3428
929
  strokeWidth: "1"
3429
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
930
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
3430
931
  fill: color,
3431
932
  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"
3432
933
  }))));
3433
934
  };
3434
935
  StarIcon.propTypes = {
3435
- height: PropTypes.string,
3436
- width: PropTypes.string,
3437
- color: PropTypes.string,
3438
- positionTop: PropTypes.string
936
+ height: PropTypes__default["default"].string,
937
+ width: PropTypes__default["default"].string,
938
+ color: PropTypes__default["default"].string,
939
+ positionTop: PropTypes__default["default"].string
3439
940
  };
3440
941
 
3441
942
  var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
@@ -3447,7 +948,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3447
948
 
3448
949
  switch (iconType) {
3449
950
  case "crown":
3450
- return /*#__PURE__*/React.createElement(CrownIcon, {
951
+ return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
3451
952
  width: width,
3452
953
  height: height,
3453
954
  color: color,
@@ -3455,7 +956,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3455
956
  });
3456
957
 
3457
958
  case "lock":
3458
- return /*#__PURE__*/React.createElement(LockIcon, {
959
+ return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
3459
960
  width: width,
3460
961
  height: height,
3461
962
  color: color,
@@ -3463,7 +964,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3463
964
  });
3464
965
 
3465
966
  case "key":
3466
- return /*#__PURE__*/React.createElement(KeyIcon, {
967
+ return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
3467
968
  width: width,
3468
969
  height: height,
3469
970
  color: color,
@@ -3471,7 +972,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3471
972
  });
3472
973
 
3473
974
  default:
3474
- return /*#__PURE__*/React.createElement(StarIcon, {
975
+ return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
3475
976
  width: width,
3476
977
  height: height,
3477
978
  color: color,
@@ -3480,21 +981,21 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3480
981
  }
3481
982
  };
3482
983
  PremiumStoryIcon.propTypes = {
3483
- width: PropTypes.string,
3484
- height: PropTypes.string,
3485
- color: PropTypes.string,
3486
- iconType: PropTypes.string,
3487
- positionTop: PropTypes.string
984
+ width: PropTypes__default["default"].string,
985
+ height: PropTypes__default["default"].string,
986
+ color: PropTypes__default["default"].string,
987
+ iconType: PropTypes__default["default"].string,
988
+ positionTop: PropTypes__default["default"].string
3488
989
  };
3489
990
 
3490
991
  function LiveIcon() {
3491
- return /*#__PURE__*/React.createElement("svg", {
992
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3492
993
  className: "live-icon",
3493
994
  xmlns: "http://www.w3.org/2000/svg",
3494
995
  width: "25",
3495
996
  height: "24",
3496
997
  viewBox: "0 0 25 24"
3497
- }, /*#__PURE__*/React.createElement("path", {
998
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3498
999
  fill: "#ff5858",
3499
1000
  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"
3500
1001
  }));
@@ -3523,8 +1024,8 @@ var Headline = function Headline(_ref) {
3523
1024
  enablePremiumStoryIcon = _premiumStoryIconConf3 === void 0 ? false : _premiumStoryIconConf3,
3524
1025
  _premiumStoryIconConf4 = premiumStoryIconConfig.showLiveIcon,
3525
1026
  showLiveIcon = _premiumStoryIconConf4 === void 0 ? false : _premiumStoryIconConf4;
3526
- var alternateHeadline = get_1(story, ["alternative", "home", "default", "headline"]);
3527
- var premiumStory = enablePremiumStoryIcon && get_1(story, ["access"]) === "subscription";
1027
+ var alternateHeadline = lodash.get(story, ["alternative", "home", "default", "headline"]);
1028
+ var premiumStory = enablePremiumStoryIcon && lodash.get(story, ["access"]) === "subscription";
3528
1029
  var headline = alternateHeadline || story.headline;
3529
1030
  var HeaderTag = "h" + headerLevel;
3530
1031
 
@@ -3550,38 +1051,38 @@ var Headline = function Headline(_ref) {
3550
1051
  var textColor = getTextColor(configData.theme);
3551
1052
  var wrapperClass = premiumStory ? "wrapper" : "";
3552
1053
  var iconSize = "24px";
3553
- var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
3554
- return /*#__PURE__*/React.createElement("div", {
1054
+ var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !lodash.get(story, ["metadata", "is-closed"], false);
1055
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3555
1056
  "data-test-id": "headline",
3556
- className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$8)
3557
- }, premiumStory && /*#__PURE__*/React.createElement(PremiumStoryIcon, {
1057
+ className: "arrow-component arr--headline " + _getClassName__default["default"](wrapperClass, _styleModuleImportMap$8)
1058
+ }, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
3558
1059
  width: iconSize,
3559
1060
  height: iconSize,
3560
1061
  color: iconColor,
3561
1062
  iconType: iconStyle,
3562
1063
  positionTop: positionHeadline()
3563
- }), isLink ? /*#__PURE__*/React.createElement(Link, {
1064
+ }), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
3564
1065
  href: getStoryUrl(story, "/".concat(story.slug)),
3565
1066
  externalLink: isExternalStory(story),
3566
1067
  "aria-label": "headline"
3567
- }, /*#__PURE__*/React.createElement(HeaderTag, {
3568
- className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$8)
3569
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline)) : /*#__PURE__*/React.createElement(HeaderTag, {
3570
- className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$8)
3571
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline));
1068
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
1069
+ className: _getClassName__default["default"]("headline ".concat(textColor), _styleModuleImportMap$8)
1070
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
1071
+ className: _getClassName__default["default"]("headline ".concat(textColor), _styleModuleImportMap$8)
1072
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
3572
1073
  };
3573
1074
  Headline.propTypes = {
3574
1075
  /** The Story Object from the API response */
3575
- story: PropTypes.object.isRequired,
1076
+ story: PropTypes__default["default"].object.isRequired,
3576
1077
 
3577
1078
  /** Header tags ranging h1-h6, where h[headerLevel] */
3578
- headerLevel: PropTypes.string,
3579
- premiumStoryIconConfig: PropTypes.shape({
3580
- iconColor: PropTypes.string,
3581
- iconType: PropTypes.string,
3582
- enablePremiumStoryIcon: PropTypes.bool
1079
+ headerLevel: PropTypes__default["default"].string,
1080
+ premiumStoryIconConfig: PropTypes__default["default"].shape({
1081
+ iconColor: PropTypes__default["default"].string,
1082
+ iconType: PropTypes__default["default"].string,
1083
+ enablePremiumStoryIcon: PropTypes__default["default"].bool
3583
1084
  }),
3584
- isLink: PropTypes.bool
1085
+ isLink: PropTypes__default["default"].bool
3585
1086
  };
3586
1087
  Headline.defaultProps = {
3587
1088
  headerLevel: "6",
@@ -3608,9 +1109,9 @@ var SectionTag = function SectionTag(_ref) {
3608
1109
  borderColor = _ref$borderColor === void 0 ? "" : _ref$borderColor,
3609
1110
  isLightTheme = _ref.isLightTheme;
3610
1111
  var config = useStateValue() || {};
3611
- var isSection = get_1(config, ["showSection"], true);
3612
- var templateFromRowContext = get_1(config, ["sectionTagTemplate"]);
3613
- var section = get_1(story, ["sections", 0], "");
1112
+ var isSection = lodash.get(config, ["showSection"], true);
1113
+ var templateFromRowContext = lodash.get(config, ["sectionTagTemplate"]);
1114
+ var section = lodash.get(story, ["sections", 0], "");
3614
1115
  var supportedTemplates = ["borderBottomSml", "borderLeft", "solid"];
3615
1116
  var getUrl = section ? section["section-url"] : "/";
3616
1117
  var colorToApplyContrast = template === "solid" || templateFromRowContext === "solid" ? borderColor : config.theme;
@@ -3623,22 +1124,22 @@ var SectionTag = function SectionTag(_ref) {
3623
1124
  }
3624
1125
 
3625
1126
  if (!isSection) return null;
3626
- return /*#__PURE__*/React.createElement(Link, {
1127
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3627
1128
  href: getUrl,
3628
1129
  className: "arrow-component arr--section-name",
3629
1130
  "aria-label": "section-name"
3630
- }, /*#__PURE__*/React.createElement("div", {
1131
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3631
1132
  "data-test-id": "sectionTag",
3632
1133
  style: {
3633
1134
  backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
3634
1135
  },
3635
- className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$7)
3636
- }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React.createElement("span", {
1136
+ className: "section-tag arrow-component " + _getClassName__default["default"]("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$7)
1137
+ }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
3637
1138
  className: "section-m_border-left__2oUyp",
3638
1139
  style: {
3639
1140
  color: sectionTagBorderColor
3640
1141
  }
3641
- }), section["display-name"] || section["name"], /*#__PURE__*/React.createElement("div", {
1142
+ }), section["display-name"] || section["name"], /*#__PURE__*/React__default["default"].createElement("div", {
3642
1143
  className: "section-m_border-bottom__3cRoD",
3643
1144
  style: {
3644
1145
  backgroundColor: "".concat(template === "solid" ? "" : sectionTagBorderColor)
@@ -3647,13 +1148,13 @@ var SectionTag = function SectionTag(_ref) {
3647
1148
  };
3648
1149
  SectionTag.propTypes = {
3649
1150
  /** The Story Object from the API response */
3650
- story: PropTypes.object.isRequired,
1151
+ story: PropTypes__default["default"].object.isRequired,
3651
1152
 
3652
1153
  /** The style template for section tag */
3653
- template: PropTypes.oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
3654
- borderColor: PropTypes.string,
3655
- solidBorderColor: PropTypes.string,
3656
- isLightTheme: PropTypes.bool
1154
+ template: PropTypes__default["default"].oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
1155
+ borderColor: PropTypes__default["default"].string,
1156
+ solidBorderColor: PropTypes__default["default"].string,
1157
+ isLightTheme: PropTypes__default["default"].bool
3657
1158
  };
3658
1159
  SectionTag.defaultProps = {
3659
1160
  template: "",
@@ -3675,22 +1176,22 @@ var TimeStamp = function TimeStamp(_ref) {
3675
1176
  _ref$config = _ref.config,
3676
1177
  config = _ref$config === void 0 ? {} : _ref$config;
3677
1178
  var configState = useStateValue() || {};
3678
- var isTime = get_1(config, ["showTime"], get_1(configState, ["showTime"], true));
1179
+ var isTime = lodash.get(config, ["showTime"], lodash.get(configState, ["showTime"], true));
3679
1180
  var time = story["last-published-at"] || story["first-published-at"];
3680
1181
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3681
1182
  var textColor = getTextColor(configState.theme);
3682
- return /*#__PURE__*/React.createElement(React.Fragment, null, isTime && /*#__PURE__*/React.createElement("div", {
1183
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
3683
1184
  "data-test-id": "publish-time",
3684
- className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$6)
3685
- }, /*#__PURE__*/React.createElement("div", {
1185
+ className: "time arr--publish-time " + _getClassName__default["default"]("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$6)
1186
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3686
1187
  className: "timestamp-m_time-wrapper__3O2lM"
3687
1188
  }, getTimeStamp(time, formatter, config))));
3688
1189
  };
3689
1190
  TimeStamp.propTypes = {
3690
1191
  /** The Story Object from the API response */
3691
- story: PropTypes.object,
3692
- isBottom: PropTypes.bool,
3693
- config: PropTypes.object
1192
+ story: PropTypes__default["default"].object,
1193
+ isBottom: PropTypes__default["default"].bool,
1194
+ config: PropTypes__default["default"].object
3694
1195
  };
3695
1196
 
3696
1197
  var _styleModuleImportMap$5 = {
@@ -3716,9 +1217,9 @@ var AuthorBase = function AuthorBase(_ref) {
3716
1217
  _ref$config = _ref.config,
3717
1218
  config = _ref$config === void 0 ? {} : _ref$config;
3718
1219
  var configData = useStateValue() || {};
3719
- var isAuthor = get_1(configData, ["showAuthor"], true);
1220
+ var isAuthor = lodash.get(configData, ["showAuthor"], true);
3720
1221
 
3721
- var _get = get_1(story, ["authors", "0"], ""),
1222
+ var _get = lodash.get(story, ["authors", "0"], ""),
3722
1223
  avatarUrl = _get["avatar-url"],
3723
1224
  avatarS3Key = _get["avatar-s3-key"],
3724
1225
  authorName = _get.name,
@@ -3726,17 +1227,17 @@ var AuthorBase = function AuthorBase(_ref) {
3726
1227
 
3727
1228
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3728
1229
  var textColor = getTextColor(configData.theme);
3729
- var mountAt = get_1(config, ["mountAt"], "");
1230
+ var mountAt = lodash.get(config, ["mountAt"], "");
3730
1231
 
3731
1232
  var authorImage = function authorImage(dir) {
3732
1233
  if (!avatarUrl && !avatarS3Key) {
3733
1234
  return null;
3734
1235
  }
3735
1236
 
3736
- return /*#__PURE__*/React.createElement("div", {
1237
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3737
1238
  "data-test-id": "author-image",
3738
- className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$5)
3739
- }, /*#__PURE__*/React.createElement("figure", null, avatarS3Key ? /*#__PURE__*/React.createElement(ResponsiveImage, {
1239
+ className: _getClassName__default["default"]("author-image ".concat(dir, "-image"), _styleModuleImportMap$5)
1240
+ }, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
3740
1241
  slug: avatarS3Key,
3741
1242
  "aspect-ratio": [1, 1],
3742
1243
  defaultWidth: 400,
@@ -3744,49 +1245,49 @@ var AuthorBase = function AuthorBase(_ref) {
3744
1245
  auto: ["format", "compress"]
3745
1246
  },
3746
1247
  alt: authorName
3747
- }) : /*#__PURE__*/React.createElement("img", {
1248
+ }) : /*#__PURE__*/React__default["default"].createElement("img", {
3748
1249
  src: avatarUrl
3749
1250
  })));
3750
1251
  };
3751
1252
 
3752
1253
  var isPrefix = function isPrefix(dir) {
3753
1254
  if (prefix) {
3754
- return /*#__PURE__*/React.createElement("div", {
3755
- className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$5)
1255
+ return /*#__PURE__*/React__default["default"].createElement("div", {
1256
+ className: "arr-author-prefix " + _getClassName__default["default"]("prefix ".concat(textColor), _styleModuleImportMap$5)
3756
1257
  }, prefix);
3757
1258
  }
3758
1259
 
3759
1260
  return !hideAuthorImage && authorImage(dir);
3760
1261
  };
3761
1262
 
3762
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement(Link, {
1263
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
3763
1264
  href: "".concat(mountAt, "/author/") + slug,
3764
1265
  "aria-label": "author-name",
3765
- className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$5)
3766
- }, isPrefix("ltr"), /*#__PURE__*/React.createElement("div", {
1266
+ className: "author-name arr-author-name arrow-component " + _getClassName__default["default"]("author ".concat(isBottomClasses), _styleModuleImportMap$5)
1267
+ }, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
3767
1268
  "data-test-id": "author-name",
3768
- className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$5)
1269
+ className: "author-name " + _getClassName__default["default"]("author-name ".concat(textColor), _styleModuleImportMap$5)
3769
1270
  }, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
3770
1271
  };
3771
1272
 
3772
1273
  function mapStateToProps(state) {
3773
1274
  return {
3774
- config: get_1(state, ["qt", "config"], {})
1275
+ config: lodash.get(state, ["qt", "config"], {})
3775
1276
  };
3776
1277
  }
3777
1278
 
3778
- var Author = connect(mapStateToProps)(AuthorBase);
1279
+ var Author = reactRedux.connect(mapStateToProps)(AuthorBase);
3779
1280
  AuthorBase.propTypes = {
3780
1281
  /** The Story Object from the API response */
3781
- story: PropTypes.object.isRequired,
1282
+ story: PropTypes__default["default"].object.isRequired,
3782
1283
 
3783
1284
  /** Hide Author Avatar Image */
3784
- hideAuthorImage: PropTypes.bool,
1285
+ hideAuthorImage: PropTypes__default["default"].bool,
3785
1286
  // fix Author bottom of the storyCard
3786
- isBottom: PropTypes.bool,
1287
+ isBottom: PropTypes__default["default"].bool,
3787
1288
  // fix prefix before the author name
3788
- prefix: PropTypes.string,
3789
- config: PropTypes.object
1289
+ prefix: PropTypes__default["default"].string,
1290
+ config: PropTypes__default["default"].object
3790
1291
  };
3791
1292
  AuthorBase.defaultProps = {
3792
1293
  hideAuthorImage: false,
@@ -3807,14 +1308,14 @@ var Dot = function Dot(_ref) {
3807
1308
  height = _ref$height === void 0 ? "3px" : _ref$height,
3808
1309
  _ref$color = _ref.color,
3809
1310
  color = _ref$color === void 0 ? "light" : _ref$color;
3810
- return /*#__PURE__*/React.createElement("div", {
3811
- className: _getClassName(color, _styleModuleImportMap$4)
3812
- }, /*#__PURE__*/React.createElement("svg", {
1311
+ return /*#__PURE__*/React__default["default"].createElement("div", {
1312
+ className: _getClassName__default["default"](color, _styleModuleImportMap$4)
1313
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
3813
1314
  xmlns: "http://www.w3.org/2000/svg",
3814
1315
  width: width,
3815
1316
  height: height,
3816
1317
  viewBox: "0 0 3 3"
3817
- }, /*#__PURE__*/React.createElement("circle", {
1318
+ }, /*#__PURE__*/React__default["default"].createElement("circle", {
3818
1319
  cx: "87",
3819
1320
  cy: "9",
3820
1321
  r: "1",
@@ -3825,9 +1326,9 @@ var Dot = function Dot(_ref) {
3825
1326
  };
3826
1327
  Dot.propTypes = {
3827
1328
  /** height , width and color of the dot icon */
3828
- color: PropTypes.string,
3829
- width: PropTypes.string,
3830
- height: PropTypes.string
1329
+ color: PropTypes__default["default"].string,
1330
+ width: PropTypes__default["default"].string,
1331
+ height: PropTypes__default["default"].string
3831
1332
  };
3832
1333
 
3833
1334
  var _styleModuleImportMap$3 = {
@@ -3843,22 +1344,22 @@ var Divider = function Divider(_ref) {
3843
1344
  height = _ref$height === void 0 ? "10" : _ref$height,
3844
1345
  _ref$color = _ref.color,
3845
1346
  color = _ref$color === void 0 ? "light" : _ref$color;
3846
- return /*#__PURE__*/React.createElement("div", {
3847
- className: _getClassName(color, _styleModuleImportMap$3)
3848
- }, /*#__PURE__*/React.createElement("svg", {
1347
+ return /*#__PURE__*/React__default["default"].createElement("div", {
1348
+ className: _getClassName__default["default"](color, _styleModuleImportMap$3)
1349
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
3849
1350
  xmlns: "http://www.w3.org/2000/svg",
3850
1351
  width: width,
3851
1352
  height: height
3852
- }, /*#__PURE__*/React.createElement("path", {
1353
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3853
1354
  fill: "inherit",
3854
1355
  d: "M0 0h1v10H0z"
3855
1356
  })));
3856
1357
  };
3857
1358
  Divider.propTypes = {
3858
1359
  /** height , width and color of the dot icon */
3859
- color: PropTypes.string,
3860
- width: PropTypes.string,
3861
- height: PropTypes.string
1360
+ color: PropTypes__default["default"].string,
1361
+ width: PropTypes__default["default"].string,
1362
+ height: PropTypes__default["default"].string
3862
1363
  };
3863
1364
 
3864
1365
  var _styleModuleImportMap$2 = {
@@ -3876,28 +1377,28 @@ var ReadTime = function ReadTime(_ref) {
3876
1377
  _ref$isLightTheme = _ref.isLightTheme,
3877
1378
  isLightTheme = _ref$isLightTheme === void 0 ? false : _ref$isLightTheme;
3878
1379
  var config = useStateValue() || {};
3879
- var showReadTime = get_1(config, ["showReadTime"]) || get_1(opts, ["showReadTime"], true);
3880
- var readTime = get_1(story, ["read-time"], 0);
1380
+ var showReadTime = lodash.get(config, ["showReadTime"]) || lodash.get(opts, ["showReadTime"], true);
1381
+ var readTime = lodash.get(story, ["read-time"], 0);
3881
1382
  var textColor = isLightTheme ? "light" : getTextColor(config.theme);
3882
1383
  if (!showReadTime || !readTime) return null;
3883
- var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
3884
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
1384
+ var timeToRead = lodash.get(opts, ["localizedTimeToRead"]) || "min read";
1385
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3885
1386
  "data-test-id": "read-time",
3886
- className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$2)
3887
- }, /*#__PURE__*/React.createElement("span", {
1387
+ className: "arrow-component arr--read-time " + _getClassName__default["default"]("read-time-wrapper ".concat(textColor), _styleModuleImportMap$2)
1388
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
3888
1389
  className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
3889
- }, /*#__PURE__*/React.createElement(Dot, {
1390
+ }, /*#__PURE__*/React__default["default"].createElement(Dot, {
3890
1391
  color: textColor
3891
- })), /*#__PURE__*/React.createElement("span", null, readTime, " ", timeToRead)));
1392
+ })), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
3892
1393
  };
3893
1394
  ReadTime.propTypes = {
3894
- story: PropTypes.shape({
3895
- "read-time": PropTypes.number
1395
+ story: PropTypes__default["default"].shape({
1396
+ "read-time": PropTypes__default["default"].number
3896
1397
  }),
3897
- opts: PropTypes.shape({
3898
- showReadTime: PropTypes.bool
1398
+ opts: PropTypes__default["default"].shape({
1399
+ showReadTime: PropTypes__default["default"].bool
3899
1400
  }),
3900
- isLightTheme: PropTypes.bool
1401
+ isLightTheme: PropTypes__default["default"].bool
3901
1402
  };
3902
1403
 
3903
1404
  var _styleModuleImportMap$1 = {
@@ -3919,42 +1420,42 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3919
1420
  config = _ref$config === void 0 ? {} : _ref$config,
3920
1421
  isLightTheme = _ref.isLightTheme;
3921
1422
  var configState = useStateValue() || {};
3922
- var isAuthor = get_1(config, ["showAuthor"], get_1(configState, ["showAuthor"], true));
3923
- var isTime = get_1(config, ["showTime"], get_1(configState, ["showTime"], true));
3924
- var isReadTime = get_1(configState, ["showReadTime"], true);
1423
+ var isAuthor = lodash.get(config, ["showAuthor"], lodash.get(configState, ["showAuthor"], true));
1424
+ var isTime = lodash.get(config, ["showTime"], lodash.get(configState, ["showTime"], true));
1425
+ var isReadTime = lodash.get(configState, ["showReadTime"], true);
3925
1426
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3926
1427
  var seperatorStyle = separator === "dot" ? "dot" : "dash";
3927
1428
  var textColor = isLightTheme ? "light" : getTextColor(configState.theme);
3928
1429
 
3929
1430
  var getSeparator = function getSeparator() {
3930
1431
  if (separator === "divider") {
3931
- return /*#__PURE__*/React.createElement(Divider, {
1432
+ return /*#__PURE__*/React__default["default"].createElement(Divider, {
3932
1433
  color: textColor
3933
1434
  });
3934
1435
  }
3935
1436
 
3936
- return /*#__PURE__*/React.createElement(Dot, {
1437
+ return /*#__PURE__*/React__default["default"].createElement(Dot, {
3937
1438
  color: textColor
3938
1439
  });
3939
1440
  };
3940
1441
 
3941
1442
  var getTimeStamp = function getTimeStamp() {
3942
1443
  if (!isTime) return null;
3943
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement("span", {
3944
- className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$1)
3945
- }, getSeparator()), /*#__PURE__*/React.createElement(TimeStamp, {
1444
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
1445
+ className: "arr-separator " + _getClassName__default["default"]("".concat(seperatorStyle), _styleModuleImportMap$1)
1446
+ }, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
3946
1447
  story: story,
3947
1448
  config: config
3948
- }), isReadTime && /*#__PURE__*/React.createElement(ReadTime, {
1449
+ }), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
3949
1450
  story: story,
3950
1451
  opts: config,
3951
1452
  isLightTheme: isLightTheme
3952
1453
  }));
3953
1454
  };
3954
1455
 
3955
- return /*#__PURE__*/React.createElement("div", {
3956
- className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$1)
3957
- }, isAuthor ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Author, {
1456
+ return /*#__PURE__*/React__default["default"].createElement("div", {
1457
+ className: "arr--author-time " + _getClassName__default["default"]("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$1)
1458
+ }, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
3958
1459
  story: story,
3959
1460
  isBottom: true,
3960
1461
  hideAuthorImage: hideAuthorImage,
@@ -3962,19 +1463,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3962
1463
  }), getTimeStamp()) : getTimeStamp());
3963
1464
  };
3964
1465
  AuthorWithTime.propTypes = {
3965
- story: PropTypes.object,
1466
+ story: PropTypes__default["default"].object,
3966
1467
 
3967
1468
  /** Style of separator between the Author & Timestamp */
3968
- separator: PropTypes.oneOf(["dot", "divider"]),
1469
+ separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
3969
1470
 
3970
1471
  /** hide the author image */
3971
- hideAuthorImage: PropTypes.bool,
1472
+ hideAuthorImage: PropTypes__default["default"].bool,
3972
1473
  // fix author and time at the end
3973
- isBottom: PropTypes.bool,
1474
+ isBottom: PropTypes__default["default"].bool,
3974
1475
  // fix prefix before the author name
3975
- prefix: PropTypes.string,
3976
- config: PropTypes.object,
3977
- isLightTheme: PropTypes.bool
1476
+ prefix: PropTypes__default["default"].string,
1477
+ config: PropTypes__default["default"].object,
1478
+ isLightTheme: PropTypes__default["default"].bool
3978
1479
  };
3979
1480
  AuthorWithTime.defaultProps = {
3980
1481
  separator: "dot",
@@ -4005,14 +1506,14 @@ var StorycardContent = function StorycardContent(_ref) {
4005
1506
  var SectionTagborderColor = rgbToHex(borderColor);
4006
1507
  var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : "";
4007
1508
  var horizontalCard = isHorizontalMobile ? "horizontal-content-wrapper" : "";
4008
- return /*#__PURE__*/React.createElement("div", {
1509
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4009
1510
  "data-test-id": "story-card-content",
4010
1511
  style: {
4011
1512
  backgroundColor: theme,
4012
1513
  color: textColor
4013
1514
  },
4014
- className: "arr--content-wrapper " + _getClassName("wrapper ".concat(borderTemplate, " ").concat(horizontalCard), _styleModuleImportMap)
4015
- }, children || /*#__PURE__*/React.createElement(DefaultStoryCardContent, {
1515
+ className: "arr--content-wrapper " + _getClassName__default["default"]("wrapper ".concat(borderTemplate, " ").concat(horizontalCard), _styleModuleImportMap)
1516
+ }, children || /*#__PURE__*/React__default["default"].createElement(DefaultStoryCardContent, {
4016
1517
  story: story,
4017
1518
  headerLevel: headerLevel,
4018
1519
  isHorizontalMobile: isHorizontalMobile,
@@ -4030,37 +1531,37 @@ var DefaultStoryCardContent = function DefaultStoryCardContent(_ref2) {
4030
1531
  var SectionTagborderColor = rgbToHex(borderColor);
4031
1532
  var _config$localizationC = config.localizationConfig,
4032
1533
  localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
4033
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SectionTag, {
1534
+ return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4034
1535
  story: story,
4035
1536
  borderColor: SectionTagborderColor
4036
- }), /*#__PURE__*/React.createElement(Headline, {
1537
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
4037
1538
  story: story,
4038
1539
  headerLevel: headerLevel,
4039
1540
  premiumStoryIconConfig: config
4040
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
1541
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
4041
1542
  config: localizationConfig,
4042
1543
  story: story
4043
1544
  }));
4044
1545
  };
4045
1546
 
4046
1547
  DefaultStoryCardContent.propTypes = {
4047
- story: PropTypes.object.isRequired,
4048
- border: PropTypes.string,
4049
- theme: PropTypes.string,
4050
- isHorizontalMobile: PropTypes.bool,
4051
- headerLevel: PropTypes.string,
4052
- borderColor: PropTypes.string,
4053
- config: PropTypes.object
1548
+ story: PropTypes__default["default"].object.isRequired,
1549
+ border: PropTypes__default["default"].string,
1550
+ theme: PropTypes__default["default"].string,
1551
+ isHorizontalMobile: PropTypes__default["default"].bool,
1552
+ headerLevel: PropTypes__default["default"].string,
1553
+ borderColor: PropTypes__default["default"].string,
1554
+ config: PropTypes__default["default"].object
4054
1555
  };
4055
1556
  StorycardContent.propTypes = {
4056
- story: PropTypes.object.isRequired,
4057
- children: PropTypes.node,
4058
- theme: PropTypes.string,
4059
- border: PropTypes.string,
4060
- isHorizontalMobile: PropTypes.bool,
4061
- headerLevel: PropTypes.string,
4062
- borderColor: PropTypes.string,
4063
- config: PropTypes.object
1557
+ story: PropTypes__default["default"].object.isRequired,
1558
+ children: PropTypes__default["default"].node,
1559
+ theme: PropTypes__default["default"].string,
1560
+ border: PropTypes__default["default"].string,
1561
+ isHorizontalMobile: PropTypes__default["default"].bool,
1562
+ headerLevel: PropTypes__default["default"].string,
1563
+ borderColor: PropTypes__default["default"].string,
1564
+ config: PropTypes__default["default"].object
4064
1565
  };
4065
1566
 
4066
1567
  var isClient = typeof window !== "undefined";
@@ -4072,7 +1573,7 @@ var hasIntersectionObserverSupport = function hasIntersectionObserverSupport() {
4072
1573
 
4073
1574
 
4074
1575
  var getIntersectionObserver = function getIntersectionObserver() {
4075
- return Promise.resolve(isClient && !hasIntersectionObserverSupport() && import('intersection-observer'));
1576
+ return Promise.resolve(isClient && !hasIntersectionObserverSupport() && Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('intersection-observer')); }));
4076
1577
  }; // options for intersection observer in order to improve the effect
4077
1578
 
4078
1579
 
@@ -4105,12 +1606,12 @@ var getObserver = function getObserver() {
4105
1606
  var useNearScreen = (function (_ref) {
4106
1607
  var ref = _ref.ref;
4107
1608
 
4108
- var _useState = useState(false),
4109
- _useState2 = _slicedToArray(_useState, 2),
1609
+ var _useState = React.useState(false),
1610
+ _useState2 = _slicedToArray__default["default"](_useState, 2),
4110
1611
  show = _useState2[0],
4111
1612
  setShow = _useState2[1];
4112
1613
 
4113
- useEffect(function () {
1614
+ React.useEffect(function () {
4114
1615
  var current = ref.current;
4115
1616
  if (!current) return; // get observer async and only when needed
4116
1617
 
@@ -4137,36 +1638,36 @@ var EMPTY_HTML = {
4137
1638
  var isServer = typeof window === "undefined";
4138
1639
  var ProgressiveHydration = function ProgressiveHydration(props) {
4139
1640
  var children = props.children;
4140
- var ref = useRef(null);
1641
+ var ref = React.useRef(null);
4141
1642
  var isNearScreen = useNearScreen({
4142
1643
  ref: ref
4143
1644
  });
4144
- useEffect(function () {
1645
+ React.useEffect(function () {
4145
1646
  var el = ref.current; // CLIENT:
4146
1647
  // If we want to force the hydration OR the element is near screen
4147
1648
  // then we hydrate the content to get the functionality ready
4148
1649
 
4149
1650
  if (isNearScreen) {
4150
1651
  var action = el.hasChildNodes() ? "hydrate" : "render";
4151
- ReactDOM[action](children, el);
1652
+ ReactDOM__default["default"][action](children, el);
4152
1653
  }
4153
1654
  }, [children, isNearScreen]); // SERVER: Just render the content as usual
4154
1655
 
4155
1656
  if (isServer) {
4156
- return /*#__PURE__*/React.createElement("div", {
1657
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4157
1658
  ref: ref
4158
1659
  }, children);
4159
1660
  } // CLIENT: Avoid hydration until we say so
4160
1661
 
4161
1662
 
4162
- return /*#__PURE__*/React.createElement("div", {
1663
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4163
1664
  ref: ref,
4164
1665
  suppressHydrationWarning: true,
4165
1666
  dangerouslySetInnerHTML: EMPTY_HTML
4166
1667
  });
4167
1668
  };
4168
1669
  ProgressiveHydration.propTypes = {
4169
- children: PropTypes.element
1670
+ children: PropTypes__default["default"].element
4170
1671
  };
4171
1672
 
4172
1673
  var LoadMoreTarget = function LoadMoreTarget(_ref) {
@@ -4174,7 +1675,7 @@ var LoadMoreTarget = function LoadMoreTarget(_ref) {
4174
1675
  componentName = _ref.componentName,
4175
1676
  offset = _ref.offset,
4176
1677
  limit = _ref.limit;
4177
- return /*#__PURE__*/React.createElement("div", {
1678
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4178
1679
  id: "ELM-".concat(collection.id),
4179
1680
  "data-collection-slug": collection["slug"],
4180
1681
  "data-component-name": componentName,
@@ -4183,13 +1684,13 @@ var LoadMoreTarget = function LoadMoreTarget(_ref) {
4183
1684
  });
4184
1685
  };
4185
1686
  LoadMoreTarget.propTypes = {
4186
- collection: PropTypes.shape({
4187
- id: PropTypes.string,
4188
- slug: PropTypes.string
1687
+ collection: PropTypes__default["default"].shape({
1688
+ id: PropTypes__default["default"].string,
1689
+ slug: PropTypes__default["default"].string
4189
1690
  }),
4190
- componentName: PropTypes.string,
4191
- offset: PropTypes.number,
4192
- limit: PropTypes.number
1691
+ componentName: PropTypes__default["default"].string,
1692
+ offset: PropTypes__default["default"].number,
1693
+ limit: PropTypes__default["default"].number
4193
1694
  };
4194
1695
 
4195
1696
  var loadMore = function loadMore(_ref) {
@@ -4212,7 +1713,7 @@ var FourColFiveStoriesBase = function FourColFiveStoriesBase(_ref2) {
4212
1713
  isLoading = _ref2.isLoading,
4213
1714
  isolatedLoadMore = _ref2.isolatedLoadMore,
4214
1715
  hideFirstCard = _ref2.hideFirstCard;
4215
- var stories = collectionToStories(collection);
1716
+ var stories = components.collectionToStories(collection);
4216
1717
  if (!stories.length) return null;
4217
1718
  var _config$collectionNam = config.collectionNameBorderColor,
4218
1719
  collectionNameBorderColor = _config$collectionNam === void 0 ? "" : _config$collectionNam,
@@ -4229,7 +1730,7 @@ var FourColFiveStoriesBase = function FourColFiveStoriesBase(_ref2) {
4229
1730
  _config$subsequentLoa = config.subsequentLoadCount,
4230
1731
  subsequentLoadCount = _config$subsequentLoa === void 0 ? 4 : _config$subsequentLoa;
4231
1732
 
4232
- var _get = get_1(slotConfig, [0], {}),
1733
+ var _get = lodash.get(slotConfig, [0], {}),
4233
1734
  _get$type = _get.type,
4234
1735
  type = _get$type === void 0 ? "story" : _get$type,
4235
1736
  component = _get.component;
@@ -4237,22 +1738,22 @@ var FourColFiveStoriesBase = function FourColFiveStoriesBase(_ref2) {
4237
1738
  var textColor = getTextColor(theme);
4238
1739
  var sectionTagBorderColor = rgbToHex(borderColor);
4239
1740
  var adWidgetSlot = type === "ad" || type === "widget" ? getSlot(type, component) : null;
4240
- var dispatch = useDispatch();
4241
- var qtConfig = useSelector(function (state) {
4242
- return get_1(state, ["qt", "config"], {});
1741
+ var dispatch = reactRedux.useDispatch();
1742
+ var qtConfig = reactRedux.useSelector(function (state) {
1743
+ return lodash.get(state, ["qt", "config"], {});
4243
1744
  });
4244
1745
 
4245
1746
  var _ref3 = stories || [],
4246
- _ref4 = _toArray(_ref3),
1747
+ _ref4 = _toArray__default["default"](_ref3),
4247
1748
  firstStory = _ref4[0],
4248
1749
  otherStories = _ref4.slice(1);
4249
1750
 
4250
1751
  var storyCard = function storyCard(story) {
4251
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(HeroImage, {
1752
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4252
1753
  config: config,
4253
1754
  story: story,
4254
1755
  aspectRatio: [[16, 9]]
4255
- }), /*#__PURE__*/React.createElement(StorycardContent, {
1756
+ }), /*#__PURE__*/React__default["default"].createElement(StorycardContent, {
4256
1757
  theme: theme,
4257
1758
  story: story,
4258
1759
  config: config,
@@ -4262,10 +1763,10 @@ var FourColFiveStoriesBase = function FourColFiveStoriesBase(_ref2) {
4262
1763
  };
4263
1764
 
4264
1765
  var otherCards = function otherCards(story, index) {
4265
- return /*#__PURE__*/React.createElement("div", {
1766
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4266
1767
  className: "four-col-five-stories-m_card__2lzhH",
4267
1768
  "data-test-id": "story-card",
4268
- key: "four-col-five-story-".concat(index, "-").concat(get_1(story, ["id"], "0"))
1769
+ key: "four-col-five-story-".concat(index, "-").concat(lodash.get(story, ["id"], "0"))
4269
1770
  }, storyCard(story));
4270
1771
  };
4271
1772
 
@@ -4273,7 +1774,7 @@ var FourColFiveStoriesBase = function FourColFiveStoriesBase(_ref2) {
4273
1774
  if (!isLoadMoreVisible) return null;
4274
1775
 
4275
1776
  if (isolatedLoadMore) {
4276
- return /*#__PURE__*/React.createElement(LoadMoreTarget, {
1777
+ return /*#__PURE__*/React__default["default"].createElement(LoadMoreTarget, {
4277
1778
  collection: collection,
4278
1779
  componentName: "FourColFiveStories",
4279
1780
  offset: stories.length,
@@ -4282,7 +1783,7 @@ var FourColFiveStoriesBase = function FourColFiveStoriesBase(_ref2) {
4282
1783
  }
4283
1784
 
4284
1785
  var url = generateNavigateSlug(collection, qtConfig);
4285
- return /*#__PURE__*/React.createElement(ProgressiveHydration, null, /*#__PURE__*/React.createElement(LoadmoreButton, {
1786
+ return /*#__PURE__*/React__default["default"].createElement(ProgressiveHydration, null, /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
4286
1787
  config: config,
4287
1788
  collection: collection,
4288
1789
  template: footerButton,
@@ -4297,26 +1798,26 @@ var FourColFiveStoriesBase = function FourColFiveStoriesBase(_ref2) {
4297
1798
  };
4298
1799
 
4299
1800
  var renderStories = hideFirstCard ? stories : otherStories;
4300
- return /*#__PURE__*/React.createElement("div", {
1801
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4301
1802
  className: "full-width-with-padding arrow-component",
4302
1803
  "data-test-id": "four-col-five-stories",
4303
1804
  style: {
4304
1805
  backgroundColor: theme,
4305
1806
  color: textColor
4306
1807
  }
4307
- }, /*#__PURE__*/React.createElement("div", {
1808
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4308
1809
  className: "four-col-five-stories-m_four-col-five-stories__16ja_"
4309
- }, /*#__PURE__*/React.createElement(CollectionName, {
1810
+ }, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
4310
1811
  collection: collection,
4311
1812
  collectionNameTemplate: collectionNameTemplate,
4312
1813
  collectionNameBorderColor: collectionNameBorderColor,
4313
1814
  headerLevel: 2
4314
- }), /*#__PURE__*/React.createElement("div", {
1815
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4315
1816
  className: "four-col-five-stories-m_wrapper__31KAU"
4316
- }, !hideFirstCard && /*#__PURE__*/React.createElement("div", {
1817
+ }, !hideFirstCard && /*#__PURE__*/React__default["default"].createElement("div", {
4317
1818
  className: "first-card four-col-five-stories-m_first-card__3dXVH",
4318
1819
  "data-test-id": "story-card"
4319
- }, storyCard(firstStory)), /*#__PURE__*/React.createElement("div", {
1820
+ }, storyCard(firstStory)), /*#__PURE__*/React__default["default"].createElement("div", {
4320
1821
  className: "other-cards four-col-five-stories-m_other-cards__1P4k5"
4321
1822
  }, renderStories.slice(0, 3).map(function (story, index) {
4322
1823
  return otherCards(story, index);
@@ -4330,21 +1831,21 @@ var FourColFiveStoriesBase = function FourColFiveStoriesBase(_ref2) {
4330
1831
  })));
4331
1832
  };
4332
1833
  FourColFiveStoriesBase.propTypes = {
4333
- collection: PropTypes.object,
4334
- config: PropTypes.shape({
4335
- collectionNameBorderColor: PropTypes.string,
4336
- theme: PropTypes.string,
4337
- slotConfig: PropTypes.array,
4338
- collectionNameTemplate: PropTypes.string,
4339
- footerButton: PropTypes.string,
4340
- borderColor: PropTypes.string,
4341
- subsequentLoadCount: PropTypes.number
1834
+ collection: PropTypes__default["default"].object,
1835
+ config: PropTypes__default["default"].shape({
1836
+ collectionNameBorderColor: PropTypes__default["default"].string,
1837
+ theme: PropTypes__default["default"].string,
1838
+ slotConfig: PropTypes__default["default"].array,
1839
+ collectionNameTemplate: PropTypes__default["default"].string,
1840
+ footerButton: PropTypes__default["default"].string,
1841
+ borderColor: PropTypes__default["default"].string,
1842
+ subsequentLoadCount: PropTypes__default["default"].number
4342
1843
  }),
4343
- getMoreStories: PropTypes.func,
4344
- isLoading: PropTypes.bool,
4345
- hideFirstCard: PropTypes.bool,
4346
- isLoadMoreVisible: PropTypes.bool,
4347
- isolatedLoadMore: PropTypes.bool
1844
+ getMoreStories: PropTypes__default["default"].func,
1845
+ isLoading: PropTypes__default["default"].bool,
1846
+ hideFirstCard: PropTypes__default["default"].bool,
1847
+ isLoadMoreVisible: PropTypes__default["default"].bool,
1848
+ isolatedLoadMore: PropTypes__default["default"].bool
4348
1849
  };
4349
1850
  FourColFiveStoriesBase.defaultProps = {
4350
1851
  getMoreStories: function getMoreStories() {},
@@ -4356,4 +1857,5 @@ FourColFiveStoriesBase.defaultProps = {
4356
1857
  };
4357
1858
  var FourColFiveStories = StateProvider(FourColFiveStoriesBase);
4358
1859
 
4359
- export { FourColFiveStories, FourColFiveStoriesBase };
1860
+ exports.FourColFiveStories = FourColFiveStories;
1861
+ exports.FourColFiveStoriesBase = FourColFiveStoriesBase;