@quintype/arrow 3.15.1-perf.3 → 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.
- package/atoms/Author/index.js +14 -2103
- package/atoms/Author/styles.arrow.css +1 -1
- package/atoms/AuthorWithTime/index.js +32 -2482
- package/atoms/AuthorWithTime/styles.arrow.css +1 -1
- package/atoms/CollectionName/index.js +12 -2101
- package/atoms/CollectionName/styles.arrow.css +1 -1
- package/atoms/ExtendedLoadMore/{index-b22f1843.js → index-0f809dd9.js} +10 -7
- package/atoms/ExtendedLoadMore/index-142f015c.js +476 -0
- package/atoms/ExtendedLoadMore/{index-bc129cb8.js → index-37a9ccff.js} +18 -10
- package/atoms/ExtendedLoadMore/{index-6e083738.js → index-446679c8.js} +20 -12
- package/atoms/ExtendedLoadMore/{index-9e0d32b7.js → index-44f97338.js} +19 -9
- package/atoms/ExtendedLoadMore/{index-b5936059.js → index-57dd4870.js} +15 -7
- package/atoms/ExtendedLoadMore/{index-fee73a14.js → index-66dd4dbd.js} +15 -7
- package/atoms/ExtendedLoadMore/{index-5c8eda4a.js → index-8462c597.js} +21 -16
- package/atoms/ExtendedLoadMore/{index-3c4ac692.js → index-93cb06d1.js} +42 -51
- package/atoms/ExtendedLoadMore/{index-4ddfe28d.js → index-afd44863.js} +6 -4
- package/atoms/ExtendedLoadMore/{index-3976fac4.js → index-b5754c5d.js} +20 -14
- package/atoms/ExtendedLoadMore/{index-a5c95f84.js → index-bbaf526e.js} +16 -8
- package/atoms/ExtendedLoadMore/{index-6ecceae4.js → index-cfb262ef.js} +18 -9
- package/atoms/ExtendedLoadMore/index.js +8 -1
- package/atoms/ExtendedLoadMore/styles.arrow.css +1 -1
- package/atoms/Headline/index.js +14 -2103
- package/atoms/Headline/styles.arrow.css +1 -1
- package/atoms/HeroImage/index.js +22 -2170
- package/atoms/HeroImage/styles.arrow.css +1 -1
- package/atoms/LoadmoreButton/index.js +12 -2114
- package/atoms/LoadmoreButton/styles.arrow.css +1 -1
- package/atoms/ScrollSnap/index.js +17 -2178
- package/atoms/ScrollSnap/styles.arrow.css +1 -1
- package/atoms/SectionTag/index.js +10 -2099
- package/atoms/SectionTag/styles.arrow.css +1 -1
- package/atoms/Subheadline/index.js +8 -2097
- package/atoms/Subheadline/styles.arrow.css +1 -1
- package/atoms/TimeStamp/index.js +13 -2463
- package/atoms/TimeStamp/styles.arrow.css +1 -1
- package/molecules/KeyEvents/index.js +23 -2545
- package/molecules/KeyEvents/styles.arrow.css +1 -1
- package/molecules/PageIntroductionCard/index.js +17 -2454
- package/molecules/PageIntroductionCard/styles.arrow.css +1 -1
- package/molecules/SocialShareTemplate/index.js +144 -2740
- package/molecules/SocialShareTemplate/styles.arrow.css +1 -1
- package/molecules/StoryCard/index.js +64 -2582
- package/molecules/StoryCard/styles.arrow.css +1 -1
- package/molecules/StoryElementCard/index.js +123 -2893
- package/molecules/StoryElementCard/styles.arrow.css +1 -1
- package/molecules/StorycardContent/index.js +45 -2495
- package/molecules/StorycardContent/styles.arrow.css +1 -1
- package/package.json +1 -1
- package/rows/AlternateCollectionFilter/index.js +92 -2659
- package/rows/AlternateCollectionFilter/styles.arrow.css +1 -1
- package/rows/AsideCollection/index.js +92 -2659
- package/rows/AsideCollection/styles.arrow.css +1 -1
- package/rows/AstrologyCollection/index.js +89 -2656
- package/rows/AstrologyCollection/styles.arrow.css +1 -1
- package/rows/AuthorIntroductionCard/index.js +27 -2743
- package/rows/AuthorIntroductionCard/styles.arrow.css +1 -1
- package/rows/AuthorsList/index.js +34 -2763
- package/rows/AuthorsList/styles.arrow.css +1 -1
- package/rows/CollectionFilter/index.js +91 -2658
- package/rows/CollectionFilter/styles.arrow.css +1 -1
- package/rows/ElevenStories/index.js +81 -2612
- package/rows/ElevenStories/styles.arrow.css +1 -1
- package/rows/FourColFiveStories/index.js +75 -2603
- package/rows/FourColFiveStories/styles.arrow.css +1 -1
- package/rows/FourColGrid/index.js +92 -2623
- package/rows/FourColGrid/styles.arrow.css +1 -1
- package/rows/FourColPortraitStories/index.js +91 -2622
- package/rows/FourColPortraitStories/styles.arrow.css +1 -1
- package/rows/FourColSixteenStories/index.js +80 -2617
- package/rows/FourColSixteenStories/styles.arrow.css +1 -1
- package/rows/FourColTwelveStories/index.js +72 -2596
- package/rows/FourColTwelveStories/styles.arrow.css +1 -1
- package/rows/FourStorySlider/index.js +84 -2615
- package/rows/FourStorySlider/styles.arrow.css +1 -1
- package/rows/FourStorySliderPortrait/index.js +84 -2615
- package/rows/FourStorySliderPortrait/styles.arrow.css +1 -1
- package/rows/FourTabbedBigStorySlider/index.js +80 -2611
- package/rows/FourTabbedBigStorySlider/styles.arrow.css +1 -1
- package/rows/FullScreenSlider/index.js +85 -2616
- package/rows/FullScreenSlider/styles.arrow.css +1 -1
- package/rows/HalfScreenSlider/index.js +81 -2612
- package/rows/HalfScreenSlider/styles.arrow.css +1 -1
- package/rows/ListComponent/index.js +75 -2606
- package/rows/ListComponent/styles.arrow.css +1 -1
- package/rows/Listicles/index.js +38 -2235
- package/rows/Listicles/styles.arrow.css +1 -1
- package/rows/MagazineEditions/index.js +24 -2487
- package/rows/MagazineEditions/styles.arrow.css +1 -1
- package/rows/MagazineHeaderCard/index.js +26 -2489
- package/rows/MagazineHeaderCard/styles.arrow.css +1 -1
- package/rows/MagazineWidget/index.js +81 -2612
- package/rows/MagazineWidget/styles.arrow.css +1 -1
- package/rows/OneColStoryList/index.js +92 -2623
- package/rows/OneColStoryList/styles.arrow.css +1 -1
- package/rows/OpinionCollection/index.js +61 -2583
- package/rows/OpinionCollection/styles.arrow.css +1 -1
- package/rows/SixColSixStories/index.js +91 -2622
- package/rows/SixColSixStories/styles.arrow.css +1 -1
- package/rows/StoryCollection/index.js +92 -2659
- package/rows/StoryCollection/styles.arrow.css +1 -1
- package/rows/TagIntroductionCard/index.js +9 -1816
- package/rows/TagIntroductionCard/styles.arrow.css +1 -1
- package/rows/ThreeColFlexStories/index.js +91 -2622
- package/rows/ThreeColFlexStories/styles.arrow.css +1 -1
- package/rows/ThreeColFourteenStories/index.js +72 -2596
- package/rows/ThreeColFourteenStories/styles.arrow.css +1 -1
- package/rows/ThreeColGrid/index.js +94 -2625
- package/rows/ThreeColGrid/styles.arrow.css +1 -1
- package/rows/ThreeColSevenStory/index.js +84 -2615
- package/rows/ThreeColSevenStory/styles.arrow.css +1 -1
- package/rows/ThreeColSixStories/index.js +76 -2607
- package/rows/ThreeColSixStories/styles.arrow.css +1 -1
- package/rows/ThreeColTwelveStories/index.js +80 -2617
- package/rows/ThreeColTwelveStories/styles.arrow.css +1 -1
- package/rows/TwoColFourStories/index.js +78 -2609
- package/rows/TwoColFourStories/styles.arrow.css +1 -1
- package/rows/TwoColFourStoryHighlight/index.js +80 -2617
- package/rows/TwoColFourStoryHighlight/styles.arrow.css +1 -1
- package/rows/TwoColSevenStories/index.js +77 -2608
- package/rows/TwoColSevenStories/styles.arrow.css +1 -1
- package/rows/TwoColSixStories/index.js +82 -2619
- package/rows/TwoColSixStories/styles.arrow.css +1 -1
- package/rows/TwoColTenStoriesSidebar/index.js +79 -2610
- package/rows/TwoColTenStoriesSidebar/styles.arrow.css +1 -1
- package/rows/TwoColThreeStories/index.js +75 -2606
- package/rows/TwoColThreeStories/styles.arrow.css +1 -1
- package/story-elements/AlsoRead/index.js +24 -2170
- package/story-elements/AlsoRead/styles.arrow.css +1 -1
- package/story-elements/Attachment/index.js +15 -1870
- package/story-elements/Attachment/styles.arrow.css +1 -1
- package/story-elements/BigFact/index.js +16 -1871
- package/story-elements/BigFact/styles.arrow.css +1 -1
- package/story-elements/BlockQuote/index.js +20 -2157
- package/story-elements/BlockQuote/styles.arrow.css +1 -1
- package/story-elements/Blurb/index.js +18 -1932
- package/story-elements/Blurb/styles.arrow.css +1 -1
- package/story-elements/Image/index.js +42 -2251
- package/story-elements/Image/styles.arrow.css +1 -1
- package/story-elements/ImageGallery/index.js +45 -2254
- package/story-elements/ImageGallery/styles.arrow.css +1 -1
- package/story-elements/ImageSlideshow/index.js +48 -2257
- package/story-elements/ImageSlideshow/styles.arrow.css +1 -1
- package/story-elements/QuestionAnswer/index.js +26 -2163
- package/story-elements/QuestionAnswer/styles.arrow.css +1 -1
- package/story-elements/Quote/index.js +17 -1872
- package/story-elements/Quote/styles.arrow.css +1 -1
- package/story-elements/Reference/index.js +15 -1870
- package/story-elements/Reference/styles.arrow.css +1 -1
- package/story-elements/StoryElement/index.js +12 -1725
- package/story-elements/Summary/index.js +18 -1873
- package/story-elements/Summary/styles.arrow.css +1 -1
- package/story-elements/Text/index.js +16 -2153
- package/story-elements/Text/styles.arrow.css +1 -1
- package/story-elements/Video/index.js +12 -1725
- package/story-elements/Video/styles.arrow.css +1 -1
- package/story-templates/ListicleStoryTemplate/index.js +282 -3167
- package/story-templates/ListicleStoryTemplate/styles.arrow.css +1 -1
- package/story-templates/LiveBlogStoryTemplate/index.js +504 -3389
- package/story-templates/LiveBlogStoryTemplate/styles.arrow.css +1 -1
- package/story-templates/PhotoStoryTemplate/index.js +287 -3172
- package/story-templates/PhotoStoryTemplate/styles.arrow.css +1 -1
- package/story-templates/TextStoryTemplate/index.js +416 -3301
- package/story-templates/TextStoryTemplate/styles.arrow.css +1 -1
- package/story-templates/VideoStoryTemplate/index.js +382 -3267
- package/story-templates/VideoStoryTemplate/styles.arrow.css +1 -1
- package/atoms/ExtendedLoadMore/index-e7cde739.js +0 -3051
|
@@ -2,12 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var _extends = require('@babel/runtime/helpers/extends');
|
|
6
|
+
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
|
+
var _getClassName = require('babel-plugin-react-css-modules/dist/browser/getClassName');
|
|
5
8
|
var components = require('@quintype/components');
|
|
6
9
|
var PropTypes = require('prop-types');
|
|
7
10
|
var React = require('react');
|
|
11
|
+
var lodash = require('lodash');
|
|
8
12
|
var reactRedux = require('react-redux');
|
|
13
|
+
var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
|
|
14
|
+
var _typeof = require('@babel/runtime/helpers/typeof');
|
|
15
|
+
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
9
16
|
var Timeago = require('react-timeago');
|
|
10
17
|
var dateFnsTz = require('date-fns-tz');
|
|
18
|
+
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
19
|
+
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
11
20
|
|
|
12
21
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
22
|
|
|
@@ -29,2643 +38,87 @@ function _interopNamespace(e) {
|
|
|
29
38
|
return Object.freeze(n);
|
|
30
39
|
}
|
|
31
40
|
|
|
41
|
+
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
42
|
+
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
43
|
+
var _getClassName__default = /*#__PURE__*/_interopDefaultLegacy(_getClassName);
|
|
32
44
|
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
33
45
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
46
|
+
var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator);
|
|
47
|
+
var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
|
|
48
|
+
var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
|
|
34
49
|
var Timeago__default = /*#__PURE__*/_interopDefaultLegacy(Timeago);
|
|
50
|
+
var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
|
|
51
|
+
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
35
52
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
for (var key in source) {
|
|
42
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43
|
-
target[key] = source[key];
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
return target;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
return _extends.apply(this, arguments);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
function _defineProperty(obj, key, value) {
|
|
55
|
-
if (key in obj) {
|
|
56
|
-
Object.defineProperty(obj, key, {
|
|
57
|
-
value: value,
|
|
58
|
-
enumerable: true,
|
|
59
|
-
configurable: true,
|
|
60
|
-
writable: true
|
|
61
|
-
});
|
|
62
|
-
} else {
|
|
63
|
-
obj[key] = value;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
return obj;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
70
|
-
|
|
71
|
-
function getDefaultExportFromCjs (x) {
|
|
72
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
function createCommonjsModule(fn) {
|
|
76
|
-
var module = { exports: {} };
|
|
77
|
-
return fn(module, module.exports), module.exports;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
var optionsDefaults_1 = createCommonjsModule(function (module, exports) {
|
|
81
|
-
|
|
82
|
-
Object.defineProperty(exports, "__esModule", {
|
|
83
|
-
value: true
|
|
84
|
-
});
|
|
85
|
-
exports["default"] = void 0;
|
|
86
|
-
var optionsDefaults = {
|
|
87
|
-
attributeNames: {
|
|
88
|
-
styleName: 'className'
|
|
89
|
-
},
|
|
90
|
-
generateScopedName: '[path]___[name]__[local]___[hash:base64:5]',
|
|
91
|
-
handleMissingStyleName: 'throw'
|
|
92
|
-
};
|
|
93
|
-
var _default = optionsDefaults;
|
|
94
|
-
exports["default"] = _default;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
var getClassName = createCommonjsModule(function (module, exports) {
|
|
100
|
-
|
|
101
|
-
Object.defineProperty(exports, "__esModule", {
|
|
102
|
-
value: true
|
|
103
|
-
});
|
|
104
|
-
exports["default"] = void 0;
|
|
105
|
-
|
|
106
|
-
var _optionsDefaults = _interopRequireDefault(optionsDefaults_1);
|
|
107
|
-
|
|
108
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
109
|
-
|
|
110
|
-
var isNamespacedStyleName = function isNamespacedStyleName(styleName) {
|
|
111
|
-
return styleName.indexOf('.') !== -1;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
var handleError = function handleError(message, handleMissingStyleName) {
|
|
115
|
-
if (handleMissingStyleName === 'throw') {
|
|
116
|
-
throw new Error(message);
|
|
117
|
-
} else if (handleMissingStyleName === 'warn') {
|
|
118
|
-
// eslint-disable-next-line no-console
|
|
119
|
-
console.warn(message);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
return null;
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
var getClassNameForNamespacedStyleName = function getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
|
|
126
|
-
// Note:
|
|
127
|
-
// Do not use the desctructing syntax with Babel.
|
|
128
|
-
// Desctructing adds _slicedToArray helper.
|
|
129
|
-
var styleNameParts = styleName.split('.');
|
|
130
|
-
var importName = styleNameParts[0];
|
|
131
|
-
var moduleName = styleNameParts[1];
|
|
132
|
-
var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
|
|
133
|
-
|
|
134
|
-
if (!moduleName) {
|
|
135
|
-
return handleError('Invalid style name: ' + styleName, handleMissingStyleName);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
if (!styleModuleImportMap[importName]) {
|
|
139
|
-
return handleError('CSS module import does not exist: ' + importName, handleMissingStyleName);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
if (!styleModuleImportMap[importName][moduleName]) {
|
|
143
|
-
return handleError('CSS module does not exist: ' + moduleName, handleMissingStyleName);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
return styleModuleImportMap[importName][moduleName];
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
var getClassNameFromMultipleImports = function getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
|
|
150
|
-
var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
|
|
151
|
-
var importKeysWithMatches = Object.keys(styleModuleImportMap).map(function (importKey) {
|
|
152
|
-
return styleModuleImportMap[importKey][styleName] && importKey;
|
|
153
|
-
}).filter(function (importKey) {
|
|
154
|
-
return importKey;
|
|
155
|
-
});
|
|
156
|
-
|
|
157
|
-
if (importKeysWithMatches.length > 1) {
|
|
158
|
-
throw new Error('Cannot resolve styleName "' + styleName + '" because it is present in multiple imports:' + '\n\n\t' + importKeysWithMatches.join('\n\t') + '\n\nYou can resolve this by using a named import, e.g:' + '\n\n\timport foo from "' + importKeysWithMatches[0] + '";' + '\n\t<div styleName="foo.' + styleName + '" />' + '\n\n');
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
if (importKeysWithMatches.length === 0) {
|
|
162
|
-
return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
return styleModuleImportMap[importKeysWithMatches[0]][styleName];
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
var _default = function _default(styleNameValue, styleModuleImportMap, options) {
|
|
169
|
-
var styleModuleImportMapKeys = Object.keys(styleModuleImportMap);
|
|
170
|
-
|
|
171
|
-
var _ref = options || {},
|
|
172
|
-
_ref$handleMissingSty = _ref.handleMissingStyleName,
|
|
173
|
-
handleMissingStyleName = _ref$handleMissingSty === void 0 ? _optionsDefaults["default"].handleMissingStyleName : _ref$handleMissingSty,
|
|
174
|
-
_ref$autoResolveMulti = _ref.autoResolveMultipleImports,
|
|
175
|
-
autoResolveMultipleImports = _ref$autoResolveMulti === void 0 ? _optionsDefaults["default"].autoResolveMultipleImports : _ref$autoResolveMulti;
|
|
176
|
-
|
|
177
|
-
if (!styleNameValue) {
|
|
178
|
-
return '';
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
return styleNameValue.split(' ').filter(function (styleName) {
|
|
182
|
-
return styleName;
|
|
183
|
-
}).map(function (styleName) {
|
|
184
|
-
if (isNamespacedStyleName(styleName)) {
|
|
185
|
-
return getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleName);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
if (styleModuleImportMapKeys.length === 0) {
|
|
189
|
-
throw new Error('Cannot use styleName attribute for style name \'' + styleName + '\' without importing at least one stylesheet.');
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
if (styleModuleImportMapKeys.length > 1) {
|
|
193
|
-
if (!autoResolveMultipleImports) {
|
|
194
|
-
throw new Error('Cannot use anonymous style name \'' + styleName + '\' with more than one stylesheet import without setting \'autoResolveMultipleImports\' to true.');
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
return getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleName);
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
var styleModuleMap = styleModuleImportMap[styleModuleImportMapKeys[0]];
|
|
201
|
-
|
|
202
|
-
if (!styleModuleMap[styleName]) {
|
|
203
|
-
return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
return styleModuleMap[styleName];
|
|
207
|
-
}).filter(function (className) {
|
|
208
|
-
// Remove any styles which could not be found (if handleMissingStyleName === 'ignore')
|
|
209
|
-
return className;
|
|
210
|
-
}).join(' ');
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
exports["default"] = _default;
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
});
|
|
217
|
-
|
|
218
|
-
var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Checks if `value` is classified as an `Array` object.
|
|
222
|
-
*
|
|
223
|
-
* @static
|
|
224
|
-
* @memberOf _
|
|
225
|
-
* @since 0.1.0
|
|
226
|
-
* @category Lang
|
|
227
|
-
* @param {*} value The value to check.
|
|
228
|
-
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
229
|
-
* @example
|
|
230
|
-
*
|
|
231
|
-
* _.isArray([1, 2, 3]);
|
|
232
|
-
* // => true
|
|
233
|
-
*
|
|
234
|
-
* _.isArray(document.body.children);
|
|
235
|
-
* // => false
|
|
236
|
-
*
|
|
237
|
-
* _.isArray('abc');
|
|
238
|
-
* // => false
|
|
239
|
-
*
|
|
240
|
-
* _.isArray(_.noop);
|
|
241
|
-
* // => false
|
|
242
|
-
*/
|
|
243
|
-
var isArray = Array.isArray;
|
|
244
|
-
|
|
245
|
-
var isArray_1 = isArray;
|
|
246
|
-
|
|
247
|
-
/** Detect free variable `global` from Node.js. */
|
|
248
|
-
|
|
249
|
-
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
250
|
-
|
|
251
|
-
var _freeGlobal = freeGlobal;
|
|
252
|
-
|
|
253
|
-
/** Detect free variable `self`. */
|
|
254
|
-
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
255
|
-
|
|
256
|
-
/** Used as a reference to the global object. */
|
|
257
|
-
var root = _freeGlobal || freeSelf || Function('return this')();
|
|
258
|
-
|
|
259
|
-
var _root = root;
|
|
260
|
-
|
|
261
|
-
/** Built-in value references. */
|
|
262
|
-
var Symbol$1 = _root.Symbol;
|
|
263
|
-
|
|
264
|
-
var _Symbol = Symbol$1;
|
|
265
|
-
|
|
266
|
-
/** Used for built-in method references. */
|
|
267
|
-
var objectProto$4 = Object.prototype;
|
|
268
|
-
|
|
269
|
-
/** Used to check objects for own properties. */
|
|
270
|
-
var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* Used to resolve the
|
|
274
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
275
|
-
* of values.
|
|
276
|
-
*/
|
|
277
|
-
var nativeObjectToString$1 = objectProto$4.toString;
|
|
278
|
-
|
|
279
|
-
/** Built-in value references. */
|
|
280
|
-
var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
284
|
-
*
|
|
285
|
-
* @private
|
|
286
|
-
* @param {*} value The value to query.
|
|
287
|
-
* @returns {string} Returns the raw `toStringTag`.
|
|
288
|
-
*/
|
|
289
|
-
function getRawTag(value) {
|
|
290
|
-
var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
|
|
291
|
-
tag = value[symToStringTag$1];
|
|
292
|
-
|
|
293
|
-
try {
|
|
294
|
-
value[symToStringTag$1] = undefined;
|
|
295
|
-
var unmasked = true;
|
|
296
|
-
} catch (e) {}
|
|
297
|
-
|
|
298
|
-
var result = nativeObjectToString$1.call(value);
|
|
299
|
-
if (unmasked) {
|
|
300
|
-
if (isOwn) {
|
|
301
|
-
value[symToStringTag$1] = tag;
|
|
302
|
-
} else {
|
|
303
|
-
delete value[symToStringTag$1];
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
return result;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
var _getRawTag = getRawTag;
|
|
310
|
-
|
|
311
|
-
/** Used for built-in method references. */
|
|
312
|
-
var objectProto$3 = Object.prototype;
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* Used to resolve the
|
|
316
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
317
|
-
* of values.
|
|
318
|
-
*/
|
|
319
|
-
var nativeObjectToString = objectProto$3.toString;
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* Converts `value` to a string using `Object.prototype.toString`.
|
|
323
|
-
*
|
|
324
|
-
* @private
|
|
325
|
-
* @param {*} value The value to convert.
|
|
326
|
-
* @returns {string} Returns the converted string.
|
|
327
|
-
*/
|
|
328
|
-
function objectToString(value) {
|
|
329
|
-
return nativeObjectToString.call(value);
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
var _objectToString = objectToString;
|
|
333
|
-
|
|
334
|
-
/** `Object#toString` result references. */
|
|
335
|
-
var nullTag = '[object Null]',
|
|
336
|
-
undefinedTag = '[object Undefined]';
|
|
337
|
-
|
|
338
|
-
/** Built-in value references. */
|
|
339
|
-
var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
343
|
-
*
|
|
344
|
-
* @private
|
|
345
|
-
* @param {*} value The value to query.
|
|
346
|
-
* @returns {string} Returns the `toStringTag`.
|
|
347
|
-
*/
|
|
348
|
-
function baseGetTag(value) {
|
|
349
|
-
if (value == null) {
|
|
350
|
-
return value === undefined ? undefinedTag : nullTag;
|
|
351
|
-
}
|
|
352
|
-
return (symToStringTag && symToStringTag in Object(value))
|
|
353
|
-
? _getRawTag(value)
|
|
354
|
-
: _objectToString(value);
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
var _baseGetTag = baseGetTag;
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
361
|
-
* and has a `typeof` result of "object".
|
|
362
|
-
*
|
|
363
|
-
* @static
|
|
364
|
-
* @memberOf _
|
|
365
|
-
* @since 4.0.0
|
|
366
|
-
* @category Lang
|
|
367
|
-
* @param {*} value The value to check.
|
|
368
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
369
|
-
* @example
|
|
370
|
-
*
|
|
371
|
-
* _.isObjectLike({});
|
|
372
|
-
* // => true
|
|
373
|
-
*
|
|
374
|
-
* _.isObjectLike([1, 2, 3]);
|
|
375
|
-
* // => true
|
|
376
|
-
*
|
|
377
|
-
* _.isObjectLike(_.noop);
|
|
378
|
-
* // => false
|
|
379
|
-
*
|
|
380
|
-
* _.isObjectLike(null);
|
|
381
|
-
* // => false
|
|
382
|
-
*/
|
|
383
|
-
function isObjectLike(value) {
|
|
384
|
-
return value != null && typeof value == 'object';
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
var isObjectLike_1 = isObjectLike;
|
|
388
|
-
|
|
389
|
-
/** `Object#toString` result references. */
|
|
390
|
-
var symbolTag = '[object Symbol]';
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
394
|
-
*
|
|
395
|
-
* @static
|
|
396
|
-
* @memberOf _
|
|
397
|
-
* @since 4.0.0
|
|
398
|
-
* @category Lang
|
|
399
|
-
* @param {*} value The value to check.
|
|
400
|
-
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
401
|
-
* @example
|
|
402
|
-
*
|
|
403
|
-
* _.isSymbol(Symbol.iterator);
|
|
404
|
-
* // => true
|
|
405
|
-
*
|
|
406
|
-
* _.isSymbol('abc');
|
|
407
|
-
* // => false
|
|
408
|
-
*/
|
|
409
|
-
function isSymbol(value) {
|
|
410
|
-
return typeof value == 'symbol' ||
|
|
411
|
-
(isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
var isSymbol_1 = isSymbol;
|
|
415
|
-
|
|
416
|
-
/** Used to match property names within property paths. */
|
|
417
|
-
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
418
|
-
reIsPlainProp = /^\w*$/;
|
|
419
|
-
|
|
420
|
-
/**
|
|
421
|
-
* Checks if `value` is a property name and not a property path.
|
|
422
|
-
*
|
|
423
|
-
* @private
|
|
424
|
-
* @param {*} value The value to check.
|
|
425
|
-
* @param {Object} [object] The object to query keys on.
|
|
426
|
-
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
427
|
-
*/
|
|
428
|
-
function isKey(value, object) {
|
|
429
|
-
if (isArray_1(value)) {
|
|
430
|
-
return false;
|
|
431
|
-
}
|
|
432
|
-
var type = typeof value;
|
|
433
|
-
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
|
|
434
|
-
value == null || isSymbol_1(value)) {
|
|
435
|
-
return true;
|
|
436
|
-
}
|
|
437
|
-
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
|
|
438
|
-
(object != null && value in Object(object));
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
var _isKey = isKey;
|
|
442
|
-
|
|
443
|
-
/**
|
|
444
|
-
* Checks if `value` is the
|
|
445
|
-
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
446
|
-
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
447
|
-
*
|
|
448
|
-
* @static
|
|
449
|
-
* @memberOf _
|
|
450
|
-
* @since 0.1.0
|
|
451
|
-
* @category Lang
|
|
452
|
-
* @param {*} value The value to check.
|
|
453
|
-
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
454
|
-
* @example
|
|
455
|
-
*
|
|
456
|
-
* _.isObject({});
|
|
457
|
-
* // => true
|
|
458
|
-
*
|
|
459
|
-
* _.isObject([1, 2, 3]);
|
|
460
|
-
* // => true
|
|
461
|
-
*
|
|
462
|
-
* _.isObject(_.noop);
|
|
463
|
-
* // => true
|
|
464
|
-
*
|
|
465
|
-
* _.isObject(null);
|
|
466
|
-
* // => false
|
|
467
|
-
*/
|
|
468
|
-
function isObject(value) {
|
|
469
|
-
var type = typeof value;
|
|
470
|
-
return value != null && (type == 'object' || type == 'function');
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
var isObject_1 = isObject;
|
|
474
|
-
|
|
475
|
-
/** `Object#toString` result references. */
|
|
476
|
-
var asyncTag = '[object AsyncFunction]',
|
|
477
|
-
funcTag = '[object Function]',
|
|
478
|
-
genTag = '[object GeneratorFunction]',
|
|
479
|
-
proxyTag = '[object Proxy]';
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* Checks if `value` is classified as a `Function` object.
|
|
483
|
-
*
|
|
484
|
-
* @static
|
|
485
|
-
* @memberOf _
|
|
486
|
-
* @since 0.1.0
|
|
487
|
-
* @category Lang
|
|
488
|
-
* @param {*} value The value to check.
|
|
489
|
-
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
490
|
-
* @example
|
|
491
|
-
*
|
|
492
|
-
* _.isFunction(_);
|
|
493
|
-
* // => true
|
|
494
|
-
*
|
|
495
|
-
* _.isFunction(/abc/);
|
|
496
|
-
* // => false
|
|
497
|
-
*/
|
|
498
|
-
function isFunction(value) {
|
|
499
|
-
if (!isObject_1(value)) {
|
|
500
|
-
return false;
|
|
501
|
-
}
|
|
502
|
-
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
503
|
-
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
504
|
-
var tag = _baseGetTag(value);
|
|
505
|
-
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
var isFunction_1 = isFunction;
|
|
509
|
-
|
|
510
|
-
/** Used to detect overreaching core-js shims. */
|
|
511
|
-
var coreJsData = _root['__core-js_shared__'];
|
|
512
|
-
|
|
513
|
-
var _coreJsData = coreJsData;
|
|
514
|
-
|
|
515
|
-
/** Used to detect methods masquerading as native. */
|
|
516
|
-
var maskSrcKey = (function() {
|
|
517
|
-
var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
|
|
518
|
-
return uid ? ('Symbol(src)_1.' + uid) : '';
|
|
519
|
-
}());
|
|
520
|
-
|
|
521
|
-
/**
|
|
522
|
-
* Checks if `func` has its source masked.
|
|
523
|
-
*
|
|
524
|
-
* @private
|
|
525
|
-
* @param {Function} func The function to check.
|
|
526
|
-
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
527
|
-
*/
|
|
528
|
-
function isMasked(func) {
|
|
529
|
-
return !!maskSrcKey && (maskSrcKey in func);
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
var _isMasked = isMasked;
|
|
533
|
-
|
|
534
|
-
/** Used for built-in method references. */
|
|
535
|
-
var funcProto$1 = Function.prototype;
|
|
536
|
-
|
|
537
|
-
/** Used to resolve the decompiled source of functions. */
|
|
538
|
-
var funcToString$1 = funcProto$1.toString;
|
|
539
|
-
|
|
540
|
-
/**
|
|
541
|
-
* Converts `func` to its source code.
|
|
542
|
-
*
|
|
543
|
-
* @private
|
|
544
|
-
* @param {Function} func The function to convert.
|
|
545
|
-
* @returns {string} Returns the source code.
|
|
546
|
-
*/
|
|
547
|
-
function toSource(func) {
|
|
548
|
-
if (func != null) {
|
|
549
|
-
try {
|
|
550
|
-
return funcToString$1.call(func);
|
|
551
|
-
} catch (e) {}
|
|
552
|
-
try {
|
|
553
|
-
return (func + '');
|
|
554
|
-
} catch (e) {}
|
|
555
|
-
}
|
|
556
|
-
return '';
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
var _toSource = toSource;
|
|
560
|
-
|
|
561
|
-
/**
|
|
562
|
-
* Used to match `RegExp`
|
|
563
|
-
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
564
|
-
*/
|
|
565
|
-
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
566
|
-
|
|
567
|
-
/** Used to detect host constructors (Safari). */
|
|
568
|
-
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
569
|
-
|
|
570
|
-
/** Used for built-in method references. */
|
|
571
|
-
var funcProto = Function.prototype,
|
|
572
|
-
objectProto$2 = Object.prototype;
|
|
573
|
-
|
|
574
|
-
/** Used to resolve the decompiled source of functions. */
|
|
575
|
-
var funcToString = funcProto.toString;
|
|
576
|
-
|
|
577
|
-
/** Used to check objects for own properties. */
|
|
578
|
-
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
579
|
-
|
|
580
|
-
/** Used to detect if a method is native. */
|
|
581
|
-
var reIsNative = RegExp('^' +
|
|
582
|
-
funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
|
|
583
|
-
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
584
|
-
);
|
|
585
|
-
|
|
586
|
-
/**
|
|
587
|
-
* The base implementation of `_.isNative` without bad shim checks.
|
|
588
|
-
*
|
|
589
|
-
* @private
|
|
590
|
-
* @param {*} value The value to check.
|
|
591
|
-
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
592
|
-
* else `false`.
|
|
593
|
-
*/
|
|
594
|
-
function baseIsNative(value) {
|
|
595
|
-
if (!isObject_1(value) || _isMasked(value)) {
|
|
596
|
-
return false;
|
|
597
|
-
}
|
|
598
|
-
var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
|
|
599
|
-
return pattern.test(_toSource(value));
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
var _baseIsNative = baseIsNative;
|
|
603
|
-
|
|
604
|
-
/**
|
|
605
|
-
* Gets the value at `key` of `object`.
|
|
606
|
-
*
|
|
607
|
-
* @private
|
|
608
|
-
* @param {Object} [object] The object to query.
|
|
609
|
-
* @param {string} key The key of the property to get.
|
|
610
|
-
* @returns {*} Returns the property value.
|
|
611
|
-
*/
|
|
612
|
-
function getValue(object, key) {
|
|
613
|
-
return object == null ? undefined : object[key];
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
var _getValue = getValue;
|
|
617
|
-
|
|
618
|
-
/**
|
|
619
|
-
* Gets the native function at `key` of `object`.
|
|
620
|
-
*
|
|
621
|
-
* @private
|
|
622
|
-
* @param {Object} object The object to query.
|
|
623
|
-
* @param {string} key The key of the method to get.
|
|
624
|
-
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
625
|
-
*/
|
|
626
|
-
function getNative(object, key) {
|
|
627
|
-
var value = _getValue(object, key);
|
|
628
|
-
return _baseIsNative(value) ? value : undefined;
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
var _getNative = getNative;
|
|
632
|
-
|
|
633
|
-
/* Built-in method references that are verified to be native. */
|
|
634
|
-
var nativeCreate = _getNative(Object, 'create');
|
|
635
|
-
|
|
636
|
-
var _nativeCreate = nativeCreate;
|
|
637
|
-
|
|
638
|
-
/**
|
|
639
|
-
* Removes all key-value entries from the hash.
|
|
640
|
-
*
|
|
641
|
-
* @private
|
|
642
|
-
* @name clear
|
|
643
|
-
* @memberOf Hash
|
|
644
|
-
*/
|
|
645
|
-
function hashClear() {
|
|
646
|
-
this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
|
|
647
|
-
this.size = 0;
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
var _hashClear = hashClear;
|
|
651
|
-
|
|
652
|
-
/**
|
|
653
|
-
* Removes `key` and its value from the hash.
|
|
654
|
-
*
|
|
655
|
-
* @private
|
|
656
|
-
* @name delete
|
|
657
|
-
* @memberOf Hash
|
|
658
|
-
* @param {Object} hash The hash to modify.
|
|
659
|
-
* @param {string} key The key of the value to remove.
|
|
660
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
661
|
-
*/
|
|
662
|
-
function hashDelete(key) {
|
|
663
|
-
var result = this.has(key) && delete this.__data__[key];
|
|
664
|
-
this.size -= result ? 1 : 0;
|
|
665
|
-
return result;
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
var _hashDelete = hashDelete;
|
|
669
|
-
|
|
670
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
671
|
-
var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
672
|
-
|
|
673
|
-
/** Used for built-in method references. */
|
|
674
|
-
var objectProto$1 = Object.prototype;
|
|
675
|
-
|
|
676
|
-
/** Used to check objects for own properties. */
|
|
677
|
-
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
678
|
-
|
|
679
|
-
/**
|
|
680
|
-
* Gets the hash value for `key`.
|
|
681
|
-
*
|
|
682
|
-
* @private
|
|
683
|
-
* @name get
|
|
684
|
-
* @memberOf Hash
|
|
685
|
-
* @param {string} key The key of the value to get.
|
|
686
|
-
* @returns {*} Returns the entry value.
|
|
687
|
-
*/
|
|
688
|
-
function hashGet(key) {
|
|
689
|
-
var data = this.__data__;
|
|
690
|
-
if (_nativeCreate) {
|
|
691
|
-
var result = data[key];
|
|
692
|
-
return result === HASH_UNDEFINED$1 ? undefined : result;
|
|
693
|
-
}
|
|
694
|
-
return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
var _hashGet = hashGet;
|
|
698
|
-
|
|
699
|
-
/** Used for built-in method references. */
|
|
700
|
-
var objectProto = Object.prototype;
|
|
701
|
-
|
|
702
|
-
/** Used to check objects for own properties. */
|
|
703
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
704
|
-
|
|
705
|
-
/**
|
|
706
|
-
* Checks if a hash value for `key` exists.
|
|
707
|
-
*
|
|
708
|
-
* @private
|
|
709
|
-
* @name has
|
|
710
|
-
* @memberOf Hash
|
|
711
|
-
* @param {string} key The key of the entry to check.
|
|
712
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
713
|
-
*/
|
|
714
|
-
function hashHas(key) {
|
|
715
|
-
var data = this.__data__;
|
|
716
|
-
return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
var _hashHas = hashHas;
|
|
720
|
-
|
|
721
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
722
|
-
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
723
|
-
|
|
724
|
-
/**
|
|
725
|
-
* Sets the hash `key` to `value`.
|
|
726
|
-
*
|
|
727
|
-
* @private
|
|
728
|
-
* @name set
|
|
729
|
-
* @memberOf Hash
|
|
730
|
-
* @param {string} key The key of the value to set.
|
|
731
|
-
* @param {*} value The value to set.
|
|
732
|
-
* @returns {Object} Returns the hash instance.
|
|
733
|
-
*/
|
|
734
|
-
function hashSet(key, value) {
|
|
735
|
-
var data = this.__data__;
|
|
736
|
-
this.size += this.has(key) ? 0 : 1;
|
|
737
|
-
data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
|
|
738
|
-
return this;
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
var _hashSet = hashSet;
|
|
742
|
-
|
|
743
|
-
/**
|
|
744
|
-
* Creates a hash object.
|
|
745
|
-
*
|
|
746
|
-
* @private
|
|
747
|
-
* @constructor
|
|
748
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
749
|
-
*/
|
|
750
|
-
function Hash(entries) {
|
|
751
|
-
var index = -1,
|
|
752
|
-
length = entries == null ? 0 : entries.length;
|
|
753
|
-
|
|
754
|
-
this.clear();
|
|
755
|
-
while (++index < length) {
|
|
756
|
-
var entry = entries[index];
|
|
757
|
-
this.set(entry[0], entry[1]);
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
|
|
761
|
-
// Add methods to `Hash`.
|
|
762
|
-
Hash.prototype.clear = _hashClear;
|
|
763
|
-
Hash.prototype['delete'] = _hashDelete;
|
|
764
|
-
Hash.prototype.get = _hashGet;
|
|
765
|
-
Hash.prototype.has = _hashHas;
|
|
766
|
-
Hash.prototype.set = _hashSet;
|
|
767
|
-
|
|
768
|
-
var _Hash = Hash;
|
|
769
|
-
|
|
770
|
-
/**
|
|
771
|
-
* Removes all key-value entries from the list cache.
|
|
772
|
-
*
|
|
773
|
-
* @private
|
|
774
|
-
* @name clear
|
|
775
|
-
* @memberOf ListCache
|
|
776
|
-
*/
|
|
777
|
-
function listCacheClear() {
|
|
778
|
-
this.__data__ = [];
|
|
779
|
-
this.size = 0;
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
var _listCacheClear = listCacheClear;
|
|
783
|
-
|
|
784
|
-
/**
|
|
785
|
-
* Performs a
|
|
786
|
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
787
|
-
* comparison between two values to determine if they are equivalent.
|
|
788
|
-
*
|
|
789
|
-
* @static
|
|
790
|
-
* @memberOf _
|
|
791
|
-
* @since 4.0.0
|
|
792
|
-
* @category Lang
|
|
793
|
-
* @param {*} value The value to compare.
|
|
794
|
-
* @param {*} other The other value to compare.
|
|
795
|
-
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
796
|
-
* @example
|
|
797
|
-
*
|
|
798
|
-
* var object = { 'a': 1 };
|
|
799
|
-
* var other = { 'a': 1 };
|
|
800
|
-
*
|
|
801
|
-
* _.eq(object, object);
|
|
802
|
-
* // => true
|
|
803
|
-
*
|
|
804
|
-
* _.eq(object, other);
|
|
805
|
-
* // => false
|
|
806
|
-
*
|
|
807
|
-
* _.eq('a', 'a');
|
|
808
|
-
* // => true
|
|
809
|
-
*
|
|
810
|
-
* _.eq('a', Object('a'));
|
|
811
|
-
* // => false
|
|
812
|
-
*
|
|
813
|
-
* _.eq(NaN, NaN);
|
|
814
|
-
* // => true
|
|
815
|
-
*/
|
|
816
|
-
function eq(value, other) {
|
|
817
|
-
return value === other || (value !== value && other !== other);
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
var eq_1 = eq;
|
|
821
|
-
|
|
822
|
-
/**
|
|
823
|
-
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
824
|
-
*
|
|
825
|
-
* @private
|
|
826
|
-
* @param {Array} array The array to inspect.
|
|
827
|
-
* @param {*} key The key to search for.
|
|
828
|
-
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
829
|
-
*/
|
|
830
|
-
function assocIndexOf(array, key) {
|
|
831
|
-
var length = array.length;
|
|
832
|
-
while (length--) {
|
|
833
|
-
if (eq_1(array[length][0], key)) {
|
|
834
|
-
return length;
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
return -1;
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
var _assocIndexOf = assocIndexOf;
|
|
841
|
-
|
|
842
|
-
/** Used for built-in method references. */
|
|
843
|
-
var arrayProto = Array.prototype;
|
|
844
|
-
|
|
845
|
-
/** Built-in value references. */
|
|
846
|
-
var splice = arrayProto.splice;
|
|
847
|
-
|
|
848
|
-
/**
|
|
849
|
-
* Removes `key` and its value from the list cache.
|
|
850
|
-
*
|
|
851
|
-
* @private
|
|
852
|
-
* @name delete
|
|
853
|
-
* @memberOf ListCache
|
|
854
|
-
* @param {string} key The key of the value to remove.
|
|
855
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
856
|
-
*/
|
|
857
|
-
function listCacheDelete(key) {
|
|
858
|
-
var data = this.__data__,
|
|
859
|
-
index = _assocIndexOf(data, key);
|
|
860
|
-
|
|
861
|
-
if (index < 0) {
|
|
862
|
-
return false;
|
|
863
|
-
}
|
|
864
|
-
var lastIndex = data.length - 1;
|
|
865
|
-
if (index == lastIndex) {
|
|
866
|
-
data.pop();
|
|
867
|
-
} else {
|
|
868
|
-
splice.call(data, index, 1);
|
|
869
|
-
}
|
|
870
|
-
--this.size;
|
|
871
|
-
return true;
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
var _listCacheDelete = listCacheDelete;
|
|
875
|
-
|
|
876
|
-
/**
|
|
877
|
-
* Gets the list cache value for `key`.
|
|
878
|
-
*
|
|
879
|
-
* @private
|
|
880
|
-
* @name get
|
|
881
|
-
* @memberOf ListCache
|
|
882
|
-
* @param {string} key The key of the value to get.
|
|
883
|
-
* @returns {*} Returns the entry value.
|
|
884
|
-
*/
|
|
885
|
-
function listCacheGet(key) {
|
|
886
|
-
var data = this.__data__,
|
|
887
|
-
index = _assocIndexOf(data, key);
|
|
888
|
-
|
|
889
|
-
return index < 0 ? undefined : data[index][1];
|
|
890
|
-
}
|
|
891
|
-
|
|
892
|
-
var _listCacheGet = listCacheGet;
|
|
893
|
-
|
|
894
|
-
/**
|
|
895
|
-
* Checks if a list cache value for `key` exists.
|
|
896
|
-
*
|
|
897
|
-
* @private
|
|
898
|
-
* @name has
|
|
899
|
-
* @memberOf ListCache
|
|
900
|
-
* @param {string} key The key of the entry to check.
|
|
901
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
902
|
-
*/
|
|
903
|
-
function listCacheHas(key) {
|
|
904
|
-
return _assocIndexOf(this.__data__, key) > -1;
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
var _listCacheHas = listCacheHas;
|
|
908
|
-
|
|
909
|
-
/**
|
|
910
|
-
* Sets the list cache `key` to `value`.
|
|
911
|
-
*
|
|
912
|
-
* @private
|
|
913
|
-
* @name set
|
|
914
|
-
* @memberOf ListCache
|
|
915
|
-
* @param {string} key The key of the value to set.
|
|
916
|
-
* @param {*} value The value to set.
|
|
917
|
-
* @returns {Object} Returns the list cache instance.
|
|
918
|
-
*/
|
|
919
|
-
function listCacheSet(key, value) {
|
|
920
|
-
var data = this.__data__,
|
|
921
|
-
index = _assocIndexOf(data, key);
|
|
922
|
-
|
|
923
|
-
if (index < 0) {
|
|
924
|
-
++this.size;
|
|
925
|
-
data.push([key, value]);
|
|
926
|
-
} else {
|
|
927
|
-
data[index][1] = value;
|
|
928
|
-
}
|
|
929
|
-
return this;
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
var _listCacheSet = listCacheSet;
|
|
933
|
-
|
|
934
|
-
/**
|
|
935
|
-
* Creates an list cache object.
|
|
936
|
-
*
|
|
937
|
-
* @private
|
|
938
|
-
* @constructor
|
|
939
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
940
|
-
*/
|
|
941
|
-
function ListCache(entries) {
|
|
942
|
-
var index = -1,
|
|
943
|
-
length = entries == null ? 0 : entries.length;
|
|
944
|
-
|
|
945
|
-
this.clear();
|
|
946
|
-
while (++index < length) {
|
|
947
|
-
var entry = entries[index];
|
|
948
|
-
this.set(entry[0], entry[1]);
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
// Add methods to `ListCache`.
|
|
953
|
-
ListCache.prototype.clear = _listCacheClear;
|
|
954
|
-
ListCache.prototype['delete'] = _listCacheDelete;
|
|
955
|
-
ListCache.prototype.get = _listCacheGet;
|
|
956
|
-
ListCache.prototype.has = _listCacheHas;
|
|
957
|
-
ListCache.prototype.set = _listCacheSet;
|
|
958
|
-
|
|
959
|
-
var _ListCache = ListCache;
|
|
960
|
-
|
|
961
|
-
/* Built-in method references that are verified to be native. */
|
|
962
|
-
var Map = _getNative(_root, 'Map');
|
|
963
|
-
|
|
964
|
-
var _Map = Map;
|
|
965
|
-
|
|
966
|
-
/**
|
|
967
|
-
* Removes all key-value entries from the map.
|
|
968
|
-
*
|
|
969
|
-
* @private
|
|
970
|
-
* @name clear
|
|
971
|
-
* @memberOf MapCache
|
|
972
|
-
*/
|
|
973
|
-
function mapCacheClear() {
|
|
974
|
-
this.size = 0;
|
|
975
|
-
this.__data__ = {
|
|
976
|
-
'hash': new _Hash,
|
|
977
|
-
'map': new (_Map || _ListCache),
|
|
978
|
-
'string': new _Hash
|
|
979
|
-
};
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
var _mapCacheClear = mapCacheClear;
|
|
983
|
-
|
|
984
|
-
/**
|
|
985
|
-
* Checks if `value` is suitable for use as unique object key.
|
|
986
|
-
*
|
|
987
|
-
* @private
|
|
988
|
-
* @param {*} value The value to check.
|
|
989
|
-
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
990
|
-
*/
|
|
991
|
-
function isKeyable(value) {
|
|
992
|
-
var type = typeof value;
|
|
993
|
-
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
|
|
994
|
-
? (value !== '__proto__')
|
|
995
|
-
: (value === null);
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
var _isKeyable = isKeyable;
|
|
999
|
-
|
|
1000
|
-
/**
|
|
1001
|
-
* Gets the data for `map`.
|
|
1002
|
-
*
|
|
1003
|
-
* @private
|
|
1004
|
-
* @param {Object} map The map to query.
|
|
1005
|
-
* @param {string} key The reference key.
|
|
1006
|
-
* @returns {*} Returns the map data.
|
|
1007
|
-
*/
|
|
1008
|
-
function getMapData(map, key) {
|
|
1009
|
-
var data = map.__data__;
|
|
1010
|
-
return _isKeyable(key)
|
|
1011
|
-
? data[typeof key == 'string' ? 'string' : 'hash']
|
|
1012
|
-
: data.map;
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
var _getMapData = getMapData;
|
|
1016
|
-
|
|
1017
|
-
/**
|
|
1018
|
-
* Removes `key` and its value from the map.
|
|
1019
|
-
*
|
|
1020
|
-
* @private
|
|
1021
|
-
* @name delete
|
|
1022
|
-
* @memberOf MapCache
|
|
1023
|
-
* @param {string} key The key of the value to remove.
|
|
1024
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1025
|
-
*/
|
|
1026
|
-
function mapCacheDelete(key) {
|
|
1027
|
-
var result = _getMapData(this, key)['delete'](key);
|
|
1028
|
-
this.size -= result ? 1 : 0;
|
|
1029
|
-
return result;
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
|
-
var _mapCacheDelete = mapCacheDelete;
|
|
1033
|
-
|
|
1034
|
-
/**
|
|
1035
|
-
* Gets the map value for `key`.
|
|
1036
|
-
*
|
|
1037
|
-
* @private
|
|
1038
|
-
* @name get
|
|
1039
|
-
* @memberOf MapCache
|
|
1040
|
-
* @param {string} key The key of the value to get.
|
|
1041
|
-
* @returns {*} Returns the entry value.
|
|
1042
|
-
*/
|
|
1043
|
-
function mapCacheGet(key) {
|
|
1044
|
-
return _getMapData(this, key).get(key);
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
var _mapCacheGet = mapCacheGet;
|
|
1048
|
-
|
|
1049
|
-
/**
|
|
1050
|
-
* Checks if a map value for `key` exists.
|
|
1051
|
-
*
|
|
1052
|
-
* @private
|
|
1053
|
-
* @name has
|
|
1054
|
-
* @memberOf MapCache
|
|
1055
|
-
* @param {string} key The key of the entry to check.
|
|
1056
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1057
|
-
*/
|
|
1058
|
-
function mapCacheHas(key) {
|
|
1059
|
-
return _getMapData(this, key).has(key);
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
|
-
var _mapCacheHas = mapCacheHas;
|
|
1063
|
-
|
|
1064
|
-
/**
|
|
1065
|
-
* Sets the map `key` to `value`.
|
|
1066
|
-
*
|
|
1067
|
-
* @private
|
|
1068
|
-
* @name set
|
|
1069
|
-
* @memberOf MapCache
|
|
1070
|
-
* @param {string} key The key of the value to set.
|
|
1071
|
-
* @param {*} value The value to set.
|
|
1072
|
-
* @returns {Object} Returns the map cache instance.
|
|
1073
|
-
*/
|
|
1074
|
-
function mapCacheSet(key, value) {
|
|
1075
|
-
var data = _getMapData(this, key),
|
|
1076
|
-
size = data.size;
|
|
1077
|
-
|
|
1078
|
-
data.set(key, value);
|
|
1079
|
-
this.size += data.size == size ? 0 : 1;
|
|
1080
|
-
return this;
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
var _mapCacheSet = mapCacheSet;
|
|
1084
|
-
|
|
1085
|
-
/**
|
|
1086
|
-
* Creates a map cache object to store key-value pairs.
|
|
1087
|
-
*
|
|
1088
|
-
* @private
|
|
1089
|
-
* @constructor
|
|
1090
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
1091
|
-
*/
|
|
1092
|
-
function MapCache(entries) {
|
|
1093
|
-
var index = -1,
|
|
1094
|
-
length = entries == null ? 0 : entries.length;
|
|
1095
|
-
|
|
1096
|
-
this.clear();
|
|
1097
|
-
while (++index < length) {
|
|
1098
|
-
var entry = entries[index];
|
|
1099
|
-
this.set(entry[0], entry[1]);
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
|
|
1103
|
-
// Add methods to `MapCache`.
|
|
1104
|
-
MapCache.prototype.clear = _mapCacheClear;
|
|
1105
|
-
MapCache.prototype['delete'] = _mapCacheDelete;
|
|
1106
|
-
MapCache.prototype.get = _mapCacheGet;
|
|
1107
|
-
MapCache.prototype.has = _mapCacheHas;
|
|
1108
|
-
MapCache.prototype.set = _mapCacheSet;
|
|
1109
|
-
|
|
1110
|
-
var _MapCache = MapCache;
|
|
1111
|
-
|
|
1112
|
-
/** Error message constants. */
|
|
1113
|
-
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
1114
|
-
|
|
1115
|
-
/**
|
|
1116
|
-
* Creates a function that memoizes the result of `func`. If `resolver` is
|
|
1117
|
-
* provided, it determines the cache key for storing the result based on the
|
|
1118
|
-
* arguments provided to the memoized function. By default, the first argument
|
|
1119
|
-
* provided to the memoized function is used as the map cache key. The `func`
|
|
1120
|
-
* is invoked with the `this` binding of the memoized function.
|
|
1121
|
-
*
|
|
1122
|
-
* **Note:** The cache is exposed as the `cache` property on the memoized
|
|
1123
|
-
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
|
1124
|
-
* constructor with one whose instances implement the
|
|
1125
|
-
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
|
1126
|
-
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
|
|
1127
|
-
*
|
|
1128
|
-
* @static
|
|
1129
|
-
* @memberOf _
|
|
1130
|
-
* @since 0.1.0
|
|
1131
|
-
* @category Function
|
|
1132
|
-
* @param {Function} func The function to have its output memoized.
|
|
1133
|
-
* @param {Function} [resolver] The function to resolve the cache key.
|
|
1134
|
-
* @returns {Function} Returns the new memoized function.
|
|
1135
|
-
* @example
|
|
1136
|
-
*
|
|
1137
|
-
* var object = { 'a': 1, 'b': 2 };
|
|
1138
|
-
* var other = { 'c': 3, 'd': 4 };
|
|
1139
|
-
*
|
|
1140
|
-
* var values = _.memoize(_.values);
|
|
1141
|
-
* values(object);
|
|
1142
|
-
* // => [1, 2]
|
|
1143
|
-
*
|
|
1144
|
-
* values(other);
|
|
1145
|
-
* // => [3, 4]
|
|
1146
|
-
*
|
|
1147
|
-
* object.a = 2;
|
|
1148
|
-
* values(object);
|
|
1149
|
-
* // => [1, 2]
|
|
1150
|
-
*
|
|
1151
|
-
* // Modify the result cache.
|
|
1152
|
-
* values.cache.set(object, ['a', 'b']);
|
|
1153
|
-
* values(object);
|
|
1154
|
-
* // => ['a', 'b']
|
|
1155
|
-
*
|
|
1156
|
-
* // Replace `_.memoize.Cache`.
|
|
1157
|
-
* _.memoize.Cache = WeakMap;
|
|
1158
|
-
*/
|
|
1159
|
-
function memoize(func, resolver) {
|
|
1160
|
-
if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
|
|
1161
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
1162
|
-
}
|
|
1163
|
-
var memoized = function() {
|
|
1164
|
-
var args = arguments,
|
|
1165
|
-
key = resolver ? resolver.apply(this, args) : args[0],
|
|
1166
|
-
cache = memoized.cache;
|
|
1167
|
-
|
|
1168
|
-
if (cache.has(key)) {
|
|
1169
|
-
return cache.get(key);
|
|
1170
|
-
}
|
|
1171
|
-
var result = func.apply(this, args);
|
|
1172
|
-
memoized.cache = cache.set(key, result) || cache;
|
|
1173
|
-
return result;
|
|
1174
|
-
};
|
|
1175
|
-
memoized.cache = new (memoize.Cache || _MapCache);
|
|
1176
|
-
return memoized;
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
// Expose `MapCache`.
|
|
1180
|
-
memoize.Cache = _MapCache;
|
|
1181
|
-
|
|
1182
|
-
var memoize_1 = memoize;
|
|
1183
|
-
|
|
1184
|
-
/** Used as the maximum memoize cache size. */
|
|
1185
|
-
var MAX_MEMOIZE_SIZE = 500;
|
|
1186
|
-
|
|
1187
|
-
/**
|
|
1188
|
-
* A specialized version of `_.memoize` which clears the memoized function's
|
|
1189
|
-
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
|
|
1190
|
-
*
|
|
1191
|
-
* @private
|
|
1192
|
-
* @param {Function} func The function to have its output memoized.
|
|
1193
|
-
* @returns {Function} Returns the new memoized function.
|
|
1194
|
-
*/
|
|
1195
|
-
function memoizeCapped(func) {
|
|
1196
|
-
var result = memoize_1(func, function(key) {
|
|
1197
|
-
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
1198
|
-
cache.clear();
|
|
1199
|
-
}
|
|
1200
|
-
return key;
|
|
1201
|
-
});
|
|
1202
|
-
|
|
1203
|
-
var cache = result.cache;
|
|
1204
|
-
return result;
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
|
-
var _memoizeCapped = memoizeCapped;
|
|
1208
|
-
|
|
1209
|
-
/** Used to match property names within property paths. */
|
|
1210
|
-
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
1211
|
-
|
|
1212
|
-
/** Used to match backslashes in property paths. */
|
|
1213
|
-
var reEscapeChar = /\\(\\)?/g;
|
|
1214
|
-
|
|
1215
|
-
/**
|
|
1216
|
-
* Converts `string` to a property path array.
|
|
1217
|
-
*
|
|
1218
|
-
* @private
|
|
1219
|
-
* @param {string} string The string to convert.
|
|
1220
|
-
* @returns {Array} Returns the property path array.
|
|
1221
|
-
*/
|
|
1222
|
-
var stringToPath = _memoizeCapped(function(string) {
|
|
1223
|
-
var result = [];
|
|
1224
|
-
if (string.charCodeAt(0) === 46 /* . */) {
|
|
1225
|
-
result.push('');
|
|
1226
|
-
}
|
|
1227
|
-
string.replace(rePropName, function(match, number, quote, subString) {
|
|
1228
|
-
result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
|
|
1229
|
-
});
|
|
1230
|
-
return result;
|
|
1231
|
-
});
|
|
1232
|
-
|
|
1233
|
-
var _stringToPath = stringToPath;
|
|
1234
|
-
|
|
1235
|
-
/**
|
|
1236
|
-
* A specialized version of `_.map` for arrays without support for iteratee
|
|
1237
|
-
* shorthands.
|
|
1238
|
-
*
|
|
1239
|
-
* @private
|
|
1240
|
-
* @param {Array} [array] The array to iterate over.
|
|
1241
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
1242
|
-
* @returns {Array} Returns the new mapped array.
|
|
1243
|
-
*/
|
|
1244
|
-
function arrayMap(array, iteratee) {
|
|
1245
|
-
var index = -1,
|
|
1246
|
-
length = array == null ? 0 : array.length,
|
|
1247
|
-
result = Array(length);
|
|
1248
|
-
|
|
1249
|
-
while (++index < length) {
|
|
1250
|
-
result[index] = iteratee(array[index], index, array);
|
|
1251
|
-
}
|
|
1252
|
-
return result;
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
|
-
var _arrayMap = arrayMap;
|
|
1256
|
-
|
|
1257
|
-
/** Used as references for various `Number` constants. */
|
|
1258
|
-
var INFINITY$1 = 1 / 0;
|
|
1259
|
-
|
|
1260
|
-
/** Used to convert symbols to primitives and strings. */
|
|
1261
|
-
var symbolProto = _Symbol ? _Symbol.prototype : undefined,
|
|
1262
|
-
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
1263
|
-
|
|
1264
|
-
/**
|
|
1265
|
-
* The base implementation of `_.toString` which doesn't convert nullish
|
|
1266
|
-
* values to empty strings.
|
|
1267
|
-
*
|
|
1268
|
-
* @private
|
|
1269
|
-
* @param {*} value The value to process.
|
|
1270
|
-
* @returns {string} Returns the string.
|
|
1271
|
-
*/
|
|
1272
|
-
function baseToString(value) {
|
|
1273
|
-
// Exit early for strings to avoid a performance hit in some environments.
|
|
1274
|
-
if (typeof value == 'string') {
|
|
1275
|
-
return value;
|
|
1276
|
-
}
|
|
1277
|
-
if (isArray_1(value)) {
|
|
1278
|
-
// Recursively convert values (susceptible to call stack limits).
|
|
1279
|
-
return _arrayMap(value, baseToString) + '';
|
|
1280
|
-
}
|
|
1281
|
-
if (isSymbol_1(value)) {
|
|
1282
|
-
return symbolToString ? symbolToString.call(value) : '';
|
|
1283
|
-
}
|
|
1284
|
-
var result = (value + '');
|
|
1285
|
-
return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
|
|
1286
|
-
}
|
|
1287
|
-
|
|
1288
|
-
var _baseToString = baseToString;
|
|
1289
|
-
|
|
1290
|
-
/**
|
|
1291
|
-
* Converts `value` to a string. An empty string is returned for `null`
|
|
1292
|
-
* and `undefined` values. The sign of `-0` is preserved.
|
|
1293
|
-
*
|
|
1294
|
-
* @static
|
|
1295
|
-
* @memberOf _
|
|
1296
|
-
* @since 4.0.0
|
|
1297
|
-
* @category Lang
|
|
1298
|
-
* @param {*} value The value to convert.
|
|
1299
|
-
* @returns {string} Returns the converted string.
|
|
1300
|
-
* @example
|
|
1301
|
-
*
|
|
1302
|
-
* _.toString(null);
|
|
1303
|
-
* // => ''
|
|
1304
|
-
*
|
|
1305
|
-
* _.toString(-0);
|
|
1306
|
-
* // => '-0'
|
|
1307
|
-
*
|
|
1308
|
-
* _.toString([1, 2, 3]);
|
|
1309
|
-
* // => '1,2,3'
|
|
1310
|
-
*/
|
|
1311
|
-
function toString(value) {
|
|
1312
|
-
return value == null ? '' : _baseToString(value);
|
|
1313
|
-
}
|
|
1314
|
-
|
|
1315
|
-
var toString_1 = toString;
|
|
1316
|
-
|
|
1317
|
-
/**
|
|
1318
|
-
* Casts `value` to a path array if it's not one.
|
|
1319
|
-
*
|
|
1320
|
-
* @private
|
|
1321
|
-
* @param {*} value The value to inspect.
|
|
1322
|
-
* @param {Object} [object] The object to query keys on.
|
|
1323
|
-
* @returns {Array} Returns the cast property path array.
|
|
1324
|
-
*/
|
|
1325
|
-
function castPath(value, object) {
|
|
1326
|
-
if (isArray_1(value)) {
|
|
1327
|
-
return value;
|
|
1328
|
-
}
|
|
1329
|
-
return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
var _castPath = castPath;
|
|
1333
|
-
|
|
1334
|
-
/** Used as references for various `Number` constants. */
|
|
1335
|
-
var INFINITY = 1 / 0;
|
|
1336
|
-
|
|
1337
|
-
/**
|
|
1338
|
-
* Converts `value` to a string key if it's not a string or symbol.
|
|
1339
|
-
*
|
|
1340
|
-
* @private
|
|
1341
|
-
* @param {*} value The value to inspect.
|
|
1342
|
-
* @returns {string|symbol} Returns the key.
|
|
1343
|
-
*/
|
|
1344
|
-
function toKey(value) {
|
|
1345
|
-
if (typeof value == 'string' || isSymbol_1(value)) {
|
|
1346
|
-
return value;
|
|
1347
|
-
}
|
|
1348
|
-
var result = (value + '');
|
|
1349
|
-
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
|
-
var _toKey = toKey;
|
|
1353
|
-
|
|
1354
|
-
/**
|
|
1355
|
-
* The base implementation of `_.get` without support for default values.
|
|
1356
|
-
*
|
|
1357
|
-
* @private
|
|
1358
|
-
* @param {Object} object The object to query.
|
|
1359
|
-
* @param {Array|string} path The path of the property to get.
|
|
1360
|
-
* @returns {*} Returns the resolved value.
|
|
1361
|
-
*/
|
|
1362
|
-
function baseGet(object, path) {
|
|
1363
|
-
path = _castPath(path, object);
|
|
1364
|
-
|
|
1365
|
-
var index = 0,
|
|
1366
|
-
length = path.length;
|
|
1367
|
-
|
|
1368
|
-
while (object != null && index < length) {
|
|
1369
|
-
object = object[_toKey(path[index++])];
|
|
1370
|
-
}
|
|
1371
|
-
return (index && index == length) ? object : undefined;
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1374
|
-
var _baseGet = baseGet;
|
|
1375
|
-
|
|
1376
|
-
/**
|
|
1377
|
-
* Gets the value at `path` of `object`. If the resolved value is
|
|
1378
|
-
* `undefined`, the `defaultValue` is returned in its place.
|
|
1379
|
-
*
|
|
1380
|
-
* @static
|
|
1381
|
-
* @memberOf _
|
|
1382
|
-
* @since 3.7.0
|
|
1383
|
-
* @category Object
|
|
1384
|
-
* @param {Object} object The object to query.
|
|
1385
|
-
* @param {Array|string} path The path of the property to get.
|
|
1386
|
-
* @param {*} [defaultValue] The value returned for `undefined` resolved values.
|
|
1387
|
-
* @returns {*} Returns the resolved value.
|
|
1388
|
-
* @example
|
|
1389
|
-
*
|
|
1390
|
-
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
|
|
1391
|
-
*
|
|
1392
|
-
* _.get(object, 'a[0].b.c');
|
|
1393
|
-
* // => 3
|
|
1394
|
-
*
|
|
1395
|
-
* _.get(object, ['a', '0', 'b', 'c']);
|
|
1396
|
-
* // => 3
|
|
1397
|
-
*
|
|
1398
|
-
* _.get(object, 'a.b.c', 'default');
|
|
1399
|
-
* // => 'default'
|
|
1400
|
-
*/
|
|
1401
|
-
function get(object, path, defaultValue) {
|
|
1402
|
-
var result = object == null ? undefined : _baseGet(object, path);
|
|
1403
|
-
return result === undefined ? defaultValue : result;
|
|
1404
|
-
}
|
|
1405
|
-
|
|
1406
|
-
var get_1 = get;
|
|
1407
|
-
|
|
1408
|
-
/**
|
|
1409
|
-
* A specialized version of `_.reduce` for arrays without support for
|
|
1410
|
-
* iteratee shorthands.
|
|
1411
|
-
*
|
|
1412
|
-
* @private
|
|
1413
|
-
* @param {Array} [array] The array to iterate over.
|
|
1414
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
1415
|
-
* @param {*} [accumulator] The initial value.
|
|
1416
|
-
* @param {boolean} [initAccum] Specify using the first element of `array` as
|
|
1417
|
-
* the initial value.
|
|
1418
|
-
* @returns {*} Returns the accumulated value.
|
|
1419
|
-
*/
|
|
1420
|
-
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
1421
|
-
var index = -1,
|
|
1422
|
-
length = array == null ? 0 : array.length;
|
|
1423
|
-
|
|
1424
|
-
if (initAccum && length) {
|
|
1425
|
-
accumulator = array[++index];
|
|
1426
|
-
}
|
|
1427
|
-
while (++index < length) {
|
|
1428
|
-
accumulator = iteratee(accumulator, array[index], index, array);
|
|
1429
|
-
}
|
|
1430
|
-
return accumulator;
|
|
1431
|
-
}
|
|
1432
|
-
|
|
1433
|
-
var _arrayReduce = arrayReduce;
|
|
1434
|
-
|
|
1435
|
-
/**
|
|
1436
|
-
* The base implementation of `_.propertyOf` without support for deep paths.
|
|
1437
|
-
*
|
|
1438
|
-
* @private
|
|
1439
|
-
* @param {Object} object The object to query.
|
|
1440
|
-
* @returns {Function} Returns the new accessor function.
|
|
1441
|
-
*/
|
|
1442
|
-
function basePropertyOf(object) {
|
|
1443
|
-
return function(key) {
|
|
1444
|
-
return object == null ? undefined : object[key];
|
|
1445
|
-
};
|
|
1446
|
-
}
|
|
1447
|
-
|
|
1448
|
-
var _basePropertyOf = basePropertyOf;
|
|
1449
|
-
|
|
1450
|
-
/** Used to map Latin Unicode letters to basic Latin letters. */
|
|
1451
|
-
var deburredLetters = {
|
|
1452
|
-
// Latin-1 Supplement block.
|
|
1453
|
-
'\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
|
|
1454
|
-
'\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
|
|
1455
|
-
'\xc7': 'C', '\xe7': 'c',
|
|
1456
|
-
'\xd0': 'D', '\xf0': 'd',
|
|
1457
|
-
'\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
|
|
1458
|
-
'\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
|
|
1459
|
-
'\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
|
|
1460
|
-
'\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
|
|
1461
|
-
'\xd1': 'N', '\xf1': 'n',
|
|
1462
|
-
'\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
|
|
1463
|
-
'\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
|
|
1464
|
-
'\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
|
|
1465
|
-
'\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
|
|
1466
|
-
'\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
|
|
1467
|
-
'\xc6': 'Ae', '\xe6': 'ae',
|
|
1468
|
-
'\xde': 'Th', '\xfe': 'th',
|
|
1469
|
-
'\xdf': 'ss',
|
|
1470
|
-
// Latin Extended-A block.
|
|
1471
|
-
'\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
|
|
1472
|
-
'\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
|
|
1473
|
-
'\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
|
|
1474
|
-
'\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
|
|
1475
|
-
'\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
|
|
1476
|
-
'\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
|
|
1477
|
-
'\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
|
|
1478
|
-
'\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
|
|
1479
|
-
'\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
|
|
1480
|
-
'\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
|
|
1481
|
-
'\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
|
|
1482
|
-
'\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
|
|
1483
|
-
'\u0134': 'J', '\u0135': 'j',
|
|
1484
|
-
'\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
|
|
1485
|
-
'\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
|
|
1486
|
-
'\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
|
|
1487
|
-
'\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
|
|
1488
|
-
'\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
|
|
1489
|
-
'\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
|
|
1490
|
-
'\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
|
|
1491
|
-
'\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
|
|
1492
|
-
'\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
|
|
1493
|
-
'\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
|
|
1494
|
-
'\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
|
|
1495
|
-
'\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
|
|
1496
|
-
'\u0163': 't', '\u0165': 't', '\u0167': 't',
|
|
1497
|
-
'\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
|
|
1498
|
-
'\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
|
|
1499
|
-
'\u0174': 'W', '\u0175': 'w',
|
|
1500
|
-
'\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
|
|
1501
|
-
'\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
|
|
1502
|
-
'\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
|
|
1503
|
-
'\u0132': 'IJ', '\u0133': 'ij',
|
|
1504
|
-
'\u0152': 'Oe', '\u0153': 'oe',
|
|
1505
|
-
'\u0149': "'n", '\u017f': 's'
|
|
1506
|
-
};
|
|
1507
|
-
|
|
1508
|
-
/**
|
|
1509
|
-
* Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
|
|
1510
|
-
* letters to basic Latin letters.
|
|
1511
|
-
*
|
|
1512
|
-
* @private
|
|
1513
|
-
* @param {string} letter The matched letter to deburr.
|
|
1514
|
-
* @returns {string} Returns the deburred letter.
|
|
1515
|
-
*/
|
|
1516
|
-
var deburrLetter = _basePropertyOf(deburredLetters);
|
|
1517
|
-
|
|
1518
|
-
var _deburrLetter = deburrLetter;
|
|
1519
|
-
|
|
1520
|
-
/** Used to match Latin Unicode letters (excluding mathematical operators). */
|
|
1521
|
-
var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
|
|
1522
|
-
|
|
1523
|
-
/** Used to compose unicode character classes. */
|
|
1524
|
-
var rsComboMarksRange$3 = '\\u0300-\\u036f',
|
|
1525
|
-
reComboHalfMarksRange$3 = '\\ufe20-\\ufe2f',
|
|
1526
|
-
rsComboSymbolsRange$3 = '\\u20d0-\\u20ff',
|
|
1527
|
-
rsComboRange$3 = rsComboMarksRange$3 + reComboHalfMarksRange$3 + rsComboSymbolsRange$3;
|
|
1528
|
-
|
|
1529
|
-
/** Used to compose unicode capture groups. */
|
|
1530
|
-
var rsCombo$2 = '[' + rsComboRange$3 + ']';
|
|
1531
|
-
|
|
1532
|
-
/**
|
|
1533
|
-
* Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
|
|
1534
|
-
* [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
|
|
1535
|
-
*/
|
|
1536
|
-
var reComboMark = RegExp(rsCombo$2, 'g');
|
|
1537
|
-
|
|
1538
|
-
/**
|
|
1539
|
-
* Deburrs `string` by converting
|
|
1540
|
-
* [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
|
|
1541
|
-
* and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
|
|
1542
|
-
* letters to basic Latin letters and removing
|
|
1543
|
-
* [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
|
|
1544
|
-
*
|
|
1545
|
-
* @static
|
|
1546
|
-
* @memberOf _
|
|
1547
|
-
* @since 3.0.0
|
|
1548
|
-
* @category String
|
|
1549
|
-
* @param {string} [string=''] The string to deburr.
|
|
1550
|
-
* @returns {string} Returns the deburred string.
|
|
1551
|
-
* @example
|
|
1552
|
-
*
|
|
1553
|
-
* _.deburr('déjà vu');
|
|
1554
|
-
* // => 'deja vu'
|
|
1555
|
-
*/
|
|
1556
|
-
function deburr(string) {
|
|
1557
|
-
string = toString_1(string);
|
|
1558
|
-
return string && string.replace(reLatin, _deburrLetter).replace(reComboMark, '');
|
|
1559
|
-
}
|
|
1560
|
-
|
|
1561
|
-
var deburr_1 = deburr;
|
|
1562
|
-
|
|
1563
|
-
/** Used to match words composed of alphanumeric characters. */
|
|
1564
|
-
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
1565
|
-
|
|
1566
|
-
/**
|
|
1567
|
-
* Splits an ASCII `string` into an array of its words.
|
|
1568
|
-
*
|
|
1569
|
-
* @private
|
|
1570
|
-
* @param {string} The string to inspect.
|
|
1571
|
-
* @returns {Array} Returns the words of `string`.
|
|
1572
|
-
*/
|
|
1573
|
-
function asciiWords(string) {
|
|
1574
|
-
return string.match(reAsciiWord) || [];
|
|
1575
|
-
}
|
|
1576
|
-
|
|
1577
|
-
var _asciiWords = asciiWords;
|
|
1578
|
-
|
|
1579
|
-
/** Used to detect strings that need a more robust regexp to match words. */
|
|
1580
|
-
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 ]/;
|
|
1581
|
-
|
|
1582
|
-
/**
|
|
1583
|
-
* Checks if `string` contains a word composed of Unicode symbols.
|
|
1584
|
-
*
|
|
1585
|
-
* @private
|
|
1586
|
-
* @param {string} string The string to inspect.
|
|
1587
|
-
* @returns {boolean} Returns `true` if a word is found, else `false`.
|
|
1588
|
-
*/
|
|
1589
|
-
function hasUnicodeWord(string) {
|
|
1590
|
-
return reHasUnicodeWord.test(string);
|
|
1591
|
-
}
|
|
1592
|
-
|
|
1593
|
-
var _hasUnicodeWord = hasUnicodeWord;
|
|
1594
|
-
|
|
1595
|
-
/** Used to compose unicode character classes. */
|
|
1596
|
-
var rsAstralRange$2 = '\\ud800-\\udfff',
|
|
1597
|
-
rsComboMarksRange$2 = '\\u0300-\\u036f',
|
|
1598
|
-
reComboHalfMarksRange$2 = '\\ufe20-\\ufe2f',
|
|
1599
|
-
rsComboSymbolsRange$2 = '\\u20d0-\\u20ff',
|
|
1600
|
-
rsComboRange$2 = rsComboMarksRange$2 + reComboHalfMarksRange$2 + rsComboSymbolsRange$2,
|
|
1601
|
-
rsDingbatRange = '\\u2700-\\u27bf',
|
|
1602
|
-
rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
|
|
1603
|
-
rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
|
|
1604
|
-
rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
|
|
1605
|
-
rsPunctuationRange = '\\u2000-\\u206f',
|
|
1606
|
-
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',
|
|
1607
|
-
rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
|
|
1608
|
-
rsVarRange$2 = '\\ufe0e\\ufe0f',
|
|
1609
|
-
rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
|
|
1610
|
-
|
|
1611
|
-
/** Used to compose unicode capture groups. */
|
|
1612
|
-
var rsApos$1 = "['\u2019]",
|
|
1613
|
-
rsBreak = '[' + rsBreakRange + ']',
|
|
1614
|
-
rsCombo$1 = '[' + rsComboRange$2 + ']',
|
|
1615
|
-
rsDigits = '\\d+',
|
|
1616
|
-
rsDingbat = '[' + rsDingbatRange + ']',
|
|
1617
|
-
rsLower = '[' + rsLowerRange + ']',
|
|
1618
|
-
rsMisc = '[^' + rsAstralRange$2 + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
|
|
1619
|
-
rsFitz$1 = '\\ud83c[\\udffb-\\udfff]',
|
|
1620
|
-
rsModifier$1 = '(?:' + rsCombo$1 + '|' + rsFitz$1 + ')',
|
|
1621
|
-
rsNonAstral$1 = '[^' + rsAstralRange$2 + ']',
|
|
1622
|
-
rsRegional$1 = '(?:\\ud83c[\\udde6-\\uddff]){2}',
|
|
1623
|
-
rsSurrPair$1 = '[\\ud800-\\udbff][\\udc00-\\udfff]',
|
|
1624
|
-
rsUpper = '[' + rsUpperRange + ']',
|
|
1625
|
-
rsZWJ$2 = '\\u200d';
|
|
1626
|
-
|
|
1627
|
-
/** Used to compose unicode regexes. */
|
|
1628
|
-
var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
|
|
1629
|
-
rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
|
|
1630
|
-
rsOptContrLower = '(?:' + rsApos$1 + '(?:d|ll|m|re|s|t|ve))?',
|
|
1631
|
-
rsOptContrUpper = '(?:' + rsApos$1 + '(?:D|LL|M|RE|S|T|VE))?',
|
|
1632
|
-
reOptMod$1 = rsModifier$1 + '?',
|
|
1633
|
-
rsOptVar$1 = '[' + rsVarRange$2 + ']?',
|
|
1634
|
-
rsOptJoin$1 = '(?:' + rsZWJ$2 + '(?:' + [rsNonAstral$1, rsRegional$1, rsSurrPair$1].join('|') + ')' + rsOptVar$1 + reOptMod$1 + ')*',
|
|
1635
|
-
rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
|
|
1636
|
-
rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
|
|
1637
|
-
rsSeq$1 = rsOptVar$1 + reOptMod$1 + rsOptJoin$1,
|
|
1638
|
-
rsEmoji = '(?:' + [rsDingbat, rsRegional$1, rsSurrPair$1].join('|') + ')' + rsSeq$1;
|
|
1639
|
-
|
|
1640
|
-
/** Used to match complex or compound words. */
|
|
1641
|
-
var reUnicodeWord = RegExp([
|
|
1642
|
-
rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
|
|
1643
|
-
rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
|
|
1644
|
-
rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
|
|
1645
|
-
rsUpper + '+' + rsOptContrUpper,
|
|
1646
|
-
rsOrdUpper,
|
|
1647
|
-
rsOrdLower,
|
|
1648
|
-
rsDigits,
|
|
1649
|
-
rsEmoji
|
|
1650
|
-
].join('|'), 'g');
|
|
1651
|
-
|
|
1652
|
-
/**
|
|
1653
|
-
* Splits a Unicode `string` into an array of its words.
|
|
1654
|
-
*
|
|
1655
|
-
* @private
|
|
1656
|
-
* @param {string} The string to inspect.
|
|
1657
|
-
* @returns {Array} Returns the words of `string`.
|
|
1658
|
-
*/
|
|
1659
|
-
function unicodeWords(string) {
|
|
1660
|
-
return string.match(reUnicodeWord) || [];
|
|
1661
|
-
}
|
|
1662
|
-
|
|
1663
|
-
var _unicodeWords = unicodeWords;
|
|
1664
|
-
|
|
1665
|
-
/**
|
|
1666
|
-
* Splits `string` into an array of its words.
|
|
1667
|
-
*
|
|
1668
|
-
* @static
|
|
1669
|
-
* @memberOf _
|
|
1670
|
-
* @since 3.0.0
|
|
1671
|
-
* @category String
|
|
1672
|
-
* @param {string} [string=''] The string to inspect.
|
|
1673
|
-
* @param {RegExp|string} [pattern] The pattern to match words.
|
|
1674
|
-
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
|
1675
|
-
* @returns {Array} Returns the words of `string`.
|
|
1676
|
-
* @example
|
|
1677
|
-
*
|
|
1678
|
-
* _.words('fred, barney, & pebbles');
|
|
1679
|
-
* // => ['fred', 'barney', 'pebbles']
|
|
1680
|
-
*
|
|
1681
|
-
* _.words('fred, barney, & pebbles', /[^, ]+/g);
|
|
1682
|
-
* // => ['fred', 'barney', '&', 'pebbles']
|
|
1683
|
-
*/
|
|
1684
|
-
function words(string, pattern, guard) {
|
|
1685
|
-
string = toString_1(string);
|
|
1686
|
-
pattern = guard ? undefined : pattern;
|
|
1687
|
-
|
|
1688
|
-
if (pattern === undefined) {
|
|
1689
|
-
return _hasUnicodeWord(string) ? _unicodeWords(string) : _asciiWords(string);
|
|
1690
|
-
}
|
|
1691
|
-
return string.match(pattern) || [];
|
|
1692
|
-
}
|
|
1693
|
-
|
|
1694
|
-
var words_1 = words;
|
|
1695
|
-
|
|
1696
|
-
/** Used to compose unicode capture groups. */
|
|
1697
|
-
var rsApos = "['\u2019]";
|
|
1698
|
-
|
|
1699
|
-
/** Used to match apostrophes. */
|
|
1700
|
-
var reApos = RegExp(rsApos, 'g');
|
|
1701
|
-
|
|
1702
|
-
/**
|
|
1703
|
-
* Creates a function like `_.camelCase`.
|
|
1704
|
-
*
|
|
1705
|
-
* @private
|
|
1706
|
-
* @param {Function} callback The function to combine each word.
|
|
1707
|
-
* @returns {Function} Returns the new compounder function.
|
|
1708
|
-
*/
|
|
1709
|
-
function createCompounder(callback) {
|
|
1710
|
-
return function(string) {
|
|
1711
|
-
return _arrayReduce(words_1(deburr_1(string).replace(reApos, '')), callback, '');
|
|
1712
|
-
};
|
|
1713
|
-
}
|
|
1714
|
-
|
|
1715
|
-
var _createCompounder = createCompounder;
|
|
1716
|
-
|
|
1717
|
-
/**
|
|
1718
|
-
* Converts `string` to
|
|
1719
|
-
* [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
|
|
1720
|
-
*
|
|
1721
|
-
* @static
|
|
1722
|
-
* @memberOf _
|
|
1723
|
-
* @since 3.0.0
|
|
1724
|
-
* @category String
|
|
1725
|
-
* @param {string} [string=''] The string to convert.
|
|
1726
|
-
* @returns {string} Returns the kebab cased string.
|
|
1727
|
-
* @example
|
|
1728
|
-
*
|
|
1729
|
-
* _.kebabCase('Foo Bar');
|
|
1730
|
-
* // => 'foo-bar'
|
|
1731
|
-
*
|
|
1732
|
-
* _.kebabCase('fooBar');
|
|
1733
|
-
* // => 'foo-bar'
|
|
1734
|
-
*
|
|
1735
|
-
* _.kebabCase('__FOO_BAR__');
|
|
1736
|
-
* // => 'foo-bar'
|
|
1737
|
-
*/
|
|
1738
|
-
var kebabCase = _createCompounder(function(result, word, index) {
|
|
1739
|
-
return result + (index ? '-' : '') + word.toLowerCase();
|
|
1740
|
-
});
|
|
1741
|
-
|
|
1742
|
-
var kebabCase_1 = kebabCase;
|
|
1743
|
-
|
|
1744
|
-
var _styleModuleImportMap$z = {
|
|
1745
|
-
"./dot.m.css": {
|
|
1746
|
-
"dark": "dot-m_dark__1Njxl",
|
|
1747
|
-
"light": "dot-m_light__27IA3"
|
|
1748
|
-
}
|
|
1749
|
-
};
|
|
1750
|
-
var Dot = function Dot(_ref) {
|
|
1751
|
-
var _ref$width = _ref.width,
|
|
1752
|
-
width = _ref$width === void 0 ? "3px" : _ref$width,
|
|
1753
|
-
_ref$height = _ref.height,
|
|
1754
|
-
height = _ref$height === void 0 ? "3px" : _ref$height,
|
|
1755
|
-
_ref$color = _ref.color,
|
|
1756
|
-
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
1757
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1758
|
-
className: _getClassName(color, _styleModuleImportMap$z)
|
|
1759
|
-
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
1760
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1761
|
-
width: width,
|
|
1762
|
-
height: height,
|
|
1763
|
-
viewBox: "0 0 3 3"
|
|
1764
|
-
}, /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
1765
|
-
cx: "87",
|
|
1766
|
-
cy: "9",
|
|
1767
|
-
r: "1",
|
|
1768
|
-
fill: "inherit",
|
|
1769
|
-
fillRule: "nonzero",
|
|
1770
|
-
transform: "translate(-86 -8)"
|
|
1771
|
-
})));
|
|
1772
|
-
};
|
|
1773
|
-
Dot.propTypes = {
|
|
1774
|
-
/** height , width and color of the dot icon */
|
|
1775
|
-
color: PropTypes__default["default"].string,
|
|
1776
|
-
width: PropTypes__default["default"].string,
|
|
1777
|
-
height: PropTypes__default["default"].string
|
|
1778
|
-
};
|
|
1779
|
-
|
|
1780
|
-
var Twitter = function Twitter(_ref) {
|
|
1781
|
-
var _ref$color = _ref.color,
|
|
1782
|
-
color = _ref$color === void 0 ? "#1CB7EB" : _ref$color;
|
|
1783
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
1784
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1785
|
-
width: "24",
|
|
1786
|
-
height: "24",
|
|
1787
|
-
viewBox: "0 0 24 24"
|
|
1788
|
-
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1789
|
-
fill: color,
|
|
1790
|
-
d: "M19.137 8.594c.023.094.035.246.035.457 0 1.687-.41 3.316-1.23 4.887-.844 1.664-2.028 2.988-3.551 3.972-1.664 1.102-3.575 1.652-5.73 1.652-2.063 0-3.95-.55-5.661-1.652.258.024.55.035.879.035 1.71 0 3.246-.527 4.605-1.582-.82 0-1.54-.24-2.162-.72a3.673 3.673 0 01-1.283-1.811c.234.023.457.035.668.035.328 0 .656-.035.984-.105a3.724 3.724 0 01-2.109-1.301 3.542 3.542 0 01-.844-2.32v-.07a3.493 3.493 0 001.653.492 4.097 4.097 0 01-1.196-1.336 3.557 3.557 0 01-.457-1.776c0-.644.176-1.26.528-1.845a10.188 10.188 0 003.357 2.742 10.222 10.222 0 004.236 1.125 5.122 5.122 0 01-.07-.844c0-.656.164-1.272.492-1.846a3.615 3.615 0 011.336-1.353 3.568 3.568 0 011.828-.492c.54 0 1.037.105 1.494.316.457.21.862.492 1.213.844a7.479 7.479 0 002.356-.88c-.281.868-.82 1.548-1.617 2.04A7.926 7.926 0 0021 6.66a8.132 8.132 0 01-1.863 1.934z"
|
|
1791
|
-
}));
|
|
1792
|
-
};
|
|
1793
|
-
Twitter.propTypes = {
|
|
1794
|
-
color: PropTypes__default["default"].string
|
|
1795
|
-
};
|
|
1796
|
-
|
|
1797
|
-
var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
|
|
1798
|
-
|
|
1799
|
-
var StateProvider = function StateProvider(RowComponent) {
|
|
1800
|
-
return function (props) {
|
|
1801
|
-
return (
|
|
1802
|
-
/*#__PURE__*/
|
|
1803
|
-
// eslint-disable-next-line react/prop-types
|
|
1804
|
-
React__default["default"].createElement(StateContext.Provider, {
|
|
1805
|
-
value: props.config
|
|
1806
|
-
}, /*#__PURE__*/React__default["default"].createElement(RowComponent, props))
|
|
1807
|
-
);
|
|
1808
|
-
};
|
|
1809
|
-
};
|
|
1810
|
-
var useStateValue = function useStateValue() {
|
|
1811
|
-
return React.useContext(StateContext);
|
|
1812
|
-
};
|
|
1813
|
-
|
|
1814
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
1815
|
-
try {
|
|
1816
|
-
var info = gen[key](arg);
|
|
1817
|
-
var value = info.value;
|
|
1818
|
-
} catch (error) {
|
|
1819
|
-
reject(error);
|
|
1820
|
-
return;
|
|
1821
|
-
}
|
|
1822
|
-
|
|
1823
|
-
if (info.done) {
|
|
1824
|
-
resolve(value);
|
|
1825
|
-
} else {
|
|
1826
|
-
Promise.resolve(value).then(_next, _throw);
|
|
1827
|
-
}
|
|
1828
|
-
}
|
|
1829
|
-
|
|
1830
|
-
function _asyncToGenerator(fn) {
|
|
1831
|
-
return function () {
|
|
1832
|
-
var self = this,
|
|
1833
|
-
args = arguments;
|
|
1834
|
-
return new Promise(function (resolve, reject) {
|
|
1835
|
-
var gen = fn.apply(self, args);
|
|
1836
|
-
|
|
1837
|
-
function _next(value) {
|
|
1838
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
1839
|
-
}
|
|
1840
|
-
|
|
1841
|
-
function _throw(err) {
|
|
1842
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
1843
|
-
}
|
|
1844
|
-
|
|
1845
|
-
_next(undefined);
|
|
1846
|
-
});
|
|
1847
|
-
};
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
|
-
function _typeof(obj) {
|
|
1851
|
-
"@babel/helpers - typeof";
|
|
1852
|
-
|
|
1853
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
1854
|
-
return typeof obj;
|
|
1855
|
-
} : function (obj) {
|
|
1856
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
1857
|
-
}, _typeof(obj);
|
|
1858
|
-
}
|
|
1859
|
-
|
|
1860
|
-
/**
|
|
1861
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
|
1862
|
-
*
|
|
1863
|
-
* This source code is licensed under the MIT license found in the
|
|
1864
|
-
* LICENSE file in the root directory of this source tree.
|
|
1865
|
-
*/
|
|
1866
|
-
|
|
1867
|
-
var runtime_1 = createCommonjsModule(function (module) {
|
|
1868
|
-
var runtime = (function (exports) {
|
|
1869
|
-
|
|
1870
|
-
var Op = Object.prototype;
|
|
1871
|
-
var hasOwn = Op.hasOwnProperty;
|
|
1872
|
-
var undefined$1; // More compressible than void 0.
|
|
1873
|
-
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
1874
|
-
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
1875
|
-
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
1876
|
-
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
1877
|
-
|
|
1878
|
-
function define(obj, key, value) {
|
|
1879
|
-
Object.defineProperty(obj, key, {
|
|
1880
|
-
value: value,
|
|
1881
|
-
enumerable: true,
|
|
1882
|
-
configurable: true,
|
|
1883
|
-
writable: true
|
|
1884
|
-
});
|
|
1885
|
-
return obj[key];
|
|
1886
|
-
}
|
|
1887
|
-
try {
|
|
1888
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
1889
|
-
define({}, "");
|
|
1890
|
-
} catch (err) {
|
|
1891
|
-
define = function(obj, key, value) {
|
|
1892
|
-
return obj[key] = value;
|
|
1893
|
-
};
|
|
1894
|
-
}
|
|
1895
|
-
|
|
1896
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
1897
|
-
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
1898
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
1899
|
-
var generator = Object.create(protoGenerator.prototype);
|
|
1900
|
-
var context = new Context(tryLocsList || []);
|
|
1901
|
-
|
|
1902
|
-
// The ._invoke method unifies the implementations of the .next,
|
|
1903
|
-
// .throw, and .return methods.
|
|
1904
|
-
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
1905
|
-
|
|
1906
|
-
return generator;
|
|
1907
|
-
}
|
|
1908
|
-
exports.wrap = wrap;
|
|
1909
|
-
|
|
1910
|
-
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
1911
|
-
// record like context.tryEntries[i].completion. This interface could
|
|
1912
|
-
// have been (and was previously) designed to take a closure to be
|
|
1913
|
-
// invoked without arguments, but in all the cases we care about we
|
|
1914
|
-
// already have an existing method we want to call, so there's no need
|
|
1915
|
-
// to create a new function object. We can even get away with assuming
|
|
1916
|
-
// the method takes exactly one argument, since that happens to be true
|
|
1917
|
-
// in every case, so we don't have to touch the arguments object. The
|
|
1918
|
-
// only additional allocation required is the completion record, which
|
|
1919
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
|
1920
|
-
function tryCatch(fn, obj, arg) {
|
|
1921
|
-
try {
|
|
1922
|
-
return { type: "normal", arg: fn.call(obj, arg) };
|
|
1923
|
-
} catch (err) {
|
|
1924
|
-
return { type: "throw", arg: err };
|
|
1925
|
-
}
|
|
1926
|
-
}
|
|
1927
|
-
|
|
1928
|
-
var GenStateSuspendedStart = "suspendedStart";
|
|
1929
|
-
var GenStateSuspendedYield = "suspendedYield";
|
|
1930
|
-
var GenStateExecuting = "executing";
|
|
1931
|
-
var GenStateCompleted = "completed";
|
|
1932
|
-
|
|
1933
|
-
// Returning this object from the innerFn has the same effect as
|
|
1934
|
-
// breaking out of the dispatch switch statement.
|
|
1935
|
-
var ContinueSentinel = {};
|
|
1936
|
-
|
|
1937
|
-
// Dummy constructor functions that we use as the .constructor and
|
|
1938
|
-
// .constructor.prototype properties for functions that return Generator
|
|
1939
|
-
// objects. For full spec compliance, you may wish to configure your
|
|
1940
|
-
// minifier not to mangle the names of these two functions.
|
|
1941
|
-
function Generator() {}
|
|
1942
|
-
function GeneratorFunction() {}
|
|
1943
|
-
function GeneratorFunctionPrototype() {}
|
|
1944
|
-
|
|
1945
|
-
// This is a polyfill for %IteratorPrototype% for environments that
|
|
1946
|
-
// don't natively support it.
|
|
1947
|
-
var IteratorPrototype = {};
|
|
1948
|
-
define(IteratorPrototype, iteratorSymbol, function () {
|
|
1949
|
-
return this;
|
|
1950
|
-
});
|
|
1951
|
-
|
|
1952
|
-
var getProto = Object.getPrototypeOf;
|
|
1953
|
-
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
1954
|
-
if (NativeIteratorPrototype &&
|
|
1955
|
-
NativeIteratorPrototype !== Op &&
|
|
1956
|
-
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
1957
|
-
// This environment has a native %IteratorPrototype%; use it instead
|
|
1958
|
-
// of the polyfill.
|
|
1959
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
1960
|
-
}
|
|
1961
|
-
|
|
1962
|
-
var Gp = GeneratorFunctionPrototype.prototype =
|
|
1963
|
-
Generator.prototype = Object.create(IteratorPrototype);
|
|
1964
|
-
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
1965
|
-
define(Gp, "constructor", GeneratorFunctionPrototype);
|
|
1966
|
-
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
|
1967
|
-
GeneratorFunction.displayName = define(
|
|
1968
|
-
GeneratorFunctionPrototype,
|
|
1969
|
-
toStringTagSymbol,
|
|
1970
|
-
"GeneratorFunction"
|
|
1971
|
-
);
|
|
1972
|
-
|
|
1973
|
-
// Helper for defining the .next, .throw, and .return methods of the
|
|
1974
|
-
// Iterator interface in terms of a single ._invoke method.
|
|
1975
|
-
function defineIteratorMethods(prototype) {
|
|
1976
|
-
["next", "throw", "return"].forEach(function(method) {
|
|
1977
|
-
define(prototype, method, function(arg) {
|
|
1978
|
-
return this._invoke(method, arg);
|
|
1979
|
-
});
|
|
1980
|
-
});
|
|
1981
|
-
}
|
|
1982
|
-
|
|
1983
|
-
exports.isGeneratorFunction = function(genFun) {
|
|
1984
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
1985
|
-
return ctor
|
|
1986
|
-
? ctor === GeneratorFunction ||
|
|
1987
|
-
// For the native GeneratorFunction constructor, the best we can
|
|
1988
|
-
// do is to check its .name property.
|
|
1989
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
1990
|
-
: false;
|
|
1991
|
-
};
|
|
1992
|
-
|
|
1993
|
-
exports.mark = function(genFun) {
|
|
1994
|
-
if (Object.setPrototypeOf) {
|
|
1995
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
1996
|
-
} else {
|
|
1997
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
1998
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
1999
|
-
}
|
|
2000
|
-
genFun.prototype = Object.create(Gp);
|
|
2001
|
-
return genFun;
|
|
2002
|
-
};
|
|
2003
|
-
|
|
2004
|
-
// Within the body of any async function, `await x` is transformed to
|
|
2005
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
2006
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
2007
|
-
// meant to be awaited.
|
|
2008
|
-
exports.awrap = function(arg) {
|
|
2009
|
-
return { __await: arg };
|
|
2010
|
-
};
|
|
2011
|
-
|
|
2012
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
2013
|
-
function invoke(method, arg, resolve, reject) {
|
|
2014
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
2015
|
-
if (record.type === "throw") {
|
|
2016
|
-
reject(record.arg);
|
|
2017
|
-
} else {
|
|
2018
|
-
var result = record.arg;
|
|
2019
|
-
var value = result.value;
|
|
2020
|
-
if (value &&
|
|
2021
|
-
typeof value === "object" &&
|
|
2022
|
-
hasOwn.call(value, "__await")) {
|
|
2023
|
-
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
2024
|
-
invoke("next", value, resolve, reject);
|
|
2025
|
-
}, function(err) {
|
|
2026
|
-
invoke("throw", err, resolve, reject);
|
|
2027
|
-
});
|
|
2028
|
-
}
|
|
2029
|
-
|
|
2030
|
-
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
2031
|
-
// When a yielded Promise is resolved, its final value becomes
|
|
2032
|
-
// the .value of the Promise<{value,done}> result for the
|
|
2033
|
-
// current iteration.
|
|
2034
|
-
result.value = unwrapped;
|
|
2035
|
-
resolve(result);
|
|
2036
|
-
}, function(error) {
|
|
2037
|
-
// If a rejected Promise was yielded, throw the rejection back
|
|
2038
|
-
// into the async generator function so it can be handled there.
|
|
2039
|
-
return invoke("throw", error, resolve, reject);
|
|
2040
|
-
});
|
|
2041
|
-
}
|
|
2042
|
-
}
|
|
2043
|
-
|
|
2044
|
-
var previousPromise;
|
|
2045
|
-
|
|
2046
|
-
function enqueue(method, arg) {
|
|
2047
|
-
function callInvokeWithMethodAndArg() {
|
|
2048
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
2049
|
-
invoke(method, arg, resolve, reject);
|
|
2050
|
-
});
|
|
2051
|
-
}
|
|
2052
|
-
|
|
2053
|
-
return previousPromise =
|
|
2054
|
-
// If enqueue has been called before, then we want to wait until
|
|
2055
|
-
// all previous Promises have been resolved before calling invoke,
|
|
2056
|
-
// so that results are always delivered in the correct order. If
|
|
2057
|
-
// enqueue has not been called before, then it is important to
|
|
2058
|
-
// call invoke immediately, without waiting on a callback to fire,
|
|
2059
|
-
// so that the async generator function has the opportunity to do
|
|
2060
|
-
// any necessary setup in a predictable way. This predictability
|
|
2061
|
-
// is why the Promise constructor synchronously invokes its
|
|
2062
|
-
// executor callback, and why async functions synchronously
|
|
2063
|
-
// execute code before the first await. Since we implement simple
|
|
2064
|
-
// async functions in terms of async generators, it is especially
|
|
2065
|
-
// important to get this right, even though it requires care.
|
|
2066
|
-
previousPromise ? previousPromise.then(
|
|
2067
|
-
callInvokeWithMethodAndArg,
|
|
2068
|
-
// Avoid propagating failures to Promises returned by later
|
|
2069
|
-
// invocations of the iterator.
|
|
2070
|
-
callInvokeWithMethodAndArg
|
|
2071
|
-
) : callInvokeWithMethodAndArg();
|
|
2072
|
-
}
|
|
2073
|
-
|
|
2074
|
-
// Define the unified helper method that is used to implement .next,
|
|
2075
|
-
// .throw, and .return (see defineIteratorMethods).
|
|
2076
|
-
this._invoke = enqueue;
|
|
2077
|
-
}
|
|
2078
|
-
|
|
2079
|
-
defineIteratorMethods(AsyncIterator.prototype);
|
|
2080
|
-
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
2081
|
-
return this;
|
|
2082
|
-
});
|
|
2083
|
-
exports.AsyncIterator = AsyncIterator;
|
|
2084
|
-
|
|
2085
|
-
// Note that simple async functions are implemented on top of
|
|
2086
|
-
// AsyncIterator objects; they just return a Promise for the value of
|
|
2087
|
-
// the final result produced by the iterator.
|
|
2088
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
2089
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
2090
|
-
|
|
2091
|
-
var iter = new AsyncIterator(
|
|
2092
|
-
wrap(innerFn, outerFn, self, tryLocsList),
|
|
2093
|
-
PromiseImpl
|
|
2094
|
-
);
|
|
2095
|
-
|
|
2096
|
-
return exports.isGeneratorFunction(outerFn)
|
|
2097
|
-
? iter // If outerFn is a generator, return the full iterator.
|
|
2098
|
-
: iter.next().then(function(result) {
|
|
2099
|
-
return result.done ? result.value : iter.next();
|
|
2100
|
-
});
|
|
2101
|
-
};
|
|
2102
|
-
|
|
2103
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
2104
|
-
var state = GenStateSuspendedStart;
|
|
2105
|
-
|
|
2106
|
-
return function invoke(method, arg) {
|
|
2107
|
-
if (state === GenStateExecuting) {
|
|
2108
|
-
throw new Error("Generator is already running");
|
|
2109
|
-
}
|
|
2110
|
-
|
|
2111
|
-
if (state === GenStateCompleted) {
|
|
2112
|
-
if (method === "throw") {
|
|
2113
|
-
throw arg;
|
|
2114
|
-
}
|
|
2115
|
-
|
|
2116
|
-
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
2117
|
-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
2118
|
-
return doneResult();
|
|
2119
|
-
}
|
|
2120
|
-
|
|
2121
|
-
context.method = method;
|
|
2122
|
-
context.arg = arg;
|
|
2123
|
-
|
|
2124
|
-
while (true) {
|
|
2125
|
-
var delegate = context.delegate;
|
|
2126
|
-
if (delegate) {
|
|
2127
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
2128
|
-
if (delegateResult) {
|
|
2129
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
2130
|
-
return delegateResult;
|
|
2131
|
-
}
|
|
2132
|
-
}
|
|
2133
|
-
|
|
2134
|
-
if (context.method === "next") {
|
|
2135
|
-
// Setting context._sent for legacy support of Babel's
|
|
2136
|
-
// function.sent implementation.
|
|
2137
|
-
context.sent = context._sent = context.arg;
|
|
2138
|
-
|
|
2139
|
-
} else if (context.method === "throw") {
|
|
2140
|
-
if (state === GenStateSuspendedStart) {
|
|
2141
|
-
state = GenStateCompleted;
|
|
2142
|
-
throw context.arg;
|
|
2143
|
-
}
|
|
2144
|
-
|
|
2145
|
-
context.dispatchException(context.arg);
|
|
2146
|
-
|
|
2147
|
-
} else if (context.method === "return") {
|
|
2148
|
-
context.abrupt("return", context.arg);
|
|
2149
|
-
}
|
|
2150
|
-
|
|
2151
|
-
state = GenStateExecuting;
|
|
2152
|
-
|
|
2153
|
-
var record = tryCatch(innerFn, self, context);
|
|
2154
|
-
if (record.type === "normal") {
|
|
2155
|
-
// If an exception is thrown from innerFn, we leave state ===
|
|
2156
|
-
// GenStateExecuting and loop back for another invocation.
|
|
2157
|
-
state = context.done
|
|
2158
|
-
? GenStateCompleted
|
|
2159
|
-
: GenStateSuspendedYield;
|
|
2160
|
-
|
|
2161
|
-
if (record.arg === ContinueSentinel) {
|
|
2162
|
-
continue;
|
|
2163
|
-
}
|
|
2164
|
-
|
|
2165
|
-
return {
|
|
2166
|
-
value: record.arg,
|
|
2167
|
-
done: context.done
|
|
2168
|
-
};
|
|
2169
|
-
|
|
2170
|
-
} else if (record.type === "throw") {
|
|
2171
|
-
state = GenStateCompleted;
|
|
2172
|
-
// Dispatch the exception by looping back around to the
|
|
2173
|
-
// context.dispatchException(context.arg) call above.
|
|
2174
|
-
context.method = "throw";
|
|
2175
|
-
context.arg = record.arg;
|
|
2176
|
-
}
|
|
2177
|
-
}
|
|
2178
|
-
};
|
|
2179
|
-
}
|
|
2180
|
-
|
|
2181
|
-
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
2182
|
-
// result, either by returning a { value, done } result from the
|
|
2183
|
-
// delegate iterator, or by modifying context.method and context.arg,
|
|
2184
|
-
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
2185
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
2186
|
-
var method = delegate.iterator[context.method];
|
|
2187
|
-
if (method === undefined$1) {
|
|
2188
|
-
// A .throw or .return when the delegate iterator has no .throw
|
|
2189
|
-
// method always terminates the yield* loop.
|
|
2190
|
-
context.delegate = null;
|
|
2191
|
-
|
|
2192
|
-
if (context.method === "throw") {
|
|
2193
|
-
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
2194
|
-
if (delegate.iterator["return"]) {
|
|
2195
|
-
// If the delegate iterator has a return method, give it a
|
|
2196
|
-
// chance to clean up.
|
|
2197
|
-
context.method = "return";
|
|
2198
|
-
context.arg = undefined$1;
|
|
2199
|
-
maybeInvokeDelegate(delegate, context);
|
|
2200
|
-
|
|
2201
|
-
if (context.method === "throw") {
|
|
2202
|
-
// If maybeInvokeDelegate(context) changed context.method from
|
|
2203
|
-
// "return" to "throw", let that override the TypeError below.
|
|
2204
|
-
return ContinueSentinel;
|
|
2205
|
-
}
|
|
2206
|
-
}
|
|
2207
|
-
|
|
2208
|
-
context.method = "throw";
|
|
2209
|
-
context.arg = new TypeError(
|
|
2210
|
-
"The iterator does not provide a 'throw' method");
|
|
2211
|
-
}
|
|
2212
|
-
|
|
2213
|
-
return ContinueSentinel;
|
|
2214
|
-
}
|
|
2215
|
-
|
|
2216
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
2217
|
-
|
|
2218
|
-
if (record.type === "throw") {
|
|
2219
|
-
context.method = "throw";
|
|
2220
|
-
context.arg = record.arg;
|
|
2221
|
-
context.delegate = null;
|
|
2222
|
-
return ContinueSentinel;
|
|
2223
|
-
}
|
|
2224
|
-
|
|
2225
|
-
var info = record.arg;
|
|
2226
|
-
|
|
2227
|
-
if (! info) {
|
|
2228
|
-
context.method = "throw";
|
|
2229
|
-
context.arg = new TypeError("iterator result is not an object");
|
|
2230
|
-
context.delegate = null;
|
|
2231
|
-
return ContinueSentinel;
|
|
2232
|
-
}
|
|
2233
|
-
|
|
2234
|
-
if (info.done) {
|
|
2235
|
-
// Assign the result of the finished delegate to the temporary
|
|
2236
|
-
// variable specified by delegate.resultName (see delegateYield).
|
|
2237
|
-
context[delegate.resultName] = info.value;
|
|
2238
|
-
|
|
2239
|
-
// Resume execution at the desired location (see delegateYield).
|
|
2240
|
-
context.next = delegate.nextLoc;
|
|
2241
|
-
|
|
2242
|
-
// If context.method was "throw" but the delegate handled the
|
|
2243
|
-
// exception, let the outer generator proceed normally. If
|
|
2244
|
-
// context.method was "next", forget context.arg since it has been
|
|
2245
|
-
// "consumed" by the delegate iterator. If context.method was
|
|
2246
|
-
// "return", allow the original .return call to continue in the
|
|
2247
|
-
// outer generator.
|
|
2248
|
-
if (context.method !== "return") {
|
|
2249
|
-
context.method = "next";
|
|
2250
|
-
context.arg = undefined$1;
|
|
2251
|
-
}
|
|
2252
|
-
|
|
2253
|
-
} else {
|
|
2254
|
-
// Re-yield the result returned by the delegate method.
|
|
2255
|
-
return info;
|
|
2256
|
-
}
|
|
2257
|
-
|
|
2258
|
-
// The delegate iterator is finished, so forget it and continue with
|
|
2259
|
-
// the outer generator.
|
|
2260
|
-
context.delegate = null;
|
|
2261
|
-
return ContinueSentinel;
|
|
2262
|
-
}
|
|
2263
|
-
|
|
2264
|
-
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
2265
|
-
// unified ._invoke helper method.
|
|
2266
|
-
defineIteratorMethods(Gp);
|
|
2267
|
-
|
|
2268
|
-
define(Gp, toStringTagSymbol, "Generator");
|
|
2269
|
-
|
|
2270
|
-
// A Generator should always return itself as the iterator object when the
|
|
2271
|
-
// @@iterator function is called on it. Some browsers' implementations of the
|
|
2272
|
-
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
2273
|
-
// object to not be returned from this call. This ensures that doesn't happen.
|
|
2274
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
2275
|
-
define(Gp, iteratorSymbol, function() {
|
|
2276
|
-
return this;
|
|
2277
|
-
});
|
|
2278
|
-
|
|
2279
|
-
define(Gp, "toString", function() {
|
|
2280
|
-
return "[object Generator]";
|
|
2281
|
-
});
|
|
2282
|
-
|
|
2283
|
-
function pushTryEntry(locs) {
|
|
2284
|
-
var entry = { tryLoc: locs[0] };
|
|
2285
|
-
|
|
2286
|
-
if (1 in locs) {
|
|
2287
|
-
entry.catchLoc = locs[1];
|
|
2288
|
-
}
|
|
2289
|
-
|
|
2290
|
-
if (2 in locs) {
|
|
2291
|
-
entry.finallyLoc = locs[2];
|
|
2292
|
-
entry.afterLoc = locs[3];
|
|
2293
|
-
}
|
|
2294
|
-
|
|
2295
|
-
this.tryEntries.push(entry);
|
|
2296
|
-
}
|
|
2297
|
-
|
|
2298
|
-
function resetTryEntry(entry) {
|
|
2299
|
-
var record = entry.completion || {};
|
|
2300
|
-
record.type = "normal";
|
|
2301
|
-
delete record.arg;
|
|
2302
|
-
entry.completion = record;
|
|
2303
|
-
}
|
|
2304
|
-
|
|
2305
|
-
function Context(tryLocsList) {
|
|
2306
|
-
// The root entry object (effectively a try statement without a catch
|
|
2307
|
-
// or a finally block) gives us a place to store values thrown from
|
|
2308
|
-
// locations where there is no enclosing try statement.
|
|
2309
|
-
this.tryEntries = [{ tryLoc: "root" }];
|
|
2310
|
-
tryLocsList.forEach(pushTryEntry, this);
|
|
2311
|
-
this.reset(true);
|
|
2312
|
-
}
|
|
2313
|
-
|
|
2314
|
-
exports.keys = function(object) {
|
|
2315
|
-
var keys = [];
|
|
2316
|
-
for (var key in object) {
|
|
2317
|
-
keys.push(key);
|
|
2318
|
-
}
|
|
2319
|
-
keys.reverse();
|
|
2320
|
-
|
|
2321
|
-
// Rather than returning an object with a next method, we keep
|
|
2322
|
-
// things simple and return the next function itself.
|
|
2323
|
-
return function next() {
|
|
2324
|
-
while (keys.length) {
|
|
2325
|
-
var key = keys.pop();
|
|
2326
|
-
if (key in object) {
|
|
2327
|
-
next.value = key;
|
|
2328
|
-
next.done = false;
|
|
2329
|
-
return next;
|
|
2330
|
-
}
|
|
2331
|
-
}
|
|
2332
|
-
|
|
2333
|
-
// To avoid creating an additional object, we just hang the .value
|
|
2334
|
-
// and .done properties off the next function object itself. This
|
|
2335
|
-
// also ensures that the minifier will not anonymize the function.
|
|
2336
|
-
next.done = true;
|
|
2337
|
-
return next;
|
|
2338
|
-
};
|
|
2339
|
-
};
|
|
2340
|
-
|
|
2341
|
-
function values(iterable) {
|
|
2342
|
-
if (iterable) {
|
|
2343
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
2344
|
-
if (iteratorMethod) {
|
|
2345
|
-
return iteratorMethod.call(iterable);
|
|
2346
|
-
}
|
|
2347
|
-
|
|
2348
|
-
if (typeof iterable.next === "function") {
|
|
2349
|
-
return iterable;
|
|
2350
|
-
}
|
|
2351
|
-
|
|
2352
|
-
if (!isNaN(iterable.length)) {
|
|
2353
|
-
var i = -1, next = function next() {
|
|
2354
|
-
while (++i < iterable.length) {
|
|
2355
|
-
if (hasOwn.call(iterable, i)) {
|
|
2356
|
-
next.value = iterable[i];
|
|
2357
|
-
next.done = false;
|
|
2358
|
-
return next;
|
|
2359
|
-
}
|
|
2360
|
-
}
|
|
2361
|
-
|
|
2362
|
-
next.value = undefined$1;
|
|
2363
|
-
next.done = true;
|
|
2364
|
-
|
|
2365
|
-
return next;
|
|
2366
|
-
};
|
|
2367
|
-
|
|
2368
|
-
return next.next = next;
|
|
2369
|
-
}
|
|
2370
|
-
}
|
|
2371
|
-
|
|
2372
|
-
// Return an iterator with no values.
|
|
2373
|
-
return { next: doneResult };
|
|
2374
|
-
}
|
|
2375
|
-
exports.values = values;
|
|
2376
|
-
|
|
2377
|
-
function doneResult() {
|
|
2378
|
-
return { value: undefined$1, done: true };
|
|
53
|
+
var _styleModuleImportMap$z = {
|
|
54
|
+
"./dot.m.css": {
|
|
55
|
+
"dark": "dot-m_dark__1Njxl",
|
|
56
|
+
"light": "dot-m_light__27IA3"
|
|
2379
57
|
}
|
|
58
|
+
};
|
|
59
|
+
var Dot = function Dot(_ref) {
|
|
60
|
+
var _ref$width = _ref.width,
|
|
61
|
+
width = _ref$width === void 0 ? "3px" : _ref$width,
|
|
62
|
+
_ref$height = _ref.height,
|
|
63
|
+
height = _ref$height === void 0 ? "3px" : _ref$height,
|
|
64
|
+
_ref$color = _ref.color,
|
|
65
|
+
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
66
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
67
|
+
className: _getClassName__default["default"](color, _styleModuleImportMap$z)
|
|
68
|
+
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
69
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
70
|
+
width: width,
|
|
71
|
+
height: height,
|
|
72
|
+
viewBox: "0 0 3 3"
|
|
73
|
+
}, /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
74
|
+
cx: "87",
|
|
75
|
+
cy: "9",
|
|
76
|
+
r: "1",
|
|
77
|
+
fill: "inherit",
|
|
78
|
+
fillRule: "nonzero",
|
|
79
|
+
transform: "translate(-86 -8)"
|
|
80
|
+
})));
|
|
81
|
+
};
|
|
82
|
+
Dot.propTypes = {
|
|
83
|
+
/** height , width and color of the dot icon */
|
|
84
|
+
color: PropTypes__default["default"].string,
|
|
85
|
+
width: PropTypes__default["default"].string,
|
|
86
|
+
height: PropTypes__default["default"].string
|
|
87
|
+
};
|
|
2380
88
|
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
if (!skipTempReset) {
|
|
2399
|
-
for (var name in this) {
|
|
2400
|
-
// Not sure about the optimal order of these conditions:
|
|
2401
|
-
if (name.charAt(0) === "t" &&
|
|
2402
|
-
hasOwn.call(this, name) &&
|
|
2403
|
-
!isNaN(+name.slice(1))) {
|
|
2404
|
-
this[name] = undefined$1;
|
|
2405
|
-
}
|
|
2406
|
-
}
|
|
2407
|
-
}
|
|
2408
|
-
},
|
|
2409
|
-
|
|
2410
|
-
stop: function() {
|
|
2411
|
-
this.done = true;
|
|
2412
|
-
|
|
2413
|
-
var rootEntry = this.tryEntries[0];
|
|
2414
|
-
var rootRecord = rootEntry.completion;
|
|
2415
|
-
if (rootRecord.type === "throw") {
|
|
2416
|
-
throw rootRecord.arg;
|
|
2417
|
-
}
|
|
2418
|
-
|
|
2419
|
-
return this.rval;
|
|
2420
|
-
},
|
|
2421
|
-
|
|
2422
|
-
dispatchException: function(exception) {
|
|
2423
|
-
if (this.done) {
|
|
2424
|
-
throw exception;
|
|
2425
|
-
}
|
|
2426
|
-
|
|
2427
|
-
var context = this;
|
|
2428
|
-
function handle(loc, caught) {
|
|
2429
|
-
record.type = "throw";
|
|
2430
|
-
record.arg = exception;
|
|
2431
|
-
context.next = loc;
|
|
2432
|
-
|
|
2433
|
-
if (caught) {
|
|
2434
|
-
// If the dispatched exception was caught by a catch block,
|
|
2435
|
-
// then let that catch block handle the exception normally.
|
|
2436
|
-
context.method = "next";
|
|
2437
|
-
context.arg = undefined$1;
|
|
2438
|
-
}
|
|
2439
|
-
|
|
2440
|
-
return !! caught;
|
|
2441
|
-
}
|
|
2442
|
-
|
|
2443
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
2444
|
-
var entry = this.tryEntries[i];
|
|
2445
|
-
var record = entry.completion;
|
|
2446
|
-
|
|
2447
|
-
if (entry.tryLoc === "root") {
|
|
2448
|
-
// Exception thrown outside of any try block that could handle
|
|
2449
|
-
// it, so set the completion value of the entire function to
|
|
2450
|
-
// throw the exception.
|
|
2451
|
-
return handle("end");
|
|
2452
|
-
}
|
|
2453
|
-
|
|
2454
|
-
if (entry.tryLoc <= this.prev) {
|
|
2455
|
-
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
2456
|
-
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
2457
|
-
|
|
2458
|
-
if (hasCatch && hasFinally) {
|
|
2459
|
-
if (this.prev < entry.catchLoc) {
|
|
2460
|
-
return handle(entry.catchLoc, true);
|
|
2461
|
-
} else if (this.prev < entry.finallyLoc) {
|
|
2462
|
-
return handle(entry.finallyLoc);
|
|
2463
|
-
}
|
|
2464
|
-
|
|
2465
|
-
} else if (hasCatch) {
|
|
2466
|
-
if (this.prev < entry.catchLoc) {
|
|
2467
|
-
return handle(entry.catchLoc, true);
|
|
2468
|
-
}
|
|
2469
|
-
|
|
2470
|
-
} else if (hasFinally) {
|
|
2471
|
-
if (this.prev < entry.finallyLoc) {
|
|
2472
|
-
return handle(entry.finallyLoc);
|
|
2473
|
-
}
|
|
2474
|
-
|
|
2475
|
-
} else {
|
|
2476
|
-
throw new Error("try statement without catch or finally");
|
|
2477
|
-
}
|
|
2478
|
-
}
|
|
2479
|
-
}
|
|
2480
|
-
},
|
|
2481
|
-
|
|
2482
|
-
abrupt: function(type, arg) {
|
|
2483
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
2484
|
-
var entry = this.tryEntries[i];
|
|
2485
|
-
if (entry.tryLoc <= this.prev &&
|
|
2486
|
-
hasOwn.call(entry, "finallyLoc") &&
|
|
2487
|
-
this.prev < entry.finallyLoc) {
|
|
2488
|
-
var finallyEntry = entry;
|
|
2489
|
-
break;
|
|
2490
|
-
}
|
|
2491
|
-
}
|
|
2492
|
-
|
|
2493
|
-
if (finallyEntry &&
|
|
2494
|
-
(type === "break" ||
|
|
2495
|
-
type === "continue") &&
|
|
2496
|
-
finallyEntry.tryLoc <= arg &&
|
|
2497
|
-
arg <= finallyEntry.finallyLoc) {
|
|
2498
|
-
// Ignore the finally entry if control is not jumping to a
|
|
2499
|
-
// location outside the try/catch block.
|
|
2500
|
-
finallyEntry = null;
|
|
2501
|
-
}
|
|
2502
|
-
|
|
2503
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
2504
|
-
record.type = type;
|
|
2505
|
-
record.arg = arg;
|
|
2506
|
-
|
|
2507
|
-
if (finallyEntry) {
|
|
2508
|
-
this.method = "next";
|
|
2509
|
-
this.next = finallyEntry.finallyLoc;
|
|
2510
|
-
return ContinueSentinel;
|
|
2511
|
-
}
|
|
2512
|
-
|
|
2513
|
-
return this.complete(record);
|
|
2514
|
-
},
|
|
2515
|
-
|
|
2516
|
-
complete: function(record, afterLoc) {
|
|
2517
|
-
if (record.type === "throw") {
|
|
2518
|
-
throw record.arg;
|
|
2519
|
-
}
|
|
2520
|
-
|
|
2521
|
-
if (record.type === "break" ||
|
|
2522
|
-
record.type === "continue") {
|
|
2523
|
-
this.next = record.arg;
|
|
2524
|
-
} else if (record.type === "return") {
|
|
2525
|
-
this.rval = this.arg = record.arg;
|
|
2526
|
-
this.method = "return";
|
|
2527
|
-
this.next = "end";
|
|
2528
|
-
} else if (record.type === "normal" && afterLoc) {
|
|
2529
|
-
this.next = afterLoc;
|
|
2530
|
-
}
|
|
2531
|
-
|
|
2532
|
-
return ContinueSentinel;
|
|
2533
|
-
},
|
|
2534
|
-
|
|
2535
|
-
finish: function(finallyLoc) {
|
|
2536
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
2537
|
-
var entry = this.tryEntries[i];
|
|
2538
|
-
if (entry.finallyLoc === finallyLoc) {
|
|
2539
|
-
this.complete(entry.completion, entry.afterLoc);
|
|
2540
|
-
resetTryEntry(entry);
|
|
2541
|
-
return ContinueSentinel;
|
|
2542
|
-
}
|
|
2543
|
-
}
|
|
2544
|
-
},
|
|
2545
|
-
|
|
2546
|
-
"catch": function(tryLoc) {
|
|
2547
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
2548
|
-
var entry = this.tryEntries[i];
|
|
2549
|
-
if (entry.tryLoc === tryLoc) {
|
|
2550
|
-
var record = entry.completion;
|
|
2551
|
-
if (record.type === "throw") {
|
|
2552
|
-
var thrown = record.arg;
|
|
2553
|
-
resetTryEntry(entry);
|
|
2554
|
-
}
|
|
2555
|
-
return thrown;
|
|
2556
|
-
}
|
|
2557
|
-
}
|
|
2558
|
-
|
|
2559
|
-
// The context.catch method must only be called with a location
|
|
2560
|
-
// argument that corresponds to a known catch block.
|
|
2561
|
-
throw new Error("illegal catch attempt");
|
|
2562
|
-
},
|
|
2563
|
-
|
|
2564
|
-
delegateYield: function(iterable, resultName, nextLoc) {
|
|
2565
|
-
this.delegate = {
|
|
2566
|
-
iterator: values(iterable),
|
|
2567
|
-
resultName: resultName,
|
|
2568
|
-
nextLoc: nextLoc
|
|
2569
|
-
};
|
|
89
|
+
var Twitter = function Twitter(_ref) {
|
|
90
|
+
var _ref$color = _ref.color,
|
|
91
|
+
color = _ref$color === void 0 ? "#1CB7EB" : _ref$color;
|
|
92
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
93
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
94
|
+
width: "24",
|
|
95
|
+
height: "24",
|
|
96
|
+
viewBox: "0 0 24 24"
|
|
97
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
98
|
+
fill: color,
|
|
99
|
+
d: "M19.137 8.594c.023.094.035.246.035.457 0 1.687-.41 3.316-1.23 4.887-.844 1.664-2.028 2.988-3.551 3.972-1.664 1.102-3.575 1.652-5.73 1.652-2.063 0-3.95-.55-5.661-1.652.258.024.55.035.879.035 1.71 0 3.246-.527 4.605-1.582-.82 0-1.54-.24-2.162-.72a3.673 3.673 0 01-1.283-1.811c.234.023.457.035.668.035.328 0 .656-.035.984-.105a3.724 3.724 0 01-2.109-1.301 3.542 3.542 0 01-.844-2.32v-.07a3.493 3.493 0 001.653.492 4.097 4.097 0 01-1.196-1.336 3.557 3.557 0 01-.457-1.776c0-.644.176-1.26.528-1.845a10.188 10.188 0 003.357 2.742 10.222 10.222 0 004.236 1.125 5.122 5.122 0 01-.07-.844c0-.656.164-1.272.492-1.846a3.615 3.615 0 011.336-1.353 3.568 3.568 0 011.828-.492c.54 0 1.037.105 1.494.316.457.21.862.492 1.213.844a7.479 7.479 0 002.356-.88c-.281.868-.82 1.548-1.617 2.04A7.926 7.926 0 0021 6.66a8.132 8.132 0 01-1.863 1.934z"
|
|
100
|
+
}));
|
|
101
|
+
};
|
|
102
|
+
Twitter.propTypes = {
|
|
103
|
+
color: PropTypes__default["default"].string
|
|
104
|
+
};
|
|
2570
105
|
|
|
2571
|
-
|
|
2572
|
-
// Deliberately forget the last sent value so that we don't
|
|
2573
|
-
// accidentally pass it on to the delegate.
|
|
2574
|
-
this.arg = undefined$1;
|
|
2575
|
-
}
|
|
106
|
+
var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
|
|
2576
107
|
|
|
2577
|
-
|
|
2578
|
-
|
|
108
|
+
var StateProvider = function StateProvider(RowComponent) {
|
|
109
|
+
return function (props) {
|
|
110
|
+
return (
|
|
111
|
+
/*#__PURE__*/
|
|
112
|
+
// eslint-disable-next-line react/prop-types
|
|
113
|
+
React__default["default"].createElement(StateContext.Provider, {
|
|
114
|
+
value: props.config
|
|
115
|
+
}, /*#__PURE__*/React__default["default"].createElement(RowComponent, props))
|
|
116
|
+
);
|
|
2579
117
|
};
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
2585
|
-
return exports;
|
|
2586
|
-
|
|
2587
|
-
}(
|
|
2588
|
-
// If this script is executing as a CommonJS module, use module.exports
|
|
2589
|
-
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
2590
|
-
// object. Either way, the resulting object will be used to initialize
|
|
2591
|
-
// the regeneratorRuntime variable at the top of this file.
|
|
2592
|
-
module.exports
|
|
2593
|
-
));
|
|
2594
|
-
|
|
2595
|
-
try {
|
|
2596
|
-
regeneratorRuntime = runtime;
|
|
2597
|
-
} catch (accidentalStrictMode) {
|
|
2598
|
-
// This module should not be running in strict mode, so the above
|
|
2599
|
-
// assignment should always work unless something is misconfigured. Just
|
|
2600
|
-
// in case runtime.js accidentally runs in strict mode, in modern engines
|
|
2601
|
-
// we can explicitly access globalThis. In older engines we can escape
|
|
2602
|
-
// strict mode using a global Function call. This could conceivably fail
|
|
2603
|
-
// if a Content Security Policy forbids using Function, but in that case
|
|
2604
|
-
// the proper solution is to fix the accidental strict mode problem. If
|
|
2605
|
-
// you've misconfigured your bundler to force strict mode and applied a
|
|
2606
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
|
2607
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
|
2608
|
-
if (typeof globalThis === "object") {
|
|
2609
|
-
globalThis.regeneratorRuntime = runtime;
|
|
2610
|
-
} else {
|
|
2611
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
2612
|
-
}
|
|
2613
|
-
}
|
|
2614
|
-
});
|
|
2615
|
-
|
|
2616
|
-
var regenerator = runtime_1;
|
|
2617
|
-
|
|
2618
|
-
/**
|
|
2619
|
-
* Converts `string`, as space separated words, to upper case.
|
|
2620
|
-
*
|
|
2621
|
-
* @static
|
|
2622
|
-
* @memberOf _
|
|
2623
|
-
* @since 4.0.0
|
|
2624
|
-
* @category String
|
|
2625
|
-
* @param {string} [string=''] The string to convert.
|
|
2626
|
-
* @returns {string} Returns the upper cased string.
|
|
2627
|
-
* @example
|
|
2628
|
-
*
|
|
2629
|
-
* _.upperCase('--foo-bar');
|
|
2630
|
-
* // => 'FOO BAR'
|
|
2631
|
-
*
|
|
2632
|
-
* _.upperCase('fooBar');
|
|
2633
|
-
* // => 'FOO BAR'
|
|
2634
|
-
*
|
|
2635
|
-
* _.upperCase('__foo_bar__');
|
|
2636
|
-
* // => 'FOO BAR'
|
|
2637
|
-
*/
|
|
2638
|
-
var upperCase = _createCompounder(function(result, word, index) {
|
|
2639
|
-
return result + (index ? ' ' : '') + word.toUpperCase();
|
|
2640
|
-
});
|
|
2641
|
-
|
|
2642
|
-
var upperCase_1 = upperCase;
|
|
2643
|
-
|
|
2644
|
-
/**
|
|
2645
|
-
* Converts `string`, as space separated words, to lower case.
|
|
2646
|
-
*
|
|
2647
|
-
* @static
|
|
2648
|
-
* @memberOf _
|
|
2649
|
-
* @since 4.0.0
|
|
2650
|
-
* @category String
|
|
2651
|
-
* @param {string} [string=''] The string to convert.
|
|
2652
|
-
* @returns {string} Returns the lower cased string.
|
|
2653
|
-
* @example
|
|
2654
|
-
*
|
|
2655
|
-
* _.lowerCase('--Foo-Bar--');
|
|
2656
|
-
* // => 'foo bar'
|
|
2657
|
-
*
|
|
2658
|
-
* _.lowerCase('fooBar');
|
|
2659
|
-
* // => 'foo bar'
|
|
2660
|
-
*
|
|
2661
|
-
* _.lowerCase('__FOO_BAR__');
|
|
2662
|
-
* // => 'foo bar'
|
|
2663
|
-
*/
|
|
2664
|
-
var lowerCase = _createCompounder(function(result, word, index) {
|
|
2665
|
-
return result + (index ? ' ' : '') + word.toLowerCase();
|
|
2666
|
-
});
|
|
2667
|
-
|
|
2668
|
-
var lowerCase_1 = lowerCase;
|
|
118
|
+
};
|
|
119
|
+
var useStateValue = function useStateValue() {
|
|
120
|
+
return React.useContext(StateContext);
|
|
121
|
+
};
|
|
2669
122
|
|
|
2670
123
|
function truncate() {
|
|
2671
124
|
var string = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
@@ -2693,7 +146,7 @@ var timestampToFormat = function timestampToFormat(value, unit, suffix, timestam
|
|
|
2693
146
|
var localizedMonth = month;
|
|
2694
147
|
|
|
2695
148
|
if (isUpperCase) {
|
|
2696
|
-
localizedMonth =
|
|
149
|
+
localizedMonth = lodash.upperCase(month);
|
|
2697
150
|
}
|
|
2698
151
|
|
|
2699
152
|
var year = dateTime.getFullYear();
|
|
@@ -2706,7 +159,7 @@ var timestampToFormat = function timestampToFormat(value, unit, suffix, timestam
|
|
|
2706
159
|
var timetoShow;
|
|
2707
160
|
|
|
2708
161
|
if (localizedMonths) {
|
|
2709
|
-
localizedMonth =
|
|
162
|
+
localizedMonth = lodash.get(localizedMonths, [lodash.lowerCase(month)]) || month;
|
|
2710
163
|
}
|
|
2711
164
|
|
|
2712
165
|
if (localizedMeridiem) {
|
|
@@ -2736,17 +189,17 @@ function formatter(value, unit, suffix, date, config) {
|
|
|
2736
189
|
var showDateForUnits = ["day", "week", "month", "year"]; // suffix here refers to ago
|
|
2737
190
|
// unit here refers to seconds, minute, minutes,...
|
|
2738
191
|
|
|
2739
|
-
var localizedSuffix =
|
|
192
|
+
var localizedSuffix = lodash.get(config, ["localizedPublishTime", suffix]) || suffix;
|
|
2740
193
|
var localizedUnitOfTime;
|
|
2741
194
|
|
|
2742
195
|
if (unit === "hour" && value > 23 || showDateForUnits.indexOf(unit) !== -1) {
|
|
2743
196
|
return timestampToFormat(value, unit, suffix, date, config);
|
|
2744
197
|
} else if (value > 1) {
|
|
2745
|
-
localizedUnitOfTime =
|
|
198
|
+
localizedUnitOfTime = lodash.get(config, ["localizedPublishTime", "".concat(unit, "s")]) || "".concat(unit, "s");
|
|
2746
199
|
return "".concat(value, " ").concat(localizedUnitOfTime, " ").concat(localizedSuffix);
|
|
2747
200
|
}
|
|
2748
201
|
|
|
2749
|
-
localizedUnitOfTime =
|
|
202
|
+
localizedUnitOfTime = lodash.get(config, ["localizedPublishTime", unit]) || unit;
|
|
2750
203
|
return "".concat(value, " ").concat(localizedUnitOfTime, " ").concat(localizedSuffix, " ");
|
|
2751
204
|
}
|
|
2752
205
|
|
|
@@ -2799,10 +252,10 @@ var clientWidths = {
|
|
|
2799
252
|
tablet: 1024
|
|
2800
253
|
};
|
|
2801
254
|
var clientWidth = function clientWidth(device) {
|
|
2802
|
-
var foundDeviceWidth =
|
|
255
|
+
var foundDeviceWidth = lodash.get(clientWidths, device);
|
|
2803
256
|
|
|
2804
257
|
if (foundDeviceWidth) {
|
|
2805
|
-
return
|
|
258
|
+
return lodash.get(global, "document.documentElement.clientWidth") <= foundDeviceWidth;
|
|
2806
259
|
}
|
|
2807
260
|
|
|
2808
261
|
return false;
|
|
@@ -2832,7 +285,7 @@ var getSlug = function getSlug(collection) {
|
|
|
2832
285
|
var isSection = collection.template === "section";
|
|
2833
286
|
|
|
2834
287
|
if (isSection) {
|
|
2835
|
-
var sectionId =
|
|
288
|
+
var sectionId = lodash.get(collection, ["metadata", "section", "0", "id"], "");
|
|
2836
289
|
var sections = config.sections;
|
|
2837
290
|
var section = sections && sections.find(function (section) {
|
|
2838
291
|
return section.id === sectionId;
|
|
@@ -2848,7 +301,7 @@ function isExternalStory() {
|
|
|
2848
301
|
storyTemplate = _story$storyTemplate === void 0 ? "" : _story$storyTemplate,
|
|
2849
302
|
_story$metadata = story.metadata,
|
|
2850
303
|
metadata = _story$metadata === void 0 ? {} : _story$metadata;
|
|
2851
|
-
return storyTemplate === "news-elsewhere" ?
|
|
304
|
+
return storyTemplate === "news-elsewhere" ? lodash.get(metadata, ["reference-url"], "") : "";
|
|
2852
305
|
} // Adds target='_blank' attribute to anchor tags if not present
|
|
2853
306
|
|
|
2854
307
|
var updateContentLinks = function updateContentLinks(content) {
|
|
@@ -2865,7 +318,7 @@ var updateContentLinks = function updateContentLinks(content) {
|
|
|
2865
318
|
};
|
|
2866
319
|
var isEmpty = function isEmpty(value) {
|
|
2867
320
|
return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
|
|
2868
|
-
|
|
321
|
+
_typeof__default["default"](value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
|
|
2869
322
|
};
|
|
2870
323
|
var shapeConfig = PropTypes__default["default"].shape({
|
|
2871
324
|
"sketches-host": PropTypes__default["default"].string,
|
|
@@ -2879,7 +332,7 @@ var shapeStory = PropTypes__default["default"].shape({
|
|
|
2879
332
|
});
|
|
2880
333
|
var getStoryUrl = function getStoryUrl(story) {
|
|
2881
334
|
var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
2882
|
-
return
|
|
335
|
+
return lodash.get(story, ["story-template"]) === "news-elsewhere" ? lodash.get(story, ["metadata", "reference-url"], "") : story.url || defaultValue;
|
|
2883
336
|
};
|
|
2884
337
|
var facebookMobileVideoResizeFix = function facebookMobileVideoResizeFix() {
|
|
2885
338
|
if (typeof window !== "undefined" && window.matchMedia && window.matchMedia("(max-width: 767px)").matches) {
|
|
@@ -2924,11 +377,11 @@ var generateNavigateSlug = function generateNavigateSlug() {
|
|
|
2924
377
|
return "/";
|
|
2925
378
|
};
|
|
2926
379
|
var getCollectionData = /*#__PURE__*/function () {
|
|
2927
|
-
var _ref =
|
|
380
|
+
var _ref = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(collectionSlug) {
|
|
2928
381
|
var mountAtPrefix,
|
|
2929
382
|
result,
|
|
2930
383
|
_args = arguments;
|
|
2931
|
-
return
|
|
384
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
|
|
2932
385
|
while (1) {
|
|
2933
386
|
switch (_context.prev = _context.next) {
|
|
2934
387
|
case 0:
|
|
@@ -3055,8 +508,8 @@ var AuthorCard = function AuthorCard(_ref) {
|
|
|
3055
508
|
showName = _opts$showName === void 0 ? true : _opts$showName;
|
|
3056
509
|
var textColor = getTextColor(configData.theme);
|
|
3057
510
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3058
|
-
"data-test-id": "author-card-".concat(
|
|
3059
|
-
className: (clazzName ? clazzName + " " : "") +
|
|
511
|
+
"data-test-id": "author-card-".concat(lodash.kebabCase(template)),
|
|
512
|
+
className: (clazzName ? clazzName + " " : "") + _getClassName__default["default"]("author-card-wrapper ".concat(template), _styleModuleImportMap$y)
|
|
3060
513
|
}, authors.map(function (author, index) {
|
|
3061
514
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
3062
515
|
key: author.id
|
|
@@ -3068,7 +521,7 @@ var AuthorCard = function AuthorCard(_ref) {
|
|
|
3068
521
|
key: "author-image-".concat(index),
|
|
3069
522
|
"aria-label": "author-image"
|
|
3070
523
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3071
|
-
className:
|
|
524
|
+
className: _getClassName__default["default"]("author-image ".concat(!index ? "first-author-image" : "", " ").concat(!isSingleAuthor ? "multi-author-image" : ""), _styleModuleImportMap$y)
|
|
3072
525
|
}, authorImage(author)))));
|
|
3073
526
|
}), showName && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3074
527
|
"data-test-id": "author-name",
|
|
@@ -3079,7 +532,7 @@ var AuthorCard = function AuthorCard(_ref) {
|
|
|
3079
532
|
href: "".concat(mountAt, "/author/") + author.slug,
|
|
3080
533
|
"aria-label": "author-name"
|
|
3081
534
|
}, /*#__PURE__*/React__default["default"].createElement("h5", {
|
|
3082
|
-
className:
|
|
535
|
+
className: _getClassName__default["default"]("multiple-author-style ".concat(textColor), _styleModuleImportMap$y)
|
|
3083
536
|
}, author.name)));
|
|
3084
537
|
}), isSingleAuthor && template !== "centerAligned" && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, authors[0]["twitter-handle"] && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3085
538
|
className: "author-card-m_dot-wrapper__2soc1"
|
|
@@ -3093,7 +546,7 @@ var AuthorCard = function AuthorCard(_ref) {
|
|
|
3093
546
|
"data-test-id": "author-info",
|
|
3094
547
|
className: "author-card-m_author-details-wrapper__1c2uc"
|
|
3095
548
|
}, showBio && isSingleAuthor && template !== "default" && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3096
|
-
className:
|
|
549
|
+
className: _getClassName__default["default"]("author-bio ".concat(textColor), _styleModuleImportMap$y)
|
|
3097
550
|
}, authors[0].bio)));
|
|
3098
551
|
};
|
|
3099
552
|
AuthorCard.propTypes = {
|
|
@@ -3146,7 +599,7 @@ var CaptionAttribution = function CaptionAttribution(_ref) {
|
|
|
3146
599
|
var updateStyle = caption ? "wrapper" : "";
|
|
3147
600
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3148
601
|
"data-test-id": "caption",
|
|
3149
|
-
className: "arr--caption-attribution " +
|
|
602
|
+
className: "arr--caption-attribution " + _getClassName__default["default"]("caption ".concat(textColor), _styleModuleImportMap$x)
|
|
3150
603
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3151
604
|
dangerouslySetInnerHTML: {
|
|
3152
605
|
__html: caption
|
|
@@ -3156,7 +609,7 @@ var CaptionAttribution = function CaptionAttribution(_ref) {
|
|
|
3156
609
|
dangerouslySetInnerHTML: {
|
|
3157
610
|
__html: attribution
|
|
3158
611
|
},
|
|
3159
|
-
className:
|
|
612
|
+
className: _getClassName__default["default"]("attribution ".concat(textColor, " ").concat(updateStyle), _styleModuleImportMap$x)
|
|
3160
613
|
}));
|
|
3161
614
|
};
|
|
3162
615
|
CaptionAttribution.propTypes = {
|
|
@@ -3170,67 +623,6 @@ CaptionAttribution.propTypes = {
|
|
|
3170
623
|
})
|
|
3171
624
|
};
|
|
3172
625
|
|
|
3173
|
-
function _arrayWithHoles(arr) {
|
|
3174
|
-
if (Array.isArray(arr)) return arr;
|
|
3175
|
-
}
|
|
3176
|
-
|
|
3177
|
-
function _iterableToArrayLimit(arr, i) {
|
|
3178
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3179
|
-
|
|
3180
|
-
if (_i == null) return;
|
|
3181
|
-
var _arr = [];
|
|
3182
|
-
var _n = true;
|
|
3183
|
-
var _d = false;
|
|
3184
|
-
|
|
3185
|
-
var _s, _e;
|
|
3186
|
-
|
|
3187
|
-
try {
|
|
3188
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
3189
|
-
_arr.push(_s.value);
|
|
3190
|
-
|
|
3191
|
-
if (i && _arr.length === i) break;
|
|
3192
|
-
}
|
|
3193
|
-
} catch (err) {
|
|
3194
|
-
_d = true;
|
|
3195
|
-
_e = err;
|
|
3196
|
-
} finally {
|
|
3197
|
-
try {
|
|
3198
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
3199
|
-
} finally {
|
|
3200
|
-
if (_d) throw _e;
|
|
3201
|
-
}
|
|
3202
|
-
}
|
|
3203
|
-
|
|
3204
|
-
return _arr;
|
|
3205
|
-
}
|
|
3206
|
-
|
|
3207
|
-
function _arrayLikeToArray(arr, len) {
|
|
3208
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
3209
|
-
|
|
3210
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
3211
|
-
arr2[i] = arr[i];
|
|
3212
|
-
}
|
|
3213
|
-
|
|
3214
|
-
return arr2;
|
|
3215
|
-
}
|
|
3216
|
-
|
|
3217
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
3218
|
-
if (!o) return;
|
|
3219
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
3220
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3221
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3222
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
3223
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
3224
|
-
}
|
|
3225
|
-
|
|
3226
|
-
function _nonIterableRest() {
|
|
3227
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3228
|
-
}
|
|
3229
|
-
|
|
3230
|
-
function _slicedToArray(arr, i) {
|
|
3231
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
3232
|
-
}
|
|
3233
|
-
|
|
3234
626
|
var Facebook = function Facebook(_ref) {
|
|
3235
627
|
var _ref$color = _ref.color,
|
|
3236
628
|
color = _ref$color === void 0 ? "#3B5998" : _ref$color;
|
|
@@ -3448,7 +840,7 @@ var SocialSharePopup = function SocialSharePopup(_ref) {
|
|
|
3448
840
|
};
|
|
3449
841
|
var popupItemsList = socialShareData(options);
|
|
3450
842
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3451
|
-
className:
|
|
843
|
+
className: _getClassName__default["default"]("share-popup-wrapper ".concat(textColor), _styleModuleImportMap$w)
|
|
3452
844
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3453
845
|
className: "social-share-popup-m_share-popup__QRt3l social-share-popup-m_share-popup-wrapper__GEJqD"
|
|
3454
846
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -3501,249 +893,6 @@ ShareIcon.propTypes = {
|
|
|
3501
893
|
color: PropTypes__default["default"].string
|
|
3502
894
|
};
|
|
3503
895
|
|
|
3504
|
-
/**
|
|
3505
|
-
* The base implementation of `_.slice` without an iteratee call guard.
|
|
3506
|
-
*
|
|
3507
|
-
* @private
|
|
3508
|
-
* @param {Array} array The array to slice.
|
|
3509
|
-
* @param {number} [start=0] The start position.
|
|
3510
|
-
* @param {number} [end=array.length] The end position.
|
|
3511
|
-
* @returns {Array} Returns the slice of `array`.
|
|
3512
|
-
*/
|
|
3513
|
-
function baseSlice(array, start, end) {
|
|
3514
|
-
var index = -1,
|
|
3515
|
-
length = array.length;
|
|
3516
|
-
|
|
3517
|
-
if (start < 0) {
|
|
3518
|
-
start = -start > length ? 0 : (length + start);
|
|
3519
|
-
}
|
|
3520
|
-
end = end > length ? length : end;
|
|
3521
|
-
if (end < 0) {
|
|
3522
|
-
end += length;
|
|
3523
|
-
}
|
|
3524
|
-
length = start > end ? 0 : ((end - start) >>> 0);
|
|
3525
|
-
start >>>= 0;
|
|
3526
|
-
|
|
3527
|
-
var result = Array(length);
|
|
3528
|
-
while (++index < length) {
|
|
3529
|
-
result[index] = array[index + start];
|
|
3530
|
-
}
|
|
3531
|
-
return result;
|
|
3532
|
-
}
|
|
3533
|
-
|
|
3534
|
-
var _baseSlice = baseSlice;
|
|
3535
|
-
|
|
3536
|
-
/**
|
|
3537
|
-
* Casts `array` to a slice if it's needed.
|
|
3538
|
-
*
|
|
3539
|
-
* @private
|
|
3540
|
-
* @param {Array} array The array to inspect.
|
|
3541
|
-
* @param {number} start The start position.
|
|
3542
|
-
* @param {number} [end=array.length] The end position.
|
|
3543
|
-
* @returns {Array} Returns the cast slice.
|
|
3544
|
-
*/
|
|
3545
|
-
function castSlice(array, start, end) {
|
|
3546
|
-
var length = array.length;
|
|
3547
|
-
end = end === undefined ? length : end;
|
|
3548
|
-
return (!start && end >= length) ? array : _baseSlice(array, start, end);
|
|
3549
|
-
}
|
|
3550
|
-
|
|
3551
|
-
var _castSlice = castSlice;
|
|
3552
|
-
|
|
3553
|
-
/** Used to compose unicode character classes. */
|
|
3554
|
-
var rsAstralRange$1 = '\\ud800-\\udfff',
|
|
3555
|
-
rsComboMarksRange$1 = '\\u0300-\\u036f',
|
|
3556
|
-
reComboHalfMarksRange$1 = '\\ufe20-\\ufe2f',
|
|
3557
|
-
rsComboSymbolsRange$1 = '\\u20d0-\\u20ff',
|
|
3558
|
-
rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1,
|
|
3559
|
-
rsVarRange$1 = '\\ufe0e\\ufe0f';
|
|
3560
|
-
|
|
3561
|
-
/** Used to compose unicode capture groups. */
|
|
3562
|
-
var rsZWJ$1 = '\\u200d';
|
|
3563
|
-
|
|
3564
|
-
/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
|
|
3565
|
-
var reHasUnicode = RegExp('[' + rsZWJ$1 + rsAstralRange$1 + rsComboRange$1 + rsVarRange$1 + ']');
|
|
3566
|
-
|
|
3567
|
-
/**
|
|
3568
|
-
* Checks if `string` contains Unicode symbols.
|
|
3569
|
-
*
|
|
3570
|
-
* @private
|
|
3571
|
-
* @param {string} string The string to inspect.
|
|
3572
|
-
* @returns {boolean} Returns `true` if a symbol is found, else `false`.
|
|
3573
|
-
*/
|
|
3574
|
-
function hasUnicode(string) {
|
|
3575
|
-
return reHasUnicode.test(string);
|
|
3576
|
-
}
|
|
3577
|
-
|
|
3578
|
-
var _hasUnicode = hasUnicode;
|
|
3579
|
-
|
|
3580
|
-
/**
|
|
3581
|
-
* Converts an ASCII `string` to an array.
|
|
3582
|
-
*
|
|
3583
|
-
* @private
|
|
3584
|
-
* @param {string} string The string to convert.
|
|
3585
|
-
* @returns {Array} Returns the converted array.
|
|
3586
|
-
*/
|
|
3587
|
-
function asciiToArray(string) {
|
|
3588
|
-
return string.split('');
|
|
3589
|
-
}
|
|
3590
|
-
|
|
3591
|
-
var _asciiToArray = asciiToArray;
|
|
3592
|
-
|
|
3593
|
-
/** Used to compose unicode character classes. */
|
|
3594
|
-
var rsAstralRange = '\\ud800-\\udfff',
|
|
3595
|
-
rsComboMarksRange = '\\u0300-\\u036f',
|
|
3596
|
-
reComboHalfMarksRange = '\\ufe20-\\ufe2f',
|
|
3597
|
-
rsComboSymbolsRange = '\\u20d0-\\u20ff',
|
|
3598
|
-
rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
|
|
3599
|
-
rsVarRange = '\\ufe0e\\ufe0f';
|
|
3600
|
-
|
|
3601
|
-
/** Used to compose unicode capture groups. */
|
|
3602
|
-
var rsAstral = '[' + rsAstralRange + ']',
|
|
3603
|
-
rsCombo = '[' + rsComboRange + ']',
|
|
3604
|
-
rsFitz = '\\ud83c[\\udffb-\\udfff]',
|
|
3605
|
-
rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
|
|
3606
|
-
rsNonAstral = '[^' + rsAstralRange + ']',
|
|
3607
|
-
rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
|
|
3608
|
-
rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
|
|
3609
|
-
rsZWJ = '\\u200d';
|
|
3610
|
-
|
|
3611
|
-
/** Used to compose unicode regexes. */
|
|
3612
|
-
var reOptMod = rsModifier + '?',
|
|
3613
|
-
rsOptVar = '[' + rsVarRange + ']?',
|
|
3614
|
-
rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
|
|
3615
|
-
rsSeq = rsOptVar + reOptMod + rsOptJoin,
|
|
3616
|
-
rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
|
|
3617
|
-
|
|
3618
|
-
/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
|
|
3619
|
-
var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
|
|
3620
|
-
|
|
3621
|
-
/**
|
|
3622
|
-
* Converts a Unicode `string` to an array.
|
|
3623
|
-
*
|
|
3624
|
-
* @private
|
|
3625
|
-
* @param {string} string The string to convert.
|
|
3626
|
-
* @returns {Array} Returns the converted array.
|
|
3627
|
-
*/
|
|
3628
|
-
function unicodeToArray(string) {
|
|
3629
|
-
return string.match(reUnicode) || [];
|
|
3630
|
-
}
|
|
3631
|
-
|
|
3632
|
-
var _unicodeToArray = unicodeToArray;
|
|
3633
|
-
|
|
3634
|
-
/**
|
|
3635
|
-
* Converts `string` to an array.
|
|
3636
|
-
*
|
|
3637
|
-
* @private
|
|
3638
|
-
* @param {string} string The string to convert.
|
|
3639
|
-
* @returns {Array} Returns the converted array.
|
|
3640
|
-
*/
|
|
3641
|
-
function stringToArray(string) {
|
|
3642
|
-
return _hasUnicode(string)
|
|
3643
|
-
? _unicodeToArray(string)
|
|
3644
|
-
: _asciiToArray(string);
|
|
3645
|
-
}
|
|
3646
|
-
|
|
3647
|
-
var _stringToArray = stringToArray;
|
|
3648
|
-
|
|
3649
|
-
/**
|
|
3650
|
-
* Creates a function like `_.lowerFirst`.
|
|
3651
|
-
*
|
|
3652
|
-
* @private
|
|
3653
|
-
* @param {string} methodName The name of the `String` case method to use.
|
|
3654
|
-
* @returns {Function} Returns the new case function.
|
|
3655
|
-
*/
|
|
3656
|
-
function createCaseFirst(methodName) {
|
|
3657
|
-
return function(string) {
|
|
3658
|
-
string = toString_1(string);
|
|
3659
|
-
|
|
3660
|
-
var strSymbols = _hasUnicode(string)
|
|
3661
|
-
? _stringToArray(string)
|
|
3662
|
-
: undefined;
|
|
3663
|
-
|
|
3664
|
-
var chr = strSymbols
|
|
3665
|
-
? strSymbols[0]
|
|
3666
|
-
: string.charAt(0);
|
|
3667
|
-
|
|
3668
|
-
var trailing = strSymbols
|
|
3669
|
-
? _castSlice(strSymbols, 1).join('')
|
|
3670
|
-
: string.slice(1);
|
|
3671
|
-
|
|
3672
|
-
return chr[methodName]() + trailing;
|
|
3673
|
-
};
|
|
3674
|
-
}
|
|
3675
|
-
|
|
3676
|
-
var _createCaseFirst = createCaseFirst;
|
|
3677
|
-
|
|
3678
|
-
/**
|
|
3679
|
-
* Converts the first character of `string` to upper case.
|
|
3680
|
-
*
|
|
3681
|
-
* @static
|
|
3682
|
-
* @memberOf _
|
|
3683
|
-
* @since 4.0.0
|
|
3684
|
-
* @category String
|
|
3685
|
-
* @param {string} [string=''] The string to convert.
|
|
3686
|
-
* @returns {string} Returns the converted string.
|
|
3687
|
-
* @example
|
|
3688
|
-
*
|
|
3689
|
-
* _.upperFirst('fred');
|
|
3690
|
-
* // => 'Fred'
|
|
3691
|
-
*
|
|
3692
|
-
* _.upperFirst('FRED');
|
|
3693
|
-
* // => 'FRED'
|
|
3694
|
-
*/
|
|
3695
|
-
var upperFirst = _createCaseFirst('toUpperCase');
|
|
3696
|
-
|
|
3697
|
-
var upperFirst_1 = upperFirst;
|
|
3698
|
-
|
|
3699
|
-
/**
|
|
3700
|
-
* Converts the first character of `string` to upper case and the remaining
|
|
3701
|
-
* to lower case.
|
|
3702
|
-
*
|
|
3703
|
-
* @static
|
|
3704
|
-
* @memberOf _
|
|
3705
|
-
* @since 3.0.0
|
|
3706
|
-
* @category String
|
|
3707
|
-
* @param {string} [string=''] The string to capitalize.
|
|
3708
|
-
* @returns {string} Returns the capitalized string.
|
|
3709
|
-
* @example
|
|
3710
|
-
*
|
|
3711
|
-
* _.capitalize('FRED');
|
|
3712
|
-
* // => 'Fred'
|
|
3713
|
-
*/
|
|
3714
|
-
function capitalize(string) {
|
|
3715
|
-
return upperFirst_1(toString_1(string).toLowerCase());
|
|
3716
|
-
}
|
|
3717
|
-
|
|
3718
|
-
var capitalize_1 = capitalize;
|
|
3719
|
-
|
|
3720
|
-
/**
|
|
3721
|
-
* Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
|
|
3722
|
-
*
|
|
3723
|
-
* @static
|
|
3724
|
-
* @memberOf _
|
|
3725
|
-
* @since 3.0.0
|
|
3726
|
-
* @category String
|
|
3727
|
-
* @param {string} [string=''] The string to convert.
|
|
3728
|
-
* @returns {string} Returns the camel cased string.
|
|
3729
|
-
* @example
|
|
3730
|
-
*
|
|
3731
|
-
* _.camelCase('Foo Bar');
|
|
3732
|
-
* // => 'fooBar'
|
|
3733
|
-
*
|
|
3734
|
-
* _.camelCase('--foo-bar--');
|
|
3735
|
-
* // => 'fooBar'
|
|
3736
|
-
*
|
|
3737
|
-
* _.camelCase('__FOO_BAR__');
|
|
3738
|
-
* // => 'fooBar'
|
|
3739
|
-
*/
|
|
3740
|
-
var camelCase = _createCompounder(function(result, word, index) {
|
|
3741
|
-
word = word.toLowerCase();
|
|
3742
|
-
return result + (index ? capitalize_1(word) : word);
|
|
3743
|
-
});
|
|
3744
|
-
|
|
3745
|
-
var camelCase_1 = camelCase;
|
|
3746
|
-
|
|
3747
896
|
var _styleModuleImportMap$v = {
|
|
3748
897
|
"./social-share-template.m.css": {
|
|
3749
898
|
"desktop-view": "social-share-template-m_desktop-view__3TmkO",
|
|
@@ -3825,7 +974,7 @@ var SocialShareTemplate = function SocialShareTemplate(props) {
|
|
|
3825
974
|
var iconsList = socialShareData(options);
|
|
3826
975
|
|
|
3827
976
|
var _useState = React.useState(open),
|
|
3828
|
-
_useState2 =
|
|
977
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
3829
978
|
isOpen = _useState2[0],
|
|
3830
979
|
setIsOpen = _useState2[1];
|
|
3831
980
|
|
|
@@ -3851,12 +1000,12 @@ var SocialShareTemplate = function SocialShareTemplate(props) {
|
|
|
3851
1000
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3852
1001
|
className: "social-share-template-m_tablet-view__kATzi"
|
|
3853
1002
|
}, !isOpen && /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
3854
|
-
className:
|
|
1003
|
+
className: _getClassName__default["default"]("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap$v)
|
|
3855
1004
|
}, shareIcon()), isOpen && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3856
1005
|
className: "social-share-template-m_overlay__1nBp-",
|
|
3857
1006
|
onClick: clickHandler
|
|
3858
1007
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3859
|
-
className: "arr--popup " +
|
|
1008
|
+
className: "arr--popup " + _getClassName__default["default"]("popup-wrapper ".concat(isOpen ? "popup-open" : ""), _styleModuleImportMap$v)
|
|
3860
1009
|
}, /*#__PURE__*/React__default["default"].createElement(SocialSharePopup, {
|
|
3861
1010
|
fbUrl: fbUrl,
|
|
3862
1011
|
twitterUrl: twitterUrl,
|
|
@@ -3873,14 +1022,14 @@ var SocialShareTemplate = function SocialShareTemplate(props) {
|
|
|
3873
1022
|
var popupStyle = !isOpen && vertical ? "tablet-view-popup" : "";
|
|
3874
1023
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3875
1024
|
"data-test-id": verticalShare,
|
|
3876
|
-
className: "arr--share " +
|
|
1025
|
+
className: "arr--share " + _getClassName__default["default"]("".concat(iconShade, " ").concat(verticalShare, " ").concat(popupStyle), _styleModuleImportMap$v)
|
|
3877
1026
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3878
1027
|
className: "social-share-template-m_desktop-view__3TmkO"
|
|
3879
1028
|
}, /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
3880
|
-
"data-test-id":
|
|
3881
|
-
className: "desktop-share-wrapper " +
|
|
1029
|
+
"data-test-id": lodash.camelCase(iconType),
|
|
1030
|
+
className: "desktop-share-wrapper " + _getClassName__default["default"]("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap$v)
|
|
3882
1031
|
}, shareIcon(), iconsList.map(function (iconData, index) {
|
|
3883
|
-
return /*#__PURE__*/React__default["default"].createElement(ShareItem,
|
|
1032
|
+
return /*#__PURE__*/React__default["default"].createElement(ShareItem, _extends__default["default"]({}, iconData, {
|
|
3884
1033
|
key: iconData.name,
|
|
3885
1034
|
dataTestId: "card-share-".concat(index)
|
|
3886
1035
|
}));
|
|
@@ -3917,9 +1066,9 @@ var SectionTag = function SectionTag(_ref) {
|
|
|
3917
1066
|
borderColor = _ref$borderColor === void 0 ? "" : _ref$borderColor,
|
|
3918
1067
|
isLightTheme = _ref.isLightTheme;
|
|
3919
1068
|
var config = useStateValue() || {};
|
|
3920
|
-
var isSection =
|
|
3921
|
-
var templateFromRowContext =
|
|
3922
|
-
var section =
|
|
1069
|
+
var isSection = lodash.get(config, ["showSection"], true);
|
|
1070
|
+
var templateFromRowContext = lodash.get(config, ["sectionTagTemplate"]);
|
|
1071
|
+
var section = lodash.get(story, ["sections", 0], "");
|
|
3923
1072
|
var supportedTemplates = ["borderBottomSml", "borderLeft", "solid"];
|
|
3924
1073
|
var getUrl = section ? section["section-url"] : "/";
|
|
3925
1074
|
var colorToApplyContrast = template === "solid" || templateFromRowContext === "solid" ? borderColor : config.theme;
|
|
@@ -3941,7 +1090,7 @@ var SectionTag = function SectionTag(_ref) {
|
|
|
3941
1090
|
style: {
|
|
3942
1091
|
backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
|
|
3943
1092
|
},
|
|
3944
|
-
className: "section-tag arrow-component " +
|
|
1093
|
+
className: "section-tag arrow-component " + _getClassName__default["default"]("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$u)
|
|
3945
1094
|
}, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3946
1095
|
className: "section-m_border-left__2oUyp",
|
|
3947
1096
|
style: {
|
|
@@ -4188,11 +1337,11 @@ var StoryHeadline = function StoryHeadline(_ref) {
|
|
|
4188
1337
|
iconStyle = _premiumStoryIconConf2 === void 0 ? "star" : _premiumStoryIconConf2,
|
|
4189
1338
|
_premiumStoryIconConf3 = premiumStoryIconConfig.enablePremiumStoryIcon,
|
|
4190
1339
|
enablePremiumStoryIcon = _premiumStoryIconConf3 === void 0 ? false : _premiumStoryIconConf3;
|
|
4191
|
-
var premiumStory = enablePremiumStoryIcon &&
|
|
1340
|
+
var premiumStory = enablePremiumStoryIcon && lodash.get(story, ["access"]) === "subscription";
|
|
4192
1341
|
var wrapperClass = premiumStory ? "premium-wrapper" : "wrapper";
|
|
4193
1342
|
var iconSize = "40px";
|
|
4194
1343
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4195
|
-
className: "arrow-component arr--story-headline " +
|
|
1344
|
+
className: "arrow-component arr--story-headline " + _getClassName__default["default"](wrapperClass, _styleModuleImportMap$t)
|
|
4196
1345
|
}, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
|
|
4197
1346
|
width: iconSize,
|
|
4198
1347
|
height: iconSize,
|
|
@@ -4201,7 +1350,7 @@ var StoryHeadline = function StoryHeadline(_ref) {
|
|
|
4201
1350
|
positionTop: "6px"
|
|
4202
1351
|
}), /*#__PURE__*/React__default["default"].createElement("h1", {
|
|
4203
1352
|
"data-testid": "story-headline",
|
|
4204
|
-
className:
|
|
1353
|
+
className: _getClassName__default["default"]("headline ".concat(textColor), _styleModuleImportMap$t)
|
|
4205
1354
|
}, /*#__PURE__*/React__default["default"].createElement("bdi", {
|
|
4206
1355
|
dangerouslySetInnerHTML: {
|
|
4207
1356
|
__html: story.headline
|
|
@@ -4234,7 +1383,7 @@ var Subheadline = function Subheadline(_ref) {
|
|
|
4234
1383
|
forceShowAtom = _ref.forceShowAtom,
|
|
4235
1384
|
showFullContent = _ref.showFullContent;
|
|
4236
1385
|
var config = useStateValue() || {};
|
|
4237
|
-
var subheadline = forceShowAtom ||
|
|
1386
|
+
var subheadline = forceShowAtom || lodash.get(config, ["showSubheadline"], true);
|
|
4238
1387
|
if (!subheadline) return null;
|
|
4239
1388
|
var textColor = getTextColor(config.theme);
|
|
4240
1389
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -4242,7 +1391,7 @@ var Subheadline = function Subheadline(_ref) {
|
|
|
4242
1391
|
WebkitLineClamp: lineClamp
|
|
4243
1392
|
},
|
|
4244
1393
|
"data-test-id": "subheadline",
|
|
4245
|
-
className: ("p-alt arr--sub-headline arrow-component ".concat(clazzName) ? "p-alt arr--sub-headline arrow-component ".concat(clazzName) + " " : "") +
|
|
1394
|
+
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$s)
|
|
4246
1395
|
}, showFullContent || typeof lineClamp === "number" ? story.subheadline : truncate(story.subheadline, truncateChars, true));
|
|
4247
1396
|
};
|
|
4248
1397
|
Subheadline.propTypes = {
|
|
@@ -4402,7 +1551,7 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4402
1551
|
return null;
|
|
4403
1552
|
} : _config$StoryTemplate;
|
|
4404
1553
|
var showImagePlaceholder = reactRedux.useSelector(function (state) {
|
|
4405
|
-
return
|
|
1554
|
+
return lodash.get(state, ["qt", "config", "showPlaceholder"]);
|
|
4406
1555
|
});
|
|
4407
1556
|
var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
|
|
4408
1557
|
var fullBleed = FullBleed ? "" : "with-padding";
|
|
@@ -4411,7 +1560,7 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4411
1560
|
var heroImageMobClasses = isHorizontalMobile ? "right-padding-mob" : "";
|
|
4412
1561
|
|
|
4413
1562
|
var getPadding = function getPadding(aspectRatio) {
|
|
4414
|
-
var _aspectRatio =
|
|
1563
|
+
var _aspectRatio = _slicedToArray__default["default"](aspectRatio, 2),
|
|
4415
1564
|
height = _aspectRatio[0],
|
|
4416
1565
|
width = _aspectRatio[1];
|
|
4417
1566
|
|
|
@@ -4423,7 +1572,7 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4423
1572
|
return 0;
|
|
4424
1573
|
};
|
|
4425
1574
|
|
|
4426
|
-
var _aspectRatio2 =
|
|
1575
|
+
var _aspectRatio2 = _slicedToArray__default["default"](aspectRatio, 2),
|
|
4427
1576
|
mobileAspectRatio = _aspectRatio2[0],
|
|
4428
1577
|
_aspectRatio2$ = _aspectRatio2[1],
|
|
4429
1578
|
desktopAspectRatio = _aspectRatio2$ === void 0 ? mobileAspectRatio : _aspectRatio2$;
|
|
@@ -4431,8 +1580,8 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4431
1580
|
var isMobile = clientWidth("mobile");
|
|
4432
1581
|
var imageAspectRatio = isMobile ? mobileAspectRatio : desktopAspectRatio;
|
|
4433
1582
|
var imagePadding = isMobile ? getPadding(mobileAspectRatio) : getPadding(desktopAspectRatio);
|
|
4434
|
-
var slug =
|
|
4435
|
-
var hyperLink =
|
|
1583
|
+
var slug = lodash.get(story, ["hero-image-s3-key"]) || lodash.get(story, ["alternative", "home", "default", "hero-image", "hero-image-s3-key"]);
|
|
1584
|
+
var hyperLink = lodash.get(story, ["hero-image-hyperlink"], "");
|
|
4436
1585
|
|
|
4437
1586
|
var fallbackImage = function fallbackImage() {
|
|
4438
1587
|
if (!slug) {
|
|
@@ -4441,7 +1590,7 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4441
1590
|
style: {
|
|
4442
1591
|
paddingTop: imagePadding + "%"
|
|
4443
1592
|
},
|
|
4444
|
-
className: "arr--responsive-hero-image " +
|
|
1593
|
+
className: "arr--responsive-hero-image " + _getClassName__default["default"]("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$r)
|
|
4445
1594
|
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
4446
1595
|
className: "qt-image",
|
|
4447
1596
|
"data-src": "".concat(fallbackImageUrl),
|
|
@@ -4454,7 +1603,7 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4454
1603
|
style: {
|
|
4455
1604
|
paddingTop: imagePadding + "%"
|
|
4456
1605
|
},
|
|
4457
|
-
className: "arr--fallback-hero-image " +
|
|
1606
|
+
className: "arr--fallback-hero-image " + _getClassName__default["default"]("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$r)
|
|
4458
1607
|
}, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
|
|
4459
1608
|
storyTemplate: story["story-template"]
|
|
4460
1609
|
}), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
|
|
@@ -4464,7 +1613,7 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4464
1613
|
style: {
|
|
4465
1614
|
paddingTop: imagePadding + "%"
|
|
4466
1615
|
},
|
|
4467
|
-
className: "arr--responsive-hero-image " +
|
|
1616
|
+
className: "arr--responsive-hero-image " + _getClassName__default["default"]("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$r)
|
|
4468
1617
|
}, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
|
|
4469
1618
|
storyTemplate: story["story-template"]
|
|
4470
1619
|
}), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
|
|
@@ -4483,13 +1632,13 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
4483
1632
|
|
|
4484
1633
|
return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4485
1634
|
"data-test-id": "arr--hero-image",
|
|
4486
|
-
className: "arr--hero-image " +
|
|
1635
|
+
className: "arr--hero-image " + _getClassName__default["default"]("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$r)
|
|
4487
1636
|
}, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4488
1637
|
"data-test-id": "arr--hero-image",
|
|
4489
1638
|
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
4490
1639
|
externalLink: isExternalStory(story),
|
|
4491
1640
|
"aria-label": "fallback-hero-image",
|
|
4492
|
-
className: "arr--hero-image " +
|
|
1641
|
+
className: "arr--hero-image " + _getClassName__default["default"]("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$r)
|
|
4493
1642
|
}, fallbackImage()));
|
|
4494
1643
|
};
|
|
4495
1644
|
HeroImage.propTypes = {
|
|
@@ -4547,14 +1696,14 @@ var ReadTime = function ReadTime(_ref) {
|
|
|
4547
1696
|
_ref$isLightTheme = _ref.isLightTheme,
|
|
4548
1697
|
isLightTheme = _ref$isLightTheme === void 0 ? false : _ref$isLightTheme;
|
|
4549
1698
|
var config = useStateValue() || {};
|
|
4550
|
-
var showReadTime =
|
|
4551
|
-
var readTime =
|
|
1699
|
+
var showReadTime = lodash.get(config, ["showReadTime"]) || lodash.get(opts, ["showReadTime"], true);
|
|
1700
|
+
var readTime = lodash.get(story, ["read-time"], 0);
|
|
4552
1701
|
var textColor = isLightTheme ? "light" : getTextColor(config.theme);
|
|
4553
1702
|
if (!showReadTime || !readTime) return null;
|
|
4554
|
-
var timeToRead =
|
|
1703
|
+
var timeToRead = lodash.get(opts, ["localizedTimeToRead"]) || "min read";
|
|
4555
1704
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4556
1705
|
"data-test-id": "read-time",
|
|
4557
|
-
className: "arrow-component arr--read-time " +
|
|
1706
|
+
className: "arrow-component arr--read-time " + _getClassName__default["default"]("read-time-wrapper ".concat(textColor), _styleModuleImportMap$q)
|
|
4558
1707
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4559
1708
|
className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
|
|
4560
1709
|
}, /*#__PURE__*/React__default["default"].createElement(Dot, {
|
|
@@ -4587,7 +1736,7 @@ var _styleModuleImportMap$p = {
|
|
|
4587
1736
|
|
|
4588
1737
|
function ownKeys$4(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; }
|
|
4589
1738
|
|
|
4590
|
-
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) {
|
|
1739
|
+
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4591
1740
|
var PublishDetails = function PublishDetails(_ref) {
|
|
4592
1741
|
var story = _ref.story,
|
|
4593
1742
|
_ref$opts = _ref.opts,
|
|
@@ -4598,7 +1747,7 @@ var PublishDetails = function PublishDetails(_ref) {
|
|
|
4598
1747
|
timezone = _ref$timezone === void 0 ? null : _ref$timezone;
|
|
4599
1748
|
|
|
4600
1749
|
var _useState = React.useState("ltr"),
|
|
4601
|
-
_useState2 =
|
|
1750
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
4602
1751
|
direction = _useState2[0],
|
|
4603
1752
|
setDirection = _useState2[1];
|
|
4604
1753
|
|
|
@@ -4630,10 +1779,10 @@ var PublishDetails = function PublishDetails(_ref) {
|
|
|
4630
1779
|
});
|
|
4631
1780
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4632
1781
|
"data-test-id": "timeStamp",
|
|
4633
|
-
className: "arrow-component arr-publish-details " +
|
|
1782
|
+
className: "arrow-component arr-publish-details " + _getClassName__default["default"]("timeStamp ".concat(textColor), _styleModuleImportMap$p)
|
|
4634
1783
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4635
1784
|
"data-test-id": "publishDetails",
|
|
4636
|
-
className:
|
|
1785
|
+
className: _getClassName__default["default"]("publish-details ".concat(textColor), _styleModuleImportMap$p)
|
|
4637
1786
|
}, enablePublishedTime && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, localizedPublishedOn || "Published on", " :\xA0", /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4638
1787
|
className: "publish-details-m_date__3ZIQN"
|
|
4639
1788
|
}, getTimeStamp(time, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
@@ -4641,7 +1790,7 @@ var PublishDetails = function PublishDetails(_ref) {
|
|
|
4641
1790
|
opts: opts
|
|
4642
1791
|
}))), enableUpdatedTime && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4643
1792
|
"data-test-id": "updateDetails",
|
|
4644
|
-
className:
|
|
1793
|
+
className: _getClassName__default["default"]("update-details ".concat(textColor), _styleModuleImportMap$p)
|
|
4645
1794
|
}, localizedUpdatedOn || "Updated on", " :\xA0", /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4646
1795
|
className: "publish-details-m_date__3ZIQN"
|
|
4647
1796
|
}, getTimeStamp(updatedAt, timestampToFormat, timeStampProps, template, timezone)), showReadTime && /*#__PURE__*/React__default["default"].createElement(ReadTime, {
|
|
@@ -4683,7 +1832,7 @@ var StoryTags = function StoryTags(_ref) {
|
|
|
4683
1832
|
_ref.borderColor;
|
|
4684
1833
|
var configData = useStateValue() || {};
|
|
4685
1834
|
var textColor = getTextColor(configData.theme);
|
|
4686
|
-
var mountAt =
|
|
1835
|
+
var mountAt = lodash.get(config, ["mountAt"], "");
|
|
4687
1836
|
var templateStyle = template === "roundCorners" ? "roundCorners" : "";
|
|
4688
1837
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4689
1838
|
className: "arrow-component arr--story-tags"
|
|
@@ -4691,7 +1840,7 @@ var StoryTags = function StoryTags(_ref) {
|
|
|
4691
1840
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4692
1841
|
key: index,
|
|
4693
1842
|
"data-test-id": "story-tag",
|
|
4694
|
-
className:
|
|
1843
|
+
className: _getClassName__default["default"]("tags ".concat(templateStyle, " ").concat(textColor), _styleModuleImportMap$o)
|
|
4695
1844
|
}, /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
4696
1845
|
href: "".concat(mountAt, "/topic/") + tag.slug,
|
|
4697
1846
|
"aria-label": "story-tag-name"
|
|
@@ -4705,50 +1854,16 @@ StoryTags.propTypes = {
|
|
|
4705
1854
|
template: PropTypes.string
|
|
4706
1855
|
};
|
|
4707
1856
|
|
|
4708
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
4709
|
-
if (source == null) return {};
|
|
4710
|
-
var target = {};
|
|
4711
|
-
var sourceKeys = Object.keys(source);
|
|
4712
|
-
var key, i;
|
|
4713
|
-
|
|
4714
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
4715
|
-
key = sourceKeys[i];
|
|
4716
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
4717
|
-
target[key] = source[key];
|
|
4718
|
-
}
|
|
4719
|
-
|
|
4720
|
-
return target;
|
|
4721
|
-
}
|
|
4722
|
-
|
|
4723
|
-
function _objectWithoutProperties(source, excluded) {
|
|
4724
|
-
if (source == null) return {};
|
|
4725
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
4726
|
-
var key, i;
|
|
4727
|
-
|
|
4728
|
-
if (Object.getOwnPropertySymbols) {
|
|
4729
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
4730
|
-
|
|
4731
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
4732
|
-
key = sourceSymbolKeys[i];
|
|
4733
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
4734
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
4735
|
-
target[key] = source[key];
|
|
4736
|
-
}
|
|
4737
|
-
}
|
|
4738
|
-
|
|
4739
|
-
return target;
|
|
4740
|
-
}
|
|
4741
|
-
|
|
4742
1857
|
var _excluded$e = ["element", "render"];
|
|
4743
1858
|
var withElementWrapper = function withElementWrapper(StoryElement) {
|
|
4744
1859
|
return function (props) {
|
|
4745
1860
|
var element = props.element,
|
|
4746
1861
|
render = props.render,
|
|
4747
|
-
restProps =
|
|
1862
|
+
restProps = _objectWithoutProperties__default["default"](props, _excluded$e);
|
|
4748
1863
|
|
|
4749
1864
|
if (!element) return null;
|
|
4750
1865
|
if (render && typeof render === "function") return render(props);
|
|
4751
|
-
return /*#__PURE__*/React__default["default"].createElement(StoryElement,
|
|
1866
|
+
return /*#__PURE__*/React__default["default"].createElement(StoryElement, _extends__default["default"]({}, restProps, {
|
|
4752
1867
|
element: element
|
|
4753
1868
|
}));
|
|
4754
1869
|
};
|
|
@@ -4778,7 +1893,7 @@ var TextBase = function TextBase(_ref) {
|
|
|
4778
1893
|
css = _ref$css === void 0 ? {} : _ref$css;
|
|
4779
1894
|
_ref.story;
|
|
4780
1895
|
_ref.config;
|
|
4781
|
-
var restProps =
|
|
1896
|
+
var restProps = _objectWithoutProperties__default["default"](_ref, _excluded$d);
|
|
4782
1897
|
|
|
4783
1898
|
var content = element.text;
|
|
4784
1899
|
if (!content) return null;
|
|
@@ -4788,9 +1903,9 @@ var TextBase = function TextBase(_ref) {
|
|
|
4788
1903
|
var _opts$isExternalLink = opts.isExternalLink,
|
|
4789
1904
|
isExternalLink = _opts$isExternalLink === void 0 ? true : _opts$isExternalLink;
|
|
4790
1905
|
var text = isExternalLink && updateContentLinks(content) || content;
|
|
4791
|
-
var isPromotionalMessage =
|
|
1906
|
+
var isPromotionalMessage = lodash.get(element, ["metadata", "promotional-message"], false);
|
|
4792
1907
|
var updatedStyle = isPromotionalMessage ? "promotionalMessage" : "textElement";
|
|
4793
|
-
return /*#__PURE__*/React__default["default"].createElement("div",
|
|
1908
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({
|
|
4794
1909
|
style: !isPromotionalMessage ? {
|
|
4795
1910
|
color: textColor
|
|
4796
1911
|
} : {},
|
|
@@ -4800,7 +1915,7 @@ var TextBase = function TextBase(_ref) {
|
|
|
4800
1915
|
},
|
|
4801
1916
|
id: "text-element"
|
|
4802
1917
|
}, restProps, {
|
|
4803
|
-
className: "arrow-component arr--text-element " +
|
|
1918
|
+
className: "arrow-component arr--text-element " + _getClassName__default["default"]("".concat(updatedStyle, " ").concat(textInvertColor), _styleModuleImportMap$n) + (" " + (restProps ? restProps.className || "" : ""))
|
|
4804
1919
|
}));
|
|
4805
1920
|
};
|
|
4806
1921
|
|
|
@@ -4844,7 +1959,7 @@ var BlurbBase = function BlurbBase(_ref) {
|
|
|
4844
1959
|
_ref.story;
|
|
4845
1960
|
_ref.config;
|
|
4846
1961
|
_ref.render;
|
|
4847
|
-
var restProps =
|
|
1962
|
+
var restProps = _objectWithoutProperties__default["default"](_ref, _excluded$c);
|
|
4848
1963
|
|
|
4849
1964
|
var content = element.text;
|
|
4850
1965
|
var borderColor = css.borderColor;
|
|
@@ -4855,7 +1970,7 @@ var BlurbBase = function BlurbBase(_ref) {
|
|
|
4855
1970
|
};
|
|
4856
1971
|
|
|
4857
1972
|
var _useState = React.useState(initBorderDirection),
|
|
4858
|
-
_useState2 =
|
|
1973
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
4859
1974
|
borderDirection = _useState2[0],
|
|
4860
1975
|
setBorderDirection = _useState2[1];
|
|
4861
1976
|
|
|
@@ -4877,14 +1992,14 @@ var BlurbBase = function BlurbBase(_ref) {
|
|
|
4877
1992
|
var templateStyle = template ? "blurb-".concat(template) : "blurb";
|
|
4878
1993
|
var configData = useStateValue() || {};
|
|
4879
1994
|
var textInvertColor = getTextColor(configData.theme);
|
|
4880
|
-
return /*#__PURE__*/React__default["default"].createElement("div",
|
|
1995
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({
|
|
4881
1996
|
"data-test-id": "blurb",
|
|
4882
1997
|
style: borderColor && borderDirection,
|
|
4883
1998
|
dangerouslySetInnerHTML: {
|
|
4884
1999
|
__html: text
|
|
4885
2000
|
}
|
|
4886
2001
|
}, restProps, {
|
|
4887
|
-
className: "arrow-component arr-custom-style arr--blurb-element " +
|
|
2002
|
+
className: "arrow-component arr-custom-style arr--blurb-element " + _getClassName__default["default"]("".concat(templateStyle, " ").concat(textInvertColor), _styleModuleImportMap$m) + (" " + (restProps ? restProps.className || "" : ""))
|
|
4888
2003
|
}));
|
|
4889
2004
|
};
|
|
4890
2005
|
|
|
@@ -4933,7 +2048,7 @@ var SummaryBase = function SummaryBase(_ref) {
|
|
|
4933
2048
|
_ref.story;
|
|
4934
2049
|
_ref.config;
|
|
4935
2050
|
_ref.render;
|
|
4936
|
-
var restProps =
|
|
2051
|
+
var restProps = _objectWithoutProperties__default["default"](_ref, _excluded$b);
|
|
4937
2052
|
|
|
4938
2053
|
var configData = useStateValue() || {};
|
|
4939
2054
|
var textInvertColor = getTextColor(configData.theme);
|
|
@@ -4954,23 +2069,23 @@ var SummaryBase = function SummaryBase(_ref) {
|
|
|
4954
2069
|
var updateHeaderColor = renderTemplate ? "".concat(headerBgColor) : "";
|
|
4955
2070
|
var textColor = renderTemplate ? getTextColor(headerBgColor) : "";
|
|
4956
2071
|
var updateContentColor = template === "header" ? "" : textInvertColor;
|
|
4957
|
-
return /*#__PURE__*/React__default["default"].createElement("div",
|
|
2072
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({
|
|
4958
2073
|
"data-test-id": "summary"
|
|
4959
2074
|
}, restProps, {
|
|
4960
|
-
className: "arrow-component arr--summary-element arr-custom-style " +
|
|
2075
|
+
className: "arrow-component arr--summary-element arr-custom-style " + _getClassName__default["default"](templateStyle, _styleModuleImportMap$l) + (" " + (restProps ? restProps.className || "" : ""))
|
|
4961
2076
|
}), !hideHeadline && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4962
2077
|
"data-test-id": "summary-headline",
|
|
4963
|
-
className:
|
|
2078
|
+
className: _getClassName__default["default"]("heading-wrapper ".concat(textInvertColor), _styleModuleImportMap$l)
|
|
4964
2079
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4965
2080
|
style: {
|
|
4966
2081
|
backgroundColor: updateHeaderColor
|
|
4967
2082
|
},
|
|
4968
|
-
className:
|
|
2083
|
+
className: _getClassName__default["default"]("headline ".concat(textColor, " ").concat(textInvertColor), _styleModuleImportMap$l)
|
|
4969
2084
|
}, headline)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4970
2085
|
dangerouslySetInnerHTML: {
|
|
4971
2086
|
__html: text
|
|
4972
2087
|
},
|
|
4973
|
-
className:
|
|
2088
|
+
className: _getClassName__default["default"]("content ".concat(contentBorder, " ").concat(updateContentColor, " ").concat(textInvertColor), _styleModuleImportMap$l)
|
|
4974
2089
|
}));
|
|
4975
2090
|
};
|
|
4976
2091
|
|
|
@@ -5121,9 +2236,9 @@ var BlockQuoteBase = function BlockQuoteBase(_ref) {
|
|
|
5121
2236
|
_ref.story;
|
|
5122
2237
|
_ref.config;
|
|
5123
2238
|
_ref.render;
|
|
5124
|
-
var restProps =
|
|
2239
|
+
var restProps = _objectWithoutProperties__default["default"](_ref, _excluded$a);
|
|
5125
2240
|
|
|
5126
|
-
var _get =
|
|
2241
|
+
var _get = lodash.get(element, ["metadata"]),
|
|
5127
2242
|
content = _get.content,
|
|
5128
2243
|
attribution = _get.attribution;
|
|
5129
2244
|
|
|
@@ -5155,11 +2270,11 @@ var BlockQuoteBase = function BlockQuoteBase(_ref) {
|
|
|
5155
2270
|
}, SelectionOfIcon(iconType, template, blockQuoteColor, textColor));
|
|
5156
2271
|
};
|
|
5157
2272
|
|
|
5158
|
-
return /*#__PURE__*/React__default["default"].createElement("div",
|
|
2273
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({
|
|
5159
2274
|
"data-test-id": "blockquote",
|
|
5160
2275
|
style: theme
|
|
5161
2276
|
}, restProps, {
|
|
5162
|
-
className: "arrow-component arr--block-quote " +
|
|
2277
|
+
className: "arrow-component arr--block-quote " + _getClassName__default["default"]("".concat(templateStyle, " ").concat(textColor), _styleModuleImportMap$k) + (" " + (restProps ? restProps.className || "" : ""))
|
|
5163
2278
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5164
2279
|
className: "block-quote-m_quote-wrapper__83bEy"
|
|
5165
2280
|
}, updateStructure(), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -5171,12 +2286,12 @@ var BlockQuoteBase = function BlockQuoteBase(_ref) {
|
|
|
5171
2286
|
dangerouslySetInnerHTML: {
|
|
5172
2287
|
__html: content
|
|
5173
2288
|
},
|
|
5174
|
-
className:
|
|
2289
|
+
className: _getClassName__default["default"]("content ".concat(textInvertColor), _styleModuleImportMap$k)
|
|
5175
2290
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5176
2291
|
dangerouslySetInnerHTML: {
|
|
5177
2292
|
__html: attribution
|
|
5178
2293
|
},
|
|
5179
|
-
className:
|
|
2294
|
+
className: _getClassName__default["default"]("attribution ".concat(textInvertColor), _styleModuleImportMap$k)
|
|
5180
2295
|
}))));
|
|
5181
2296
|
};
|
|
5182
2297
|
BlockQuoteBase.propTypes = {
|
|
@@ -5211,22 +2326,22 @@ var BigFactBase = function BigFactBase(_ref) {
|
|
|
5211
2326
|
var element = _ref.element;
|
|
5212
2327
|
_ref.story;
|
|
5213
2328
|
_ref.config;
|
|
5214
|
-
var restProps =
|
|
2329
|
+
var restProps = _objectWithoutProperties__default["default"](_ref, _excluded$9);
|
|
5215
2330
|
|
|
5216
2331
|
var configData = useStateValue() || {};
|
|
5217
2332
|
var textInvertColor = getTextColor(configData.theme);
|
|
5218
2333
|
var _element$metadata = element.metadata,
|
|
5219
2334
|
content = _element$metadata.content,
|
|
5220
2335
|
attribution = _element$metadata.attribution;
|
|
5221
|
-
return /*#__PURE__*/React__default["default"].createElement("div",
|
|
2336
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({
|
|
5222
2337
|
"data-test-id": "bigfact"
|
|
5223
2338
|
}, restProps, {
|
|
5224
|
-
className: "arrow-component arr--bigfact-element " +
|
|
2339
|
+
className: "arrow-component arr--bigfact-element " + _getClassName__default["default"]("bigfact-element ".concat(textInvertColor), _styleModuleImportMap$j) + (" " + (restProps ? restProps.className || "" : ""))
|
|
5225
2340
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5226
2341
|
className: "big-fact-m_content__1u2Ul"
|
|
5227
2342
|
}, content), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5228
2343
|
"data-test-id": "attribution",
|
|
5229
|
-
className:
|
|
2344
|
+
className: _getClassName__default["default"]("attribution ".concat(textInvertColor), _styleModuleImportMap$j)
|
|
5230
2345
|
}, attribution));
|
|
5231
2346
|
};
|
|
5232
2347
|
|
|
@@ -5312,14 +2427,14 @@ var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
|
5312
2427
|
css = _ref2$css === void 0 ? {} : _ref2$css;
|
|
5313
2428
|
_ref2.config;
|
|
5314
2429
|
_ref2.render;
|
|
5315
|
-
var restProps =
|
|
2430
|
+
var restProps = _objectWithoutProperties__default["default"](_ref2, _excluded$8);
|
|
5316
2431
|
|
|
5317
2432
|
var content = element.text;
|
|
5318
2433
|
if (!content) return null;
|
|
5319
|
-
var linkedStories =
|
|
5320
|
-
var linkedStoryId =
|
|
5321
|
-
var linkedStorySlug =
|
|
5322
|
-
var linkedImage =
|
|
2434
|
+
var linkedStories = lodash.get(story, ["linked-stories"], {});
|
|
2435
|
+
var linkedStoryId = lodash.get(element, ["metadata", "linked-story-id"]);
|
|
2436
|
+
var linkedStorySlug = lodash.get(linkedStories, [linkedStoryId, "url"]);
|
|
2437
|
+
var linkedImage = lodash.get(linkedStories, [linkedStoryId, "hero-image-s3-key"], "");
|
|
5323
2438
|
var storyUrl = linkedStorySlug && linkedStorySlug;
|
|
5324
2439
|
var configData = useStateValue() || {};
|
|
5325
2440
|
var textInvertColor = getTextColor(configData.theme);
|
|
@@ -5330,14 +2445,14 @@ var AlsoReadBase = function AlsoReadBase(_ref2) {
|
|
|
5330
2445
|
var isDefault = template === "" || template === "default";
|
|
5331
2446
|
var isRightAlign = template === "imageRightAlign";
|
|
5332
2447
|
var templateStyle = template ? "alsoread-".concat(template) : "alsoread-default";
|
|
5333
|
-
return /*#__PURE__*/React__default["default"].createElement(components.Link,
|
|
2448
|
+
return /*#__PURE__*/React__default["default"].createElement(components.Link, _extends__default["default"]({
|
|
5334
2449
|
"data-test-id": "also-read",
|
|
5335
2450
|
href: storyUrl,
|
|
5336
2451
|
"aria-label": "also-read"
|
|
5337
2452
|
}, restProps, {
|
|
5338
|
-
className: "arrow-component arr--also-read-element " +
|
|
2453
|
+
className: "arrow-component arr--also-read-element " + _getClassName__default["default"](templateStyle, _styleModuleImportMap$i) + (" " + (restProps ? restProps.className || "" : ""))
|
|
5339
2454
|
}), !isDefault && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5340
|
-
className:
|
|
2455
|
+
className: _getClassName__default["default"]("default-text ".concat(textInvertColor), _styleModuleImportMap$i)
|
|
5341
2456
|
}, displayTitle), isDefault && /*#__PURE__*/React__default["default"].createElement(DisplayImage, {
|
|
5342
2457
|
story: story,
|
|
5343
2458
|
linkedImage: linkedImage,
|
|
@@ -5523,7 +2638,7 @@ Loading.propTypes = {
|
|
|
5523
2638
|
|
|
5524
2639
|
function ownKeys$3(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; }
|
|
5525
2640
|
|
|
5526
|
-
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) {
|
|
2641
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5527
2642
|
var Lightbox = /*#__PURE__*/React.lazy(function () {
|
|
5528
2643
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-image-lightbox')); });
|
|
5529
2644
|
});
|
|
@@ -5535,27 +2650,27 @@ var FullScreenImages = function FullScreenImages(_ref) {
|
|
|
5535
2650
|
element = _ref$element === void 0 ? {} : _ref$element,
|
|
5536
2651
|
props = _ref.props;
|
|
5537
2652
|
var cdnImage = reactRedux.useSelector(function (state) {
|
|
5538
|
-
return
|
|
2653
|
+
return lodash.get(state, ["qt", "config", "cdn-image"]);
|
|
5539
2654
|
});
|
|
5540
2655
|
|
|
5541
2656
|
var _useState = React.useState(0),
|
|
5542
|
-
_useState2 =
|
|
2657
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
5543
2658
|
photoIndex = _useState2[0],
|
|
5544
2659
|
handleImage = _useState2[1];
|
|
5545
2660
|
|
|
5546
2661
|
var _useState3 = React.useState(false),
|
|
5547
|
-
_useState4 =
|
|
2662
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
5548
2663
|
isOpen = _useState4[0],
|
|
5549
2664
|
handleOpen = _useState4[1];
|
|
5550
2665
|
|
|
5551
|
-
var deviceWidth =
|
|
5552
|
-
var hyperlinks =
|
|
2666
|
+
var deviceWidth = lodash.get(global, ["innerWidth"], 0);
|
|
2667
|
+
var hyperlinks = lodash.get(element, ["story-elements"], []).map(function (image) {
|
|
5553
2668
|
return image.hyperlink;
|
|
5554
2669
|
});
|
|
5555
2670
|
var imageUrlList = [];
|
|
5556
2671
|
|
|
5557
2672
|
if (!imageSlug) {
|
|
5558
|
-
imageUrlList =
|
|
2673
|
+
imageUrlList = lodash.get(element, ["story-elements"], []).map(function (image) {
|
|
5559
2674
|
return "//".concat(cdnImage, "/").concat(image["image-s3-key"], "?w=").concat(deviceWidth);
|
|
5560
2675
|
});
|
|
5561
2676
|
}
|
|
@@ -5613,9 +2728,9 @@ var FullScreenImages = function FullScreenImages(_ref) {
|
|
|
5613
2728
|
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Loading, null));
|
|
5614
2729
|
};
|
|
5615
2730
|
|
|
5616
|
-
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(template, _objectSpread$3(
|
|
2731
|
+
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(template, _objectSpread$3(_defineProperty__default["default"]({}, onClickKey, onClickHandler), props)), isOpen ? /*#__PURE__*/React__default["default"].createElement(React.Suspense, {
|
|
5617
2732
|
fallback: /*#__PURE__*/React__default["default"].createElement(LoadingScreen, null)
|
|
5618
|
-
}, /*#__PURE__*/React__default["default"].createElement(Lightbox,
|
|
2733
|
+
}, /*#__PURE__*/React__default["default"].createElement(Lightbox, _extends__default["default"]({
|
|
5619
2734
|
wrapperClassName: "arr--image-lightbox",
|
|
5620
2735
|
onCloseRequest: onClose
|
|
5621
2736
|
}, lightboxProps))) : null);
|
|
@@ -5640,7 +2755,7 @@ var ImageBase = function ImageBase(_ref) {
|
|
|
5640
2755
|
_ref.config;
|
|
5641
2756
|
var _ref$caption = _ref.caption,
|
|
5642
2757
|
caption = _ref$caption === void 0 ? true : _ref$caption,
|
|
5643
|
-
restProps =
|
|
2758
|
+
restProps = _objectWithoutProperties__default["default"](_ref, _excluded$7);
|
|
5644
2759
|
|
|
5645
2760
|
if (!element) return null;
|
|
5646
2761
|
var configData = useStateValue() || {};
|
|
@@ -5672,7 +2787,7 @@ var ImageBase = function ImageBase(_ref) {
|
|
|
5672
2787
|
ImageTemplate.propTypes = {
|
|
5673
2788
|
onClick: PropTypes__default["default"].func
|
|
5674
2789
|
};
|
|
5675
|
-
return /*#__PURE__*/React__default["default"].createElement("div",
|
|
2790
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({
|
|
5676
2791
|
className: "arrow-component arr--image-element"
|
|
5677
2792
|
}, restProps, {
|
|
5678
2793
|
"data-test-id": "image-element"
|
|
@@ -5726,12 +2841,12 @@ var _styleModuleImportMap$h = {
|
|
|
5726
2841
|
var supportedTemplates = function supportedTemplates(type, element) {
|
|
5727
2842
|
switch (type) {
|
|
5728
2843
|
case "q-and-a":
|
|
5729
|
-
var _get =
|
|
2844
|
+
var _get = lodash.get(element, ["metadata"]),
|
|
5730
2845
|
qaQuestion = _get.question,
|
|
5731
2846
|
qaAnswer = _get.answer;
|
|
5732
2847
|
|
|
5733
|
-
var qaQuestionAttribution =
|
|
5734
|
-
var qaAnswerAttribution =
|
|
2848
|
+
var qaQuestionAttribution = lodash.get(element, ["metadata", "interviewer", "avatar-url"]);
|
|
2849
|
+
var qaAnswerAttribution = lodash.get(element, ["metadata", "interviewee", "avatar-url"]);
|
|
5735
2850
|
return {
|
|
5736
2851
|
question: qaQuestion,
|
|
5737
2852
|
answer: qaAnswer,
|
|
@@ -5740,16 +2855,16 @@ var supportedTemplates = function supportedTemplates(type, element) {
|
|
|
5740
2855
|
};
|
|
5741
2856
|
|
|
5742
2857
|
case "question":
|
|
5743
|
-
var qQuestion =
|
|
5744
|
-
var qAttribution =
|
|
2858
|
+
var qQuestion = lodash.get(element, ["text"]);
|
|
2859
|
+
var qAttribution = lodash.get(element, ["metadata", "interviewer", "avatar-url"]);
|
|
5745
2860
|
return {
|
|
5746
2861
|
question: qQuestion,
|
|
5747
2862
|
questionAttribution: qAttribution
|
|
5748
2863
|
};
|
|
5749
2864
|
|
|
5750
2865
|
case "answer":
|
|
5751
|
-
var aAnswer =
|
|
5752
|
-
var aAttribution =
|
|
2866
|
+
var aAnswer = lodash.get(element, ["text"]);
|
|
2867
|
+
var aAttribution = lodash.get(element, ["metadata", "interviewee", "avatar-url"]);
|
|
5753
2868
|
return {
|
|
5754
2869
|
answer: aAnswer,
|
|
5755
2870
|
answerAttribution: aAttribution
|
|
@@ -5767,7 +2882,7 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
5767
2882
|
var _ref$opts = _ref.opts,
|
|
5768
2883
|
opts = _ref$opts === void 0 ? {} : _ref$opts;
|
|
5769
2884
|
_ref.render;
|
|
5770
|
-
var restProps =
|
|
2885
|
+
var restProps = _objectWithoutProperties__default["default"](_ref, _excluded$6);
|
|
5771
2886
|
|
|
5772
2887
|
var configData = useStateValue() || {};
|
|
5773
2888
|
var textInvertColor = getTextColor(configData.theme);
|
|
@@ -5802,7 +2917,7 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
5802
2917
|
style: {
|
|
5803
2918
|
backgroundColor: iconColor
|
|
5804
2919
|
},
|
|
5805
|
-
className:
|
|
2920
|
+
className: _getClassName__default["default"]("".concat(iconType, " ").concat(theme), _styleModuleImportMap$h)
|
|
5806
2921
|
}, "Q"); // EMPTY SPAN FOR EXTRA SPACE
|
|
5807
2922
|
|
|
5808
2923
|
var supportAnswerElement = isAuthorImageTemplate ? answerAttribution && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -5817,12 +2932,12 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
5817
2932
|
style: {
|
|
5818
2933
|
backgroundColor: iconColor
|
|
5819
2934
|
},
|
|
5820
|
-
className:
|
|
2935
|
+
className: _getClassName__default["default"]("".concat(iconType, " ").concat(theme), _styleModuleImportMap$h)
|
|
5821
2936
|
}, "A");
|
|
5822
|
-
return /*#__PURE__*/React__default["default"].createElement("div",
|
|
2937
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({
|
|
5823
2938
|
"data-test-id": "question-answer"
|
|
5824
2939
|
}, restProps, {
|
|
5825
|
-
className: "arrow-component arr-custom-style arr--qa-element " +
|
|
2940
|
+
className: "arrow-component arr-custom-style arr--qa-element " + _getClassName__default["default"](templateStyle, _styleModuleImportMap$h) + (" " + (restProps ? restProps.className || "" : ""))
|
|
5826
2941
|
}), type !== "answer" && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5827
2942
|
className: "question-answer-m_q-element__1ZA5d",
|
|
5828
2943
|
"data-test-id": "question"
|
|
@@ -5830,7 +2945,7 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
5830
2945
|
dangerouslySetInnerHTML: {
|
|
5831
2946
|
__html: questionData
|
|
5832
2947
|
},
|
|
5833
|
-
className:
|
|
2948
|
+
className: _getClassName__default["default"]("content ".concat(textInvertColor), _styleModuleImportMap$h)
|
|
5834
2949
|
})), type !== "question" && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5835
2950
|
className: "question-answer-m_a-element__BTxfl",
|
|
5836
2951
|
"data-test-id": "answer"
|
|
@@ -5838,7 +2953,7 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
|
|
|
5838
2953
|
dangerouslySetInnerHTML: {
|
|
5839
2954
|
__html: answerData
|
|
5840
2955
|
},
|
|
5841
|
-
className:
|
|
2956
|
+
className: _getClassName__default["default"]("content ".concat(textInvertColor), _styleModuleImportMap$h)
|
|
5842
2957
|
})));
|
|
5843
2958
|
};
|
|
5844
2959
|
|
|
@@ -5889,7 +3004,7 @@ var ImageGalleryBase = function ImageGalleryBase(_ref) {
|
|
|
5889
3004
|
_ref.opts;
|
|
5890
3005
|
_ref.story;
|
|
5891
3006
|
_ref.config;
|
|
5892
|
-
var restProps =
|
|
3007
|
+
var restProps = _objectWithoutProperties__default["default"](_ref, _excluded$5);
|
|
5893
3008
|
|
|
5894
3009
|
if (!element) return null;
|
|
5895
3010
|
var isMobile = clientWidth("mobile");
|
|
@@ -5909,14 +3024,14 @@ var ImageGalleryBase = function ImageGalleryBase(_ref) {
|
|
|
5909
3024
|
var images = renderImage.map(function (image, index) {
|
|
5910
3025
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5911
3026
|
key: index,
|
|
5912
|
-
className:
|
|
3027
|
+
className: _getClassName__default["default"](hyperlinkClass(image["hyperlink"]), _styleModuleImportMap$g)
|
|
5913
3028
|
}, /*#__PURE__*/React__default["default"].createElement("figure", {
|
|
5914
3029
|
key: index,
|
|
5915
3030
|
"data-text-id": "image-".concat(index),
|
|
5916
3031
|
onClick: function onClick() {
|
|
5917
3032
|
return onClickHandler && onClickHandler(index);
|
|
5918
3033
|
},
|
|
5919
|
-
className:
|
|
3034
|
+
className: _getClassName__default["default"]("image ".concat(classes), _styleModuleImportMap$g)
|
|
5920
3035
|
}, /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
5921
3036
|
slug: image["image-s3-key"],
|
|
5922
3037
|
metadata: image["image-metadata"],
|
|
@@ -5930,7 +3045,7 @@ var ImageGalleryBase = function ImageGalleryBase(_ref) {
|
|
|
5930
3045
|
hyperLink: image["hyperlink"]
|
|
5931
3046
|
}));
|
|
5932
3047
|
});
|
|
5933
|
-
return /*#__PURE__*/React__default["default"].createElement("div",
|
|
3048
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({
|
|
5934
3049
|
className: " arrow-component arr--image-element image-gallery-m_image-gallery__1Q7if" + (" " + (restProps ? restProps.className || "" : ""))
|
|
5935
3050
|
}, restProps, {
|
|
5936
3051
|
"data-test-id": "image-gallery"
|
|
@@ -5965,9 +3080,9 @@ var StoryElementBase = function StoryElementBase(_ref) {
|
|
|
5965
3080
|
var element = _ref.element;
|
|
5966
3081
|
_ref.story;
|
|
5967
3082
|
_ref.config;
|
|
5968
|
-
var restProps =
|
|
3083
|
+
var restProps = _objectWithoutProperties__default["default"](_ref, _excluded$4);
|
|
5969
3084
|
|
|
5970
|
-
return /*#__PURE__*/React__default["default"].createElement("div",
|
|
3085
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, restProps, {
|
|
5971
3086
|
"data-test-id": "story-elements"
|
|
5972
3087
|
}), /*#__PURE__*/React__default["default"].createElement(components.StoryElement, {
|
|
5973
3088
|
element: element
|
|
@@ -5989,9 +3104,9 @@ var Videobase = function Videobase(_ref) {
|
|
|
5989
3104
|
_ref.config;
|
|
5990
3105
|
var _ref$loadIframeOnClic = _ref.loadIframeOnClick,
|
|
5991
3106
|
loadIframeOnClick = _ref$loadIframeOnClic === void 0 ? false : _ref$loadIframeOnClic,
|
|
5992
|
-
restProps =
|
|
3107
|
+
restProps = _objectWithoutProperties__default["default"](_ref, _excluded$3);
|
|
5993
3108
|
|
|
5994
|
-
return /*#__PURE__*/React__default["default"].createElement("div",
|
|
3109
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({
|
|
5995
3110
|
className: "video-m_container__MYuWI" + (" " + (restProps ? restProps.className || "" : ""))
|
|
5996
3111
|
}, restProps, {
|
|
5997
3112
|
"data-test-id": "video"
|
|
@@ -6035,7 +3150,7 @@ var QuoteBase = function QuoteBase(_ref) {
|
|
|
6035
3150
|
_ref.story;
|
|
6036
3151
|
_ref.config;
|
|
6037
3152
|
_ref.render;
|
|
6038
|
-
var restProps =
|
|
3153
|
+
var restProps = _objectWithoutProperties__default["default"](_ref, _excluded$2);
|
|
6039
3154
|
|
|
6040
3155
|
var configData = useStateValue() || {};
|
|
6041
3156
|
var textInvertColor = getTextColor(configData.theme);
|
|
@@ -6046,10 +3161,10 @@ var QuoteBase = function QuoteBase(_ref) {
|
|
|
6046
3161
|
var borderColor = css.borderColor;
|
|
6047
3162
|
var updateBorderColor = template === "borderLeft" && "4px solid ".concat(borderColor);
|
|
6048
3163
|
var templateStyle = template ? "quote-".concat(template) : "quote";
|
|
6049
|
-
return /*#__PURE__*/React__default["default"].createElement("div",
|
|
3164
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({
|
|
6050
3165
|
"data-test-id": "quote"
|
|
6051
3166
|
}, restProps, {
|
|
6052
|
-
className: "arrow-component arr--quote-element " +
|
|
3167
|
+
className: "arrow-component arr--quote-element " + _getClassName__default["default"](templateStyle, _styleModuleImportMap$f) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6053
3168
|
}), template === "borderTopSmall" && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6054
3169
|
className: "quote-m_line__3gtoE",
|
|
6055
3170
|
style: borderColor && {
|
|
@@ -6062,10 +3177,10 @@ var QuoteBase = function QuoteBase(_ref) {
|
|
|
6062
3177
|
dangerouslySetInnerHTML: {
|
|
6063
3178
|
__html: content
|
|
6064
3179
|
},
|
|
6065
|
-
className:
|
|
3180
|
+
className: _getClassName__default["default"]("text ".concat(textInvertColor), _styleModuleImportMap$f)
|
|
6066
3181
|
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
6067
3182
|
"data-test-id": "quote-attribution",
|
|
6068
|
-
className:
|
|
3183
|
+
className: _getClassName__default["default"]("attribution ".concat(textInvertColor), _styleModuleImportMap$f)
|
|
6069
3184
|
}, attribution));
|
|
6070
3185
|
};
|
|
6071
3186
|
|
|
@@ -6105,7 +3220,7 @@ var ReferenceBase = function ReferenceBase(_ref) {
|
|
|
6105
3220
|
_ref.config;
|
|
6106
3221
|
var _ref$opts = _ref.opts,
|
|
6107
3222
|
opts = _ref$opts === void 0 ? {} : _ref$opts,
|
|
6108
|
-
restProps =
|
|
3223
|
+
restProps = _objectWithoutProperties__default["default"](_ref, _excluded$1);
|
|
6109
3224
|
|
|
6110
3225
|
if (!element) return null;
|
|
6111
3226
|
var configData = useStateValue() || {};
|
|
@@ -6116,7 +3231,7 @@ var ReferenceBase = function ReferenceBase(_ref) {
|
|
|
6116
3231
|
var _opts$showHeadline = opts.showHeadline,
|
|
6117
3232
|
showHeadline = _opts$showHeadline === void 0 ? true : _opts$showHeadline,
|
|
6118
3233
|
headlineText = opts.headlineText;
|
|
6119
|
-
return /*#__PURE__*/React__default["default"].createElement("div",
|
|
3234
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({
|
|
6120
3235
|
className: "arrow-component arr--reference-element"
|
|
6121
3236
|
}, restProps), eleArr && eleArr.map(function (metadata, index) {
|
|
6122
3237
|
var _metadata$name = metadata.name,
|
|
@@ -6126,7 +3241,7 @@ var ReferenceBase = function ReferenceBase(_ref) {
|
|
|
6126
3241
|
url = metadata.url;
|
|
6127
3242
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6128
3243
|
key: index,
|
|
6129
|
-
className:
|
|
3244
|
+
className: _getClassName__default["default"]("wrapper ".concat(textInvertColor), _styleModuleImportMap$e)
|
|
6130
3245
|
}, /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
6131
3246
|
href: url,
|
|
6132
3247
|
"aria-label": "reference-headline"
|
|
@@ -6178,7 +3293,7 @@ var AttachmentBase = function AttachmentBase(_ref) {
|
|
|
6178
3293
|
var _ref$element = _ref.element,
|
|
6179
3294
|
element = _ref$element === void 0 ? {} : _ref$element;
|
|
6180
3295
|
_ref.render;
|
|
6181
|
-
var restProps =
|
|
3296
|
+
var restProps = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
6182
3297
|
|
|
6183
3298
|
var fileName = element["file-name"],
|
|
6184
3299
|
url = element.url,
|
|
@@ -6192,10 +3307,10 @@ var AttachmentBase = function AttachmentBase(_ref) {
|
|
|
6192
3307
|
var textColor = getTextColor(configData.theme);
|
|
6193
3308
|
var defaultName = isPdf ? "Attached PDF" : "Attached DOC";
|
|
6194
3309
|
var defaultFileName = fileName || defaultName;
|
|
6195
|
-
return /*#__PURE__*/React__default["default"].createElement("div",
|
|
3310
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({
|
|
6196
3311
|
"data-test-id": "attachment"
|
|
6197
3312
|
}, restProps, {
|
|
6198
|
-
className: "arrow-component arr--attachment-element " +
|
|
3313
|
+
className: "arrow-component arr--attachment-element " + _getClassName__default["default"](textColor, _styleModuleImportMap$d) + (" " + (restProps ? restProps.className || "" : ""))
|
|
6199
3314
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6200
3315
|
className: "attachment-m_headline__kP7Hs"
|
|
6201
3316
|
}, "Attachment"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -6316,12 +3431,12 @@ var SliderArrow = function SliderArrow(_ref) {
|
|
|
6316
3431
|
var getRightArrowClassName = languageDirection === "rtl" ? "right-arrow-rtl" : "right-arrow-ltr";
|
|
6317
3432
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, selectedIndex !== 0 ? /*#__PURE__*/React__default["default"].createElement("button", {
|
|
6318
3433
|
onClick: previousClick,
|
|
6319
|
-
className: ("left-arrow ".concat(getLeftArrowClassName) ? "left-arrow ".concat(getLeftArrowClassName) + " " : "") +
|
|
3434
|
+
className: ("left-arrow ".concat(getLeftArrowClassName) ? "left-arrow ".concat(getLeftArrowClassName) + " " : "") + _getClassName__default["default"]("arrow left-arrow-".concat(textColor, " ").concat(getLeftArrowClassName), _styleModuleImportMap$c)
|
|
6320
3435
|
}, /*#__PURE__*/React__default["default"].createElement(LeftArrow, {
|
|
6321
3436
|
color: textColor === "dark" ? "#fff" : "#333"
|
|
6322
3437
|
})) : null, selectedIndex < noOfItems - 1 && rightArrowView() ? /*#__PURE__*/React__default["default"].createElement("button", {
|
|
6323
3438
|
onClick: nextClick,
|
|
6324
|
-
className: ("right-arrow ".concat(getRightArrowClassName) ? "right-arrow ".concat(getRightArrowClassName) + " " : "") +
|
|
3439
|
+
className: ("right-arrow ".concat(getRightArrowClassName) ? "right-arrow ".concat(getRightArrowClassName) + " " : "") + _getClassName__default["default"]("arrow right-arrow-".concat(textColor, " ").concat(getRightArrowClassName), _styleModuleImportMap$c)
|
|
6325
3440
|
}, /*#__PURE__*/React__default["default"].createElement(RightArrow, {
|
|
6326
3441
|
color: textColor === "dark" ? "#fff" : "#333"
|
|
6327
3442
|
})) : null);
|
|
@@ -6372,7 +3487,7 @@ var SliderIndicator = function SliderIndicator(_ref) {
|
|
|
6372
3487
|
}
|
|
6373
3488
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
6374
3489
|
"aria-pressed": selectedIndex === index ? "true" : "false",
|
|
6375
|
-
className: ("indicator-button indicator-".concat(indicatorType) ? "indicator-button indicator-".concat(indicatorType) + " " : "") +
|
|
3490
|
+
className: ("indicator-button indicator-".concat(indicatorType) ? "indicator-button indicator-".concat(indicatorType) + " " : "") + _getClassName__default["default"]("indicator-button indicator-".concat(indicatorType, " indicator-").concat(indicatorType, "-").concat(textColor), _styleModuleImportMap$b)
|
|
6376
3491
|
}));
|
|
6377
3492
|
}));
|
|
6378
3493
|
};
|
|
@@ -6387,7 +3502,7 @@ SliderIndicator.propTypes = {
|
|
|
6387
3502
|
var smoothScroll = function smoothScroll(node, topOrLeft, horizontal) {
|
|
6388
3503
|
var _node$scrollTo;
|
|
6389
3504
|
|
|
6390
|
-
node.scrollTo((_node$scrollTo = {},
|
|
3505
|
+
node.scrollTo((_node$scrollTo = {}, _defineProperty__default["default"](_node$scrollTo, horizontal ? "left" : "top", topOrLeft), _defineProperty__default["default"](_node$scrollTo, "behavior", "smooth"), _node$scrollTo));
|
|
6391
3506
|
};
|
|
6392
3507
|
|
|
6393
3508
|
var updateItemSelection = function updateItemSelection(index, languageDirection, scroller, noOfItems) {
|
|
@@ -6417,17 +3532,17 @@ var ScrollSnap = function ScrollSnap(_ref) {
|
|
|
6417
3532
|
slideIndicator = _ref.slideIndicator;
|
|
6418
3533
|
|
|
6419
3534
|
var _useState = React.useState(0),
|
|
6420
|
-
_useState2 =
|
|
3535
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
6421
3536
|
selectedIndex = _useState2[0],
|
|
6422
3537
|
setSelectedIndex = _useState2[1];
|
|
6423
3538
|
|
|
6424
3539
|
var _useState3 = React.useState(false),
|
|
6425
|
-
_useState4 =
|
|
3540
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
6426
3541
|
autoScroll = _useState4[0],
|
|
6427
3542
|
setAutoScroll = _useState4[1];
|
|
6428
3543
|
|
|
6429
3544
|
var languageDirection = reactRedux.useSelector(function (state) {
|
|
6430
|
-
return
|
|
3545
|
+
return lodash.get(state, ["qt", "config", "language", "direction"], "ltr");
|
|
6431
3546
|
});
|
|
6432
3547
|
var noOfItems = children ? children.length : 0;
|
|
6433
3548
|
var scroller = React.useRef(null);
|
|
@@ -6584,7 +3699,7 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
|
|
|
6584
3699
|
|
|
6585
3700
|
var ImageSlideshowTemplate = function ImageSlideshowTemplate(_ref) {
|
|
6586
3701
|
var onClickHandler = _ref.onClickHandler;
|
|
6587
|
-
var storyElements =
|
|
3702
|
+
var storyElements = lodash.get(props, ["element", "story-elements"], []);
|
|
6588
3703
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6589
3704
|
className: "arr--image-slideshow-element image-slideshow-m_slideshow__3jRFX",
|
|
6590
3705
|
"data-test-id": "image-slideshow"
|
|
@@ -6648,11 +3763,11 @@ var getElement = function getElement(story, element) {
|
|
|
6648
3763
|
elementType = element.metadata["type"];
|
|
6649
3764
|
}
|
|
6650
3765
|
|
|
6651
|
-
var storyElementId =
|
|
3766
|
+
var storyElementId = lodash.get(element, ["id"]);
|
|
6652
3767
|
|
|
6653
3768
|
switch (elementType) {
|
|
6654
3769
|
case "ad":
|
|
6655
|
-
return /*#__PURE__*/React__default["default"].createElement(AdComponent,
|
|
3770
|
+
return /*#__PURE__*/React__default["default"].createElement(AdComponent, _extends__default["default"]({}, element, {
|
|
6656
3771
|
id: "ad-".concat(index, "_").concat(cardId)
|
|
6657
3772
|
}));
|
|
6658
3773
|
|
|
@@ -6945,7 +4060,7 @@ var MainImageWrapper = function MainImageWrapper(_ref) {
|
|
|
6945
4060
|
template: SocialShareTemplate,
|
|
6946
4061
|
title: story.headline,
|
|
6947
4062
|
theme: config.theme,
|
|
6948
|
-
fullUrl: encodeURI("".concat(
|
|
4063
|
+
fullUrl: encodeURI("".concat(lodash.get(story, ["url"], ""), "?cardId=").concat(lodash.get(card, ["id"], -1)))
|
|
6949
4064
|
}))));
|
|
6950
4065
|
};
|
|
6951
4066
|
|
|
@@ -6978,8 +4093,8 @@ var PhotoStoryElement = function PhotoStoryElement(_ref3) {
|
|
|
6978
4093
|
var shouldRunFBMobileVideoFix = true;
|
|
6979
4094
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6980
4095
|
className: "story-element-card-m_story-card__H2VYl"
|
|
6981
|
-
},
|
|
6982
|
-
var cardId =
|
|
4096
|
+
}, lodash.get(card, ["story-elements"], []).map(function (element, index) {
|
|
4097
|
+
var cardId = lodash.get(card, ["id"], "");
|
|
6983
4098
|
|
|
6984
4099
|
if (element.type === "image") {
|
|
6985
4100
|
return /*#__PURE__*/React__default["default"].createElement(MainImageWrapper, {
|
|
@@ -7018,7 +4133,7 @@ var SlotAfterStory = function SlotAfterStory(_ref4) {
|
|
|
7018
4133
|
|
|
7019
4134
|
switch (element.type) {
|
|
7020
4135
|
case "ad":
|
|
7021
|
-
return /*#__PURE__*/React__default["default"].createElement(AdComponent,
|
|
4136
|
+
return /*#__PURE__*/React__default["default"].createElement(AdComponent, _extends__default["default"]({}, element, {
|
|
7022
4137
|
id: "ad-after-story-".concat(id)
|
|
7023
4138
|
}));
|
|
7024
4139
|
|
|
@@ -7054,13 +4169,13 @@ var TimeStamp = function TimeStamp(_ref) {
|
|
|
7054
4169
|
_ref$config = _ref.config,
|
|
7055
4170
|
config = _ref$config === void 0 ? {} : _ref$config;
|
|
7056
4171
|
var configState = useStateValue() || {};
|
|
7057
|
-
var isTime =
|
|
4172
|
+
var isTime = lodash.get(config, ["showTime"], lodash.get(configState, ["showTime"], true));
|
|
7058
4173
|
var time = story["last-published-at"] || story["first-published-at"];
|
|
7059
4174
|
var isBottomClasses = isBottom ? "bottom-fix" : "";
|
|
7060
4175
|
var textColor = getTextColor(configState.theme);
|
|
7061
4176
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7062
4177
|
"data-test-id": "publish-time",
|
|
7063
|
-
className: "time arr--publish-time " +
|
|
4178
|
+
className: "time arr--publish-time " + _getClassName__default["default"]("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$a)
|
|
7064
4179
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7065
4180
|
className: "timestamp-m_time-wrapper__3O2lM"
|
|
7066
4181
|
}, getTimeStamp(time, formatter, config))));
|
|
@@ -7095,9 +4210,9 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
7095
4210
|
_ref$config = _ref.config,
|
|
7096
4211
|
config = _ref$config === void 0 ? {} : _ref$config;
|
|
7097
4212
|
var configData = useStateValue() || {};
|
|
7098
|
-
var isAuthor =
|
|
4213
|
+
var isAuthor = lodash.get(configData, ["showAuthor"], true);
|
|
7099
4214
|
|
|
7100
|
-
var _get =
|
|
4215
|
+
var _get = lodash.get(story, ["authors", "0"], ""),
|
|
7101
4216
|
avatarUrl = _get["avatar-url"],
|
|
7102
4217
|
avatarS3Key = _get["avatar-s3-key"],
|
|
7103
4218
|
authorName = _get.name,
|
|
@@ -7105,7 +4220,7 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
7105
4220
|
|
|
7106
4221
|
var isBottomClasses = isBottom ? "bottom-fix" : "";
|
|
7107
4222
|
var textColor = getTextColor(configData.theme);
|
|
7108
|
-
var mountAt =
|
|
4223
|
+
var mountAt = lodash.get(config, ["mountAt"], "");
|
|
7109
4224
|
|
|
7110
4225
|
var authorImage = function authorImage(dir) {
|
|
7111
4226
|
if (!avatarUrl && !avatarS3Key) {
|
|
@@ -7114,7 +4229,7 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
7114
4229
|
|
|
7115
4230
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7116
4231
|
"data-test-id": "author-image",
|
|
7117
|
-
className:
|
|
4232
|
+
className: _getClassName__default["default"]("author-image ".concat(dir, "-image"), _styleModuleImportMap$9)
|
|
7118
4233
|
}, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
|
|
7119
4234
|
slug: avatarS3Key,
|
|
7120
4235
|
"aspect-ratio": [1, 1],
|
|
@@ -7131,7 +4246,7 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
7131
4246
|
var isPrefix = function isPrefix(dir) {
|
|
7132
4247
|
if (prefix) {
|
|
7133
4248
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7134
|
-
className: "arr-author-prefix " +
|
|
4249
|
+
className: "arr-author-prefix " + _getClassName__default["default"]("prefix ".concat(textColor), _styleModuleImportMap$9)
|
|
7135
4250
|
}, prefix);
|
|
7136
4251
|
}
|
|
7137
4252
|
|
|
@@ -7141,16 +4256,16 @@ var AuthorBase = function AuthorBase(_ref) {
|
|
|
7141
4256
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
|
|
7142
4257
|
href: "".concat(mountAt, "/author/") + slug,
|
|
7143
4258
|
"aria-label": "author-name",
|
|
7144
|
-
className: "author-name arr-author-name arrow-component " +
|
|
4259
|
+
className: "author-name arr-author-name arrow-component " + _getClassName__default["default"]("author ".concat(isBottomClasses), _styleModuleImportMap$9)
|
|
7145
4260
|
}, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7146
4261
|
"data-test-id": "author-name",
|
|
7147
|
-
className: "author-name " +
|
|
4262
|
+
className: "author-name " + _getClassName__default["default"]("author-name ".concat(textColor), _styleModuleImportMap$9)
|
|
7148
4263
|
}, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
|
|
7149
4264
|
};
|
|
7150
4265
|
|
|
7151
4266
|
function mapStateToProps$1(state) {
|
|
7152
4267
|
return {
|
|
7153
|
-
config:
|
|
4268
|
+
config: lodash.get(state, ["qt", "config"], {})
|
|
7154
4269
|
};
|
|
7155
4270
|
}
|
|
7156
4271
|
|
|
@@ -7187,7 +4302,7 @@ var Divider = function Divider(_ref) {
|
|
|
7187
4302
|
_ref$color = _ref.color,
|
|
7188
4303
|
color = _ref$color === void 0 ? "light" : _ref$color;
|
|
7189
4304
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7190
|
-
className:
|
|
4305
|
+
className: _getClassName__default["default"](color, _styleModuleImportMap$8)
|
|
7191
4306
|
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
7192
4307
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7193
4308
|
width: width,
|
|
@@ -7223,9 +4338,9 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
7223
4338
|
config = _ref$config === void 0 ? {} : _ref$config,
|
|
7224
4339
|
isLightTheme = _ref.isLightTheme;
|
|
7225
4340
|
var configState = useStateValue() || {};
|
|
7226
|
-
var isAuthor =
|
|
7227
|
-
var isTime =
|
|
7228
|
-
var isReadTime =
|
|
4341
|
+
var isAuthor = lodash.get(config, ["showAuthor"], lodash.get(configState, ["showAuthor"], true));
|
|
4342
|
+
var isTime = lodash.get(config, ["showTime"], lodash.get(configState, ["showTime"], true));
|
|
4343
|
+
var isReadTime = lodash.get(configState, ["showReadTime"], true);
|
|
7229
4344
|
var isBottomClasses = isBottom ? "bottom-fix" : "";
|
|
7230
4345
|
var seperatorStyle = separator === "dot" ? "dot" : "dash";
|
|
7231
4346
|
var textColor = isLightTheme ? "light" : getTextColor(configState.theme);
|
|
@@ -7245,7 +4360,7 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
7245
4360
|
var getTimeStamp = function getTimeStamp() {
|
|
7246
4361
|
if (!isTime) return null;
|
|
7247
4362
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7248
|
-
className: "arr-separator " +
|
|
4363
|
+
className: "arr-separator " + _getClassName__default["default"]("".concat(seperatorStyle), _styleModuleImportMap$7)
|
|
7249
4364
|
}, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
|
|
7250
4365
|
story: story,
|
|
7251
4366
|
config: config
|
|
@@ -7257,7 +4372,7 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
|
7257
4372
|
};
|
|
7258
4373
|
|
|
7259
4374
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7260
|
-
className: "arr--author-time " +
|
|
4375
|
+
className: "arr--author-time " + _getClassName__default["default"]("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$7)
|
|
7261
4376
|
}, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
|
|
7262
4377
|
story: story,
|
|
7263
4378
|
isBottom: true,
|
|
@@ -7313,7 +4428,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
7313
4428
|
_ref$navigate = _ref.navigate,
|
|
7314
4429
|
navigate = _ref$navigate === void 0 ? true : _ref$navigate;
|
|
7315
4430
|
var collectionTitle = useStateValue() || {};
|
|
7316
|
-
var showRowTitle =
|
|
4431
|
+
var showRowTitle = lodash.get(collectionTitle, ["showRowTitle"], true);
|
|
7317
4432
|
var supportedTemplates = ["borderLeft", "borderBottom", "crossLine", "borderBottomFull"];
|
|
7318
4433
|
var templateStyle = supportedTemplates.includes(collectionNameTemplate) ? " collection-".concat(collectionNameTemplate) : "";
|
|
7319
4434
|
var slug = navigate && collection && getSlug(collection, config) || "";
|
|
@@ -7389,7 +4504,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
|
|
|
7389
4504
|
borderBottom: borderBottomFullStyle
|
|
7390
4505
|
},
|
|
7391
4506
|
"data-test-id": "collection-name",
|
|
7392
|
-
className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") +
|
|
4507
|
+
className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName__default["default"]("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$6)
|
|
7393
4508
|
}, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7394
4509
|
className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
|
|
7395
4510
|
style: {
|
|
@@ -7426,7 +4541,7 @@ CollectionNameBase.defaultProps = {
|
|
|
7426
4541
|
|
|
7427
4542
|
function mapStateToProps(state) {
|
|
7428
4543
|
return {
|
|
7429
|
-
config:
|
|
4544
|
+
config: lodash.get(state, ["qt", "config"], {})
|
|
7430
4545
|
};
|
|
7431
4546
|
}
|
|
7432
4547
|
|
|
@@ -7468,8 +4583,8 @@ var Headline = function Headline(_ref) {
|
|
|
7468
4583
|
enablePremiumStoryIcon = _premiumStoryIconConf3 === void 0 ? false : _premiumStoryIconConf3,
|
|
7469
4584
|
_premiumStoryIconConf4 = premiumStoryIconConfig.showLiveIcon,
|
|
7470
4585
|
showLiveIcon = _premiumStoryIconConf4 === void 0 ? false : _premiumStoryIconConf4;
|
|
7471
|
-
var alternateHeadline =
|
|
7472
|
-
var premiumStory = enablePremiumStoryIcon &&
|
|
4586
|
+
var alternateHeadline = lodash.get(story, ["alternative", "home", "default", "headline"]);
|
|
4587
|
+
var premiumStory = enablePremiumStoryIcon && lodash.get(story, ["access"]) === "subscription";
|
|
7473
4588
|
var headline = alternateHeadline || story.headline;
|
|
7474
4589
|
var HeaderTag = "h" + headerLevel;
|
|
7475
4590
|
|
|
@@ -7495,10 +4610,10 @@ var Headline = function Headline(_ref) {
|
|
|
7495
4610
|
var textColor = getTextColor(configData.theme);
|
|
7496
4611
|
var wrapperClass = premiumStory ? "wrapper" : "";
|
|
7497
4612
|
var iconSize = "24px";
|
|
7498
|
-
var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !
|
|
4613
|
+
var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !lodash.get(story, ["metadata", "is-closed"], false);
|
|
7499
4614
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7500
4615
|
"data-test-id": "headline",
|
|
7501
|
-
className: "arrow-component arr--headline " +
|
|
4616
|
+
className: "arrow-component arr--headline " + _getClassName__default["default"](wrapperClass, _styleModuleImportMap$5)
|
|
7502
4617
|
}, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
|
|
7503
4618
|
width: iconSize,
|
|
7504
4619
|
height: iconSize,
|
|
@@ -7510,9 +4625,9 @@ var Headline = function Headline(_ref) {
|
|
|
7510
4625
|
externalLink: isExternalStory(story),
|
|
7511
4626
|
"aria-label": "headline"
|
|
7512
4627
|
}, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
|
|
7513
|
-
className:
|
|
4628
|
+
className: _getClassName__default["default"]("headline ".concat(textColor), _styleModuleImportMap$5)
|
|
7514
4629
|
}, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
|
|
7515
|
-
className:
|
|
4630
|
+
className: _getClassName__default["default"]("headline ".concat(textColor), _styleModuleImportMap$5)
|
|
7516
4631
|
}, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
|
|
7517
4632
|
};
|
|
7518
4633
|
Headline.propTypes = {
|
|
@@ -7605,7 +4720,7 @@ var StoryCard = function StoryCard(_ref) {
|
|
|
7605
4720
|
backgroundColor: theme,
|
|
7606
4721
|
color: textColor
|
|
7607
4722
|
},
|
|
7608
|
-
className: "arr--story-card " +
|
|
4723
|
+
className: "arr--story-card " + _getClassName__default["default"]("card ".concat(horizontalCardStyle, " ").concat(borderTemplate, " ").concat(textColor, " ").concat(bgImageClasses, " ").concat(bgImgContentOverlapClass, " ").concat(horizontalMobileClasses), _styleModuleImportMap$4)
|
|
7609
4724
|
}, children || defaultStorycard);
|
|
7610
4725
|
};
|
|
7611
4726
|
|
|
@@ -7646,7 +4761,7 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
|
|
|
7646
4761
|
isHorizontalMobile: isHorizontalMobile,
|
|
7647
4762
|
aspectRatio: aspectRatio
|
|
7648
4763
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7649
|
-
className: "arr--story-content " +
|
|
4764
|
+
className: "arr--story-content " + _getClassName__default["default"]("content ".concat(alignment), _styleModuleImportMap$4)
|
|
7650
4765
|
}, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
|
|
7651
4766
|
story: story,
|
|
7652
4767
|
borderColor: SectionTagborderColor
|
|
@@ -7753,7 +4868,7 @@ var _styleModuleImportMap$3 = {
|
|
|
7753
4868
|
|
|
7754
4869
|
function ownKeys$2(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; }
|
|
7755
4870
|
|
|
7756
|
-
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) {
|
|
4871
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7757
4872
|
var LoadmoreButton = function LoadmoreButton(_ref) {
|
|
7758
4873
|
var _ref$config = _ref.config,
|
|
7759
4874
|
config = _ref$config === void 0 ? {} : _ref$config,
|
|
@@ -7777,14 +4892,14 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
|
|
|
7777
4892
|
return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7778
4893
|
onClick: onClick,
|
|
7779
4894
|
"data-test-id": "load-more",
|
|
7780
|
-
className: "arr--button " +
|
|
4895
|
+
className: "arr--button " + _getClassName__default["default"]("button ".concat(textColor, " default"), _styleModuleImportMap$3)
|
|
7781
4896
|
}, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
|
|
7782
4897
|
href: slug,
|
|
7783
4898
|
navigateTo: navigate,
|
|
7784
4899
|
"data-test-id": "load-more",
|
|
7785
4900
|
"aria-label": "load-more"
|
|
7786
4901
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7787
|
-
className: "arr--button " +
|
|
4902
|
+
className: "arr--button " + _getClassName__default["default"]("button ".concat(textColor, " default"), _styleModuleImportMap$3)
|
|
7788
4903
|
}, buttonText));
|
|
7789
4904
|
};
|
|
7790
4905
|
LoadmoreButton.propTypes = {
|
|
@@ -7832,7 +4947,7 @@ var KeyEventCards = function KeyEventCards(props) {
|
|
|
7832
4947
|
var lastElement = index === cardLength - 1;
|
|
7833
4948
|
var borderLeft = lastElement ? "borderNone" : "";
|
|
7834
4949
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7835
|
-
className:
|
|
4950
|
+
className: _getClassName__default["default"]("time-wrapper ".concat(textColor), _styleModuleImportMap$2)
|
|
7836
4951
|
}, /*#__PURE__*/React__default["default"].createElement(ClockIcon, {
|
|
7837
4952
|
color: updateColor
|
|
7838
4953
|
}), getTimeStamp(cardAddedAt, timestampToFormat, {
|
|
@@ -7842,7 +4957,7 @@ var KeyEventCards = function KeyEventCards(props) {
|
|
|
7842
4957
|
href: "".concat(mountAt, "/").concat(slug, "#").concat(id),
|
|
7843
4958
|
"aria-label": "event-title"
|
|
7844
4959
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7845
|
-
className:
|
|
4960
|
+
className: _getClassName__default["default"]("event-title ".concat(textColor, " ").concat(borderLeft), _styleModuleImportMap$2)
|
|
7846
4961
|
}, storyElements.map(function (element, index) {
|
|
7847
4962
|
return element.type === "title" && /*#__PURE__*/React__default["default"].createElement("h3", {
|
|
7848
4963
|
key: index
|
|
@@ -7877,23 +4992,23 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
|
7877
4992
|
config = _ref$config === void 0 ? {} : _ref$config,
|
|
7878
4993
|
_ref$showLoadMore = _ref.showLoadMore,
|
|
7879
4994
|
showLoadMore = _ref$showLoadMore === void 0 ? true : _ref$showLoadMore;
|
|
7880
|
-
var cards =
|
|
4995
|
+
var cards = lodash.get(story, ["cards"], []);
|
|
7881
4996
|
var theme = config.theme,
|
|
7882
4997
|
_config$initialLoadCo = config.initialLoadCount,
|
|
7883
4998
|
initialLoadCount = _config$initialLoadCo === void 0 ? 4 : _config$initialLoadCo;
|
|
7884
4999
|
var textColor = getTextColor(theme);
|
|
7885
5000
|
|
|
7886
5001
|
var _useState = React.useState(initialLoadCount),
|
|
7887
|
-
_useState2 =
|
|
5002
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
7888
5003
|
initialCount = _useState2[0],
|
|
7889
5004
|
updatedCount = _useState2[1];
|
|
7890
5005
|
|
|
7891
5006
|
var cardsWithKeyEvents = cards.filter(function (card) {
|
|
7892
|
-
return
|
|
5007
|
+
return lodash.get(card.metadata, ["attributes", "key-event"]);
|
|
7893
5008
|
});
|
|
7894
5009
|
var lastElement = cardsWithKeyEvents.length > initialCount;
|
|
7895
5010
|
var qtConfig = reactRedux.useSelector(function (state) {
|
|
7896
|
-
return
|
|
5011
|
+
return lodash.get(state, ["qt", "config"], {});
|
|
7897
5012
|
});
|
|
7898
5013
|
|
|
7899
5014
|
var onClick = function onClick() {
|
|
@@ -7921,7 +5036,7 @@ var KeyEventsBase = function KeyEventsBase(_ref) {
|
|
|
7921
5036
|
style: {
|
|
7922
5037
|
background: theme
|
|
7923
5038
|
},
|
|
7924
|
-
className: "arrow-component " +
|
|
5039
|
+
className: "arrow-component " + _getClassName__default["default"]("container ".concat(textColor), _styleModuleImportMap$2)
|
|
7925
5040
|
}, /*#__PURE__*/React__default["default"].createElement("h3", null, "Key Events"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7926
5041
|
className: "key-events-m_cards-wrapper__3f8aB"
|
|
7927
5042
|
}, keyEvents), showLoadMore && lastElement && /*#__PURE__*/React__default["default"].createElement(LoadmoreButton, {
|
|
@@ -7940,7 +5055,7 @@ var KeyEvents = StateProvider(KeyEventsBase);
|
|
|
7940
5055
|
|
|
7941
5056
|
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7942
5057
|
|
|
7943
|
-
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
|
|
5058
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7944
5059
|
var _styleModuleImportMap$1 = {
|
|
7945
5060
|
"./aside-collection.m.css": {
|
|
7946
5061
|
"stories": "aside-collection-m_stories__9wfUs",
|
|
@@ -7973,22 +5088,22 @@ var StoryCollection = function StoryCollection(_ref) {
|
|
|
7973
5088
|
|
|
7974
5089
|
var heading = title || "Related Stories";
|
|
7975
5090
|
var isHorizontal = horizontal ? "horizontal-wrapper" : "";
|
|
7976
|
-
var mountAt =
|
|
5091
|
+
var mountAt = lodash.get(config, ["mountAtPrefix"], "");
|
|
7977
5092
|
|
|
7978
5093
|
var _useState = React.useState([]),
|
|
7979
|
-
_useState2 =
|
|
5094
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
7980
5095
|
storyList = _useState2[0],
|
|
7981
5096
|
updateStoryList = _useState2[1];
|
|
7982
5097
|
|
|
7983
5098
|
var _useState3 = React.useState([]),
|
|
7984
|
-
_useState4 =
|
|
5099
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
7985
5100
|
collectionData = _useState4[0],
|
|
7986
5101
|
updateCollectionData = _useState4[1];
|
|
7987
5102
|
|
|
7988
5103
|
var updateStoryListItems = /*#__PURE__*/function () {
|
|
7989
|
-
var _ref3 =
|
|
5104
|
+
var _ref3 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(slug) {
|
|
7990
5105
|
var collectionDataResponse, storyItems;
|
|
7991
|
-
return
|
|
5106
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
|
|
7992
5107
|
while (1) {
|
|
7993
5108
|
switch (_context.prev = _context.next) {
|
|
7994
5109
|
case 0:
|
|
@@ -8099,7 +5214,7 @@ var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
|
8099
5214
|
},
|
|
8100
5215
|
"data-test-id": "aside-collection",
|
|
8101
5216
|
id: "aside-collection-".concat(storyId),
|
|
8102
|
-
className: "arrow-component arr--aside-collection " +
|
|
5217
|
+
className: "arrow-component arr--aside-collection " + _getClassName__default["default"]("wrapper ".concat(isHorizontal), _styleModuleImportMap$1)
|
|
8103
5218
|
}, /*#__PURE__*/React__default["default"].createElement(StoryCollection, {
|
|
8104
5219
|
data: data,
|
|
8105
5220
|
horizontal: horizontal,
|
|
@@ -8144,7 +5259,7 @@ var AsideCollectionBase = function AsideCollectionBase(_ref4) {
|
|
|
8144
5259
|
backgroundColor: theme
|
|
8145
5260
|
},
|
|
8146
5261
|
"data-test-id": "aside-collection",
|
|
8147
|
-
className: "arrow-component arr--aside-collection " +
|
|
5262
|
+
className: "arrow-component arr--aside-collection " + _getClassName__default["default"](["wrapper", isHorizontal, isSticky].join(" "), _styleModuleImportMap$1)
|
|
8148
5263
|
}, enableKeyEvents && /*#__PURE__*/React__default["default"].createElement(KeyEvents, {
|
|
8149
5264
|
story: keyEventsData.story,
|
|
8150
5265
|
showLoadMore: keyEventsData.showLoadMore,
|
|
@@ -8196,7 +5311,7 @@ var _styleModuleImportMap = {
|
|
|
8196
5311
|
|
|
8197
5312
|
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; }
|
|
8198
5313
|
|
|
8199
|
-
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) {
|
|
5314
|
+
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; }
|
|
8200
5315
|
var PhotoStoryBase = function PhotoStoryBase(_ref) {
|
|
8201
5316
|
var _ref$story = _ref.story,
|
|
8202
5317
|
story = _ref$story === void 0 ? {} : _ref$story,
|
|
@@ -8231,9 +5346,9 @@ var PhotoStoryBase = function PhotoStoryBase(_ref) {
|
|
|
8231
5346
|
premiumStoryIconConfig = _config$premiumStoryI === void 0 ? {} : _config$premiumStoryI;
|
|
8232
5347
|
var isFullBleed = imageRender === "fullBleed";
|
|
8233
5348
|
var visibledCards = noOfVisibleCards < 0 ? story.cards : story.cards.slice(0, noOfVisibleCards);
|
|
8234
|
-
var storyId =
|
|
5349
|
+
var storyId = lodash.get(story, ["id"], "");
|
|
8235
5350
|
var timezone = reactRedux.useSelector(function (state) {
|
|
8236
|
-
return
|
|
5351
|
+
return lodash.get(state, ["qt", "data", "timezone"], null);
|
|
8237
5352
|
});
|
|
8238
5353
|
|
|
8239
5354
|
var HeaderCard = function HeaderCard() {
|
|
@@ -8282,7 +5397,7 @@ var PhotoStoryBase = function PhotoStoryBase(_ref) {
|
|
|
8282
5397
|
return /*#__PURE__*/React__default["default"].createElement(PhotoStoryElement, {
|
|
8283
5398
|
story: story,
|
|
8284
5399
|
card: card,
|
|
8285
|
-
key:
|
|
5400
|
+
key: lodash.get(card, ["id"], ""),
|
|
8286
5401
|
config: _objectSpread(_objectSpread({}, storyElementsConfig), {}, {
|
|
8287
5402
|
theme: theme
|
|
8288
5403
|
}),
|
|
@@ -8318,7 +5433,7 @@ var PhotoStoryBase = function PhotoStoryBase(_ref) {
|
|
|
8318
5433
|
var story = _ref2.story;
|
|
8319
5434
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8320
5435
|
"data-test-id": "hero-image",
|
|
8321
|
-
className:
|
|
5436
|
+
className: _getClassName__default["default"]("".concat(renderImages(imageRender), " index-2"), _styleModuleImportMap)
|
|
8322
5437
|
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8323
5438
|
story: story,
|
|
8324
5439
|
aspectRatio: [[16, 9], [8, 3]],
|
|
@@ -8331,7 +5446,7 @@ var PhotoStoryBase = function PhotoStoryBase(_ref) {
|
|
|
8331
5446
|
config: config
|
|
8332
5447
|
}), /*#__PURE__*/React__default["default"].createElement(HeaderCard, null), /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), asideCollection && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8333
5448
|
className: "photo-m_grid-col-10-14__3gyc8 photo-m_space-12__1P16k"
|
|
8334
|
-
}, /*#__PURE__*/React__default["default"].createElement(AsideCollection,
|
|
5449
|
+
}, /*#__PURE__*/React__default["default"].createElement(AsideCollection, _extends__default["default"]({}, asideCollection, {
|
|
8335
5450
|
widgetComp: widgetComp,
|
|
8336
5451
|
adComponent: adComponent,
|
|
8337
5452
|
sticky: true,
|
|
@@ -8344,7 +5459,7 @@ var PhotoStoryBase = function PhotoStoryBase(_ref) {
|
|
|
8344
5459
|
var story = _ref3.story;
|
|
8345
5460
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8346
5461
|
"data-test-id": "hero-image",
|
|
8347
|
-
className:
|
|
5462
|
+
className: _getClassName__default["default"]("".concat(renderImages(imageRender), " index-2"), _styleModuleImportMap)
|
|
8348
5463
|
}, /*#__PURE__*/React__default["default"].createElement(HeroImage, {
|
|
8349
5464
|
story: story,
|
|
8350
5465
|
aspectRatio: [[16, 9]],
|
|
@@ -8357,7 +5472,7 @@ var PhotoStoryBase = function PhotoStoryBase(_ref) {
|
|
|
8357
5472
|
config: config
|
|
8358
5473
|
}), /*#__PURE__*/React__default["default"].createElement(HeaderCard, null), /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), asideCollection && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8359
5474
|
className: "photo-m_grid-container__2cJOz photo-m_space-12__1P16k photo-m_tablet-index-2__K4P3M"
|
|
8360
|
-
}, /*#__PURE__*/React__default["default"].createElement(AsideCollection,
|
|
5475
|
+
}, /*#__PURE__*/React__default["default"].createElement(AsideCollection, _extends__default["default"]({
|
|
8361
5476
|
horizontal: true
|
|
8362
5477
|
}, asideCollection, {
|
|
8363
5478
|
widgetComp: widgetComp,
|
|
@@ -8385,7 +5500,7 @@ var PhotoStoryBase = function PhotoStoryBase(_ref) {
|
|
|
8385
5500
|
config: config
|
|
8386
5501
|
}), /*#__PURE__*/React__default["default"].createElement(StoryData, null)), verticalShare && /*#__PURE__*/React__default["default"].createElement(SocialShareComponent, null), asideCollection && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8387
5502
|
className: "photo-m_grid-col-9-14__2_eSL"
|
|
8388
|
-
}, /*#__PURE__*/React__default["default"].createElement(AsideCollection,
|
|
5503
|
+
}, /*#__PURE__*/React__default["default"].createElement(AsideCollection, _extends__default["default"]({}, asideCollection, {
|
|
8389
5504
|
widgetComp: widgetComp,
|
|
8390
5505
|
adComponent: adComponent,
|
|
8391
5506
|
sticky: true,
|
|
@@ -8422,11 +5537,11 @@ var PhotoStoryBase = function PhotoStoryBase(_ref) {
|
|
|
8422
5537
|
templateType: PropTypes__default["default"].string
|
|
8423
5538
|
};
|
|
8424
5539
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8425
|
-
"data-test-id": "photo-story-".concat(templateType, "-").concat(
|
|
5540
|
+
"data-test-id": "photo-story-".concat(templateType, "-").concat(lodash.kebabCase(imageRender)),
|
|
8426
5541
|
style: {
|
|
8427
5542
|
backgroundColor: theme
|
|
8428
5543
|
},
|
|
8429
|
-
className: ("arrow-component arr-story-grid arr--content-wrapper arr--photo-story-template-wrapper ".concat(templateType, " ") ? "arrow-component arr-story-grid arr--content-wrapper arr--photo-story-template-wrapper ".concat(templateType, " ") + " " : "") +
|
|
5544
|
+
className: ("arrow-component arr-story-grid arr--content-wrapper arr--photo-story-template-wrapper ".concat(templateType, " ") ? "arrow-component arr-story-grid arr--content-wrapper arr--photo-story-template-wrapper ".concat(templateType, " ") + " " : "") + _getClassName__default["default"]("".concat(verticalShare, " ").concat(isFullBleed ? "fullBleed" : ""), _styleModuleImportMap)
|
|
8430
5545
|
}, /*#__PURE__*/React__default["default"].createElement(PhotoStoryTemplate, {
|
|
8431
5546
|
templateType: templateType
|
|
8432
5547
|
}));
|