@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, Fragment } from 'react';
2
- import PropTypes, { PropTypes as PropTypes$1 } from 'prop-types';
3
- import { Link, ResponsiveImage, ResponsiveHeroImage, LinkBase, collectionToStories } from '@quintype/components';
4
- import Timeago from 'react-timeago';
5
- import { utcToZonedTime, format } from 'date-fns-tz';
6
- import { connect, useSelector, useDispatch } from 'react-redux';
7
- 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 lodash = require('lodash');
7
+ var _getClassName = require('babel-plugin-react-css-modules/dist/browser/getClassName');
8
+ var PropTypes = require('prop-types');
9
+ var components = require('@quintype/components');
10
+ require('@babel/runtime/helpers/asyncToGenerator');
11
+ var _typeof = require('@babel/runtime/helpers/typeof');
12
+ require('@babel/runtime/regenerator');
13
+ var Timeago = require('react-timeago');
14
+ var dateFnsTz = require('date-fns-tz');
15
+ var reactRedux = require('react-redux');
16
+ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
17
+ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
18
+ var ReactDOM = require('react-dom');
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 _getClassName__default = /*#__PURE__*/_interopDefaultLegacy(_getClassName);
42
+ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
43
+ var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
44
+ var Timeago__default = /*#__PURE__*/_interopDefaultLegacy(Timeago);
45
+ var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
46
+ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
47
+ var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
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;
@@ -2666,7 +240,7 @@ var getSlug = function getSlug(collection) {
2666
240
  var isSection = collection.template === "section";
2667
241
 
2668
242
  if (isSection) {
2669
- var sectionId = get_1(collection, ["metadata", "section", "0", "id"], "");
243
+ var sectionId = lodash.get(collection, ["metadata", "section", "0", "id"], "");
2670
244
  var sections = config.sections;
2671
245
  var section = sections && sections.find(function (section) {
2672
246
  return section.id === sectionId;
@@ -2682,25 +256,25 @@ function isExternalStory() {
2682
256
  storyTemplate = _story$storyTemplate === void 0 ? "" : _story$storyTemplate,
2683
257
  _story$metadata = story.metadata,
2684
258
  metadata = _story$metadata === void 0 ? {} : _story$metadata;
2685
- return storyTemplate === "news-elsewhere" ? get_1(metadata, ["reference-url"], "") : "";
259
+ return storyTemplate === "news-elsewhere" ? lodash.get(metadata, ["reference-url"], "") : "";
2686
260
  } // Adds target='_blank' attribute to anchor tags if not present
2687
261
  var isEmpty = function isEmpty(value) {
2688
262
  return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
2689
- _typeof(value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
263
+ _typeof__default["default"](value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
2690
264
  };
2691
- PropTypes.shape({
2692
- "sketches-host": PropTypes.string,
2693
- "cdn-name": PropTypes.string,
2694
- "cdn-image": PropTypes.string
265
+ PropTypes__default["default"].shape({
266
+ "sketches-host": PropTypes__default["default"].string,
267
+ "cdn-name": PropTypes__default["default"].string,
268
+ "cdn-image": PropTypes__default["default"].string
2695
269
  });
2696
- PropTypes.shape({
2697
- headline: PropTypes.string,
2698
- "last-published-at": PropTypes.number,
2699
- subheadline: PropTypes.string
270
+ PropTypes__default["default"].shape({
271
+ headline: PropTypes__default["default"].string,
272
+ "last-published-at": PropTypes__default["default"].number,
273
+ subheadline: PropTypes__default["default"].string
2700
274
  });
2701
275
  var getStoryUrl = function getStoryUrl(story) {
2702
276
  var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
2703
- return get_1(story, ["story-template"]) === "news-elsewhere" ? get_1(story, ["metadata", "reference-url"], "") : story.url || defaultValue;
277
+ return lodash.get(story, ["story-template"]) === "news-elsewhere" ? lodash.get(story, ["metadata", "reference-url"], "") : story.url || defaultValue;
2704
278
  };
2705
279
  var navigateTo = function navigateTo(dispatch) {
2706
280
  var url = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
@@ -2740,17 +314,17 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
2740
314
  var timezone = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
2741
315
 
2742
316
  if (timezone && template === "story") {
2743
- var zonedTime = timezone && utcToZonedTime(date, timezone);
2744
- var formatZonedTime = zonedTime && format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
317
+ var zonedTime = timezone && dateFnsTz.utcToZonedTime(date, timezone);
318
+ var formatZonedTime = zonedTime && dateFnsTz.format(zonedTime, "yyyy-MM-dd'T'HH:mm:ssXXX", {
2745
319
  timeZone: timezone
2746
320
  });
2747
321
  var timeStamp = timestampToFormat("", "", "", date, config);
2748
- return /*#__PURE__*/React.createElement("time", {
322
+ return /*#__PURE__*/React__default["default"].createElement("time", {
2749
323
  dateTime: formatZonedTime
2750
324
  }, timeStamp);
2751
325
  }
2752
326
 
2753
- return /*#__PURE__*/React.createElement(Timeago, {
327
+ return /*#__PURE__*/React__default["default"].createElement(Timeago__default["default"], {
2754
328
  date: date,
2755
329
  formatter: function formatter(value, unit, suffix, date) {
2756
330
  return _formatter(value, unit, suffix, date, config);
@@ -2764,7 +338,7 @@ var CrownIcon = function CrownIcon(_ref) {
2764
338
  _ref$color = _ref.color,
2765
339
  color = _ref$color === void 0 ? "#D8D8D8" : _ref$color,
2766
340
  positionTop = _ref.positionTop;
2767
- return /*#__PURE__*/React.createElement("svg", {
341
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2768
342
  xmlns: "http://www.w3.org/2000/svg",
2769
343
  width: width,
2770
344
  height: height,
@@ -2773,28 +347,28 @@ var CrownIcon = function CrownIcon(_ref) {
2773
347
  position: "relative",
2774
348
  top: positionTop
2775
349
  }
2776
- }, /*#__PURE__*/React.createElement("g", {
350
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2777
351
  fill: "none",
2778
352
  fillRule: "evenodd",
2779
353
  stroke: "none",
2780
354
  strokeWidth: "1"
2781
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
355
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
2782
356
  transform: "translate(8 8)"
2783
- }, /*#__PURE__*/React.createElement("path", {
357
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2784
358
  d: "M0 0H24V24H0z"
2785
- }), /*#__PURE__*/React.createElement("g", {
359
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
2786
360
  fill: color,
2787
361
  fillRule: "nonzero",
2788
362
  transform: "translate(0 2)"
2789
- }, /*#__PURE__*/React.createElement("path", {
363
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2790
364
  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"
2791
365
  }))))));
2792
366
  };
2793
367
  CrownIcon.propTypes = {
2794
- height: PropTypes.string,
2795
- width: PropTypes.string,
2796
- color: PropTypes.string,
2797
- positionTop: PropTypes.string
368
+ height: PropTypes__default["default"].string,
369
+ width: PropTypes__default["default"].string,
370
+ color: PropTypes__default["default"].string,
371
+ positionTop: PropTypes__default["default"].string
2798
372
  };
2799
373
 
2800
374
  var KeyIcon = function KeyIcon(_ref) {
@@ -2803,7 +377,7 @@ var KeyIcon = function KeyIcon(_ref) {
2803
377
  _ref$color = _ref.color,
2804
378
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
2805
379
  positionTop = _ref.positionTop;
2806
- return /*#__PURE__*/React.createElement("svg", {
380
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2807
381
  xmlns: "http://www.w3.org/2000/svg",
2808
382
  width: width,
2809
383
  height: height,
@@ -2812,16 +386,16 @@ var KeyIcon = function KeyIcon(_ref) {
2812
386
  position: "relative",
2813
387
  top: positionTop
2814
388
  }
2815
- }, /*#__PURE__*/React.createElement("g", {
389
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2816
390
  fill: "none",
2817
391
  fillRule: "evenodd",
2818
392
  stroke: "none",
2819
393
  strokeWidth: "1"
2820
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
394
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
2821
395
  transform: "translate(8 8)"
2822
- }, /*#__PURE__*/React.createElement("path", {
396
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2823
397
  d: "M0 0H24V24H0z"
2824
- }), /*#__PURE__*/React.createElement("path", {
398
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
2825
399
  fill: color,
2826
400
  fillRule: "nonzero",
2827
401
  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",
@@ -2829,10 +403,10 @@ var KeyIcon = function KeyIcon(_ref) {
2829
403
  })))));
2830
404
  };
2831
405
  KeyIcon.propTypes = {
2832
- height: PropTypes.string,
2833
- width: PropTypes.string,
2834
- color: PropTypes.string,
2835
- positionTop: PropTypes.string
406
+ height: PropTypes__default["default"].string,
407
+ width: PropTypes__default["default"].string,
408
+ color: PropTypes__default["default"].string,
409
+ positionTop: PropTypes__default["default"].string
2836
410
  };
2837
411
 
2838
412
  var LockIcon = function LockIcon(_ref) {
@@ -2841,7 +415,7 @@ var LockIcon = function LockIcon(_ref) {
2841
415
  _ref$color = _ref.color,
2842
416
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
2843
417
  positionTop = _ref.positionTop;
2844
- return /*#__PURE__*/React.createElement("svg", {
418
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2845
419
  xmlns: "http://www.w3.org/2000/svg",
2846
420
  width: width,
2847
421
  height: height,
@@ -2850,28 +424,28 @@ var LockIcon = function LockIcon(_ref) {
2850
424
  position: "relative",
2851
425
  top: positionTop
2852
426
  }
2853
- }, /*#__PURE__*/React.createElement("g", {
427
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2854
428
  fill: "none",
2855
429
  fillRule: "evenodd",
2856
430
  stroke: "none",
2857
431
  strokeWidth: "1"
2858
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
432
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
2859
433
  transform: "translate(8 8)"
2860
- }, /*#__PURE__*/React.createElement("path", {
434
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2861
435
  d: "M0 0H24V24H0z"
2862
- }), /*#__PURE__*/React.createElement("g", {
436
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
2863
437
  fill: color,
2864
438
  fillRule: "nonzero",
2865
439
  transform: "translate(3)"
2866
- }, /*#__PURE__*/React.createElement("path", {
440
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2867
441
  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"
2868
442
  }))))));
2869
443
  };
2870
444
  LockIcon.propTypes = {
2871
- height: PropTypes.string,
2872
- width: PropTypes.string,
2873
- color: PropTypes.string,
2874
- positionTop: PropTypes.string
445
+ height: PropTypes__default["default"].string,
446
+ width: PropTypes__default["default"].string,
447
+ color: PropTypes__default["default"].string,
448
+ positionTop: PropTypes__default["default"].string
2875
449
  };
2876
450
 
2877
451
  var StarIcon = function StarIcon(_ref) {
@@ -2881,7 +455,7 @@ var StarIcon = function StarIcon(_ref) {
2881
455
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
2882
456
  _ref$positionTop = _ref.positionTop,
2883
457
  positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
2884
- return /*#__PURE__*/React.createElement("svg", {
458
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2885
459
  xmlns: "http://www.w3.org/2000/svg",
2886
460
  width: width,
2887
461
  height: height,
@@ -2890,21 +464,21 @@ var StarIcon = function StarIcon(_ref) {
2890
464
  position: "relative",
2891
465
  top: positionTop
2892
466
  }
2893
- }, /*#__PURE__*/React.createElement("g", {
467
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2894
468
  fill: "none",
2895
469
  fillRule: "evenodd",
2896
470
  stroke: "none",
2897
471
  strokeWidth: "1"
2898
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
472
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
2899
473
  fill: color,
2900
474
  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"
2901
475
  }))));
2902
476
  };
2903
477
  StarIcon.propTypes = {
2904
- height: PropTypes.string,
2905
- width: PropTypes.string,
2906
- color: PropTypes.string,
2907
- positionTop: PropTypes.string
478
+ height: PropTypes__default["default"].string,
479
+ width: PropTypes__default["default"].string,
480
+ color: PropTypes__default["default"].string,
481
+ positionTop: PropTypes__default["default"].string
2908
482
  };
2909
483
 
2910
484
  var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
@@ -2916,7 +490,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
2916
490
 
2917
491
  switch (iconType) {
2918
492
  case "crown":
2919
- return /*#__PURE__*/React.createElement(CrownIcon, {
493
+ return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
2920
494
  width: width,
2921
495
  height: height,
2922
496
  color: color,
@@ -2924,7 +498,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
2924
498
  });
2925
499
 
2926
500
  case "lock":
2927
- return /*#__PURE__*/React.createElement(LockIcon, {
501
+ return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
2928
502
  width: width,
2929
503
  height: height,
2930
504
  color: color,
@@ -2932,7 +506,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
2932
506
  });
2933
507
 
2934
508
  case "key":
2935
- return /*#__PURE__*/React.createElement(KeyIcon, {
509
+ return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
2936
510
  width: width,
2937
511
  height: height,
2938
512
  color: color,
@@ -2940,7 +514,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
2940
514
  });
2941
515
 
2942
516
  default:
2943
- return /*#__PURE__*/React.createElement(StarIcon, {
517
+ return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
2944
518
  width: width,
2945
519
  height: height,
2946
520
  color: color,
@@ -2949,21 +523,21 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
2949
523
  }
2950
524
  };
2951
525
  PremiumStoryIcon.propTypes = {
2952
- width: PropTypes.string,
2953
- height: PropTypes.string,
2954
- color: PropTypes.string,
2955
- iconType: PropTypes.string,
2956
- positionTop: PropTypes.string
526
+ width: PropTypes__default["default"].string,
527
+ height: PropTypes__default["default"].string,
528
+ color: PropTypes__default["default"].string,
529
+ iconType: PropTypes__default["default"].string,
530
+ positionTop: PropTypes__default["default"].string
2957
531
  };
2958
532
 
2959
533
  function LiveIcon() {
2960
- return /*#__PURE__*/React.createElement("svg", {
534
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2961
535
  className: "live-icon",
2962
536
  xmlns: "http://www.w3.org/2000/svg",
2963
537
  width: "25",
2964
538
  height: "24",
2965
539
  viewBox: "0 0 25 24"
2966
- }, /*#__PURE__*/React.createElement("path", {
540
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2967
541
  fill: "#ff5858",
2968
542
  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"
2969
543
  }));
@@ -2992,8 +566,8 @@ var Headline = function Headline(_ref) {
2992
566
  enablePremiumStoryIcon = _premiumStoryIconConf3 === void 0 ? false : _premiumStoryIconConf3,
2993
567
  _premiumStoryIconConf4 = premiumStoryIconConfig.showLiveIcon,
2994
568
  showLiveIcon = _premiumStoryIconConf4 === void 0 ? false : _premiumStoryIconConf4;
2995
- var alternateHeadline = get_1(story, ["alternative", "home", "default", "headline"]);
2996
- var premiumStory = enablePremiumStoryIcon && get_1(story, ["access"]) === "subscription";
569
+ var alternateHeadline = lodash.get(story, ["alternative", "home", "default", "headline"]);
570
+ var premiumStory = enablePremiumStoryIcon && lodash.get(story, ["access"]) === "subscription";
2997
571
  var headline = alternateHeadline || story.headline;
2998
572
  var HeaderTag = "h" + headerLevel;
2999
573
 
@@ -3019,38 +593,38 @@ var Headline = function Headline(_ref) {
3019
593
  var textColor = getTextColor(configData.theme);
3020
594
  var wrapperClass = premiumStory ? "wrapper" : "";
3021
595
  var iconSize = "24px";
3022
- var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
3023
- return /*#__PURE__*/React.createElement("div", {
596
+ var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !lodash.get(story, ["metadata", "is-closed"], false);
597
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3024
598
  "data-test-id": "headline",
3025
- className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$d)
3026
- }, premiumStory && /*#__PURE__*/React.createElement(PremiumStoryIcon, {
599
+ className: "arrow-component arr--headline " + _getClassName__default["default"](wrapperClass, _styleModuleImportMap$d)
600
+ }, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
3027
601
  width: iconSize,
3028
602
  height: iconSize,
3029
603
  color: iconColor,
3030
604
  iconType: iconStyle,
3031
605
  positionTop: positionHeadline()
3032
- }), isLink ? /*#__PURE__*/React.createElement(Link, {
606
+ }), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
3033
607
  href: getStoryUrl(story, "/".concat(story.slug)),
3034
608
  externalLink: isExternalStory(story),
3035
609
  "aria-label": "headline"
3036
- }, /*#__PURE__*/React.createElement(HeaderTag, {
3037
- className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$d)
3038
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline)) : /*#__PURE__*/React.createElement(HeaderTag, {
3039
- className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$d)
3040
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline));
610
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
611
+ className: _getClassName__default["default"]("headline ".concat(textColor), _styleModuleImportMap$d)
612
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
613
+ className: _getClassName__default["default"]("headline ".concat(textColor), _styleModuleImportMap$d)
614
+ }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
3041
615
  };
3042
616
  Headline.propTypes = {
3043
617
  /** The Story Object from the API response */
3044
- story: PropTypes.object.isRequired,
618
+ story: PropTypes__default["default"].object.isRequired,
3045
619
 
3046
620
  /** Header tags ranging h1-h6, where h[headerLevel] */
3047
- headerLevel: PropTypes.string,
3048
- premiumStoryIconConfig: PropTypes.shape({
3049
- iconColor: PropTypes.string,
3050
- iconType: PropTypes.string,
3051
- enablePremiumStoryIcon: PropTypes.bool
621
+ headerLevel: PropTypes__default["default"].string,
622
+ premiumStoryIconConfig: PropTypes__default["default"].shape({
623
+ iconColor: PropTypes__default["default"].string,
624
+ iconType: PropTypes__default["default"].string,
625
+ enablePremiumStoryIcon: PropTypes__default["default"].bool
3052
626
  }),
3053
- isLink: PropTypes.bool
627
+ isLink: PropTypes__default["default"].bool
3054
628
  };
3055
629
  Headline.defaultProps = {
3056
630
  headerLevel: "6",
@@ -3074,28 +648,28 @@ var Subheadline = function Subheadline(_ref) {
3074
648
  forceShowAtom = _ref.forceShowAtom,
3075
649
  showFullContent = _ref.showFullContent;
3076
650
  var config = useStateValue() || {};
3077
- var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
651
+ var subheadline = forceShowAtom || lodash.get(config, ["showSubheadline"], true);
3078
652
  if (!subheadline) return null;
3079
653
  var textColor = getTextColor(config.theme);
3080
- return /*#__PURE__*/React.createElement("div", {
654
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3081
655
  style: {
3082
656
  WebkitLineClamp: lineClamp
3083
657
  },
3084
658
  "data-test-id": "subheadline",
3085
- className: ("p-alt arr--sub-headline arrow-component ".concat(clazzName) ? "p-alt arr--sub-headline arrow-component ".concat(clazzName) + " " : "") + _getClassName("subheadline ".concat(textColor), _styleModuleImportMap$c)
659
+ 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$c)
3086
660
  }, showFullContent || typeof lineClamp === "number" ? story.subheadline : truncate(story.subheadline, truncateChars, true));
3087
661
  };
3088
662
  Subheadline.propTypes = {
3089
663
  /** The Story Object from the API response */
3090
- story: PropTypes.object.isRequired,
664
+ story: PropTypes__default["default"].object.isRequired,
3091
665
  // Restricts the number of lines for subheadline.
3092
- lineClamp: PropTypes.number,
666
+ lineClamp: PropTypes__default["default"].number,
3093
667
 
3094
668
  /** Number of characters to truncate the subheadline */
3095
- truncateChars: PropTypes.number,
3096
- clazzName: PropTypes.string,
3097
- forceShowAtom: PropTypes.bool,
3098
- showFullContent: PropTypes.bool
669
+ truncateChars: PropTypes__default["default"].number,
670
+ clazzName: PropTypes__default["default"].string,
671
+ forceShowAtom: PropTypes__default["default"].bool,
672
+ showFullContent: PropTypes__default["default"].bool
3099
673
  };
3100
674
  Subheadline.defaultProps = {
3101
675
  forceShowAtom: false,
@@ -3117,22 +691,22 @@ var TimeStamp = function TimeStamp(_ref) {
3117
691
  _ref$config = _ref.config,
3118
692
  config = _ref$config === void 0 ? {} : _ref$config;
3119
693
  var configState = useStateValue() || {};
3120
- var isTime = get_1(config, ["showTime"], get_1(configState, ["showTime"], true));
694
+ var isTime = lodash.get(config, ["showTime"], lodash.get(configState, ["showTime"], true));
3121
695
  var time = story["last-published-at"] || story["first-published-at"];
3122
696
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3123
697
  var textColor = getTextColor(configState.theme);
3124
- return /*#__PURE__*/React.createElement(React.Fragment, null, isTime && /*#__PURE__*/React.createElement("div", {
698
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
3125
699
  "data-test-id": "publish-time",
3126
- className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$b)
3127
- }, /*#__PURE__*/React.createElement("div", {
700
+ className: "time arr--publish-time " + _getClassName__default["default"]("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$b)
701
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3128
702
  className: "timestamp-m_time-wrapper__3O2lM"
3129
703
  }, getTimeStamp(time, formatter, config))));
3130
704
  };
3131
705
  TimeStamp.propTypes = {
3132
706
  /** The Story Object from the API response */
3133
- story: PropTypes.object,
3134
- isBottom: PropTypes.bool,
3135
- config: PropTypes.object
707
+ story: PropTypes__default["default"].object,
708
+ isBottom: PropTypes__default["default"].bool,
709
+ config: PropTypes__default["default"].object
3136
710
  };
3137
711
 
3138
712
  var _styleModuleImportMap$a = {
@@ -3158,9 +732,9 @@ var AuthorBase = function AuthorBase(_ref) {
3158
732
  _ref$config = _ref.config,
3159
733
  config = _ref$config === void 0 ? {} : _ref$config;
3160
734
  var configData = useStateValue() || {};
3161
- var isAuthor = get_1(configData, ["showAuthor"], true);
735
+ var isAuthor = lodash.get(configData, ["showAuthor"], true);
3162
736
 
3163
- var _get = get_1(story, ["authors", "0"], ""),
737
+ var _get = lodash.get(story, ["authors", "0"], ""),
3164
738
  avatarUrl = _get["avatar-url"],
3165
739
  avatarS3Key = _get["avatar-s3-key"],
3166
740
  authorName = _get.name,
@@ -3168,17 +742,17 @@ var AuthorBase = function AuthorBase(_ref) {
3168
742
 
3169
743
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3170
744
  var textColor = getTextColor(configData.theme);
3171
- var mountAt = get_1(config, ["mountAt"], "");
745
+ var mountAt = lodash.get(config, ["mountAt"], "");
3172
746
 
3173
747
  var authorImage = function authorImage(dir) {
3174
748
  if (!avatarUrl && !avatarS3Key) {
3175
749
  return null;
3176
750
  }
3177
751
 
3178
- return /*#__PURE__*/React.createElement("div", {
752
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3179
753
  "data-test-id": "author-image",
3180
- className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$a)
3181
- }, /*#__PURE__*/React.createElement("figure", null, avatarS3Key ? /*#__PURE__*/React.createElement(ResponsiveImage, {
754
+ className: _getClassName__default["default"]("author-image ".concat(dir, "-image"), _styleModuleImportMap$a)
755
+ }, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
3182
756
  slug: avatarS3Key,
3183
757
  "aspect-ratio": [1, 1],
3184
758
  defaultWidth: 400,
@@ -3186,49 +760,49 @@ var AuthorBase = function AuthorBase(_ref) {
3186
760
  auto: ["format", "compress"]
3187
761
  },
3188
762
  alt: authorName
3189
- }) : /*#__PURE__*/React.createElement("img", {
763
+ }) : /*#__PURE__*/React__default["default"].createElement("img", {
3190
764
  src: avatarUrl
3191
765
  })));
3192
766
  };
3193
767
 
3194
768
  var isPrefix = function isPrefix(dir) {
3195
769
  if (prefix) {
3196
- return /*#__PURE__*/React.createElement("div", {
3197
- className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$a)
770
+ return /*#__PURE__*/React__default["default"].createElement("div", {
771
+ className: "arr-author-prefix " + _getClassName__default["default"]("prefix ".concat(textColor), _styleModuleImportMap$a)
3198
772
  }, prefix);
3199
773
  }
3200
774
 
3201
775
  return !hideAuthorImage && authorImage(dir);
3202
776
  };
3203
777
 
3204
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement(Link, {
778
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
3205
779
  href: "".concat(mountAt, "/author/") + slug,
3206
780
  "aria-label": "author-name",
3207
- className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$a)
3208
- }, isPrefix("ltr"), /*#__PURE__*/React.createElement("div", {
781
+ className: "author-name arr-author-name arrow-component " + _getClassName__default["default"]("author ".concat(isBottomClasses), _styleModuleImportMap$a)
782
+ }, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
3209
783
  "data-test-id": "author-name",
3210
- className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$a)
784
+ className: "author-name " + _getClassName__default["default"]("author-name ".concat(textColor), _styleModuleImportMap$a)
3211
785
  }, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
3212
786
  };
3213
787
 
3214
788
  function mapStateToProps$1(state) {
3215
789
  return {
3216
- config: get_1(state, ["qt", "config"], {})
790
+ config: lodash.get(state, ["qt", "config"], {})
3217
791
  };
3218
792
  }
3219
793
 
3220
- var Author = connect(mapStateToProps$1)(AuthorBase);
794
+ var Author = reactRedux.connect(mapStateToProps$1)(AuthorBase);
3221
795
  AuthorBase.propTypes = {
3222
796
  /** The Story Object from the API response */
3223
- story: PropTypes.object.isRequired,
797
+ story: PropTypes__default["default"].object.isRequired,
3224
798
 
3225
799
  /** Hide Author Avatar Image */
3226
- hideAuthorImage: PropTypes.bool,
800
+ hideAuthorImage: PropTypes__default["default"].bool,
3227
801
  // fix Author bottom of the storyCard
3228
- isBottom: PropTypes.bool,
802
+ isBottom: PropTypes__default["default"].bool,
3229
803
  // fix prefix before the author name
3230
- prefix: PropTypes.string,
3231
- config: PropTypes.object
804
+ prefix: PropTypes__default["default"].string,
805
+ config: PropTypes__default["default"].object
3232
806
  };
3233
807
  AuthorBase.defaultProps = {
3234
808
  hideAuthorImage: false,
@@ -3249,14 +823,14 @@ var Dot = function Dot(_ref) {
3249
823
  height = _ref$height === void 0 ? "3px" : _ref$height,
3250
824
  _ref$color = _ref.color,
3251
825
  color = _ref$color === void 0 ? "light" : _ref$color;
3252
- return /*#__PURE__*/React.createElement("div", {
3253
- className: _getClassName(color, _styleModuleImportMap$9)
3254
- }, /*#__PURE__*/React.createElement("svg", {
826
+ return /*#__PURE__*/React__default["default"].createElement("div", {
827
+ className: _getClassName__default["default"](color, _styleModuleImportMap$9)
828
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
3255
829
  xmlns: "http://www.w3.org/2000/svg",
3256
830
  width: width,
3257
831
  height: height,
3258
832
  viewBox: "0 0 3 3"
3259
- }, /*#__PURE__*/React.createElement("circle", {
833
+ }, /*#__PURE__*/React__default["default"].createElement("circle", {
3260
834
  cx: "87",
3261
835
  cy: "9",
3262
836
  r: "1",
@@ -3267,9 +841,9 @@ var Dot = function Dot(_ref) {
3267
841
  };
3268
842
  Dot.propTypes = {
3269
843
  /** height , width and color of the dot icon */
3270
- color: PropTypes.string,
3271
- width: PropTypes.string,
3272
- height: PropTypes.string
844
+ color: PropTypes__default["default"].string,
845
+ width: PropTypes__default["default"].string,
846
+ height: PropTypes__default["default"].string
3273
847
  };
3274
848
 
3275
849
  var _styleModuleImportMap$8 = {
@@ -3285,22 +859,22 @@ var Divider = function Divider(_ref) {
3285
859
  height = _ref$height === void 0 ? "10" : _ref$height,
3286
860
  _ref$color = _ref.color,
3287
861
  color = _ref$color === void 0 ? "light" : _ref$color;
3288
- return /*#__PURE__*/React.createElement("div", {
3289
- className: _getClassName(color, _styleModuleImportMap$8)
3290
- }, /*#__PURE__*/React.createElement("svg", {
862
+ return /*#__PURE__*/React__default["default"].createElement("div", {
863
+ className: _getClassName__default["default"](color, _styleModuleImportMap$8)
864
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
3291
865
  xmlns: "http://www.w3.org/2000/svg",
3292
866
  width: width,
3293
867
  height: height
3294
- }, /*#__PURE__*/React.createElement("path", {
868
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3295
869
  fill: "inherit",
3296
870
  d: "M0 0h1v10H0z"
3297
871
  })));
3298
872
  };
3299
873
  Divider.propTypes = {
3300
874
  /** height , width and color of the dot icon */
3301
- color: PropTypes.string,
3302
- width: PropTypes.string,
3303
- height: PropTypes.string
875
+ color: PropTypes__default["default"].string,
876
+ width: PropTypes__default["default"].string,
877
+ height: PropTypes__default["default"].string
3304
878
  };
3305
879
 
3306
880
  var _styleModuleImportMap$7 = {
@@ -3318,28 +892,28 @@ var ReadTime = function ReadTime(_ref) {
3318
892
  _ref$isLightTheme = _ref.isLightTheme,
3319
893
  isLightTheme = _ref$isLightTheme === void 0 ? false : _ref$isLightTheme;
3320
894
  var config = useStateValue() || {};
3321
- var showReadTime = get_1(config, ["showReadTime"]) || get_1(opts, ["showReadTime"], true);
3322
- var readTime = get_1(story, ["read-time"], 0);
895
+ var showReadTime = lodash.get(config, ["showReadTime"]) || lodash.get(opts, ["showReadTime"], true);
896
+ var readTime = lodash.get(story, ["read-time"], 0);
3323
897
  var textColor = isLightTheme ? "light" : getTextColor(config.theme);
3324
898
  if (!showReadTime || !readTime) return null;
3325
- var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
3326
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
899
+ var timeToRead = lodash.get(opts, ["localizedTimeToRead"]) || "min read";
900
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3327
901
  "data-test-id": "read-time",
3328
- className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$7)
3329
- }, /*#__PURE__*/React.createElement("span", {
902
+ className: "arrow-component arr--read-time " + _getClassName__default["default"]("read-time-wrapper ".concat(textColor), _styleModuleImportMap$7)
903
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
3330
904
  className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
3331
- }, /*#__PURE__*/React.createElement(Dot, {
905
+ }, /*#__PURE__*/React__default["default"].createElement(Dot, {
3332
906
  color: textColor
3333
- })), /*#__PURE__*/React.createElement("span", null, readTime, " ", timeToRead)));
907
+ })), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
3334
908
  };
3335
909
  ReadTime.propTypes = {
3336
- story: PropTypes.shape({
3337
- "read-time": PropTypes.number
910
+ story: PropTypes__default["default"].shape({
911
+ "read-time": PropTypes__default["default"].number
3338
912
  }),
3339
- opts: PropTypes.shape({
3340
- showReadTime: PropTypes.bool
913
+ opts: PropTypes__default["default"].shape({
914
+ showReadTime: PropTypes__default["default"].bool
3341
915
  }),
3342
- isLightTheme: PropTypes.bool
916
+ isLightTheme: PropTypes__default["default"].bool
3343
917
  };
3344
918
 
3345
919
  var _styleModuleImportMap$6 = {
@@ -3361,42 +935,42 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3361
935
  config = _ref$config === void 0 ? {} : _ref$config,
3362
936
  isLightTheme = _ref.isLightTheme;
3363
937
  var configState = useStateValue() || {};
3364
- var isAuthor = get_1(config, ["showAuthor"], get_1(configState, ["showAuthor"], true));
3365
- var isTime = get_1(config, ["showTime"], get_1(configState, ["showTime"], true));
3366
- var isReadTime = get_1(configState, ["showReadTime"], true);
938
+ var isAuthor = lodash.get(config, ["showAuthor"], lodash.get(configState, ["showAuthor"], true));
939
+ var isTime = lodash.get(config, ["showTime"], lodash.get(configState, ["showTime"], true));
940
+ var isReadTime = lodash.get(configState, ["showReadTime"], true);
3367
941
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3368
942
  var seperatorStyle = separator === "dot" ? "dot" : "dash";
3369
943
  var textColor = isLightTheme ? "light" : getTextColor(configState.theme);
3370
944
 
3371
945
  var getSeparator = function getSeparator() {
3372
946
  if (separator === "divider") {
3373
- return /*#__PURE__*/React.createElement(Divider, {
947
+ return /*#__PURE__*/React__default["default"].createElement(Divider, {
3374
948
  color: textColor
3375
949
  });
3376
950
  }
3377
951
 
3378
- return /*#__PURE__*/React.createElement(Dot, {
952
+ return /*#__PURE__*/React__default["default"].createElement(Dot, {
3379
953
  color: textColor
3380
954
  });
3381
955
  };
3382
956
 
3383
957
  var getTimeStamp = function getTimeStamp() {
3384
958
  if (!isTime) return null;
3385
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement("span", {
3386
- className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$6)
3387
- }, getSeparator()), /*#__PURE__*/React.createElement(TimeStamp, {
959
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
960
+ className: "arr-separator " + _getClassName__default["default"]("".concat(seperatorStyle), _styleModuleImportMap$6)
961
+ }, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
3388
962
  story: story,
3389
963
  config: config
3390
- }), isReadTime && /*#__PURE__*/React.createElement(ReadTime, {
964
+ }), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
3391
965
  story: story,
3392
966
  opts: config,
3393
967
  isLightTheme: isLightTheme
3394
968
  }));
3395
969
  };
3396
970
 
3397
- return /*#__PURE__*/React.createElement("div", {
3398
- className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$6)
3399
- }, isAuthor ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Author, {
971
+ return /*#__PURE__*/React__default["default"].createElement("div", {
972
+ className: "arr--author-time " + _getClassName__default["default"]("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$6)
973
+ }, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
3400
974
  story: story,
3401
975
  isBottom: true,
3402
976
  hideAuthorImage: hideAuthorImage,
@@ -3404,19 +978,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3404
978
  }), getTimeStamp()) : getTimeStamp());
3405
979
  };
3406
980
  AuthorWithTime.propTypes = {
3407
- story: PropTypes.object,
981
+ story: PropTypes__default["default"].object,
3408
982
 
3409
983
  /** Style of separator between the Author & Timestamp */
3410
- separator: PropTypes.oneOf(["dot", "divider"]),
984
+ separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
3411
985
 
3412
986
  /** hide the author image */
3413
- hideAuthorImage: PropTypes.bool,
987
+ hideAuthorImage: PropTypes__default["default"].bool,
3414
988
  // fix author and time at the end
3415
- isBottom: PropTypes.bool,
989
+ isBottom: PropTypes__default["default"].bool,
3416
990
  // fix prefix before the author name
3417
- prefix: PropTypes.string,
3418
- config: PropTypes.object,
3419
- isLightTheme: PropTypes.bool
991
+ prefix: PropTypes__default["default"].string,
992
+ config: PropTypes__default["default"].object,
993
+ isLightTheme: PropTypes__default["default"].bool
3420
994
  };
3421
995
  AuthorWithTime.defaultProps = {
3422
996
  separator: "dot",
@@ -3426,67 +1000,6 @@ AuthorWithTime.defaultProps = {
3426
1000
  isLightTheme: false
3427
1001
  };
3428
1002
 
3429
- function _arrayWithHoles(arr) {
3430
- if (Array.isArray(arr)) return arr;
3431
- }
3432
-
3433
- function _iterableToArrayLimit(arr, i) {
3434
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
3435
-
3436
- if (_i == null) return;
3437
- var _arr = [];
3438
- var _n = true;
3439
- var _d = false;
3440
-
3441
- var _s, _e;
3442
-
3443
- try {
3444
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
3445
- _arr.push(_s.value);
3446
-
3447
- if (i && _arr.length === i) break;
3448
- }
3449
- } catch (err) {
3450
- _d = true;
3451
- _e = err;
3452
- } finally {
3453
- try {
3454
- if (!_n && _i["return"] != null) _i["return"]();
3455
- } finally {
3456
- if (_d) throw _e;
3457
- }
3458
- }
3459
-
3460
- return _arr;
3461
- }
3462
-
3463
- function _arrayLikeToArray(arr, len) {
3464
- if (len == null || len > arr.length) len = arr.length;
3465
-
3466
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
3467
- arr2[i] = arr[i];
3468
- }
3469
-
3470
- return arr2;
3471
- }
3472
-
3473
- function _unsupportedIterableToArray(o, minLen) {
3474
- if (!o) return;
3475
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
3476
- var n = Object.prototype.toString.call(o).slice(8, -1);
3477
- if (n === "Object" && o.constructor) n = o.constructor.name;
3478
- if (n === "Map" || n === "Set") return Array.from(o);
3479
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
3480
- }
3481
-
3482
- function _nonIterableRest() {
3483
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3484
- }
3485
-
3486
- function _slicedToArray(arr, i) {
3487
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
3488
- }
3489
-
3490
1003
  var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
3491
1004
  var _ref$width = _ref.width,
3492
1005
  width = _ref$width === void 0 ? 40 : _ref$width,
@@ -3494,27 +1007,27 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
3494
1007
  height = _ref$height === void 0 ? 30 : _ref$height,
3495
1008
  _ref$iconColor = _ref.iconColor,
3496
1009
  iconColor = _ref$iconColor === void 0 ? "#99B0CB" : _ref$iconColor;
3497
- return /*#__PURE__*/React.createElement("svg", {
1010
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3498
1011
  width: width,
3499
1012
  height: height,
3500
1013
  viewBox: "0 0 102 76",
3501
1014
  version: "1.1"
3502
- }, /*#__PURE__*/React.createElement("g", {
1015
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3503
1016
  id: "demo-home-copy",
3504
1017
  stroke: "none",
3505
1018
  strokeWidth: "1",
3506
1019
  fill: "none",
3507
1020
  fillRule: "evenodd",
3508
1021
  transform: "translate(-377.000000, -314.000000)"
3509
- }, /*#__PURE__*/React.createElement("g", {
1022
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3510
1023
  id: "Group-13",
3511
1024
  transform: "translate(377.000000, 314.000000)"
3512
- }, /*#__PURE__*/React.createElement("path", {
1025
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3513
1026
  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",
3514
1027
  id: "Combined-Shape",
3515
1028
  fill: iconColor,
3516
1029
  fillRule: "nonzero"
3517
- }), /*#__PURE__*/React.createElement("rect", {
1030
+ }), /*#__PURE__*/React__default["default"].createElement("rect", {
3518
1031
  id: "Rectangle-19",
3519
1032
  stroke: iconColor,
3520
1033
  strokeWidth: "3",
@@ -3526,24 +1039,24 @@ var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
3526
1039
  }))));
3527
1040
  };
3528
1041
  ImageFallbackIcon.propTypes = {
3529
- width: PropTypes.object,
3530
- height: PropTypes.object,
3531
- iconColor: PropTypes.object
1042
+ width: PropTypes__default["default"].object,
1043
+ height: PropTypes__default["default"].object,
1044
+ iconColor: PropTypes__default["default"].object
3532
1045
  };
3533
1046
 
3534
1047
  var imageFallback = function imageFallback() {
3535
- return /*#__PURE__*/React.createElement("div", {
1048
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3536
1049
  className: "arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"
3537
- }, /*#__PURE__*/React.createElement("figure", {
1050
+ }, /*#__PURE__*/React__default["default"].createElement("figure", {
3538
1051
  className: "arr--fallback-svg fallback-m_fallback-svg__tK9fL"
3539
- }, /*#__PURE__*/React.createElement(ImageFallbackIcon, null)));
1052
+ }, /*#__PURE__*/React__default["default"].createElement(ImageFallbackIcon, null)));
3540
1053
  };
3541
1054
 
3542
1055
  var FallbackImage = function FallbackImage(_ref) {
3543
1056
  var slug = _ref.slug;
3544
1057
 
3545
1058
  if (slug) {
3546
- return /*#__PURE__*/React.createElement(Link, {
1059
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3547
1060
  href: slug,
3548
1061
  "aria-label": "image-fallback"
3549
1062
  }, imageFallback());
@@ -3552,23 +1065,23 @@ var FallbackImage = function FallbackImage(_ref) {
3552
1065
  }
3553
1066
  };
3554
1067
  FallbackImage.propTypes = {
3555
- slug: PropTypes.string
1068
+ slug: PropTypes__default["default"].string
3556
1069
  };
3557
1070
 
3558
1071
  var HyperLinkIcon = function HyperLinkIcon() {
3559
- return /*#__PURE__*/React.createElement("svg", {
1072
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3560
1073
  xmlns: "http://www.w3.org/2000/svg",
3561
1074
  width: "36",
3562
1075
  height: "28"
3563
- }, /*#__PURE__*/React.createElement("g", {
1076
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3564
1077
  fill: "none",
3565
1078
  fillRule: "evenodd"
3566
- }, /*#__PURE__*/React.createElement("rect", {
1079
+ }, /*#__PURE__*/React__default["default"].createElement("rect", {
3567
1080
  width: "36",
3568
1081
  height: "28",
3569
1082
  fill: "#3D6FCF",
3570
1083
  rx: "4"
3571
- }), /*#__PURE__*/React.createElement("path", {
1084
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
3572
1085
  stroke: "#FFF",
3573
1086
  strokeLinecap: "round",
3574
1087
  strokeLinejoin: "round",
@@ -3581,16 +1094,16 @@ var HyperLink = function HyperLink(_ref) {
3581
1094
  var _ref$hyperLink = _ref.hyperLink,
3582
1095
  hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
3583
1096
  if (!hyperLink) return null;
3584
- return /*#__PURE__*/React.createElement(Link, {
1097
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3585
1098
  href: hyperLink,
3586
1099
  "aria-label": "hyperlink-button",
3587
1100
  className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
3588
1101
  target: "_blank",
3589
1102
  rel: "noopener noreferrer"
3590
- }, /*#__PURE__*/React.createElement(HyperLinkIcon, null));
1103
+ }, /*#__PURE__*/React__default["default"].createElement(HyperLinkIcon, null));
3591
1104
  };
3592
1105
  HyperLink.propTypes = {
3593
- hyperLink: PropTypes.string
1106
+ hyperLink: PropTypes__default["default"].string
3594
1107
  };
3595
1108
 
3596
1109
  var _styleModuleImportMap$5 = {
@@ -3626,8 +1139,8 @@ var HeroImage = function HeroImage(_ref) {
3626
1139
  StoryTemplateIcon = _config$StoryTemplate === void 0 ? function () {
3627
1140
  return null;
3628
1141
  } : _config$StoryTemplate;
3629
- var showImagePlaceholder = useSelector(function (state) {
3630
- return get_1(state, ["qt", "config", "showPlaceholder"]);
1142
+ var showImagePlaceholder = reactRedux.useSelector(function (state) {
1143
+ return lodash.get(state, ["qt", "config", "showPlaceholder"]);
3631
1144
  });
3632
1145
  var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
3633
1146
  var fullBleed = FullBleed ? "" : "with-padding";
@@ -3636,7 +1149,7 @@ var HeroImage = function HeroImage(_ref) {
3636
1149
  var heroImageMobClasses = isHorizontalMobile ? "right-padding-mob" : "";
3637
1150
 
3638
1151
  var getPadding = function getPadding(aspectRatio) {
3639
- var _aspectRatio = _slicedToArray(aspectRatio, 2),
1152
+ var _aspectRatio = _slicedToArray__default["default"](aspectRatio, 2),
3640
1153
  height = _aspectRatio[0],
3641
1154
  width = _aspectRatio[1];
3642
1155
 
@@ -3648,7 +1161,7 @@ var HeroImage = function HeroImage(_ref) {
3648
1161
  return 0;
3649
1162
  };
3650
1163
 
3651
- var _aspectRatio2 = _slicedToArray(aspectRatio, 2),
1164
+ var _aspectRatio2 = _slicedToArray__default["default"](aspectRatio, 2),
3652
1165
  mobileAspectRatio = _aspectRatio2[0],
3653
1166
  _aspectRatio2$ = _aspectRatio2[1],
3654
1167
  desktopAspectRatio = _aspectRatio2$ === void 0 ? mobileAspectRatio : _aspectRatio2$;
@@ -3656,43 +1169,43 @@ var HeroImage = function HeroImage(_ref) {
3656
1169
  var isMobile = clientWidth("mobile");
3657
1170
  var imageAspectRatio = isMobile ? mobileAspectRatio : desktopAspectRatio;
3658
1171
  var imagePadding = isMobile ? getPadding(mobileAspectRatio) : getPadding(desktopAspectRatio);
3659
- var slug = get_1(story, ["hero-image-s3-key"]) || get_1(story, ["alternative", "home", "default", "hero-image", "hero-image-s3-key"]);
3660
- var hyperLink = get_1(story, ["hero-image-hyperlink"], "");
1172
+ var slug = lodash.get(story, ["hero-image-s3-key"]) || lodash.get(story, ["alternative", "home", "default", "hero-image", "hero-image-s3-key"]);
1173
+ var hyperLink = lodash.get(story, ["hero-image-hyperlink"], "");
3661
1174
 
3662
1175
  var fallbackImage = function fallbackImage() {
3663
1176
  if (!slug) {
3664
1177
  if (fallbackImageUrl && !isStoryPageImage) {
3665
- return /*#__PURE__*/React.createElement("figure", {
1178
+ return /*#__PURE__*/React__default["default"].createElement("figure", {
3666
1179
  style: {
3667
1180
  paddingTop: imagePadding + "%"
3668
1181
  },
3669
- className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$5)
3670
- }, /*#__PURE__*/React.createElement("img", {
1182
+ className: "arr--responsive-hero-image " + _getClassName__default["default"]("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$5)
1183
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
3671
1184
  className: "qt-image",
3672
1185
  "data-src": "".concat(fallbackImageUrl),
3673
1186
  alt: "image-fallback"
3674
1187
  }));
3675
1188
  }
3676
1189
 
3677
- return /*#__PURE__*/React.createElement(React.Fragment, null, defaultFallback ? /*#__PURE__*/React.createElement("div", {
1190
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, defaultFallback ? /*#__PURE__*/React__default["default"].createElement("div", {
3678
1191
  "data-test-id": "arr--fallback-hero-image",
3679
1192
  style: {
3680
1193
  paddingTop: imagePadding + "%"
3681
1194
  },
3682
- className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$5)
3683
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
1195
+ className: "arr--fallback-hero-image " + _getClassName__default["default"]("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$5)
1196
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3684
1197
  storyTemplate: story["story-template"]
3685
- }), /*#__PURE__*/React.createElement(FallbackImage, null)) : null);
1198
+ }), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
3686
1199
  }
3687
1200
 
3688
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("figure", {
1201
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("figure", {
3689
1202
  style: {
3690
1203
  paddingTop: imagePadding + "%"
3691
1204
  },
3692
- className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$5)
3693
- }, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
1205
+ className: "arr--responsive-hero-image " + _getClassName__default["default"]("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$5)
1206
+ }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3694
1207
  storyTemplate: story["story-template"]
3695
- }), /*#__PURE__*/React.createElement(ResponsiveHeroImage, {
1208
+ }), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
3696
1209
  story: story,
3697
1210
  aspectRatio: imageAspectRatio,
3698
1211
  defaultWidth: defaultWidth,
@@ -3701,48 +1214,48 @@ var HeroImage = function HeroImage(_ref) {
3701
1214
  auto: ["format", "compress"],
3702
1215
  fit: "max"
3703
1216
  }
3704
- })), isStoryPageImage && hyperLink && /*#__PURE__*/React.createElement(HyperLink, {
1217
+ })), isStoryPageImage && hyperLink && /*#__PURE__*/React__default["default"].createElement(HyperLink, {
3705
1218
  hyperLink: hyperLink
3706
1219
  }));
3707
1220
  };
3708
1221
 
3709
- return story && (isStoryPageImage ? /*#__PURE__*/React.createElement("div", {
1222
+ return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
3710
1223
  "data-test-id": "arr--hero-image",
3711
- className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$5)
3712
- }, fallbackImage()) : /*#__PURE__*/React.createElement(Link, {
1224
+ className: "arr--hero-image " + _getClassName__default["default"]("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$5)
1225
+ }, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
3713
1226
  "data-test-id": "arr--hero-image",
3714
1227
  href: getStoryUrl(story, "/".concat(story.slug)),
3715
1228
  externalLink: isExternalStory(story),
3716
1229
  "aria-label": "fallback-hero-image",
3717
- className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$5)
1230
+ className: "arr--hero-image " + _getClassName__default["default"]("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$5)
3718
1231
  }, fallbackImage()));
3719
1232
  };
3720
1233
  HeroImage.propTypes = {
3721
1234
  /** The Story Object from the API response */
3722
- story: PropTypes.object.isRequired,
1235
+ story: PropTypes__default["default"].object.isRequired,
3723
1236
 
3724
1237
  /** Removes the Hero Image padding for the image to bleed over the margin */
3725
- FullBleed: PropTypes.bool,
1238
+ FullBleed: PropTypes__default["default"].bool,
3726
1239
 
3727
1240
  /** The default width for the image, in case the browser does not support srcset */
3728
- defaultWidth: PropTypes.number,
1241
+ defaultWidth: PropTypes__default["default"].number,
3729
1242
 
3730
1243
  /** The list of available widths */
3731
- widths: PropTypes.array,
1244
+ widths: PropTypes__default["default"].array,
3732
1245
  // fatch the correct hero image
3733
- aspectRatio: PropTypes.array,
1246
+ aspectRatio: PropTypes__default["default"].array,
3734
1247
  // Hints for the browser to choose the best size
3735
1248
 
3736
1249
  /** This prop is responsible for adding padding-right of the image and remove padding bottom of the image */
3737
- isHorizontal: PropTypes.bool,
1250
+ isHorizontal: PropTypes__default["default"].bool,
3738
1251
 
3739
1252
  /** This prop is responsible for adding padding-bottom in desktop and padding-right in mobile */
3740
- isHorizontalMobile: PropTypes.bool,
1253
+ isHorizontalMobile: PropTypes__default["default"].bool,
3741
1254
  // this prop is responsive for rendering fallback image on story page
3742
- defaultFallback: PropTypes.bool,
3743
- isHorizontalWithImageLast: PropTypes.bool,
3744
- isStoryPageImage: PropTypes.bool,
3745
- config: PropTypes.object
1255
+ defaultFallback: PropTypes__default["default"].bool,
1256
+ isHorizontalWithImageLast: PropTypes__default["default"].bool,
1257
+ isStoryPageImage: PropTypes__default["default"].bool,
1258
+ config: PropTypes__default["default"].object
3746
1259
  };
3747
1260
  HeroImage.defaultProps = {
3748
1261
  FullBleed: true,
@@ -3777,9 +1290,9 @@ var SectionTag = function SectionTag(_ref) {
3777
1290
  borderColor = _ref$borderColor === void 0 ? "" : _ref$borderColor,
3778
1291
  isLightTheme = _ref.isLightTheme;
3779
1292
  var config = useStateValue() || {};
3780
- var isSection = get_1(config, ["showSection"], true);
3781
- var templateFromRowContext = get_1(config, ["sectionTagTemplate"]);
3782
- var section = get_1(story, ["sections", 0], "");
1293
+ var isSection = lodash.get(config, ["showSection"], true);
1294
+ var templateFromRowContext = lodash.get(config, ["sectionTagTemplate"]);
1295
+ var section = lodash.get(story, ["sections", 0], "");
3783
1296
  var supportedTemplates = ["borderBottomSml", "borderLeft", "solid"];
3784
1297
  var getUrl = section ? section["section-url"] : "/";
3785
1298
  var colorToApplyContrast = template === "solid" || templateFromRowContext === "solid" ? borderColor : config.theme;
@@ -3792,22 +1305,22 @@ var SectionTag = function SectionTag(_ref) {
3792
1305
  }
3793
1306
 
3794
1307
  if (!isSection) return null;
3795
- return /*#__PURE__*/React.createElement(Link, {
1308
+ return /*#__PURE__*/React__default["default"].createElement(components.Link, {
3796
1309
  href: getUrl,
3797
1310
  className: "arrow-component arr--section-name",
3798
1311
  "aria-label": "section-name"
3799
- }, /*#__PURE__*/React.createElement("div", {
1312
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3800
1313
  "data-test-id": "sectionTag",
3801
1314
  style: {
3802
1315
  backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
3803
1316
  },
3804
- className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$4)
3805
- }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React.createElement("span", {
1317
+ className: "section-tag arrow-component " + _getClassName__default["default"]("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$4)
1318
+ }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
3806
1319
  className: "section-m_border-left__2oUyp",
3807
1320
  style: {
3808
1321
  color: sectionTagBorderColor
3809
1322
  }
3810
- }), section["display-name"] || section["name"], /*#__PURE__*/React.createElement("div", {
1323
+ }), section["display-name"] || section["name"], /*#__PURE__*/React__default["default"].createElement("div", {
3811
1324
  className: "section-m_border-bottom__3cRoD",
3812
1325
  style: {
3813
1326
  backgroundColor: "".concat(template === "solid" ? "" : sectionTagBorderColor)
@@ -3816,13 +1329,13 @@ var SectionTag = function SectionTag(_ref) {
3816
1329
  };
3817
1330
  SectionTag.propTypes = {
3818
1331
  /** The Story Object from the API response */
3819
- story: PropTypes.object.isRequired,
1332
+ story: PropTypes__default["default"].object.isRequired,
3820
1333
 
3821
1334
  /** The style template for section tag */
3822
- template: PropTypes.oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
3823
- borderColor: PropTypes.string,
3824
- solidBorderColor: PropTypes.string,
3825
- isLightTheme: PropTypes.bool
1335
+ template: PropTypes__default["default"].oneOf(["", "borderBottomSml", "borderLeft", "solid"]),
1336
+ borderColor: PropTypes__default["default"].string,
1337
+ solidBorderColor: PropTypes__default["default"].string,
1338
+ isLightTheme: PropTypes__default["default"].bool
3826
1339
  };
3827
1340
  SectionTag.defaultProps = {
3828
1341
  template: "",
@@ -3871,7 +1384,7 @@ var StoryCard = function StoryCard(_ref) {
3871
1384
  prefix = _ref.prefix,
3872
1385
  config = _ref.config,
3873
1386
  isHorizontalWithImageLast = _ref.isHorizontalWithImageLast;
3874
- if (!story || isEmpty(story)) return /*#__PURE__*/React.createElement("div", null);
1387
+ if (!story || isEmpty(story)) return /*#__PURE__*/React__default["default"].createElement("div", null);
3875
1388
  var borderOptions = ["default", "full", "bottom", "boxShadow"];
3876
1389
  var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : ""; // TODO optimize conditions
3877
1390
 
@@ -3881,7 +1394,7 @@ var StoryCard = function StoryCard(_ref) {
3881
1394
  var bgImgContentOverlapClass = bgImgContentOverlap ? "content-overlap" : "";
3882
1395
  var textColor = getTextColor(theme);
3883
1396
  var horizontalMobileClasses = isHorizontalMobile ? "horizontal-mob" : "";
3884
- var defaultStorycard = /*#__PURE__*/React.createElement(DefaultStoryCard, {
1397
+ var defaultStorycard = /*#__PURE__*/React__default["default"].createElement(DefaultStoryCard, {
3885
1398
  story: story,
3886
1399
  aspectRatio: aspectRatio,
3887
1400
  border: border,
@@ -3895,13 +1408,13 @@ var StoryCard = function StoryCard(_ref) {
3895
1408
  config: config,
3896
1409
  isHorizontalWithImageLast: isHorizontalWithImageLast
3897
1410
  });
3898
- return /*#__PURE__*/React.createElement("div", {
1411
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3899
1412
  "data-test-id": "story-card",
3900
1413
  style: {
3901
1414
  backgroundColor: theme,
3902
1415
  color: textColor
3903
1416
  },
3904
- className: "arr--story-card " + _getClassName("card ".concat(horizontalCardStyle, " ").concat(borderTemplate, " ").concat(textColor, " ").concat(bgImageClasses, " ").concat(bgImgContentOverlapClass, " ").concat(horizontalMobileClasses), _styleModuleImportMap$3)
1417
+ className: "arr--story-card " + _getClassName__default["default"]("card ".concat(horizontalCardStyle, " ").concat(borderTemplate, " ").concat(textColor, " ").concat(bgImageClasses, " ").concat(bgImgContentOverlapClass, " ").concat(horizontalMobileClasses), _styleModuleImportMap$3)
3905
1418
  }, children || defaultStorycard);
3906
1419
  };
3907
1420
 
@@ -3924,91 +1437,91 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
3924
1437
  var SectionTagborderColor = rgbToHex(borderColor);
3925
1438
  var _config$localizationC = config.localizationConfig,
3926
1439
  localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
3927
- return /*#__PURE__*/React.createElement(React.Fragment, null, isHorizontal ? /*#__PURE__*/React.createElement(HeroImage, {
1440
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isHorizontal ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
3928
1441
  config: config,
3929
1442
  story: story,
3930
1443
  isHorizontal: true,
3931
1444
  isHorizontalMobile: isHorizontalMobile,
3932
1445
  aspectRatio: aspectRatio
3933
- }) : isHorizontalWithImageLast ? /*#__PURE__*/React.createElement(HeroImage, {
1446
+ }) : isHorizontalWithImageLast ? /*#__PURE__*/React__default["default"].createElement(HeroImage, {
3934
1447
  config: config,
3935
1448
  story: story,
3936
1449
  isHorizontalWithImageLast: true,
3937
1450
  isHorizontalMobile: isHorizontalMobile,
3938
1451
  aspectRatio: aspectRatio
3939
- }) : /*#__PURE__*/React.createElement(HeroImage, {
1452
+ }) : /*#__PURE__*/React__default["default"].createElement(HeroImage, {
3940
1453
  story: story,
3941
1454
  config: config,
3942
1455
  isHorizontalMobile: isHorizontalMobile,
3943
1456
  aspectRatio: aspectRatio
3944
- }), /*#__PURE__*/React.createElement("div", {
3945
- className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap$3)
3946
- }, /*#__PURE__*/React.createElement(SectionTag, {
1457
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
1458
+ className: "arr--story-content " + _getClassName__default["default"]("content ".concat(alignment), _styleModuleImportMap$3)
1459
+ }, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
3947
1460
  story: story,
3948
1461
  borderColor: SectionTagborderColor
3949
- }), /*#__PURE__*/React.createElement(Headline, {
1462
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
3950
1463
  story: story,
3951
1464
  headerLevel: headerLevel,
3952
1465
  premiumStoryIconConfig: config
3953
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
1466
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
3954
1467
  config: localizationConfig,
3955
1468
  story: story,
3956
1469
  isBottom: true,
3957
1470
  prefix: prefix,
3958
1471
  hideAuthorImage: hideAuthorImage
3959
- }), /*#__PURE__*/React.createElement(Subheadline, {
1472
+ }), /*#__PURE__*/React__default["default"].createElement(Subheadline, {
3960
1473
  story: story
3961
1474
  })));
3962
1475
  };
3963
1476
 
3964
1477
  DefaultStoryCard.propTypes = {
3965
- story: PropTypes.object.isRequired,
3966
- border: PropTypes.oneOfType([PropTypes.string]),
3967
- isBottom: PropTypes.bool,
3968
- isHorizontal: PropTypes.bool,
3969
- aspectRatio: PropTypes.oneOfType([PropTypes.array]),
3970
- isHorizontalMobile: PropTypes.bool,
3971
- centerAlign: PropTypes.bool,
3972
- headerLevel: PropTypes.string,
3973
- borderColor: PropTypes.string,
3974
- hideAuthorImage: PropTypes.bool,
3975
- prefix: PropTypes.string,
3976
- config: PropTypes.object,
3977
- isHorizontalWithImageLast: PropTypes.bool
1478
+ story: PropTypes__default["default"].object.isRequired,
1479
+ border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
1480
+ isBottom: PropTypes__default["default"].bool,
1481
+ isHorizontal: PropTypes__default["default"].bool,
1482
+ aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
1483
+ isHorizontalMobile: PropTypes__default["default"].bool,
1484
+ centerAlign: PropTypes__default["default"].bool,
1485
+ headerLevel: PropTypes__default["default"].string,
1486
+ borderColor: PropTypes__default["default"].string,
1487
+ hideAuthorImage: PropTypes__default["default"].bool,
1488
+ prefix: PropTypes__default["default"].string,
1489
+ config: PropTypes__default["default"].object,
1490
+ isHorizontalWithImageLast: PropTypes__default["default"].bool
3978
1491
  };
3979
1492
  StoryCard.propTypes = {
3980
1493
  /** The Story Object from the API response */
3981
- story: PropTypes.object.isRequired,
3982
- children: PropTypes.node,
1494
+ story: PropTypes__default["default"].object.isRequired,
1495
+ children: PropTypes__default["default"].node,
3983
1496
 
3984
1497
  /** Flip the Story Card to Horizonal mode */
3985
- isHorizontal: PropTypes.bool,
1498
+ isHorizontal: PropTypes__default["default"].bool,
3986
1499
 
3987
1500
  /** Add border to the Story Card */
3988
- border: PropTypes.oneOfType([PropTypes.string]),
1501
+ border: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string]),
3989
1502
  // story card with background image
3990
- useImageAsBackground: PropTypes.bool,
1503
+ useImageAsBackground: PropTypes__default["default"].bool,
3991
1504
  // story card content overlap with image
3992
- bgImgContentOverlap: PropTypes.bool,
1505
+ bgImgContentOverlap: PropTypes__default["default"].bool,
3993
1506
 
3994
1507
  /** add aspect ratio for hero image */
3995
- aspectRatio: PropTypes.oneOfType([PropTypes.array]),
1508
+ aspectRatio: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array]),
3996
1509
 
3997
1510
  /** add theme(dark /light/custom color) for storycard */
3998
- theme: PropTypes.string,
1511
+ theme: PropTypes__default["default"].string,
3999
1512
 
4000
1513
  /** flip the story card mobile design horizontal */
4001
- isHorizontalMobile: PropTypes.bool,
1514
+ isHorizontalMobile: PropTypes__default["default"].bool,
4002
1515
  // make content center align in desktop and left align in mobile
4003
- centerAlign: PropTypes.bool,
4004
- headerLevel: PropTypes.string,
4005
- borderColor: PropTypes.string,
1516
+ centerAlign: PropTypes__default["default"].bool,
1517
+ headerLevel: PropTypes__default["default"].string,
1518
+ borderColor: PropTypes__default["default"].string,
4006
1519
  // handle author image through storycard
4007
- hideAuthorImage: PropTypes.bool,
1520
+ hideAuthorImage: PropTypes__default["default"].bool,
4008
1521
  // handle author prefix through storycard
4009
- prefix: PropTypes.string,
4010
- config: PropTypes.object,
4011
- isHorizontalWithImageLast: PropTypes.bool
1522
+ prefix: PropTypes__default["default"].string,
1523
+ config: PropTypes__default["default"].object,
1524
+ isHorizontalWithImageLast: PropTypes__default["default"].bool
4012
1525
  };
4013
1526
  StoryCard.defaultProps = {
4014
1527
  isHorizontal: false,
@@ -4041,14 +1554,14 @@ var StorycardContent = function StorycardContent(_ref) {
4041
1554
  var SectionTagborderColor = rgbToHex(borderColor);
4042
1555
  var borderTemplate = borderOptions.includes(border) ? "border-".concat(border) : "";
4043
1556
  var horizontalCard = isHorizontalMobile ? "horizontal-content-wrapper" : "";
4044
- return /*#__PURE__*/React.createElement("div", {
1557
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4045
1558
  "data-test-id": "story-card-content",
4046
1559
  style: {
4047
1560
  backgroundColor: theme,
4048
1561
  color: textColor
4049
1562
  },
4050
- className: "arr--content-wrapper " + _getClassName("wrapper ".concat(borderTemplate, " ").concat(horizontalCard), _styleModuleImportMap$2)
4051
- }, children || /*#__PURE__*/React.createElement(DefaultStoryCardContent, {
1563
+ className: "arr--content-wrapper " + _getClassName__default["default"]("wrapper ".concat(borderTemplate, " ").concat(horizontalCard), _styleModuleImportMap$2)
1564
+ }, children || /*#__PURE__*/React__default["default"].createElement(DefaultStoryCardContent, {
4052
1565
  story: story,
4053
1566
  headerLevel: headerLevel,
4054
1567
  isHorizontalMobile: isHorizontalMobile,
@@ -4066,37 +1579,37 @@ var DefaultStoryCardContent = function DefaultStoryCardContent(_ref2) {
4066
1579
  var SectionTagborderColor = rgbToHex(borderColor);
4067
1580
  var _config$localizationC = config.localizationConfig,
4068
1581
  localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC;
4069
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SectionTag, {
1582
+ return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4070
1583
  story: story,
4071
1584
  borderColor: SectionTagborderColor
4072
- }), /*#__PURE__*/React.createElement(Headline, {
1585
+ }), /*#__PURE__*/React__default["default"].createElement(Headline, {
4073
1586
  story: story,
4074
1587
  headerLevel: headerLevel,
4075
1588
  premiumStoryIconConfig: config
4076
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
1589
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
4077
1590
  config: localizationConfig,
4078
1591
  story: story
4079
1592
  }));
4080
1593
  };
4081
1594
 
4082
1595
  DefaultStoryCardContent.propTypes = {
4083
- story: PropTypes.object.isRequired,
4084
- border: PropTypes.string,
4085
- theme: PropTypes.string,
4086
- isHorizontalMobile: PropTypes.bool,
4087
- headerLevel: PropTypes.string,
4088
- borderColor: PropTypes.string,
4089
- config: PropTypes.object
1596
+ story: PropTypes__default["default"].object.isRequired,
1597
+ border: PropTypes__default["default"].string,
1598
+ theme: PropTypes__default["default"].string,
1599
+ isHorizontalMobile: PropTypes__default["default"].bool,
1600
+ headerLevel: PropTypes__default["default"].string,
1601
+ borderColor: PropTypes__default["default"].string,
1602
+ config: PropTypes__default["default"].object
4090
1603
  };
4091
1604
  StorycardContent.propTypes = {
4092
- story: PropTypes.object.isRequired,
4093
- children: PropTypes.node,
4094
- theme: PropTypes.string,
4095
- border: PropTypes.string,
4096
- isHorizontalMobile: PropTypes.bool,
4097
- headerLevel: PropTypes.string,
4098
- borderColor: PropTypes.string,
4099
- config: PropTypes.object
1605
+ story: PropTypes__default["default"].object.isRequired,
1606
+ children: PropTypes__default["default"].node,
1607
+ theme: PropTypes__default["default"].string,
1608
+ border: PropTypes__default["default"].string,
1609
+ isHorizontalMobile: PropTypes__default["default"].bool,
1610
+ headerLevel: PropTypes__default["default"].string,
1611
+ borderColor: PropTypes__default["default"].string,
1612
+ config: PropTypes__default["default"].object
4100
1613
  };
4101
1614
 
4102
1615
  var _styleModuleImportMap$1 = {
@@ -4124,7 +1637,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
4124
1637
  _ref$navigate = _ref.navigate,
4125
1638
  navigate = _ref$navigate === void 0 ? true : _ref$navigate;
4126
1639
  var collectionTitle = useStateValue() || {};
4127
- var showRowTitle = get_1(collectionTitle, ["showRowTitle"], true);
1640
+ var showRowTitle = lodash.get(collectionTitle, ["showRowTitle"], true);
4128
1641
  var supportedTemplates = ["borderLeft", "borderBottom", "crossLine", "borderBottomFull"];
4129
1642
  var templateStyle = supportedTemplates.includes(collectionNameTemplate) ? " collection-".concat(collectionNameTemplate) : "";
4130
1643
  var slug = navigate && collection && getSlug(collection, config) || "";
@@ -4135,7 +1648,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
4135
1648
  var borderBottomFullStyle = templateStyle.includes("collection-borderBottomFull") ? "4px solid ".concat(CollectionNameBorderColor) : "";
4136
1649
 
4137
1650
  var borderBottomStyle = function borderBottomStyle() {
4138
- return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React.createElement("div", {
1651
+ return templateStyle.includes("collection-borderBottom") && !templateStyle.includes("collection-borderBottomFull") ? /*#__PURE__*/React__default["default"].createElement("div", {
4139
1652
  className: "collection-name-m_border-bottom__1MnlV",
4140
1653
  style: {
4141
1654
  borderBottom: "4px solid ".concat(CollectionNameBorderColor)
@@ -4195,40 +1708,40 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
4195
1708
  }
4196
1709
  };
4197
1710
 
4198
- return /*#__PURE__*/React.createElement(React.Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React.createElement("div", {
1711
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, showRowTitle && collectionName && /*#__PURE__*/React__default["default"].createElement("div", {
4199
1712
  style: {
4200
1713
  borderBottom: borderBottomFullStyle
4201
1714
  },
4202
1715
  "data-test-id": "collection-name",
4203
- className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$1)
4204
- }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React.createElement("span", {
1716
+ className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName__default["default"]("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$1)
1717
+ }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
4205
1718
  className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
4206
1719
  style: {
4207
1720
  color: CollectionNameBorderColor,
4208
1721
  fontSize: getBorderHeight()
4209
1722
  }
4210
- }), slug && !slug.includes(undefined) ? /*#__PURE__*/React.createElement(Link, {
1723
+ }), slug && !slug.includes(undefined) ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
4211
1724
  href: slug,
4212
1725
  "aria-label": "collection-name"
4213
- }, /*#__PURE__*/React.createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React.createElement(HeaderTag, null, collectionName), borderBottomStyle()));
1726
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, null, collectionName), borderBottomStyle()));
4214
1727
  };
4215
1728
  CollectionNameBase.propTypes = {
4216
1729
  /** Collection name border color */
4217
- collectionNameBorderColor: PropTypes$1.string,
1730
+ collectionNameBorderColor: PropTypes.PropTypes.string,
4218
1731
 
4219
1732
  /** The Collection Object from the API response */
4220
- collection: PropTypes$1.object,
1733
+ collection: PropTypes.PropTypes.object,
4221
1734
 
4222
1735
  /** The publisher config from the API response */
4223
- config: PropTypes$1.object,
1736
+ config: PropTypes.PropTypes.object,
4224
1737
 
4225
1738
  /** The style template for the component */
4226
- collectionNameTemplate: PropTypes$1.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
1739
+ collectionNameTemplate: PropTypes.PropTypes.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
4227
1740
 
4228
1741
  /** Header tags ranging h1-h6, where h[headerLevel] */
4229
- headerLevel: PropTypes$1.string,
4230
- customCollectionName: PropTypes$1.string,
4231
- navigate: PropTypes$1.bool
1742
+ headerLevel: PropTypes.PropTypes.string,
1743
+ customCollectionName: PropTypes.PropTypes.string,
1744
+ navigate: PropTypes.PropTypes.bool
4232
1745
  };
4233
1746
  CollectionNameBase.defaultProps = {
4234
1747
  collectionNameTemplate: "",
@@ -4237,26 +1750,11 @@ CollectionNameBase.defaultProps = {
4237
1750
 
4238
1751
  function mapStateToProps(state) {
4239
1752
  return {
4240
- config: get_1(state, ["qt", "config"], {})
1753
+ config: lodash.get(state, ["qt", "config"], {})
4241
1754
  };
4242
1755
  }
4243
1756
 
4244
- var CollectionName = connect(mapStateToProps)(CollectionNameBase);
4245
-
4246
- function _defineProperty(obj, key, value) {
4247
- if (key in obj) {
4248
- Object.defineProperty(obj, key, {
4249
- value: value,
4250
- enumerable: true,
4251
- configurable: true,
4252
- writable: true
4253
- });
4254
- } else {
4255
- obj[key] = value;
4256
- }
4257
-
4258
- return obj;
4259
- }
1757
+ var CollectionName = reactRedux.connect(mapStateToProps)(CollectionNameBase);
4260
1758
 
4261
1759
  var _styleModuleImportMap = {
4262
1760
  "./load-more.m.css": {
@@ -4269,7 +1767,7 @@ var _styleModuleImportMap = {
4269
1767
 
4270
1768
  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; }
4271
1769
 
4272
- 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; }
1770
+ 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; }
4273
1771
  var LoadmoreButton = function LoadmoreButton(_ref) {
4274
1772
  var _ref$config = _ref.config,
4275
1773
  config = _ref$config === void 0 ? {} : _ref$config,
@@ -4290,26 +1788,26 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
4290
1788
  if (!showButton) return null;
4291
1789
  var textColor = getTextColor(theme);
4292
1790
  var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread(_objectSpread({}, qtConfig), config));
4293
- return template === "SubsequentLoadCount" ? /*#__PURE__*/React.createElement("div", {
1791
+ return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
4294
1792
  onClick: onClick,
4295
1793
  "data-test-id": "load-more",
4296
- className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap)
4297
- }, buttonText) : /*#__PURE__*/React.createElement(LinkBase, {
1794
+ className: "arr--button " + _getClassName__default["default"]("button ".concat(textColor, " default"), _styleModuleImportMap)
1795
+ }, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
4298
1796
  href: slug,
4299
1797
  navigateTo: navigate,
4300
1798
  "data-test-id": "load-more",
4301
1799
  "aria-label": "load-more"
4302
- }, /*#__PURE__*/React.createElement("div", {
4303
- className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap)
1800
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
1801
+ className: "arr--button " + _getClassName__default["default"]("button ".concat(textColor, " default"), _styleModuleImportMap)
4304
1802
  }, buttonText));
4305
1803
  };
4306
1804
  LoadmoreButton.propTypes = {
4307
- collection: PropTypes.object,
4308
- template: PropTypes.string,
4309
- config: PropTypes.object,
4310
- onClick: PropTypes.func,
4311
- navigate: PropTypes.func,
4312
- qtConfig: PropTypes.object
1805
+ collection: PropTypes__default["default"].object,
1806
+ template: PropTypes__default["default"].string,
1807
+ config: PropTypes__default["default"].object,
1808
+ onClick: PropTypes__default["default"].func,
1809
+ navigate: PropTypes__default["default"].func,
1810
+ qtConfig: PropTypes__default["default"].object
4313
1811
  };
4314
1812
 
4315
1813
  var isClient = typeof window !== "undefined";
@@ -4321,7 +1819,7 @@ var hasIntersectionObserverSupport = function hasIntersectionObserverSupport() {
4321
1819
 
4322
1820
 
4323
1821
  var getIntersectionObserver = function getIntersectionObserver() {
4324
- return Promise.resolve(isClient && !hasIntersectionObserverSupport() && import('intersection-observer'));
1822
+ return Promise.resolve(isClient && !hasIntersectionObserverSupport() && Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('intersection-observer')); }));
4325
1823
  }; // options for intersection observer in order to improve the effect
4326
1824
 
4327
1825
 
@@ -4354,12 +1852,12 @@ var getObserver = function getObserver() {
4354
1852
  var useNearScreen = (function (_ref) {
4355
1853
  var ref = _ref.ref;
4356
1854
 
4357
- var _useState = useState(false),
4358
- _useState2 = _slicedToArray(_useState, 2),
1855
+ var _useState = React.useState(false),
1856
+ _useState2 = _slicedToArray__default["default"](_useState, 2),
4359
1857
  show = _useState2[0],
4360
1858
  setShow = _useState2[1];
4361
1859
 
4362
- useEffect(function () {
1860
+ React.useEffect(function () {
4363
1861
  var current = ref.current;
4364
1862
  if (!current) return; // get observer async and only when needed
4365
1863
 
@@ -4386,36 +1884,36 @@ var EMPTY_HTML = {
4386
1884
  var isServer = typeof window === "undefined";
4387
1885
  var ProgressiveHydration = function ProgressiveHydration(props) {
4388
1886
  var children = props.children;
4389
- var ref = useRef(null);
1887
+ var ref = React.useRef(null);
4390
1888
  var isNearScreen = useNearScreen({
4391
1889
  ref: ref
4392
1890
  });
4393
- useEffect(function () {
1891
+ React.useEffect(function () {
4394
1892
  var el = ref.current; // CLIENT:
4395
1893
  // If we want to force the hydration OR the element is near screen
4396
1894
  // then we hydrate the content to get the functionality ready
4397
1895
 
4398
1896
  if (isNearScreen) {
4399
1897
  var action = el.hasChildNodes() ? "hydrate" : "render";
4400
- ReactDOM[action](children, el);
1898
+ ReactDOM__default["default"][action](children, el);
4401
1899
  }
4402
1900
  }, [children, isNearScreen]); // SERVER: Just render the content as usual
4403
1901
 
4404
1902
  if (isServer) {
4405
- return /*#__PURE__*/React.createElement("div", {
1903
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4406
1904
  ref: ref
4407
1905
  }, children);
4408
1906
  } // CLIENT: Avoid hydration until we say so
4409
1907
 
4410
1908
 
4411
- return /*#__PURE__*/React.createElement("div", {
1909
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4412
1910
  ref: ref,
4413
1911
  suppressHydrationWarning: true,
4414
1912
  dangerouslySetInnerHTML: EMPTY_HTML
4415
1913
  });
4416
1914
  };
4417
1915
  ProgressiveHydration.propTypes = {
4418
- children: PropTypes.element
1916
+ children: PropTypes__default["default"].element
4419
1917
  };
4420
1918
 
4421
1919
  var LoadMoreTarget = function LoadMoreTarget(_ref) {
@@ -4423,7 +1921,7 @@ var LoadMoreTarget = function LoadMoreTarget(_ref) {
4423
1921
  componentName = _ref.componentName,
4424
1922
  offset = _ref.offset,
4425
1923
  limit = _ref.limit;
4426
- return /*#__PURE__*/React.createElement("div", {
1924
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4427
1925
  id: "ELM-".concat(collection.id),
4428
1926
  "data-collection-slug": collection["slug"],
4429
1927
  "data-component-name": componentName,
@@ -4432,13 +1930,13 @@ var LoadMoreTarget = function LoadMoreTarget(_ref) {
4432
1930
  });
4433
1931
  };
4434
1932
  LoadMoreTarget.propTypes = {
4435
- collection: PropTypes.shape({
4436
- id: PropTypes.string,
4437
- slug: PropTypes.string
1933
+ collection: PropTypes__default["default"].shape({
1934
+ id: PropTypes__default["default"].string,
1935
+ slug: PropTypes__default["default"].string
4438
1936
  }),
4439
- componentName: PropTypes.string,
4440
- offset: PropTypes.number,
4441
- limit: PropTypes.number
1937
+ componentName: PropTypes__default["default"].string,
1938
+ offset: PropTypes__default["default"].number,
1939
+ limit: PropTypes__default["default"].number
4442
1940
  };
4443
1941
 
4444
1942
  var loadMore = function loadMore(_ref) {
@@ -4479,28 +1977,28 @@ var ThreeColGridBase = function ThreeColGridBase(_ref2) {
4479
1977
  footerButton = _config$footerButton === void 0 ? "" : _config$footerButton,
4480
1978
  _config$subsequentLoa = config.subsequentLoadCount,
4481
1979
  subsequentLoadCount = _config$subsequentLoa === void 0 ? 3 : _config$subsequentLoa;
4482
- var storyItems = collectionToStories(collection);
1980
+ var storyItems = components.collectionToStories(collection);
4483
1981
  if (!storyItems.length) return null;
4484
1982
  var textColor = getTextColor(theme);
4485
1983
  var footerSlot = footerSlotConfig.footerSlot;
4486
1984
  var footerSlotComp = footerSlot ? footerSlot() : null;
4487
1985
 
4488
- var _get = get_1(slotConfig, [0], {}),
1986
+ var _get = lodash.get(slotConfig, [0], {}),
4489
1987
  _get$type = _get.type,
4490
1988
  type = _get$type === void 0 ? "" : _get$type,
4491
1989
  component = _get.component;
4492
1990
 
4493
1991
  var adWidgetSlot = type === "ad" || type === "widget" ? getSlot(type, component) : null;
4494
- var dispatch = useDispatch();
4495
- var qtConfig = useSelector(function (state) {
4496
- return get_1(state, ["qt", "config"], {});
1992
+ var dispatch = reactRedux.useDispatch();
1993
+ var qtConfig = reactRedux.useSelector(function (state) {
1994
+ return lodash.get(state, ["qt", "config"], {});
4497
1995
  });
4498
1996
 
4499
1997
  var getLoadMore = function getLoadMore(opts) {
4500
1998
  if (!isLoadMoreVisible) return null;
4501
1999
 
4502
2000
  if (isolatedLoadMore) {
4503
- return /*#__PURE__*/React.createElement(LoadMoreTarget, {
2001
+ return /*#__PURE__*/React__default["default"].createElement(LoadMoreTarget, {
4504
2002
  collection: collection,
4505
2003
  componentName: "ThreeColGrid",
4506
2004
  offset: storyItems.length,
@@ -4509,7 +2007,7 @@ var ThreeColGridBase = function ThreeColGridBase(_ref2) {
4509
2007
  }
4510
2008
 
4511
2009
  var url = generateNavigateSlug(collection, qtConfig);
4512
- return /*#__PURE__*/React.createElement(ProgressiveHydration, null, /*#__PURE__*/React.createElement(LoadmoreButton, {
2010
+ return /*#__PURE__*/React__default["default"].createElement(ProgressiveHydration, null, /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
4513
2011
  config: config,
4514
2012
  collection: collection,
4515
2013
  template: footerButton,
@@ -4524,19 +2022,19 @@ var ThreeColGridBase = function ThreeColGridBase(_ref2) {
4524
2022
  };
4525
2023
 
4526
2024
  var storyCard = function storyCard(story) {
4527
- return /*#__PURE__*/React.createElement("div", {
2025
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4528
2026
  className: "three-col-m_cards__2HyyK"
4529
- }, /*#__PURE__*/React.createElement(StoryCard, {
2027
+ }, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
4530
2028
  story: story,
4531
2029
  border: border,
4532
2030
  theme: theme,
4533
2031
  isHorizontalMobile: true,
4534
2032
  config: config
4535
- }, /*#__PURE__*/React.createElement(HeroImage, {
2033
+ }, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4536
2034
  aspectRatio: [[16, 9]],
4537
2035
  story: story,
4538
2036
  isHorizontalMobile: true
4539
- }), /*#__PURE__*/React.createElement(StorycardContent, {
2037
+ }), /*#__PURE__*/React__default["default"].createElement(StorycardContent, {
4540
2038
  theme: theme,
4541
2039
  border: border,
4542
2040
  story: story,
@@ -4546,28 +2044,28 @@ var ThreeColGridBase = function ThreeColGridBase(_ref2) {
4546
2044
  })));
4547
2045
  };
4548
2046
 
4549
- return /*#__PURE__*/React.createElement("div", {
2047
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4550
2048
  className: "full-width-with-padding arrow-component",
4551
2049
  "data-test-id": "three-col-grid",
4552
2050
  style: {
4553
2051
  backgroundColor: theme,
4554
2052
  color: textColor
4555
2053
  }
4556
- }, /*#__PURE__*/React.createElement("div", {
2054
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4557
2055
  className: "three-col-m_three-col-grid__y7rZK"
4558
- }, /*#__PURE__*/React.createElement(CollectionName, {
2056
+ }, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
4559
2057
  collection: collection,
4560
2058
  collectionNameTemplate: collectionNameTemplate,
4561
2059
  collectionNameBorderColor: collectionNameBorderColor
4562
- }), /*#__PURE__*/React.createElement("div", {
2060
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4563
2061
  className: "three-col-m_wrapper__20m5m"
4564
2062
  }, storyItems.slice(0, 2).map(function (story, index) {
4565
- return /*#__PURE__*/React.createElement(Fragment, {
4566
- key: "story-3col1-".concat(index, "-").concat(get_1(story, ["id"], "0"))
2063
+ return /*#__PURE__*/React__default["default"].createElement(React.Fragment, {
2064
+ key: "story-3col1-".concat(index, "-").concat(lodash.get(story, ["id"], "0"))
4567
2065
  }, storyCard(story));
4568
- }), storyItems.length < 2 && /*#__PURE__*/React.createElement("div", null), adWidgetSlot, storyItems.slice(2).map(function (story, index) {
4569
- return /*#__PURE__*/React.createElement(Fragment, {
4570
- key: "story-3col1-".concat(index, "-").concat(get_1(story, ["id"], "0"))
2066
+ }), storyItems.length < 2 && /*#__PURE__*/React__default["default"].createElement("div", null), adWidgetSlot, storyItems.slice(2).map(function (story, index) {
2067
+ return /*#__PURE__*/React__default["default"].createElement(React.Fragment, {
2068
+ key: "story-3col1-".concat(index, "-").concat(lodash.get(story, ["id"], "0"))
4571
2069
  }, storyCard(story));
4572
2070
  })), getLoadMore({
4573
2071
  isLoading: isLoading,
@@ -4578,22 +2076,22 @@ var ThreeColGridBase = function ThreeColGridBase(_ref2) {
4578
2076
  };
4579
2077
  ThreeColGridBase.propTypes = {
4580
2078
  /** collection is the array of objects which is returning by API */
4581
- collection: PropTypes.object.isRequired,
2079
+ collection: PropTypes__default["default"].object.isRequired,
4582
2080
 
4583
2081
  /** The config for the Row */
4584
- config: PropTypes.shape({
4585
- theme: PropTypes.string,
4586
- border: PropTypes.bool,
4587
- slotConfig: PropTypes.array,
4588
- footerButton: PropTypes.string,
4589
- collectionNameTemplate: PropTypes.string,
4590
- collectionNameBorderColor: PropTypes.string,
4591
- subsequentLoadCount: PropTypes.number
2082
+ config: PropTypes__default["default"].shape({
2083
+ theme: PropTypes__default["default"].string,
2084
+ border: PropTypes__default["default"].bool,
2085
+ slotConfig: PropTypes__default["default"].array,
2086
+ footerButton: PropTypes__default["default"].string,
2087
+ collectionNameTemplate: PropTypes__default["default"].string,
2088
+ collectionNameBorderColor: PropTypes__default["default"].string,
2089
+ subsequentLoadCount: PropTypes__default["default"].number
4592
2090
  }),
4593
- getMoreStories: PropTypes.func,
4594
- isLoadMoreVisible: PropTypes.bool,
4595
- isLoading: PropTypes.bool,
4596
- isolatedLoadMore: PropTypes.bool
2091
+ getMoreStories: PropTypes__default["default"].func,
2092
+ isLoadMoreVisible: PropTypes__default["default"].bool,
2093
+ isLoading: PropTypes__default["default"].bool,
2094
+ isolatedLoadMore: PropTypes__default["default"].bool
4597
2095
  };
4598
2096
  ThreeColGridBase.defaultProps = {
4599
2097
  getMoreStories: function getMoreStories() {},
@@ -4602,4 +2100,5 @@ ThreeColGridBase.defaultProps = {
4602
2100
  };
4603
2101
  var ThreeColGrid = StateProvider(ThreeColGridBase);
4604
2102
 
4605
- export { ThreeColGrid, ThreeColGridBase };
2103
+ exports.ThreeColGrid = ThreeColGrid;
2104
+ exports.ThreeColGridBase = ThreeColGridBase;