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