@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,2508 +1,48 @@
1
- import React, { useContext, createContext } 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, LazyLoadImages } from '@quintype/components';
5
- import Timeago from 'react-timeago';
6
- import { utcToZonedTime, format } from 'date-fns-tz';
7
-
8
- function _defineProperty(obj, key, value) {
9
- if (key in obj) {
10
- Object.defineProperty(obj, key, {
11
- value: value,
12
- enumerable: true,
13
- configurable: true,
14
- writable: true
15
- });
16
- } else {
17
- obj[key] = value;
18
- }
19
-
20
- return obj;
21
- }
22
-
23
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
24
-
25
- function getDefaultExportFromCjs (x) {
26
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
27
- }
28
-
29
- function createCommonjsModule(fn) {
30
- var module = { exports: {} };
31
- return fn(module, module.exports), module.exports;
32
- }
33
-
34
- var optionsDefaults_1 = createCommonjsModule(function (module, exports) {
35
-
36
- Object.defineProperty(exports, "__esModule", {
37
- value: true
38
- });
39
- exports["default"] = void 0;
40
- var optionsDefaults = {
41
- attributeNames: {
42
- styleName: 'className'
43
- },
44
- generateScopedName: '[path]___[name]__[local]___[hash:base64:5]',
45
- handleMissingStyleName: 'throw'
46
- };
47
- var _default = optionsDefaults;
48
- exports["default"] = _default;
49
-
50
-
51
- });
52
-
53
- var getClassName = createCommonjsModule(function (module, exports) {
54
-
55
- Object.defineProperty(exports, "__esModule", {
56
- value: true
57
- });
58
- exports["default"] = void 0;
59
-
60
- var _optionsDefaults = _interopRequireDefault(optionsDefaults_1);
61
-
62
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
63
-
64
- var isNamespacedStyleName = function isNamespacedStyleName(styleName) {
65
- return styleName.indexOf('.') !== -1;
66
- };
67
-
68
- var handleError = function handleError(message, handleMissingStyleName) {
69
- if (handleMissingStyleName === 'throw') {
70
- throw new Error(message);
71
- } else if (handleMissingStyleName === 'warn') {
72
- // eslint-disable-next-line no-console
73
- console.warn(message);
74
- }
75
-
76
- return null;
77
- };
78
-
79
- var getClassNameForNamespacedStyleName = function getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
80
- // Note:
81
- // Do not use the desctructing syntax with Babel.
82
- // Desctructing adds _slicedToArray helper.
83
- var styleNameParts = styleName.split('.');
84
- var importName = styleNameParts[0];
85
- var moduleName = styleNameParts[1];
86
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
87
-
88
- if (!moduleName) {
89
- return handleError('Invalid style name: ' + styleName, handleMissingStyleName);
90
- }
91
-
92
- if (!styleModuleImportMap[importName]) {
93
- return handleError('CSS module import does not exist: ' + importName, handleMissingStyleName);
94
- }
95
-
96
- if (!styleModuleImportMap[importName][moduleName]) {
97
- return handleError('CSS module does not exist: ' + moduleName, handleMissingStyleName);
98
- }
99
-
100
- return styleModuleImportMap[importName][moduleName];
101
- };
102
-
103
- var getClassNameFromMultipleImports = function getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
104
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
105
- var importKeysWithMatches = Object.keys(styleModuleImportMap).map(function (importKey) {
106
- return styleModuleImportMap[importKey][styleName] && importKey;
107
- }).filter(function (importKey) {
108
- return importKey;
109
- });
110
-
111
- if (importKeysWithMatches.length > 1) {
112
- 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');
113
- }
114
-
115
- if (importKeysWithMatches.length === 0) {
116
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
117
- }
118
-
119
- return styleModuleImportMap[importKeysWithMatches[0]][styleName];
120
- };
121
-
122
- var _default = function _default(styleNameValue, styleModuleImportMap, options) {
123
- var styleModuleImportMapKeys = Object.keys(styleModuleImportMap);
124
-
125
- var _ref = options || {},
126
- _ref$handleMissingSty = _ref.handleMissingStyleName,
127
- handleMissingStyleName = _ref$handleMissingSty === void 0 ? _optionsDefaults["default"].handleMissingStyleName : _ref$handleMissingSty,
128
- _ref$autoResolveMulti = _ref.autoResolveMultipleImports,
129
- autoResolveMultipleImports = _ref$autoResolveMulti === void 0 ? _optionsDefaults["default"].autoResolveMultipleImports : _ref$autoResolveMulti;
130
-
131
- if (!styleNameValue) {
132
- return '';
133
- }
134
-
135
- return styleNameValue.split(' ').filter(function (styleName) {
136
- return styleName;
137
- }).map(function (styleName) {
138
- if (isNamespacedStyleName(styleName)) {
139
- return getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleName);
140
- }
141
-
142
- if (styleModuleImportMapKeys.length === 0) {
143
- throw new Error('Cannot use styleName attribute for style name \'' + styleName + '\' without importing at least one stylesheet.');
144
- }
145
-
146
- if (styleModuleImportMapKeys.length > 1) {
147
- if (!autoResolveMultipleImports) {
148
- throw new Error('Cannot use anonymous style name \'' + styleName + '\' with more than one stylesheet import without setting \'autoResolveMultipleImports\' to true.');
149
- }
150
-
151
- return getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleName);
152
- }
153
-
154
- var styleModuleMap = styleModuleImportMap[styleModuleImportMapKeys[0]];
155
-
156
- if (!styleModuleMap[styleName]) {
157
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
158
- }
159
-
160
- return styleModuleMap[styleName];
161
- }).filter(function (className) {
162
- // Remove any styles which could not be found (if handleMissingStyleName === 'ignore')
163
- return className;
164
- }).join(' ');
165
- };
166
-
167
- exports["default"] = _default;
168
-
169
-
170
- });
171
-
172
- var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
173
-
174
- 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 _defineProperty = require('@babel/runtime/helpers/defineProperty');
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 components = require('@quintype/components');
11
+ var lodash = require('lodash');
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 _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
18
+
19
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
20
+
21
+ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
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 _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
28
+
29
+ var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
175
30
 
176
31
  var StateProvider = function StateProvider(RowComponent) {
177
32
  return function (props) {
178
33
  return (
179
34
  /*#__PURE__*/
180
35
  // eslint-disable-next-line react/prop-types
181
- React.createElement(StateContext.Provider, {
36
+ React__default["default"].createElement(StateContext.Provider, {
182
37
  value: props.config
183
- }, /*#__PURE__*/React.createElement(RowComponent, props))
38
+ }, /*#__PURE__*/React__default["default"].createElement(RowComponent, props))
184
39
  );
185
40
  };
186
41
  };
187
42
  var useStateValue = function useStateValue() {
188
- return useContext(StateContext);
189
- };
190
-
191
- /**
192
- * Checks if `value` is classified as an `Array` object.
193
- *
194
- * @static
195
- * @memberOf _
196
- * @since 0.1.0
197
- * @category Lang
198
- * @param {*} value The value to check.
199
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
200
- * @example
201
- *
202
- * _.isArray([1, 2, 3]);
203
- * // => true
204
- *
205
- * _.isArray(document.body.children);
206
- * // => false
207
- *
208
- * _.isArray('abc');
209
- * // => false
210
- *
211
- * _.isArray(_.noop);
212
- * // => false
213
- */
214
- var isArray = Array.isArray;
215
-
216
- var isArray_1 = isArray;
217
-
218
- /** Detect free variable `global` from Node.js. */
219
-
220
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
221
-
222
- var _freeGlobal = freeGlobal;
223
-
224
- /** Detect free variable `self`. */
225
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
226
-
227
- /** Used as a reference to the global object. */
228
- var root = _freeGlobal || freeSelf || Function('return this')();
229
-
230
- var _root = root;
231
-
232
- /** Built-in value references. */
233
- var Symbol$1 = _root.Symbol;
234
-
235
- var _Symbol = Symbol$1;
236
-
237
- /** Used for built-in method references. */
238
- var objectProto$4 = Object.prototype;
239
-
240
- /** Used to check objects for own properties. */
241
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
242
-
243
- /**
244
- * Used to resolve the
245
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
246
- * of values.
247
- */
248
- var nativeObjectToString$1 = objectProto$4.toString;
249
-
250
- /** Built-in value references. */
251
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
252
-
253
- /**
254
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
255
- *
256
- * @private
257
- * @param {*} value The value to query.
258
- * @returns {string} Returns the raw `toStringTag`.
259
- */
260
- function getRawTag(value) {
261
- var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
262
- tag = value[symToStringTag$1];
263
-
264
- try {
265
- value[symToStringTag$1] = undefined;
266
- var unmasked = true;
267
- } catch (e) {}
268
-
269
- var result = nativeObjectToString$1.call(value);
270
- if (unmasked) {
271
- if (isOwn) {
272
- value[symToStringTag$1] = tag;
273
- } else {
274
- delete value[symToStringTag$1];
275
- }
276
- }
277
- return result;
278
- }
279
-
280
- var _getRawTag = getRawTag;
281
-
282
- /** Used for built-in method references. */
283
- var objectProto$3 = Object.prototype;
284
-
285
- /**
286
- * Used to resolve the
287
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
288
- * of values.
289
- */
290
- var nativeObjectToString = objectProto$3.toString;
291
-
292
- /**
293
- * Converts `value` to a string using `Object.prototype.toString`.
294
- *
295
- * @private
296
- * @param {*} value The value to convert.
297
- * @returns {string} Returns the converted string.
298
- */
299
- function objectToString(value) {
300
- return nativeObjectToString.call(value);
301
- }
302
-
303
- var _objectToString = objectToString;
304
-
305
- /** `Object#toString` result references. */
306
- var nullTag = '[object Null]',
307
- undefinedTag = '[object Undefined]';
308
-
309
- /** Built-in value references. */
310
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
311
-
312
- /**
313
- * The base implementation of `getTag` without fallbacks for buggy environments.
314
- *
315
- * @private
316
- * @param {*} value The value to query.
317
- * @returns {string} Returns the `toStringTag`.
318
- */
319
- function baseGetTag(value) {
320
- if (value == null) {
321
- return value === undefined ? undefinedTag : nullTag;
322
- }
323
- return (symToStringTag && symToStringTag in Object(value))
324
- ? _getRawTag(value)
325
- : _objectToString(value);
326
- }
327
-
328
- var _baseGetTag = baseGetTag;
329
-
330
- /**
331
- * Checks if `value` is object-like. A value is object-like if it's not `null`
332
- * and has a `typeof` result of "object".
333
- *
334
- * @static
335
- * @memberOf _
336
- * @since 4.0.0
337
- * @category Lang
338
- * @param {*} value The value to check.
339
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
340
- * @example
341
- *
342
- * _.isObjectLike({});
343
- * // => true
344
- *
345
- * _.isObjectLike([1, 2, 3]);
346
- * // => true
347
- *
348
- * _.isObjectLike(_.noop);
349
- * // => false
350
- *
351
- * _.isObjectLike(null);
352
- * // => false
353
- */
354
- function isObjectLike(value) {
355
- return value != null && typeof value == 'object';
356
- }
357
-
358
- var isObjectLike_1 = isObjectLike;
359
-
360
- /** `Object#toString` result references. */
361
- var symbolTag = '[object Symbol]';
362
-
363
- /**
364
- * Checks if `value` is classified as a `Symbol` primitive or object.
365
- *
366
- * @static
367
- * @memberOf _
368
- * @since 4.0.0
369
- * @category Lang
370
- * @param {*} value The value to check.
371
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
372
- * @example
373
- *
374
- * _.isSymbol(Symbol.iterator);
375
- * // => true
376
- *
377
- * _.isSymbol('abc');
378
- * // => false
379
- */
380
- function isSymbol(value) {
381
- return typeof value == 'symbol' ||
382
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
383
- }
384
-
385
- var isSymbol_1 = isSymbol;
386
-
387
- /** Used to match property names within property paths. */
388
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
389
- reIsPlainProp = /^\w*$/;
390
-
391
- /**
392
- * Checks if `value` is a property name and not a property path.
393
- *
394
- * @private
395
- * @param {*} value The value to check.
396
- * @param {Object} [object] The object to query keys on.
397
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
398
- */
399
- function isKey(value, object) {
400
- if (isArray_1(value)) {
401
- return false;
402
- }
403
- var type = typeof value;
404
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
405
- value == null || isSymbol_1(value)) {
406
- return true;
407
- }
408
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
409
- (object != null && value in Object(object));
410
- }
411
-
412
- var _isKey = isKey;
413
-
414
- /**
415
- * Checks if `value` is the
416
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
417
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
418
- *
419
- * @static
420
- * @memberOf _
421
- * @since 0.1.0
422
- * @category Lang
423
- * @param {*} value The value to check.
424
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
425
- * @example
426
- *
427
- * _.isObject({});
428
- * // => true
429
- *
430
- * _.isObject([1, 2, 3]);
431
- * // => true
432
- *
433
- * _.isObject(_.noop);
434
- * // => true
435
- *
436
- * _.isObject(null);
437
- * // => false
438
- */
439
- function isObject(value) {
440
- var type = typeof value;
441
- return value != null && (type == 'object' || type == 'function');
442
- }
443
-
444
- var isObject_1 = isObject;
445
-
446
- /** `Object#toString` result references. */
447
- var asyncTag = '[object AsyncFunction]',
448
- funcTag = '[object Function]',
449
- genTag = '[object GeneratorFunction]',
450
- proxyTag = '[object Proxy]';
451
-
452
- /**
453
- * Checks if `value` is classified as a `Function` object.
454
- *
455
- * @static
456
- * @memberOf _
457
- * @since 0.1.0
458
- * @category Lang
459
- * @param {*} value The value to check.
460
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
461
- * @example
462
- *
463
- * _.isFunction(_);
464
- * // => true
465
- *
466
- * _.isFunction(/abc/);
467
- * // => false
468
- */
469
- function isFunction(value) {
470
- if (!isObject_1(value)) {
471
- return false;
472
- }
473
- // The use of `Object#toString` avoids issues with the `typeof` operator
474
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
475
- var tag = _baseGetTag(value);
476
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
477
- }
478
-
479
- var isFunction_1 = isFunction;
480
-
481
- /** Used to detect overreaching core-js shims. */
482
- var coreJsData = _root['__core-js_shared__'];
483
-
484
- var _coreJsData = coreJsData;
485
-
486
- /** Used to detect methods masquerading as native. */
487
- var maskSrcKey = (function() {
488
- var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
489
- return uid ? ('Symbol(src)_1.' + uid) : '';
490
- }());
491
-
492
- /**
493
- * Checks if `func` has its source masked.
494
- *
495
- * @private
496
- * @param {Function} func The function to check.
497
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
498
- */
499
- function isMasked(func) {
500
- return !!maskSrcKey && (maskSrcKey in func);
501
- }
502
-
503
- var _isMasked = isMasked;
504
-
505
- /** Used for built-in method references. */
506
- var funcProto$1 = Function.prototype;
507
-
508
- /** Used to resolve the decompiled source of functions. */
509
- var funcToString$1 = funcProto$1.toString;
510
-
511
- /**
512
- * Converts `func` to its source code.
513
- *
514
- * @private
515
- * @param {Function} func The function to convert.
516
- * @returns {string} Returns the source code.
517
- */
518
- function toSource(func) {
519
- if (func != null) {
520
- try {
521
- return funcToString$1.call(func);
522
- } catch (e) {}
523
- try {
524
- return (func + '');
525
- } catch (e) {}
526
- }
527
- return '';
528
- }
529
-
530
- var _toSource = toSource;
531
-
532
- /**
533
- * Used to match `RegExp`
534
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
535
- */
536
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
537
-
538
- /** Used to detect host constructors (Safari). */
539
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
540
-
541
- /** Used for built-in method references. */
542
- var funcProto = Function.prototype,
543
- objectProto$2 = Object.prototype;
544
-
545
- /** Used to resolve the decompiled source of functions. */
546
- var funcToString = funcProto.toString;
547
-
548
- /** Used to check objects for own properties. */
549
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
550
-
551
- /** Used to detect if a method is native. */
552
- var reIsNative = RegExp('^' +
553
- funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
554
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
555
- );
556
-
557
- /**
558
- * The base implementation of `_.isNative` without bad shim checks.
559
- *
560
- * @private
561
- * @param {*} value The value to check.
562
- * @returns {boolean} Returns `true` if `value` is a native function,
563
- * else `false`.
564
- */
565
- function baseIsNative(value) {
566
- if (!isObject_1(value) || _isMasked(value)) {
567
- return false;
568
- }
569
- var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
570
- return pattern.test(_toSource(value));
571
- }
572
-
573
- var _baseIsNative = baseIsNative;
574
-
575
- /**
576
- * Gets the value at `key` of `object`.
577
- *
578
- * @private
579
- * @param {Object} [object] The object to query.
580
- * @param {string} key The key of the property to get.
581
- * @returns {*} Returns the property value.
582
- */
583
- function getValue(object, key) {
584
- return object == null ? undefined : object[key];
585
- }
586
-
587
- var _getValue = getValue;
588
-
589
- /**
590
- * Gets the native function at `key` of `object`.
591
- *
592
- * @private
593
- * @param {Object} object The object to query.
594
- * @param {string} key The key of the method to get.
595
- * @returns {*} Returns the function if it's native, else `undefined`.
596
- */
597
- function getNative(object, key) {
598
- var value = _getValue(object, key);
599
- return _baseIsNative(value) ? value : undefined;
600
- }
601
-
602
- var _getNative = getNative;
603
-
604
- /* Built-in method references that are verified to be native. */
605
- var nativeCreate = _getNative(Object, 'create');
606
-
607
- var _nativeCreate = nativeCreate;
608
-
609
- /**
610
- * Removes all key-value entries from the hash.
611
- *
612
- * @private
613
- * @name clear
614
- * @memberOf Hash
615
- */
616
- function hashClear() {
617
- this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
618
- this.size = 0;
619
- }
620
-
621
- var _hashClear = hashClear;
622
-
623
- /**
624
- * Removes `key` and its value from the hash.
625
- *
626
- * @private
627
- * @name delete
628
- * @memberOf Hash
629
- * @param {Object} hash The hash to modify.
630
- * @param {string} key The key of the value to remove.
631
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
632
- */
633
- function hashDelete(key) {
634
- var result = this.has(key) && delete this.__data__[key];
635
- this.size -= result ? 1 : 0;
636
- return result;
637
- }
638
-
639
- var _hashDelete = hashDelete;
640
-
641
- /** Used to stand-in for `undefined` hash values. */
642
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
643
-
644
- /** Used for built-in method references. */
645
- var objectProto$1 = Object.prototype;
646
-
647
- /** Used to check objects for own properties. */
648
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
649
-
650
- /**
651
- * Gets the hash value for `key`.
652
- *
653
- * @private
654
- * @name get
655
- * @memberOf Hash
656
- * @param {string} key The key of the value to get.
657
- * @returns {*} Returns the entry value.
658
- */
659
- function hashGet(key) {
660
- var data = this.__data__;
661
- if (_nativeCreate) {
662
- var result = data[key];
663
- return result === HASH_UNDEFINED$1 ? undefined : result;
664
- }
665
- return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
666
- }
667
-
668
- var _hashGet = hashGet;
669
-
670
- /** Used for built-in method references. */
671
- var objectProto = Object.prototype;
672
-
673
- /** Used to check objects for own properties. */
674
- var hasOwnProperty = objectProto.hasOwnProperty;
675
-
676
- /**
677
- * Checks if a hash value for `key` exists.
678
- *
679
- * @private
680
- * @name has
681
- * @memberOf Hash
682
- * @param {string} key The key of the entry to check.
683
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
684
- */
685
- function hashHas(key) {
686
- var data = this.__data__;
687
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
688
- }
689
-
690
- var _hashHas = hashHas;
691
-
692
- /** Used to stand-in for `undefined` hash values. */
693
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
694
-
695
- /**
696
- * Sets the hash `key` to `value`.
697
- *
698
- * @private
699
- * @name set
700
- * @memberOf Hash
701
- * @param {string} key The key of the value to set.
702
- * @param {*} value The value to set.
703
- * @returns {Object} Returns the hash instance.
704
- */
705
- function hashSet(key, value) {
706
- var data = this.__data__;
707
- this.size += this.has(key) ? 0 : 1;
708
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
709
- return this;
710
- }
711
-
712
- var _hashSet = hashSet;
713
-
714
- /**
715
- * Creates a hash object.
716
- *
717
- * @private
718
- * @constructor
719
- * @param {Array} [entries] The key-value pairs to cache.
720
- */
721
- function Hash(entries) {
722
- var index = -1,
723
- length = entries == null ? 0 : entries.length;
724
-
725
- this.clear();
726
- while (++index < length) {
727
- var entry = entries[index];
728
- this.set(entry[0], entry[1]);
729
- }
730
- }
731
-
732
- // Add methods to `Hash`.
733
- Hash.prototype.clear = _hashClear;
734
- Hash.prototype['delete'] = _hashDelete;
735
- Hash.prototype.get = _hashGet;
736
- Hash.prototype.has = _hashHas;
737
- Hash.prototype.set = _hashSet;
738
-
739
- var _Hash = Hash;
740
-
741
- /**
742
- * Removes all key-value entries from the list cache.
743
- *
744
- * @private
745
- * @name clear
746
- * @memberOf ListCache
747
- */
748
- function listCacheClear() {
749
- this.__data__ = [];
750
- this.size = 0;
751
- }
752
-
753
- var _listCacheClear = listCacheClear;
754
-
755
- /**
756
- * Performs a
757
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
758
- * comparison between two values to determine if they are equivalent.
759
- *
760
- * @static
761
- * @memberOf _
762
- * @since 4.0.0
763
- * @category Lang
764
- * @param {*} value The value to compare.
765
- * @param {*} other The other value to compare.
766
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
767
- * @example
768
- *
769
- * var object = { 'a': 1 };
770
- * var other = { 'a': 1 };
771
- *
772
- * _.eq(object, object);
773
- * // => true
774
- *
775
- * _.eq(object, other);
776
- * // => false
777
- *
778
- * _.eq('a', 'a');
779
- * // => true
780
- *
781
- * _.eq('a', Object('a'));
782
- * // => false
783
- *
784
- * _.eq(NaN, NaN);
785
- * // => true
786
- */
787
- function eq(value, other) {
788
- return value === other || (value !== value && other !== other);
789
- }
790
-
791
- var eq_1 = eq;
792
-
793
- /**
794
- * Gets the index at which the `key` is found in `array` of key-value pairs.
795
- *
796
- * @private
797
- * @param {Array} array The array to inspect.
798
- * @param {*} key The key to search for.
799
- * @returns {number} Returns the index of the matched value, else `-1`.
800
- */
801
- function assocIndexOf(array, key) {
802
- var length = array.length;
803
- while (length--) {
804
- if (eq_1(array[length][0], key)) {
805
- return length;
806
- }
807
- }
808
- return -1;
809
- }
810
-
811
- var _assocIndexOf = assocIndexOf;
812
-
813
- /** Used for built-in method references. */
814
- var arrayProto = Array.prototype;
815
-
816
- /** Built-in value references. */
817
- var splice = arrayProto.splice;
818
-
819
- /**
820
- * Removes `key` and its value from the list cache.
821
- *
822
- * @private
823
- * @name delete
824
- * @memberOf ListCache
825
- * @param {string} key The key of the value to remove.
826
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
827
- */
828
- function listCacheDelete(key) {
829
- var data = this.__data__,
830
- index = _assocIndexOf(data, key);
831
-
832
- if (index < 0) {
833
- return false;
834
- }
835
- var lastIndex = data.length - 1;
836
- if (index == lastIndex) {
837
- data.pop();
838
- } else {
839
- splice.call(data, index, 1);
840
- }
841
- --this.size;
842
- return true;
843
- }
844
-
845
- var _listCacheDelete = listCacheDelete;
846
-
847
- /**
848
- * Gets the list cache value for `key`.
849
- *
850
- * @private
851
- * @name get
852
- * @memberOf ListCache
853
- * @param {string} key The key of the value to get.
854
- * @returns {*} Returns the entry value.
855
- */
856
- function listCacheGet(key) {
857
- var data = this.__data__,
858
- index = _assocIndexOf(data, key);
859
-
860
- return index < 0 ? undefined : data[index][1];
861
- }
862
-
863
- var _listCacheGet = listCacheGet;
864
-
865
- /**
866
- * Checks if a list cache value for `key` exists.
867
- *
868
- * @private
869
- * @name has
870
- * @memberOf ListCache
871
- * @param {string} key The key of the entry to check.
872
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
873
- */
874
- function listCacheHas(key) {
875
- return _assocIndexOf(this.__data__, key) > -1;
876
- }
877
-
878
- var _listCacheHas = listCacheHas;
879
-
880
- /**
881
- * Sets the list cache `key` to `value`.
882
- *
883
- * @private
884
- * @name set
885
- * @memberOf ListCache
886
- * @param {string} key The key of the value to set.
887
- * @param {*} value The value to set.
888
- * @returns {Object} Returns the list cache instance.
889
- */
890
- function listCacheSet(key, value) {
891
- var data = this.__data__,
892
- index = _assocIndexOf(data, key);
893
-
894
- if (index < 0) {
895
- ++this.size;
896
- data.push([key, value]);
897
- } else {
898
- data[index][1] = value;
899
- }
900
- return this;
901
- }
902
-
903
- var _listCacheSet = listCacheSet;
904
-
905
- /**
906
- * Creates an list cache object.
907
- *
908
- * @private
909
- * @constructor
910
- * @param {Array} [entries] The key-value pairs to cache.
911
- */
912
- function ListCache(entries) {
913
- var index = -1,
914
- length = entries == null ? 0 : entries.length;
915
-
916
- this.clear();
917
- while (++index < length) {
918
- var entry = entries[index];
919
- this.set(entry[0], entry[1]);
920
- }
921
- }
922
-
923
- // Add methods to `ListCache`.
924
- ListCache.prototype.clear = _listCacheClear;
925
- ListCache.prototype['delete'] = _listCacheDelete;
926
- ListCache.prototype.get = _listCacheGet;
927
- ListCache.prototype.has = _listCacheHas;
928
- ListCache.prototype.set = _listCacheSet;
929
-
930
- var _ListCache = ListCache;
931
-
932
- /* Built-in method references that are verified to be native. */
933
- var Map = _getNative(_root, 'Map');
934
-
935
- var _Map = Map;
936
-
937
- /**
938
- * Removes all key-value entries from the map.
939
- *
940
- * @private
941
- * @name clear
942
- * @memberOf MapCache
943
- */
944
- function mapCacheClear() {
945
- this.size = 0;
946
- this.__data__ = {
947
- 'hash': new _Hash,
948
- 'map': new (_Map || _ListCache),
949
- 'string': new _Hash
950
- };
951
- }
952
-
953
- var _mapCacheClear = mapCacheClear;
954
-
955
- /**
956
- * Checks if `value` is suitable for use as unique object key.
957
- *
958
- * @private
959
- * @param {*} value The value to check.
960
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
961
- */
962
- function isKeyable(value) {
963
- var type = typeof value;
964
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
965
- ? (value !== '__proto__')
966
- : (value === null);
967
- }
968
-
969
- var _isKeyable = isKeyable;
970
-
971
- /**
972
- * Gets the data for `map`.
973
- *
974
- * @private
975
- * @param {Object} map The map to query.
976
- * @param {string} key The reference key.
977
- * @returns {*} Returns the map data.
978
- */
979
- function getMapData(map, key) {
980
- var data = map.__data__;
981
- return _isKeyable(key)
982
- ? data[typeof key == 'string' ? 'string' : 'hash']
983
- : data.map;
984
- }
985
-
986
- var _getMapData = getMapData;
987
-
988
- /**
989
- * Removes `key` and its value from the map.
990
- *
991
- * @private
992
- * @name delete
993
- * @memberOf MapCache
994
- * @param {string} key The key of the value to remove.
995
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
996
- */
997
- function mapCacheDelete(key) {
998
- var result = _getMapData(this, key)['delete'](key);
999
- this.size -= result ? 1 : 0;
1000
- return result;
1001
- }
1002
-
1003
- var _mapCacheDelete = mapCacheDelete;
1004
-
1005
- /**
1006
- * Gets the map value for `key`.
1007
- *
1008
- * @private
1009
- * @name get
1010
- * @memberOf MapCache
1011
- * @param {string} key The key of the value to get.
1012
- * @returns {*} Returns the entry value.
1013
- */
1014
- function mapCacheGet(key) {
1015
- return _getMapData(this, key).get(key);
1016
- }
1017
-
1018
- var _mapCacheGet = mapCacheGet;
1019
-
1020
- /**
1021
- * Checks if a map value for `key` exists.
1022
- *
1023
- * @private
1024
- * @name has
1025
- * @memberOf MapCache
1026
- * @param {string} key The key of the entry to check.
1027
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1028
- */
1029
- function mapCacheHas(key) {
1030
- return _getMapData(this, key).has(key);
1031
- }
1032
-
1033
- var _mapCacheHas = mapCacheHas;
1034
-
1035
- /**
1036
- * Sets the map `key` to `value`.
1037
- *
1038
- * @private
1039
- * @name set
1040
- * @memberOf MapCache
1041
- * @param {string} key The key of the value to set.
1042
- * @param {*} value The value to set.
1043
- * @returns {Object} Returns the map cache instance.
1044
- */
1045
- function mapCacheSet(key, value) {
1046
- var data = _getMapData(this, key),
1047
- size = data.size;
1048
-
1049
- data.set(key, value);
1050
- this.size += data.size == size ? 0 : 1;
1051
- return this;
1052
- }
1053
-
1054
- var _mapCacheSet = mapCacheSet;
1055
-
1056
- /**
1057
- * Creates a map cache object to store key-value pairs.
1058
- *
1059
- * @private
1060
- * @constructor
1061
- * @param {Array} [entries] The key-value pairs to cache.
1062
- */
1063
- function MapCache(entries) {
1064
- var index = -1,
1065
- length = entries == null ? 0 : entries.length;
1066
-
1067
- this.clear();
1068
- while (++index < length) {
1069
- var entry = entries[index];
1070
- this.set(entry[0], entry[1]);
1071
- }
1072
- }
1073
-
1074
- // Add methods to `MapCache`.
1075
- MapCache.prototype.clear = _mapCacheClear;
1076
- MapCache.prototype['delete'] = _mapCacheDelete;
1077
- MapCache.prototype.get = _mapCacheGet;
1078
- MapCache.prototype.has = _mapCacheHas;
1079
- MapCache.prototype.set = _mapCacheSet;
1080
-
1081
- var _MapCache = MapCache;
1082
-
1083
- /** Error message constants. */
1084
- var FUNC_ERROR_TEXT = 'Expected a function';
1085
-
1086
- /**
1087
- * Creates a function that memoizes the result of `func`. If `resolver` is
1088
- * provided, it determines the cache key for storing the result based on the
1089
- * arguments provided to the memoized function. By default, the first argument
1090
- * provided to the memoized function is used as the map cache key. The `func`
1091
- * is invoked with the `this` binding of the memoized function.
1092
- *
1093
- * **Note:** The cache is exposed as the `cache` property on the memoized
1094
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
1095
- * constructor with one whose instances implement the
1096
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
1097
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
1098
- *
1099
- * @static
1100
- * @memberOf _
1101
- * @since 0.1.0
1102
- * @category Function
1103
- * @param {Function} func The function to have its output memoized.
1104
- * @param {Function} [resolver] The function to resolve the cache key.
1105
- * @returns {Function} Returns the new memoized function.
1106
- * @example
1107
- *
1108
- * var object = { 'a': 1, 'b': 2 };
1109
- * var other = { 'c': 3, 'd': 4 };
1110
- *
1111
- * var values = _.memoize(_.values);
1112
- * values(object);
1113
- * // => [1, 2]
1114
- *
1115
- * values(other);
1116
- * // => [3, 4]
1117
- *
1118
- * object.a = 2;
1119
- * values(object);
1120
- * // => [1, 2]
1121
- *
1122
- * // Modify the result cache.
1123
- * values.cache.set(object, ['a', 'b']);
1124
- * values(object);
1125
- * // => ['a', 'b']
1126
- *
1127
- * // Replace `_.memoize.Cache`.
1128
- * _.memoize.Cache = WeakMap;
1129
- */
1130
- function memoize(func, resolver) {
1131
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
1132
- throw new TypeError(FUNC_ERROR_TEXT);
1133
- }
1134
- var memoized = function() {
1135
- var args = arguments,
1136
- key = resolver ? resolver.apply(this, args) : args[0],
1137
- cache = memoized.cache;
1138
-
1139
- if (cache.has(key)) {
1140
- return cache.get(key);
1141
- }
1142
- var result = func.apply(this, args);
1143
- memoized.cache = cache.set(key, result) || cache;
1144
- return result;
1145
- };
1146
- memoized.cache = new (memoize.Cache || _MapCache);
1147
- return memoized;
1148
- }
1149
-
1150
- // Expose `MapCache`.
1151
- memoize.Cache = _MapCache;
1152
-
1153
- var memoize_1 = memoize;
1154
-
1155
- /** Used as the maximum memoize cache size. */
1156
- var MAX_MEMOIZE_SIZE = 500;
1157
-
1158
- /**
1159
- * A specialized version of `_.memoize` which clears the memoized function's
1160
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1161
- *
1162
- * @private
1163
- * @param {Function} func The function to have its output memoized.
1164
- * @returns {Function} Returns the new memoized function.
1165
- */
1166
- function memoizeCapped(func) {
1167
- var result = memoize_1(func, function(key) {
1168
- if (cache.size === MAX_MEMOIZE_SIZE) {
1169
- cache.clear();
1170
- }
1171
- return key;
1172
- });
1173
-
1174
- var cache = result.cache;
1175
- return result;
1176
- }
1177
-
1178
- var _memoizeCapped = memoizeCapped;
1179
-
1180
- /** Used to match property names within property paths. */
1181
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1182
-
1183
- /** Used to match backslashes in property paths. */
1184
- var reEscapeChar = /\\(\\)?/g;
1185
-
1186
- /**
1187
- * Converts `string` to a property path array.
1188
- *
1189
- * @private
1190
- * @param {string} string The string to convert.
1191
- * @returns {Array} Returns the property path array.
1192
- */
1193
- var stringToPath = _memoizeCapped(function(string) {
1194
- var result = [];
1195
- if (string.charCodeAt(0) === 46 /* . */) {
1196
- result.push('');
1197
- }
1198
- string.replace(rePropName, function(match, number, quote, subString) {
1199
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1200
- });
1201
- return result;
1202
- });
1203
-
1204
- var _stringToPath = stringToPath;
1205
-
1206
- /**
1207
- * A specialized version of `_.map` for arrays without support for iteratee
1208
- * shorthands.
1209
- *
1210
- * @private
1211
- * @param {Array} [array] The array to iterate over.
1212
- * @param {Function} iteratee The function invoked per iteration.
1213
- * @returns {Array} Returns the new mapped array.
1214
- */
1215
- function arrayMap(array, iteratee) {
1216
- var index = -1,
1217
- length = array == null ? 0 : array.length,
1218
- result = Array(length);
1219
-
1220
- while (++index < length) {
1221
- result[index] = iteratee(array[index], index, array);
1222
- }
1223
- return result;
1224
- }
1225
-
1226
- var _arrayMap = arrayMap;
1227
-
1228
- /** Used as references for various `Number` constants. */
1229
- var INFINITY$1 = 1 / 0;
1230
-
1231
- /** Used to convert symbols to primitives and strings. */
1232
- var symbolProto = _Symbol ? _Symbol.prototype : undefined,
1233
- symbolToString = symbolProto ? symbolProto.toString : undefined;
1234
-
1235
- /**
1236
- * The base implementation of `_.toString` which doesn't convert nullish
1237
- * values to empty strings.
1238
- *
1239
- * @private
1240
- * @param {*} value The value to process.
1241
- * @returns {string} Returns the string.
1242
- */
1243
- function baseToString(value) {
1244
- // Exit early for strings to avoid a performance hit in some environments.
1245
- if (typeof value == 'string') {
1246
- return value;
1247
- }
1248
- if (isArray_1(value)) {
1249
- // Recursively convert values (susceptible to call stack limits).
1250
- return _arrayMap(value, baseToString) + '';
1251
- }
1252
- if (isSymbol_1(value)) {
1253
- return symbolToString ? symbolToString.call(value) : '';
1254
- }
1255
- var result = (value + '');
1256
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
1257
- }
1258
-
1259
- var _baseToString = baseToString;
1260
-
1261
- /**
1262
- * Converts `value` to a string. An empty string is returned for `null`
1263
- * and `undefined` values. The sign of `-0` is preserved.
1264
- *
1265
- * @static
1266
- * @memberOf _
1267
- * @since 4.0.0
1268
- * @category Lang
1269
- * @param {*} value The value to convert.
1270
- * @returns {string} Returns the converted string.
1271
- * @example
1272
- *
1273
- * _.toString(null);
1274
- * // => ''
1275
- *
1276
- * _.toString(-0);
1277
- * // => '-0'
1278
- *
1279
- * _.toString([1, 2, 3]);
1280
- * // => '1,2,3'
1281
- */
1282
- function toString(value) {
1283
- return value == null ? '' : _baseToString(value);
1284
- }
1285
-
1286
- var toString_1 = toString;
1287
-
1288
- /**
1289
- * Casts `value` to a path array if it's not one.
1290
- *
1291
- * @private
1292
- * @param {*} value The value to inspect.
1293
- * @param {Object} [object] The object to query keys on.
1294
- * @returns {Array} Returns the cast property path array.
1295
- */
1296
- function castPath(value, object) {
1297
- if (isArray_1(value)) {
1298
- return value;
1299
- }
1300
- return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
1301
- }
1302
-
1303
- var _castPath = castPath;
1304
-
1305
- /** Used as references for various `Number` constants. */
1306
- var INFINITY = 1 / 0;
1307
-
1308
- /**
1309
- * Converts `value` to a string key if it's not a string or symbol.
1310
- *
1311
- * @private
1312
- * @param {*} value The value to inspect.
1313
- * @returns {string|symbol} Returns the key.
1314
- */
1315
- function toKey(value) {
1316
- if (typeof value == 'string' || isSymbol_1(value)) {
1317
- return value;
1318
- }
1319
- var result = (value + '');
1320
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
1321
- }
1322
-
1323
- var _toKey = toKey;
1324
-
1325
- /**
1326
- * The base implementation of `_.get` without support for default values.
1327
- *
1328
- * @private
1329
- * @param {Object} object The object to query.
1330
- * @param {Array|string} path The path of the property to get.
1331
- * @returns {*} Returns the resolved value.
1332
- */
1333
- function baseGet(object, path) {
1334
- path = _castPath(path, object);
1335
-
1336
- var index = 0,
1337
- length = path.length;
1338
-
1339
- while (object != null && index < length) {
1340
- object = object[_toKey(path[index++])];
1341
- }
1342
- return (index && index == length) ? object : undefined;
1343
- }
1344
-
1345
- var _baseGet = baseGet;
1346
-
1347
- /**
1348
- * Gets the value at `path` of `object`. If the resolved value is
1349
- * `undefined`, the `defaultValue` is returned in its place.
1350
- *
1351
- * @static
1352
- * @memberOf _
1353
- * @since 3.7.0
1354
- * @category Object
1355
- * @param {Object} object The object to query.
1356
- * @param {Array|string} path The path of the property to get.
1357
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
1358
- * @returns {*} Returns the resolved value.
1359
- * @example
1360
- *
1361
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
1362
- *
1363
- * _.get(object, 'a[0].b.c');
1364
- * // => 3
1365
- *
1366
- * _.get(object, ['a', '0', 'b', 'c']);
1367
- * // => 3
1368
- *
1369
- * _.get(object, 'a.b.c', 'default');
1370
- * // => 'default'
1371
- */
1372
- function get(object, path, defaultValue) {
1373
- var result = object == null ? undefined : _baseGet(object, path);
1374
- return result === undefined ? defaultValue : result;
1375
- }
1376
-
1377
- var get_1 = get;
1378
-
1379
- function _typeof(obj) {
1380
- "@babel/helpers - typeof";
1381
-
1382
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1383
- return typeof obj;
1384
- } : function (obj) {
1385
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1386
- }, _typeof(obj);
1387
- }
1388
-
1389
- /**
1390
- * Copyright (c) 2014-present, Facebook, Inc.
1391
- *
1392
- * This source code is licensed under the MIT license found in the
1393
- * LICENSE file in the root directory of this source tree.
1394
- */
1395
-
1396
- createCommonjsModule(function (module) {
1397
- var runtime = (function (exports) {
1398
-
1399
- var Op = Object.prototype;
1400
- var hasOwn = Op.hasOwnProperty;
1401
- var undefined$1; // More compressible than void 0.
1402
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
1403
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
1404
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
1405
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
1406
-
1407
- function define(obj, key, value) {
1408
- Object.defineProperty(obj, key, {
1409
- value: value,
1410
- enumerable: true,
1411
- configurable: true,
1412
- writable: true
1413
- });
1414
- return obj[key];
1415
- }
1416
- try {
1417
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
1418
- define({}, "");
1419
- } catch (err) {
1420
- define = function(obj, key, value) {
1421
- return obj[key] = value;
1422
- };
1423
- }
1424
-
1425
- function wrap(innerFn, outerFn, self, tryLocsList) {
1426
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
1427
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
1428
- var generator = Object.create(protoGenerator.prototype);
1429
- var context = new Context(tryLocsList || []);
1430
-
1431
- // The ._invoke method unifies the implementations of the .next,
1432
- // .throw, and .return methods.
1433
- generator._invoke = makeInvokeMethod(innerFn, self, context);
1434
-
1435
- return generator;
1436
- }
1437
- exports.wrap = wrap;
1438
-
1439
- // Try/catch helper to minimize deoptimizations. Returns a completion
1440
- // record like context.tryEntries[i].completion. This interface could
1441
- // have been (and was previously) designed to take a closure to be
1442
- // invoked without arguments, but in all the cases we care about we
1443
- // already have an existing method we want to call, so there's no need
1444
- // to create a new function object. We can even get away with assuming
1445
- // the method takes exactly one argument, since that happens to be true
1446
- // in every case, so we don't have to touch the arguments object. The
1447
- // only additional allocation required is the completion record, which
1448
- // has a stable shape and so hopefully should be cheap to allocate.
1449
- function tryCatch(fn, obj, arg) {
1450
- try {
1451
- return { type: "normal", arg: fn.call(obj, arg) };
1452
- } catch (err) {
1453
- return { type: "throw", arg: err };
1454
- }
1455
- }
1456
-
1457
- var GenStateSuspendedStart = "suspendedStart";
1458
- var GenStateSuspendedYield = "suspendedYield";
1459
- var GenStateExecuting = "executing";
1460
- var GenStateCompleted = "completed";
1461
-
1462
- // Returning this object from the innerFn has the same effect as
1463
- // breaking out of the dispatch switch statement.
1464
- var ContinueSentinel = {};
1465
-
1466
- // Dummy constructor functions that we use as the .constructor and
1467
- // .constructor.prototype properties for functions that return Generator
1468
- // objects. For full spec compliance, you may wish to configure your
1469
- // minifier not to mangle the names of these two functions.
1470
- function Generator() {}
1471
- function GeneratorFunction() {}
1472
- function GeneratorFunctionPrototype() {}
1473
-
1474
- // This is a polyfill for %IteratorPrototype% for environments that
1475
- // don't natively support it.
1476
- var IteratorPrototype = {};
1477
- define(IteratorPrototype, iteratorSymbol, function () {
1478
- return this;
1479
- });
1480
-
1481
- var getProto = Object.getPrototypeOf;
1482
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
1483
- if (NativeIteratorPrototype &&
1484
- NativeIteratorPrototype !== Op &&
1485
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
1486
- // This environment has a native %IteratorPrototype%; use it instead
1487
- // of the polyfill.
1488
- IteratorPrototype = NativeIteratorPrototype;
1489
- }
1490
-
1491
- var Gp = GeneratorFunctionPrototype.prototype =
1492
- Generator.prototype = Object.create(IteratorPrototype);
1493
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
1494
- define(Gp, "constructor", GeneratorFunctionPrototype);
1495
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
1496
- GeneratorFunction.displayName = define(
1497
- GeneratorFunctionPrototype,
1498
- toStringTagSymbol,
1499
- "GeneratorFunction"
1500
- );
1501
-
1502
- // Helper for defining the .next, .throw, and .return methods of the
1503
- // Iterator interface in terms of a single ._invoke method.
1504
- function defineIteratorMethods(prototype) {
1505
- ["next", "throw", "return"].forEach(function(method) {
1506
- define(prototype, method, function(arg) {
1507
- return this._invoke(method, arg);
1508
- });
1509
- });
1510
- }
1511
-
1512
- exports.isGeneratorFunction = function(genFun) {
1513
- var ctor = typeof genFun === "function" && genFun.constructor;
1514
- return ctor
1515
- ? ctor === GeneratorFunction ||
1516
- // For the native GeneratorFunction constructor, the best we can
1517
- // do is to check its .name property.
1518
- (ctor.displayName || ctor.name) === "GeneratorFunction"
1519
- : false;
1520
- };
1521
-
1522
- exports.mark = function(genFun) {
1523
- if (Object.setPrototypeOf) {
1524
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
1525
- } else {
1526
- genFun.__proto__ = GeneratorFunctionPrototype;
1527
- define(genFun, toStringTagSymbol, "GeneratorFunction");
1528
- }
1529
- genFun.prototype = Object.create(Gp);
1530
- return genFun;
1531
- };
1532
-
1533
- // Within the body of any async function, `await x` is transformed to
1534
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
1535
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
1536
- // meant to be awaited.
1537
- exports.awrap = function(arg) {
1538
- return { __await: arg };
1539
- };
1540
-
1541
- function AsyncIterator(generator, PromiseImpl) {
1542
- function invoke(method, arg, resolve, reject) {
1543
- var record = tryCatch(generator[method], generator, arg);
1544
- if (record.type === "throw") {
1545
- reject(record.arg);
1546
- } else {
1547
- var result = record.arg;
1548
- var value = result.value;
1549
- if (value &&
1550
- typeof value === "object" &&
1551
- hasOwn.call(value, "__await")) {
1552
- return PromiseImpl.resolve(value.__await).then(function(value) {
1553
- invoke("next", value, resolve, reject);
1554
- }, function(err) {
1555
- invoke("throw", err, resolve, reject);
1556
- });
1557
- }
1558
-
1559
- return PromiseImpl.resolve(value).then(function(unwrapped) {
1560
- // When a yielded Promise is resolved, its final value becomes
1561
- // the .value of the Promise<{value,done}> result for the
1562
- // current iteration.
1563
- result.value = unwrapped;
1564
- resolve(result);
1565
- }, function(error) {
1566
- // If a rejected Promise was yielded, throw the rejection back
1567
- // into the async generator function so it can be handled there.
1568
- return invoke("throw", error, resolve, reject);
1569
- });
1570
- }
1571
- }
1572
-
1573
- var previousPromise;
1574
-
1575
- function enqueue(method, arg) {
1576
- function callInvokeWithMethodAndArg() {
1577
- return new PromiseImpl(function(resolve, reject) {
1578
- invoke(method, arg, resolve, reject);
1579
- });
1580
- }
1581
-
1582
- return previousPromise =
1583
- // If enqueue has been called before, then we want to wait until
1584
- // all previous Promises have been resolved before calling invoke,
1585
- // so that results are always delivered in the correct order. If
1586
- // enqueue has not been called before, then it is important to
1587
- // call invoke immediately, without waiting on a callback to fire,
1588
- // so that the async generator function has the opportunity to do
1589
- // any necessary setup in a predictable way. This predictability
1590
- // is why the Promise constructor synchronously invokes its
1591
- // executor callback, and why async functions synchronously
1592
- // execute code before the first await. Since we implement simple
1593
- // async functions in terms of async generators, it is especially
1594
- // important to get this right, even though it requires care.
1595
- previousPromise ? previousPromise.then(
1596
- callInvokeWithMethodAndArg,
1597
- // Avoid propagating failures to Promises returned by later
1598
- // invocations of the iterator.
1599
- callInvokeWithMethodAndArg
1600
- ) : callInvokeWithMethodAndArg();
1601
- }
1602
-
1603
- // Define the unified helper method that is used to implement .next,
1604
- // .throw, and .return (see defineIteratorMethods).
1605
- this._invoke = enqueue;
1606
- }
1607
-
1608
- defineIteratorMethods(AsyncIterator.prototype);
1609
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
1610
- return this;
1611
- });
1612
- exports.AsyncIterator = AsyncIterator;
1613
-
1614
- // Note that simple async functions are implemented on top of
1615
- // AsyncIterator objects; they just return a Promise for the value of
1616
- // the final result produced by the iterator.
1617
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
1618
- if (PromiseImpl === void 0) PromiseImpl = Promise;
1619
-
1620
- var iter = new AsyncIterator(
1621
- wrap(innerFn, outerFn, self, tryLocsList),
1622
- PromiseImpl
1623
- );
1624
-
1625
- return exports.isGeneratorFunction(outerFn)
1626
- ? iter // If outerFn is a generator, return the full iterator.
1627
- : iter.next().then(function(result) {
1628
- return result.done ? result.value : iter.next();
1629
- });
1630
- };
1631
-
1632
- function makeInvokeMethod(innerFn, self, context) {
1633
- var state = GenStateSuspendedStart;
1634
-
1635
- return function invoke(method, arg) {
1636
- if (state === GenStateExecuting) {
1637
- throw new Error("Generator is already running");
1638
- }
1639
-
1640
- if (state === GenStateCompleted) {
1641
- if (method === "throw") {
1642
- throw arg;
1643
- }
1644
-
1645
- // Be forgiving, per 25.3.3.3.3 of the spec:
1646
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
1647
- return doneResult();
1648
- }
1649
-
1650
- context.method = method;
1651
- context.arg = arg;
1652
-
1653
- while (true) {
1654
- var delegate = context.delegate;
1655
- if (delegate) {
1656
- var delegateResult = maybeInvokeDelegate(delegate, context);
1657
- if (delegateResult) {
1658
- if (delegateResult === ContinueSentinel) continue;
1659
- return delegateResult;
1660
- }
1661
- }
1662
-
1663
- if (context.method === "next") {
1664
- // Setting context._sent for legacy support of Babel's
1665
- // function.sent implementation.
1666
- context.sent = context._sent = context.arg;
1667
-
1668
- } else if (context.method === "throw") {
1669
- if (state === GenStateSuspendedStart) {
1670
- state = GenStateCompleted;
1671
- throw context.arg;
1672
- }
1673
-
1674
- context.dispatchException(context.arg);
1675
-
1676
- } else if (context.method === "return") {
1677
- context.abrupt("return", context.arg);
1678
- }
1679
-
1680
- state = GenStateExecuting;
1681
-
1682
- var record = tryCatch(innerFn, self, context);
1683
- if (record.type === "normal") {
1684
- // If an exception is thrown from innerFn, we leave state ===
1685
- // GenStateExecuting and loop back for another invocation.
1686
- state = context.done
1687
- ? GenStateCompleted
1688
- : GenStateSuspendedYield;
1689
-
1690
- if (record.arg === ContinueSentinel) {
1691
- continue;
1692
- }
1693
-
1694
- return {
1695
- value: record.arg,
1696
- done: context.done
1697
- };
1698
-
1699
- } else if (record.type === "throw") {
1700
- state = GenStateCompleted;
1701
- // Dispatch the exception by looping back around to the
1702
- // context.dispatchException(context.arg) call above.
1703
- context.method = "throw";
1704
- context.arg = record.arg;
1705
- }
1706
- }
1707
- };
1708
- }
1709
-
1710
- // Call delegate.iterator[context.method](context.arg) and handle the
1711
- // result, either by returning a { value, done } result from the
1712
- // delegate iterator, or by modifying context.method and context.arg,
1713
- // setting context.delegate to null, and returning the ContinueSentinel.
1714
- function maybeInvokeDelegate(delegate, context) {
1715
- var method = delegate.iterator[context.method];
1716
- if (method === undefined$1) {
1717
- // A .throw or .return when the delegate iterator has no .throw
1718
- // method always terminates the yield* loop.
1719
- context.delegate = null;
1720
-
1721
- if (context.method === "throw") {
1722
- // Note: ["return"] must be used for ES3 parsing compatibility.
1723
- if (delegate.iterator["return"]) {
1724
- // If the delegate iterator has a return method, give it a
1725
- // chance to clean up.
1726
- context.method = "return";
1727
- context.arg = undefined$1;
1728
- maybeInvokeDelegate(delegate, context);
1729
-
1730
- if (context.method === "throw") {
1731
- // If maybeInvokeDelegate(context) changed context.method from
1732
- // "return" to "throw", let that override the TypeError below.
1733
- return ContinueSentinel;
1734
- }
1735
- }
1736
-
1737
- context.method = "throw";
1738
- context.arg = new TypeError(
1739
- "The iterator does not provide a 'throw' method");
1740
- }
1741
-
1742
- return ContinueSentinel;
1743
- }
1744
-
1745
- var record = tryCatch(method, delegate.iterator, context.arg);
1746
-
1747
- if (record.type === "throw") {
1748
- context.method = "throw";
1749
- context.arg = record.arg;
1750
- context.delegate = null;
1751
- return ContinueSentinel;
1752
- }
1753
-
1754
- var info = record.arg;
1755
-
1756
- if (! info) {
1757
- context.method = "throw";
1758
- context.arg = new TypeError("iterator result is not an object");
1759
- context.delegate = null;
1760
- return ContinueSentinel;
1761
- }
1762
-
1763
- if (info.done) {
1764
- // Assign the result of the finished delegate to the temporary
1765
- // variable specified by delegate.resultName (see delegateYield).
1766
- context[delegate.resultName] = info.value;
1767
-
1768
- // Resume execution at the desired location (see delegateYield).
1769
- context.next = delegate.nextLoc;
1770
-
1771
- // If context.method was "throw" but the delegate handled the
1772
- // exception, let the outer generator proceed normally. If
1773
- // context.method was "next", forget context.arg since it has been
1774
- // "consumed" by the delegate iterator. If context.method was
1775
- // "return", allow the original .return call to continue in the
1776
- // outer generator.
1777
- if (context.method !== "return") {
1778
- context.method = "next";
1779
- context.arg = undefined$1;
1780
- }
1781
-
1782
- } else {
1783
- // Re-yield the result returned by the delegate method.
1784
- return info;
1785
- }
1786
-
1787
- // The delegate iterator is finished, so forget it and continue with
1788
- // the outer generator.
1789
- context.delegate = null;
1790
- return ContinueSentinel;
1791
- }
1792
-
1793
- // Define Generator.prototype.{next,throw,return} in terms of the
1794
- // unified ._invoke helper method.
1795
- defineIteratorMethods(Gp);
1796
-
1797
- define(Gp, toStringTagSymbol, "Generator");
1798
-
1799
- // A Generator should always return itself as the iterator object when the
1800
- // @@iterator function is called on it. Some browsers' implementations of the
1801
- // iterator prototype chain incorrectly implement this, causing the Generator
1802
- // object to not be returned from this call. This ensures that doesn't happen.
1803
- // See https://github.com/facebook/regenerator/issues/274 for more details.
1804
- define(Gp, iteratorSymbol, function() {
1805
- return this;
1806
- });
1807
-
1808
- define(Gp, "toString", function() {
1809
- return "[object Generator]";
1810
- });
1811
-
1812
- function pushTryEntry(locs) {
1813
- var entry = { tryLoc: locs[0] };
1814
-
1815
- if (1 in locs) {
1816
- entry.catchLoc = locs[1];
1817
- }
1818
-
1819
- if (2 in locs) {
1820
- entry.finallyLoc = locs[2];
1821
- entry.afterLoc = locs[3];
1822
- }
1823
-
1824
- this.tryEntries.push(entry);
1825
- }
1826
-
1827
- function resetTryEntry(entry) {
1828
- var record = entry.completion || {};
1829
- record.type = "normal";
1830
- delete record.arg;
1831
- entry.completion = record;
1832
- }
1833
-
1834
- function Context(tryLocsList) {
1835
- // The root entry object (effectively a try statement without a catch
1836
- // or a finally block) gives us a place to store values thrown from
1837
- // locations where there is no enclosing try statement.
1838
- this.tryEntries = [{ tryLoc: "root" }];
1839
- tryLocsList.forEach(pushTryEntry, this);
1840
- this.reset(true);
1841
- }
1842
-
1843
- exports.keys = function(object) {
1844
- var keys = [];
1845
- for (var key in object) {
1846
- keys.push(key);
1847
- }
1848
- keys.reverse();
1849
-
1850
- // Rather than returning an object with a next method, we keep
1851
- // things simple and return the next function itself.
1852
- return function next() {
1853
- while (keys.length) {
1854
- var key = keys.pop();
1855
- if (key in object) {
1856
- next.value = key;
1857
- next.done = false;
1858
- return next;
1859
- }
1860
- }
1861
-
1862
- // To avoid creating an additional object, we just hang the .value
1863
- // and .done properties off the next function object itself. This
1864
- // also ensures that the minifier will not anonymize the function.
1865
- next.done = true;
1866
- return next;
1867
- };
1868
- };
1869
-
1870
- function values(iterable) {
1871
- if (iterable) {
1872
- var iteratorMethod = iterable[iteratorSymbol];
1873
- if (iteratorMethod) {
1874
- return iteratorMethod.call(iterable);
1875
- }
1876
-
1877
- if (typeof iterable.next === "function") {
1878
- return iterable;
1879
- }
1880
-
1881
- if (!isNaN(iterable.length)) {
1882
- var i = -1, next = function next() {
1883
- while (++i < iterable.length) {
1884
- if (hasOwn.call(iterable, i)) {
1885
- next.value = iterable[i];
1886
- next.done = false;
1887
- return next;
1888
- }
1889
- }
1890
-
1891
- next.value = undefined$1;
1892
- next.done = true;
1893
-
1894
- return next;
1895
- };
1896
-
1897
- return next.next = next;
1898
- }
1899
- }
1900
-
1901
- // Return an iterator with no values.
1902
- return { next: doneResult };
1903
- }
1904
- exports.values = values;
1905
-
1906
- function doneResult() {
1907
- return { value: undefined$1, done: true };
1908
- }
1909
-
1910
- Context.prototype = {
1911
- constructor: Context,
1912
-
1913
- reset: function(skipTempReset) {
1914
- this.prev = 0;
1915
- this.next = 0;
1916
- // Resetting context._sent for legacy support of Babel's
1917
- // function.sent implementation.
1918
- this.sent = this._sent = undefined$1;
1919
- this.done = false;
1920
- this.delegate = null;
1921
-
1922
- this.method = "next";
1923
- this.arg = undefined$1;
1924
-
1925
- this.tryEntries.forEach(resetTryEntry);
1926
-
1927
- if (!skipTempReset) {
1928
- for (var name in this) {
1929
- // Not sure about the optimal order of these conditions:
1930
- if (name.charAt(0) === "t" &&
1931
- hasOwn.call(this, name) &&
1932
- !isNaN(+name.slice(1))) {
1933
- this[name] = undefined$1;
1934
- }
1935
- }
1936
- }
1937
- },
1938
-
1939
- stop: function() {
1940
- this.done = true;
1941
-
1942
- var rootEntry = this.tryEntries[0];
1943
- var rootRecord = rootEntry.completion;
1944
- if (rootRecord.type === "throw") {
1945
- throw rootRecord.arg;
1946
- }
1947
-
1948
- return this.rval;
1949
- },
1950
-
1951
- dispatchException: function(exception) {
1952
- if (this.done) {
1953
- throw exception;
1954
- }
1955
-
1956
- var context = this;
1957
- function handle(loc, caught) {
1958
- record.type = "throw";
1959
- record.arg = exception;
1960
- context.next = loc;
1961
-
1962
- if (caught) {
1963
- // If the dispatched exception was caught by a catch block,
1964
- // then let that catch block handle the exception normally.
1965
- context.method = "next";
1966
- context.arg = undefined$1;
1967
- }
1968
-
1969
- return !! caught;
1970
- }
1971
-
1972
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1973
- var entry = this.tryEntries[i];
1974
- var record = entry.completion;
1975
-
1976
- if (entry.tryLoc === "root") {
1977
- // Exception thrown outside of any try block that could handle
1978
- // it, so set the completion value of the entire function to
1979
- // throw the exception.
1980
- return handle("end");
1981
- }
1982
-
1983
- if (entry.tryLoc <= this.prev) {
1984
- var hasCatch = hasOwn.call(entry, "catchLoc");
1985
- var hasFinally = hasOwn.call(entry, "finallyLoc");
1986
-
1987
- if (hasCatch && hasFinally) {
1988
- if (this.prev < entry.catchLoc) {
1989
- return handle(entry.catchLoc, true);
1990
- } else if (this.prev < entry.finallyLoc) {
1991
- return handle(entry.finallyLoc);
1992
- }
1993
-
1994
- } else if (hasCatch) {
1995
- if (this.prev < entry.catchLoc) {
1996
- return handle(entry.catchLoc, true);
1997
- }
1998
-
1999
- } else if (hasFinally) {
2000
- if (this.prev < entry.finallyLoc) {
2001
- return handle(entry.finallyLoc);
2002
- }
2003
-
2004
- } else {
2005
- throw new Error("try statement without catch or finally");
2006
- }
2007
- }
2008
- }
2009
- },
2010
-
2011
- abrupt: function(type, arg) {
2012
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2013
- var entry = this.tryEntries[i];
2014
- if (entry.tryLoc <= this.prev &&
2015
- hasOwn.call(entry, "finallyLoc") &&
2016
- this.prev < entry.finallyLoc) {
2017
- var finallyEntry = entry;
2018
- break;
2019
- }
2020
- }
2021
-
2022
- if (finallyEntry &&
2023
- (type === "break" ||
2024
- type === "continue") &&
2025
- finallyEntry.tryLoc <= arg &&
2026
- arg <= finallyEntry.finallyLoc) {
2027
- // Ignore the finally entry if control is not jumping to a
2028
- // location outside the try/catch block.
2029
- finallyEntry = null;
2030
- }
2031
-
2032
- var record = finallyEntry ? finallyEntry.completion : {};
2033
- record.type = type;
2034
- record.arg = arg;
2035
-
2036
- if (finallyEntry) {
2037
- this.method = "next";
2038
- this.next = finallyEntry.finallyLoc;
2039
- return ContinueSentinel;
2040
- }
2041
-
2042
- return this.complete(record);
2043
- },
2044
-
2045
- complete: function(record, afterLoc) {
2046
- if (record.type === "throw") {
2047
- throw record.arg;
2048
- }
2049
-
2050
- if (record.type === "break" ||
2051
- record.type === "continue") {
2052
- this.next = record.arg;
2053
- } else if (record.type === "return") {
2054
- this.rval = this.arg = record.arg;
2055
- this.method = "return";
2056
- this.next = "end";
2057
- } else if (record.type === "normal" && afterLoc) {
2058
- this.next = afterLoc;
2059
- }
2060
-
2061
- return ContinueSentinel;
2062
- },
2063
-
2064
- finish: function(finallyLoc) {
2065
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2066
- var entry = this.tryEntries[i];
2067
- if (entry.finallyLoc === finallyLoc) {
2068
- this.complete(entry.completion, entry.afterLoc);
2069
- resetTryEntry(entry);
2070
- return ContinueSentinel;
2071
- }
2072
- }
2073
- },
2074
-
2075
- "catch": function(tryLoc) {
2076
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2077
- var entry = this.tryEntries[i];
2078
- if (entry.tryLoc === tryLoc) {
2079
- var record = entry.completion;
2080
- if (record.type === "throw") {
2081
- var thrown = record.arg;
2082
- resetTryEntry(entry);
2083
- }
2084
- return thrown;
2085
- }
2086
- }
2087
-
2088
- // The context.catch method must only be called with a location
2089
- // argument that corresponds to a known catch block.
2090
- throw new Error("illegal catch attempt");
2091
- },
2092
-
2093
- delegateYield: function(iterable, resultName, nextLoc) {
2094
- this.delegate = {
2095
- iterator: values(iterable),
2096
- resultName: resultName,
2097
- nextLoc: nextLoc
2098
- };
2099
-
2100
- if (this.method === "next") {
2101
- // Deliberately forget the last sent value so that we don't
2102
- // accidentally pass it on to the delegate.
2103
- this.arg = undefined$1;
2104
- }
2105
-
2106
- return ContinueSentinel;
2107
- }
2108
- };
2109
-
2110
- // Regardless of whether this script is executing as a CommonJS module
2111
- // or not, return the runtime object so that we can declare the variable
2112
- // regeneratorRuntime in the outer scope, which allows this module to be
2113
- // injected easily by `bin/regenerator --include-runtime script.js`.
2114
- return exports;
2115
-
2116
- }(
2117
- // If this script is executing as a CommonJS module, use module.exports
2118
- // as the regeneratorRuntime namespace. Otherwise create a new empty
2119
- // object. Either way, the resulting object will be used to initialize
2120
- // the regeneratorRuntime variable at the top of this file.
2121
- module.exports
2122
- ));
2123
-
2124
- try {
2125
- regeneratorRuntime = runtime;
2126
- } catch (accidentalStrictMode) {
2127
- // This module should not be running in strict mode, so the above
2128
- // assignment should always work unless something is misconfigured. Just
2129
- // in case runtime.js accidentally runs in strict mode, in modern engines
2130
- // we can explicitly access globalThis. In older engines we can escape
2131
- // strict mode using a global Function call. This could conceivably fail
2132
- // if a Content Security Policy forbids using Function, but in that case
2133
- // the proper solution is to fix the accidental strict mode problem. If
2134
- // you've misconfigured your bundler to force strict mode and applied a
2135
- // CSP to forbid Function, and you're not willing to fix either of those
2136
- // problems, please detail your unique predicament in a GitHub issue.
2137
- if (typeof globalThis === "object") {
2138
- globalThis.regeneratorRuntime = runtime;
2139
- } else {
2140
- Function("r", "regeneratorRuntime = r")(runtime);
2141
- }
2142
- }
2143
- });
2144
-
2145
- /**
2146
- * A specialized version of `_.reduce` for arrays without support for
2147
- * iteratee shorthands.
2148
- *
2149
- * @private
2150
- * @param {Array} [array] The array to iterate over.
2151
- * @param {Function} iteratee The function invoked per iteration.
2152
- * @param {*} [accumulator] The initial value.
2153
- * @param {boolean} [initAccum] Specify using the first element of `array` as
2154
- * the initial value.
2155
- * @returns {*} Returns the accumulated value.
2156
- */
2157
- function arrayReduce(array, iteratee, accumulator, initAccum) {
2158
- var index = -1,
2159
- length = array == null ? 0 : array.length;
2160
-
2161
- if (initAccum && length) {
2162
- accumulator = array[++index];
2163
- }
2164
- while (++index < length) {
2165
- accumulator = iteratee(accumulator, array[index], index, array);
2166
- }
2167
- return accumulator;
2168
- }
2169
-
2170
- var _arrayReduce = arrayReduce;
2171
-
2172
- /**
2173
- * The base implementation of `_.propertyOf` without support for deep paths.
2174
- *
2175
- * @private
2176
- * @param {Object} object The object to query.
2177
- * @returns {Function} Returns the new accessor function.
2178
- */
2179
- function basePropertyOf(object) {
2180
- return function(key) {
2181
- return object == null ? undefined : object[key];
2182
- };
2183
- }
2184
-
2185
- var _basePropertyOf = basePropertyOf;
2186
-
2187
- /** Used to map Latin Unicode letters to basic Latin letters. */
2188
- var deburredLetters = {
2189
- // Latin-1 Supplement block.
2190
- '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
2191
- '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
2192
- '\xc7': 'C', '\xe7': 'c',
2193
- '\xd0': 'D', '\xf0': 'd',
2194
- '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
2195
- '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
2196
- '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
2197
- '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
2198
- '\xd1': 'N', '\xf1': 'n',
2199
- '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
2200
- '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
2201
- '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
2202
- '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
2203
- '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
2204
- '\xc6': 'Ae', '\xe6': 'ae',
2205
- '\xde': 'Th', '\xfe': 'th',
2206
- '\xdf': 'ss',
2207
- // Latin Extended-A block.
2208
- '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
2209
- '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
2210
- '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
2211
- '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
2212
- '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
2213
- '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
2214
- '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
2215
- '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
2216
- '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
2217
- '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
2218
- '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
2219
- '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
2220
- '\u0134': 'J', '\u0135': 'j',
2221
- '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
2222
- '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
2223
- '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
2224
- '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
2225
- '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
2226
- '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
2227
- '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
2228
- '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
2229
- '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
2230
- '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
2231
- '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
2232
- '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
2233
- '\u0163': 't', '\u0165': 't', '\u0167': 't',
2234
- '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
2235
- '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
2236
- '\u0174': 'W', '\u0175': 'w',
2237
- '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
2238
- '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
2239
- '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
2240
- '\u0132': 'IJ', '\u0133': 'ij',
2241
- '\u0152': 'Oe', '\u0153': 'oe',
2242
- '\u0149': "'n", '\u017f': 's'
43
+ return React.useContext(StateContext);
2243
44
  };
2244
45
 
2245
- /**
2246
- * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
2247
- * letters to basic Latin letters.
2248
- *
2249
- * @private
2250
- * @param {string} letter The matched letter to deburr.
2251
- * @returns {string} Returns the deburred letter.
2252
- */
2253
- var deburrLetter = _basePropertyOf(deburredLetters);
2254
-
2255
- var _deburrLetter = deburrLetter;
2256
-
2257
- /** Used to match Latin Unicode letters (excluding mathematical operators). */
2258
- var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
2259
-
2260
- /** Used to compose unicode character classes. */
2261
- var rsComboMarksRange$1 = '\\u0300-\\u036f',
2262
- reComboHalfMarksRange$1 = '\\ufe20-\\ufe2f',
2263
- rsComboSymbolsRange$1 = '\\u20d0-\\u20ff',
2264
- rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1;
2265
-
2266
- /** Used to compose unicode capture groups. */
2267
- var rsCombo$1 = '[' + rsComboRange$1 + ']';
2268
-
2269
- /**
2270
- * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
2271
- * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
2272
- */
2273
- var reComboMark = RegExp(rsCombo$1, 'g');
2274
-
2275
- /**
2276
- * Deburrs `string` by converting
2277
- * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
2278
- * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
2279
- * letters to basic Latin letters and removing
2280
- * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
2281
- *
2282
- * @static
2283
- * @memberOf _
2284
- * @since 3.0.0
2285
- * @category String
2286
- * @param {string} [string=''] The string to deburr.
2287
- * @returns {string} Returns the deburred string.
2288
- * @example
2289
- *
2290
- * _.deburr('déjà vu');
2291
- * // => 'deja vu'
2292
- */
2293
- function deburr(string) {
2294
- string = toString_1(string);
2295
- return string && string.replace(reLatin, _deburrLetter).replace(reComboMark, '');
2296
- }
2297
-
2298
- var deburr_1 = deburr;
2299
-
2300
- /** Used to match words composed of alphanumeric characters. */
2301
- var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
2302
-
2303
- /**
2304
- * Splits an ASCII `string` into an array of its words.
2305
- *
2306
- * @private
2307
- * @param {string} The string to inspect.
2308
- * @returns {Array} Returns the words of `string`.
2309
- */
2310
- function asciiWords(string) {
2311
- return string.match(reAsciiWord) || [];
2312
- }
2313
-
2314
- var _asciiWords = asciiWords;
2315
-
2316
- /** Used to detect strings that need a more robust regexp to match words. */
2317
- 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 ]/;
2318
-
2319
- /**
2320
- * Checks if `string` contains a word composed of Unicode symbols.
2321
- *
2322
- * @private
2323
- * @param {string} string The string to inspect.
2324
- * @returns {boolean} Returns `true` if a word is found, else `false`.
2325
- */
2326
- function hasUnicodeWord(string) {
2327
- return reHasUnicodeWord.test(string);
2328
- }
2329
-
2330
- var _hasUnicodeWord = hasUnicodeWord;
2331
-
2332
- /** Used to compose unicode character classes. */
2333
- var rsAstralRange = '\\ud800-\\udfff',
2334
- rsComboMarksRange = '\\u0300-\\u036f',
2335
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
2336
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
2337
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
2338
- rsDingbatRange = '\\u2700-\\u27bf',
2339
- rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
2340
- rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
2341
- rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
2342
- rsPunctuationRange = '\\u2000-\\u206f',
2343
- 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',
2344
- rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
2345
- rsVarRange = '\\ufe0e\\ufe0f',
2346
- rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
2347
-
2348
- /** Used to compose unicode capture groups. */
2349
- var rsApos$1 = "['\u2019]",
2350
- rsBreak = '[' + rsBreakRange + ']',
2351
- rsCombo = '[' + rsComboRange + ']',
2352
- rsDigits = '\\d+',
2353
- rsDingbat = '[' + rsDingbatRange + ']',
2354
- rsLower = '[' + rsLowerRange + ']',
2355
- rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
2356
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
2357
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
2358
- rsNonAstral = '[^' + rsAstralRange + ']',
2359
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
2360
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
2361
- rsUpper = '[' + rsUpperRange + ']',
2362
- rsZWJ = '\\u200d';
2363
-
2364
- /** Used to compose unicode regexes. */
2365
- var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
2366
- rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
2367
- rsOptContrLower = '(?:' + rsApos$1 + '(?:d|ll|m|re|s|t|ve))?',
2368
- rsOptContrUpper = '(?:' + rsApos$1 + '(?:D|LL|M|RE|S|T|VE))?',
2369
- reOptMod = rsModifier + '?',
2370
- rsOptVar = '[' + rsVarRange + ']?',
2371
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
2372
- rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
2373
- rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
2374
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
2375
- rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;
2376
-
2377
- /** Used to match complex or compound words. */
2378
- var reUnicodeWord = RegExp([
2379
- rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
2380
- rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
2381
- rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
2382
- rsUpper + '+' + rsOptContrUpper,
2383
- rsOrdUpper,
2384
- rsOrdLower,
2385
- rsDigits,
2386
- rsEmoji
2387
- ].join('|'), 'g');
2388
-
2389
- /**
2390
- * Splits a Unicode `string` into an array of its words.
2391
- *
2392
- * @private
2393
- * @param {string} The string to inspect.
2394
- * @returns {Array} Returns the words of `string`.
2395
- */
2396
- function unicodeWords(string) {
2397
- return string.match(reUnicodeWord) || [];
2398
- }
2399
-
2400
- var _unicodeWords = unicodeWords;
2401
-
2402
- /**
2403
- * Splits `string` into an array of its words.
2404
- *
2405
- * @static
2406
- * @memberOf _
2407
- * @since 3.0.0
2408
- * @category String
2409
- * @param {string} [string=''] The string to inspect.
2410
- * @param {RegExp|string} [pattern] The pattern to match words.
2411
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
2412
- * @returns {Array} Returns the words of `string`.
2413
- * @example
2414
- *
2415
- * _.words('fred, barney, & pebbles');
2416
- * // => ['fred', 'barney', 'pebbles']
2417
- *
2418
- * _.words('fred, barney, & pebbles', /[^, ]+/g);
2419
- * // => ['fred', 'barney', '&', 'pebbles']
2420
- */
2421
- function words(string, pattern, guard) {
2422
- string = toString_1(string);
2423
- pattern = guard ? undefined : pattern;
2424
-
2425
- if (pattern === undefined) {
2426
- return _hasUnicodeWord(string) ? _unicodeWords(string) : _asciiWords(string);
2427
- }
2428
- return string.match(pattern) || [];
2429
- }
2430
-
2431
- var words_1 = words;
2432
-
2433
- /** Used to compose unicode capture groups. */
2434
- var rsApos = "['\u2019]";
2435
-
2436
- /** Used to match apostrophes. */
2437
- var reApos = RegExp(rsApos, 'g');
2438
-
2439
- /**
2440
- * Creates a function like `_.camelCase`.
2441
- *
2442
- * @private
2443
- * @param {Function} callback The function to combine each word.
2444
- * @returns {Function} Returns the new compounder function.
2445
- */
2446
- function createCompounder(callback) {
2447
- return function(string) {
2448
- return _arrayReduce(words_1(deburr_1(string).replace(reApos, '')), callback, '');
2449
- };
2450
- }
2451
-
2452
- var _createCompounder = createCompounder;
2453
-
2454
- /**
2455
- * Converts `string`, as space separated words, to upper case.
2456
- *
2457
- * @static
2458
- * @memberOf _
2459
- * @since 4.0.0
2460
- * @category String
2461
- * @param {string} [string=''] The string to convert.
2462
- * @returns {string} Returns the upper cased string.
2463
- * @example
2464
- *
2465
- * _.upperCase('--foo-bar');
2466
- * // => 'FOO BAR'
2467
- *
2468
- * _.upperCase('fooBar');
2469
- * // => 'FOO BAR'
2470
- *
2471
- * _.upperCase('__foo_bar__');
2472
- * // => 'FOO BAR'
2473
- */
2474
- var upperCase = _createCompounder(function(result, word, index) {
2475
- return result + (index ? ' ' : '') + word.toUpperCase();
2476
- });
2477
-
2478
- var upperCase_1 = upperCase;
2479
-
2480
- /**
2481
- * Converts `string`, as space separated words, to lower case.
2482
- *
2483
- * @static
2484
- * @memberOf _
2485
- * @since 4.0.0
2486
- * @category String
2487
- * @param {string} [string=''] The string to convert.
2488
- * @returns {string} Returns the lower cased string.
2489
- * @example
2490
- *
2491
- * _.lowerCase('--Foo-Bar--');
2492
- * // => 'foo bar'
2493
- *
2494
- * _.lowerCase('fooBar');
2495
- * // => 'foo bar'
2496
- *
2497
- * _.lowerCase('__FOO_BAR__');
2498
- * // => 'foo bar'
2499
- */
2500
- var lowerCase = _createCompounder(function(result, word, index) {
2501
- return result + (index ? ' ' : '') + word.toLowerCase();
2502
- });
2503
-
2504
- var lowerCase_1 = lowerCase;
2505
-
2506
46
  function truncate() {
2507
47
  var string = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
2508
48
  var limit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 60;
@@ -2529,7 +69,7 @@ var timestampToFormat = function timestampToFormat(value, unit, suffix, timestam
2529
69
  var localizedMonth = month;
2530
70
 
2531
71
  if (isUpperCase) {
2532
- localizedMonth = upperCase_1(month);
72
+ localizedMonth = lodash.upperCase(month);
2533
73
  }
2534
74
 
2535
75
  var year = dateTime.getFullYear();
@@ -2542,7 +82,7 @@ var timestampToFormat = function timestampToFormat(value, unit, suffix, timestam
2542
82
  var timetoShow;
2543
83
 
2544
84
  if (localizedMonths) {
2545
- localizedMonth = get_1(localizedMonths, [lowerCase_1(month)]) || month;
85
+ localizedMonth = lodash.get(localizedMonths, [lodash.lowerCase(month)]) || month;
2546
86
  }
2547
87
 
2548
88
  if (localizedMeridiem) {
@@ -2572,17 +112,17 @@ function formatter(value, unit, suffix, date, config) {
2572
112
  var showDateForUnits = ["day", "week", "month", "year"]; // suffix here refers to ago
2573
113
  // unit here refers to seconds, minute, minutes,...
2574
114
 
2575
- var localizedSuffix = get_1(config, ["localizedPublishTime", suffix]) || suffix;
115
+ var localizedSuffix = lodash.get(config, ["localizedPublishTime", suffix]) || suffix;
2576
116
  var localizedUnitOfTime;
2577
117
 
2578
118
  if (unit === "hour" && value > 23 || showDateForUnits.indexOf(unit) !== -1) {
2579
119
  return timestampToFormat(value, unit, suffix, date, config);
2580
120
  } else if (value > 1) {
2581
- localizedUnitOfTime = get_1(config, ["localizedPublishTime", "".concat(unit, "s")]) || "".concat(unit, "s");
121
+ localizedUnitOfTime = lodash.get(config, ["localizedPublishTime", "".concat(unit, "s")]) || "".concat(unit, "s");
2582
122
  return "".concat(value, " ").concat(localizedUnitOfTime, " ").concat(localizedSuffix);
2583
123
  }
2584
124
 
2585
- localizedUnitOfTime = get_1(config, ["localizedPublishTime", unit]) || unit;
125
+ localizedUnitOfTime = lodash.get(config, ["localizedPublishTime", unit]) || unit;
2586
126
  return "".concat(value, " ").concat(localizedUnitOfTime, " ").concat(localizedSuffix, " ");
2587
127
  }
2588
128
 
@@ -2635,10 +175,10 @@ var clientWidths = {
2635
175
  tablet: 1024
2636
176
  };
2637
177
  var clientWidth = function clientWidth(device) {
2638
- var foundDeviceWidth = get_1(clientWidths, device);
178
+ var foundDeviceWidth = lodash.get(clientWidths, device);
2639
179
 
2640
180
  if (foundDeviceWidth) {
2641
- return get_1(global, "document.documentElement.clientWidth") <= foundDeviceWidth;
181
+ return lodash.get(global, "document.documentElement.clientWidth") <= foundDeviceWidth;
2642
182
  }
2643
183
 
2644
184
  return false;
@@ -2668,7 +208,7 @@ var getSlug = function getSlug(collection) {
2668
208
  var isSection = collection.template === "section";
2669
209
 
2670
210
  if (isSection) {
2671
- var sectionId = get_1(collection, ["metadata", "section", "0", "id"], "");
211
+ var sectionId = lodash.get(collection, ["metadata", "section", "0", "id"], "");
2672
212
  var sections = config.sections;
2673
213
  var section = sections && sections.find(function (section) {
2674
214
  return section.id === sectionId;
@@ -2684,25 +224,25 @@ function isExternalStory() {
2684
224
  storyTemplate = _story$storyTemplate === void 0 ? "" : _story$storyTemplate,
2685
225
  _story$metadata = story.metadata,
2686
226
  metadata = _story$metadata === void 0 ? {} : _story$metadata;
2687
- return storyTemplate === "news-elsewhere" ? get_1(metadata, ["reference-url"], "") : "";
227
+ return storyTemplate === "news-elsewhere" ? lodash.get(metadata, ["reference-url"], "") : "";
2688
228
  } // Adds target='_blank' attribute to anchor tags if not present
2689
229
  var isEmpty = function isEmpty(value) {
2690
230
  return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
2691
- _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;
2692
232
  };
2693
- PropTypes.shape({
2694
- "sketches-host": PropTypes.string,
2695
- "cdn-name": PropTypes.string,
2696
- "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
2697
237
  });
2698
- PropTypes.shape({
2699
- headline: PropTypes.string,
2700
- "last-published-at": PropTypes.number,
2701
- 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
2702
242
  });
2703
243
  var getStoryUrl = function getStoryUrl(story) {
2704
244
  var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
2705
- 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;
2706
246
  };
2707
247
  var navigateTo = function navigateTo(dispatch) {
2708
248
  var url = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
@@ -2742,17 +282,17 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
2742
282
  var timezone = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
2743
283
 
2744
284
  if (timezone && template === "story") {
2745
- var zonedTime = timezone && utcToZonedTime(date, timezone);
2746
- 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", {
2747
287
  timeZone: timezone
2748
288
  });
2749
289
  var timeStamp = timestampToFormat("", "", "", date, config);
2750
- return /*#__PURE__*/React.createElement("time", {
290
+ return /*#__PURE__*/React__default["default"].createElement("time", {
2751
291
  dateTime: formatZonedTime
2752
292
  }, timeStamp);
2753
293
  }
2754
294
 
2755
- return /*#__PURE__*/React.createElement(Timeago, {
295
+ return /*#__PURE__*/React__default["default"].createElement(Timeago__default["default"], {
2756
296
  date: date,
2757
297
  formatter: function formatter(value, unit, suffix, date) {
2758
298
  return _formatter(value, unit, suffix, date, config);
@@ -2785,7 +325,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
2785
325
  _ref$navigate = _ref.navigate,
2786
326
  navigate = _ref$navigate === void 0 ? true : _ref$navigate;
2787
327
  var collectionTitle = useStateValue() || {};
2788
- var showRowTitle = get_1(collectionTitle, ["showRowTitle"], true);
328
+ var showRowTitle = lodash.get(collectionTitle, ["showRowTitle"], true);
2789
329
  var supportedTemplates = ["borderLeft", "borderBottom", "crossLine", "borderBottomFull"];
2790
330
  var templateStyle = supportedTemplates.includes(collectionNameTemplate) ? " collection-".concat(collectionNameTemplate) : "";
2791
331
  var slug = navigate && collection && getSlug(collection, config) || "";
@@ -2796,7 +336,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
2796
336
  var borderBottomFullStyle = templateStyle.includes("collection-borderBottomFull") ? "4px solid ".concat(CollectionNameBorderColor) : "";
2797
337
 
2798
338
  var borderBottomStyle = function borderBottomStyle() {
2799
- 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", {
2800
340
  className: "collection-name-m_border-bottom__1MnlV",
2801
341
  style: {
2802
342
  borderBottom: "4px solid ".concat(CollectionNameBorderColor)
@@ -2856,40 +396,40 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
2856
396
  }
2857
397
  };
2858
398
 
2859
- 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", {
2860
400
  style: {
2861
401
  borderBottom: borderBottomFullStyle
2862
402
  },
2863
403
  "data-test-id": "collection-name",
2864
- className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$e)
2865
- }, 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", {
2866
406
  className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
2867
407
  style: {
2868
408
  color: CollectionNameBorderColor,
2869
409
  fontSize: getBorderHeight()
2870
410
  }
2871
- }), slug && !slug.includes(undefined) ? /*#__PURE__*/React.createElement(Link, {
411
+ }), slug && !slug.includes(undefined) ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
2872
412
  href: slug,
2873
413
  "aria-label": "collection-name"
2874
- }, /*#__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()));
2875
415
  };
2876
416
  CollectionNameBase.propTypes = {
2877
417
  /** Collection name border color */
2878
- collectionNameBorderColor: PropTypes$1.string,
418
+ collectionNameBorderColor: PropTypes.PropTypes.string,
2879
419
 
2880
420
  /** The Collection Object from the API response */
2881
- collection: PropTypes$1.object,
421
+ collection: PropTypes.PropTypes.object,
2882
422
 
2883
423
  /** The publisher config from the API response */
2884
- config: PropTypes$1.object,
424
+ config: PropTypes.PropTypes.object,
2885
425
 
2886
426
  /** The style template for the component */
2887
- collectionNameTemplate: PropTypes$1.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
427
+ collectionNameTemplate: PropTypes.PropTypes.oneOf(["", "borderLeft", "borderBottom", "crossLine", "borderBottomFull"]),
2888
428
 
2889
429
  /** Header tags ranging h1-h6, where h[headerLevel] */
2890
- headerLevel: PropTypes$1.string,
2891
- customCollectionName: PropTypes$1.string,
2892
- navigate: PropTypes$1.bool
430
+ headerLevel: PropTypes.PropTypes.string,
431
+ customCollectionName: PropTypes.PropTypes.string,
432
+ navigate: PropTypes.PropTypes.bool
2893
433
  };
2894
434
  CollectionNameBase.defaultProps = {
2895
435
  collectionNameTemplate: "",
@@ -2898,11 +438,11 @@ CollectionNameBase.defaultProps = {
2898
438
 
2899
439
  function mapStateToProps$1(state) {
2900
440
  return {
2901
- config: get_1(state, ["qt", "config"], {})
441
+ config: lodash.get(state, ["qt", "config"], {})
2902
442
  };
2903
443
  }
2904
444
 
2905
- var CollectionName = connect(mapStateToProps$1)(CollectionNameBase);
445
+ var CollectionName = reactRedux.connect(mapStateToProps$1)(CollectionNameBase);
2906
446
 
2907
447
  var _styleModuleImportMap$d = {
2908
448
  "./load-more.m.css": {
@@ -2915,7 +455,7 @@ var _styleModuleImportMap$d = {
2915
455
 
2916
456
  function ownKeys$1(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; }
2917
457
 
2918
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
458
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2919
459
  var LoadmoreButton = function LoadmoreButton(_ref) {
2920
460
  var _ref$config = _ref.config,
2921
461
  config = _ref$config === void 0 ? {} : _ref$config,
@@ -2936,26 +476,26 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
2936
476
  if (!showButton) return null;
2937
477
  var textColor = getTextColor(theme);
2938
478
  var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread$1(_objectSpread$1({}, qtConfig), config));
2939
- return template === "SubsequentLoadCount" ? /*#__PURE__*/React.createElement("div", {
479
+ return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
2940
480
  onClick: onClick,
2941
481
  "data-test-id": "load-more",
2942
- className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$d)
2943
- }, 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, {
2944
484
  href: slug,
2945
485
  navigateTo: navigate,
2946
486
  "data-test-id": "load-more",
2947
487
  "aria-label": "load-more"
2948
- }, /*#__PURE__*/React.createElement("div", {
2949
- 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)
2950
490
  }, buttonText));
2951
491
  };
2952
492
  LoadmoreButton.propTypes = {
2953
- collection: PropTypes.object,
2954
- template: PropTypes.string,
2955
- config: PropTypes.object,
2956
- onClick: PropTypes.func,
2957
- navigate: PropTypes.func,
2958
- 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
2959
499
  };
2960
500
 
2961
501
  var CrownIcon = function CrownIcon(_ref) {
@@ -2964,7 +504,7 @@ var CrownIcon = function CrownIcon(_ref) {
2964
504
  _ref$color = _ref.color,
2965
505
  color = _ref$color === void 0 ? "#D8D8D8" : _ref$color,
2966
506
  positionTop = _ref.positionTop;
2967
- return /*#__PURE__*/React.createElement("svg", {
507
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2968
508
  xmlns: "http://www.w3.org/2000/svg",
2969
509
  width: width,
2970
510
  height: height,
@@ -2973,28 +513,28 @@ var CrownIcon = function CrownIcon(_ref) {
2973
513
  position: "relative",
2974
514
  top: positionTop
2975
515
  }
2976
- }, /*#__PURE__*/React.createElement("g", {
516
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2977
517
  fill: "none",
2978
518
  fillRule: "evenodd",
2979
519
  stroke: "none",
2980
520
  strokeWidth: "1"
2981
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
521
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
2982
522
  transform: "translate(8 8)"
2983
- }, /*#__PURE__*/React.createElement("path", {
523
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2984
524
  d: "M0 0H24V24H0z"
2985
- }), /*#__PURE__*/React.createElement("g", {
525
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
2986
526
  fill: color,
2987
527
  fillRule: "nonzero",
2988
528
  transform: "translate(0 2)"
2989
- }, /*#__PURE__*/React.createElement("path", {
529
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2990
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"
2991
531
  }))))));
2992
532
  };
2993
533
  CrownIcon.propTypes = {
2994
- height: PropTypes.string,
2995
- width: PropTypes.string,
2996
- color: PropTypes.string,
2997
- 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
2998
538
  };
2999
539
 
3000
540
  var KeyIcon = function KeyIcon(_ref) {
@@ -3003,7 +543,7 @@ var KeyIcon = function KeyIcon(_ref) {
3003
543
  _ref$color = _ref.color,
3004
544
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3005
545
  positionTop = _ref.positionTop;
3006
- return /*#__PURE__*/React.createElement("svg", {
546
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3007
547
  xmlns: "http://www.w3.org/2000/svg",
3008
548
  width: width,
3009
549
  height: height,
@@ -3012,16 +552,16 @@ var KeyIcon = function KeyIcon(_ref) {
3012
552
  position: "relative",
3013
553
  top: positionTop
3014
554
  }
3015
- }, /*#__PURE__*/React.createElement("g", {
555
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3016
556
  fill: "none",
3017
557
  fillRule: "evenodd",
3018
558
  stroke: "none",
3019
559
  strokeWidth: "1"
3020
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
560
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3021
561
  transform: "translate(8 8)"
3022
- }, /*#__PURE__*/React.createElement("path", {
562
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3023
563
  d: "M0 0H24V24H0z"
3024
- }), /*#__PURE__*/React.createElement("path", {
564
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
3025
565
  fill: color,
3026
566
  fillRule: "nonzero",
3027
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",
@@ -3029,10 +569,10 @@ var KeyIcon = function KeyIcon(_ref) {
3029
569
  })))));
3030
570
  };
3031
571
  KeyIcon.propTypes = {
3032
- height: PropTypes.string,
3033
- width: PropTypes.string,
3034
- color: PropTypes.string,
3035
- 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
3036
576
  };
3037
577
 
3038
578
  var LockIcon = function LockIcon(_ref) {
@@ -3041,7 +581,7 @@ var LockIcon = function LockIcon(_ref) {
3041
581
  _ref$color = _ref.color,
3042
582
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3043
583
  positionTop = _ref.positionTop;
3044
- return /*#__PURE__*/React.createElement("svg", {
584
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3045
585
  xmlns: "http://www.w3.org/2000/svg",
3046
586
  width: width,
3047
587
  height: height,
@@ -3050,28 +590,28 @@ var LockIcon = function LockIcon(_ref) {
3050
590
  position: "relative",
3051
591
  top: positionTop
3052
592
  }
3053
- }, /*#__PURE__*/React.createElement("g", {
593
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3054
594
  fill: "none",
3055
595
  fillRule: "evenodd",
3056
596
  stroke: "none",
3057
597
  strokeWidth: "1"
3058
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
598
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", {
3059
599
  transform: "translate(8 8)"
3060
- }, /*#__PURE__*/React.createElement("path", {
600
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3061
601
  d: "M0 0H24V24H0z"
3062
- }), /*#__PURE__*/React.createElement("g", {
602
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
3063
603
  fill: color,
3064
604
  fillRule: "nonzero",
3065
605
  transform: "translate(3)"
3066
- }, /*#__PURE__*/React.createElement("path", {
606
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3067
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"
3068
608
  }))))));
3069
609
  };
3070
610
  LockIcon.propTypes = {
3071
- height: PropTypes.string,
3072
- width: PropTypes.string,
3073
- color: PropTypes.string,
3074
- 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
3075
615
  };
3076
616
 
3077
617
  var StarIcon = function StarIcon(_ref) {
@@ -3081,7 +621,7 @@ var StarIcon = function StarIcon(_ref) {
3081
621
  color = _ref$color === void 0 ? "#D5D5D5" : _ref$color,
3082
622
  _ref$positionTop = _ref.positionTop,
3083
623
  positionTop = _ref$positionTop === void 0 ? "" : _ref$positionTop;
3084
- return /*#__PURE__*/React.createElement("svg", {
624
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3085
625
  xmlns: "http://www.w3.org/2000/svg",
3086
626
  width: width,
3087
627
  height: height,
@@ -3090,21 +630,21 @@ var StarIcon = function StarIcon(_ref) {
3090
630
  position: "relative",
3091
631
  top: positionTop
3092
632
  }
3093
- }, /*#__PURE__*/React.createElement("g", {
633
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
3094
634
  fill: "none",
3095
635
  fillRule: "evenodd",
3096
636
  stroke: "none",
3097
637
  strokeWidth: "1"
3098
- }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
638
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
3099
639
  fill: color,
3100
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"
3101
641
  }))));
3102
642
  };
3103
643
  StarIcon.propTypes = {
3104
- height: PropTypes.string,
3105
- width: PropTypes.string,
3106
- color: PropTypes.string,
3107
- 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
3108
648
  };
3109
649
 
3110
650
  var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
@@ -3116,7 +656,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3116
656
 
3117
657
  switch (iconType) {
3118
658
  case "crown":
3119
- return /*#__PURE__*/React.createElement(CrownIcon, {
659
+ return /*#__PURE__*/React__default["default"].createElement(CrownIcon, {
3120
660
  width: width,
3121
661
  height: height,
3122
662
  color: color,
@@ -3124,7 +664,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3124
664
  });
3125
665
 
3126
666
  case "lock":
3127
- return /*#__PURE__*/React.createElement(LockIcon, {
667
+ return /*#__PURE__*/React__default["default"].createElement(LockIcon, {
3128
668
  width: width,
3129
669
  height: height,
3130
670
  color: color,
@@ -3132,7 +672,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3132
672
  });
3133
673
 
3134
674
  case "key":
3135
- return /*#__PURE__*/React.createElement(KeyIcon, {
675
+ return /*#__PURE__*/React__default["default"].createElement(KeyIcon, {
3136
676
  width: width,
3137
677
  height: height,
3138
678
  color: color,
@@ -3140,7 +680,7 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3140
680
  });
3141
681
 
3142
682
  default:
3143
- return /*#__PURE__*/React.createElement(StarIcon, {
683
+ return /*#__PURE__*/React__default["default"].createElement(StarIcon, {
3144
684
  width: width,
3145
685
  height: height,
3146
686
  color: color,
@@ -3149,21 +689,21 @@ var PremiumStoryIcon = function PremiumStoryIcon(_ref) {
3149
689
  }
3150
690
  };
3151
691
  PremiumStoryIcon.propTypes = {
3152
- width: PropTypes.string,
3153
- height: PropTypes.string,
3154
- color: PropTypes.string,
3155
- iconType: PropTypes.string,
3156
- 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
3157
697
  };
3158
698
 
3159
699
  function LiveIcon() {
3160
- return /*#__PURE__*/React.createElement("svg", {
700
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
3161
701
  className: "live-icon",
3162
702
  xmlns: "http://www.w3.org/2000/svg",
3163
703
  width: "25",
3164
704
  height: "24",
3165
705
  viewBox: "0 0 25 24"
3166
- }, /*#__PURE__*/React.createElement("path", {
706
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3167
707
  fill: "#ff5858",
3168
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"
3169
709
  }));
@@ -3192,8 +732,8 @@ var Headline = function Headline(_ref) {
3192
732
  enablePremiumStoryIcon = _premiumStoryIconConf3 === void 0 ? false : _premiumStoryIconConf3,
3193
733
  _premiumStoryIconConf4 = premiumStoryIconConfig.showLiveIcon,
3194
734
  showLiveIcon = _premiumStoryIconConf4 === void 0 ? false : _premiumStoryIconConf4;
3195
- var alternateHeadline = get_1(story, ["alternative", "home", "default", "headline"]);
3196
- 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";
3197
737
  var headline = alternateHeadline || story.headline;
3198
738
  var HeaderTag = "h" + headerLevel;
3199
739
 
@@ -3219,38 +759,38 @@ var Headline = function Headline(_ref) {
3219
759
  var textColor = getTextColor(configData.theme);
3220
760
  var wrapperClass = premiumStory ? "wrapper" : "";
3221
761
  var iconSize = "24px";
3222
- var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
3223
- 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", {
3224
764
  "data-test-id": "headline",
3225
- className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$c)
3226
- }, 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, {
3227
767
  width: iconSize,
3228
768
  height: iconSize,
3229
769
  color: iconColor,
3230
770
  iconType: iconStyle,
3231
771
  positionTop: positionHeadline()
3232
- }), isLink ? /*#__PURE__*/React.createElement(Link, {
772
+ }), isLink ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
3233
773
  href: getStoryUrl(story, "/".concat(story.slug)),
3234
774
  externalLink: isExternalStory(story),
3235
775
  "aria-label": "headline"
3236
- }, /*#__PURE__*/React.createElement(HeaderTag, {
3237
- className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$c)
3238
- }, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline)) : /*#__PURE__*/React.createElement(HeaderTag, {
3239
- className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$c)
3240
- }, 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));
3241
781
  };
3242
782
  Headline.propTypes = {
3243
783
  /** The Story Object from the API response */
3244
- story: PropTypes.object.isRequired,
784
+ story: PropTypes__default["default"].object.isRequired,
3245
785
 
3246
786
  /** Header tags ranging h1-h6, where h[headerLevel] */
3247
- headerLevel: PropTypes.string,
3248
- premiumStoryIconConfig: PropTypes.shape({
3249
- iconColor: PropTypes.string,
3250
- iconType: PropTypes.string,
3251
- 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
3252
792
  }),
3253
- isLink: PropTypes.bool
793
+ isLink: PropTypes__default["default"].bool
3254
794
  };
3255
795
  Headline.defaultProps = {
3256
796
  headerLevel: "6",
@@ -3274,28 +814,28 @@ var Subheadline = function Subheadline(_ref) {
3274
814
  forceShowAtom = _ref.forceShowAtom,
3275
815
  showFullContent = _ref.showFullContent;
3276
816
  var config = useStateValue() || {};
3277
- var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
817
+ var subheadline = forceShowAtom || lodash.get(config, ["showSubheadline"], true);
3278
818
  if (!subheadline) return null;
3279
819
  var textColor = getTextColor(config.theme);
3280
- return /*#__PURE__*/React.createElement("div", {
820
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3281
821
  style: {
3282
822
  WebkitLineClamp: lineClamp
3283
823
  },
3284
824
  "data-test-id": "subheadline",
3285
- 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)
3286
826
  }, showFullContent || typeof lineClamp === "number" ? story.subheadline : truncate(story.subheadline, truncateChars, true));
3287
827
  };
3288
828
  Subheadline.propTypes = {
3289
829
  /** The Story Object from the API response */
3290
- story: PropTypes.object.isRequired,
830
+ story: PropTypes__default["default"].object.isRequired,
3291
831
  // Restricts the number of lines for subheadline.
3292
- lineClamp: PropTypes.number,
832
+ lineClamp: PropTypes__default["default"].number,
3293
833
 
3294
834
  /** Number of characters to truncate the subheadline */
3295
- truncateChars: PropTypes.number,
3296
- clazzName: PropTypes.string,
3297
- forceShowAtom: PropTypes.bool,
3298
- 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
3299
839
  };
3300
840
  Subheadline.defaultProps = {
3301
841
  forceShowAtom: false,
@@ -3317,22 +857,22 @@ var TimeStamp = function TimeStamp(_ref) {
3317
857
  _ref$config = _ref.config,
3318
858
  config = _ref$config === void 0 ? {} : _ref$config;
3319
859
  var configState = useStateValue() || {};
3320
- var isTime = get_1(config, ["showTime"], get_1(configState, ["showTime"], true));
860
+ var isTime = lodash.get(config, ["showTime"], lodash.get(configState, ["showTime"], true));
3321
861
  var time = story["last-published-at"] || story["first-published-at"];
3322
862
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3323
863
  var textColor = getTextColor(configState.theme);
3324
- 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", {
3325
865
  "data-test-id": "publish-time",
3326
- className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$a)
3327
- }, /*#__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", {
3328
868
  className: "timestamp-m_time-wrapper__3O2lM"
3329
869
  }, getTimeStamp(time, formatter, config))));
3330
870
  };
3331
871
  TimeStamp.propTypes = {
3332
872
  /** The Story Object from the API response */
3333
- story: PropTypes.object,
3334
- isBottom: PropTypes.bool,
3335
- config: PropTypes.object
873
+ story: PropTypes__default["default"].object,
874
+ isBottom: PropTypes__default["default"].bool,
875
+ config: PropTypes__default["default"].object
3336
876
  };
3337
877
 
3338
878
  var _styleModuleImportMap$9 = {
@@ -3358,9 +898,9 @@ var AuthorBase = function AuthorBase(_ref) {
3358
898
  _ref$config = _ref.config,
3359
899
  config = _ref$config === void 0 ? {} : _ref$config;
3360
900
  var configData = useStateValue() || {};
3361
- var isAuthor = get_1(configData, ["showAuthor"], true);
901
+ var isAuthor = lodash.get(configData, ["showAuthor"], true);
3362
902
 
3363
- var _get = get_1(story, ["authors", "0"], ""),
903
+ var _get = lodash.get(story, ["authors", "0"], ""),
3364
904
  avatarUrl = _get["avatar-url"],
3365
905
  avatarS3Key = _get["avatar-s3-key"],
3366
906
  authorName = _get.name,
@@ -3368,17 +908,17 @@ var AuthorBase = function AuthorBase(_ref) {
3368
908
 
3369
909
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3370
910
  var textColor = getTextColor(configData.theme);
3371
- var mountAt = get_1(config, ["mountAt"], "");
911
+ var mountAt = lodash.get(config, ["mountAt"], "");
3372
912
 
3373
913
  var authorImage = function authorImage(dir) {
3374
914
  if (!avatarUrl && !avatarS3Key) {
3375
915
  return null;
3376
916
  }
3377
917
 
3378
- return /*#__PURE__*/React.createElement("div", {
918
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3379
919
  "data-test-id": "author-image",
3380
- className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$9)
3381
- }, /*#__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, {
3382
922
  slug: avatarS3Key,
3383
923
  "aspect-ratio": [1, 1],
3384
924
  defaultWidth: 400,
@@ -3386,49 +926,49 @@ var AuthorBase = function AuthorBase(_ref) {
3386
926
  auto: ["format", "compress"]
3387
927
  },
3388
928
  alt: authorName
3389
- }) : /*#__PURE__*/React.createElement("img", {
929
+ }) : /*#__PURE__*/React__default["default"].createElement("img", {
3390
930
  src: avatarUrl
3391
931
  })));
3392
932
  };
3393
933
 
3394
934
  var isPrefix = function isPrefix(dir) {
3395
935
  if (prefix) {
3396
- return /*#__PURE__*/React.createElement("div", {
3397
- 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)
3398
938
  }, prefix);
3399
939
  }
3400
940
 
3401
941
  return !hideAuthorImage && authorImage(dir);
3402
942
  };
3403
943
 
3404
- 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, {
3405
945
  href: "".concat(mountAt, "/author/") + slug,
3406
946
  "aria-label": "author-name",
3407
- className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$9)
3408
- }, 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", {
3409
949
  "data-test-id": "author-name",
3410
- className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$9)
950
+ className: "author-name " + _getClassName__default["default"]("author-name ".concat(textColor), _styleModuleImportMap$9)
3411
951
  }, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
3412
952
  };
3413
953
 
3414
954
  function mapStateToProps(state) {
3415
955
  return {
3416
- config: get_1(state, ["qt", "config"], {})
956
+ config: lodash.get(state, ["qt", "config"], {})
3417
957
  };
3418
958
  }
3419
959
 
3420
- var Author = connect(mapStateToProps)(AuthorBase);
960
+ var Author = reactRedux.connect(mapStateToProps)(AuthorBase);
3421
961
  AuthorBase.propTypes = {
3422
962
  /** The Story Object from the API response */
3423
- story: PropTypes.object.isRequired,
963
+ story: PropTypes__default["default"].object.isRequired,
3424
964
 
3425
965
  /** Hide Author Avatar Image */
3426
- hideAuthorImage: PropTypes.bool,
966
+ hideAuthorImage: PropTypes__default["default"].bool,
3427
967
  // fix Author bottom of the storyCard
3428
- isBottom: PropTypes.bool,
968
+ isBottom: PropTypes__default["default"].bool,
3429
969
  // fix prefix before the author name
3430
- prefix: PropTypes.string,
3431
- config: PropTypes.object
970
+ prefix: PropTypes__default["default"].string,
971
+ config: PropTypes__default["default"].object
3432
972
  };
3433
973
  AuthorBase.defaultProps = {
3434
974
  hideAuthorImage: false,
@@ -3449,14 +989,14 @@ var Dot = function Dot(_ref) {
3449
989
  height = _ref$height === void 0 ? "3px" : _ref$height,
3450
990
  _ref$color = _ref.color,
3451
991
  color = _ref$color === void 0 ? "light" : _ref$color;
3452
- return /*#__PURE__*/React.createElement("div", {
3453
- className: _getClassName(color, _styleModuleImportMap$8)
3454
- }, /*#__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", {
3455
995
  xmlns: "http://www.w3.org/2000/svg",
3456
996
  width: width,
3457
997
  height: height,
3458
998
  viewBox: "0 0 3 3"
3459
- }, /*#__PURE__*/React.createElement("circle", {
999
+ }, /*#__PURE__*/React__default["default"].createElement("circle", {
3460
1000
  cx: "87",
3461
1001
  cy: "9",
3462
1002
  r: "1",
@@ -3467,9 +1007,9 @@ var Dot = function Dot(_ref) {
3467
1007
  };
3468
1008
  Dot.propTypes = {
3469
1009
  /** height , width and color of the dot icon */
3470
- color: PropTypes.string,
3471
- width: PropTypes.string,
3472
- height: PropTypes.string
1010
+ color: PropTypes__default["default"].string,
1011
+ width: PropTypes__default["default"].string,
1012
+ height: PropTypes__default["default"].string
3473
1013
  };
3474
1014
 
3475
1015
  var _styleModuleImportMap$7 = {
@@ -3485,22 +1025,22 @@ var Divider = function Divider(_ref) {
3485
1025
  height = _ref$height === void 0 ? "10" : _ref$height,
3486
1026
  _ref$color = _ref.color,
3487
1027
  color = _ref$color === void 0 ? "light" : _ref$color;
3488
- return /*#__PURE__*/React.createElement("div", {
3489
- className: _getClassName(color, _styleModuleImportMap$7)
3490
- }, /*#__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", {
3491
1031
  xmlns: "http://www.w3.org/2000/svg",
3492
1032
  width: width,
3493
1033
  height: height
3494
- }, /*#__PURE__*/React.createElement("path", {
1034
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3495
1035
  fill: "inherit",
3496
1036
  d: "M0 0h1v10H0z"
3497
1037
  })));
3498
1038
  };
3499
1039
  Divider.propTypes = {
3500
1040
  /** height , width and color of the dot icon */
3501
- color: PropTypes.string,
3502
- width: PropTypes.string,
3503
- height: PropTypes.string
1041
+ color: PropTypes__default["default"].string,
1042
+ width: PropTypes__default["default"].string,
1043
+ height: PropTypes__default["default"].string
3504
1044
  };
3505
1045
 
3506
1046
  var _styleModuleImportMap$6 = {
@@ -3518,28 +1058,28 @@ var ReadTime = function ReadTime(_ref) {
3518
1058
  _ref$isLightTheme = _ref.isLightTheme,
3519
1059
  isLightTheme = _ref$isLightTheme === void 0 ? false : _ref$isLightTheme;
3520
1060
  var config = useStateValue() || {};
3521
- var showReadTime = get_1(config, ["showReadTime"]) || get_1(opts, ["showReadTime"], true);
3522
- 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);
3523
1063
  var textColor = isLightTheme ? "light" : getTextColor(config.theme);
3524
1064
  if (!showReadTime || !readTime) return null;
3525
- var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
3526
- 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", {
3527
1067
  "data-test-id": "read-time",
3528
- className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$6)
3529
- }, /*#__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", {
3530
1070
  className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
3531
- }, /*#__PURE__*/React.createElement(Dot, {
1071
+ }, /*#__PURE__*/React__default["default"].createElement(Dot, {
3532
1072
  color: textColor
3533
- })), /*#__PURE__*/React.createElement("span", null, readTime, " ", timeToRead)));
1073
+ })), /*#__PURE__*/React__default["default"].createElement("span", null, readTime, " ", timeToRead)));
3534
1074
  };
3535
1075
  ReadTime.propTypes = {
3536
- story: PropTypes.shape({
3537
- "read-time": PropTypes.number
1076
+ story: PropTypes__default["default"].shape({
1077
+ "read-time": PropTypes__default["default"].number
3538
1078
  }),
3539
- opts: PropTypes.shape({
3540
- showReadTime: PropTypes.bool
1079
+ opts: PropTypes__default["default"].shape({
1080
+ showReadTime: PropTypes__default["default"].bool
3541
1081
  }),
3542
- isLightTheme: PropTypes.bool
1082
+ isLightTheme: PropTypes__default["default"].bool
3543
1083
  };
3544
1084
 
3545
1085
  var _styleModuleImportMap$5 = {
@@ -3561,42 +1101,42 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3561
1101
  config = _ref$config === void 0 ? {} : _ref$config,
3562
1102
  isLightTheme = _ref.isLightTheme;
3563
1103
  var configState = useStateValue() || {};
3564
- var isAuthor = get_1(config, ["showAuthor"], get_1(configState, ["showAuthor"], true));
3565
- var isTime = get_1(config, ["showTime"], get_1(configState, ["showTime"], true));
3566
- 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);
3567
1107
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3568
1108
  var seperatorStyle = separator === "dot" ? "dot" : "dash";
3569
1109
  var textColor = isLightTheme ? "light" : getTextColor(configState.theme);
3570
1110
 
3571
1111
  var getSeparator = function getSeparator() {
3572
1112
  if (separator === "divider") {
3573
- return /*#__PURE__*/React.createElement(Divider, {
1113
+ return /*#__PURE__*/React__default["default"].createElement(Divider, {
3574
1114
  color: textColor
3575
1115
  });
3576
1116
  }
3577
1117
 
3578
- return /*#__PURE__*/React.createElement(Dot, {
1118
+ return /*#__PURE__*/React__default["default"].createElement(Dot, {
3579
1119
  color: textColor
3580
1120
  });
3581
1121
  };
3582
1122
 
3583
1123
  var getTimeStamp = function getTimeStamp() {
3584
1124
  if (!isTime) return null;
3585
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement("span", {
3586
- className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$5)
3587
- }, 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, {
3588
1128
  story: story,
3589
1129
  config: config
3590
- }), isReadTime && /*#__PURE__*/React.createElement(ReadTime, {
1130
+ }), isReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
3591
1131
  story: story,
3592
1132
  opts: config,
3593
1133
  isLightTheme: isLightTheme
3594
1134
  }));
3595
1135
  };
3596
1136
 
3597
- return /*#__PURE__*/React.createElement("div", {
3598
- className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$5)
3599
- }, 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, {
3600
1140
  story: story,
3601
1141
  isBottom: true,
3602
1142
  hideAuthorImage: hideAuthorImage,
@@ -3604,19 +1144,19 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3604
1144
  }), getTimeStamp()) : getTimeStamp());
3605
1145
  };
3606
1146
  AuthorWithTime.propTypes = {
3607
- story: PropTypes.object,
1147
+ story: PropTypes__default["default"].object,
3608
1148
 
3609
1149
  /** Style of separator between the Author & Timestamp */
3610
- separator: PropTypes.oneOf(["dot", "divider"]),
1150
+ separator: PropTypes__default["default"].oneOf(["dot", "divider"]),
3611
1151
 
3612
1152
  /** hide the author image */
3613
- hideAuthorImage: PropTypes.bool,
1153
+ hideAuthorImage: PropTypes__default["default"].bool,
3614
1154
  // fix author and time at the end
3615
- isBottom: PropTypes.bool,
1155
+ isBottom: PropTypes__default["default"].bool,
3616
1156
  // fix prefix before the author name
3617
- prefix: PropTypes.string,
3618
- config: PropTypes.object,
3619
- isLightTheme: PropTypes.bool
1157
+ prefix: PropTypes__default["default"].string,
1158
+ config: PropTypes__default["default"].object,
1159
+ isLightTheme: PropTypes__default["default"].bool
3620
1160
  };
3621
1161
  AuthorWithTime.defaultProps = {
3622
1162
  separator: "dot",
@@ -3626,67 +1166,6 @@ AuthorWithTime.defaultProps = {
3626
1166
  isLightTheme: false
3627
1167
  };
3628
1168
 
3629
- function _arrayWithHoles(arr) {
3630
- if (Array.isArray(arr)) return arr;
3631
- }
3632
-
3633
- function _iterableToArrayLimit(arr, i) {
3634
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
3635
-
3636
- if (_i == null) return;
3637
- var _arr = [];
3638
- var _n = true;
3639
- var _d = false;
3640
-
3641
- var _s, _e;
3642
-
3643
- try {
3644
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
3645
- _arr.push(_s.value);
3646
-
3647
- if (i && _arr.length === i) break;
3648
- }
3649
- } catch (err) {
3650
- _d = true;
3651
- _e = err;
3652
- } finally {
3653
- try {
3654
- if (!_n && _i["return"] != null) _i["return"]();
3655
- } finally {
3656
- if (_d) throw _e;
3657
- }
3658
- }
3659
-
3660
- return _arr;
3661
- }
3662
-
3663
- function _arrayLikeToArray(arr, len) {
3664
- if (len == null || len > arr.length) len = arr.length;
3665
-
3666
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
3667
- arr2[i] = arr[i];
3668
- }
3669
-
3670
- return arr2;
3671
- }
3672
-
3673
- function _unsupportedIterableToArray(o, minLen) {
3674
- if (!o) return;
3675
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
3676
- var n = Object.prototype.toString.call(o).slice(8, -1);
3677
- if (n === "Object" && o.constructor) n = o.constructor.name;
3678
- if (n === "Map" || n === "Set") return Array.from(o);
3679
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
3680
- }
3681
-
3682
- function _nonIterableRest() {
3683
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3684
- }
3685
-
3686
- function _slicedToArray(arr, i) {
3687
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
3688
- }
3689
-
3690
1169
  var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
3691
1170
  var _ref$width = _ref.width,
3692
1171
  width = _ref$width === void 0 ? 40 : _ref$width,
@@ -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, {
1729
+ className: "arr--content-wrapper " + _getClassName__default["default"]("wrapper ".concat(borderTemplate, " ").concat(horizontalCard), _styleModuleImportMap$1)
1730
+ }, children || /*#__PURE__*/React__default["default"].createElement(DefaultStoryCardContent, {
4252
1731
  story: story,
4253
1732
  headerLevel: headerLevel,
4254
1733
  isHorizontalMobile: isHorizontalMobile,
@@ -4266,59 +1745,59 @@ var DefaultStoryCardContent = 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.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 MagazineCoverImageCard = function MagazineCoverImageCard(_ref) {
4303
1782
  var collection = _ref.collection,
4304
1783
  _ref$config = _ref.config,
4305
1784
  config = _ref$config === void 0 ? {} : _ref$config;
4306
- var imgAltText = get_1(collection, ["metadata", "magazine", "name"], "cover-image");
4307
- var coverImageData = get_1(collection, ["metadata", "cover-image"]) || {};
1785
+ var imgAltText = lodash.get(collection, ["metadata", "magazine", "name"], "cover-image");
1786
+ var coverImageData = lodash.get(collection, ["metadata", "cover-image"]) || {};
4308
1787
  var _config$magazineSlug = config.magazineSlug,
4309
1788
  magazineSlug = _config$magazineSlug === void 0 ? "" : _config$magazineSlug;
4310
1789
  var coverUrl = coverImageData["cover-image-url"],
4311
1790
  covers3Key = coverImageData["cover-image-s3-key"],
4312
1791
  coverImageMetaData = coverImageData["cover-image-metadata"];
4313
1792
  var slug = magazineSlug && collection && getSlug(collection, config);
4314
- return /*#__PURE__*/React.createElement("div", {
1793
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4315
1794
  className: "arr--magazine-cover-img magazine-cover-image-m_cover-image__1McI_"
4316
- }, covers3Key || coverUrl ? /*#__PURE__*/React.createElement("figure", {
1795
+ }, covers3Key || coverUrl ? /*#__PURE__*/React__default["default"].createElement("figure", {
4317
1796
  className: "magazine-cover-image-m_image__3-ZtB"
4318
- }, covers3Key ? /*#__PURE__*/React.createElement(Link, {
1797
+ }, covers3Key ? /*#__PURE__*/React__default["default"].createElement(components.Link, {
4319
1798
  href: slug,
4320
1799
  "aria-label": "magazine-cover-image"
4321
- }, /*#__PURE__*/React.createElement(LazyLoadImages, null, /*#__PURE__*/React.createElement(ResponsiveImage, {
1800
+ }, /*#__PURE__*/React__default["default"].createElement(components.LazyLoadImages, null, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
4322
1801
  slug: covers3Key,
4323
1802
  aspectRatio: [1, 2],
4324
1803
  metadata: {
@@ -4329,25 +1808,25 @@ var MagazineCoverImageCard = function MagazineCoverImageCard(_ref) {
4329
1808
  auto: ["format", "compress"]
4330
1809
  },
4331
1810
  alt: imgAltText
4332
- }))) : /*#__PURE__*/React.createElement("img", {
1811
+ }))) : /*#__PURE__*/React__default["default"].createElement("img", {
4333
1812
  src: coverUrl,
4334
1813
  alt: "cover-image",
4335
1814
  loading: "lazy"
4336
- })) : /*#__PURE__*/React.createElement("div", {
1815
+ })) : /*#__PURE__*/React__default["default"].createElement("div", {
4337
1816
  className: "magazine-cover-image-m_fallback-img__cyAjK"
4338
- }, /*#__PURE__*/React.createElement(FallbackImage, {
1817
+ }, /*#__PURE__*/React__default["default"].createElement(FallbackImage, {
4339
1818
  slug: slug
4340
1819
  })));
4341
1820
  };
4342
1821
  MagazineCoverImageCard.propTypes = {
4343
- collection: PropTypes.shape({
4344
- "cover-image-url": PropTypes.string,
4345
- "cover-image-s3-key": PropTypes.string,
4346
- "cover-image-metadata": PropTypes.string,
4347
- slug: PropTypes.string
1822
+ collection: PropTypes__default["default"].shape({
1823
+ "cover-image-url": PropTypes__default["default"].string,
1824
+ "cover-image-s3-key": PropTypes__default["default"].string,
1825
+ "cover-image-metadata": PropTypes__default["default"].string,
1826
+ slug: PropTypes__default["default"].string
4348
1827
  }),
4349
- config: PropTypes.shape({
4350
- magazineSlug: PropTypes.string
1828
+ config: PropTypes__default["default"].shape({
1829
+ magazineSlug: PropTypes__default["default"].string
4351
1830
  })
4352
1831
  };
4353
1832
 
@@ -4371,7 +1850,7 @@ var _styleModuleImportMap = {
4371
1850
 
4372
1851
  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; }
4373
1852
 
4374
- 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; }
1853
+ 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; }
4375
1854
  var MagazineWidgetBase = function MagazineWidgetBase(_ref) {
4376
1855
  var _ref$collection = _ref.collection,
4377
1856
  collection = _ref$collection === void 0 ? {} : _ref$collection,
@@ -4395,11 +1874,11 @@ var MagazineWidgetBase = function MagazineWidgetBase(_ref) {
4395
1874
  _config$magazineSlug = config.magazineSlug,
4396
1875
  magazineSlug = _config$magazineSlug === void 0 ? "" : _config$magazineSlug;
4397
1876
  var textColor = getTextColor(theme);
4398
- var dispatch = useDispatch();
4399
- var qtConfig = useSelector(function (state) {
4400
- return get_1(state, ["qt", "config"], {});
1877
+ var dispatch = reactRedux.useDispatch();
1878
+ var qtConfig = reactRedux.useSelector(function (state) {
1879
+ return lodash.get(state, ["qt", "config"], {});
4401
1880
  });
4402
- var updatedMagazineSlug = magazineSlug || get_1(metadata, ["entities", "collectionEntities", "magazine", 0, "slug"], "");
1881
+ var updatedMagazineSlug = magazineSlug || lodash.get(metadata, ["entities", "collectionEntities", "magazine", 0, "slug"], "");
4403
1882
 
4404
1883
  var updatedConfig = _objectSpread(_objectSpread({}, config), {}, {
4405
1884
  magazineSlug: updatedMagazineSlug
@@ -4415,7 +1894,7 @@ var MagazineWidgetBase = function MagazineWidgetBase(_ref) {
4415
1894
  var date = issueDate || createdAt;
4416
1895
 
4417
1896
  var storyCards = function storyCards(items) {
4418
- return /*#__PURE__*/React.createElement("div", {
1897
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4419
1898
  className: "magazine-cards-m_story-cards__1mNHC"
4420
1899
  }, items.slice(0, sliceValue).map(function (storyItems, index) {
4421
1900
  var story = storyItems.story;
@@ -4435,22 +1914,22 @@ var MagazineWidgetBase = function MagazineWidgetBase(_ref) {
4435
1914
  };
4436
1915
 
4437
1916
  var borderSettings = border === "borderBottom" ? borderBottom() : "";
4438
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StoryCard, {
1917
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(StoryCard, {
4439
1918
  story: story,
4440
1919
  border: borderSettings,
4441
1920
  isHorizontal: true,
4442
1921
  config: config
4443
- }, /*#__PURE__*/React.createElement(HeroImage, {
1922
+ }, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
4444
1923
  story: story,
4445
1924
  isHorizontal: true,
4446
1925
  aspectRatio: [[4, 3]]
4447
- }), /*#__PURE__*/React.createElement(StorycardContent, {
1926
+ }), /*#__PURE__*/React__default["default"].createElement(StorycardContent, {
4448
1927
  story: story,
4449
1928
  config: config
4450
- }, /*#__PURE__*/React.createElement(Headline, {
1929
+ }, /*#__PURE__*/React__default["default"].createElement(Headline, {
4451
1930
  story: story,
4452
1931
  premiumStoryIconConfig: config
4453
- }), /*#__PURE__*/React.createElement(AuthorWithTime, {
1932
+ }), /*#__PURE__*/React__default["default"].createElement(AuthorWithTime, {
4454
1933
  config: localizationConfig,
4455
1934
  story: story,
4456
1935
  prefix: "By"
@@ -4459,9 +1938,9 @@ var MagazineWidgetBase = function MagazineWidgetBase(_ref) {
4459
1938
  };
4460
1939
 
4461
1940
  var bottomCard = function bottomCard() {
4462
- return /*#__PURE__*/React.createElement("div", {
1941
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4463
1942
  className: "magazine-cards-m_widget__2aE9g"
4464
- }, storyCards(items), /*#__PURE__*/React.createElement(LoadmoreButton, {
1943
+ }, storyCards(items), /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
4465
1944
  collection: collection,
4466
1945
  template: footerButton,
4467
1946
  config: updatedConfig,
@@ -4472,43 +1951,44 @@ var MagazineWidgetBase = function MagazineWidgetBase(_ref) {
4472
1951
  }));
4473
1952
  };
4474
1953
 
4475
- return /*#__PURE__*/React.createElement("div", {
1954
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4476
1955
  className: "full-width-with-padding arrow-component",
4477
1956
  style: {
4478
1957
  backgroundColor: theme
4479
1958
  },
4480
1959
  "data-test-id": "magazine-widget"
4481
- }, /*#__PURE__*/React.createElement("div", {
1960
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4482
1961
  className: "arr-magazine-widget magazine-cards-m_magazine-header__2pSI3 magazine-cards-m_widget-button__3P7F7"
4483
- }, /*#__PURE__*/React.createElement(MagazineCoverImageCard, {
1962
+ }, /*#__PURE__*/React__default["default"].createElement(MagazineCoverImageCard, {
4484
1963
  collection: collection,
4485
1964
  config: updatedConfig
4486
- }), /*#__PURE__*/React.createElement("div", {
1965
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4487
1966
  className: "magazine-cards-m_content__16_KC"
4488
- }, /*#__PURE__*/React.createElement("div", {
1967
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4489
1968
  "data-test-id": "widget-date",
4490
- className: _getClassName("time ".concat(textColor), _styleModuleImportMap)
4491
- }, getTimeStamp(date, timestampToFormat, timeStampConfig)), /*#__PURE__*/React.createElement(CollectionName, {
1969
+ className: _getClassName__default["default"]("time ".concat(textColor), _styleModuleImportMap)
1970
+ }, getTimeStamp(date, timestampToFormat, timeStampConfig)), /*#__PURE__*/React__default["default"].createElement(CollectionName, {
4492
1971
  collection: collection,
4493
1972
  config: config,
4494
1973
  navigate: navigate
4495
- }), /*#__PURE__*/React.createElement("div", {
1974
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4496
1975
  "data-test-id": "widget-summary",
4497
- className: _getClassName("summary ".concat(textColor), _styleModuleImportMap)
1976
+ className: _getClassName__default["default"]("summary ".concat(textColor), _styleModuleImportMap)
4498
1977
  }, summary), !isTablet && bottomCard()), isTablet && bottomCard()));
4499
1978
  };
4500
1979
  MagazineWidgetBase.propTypes = {
4501
- collection: PropTypes.shape({
4502
- "created-at": PropTypes.number,
4503
- summary: PropTypes.string,
4504
- items: PropTypes.array
1980
+ collection: PropTypes__default["default"].shape({
1981
+ "created-at": PropTypes__default["default"].number,
1982
+ summary: PropTypes__default["default"].string,
1983
+ items: PropTypes__default["default"].array
4505
1984
  }),
4506
- config: PropTypes.shape({
4507
- theme: PropTypes.string,
4508
- footerButton: PropTypes.string,
4509
- border: PropTypes.string
1985
+ config: PropTypes__default["default"].shape({
1986
+ theme: PropTypes__default["default"].string,
1987
+ footerButton: PropTypes__default["default"].string,
1988
+ border: PropTypes__default["default"].string
4510
1989
  })
4511
1990
  };
4512
1991
  var MagazineWidget = StateProvider(MagazineWidgetBase);
4513
1992
 
4514
- export { MagazineWidget, MagazineWidgetBase };
1993
+ exports.MagazineWidget = MagazineWidget;
1994
+ exports.MagazineWidgetBase = MagazineWidgetBase;