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