@quintype/arrow 3.15.1-perf.1 → 3.15.1-perf.4

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