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