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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/atoms/Author/index.js +48 -2128
  2. package/atoms/Author/styles.arrow.css +1 -1
  3. package/atoms/AuthorWithTime/index.js +116 -2556
  4. package/atoms/AuthorWithTime/styles.arrow.css +1 -1
  5. package/atoms/CollectionName/index.js +48 -2127
  6. package/atoms/CollectionName/styles.arrow.css +1 -1
  7. package/atoms/ExtendedLoadMore/{index-6f8c780e.js → index-0f809dd9.js} +73 -62
  8. package/atoms/ExtendedLoadMore/index-142f015c.js +476 -0
  9. package/atoms/ExtendedLoadMore/{index-2d713010.js → index-37a9ccff.js} +63 -47
  10. package/atoms/ExtendedLoadMore/{index-8345922c.js → index-446679c8.js} +67 -51
  11. package/atoms/ExtendedLoadMore/{index-6daa674c.js → index-44f97338.js} +86 -68
  12. package/atoms/ExtendedLoadMore/{index-c8f346d0.js → index-57dd4870.js} +80 -64
  13. package/atoms/ExtendedLoadMore/{index-7eb05b3d.js → index-66dd4dbd.js} +70 -54
  14. package/atoms/ExtendedLoadMore/{index-6cb56d1a.js → index-8462c597.js} +93 -80
  15. package/atoms/ExtendedLoadMore/{index-aa8b8ab8.js → index-93cb06d1.js} +252 -226
  16. package/atoms/ExtendedLoadMore/index-afd44863.js +95 -0
  17. package/atoms/ExtendedLoadMore/{index-5a7900ba.js → index-b5754c5d.js} +67 -53
  18. package/atoms/ExtendedLoadMore/{index-4191a84c.js → index-bbaf526e.js} +78 -62
  19. package/atoms/ExtendedLoadMore/{index-99af722e.js → index-cfb262ef.js} +65 -48
  20. package/atoms/ExtendedLoadMore/index.js +20 -5
  21. package/atoms/ExtendedLoadMore/styles.arrow.css +1 -1
  22. package/atoms/Headline/index.js +95 -2175
  23. package/atoms/Headline/styles.arrow.css +1 -1
  24. package/atoms/HeroImage/index.js +91 -2230
  25. package/atoms/HeroImage/styles.arrow.css +1 -1
  26. package/atoms/LoadmoreButton/index.js +40 -2133
  27. package/atoms/LoadmoreButton/styles.arrow.css +1 -1
  28. package/atoms/ScrollSnap/index.js +89 -2241
  29. package/atoms/ScrollSnap/styles.arrow.css +1 -1
  30. package/atoms/SectionTag/index.js +40 -2120
  31. package/atoms/SectionTag/styles.arrow.css +1 -1
  32. package/atoms/Subheadline/index.js +35 -2115
  33. package/atoms/Subheadline/styles.arrow.css +1 -1
  34. package/atoms/TimeStamp/index.js +43 -2483
  35. package/atoms/TimeStamp/styles.arrow.css +1 -1
  36. package/molecules/KeyEvents/index.js +95 -2606
  37. package/molecules/KeyEvents/styles.arrow.css +1 -1
  38. package/molecules/PageIntroductionCard/index.js +59 -2487
  39. package/molecules/PageIntroductionCard/styles.arrow.css +1 -1
  40. package/molecules/SocialShareTemplate/index.js +213 -2800
  41. package/molecules/SocialShareTemplate/styles.arrow.css +1 -1
  42. package/molecules/StoryCard/index.js +308 -2816
  43. package/molecules/StoryCard/styles.arrow.css +1 -1
  44. package/molecules/StoryElementCard/index.js +611 -3352
  45. package/molecules/StoryElementCard/styles.arrow.css +1 -1
  46. package/molecules/StorycardContent/index.js +218 -2658
  47. package/molecules/StorycardContent/styles.arrow.css +1 -1
  48. package/package.json +1 -1
  49. package/rows/AlternateCollectionFilter/index.js +438 -2993
  50. package/rows/AlternateCollectionFilter/styles.arrow.css +1 -1
  51. package/rows/AsideCollection/index.js +432 -2987
  52. package/rows/AsideCollection/styles.arrow.css +1 -1
  53. package/rows/AstrologyCollection/index.js +411 -2966
  54. package/rows/AstrologyCollection/styles.arrow.css +1 -1
  55. package/rows/AuthorIntroductionCard/index.js +183 -2890
  56. package/rows/AuthorIntroductionCard/styles.arrow.css +1 -1
  57. package/rows/AuthorsList/index.js +217 -2936
  58. package/rows/AuthorsList/styles.arrow.css +1 -1
  59. package/rows/CollectionFilter/index.js +453 -3008
  60. package/rows/CollectionFilter/styles.arrow.css +1 -1
  61. package/rows/ElevenStories/index.js +439 -2959
  62. package/rows/ElevenStories/styles.arrow.css +1 -1
  63. package/rows/FourColFiveStories/index.js +374 -2872
  64. package/rows/FourColFiveStories/styles.arrow.css +1 -1
  65. package/rows/FourColGrid/index.js +426 -2927
  66. package/rows/FourColGrid/styles.arrow.css +1 -1
  67. package/rows/FourColPortraitStories/index.js +430 -2931
  68. package/rows/FourColPortraitStories/styles.arrow.css +1 -1
  69. package/rows/FourColSixteenStories/index.js +368 -2894
  70. package/rows/FourColSixteenStories/styles.arrow.css +1 -1
  71. package/rows/FourColTwelveStories/index.js +387 -2900
  72. package/rows/FourColTwelveStories/styles.arrow.css +1 -1
  73. package/rows/FourStorySlider/index.js +443 -2963
  74. package/rows/FourStorySlider/styles.arrow.css +1 -1
  75. package/rows/FourStorySliderPortrait/index.js +444 -2964
  76. package/rows/FourStorySliderPortrait/styles.arrow.css +1 -1
  77. package/rows/FourTabbedBigStorySlider/index.js +403 -2923
  78. package/rows/FourTabbedBigStorySlider/styles.arrow.css +1 -1
  79. package/rows/FullScreenSlider/index.js +422 -2942
  80. package/rows/FullScreenSlider/styles.arrow.css +1 -1
  81. package/rows/HalfScreenSlider/index.js +390 -2910
  82. package/rows/HalfScreenSlider/styles.arrow.css +1 -1
  83. package/rows/ListComponent/index.js +398 -2918
  84. package/rows/ListComponent/styles.arrow.css +1 -1
  85. package/rows/Listicles/index.js +189 -2375
  86. package/rows/Listicles/styles.arrow.css +1 -1
  87. package/rows/MagazineEditions/index.js +128 -2580
  88. package/rows/MagazineEditions/styles.arrow.css +1 -1
  89. package/rows/MagazineHeaderCard/index.js +125 -2577
  90. package/rows/MagazineHeaderCard/styles.arrow.css +1 -1
  91. package/rows/MagazineWidget/index.js +408 -2928
  92. package/rows/MagazineWidget/styles.arrow.css +1 -1
  93. package/rows/OneColStoryList/index.js +439 -2940
  94. package/rows/OneColStoryList/styles.arrow.css +1 -1
  95. package/rows/OpinionCollection/index.js +308 -2800
  96. package/rows/OpinionCollection/styles.arrow.css +1 -1
  97. package/rows/SixColSixStories/index.js +405 -2906
  98. package/rows/SixColSixStories/styles.arrow.css +1 -1
  99. package/rows/StoryCollection/index.js +432 -2987
  100. package/rows/StoryCollection/styles.arrow.css +1 -1
  101. package/rows/TagIntroductionCard/index.js +35 -1833
  102. package/rows/TagIntroductionCard/styles.arrow.css +1 -1
  103. package/rows/ThreeColFlexStories/index.js +421 -2922
  104. package/rows/ThreeColFlexStories/styles.arrow.css +1 -1
  105. package/rows/ThreeColFourteenStories/index.js +358 -2871
  106. package/rows/ThreeColFourteenStories/styles.arrow.css +1 -1
  107. package/rows/ThreeColGrid/index.js +428 -2929
  108. package/rows/ThreeColGrid/styles.arrow.css +1 -1
  109. package/rows/ThreeColSevenStory/index.js +406 -2926
  110. package/rows/ThreeColSevenStory/styles.arrow.css +1 -1
  111. package/rows/ThreeColSixStories/index.js +400 -2920
  112. package/rows/ThreeColSixStories/styles.arrow.css +1 -1
  113. package/rows/ThreeColTwelveStories/index.js +383 -2909
  114. package/rows/ThreeColTwelveStories/styles.arrow.css +1 -1
  115. package/rows/TwoColFourStories/index.js +395 -2915
  116. package/rows/TwoColFourStories/styles.arrow.css +1 -1
  117. package/rows/TwoColFourStoryHighlight/index.js +398 -2924
  118. package/rows/TwoColFourStoryHighlight/styles.arrow.css +1 -1
  119. package/rows/TwoColSevenStories/index.js +400 -2920
  120. package/rows/TwoColSevenStories/styles.arrow.css +1 -1
  121. package/rows/TwoColSixStories/index.js +398 -2924
  122. package/rows/TwoColSixStories/styles.arrow.css +1 -1
  123. package/rows/TwoColTenStoriesSidebar/index.js +418 -2938
  124. package/rows/TwoColTenStoriesSidebar/styles.arrow.css +1 -1
  125. package/rows/TwoColThreeStories/index.js +392 -2912
  126. package/rows/TwoColThreeStories/styles.arrow.css +1 -1
  127. package/story-elements/AlsoRead/index.js +92 -2229
  128. package/story-elements/AlsoRead/styles.arrow.css +1 -1
  129. package/story-elements/Attachment/index.js +53 -1899
  130. package/story-elements/Attachment/styles.arrow.css +1 -1
  131. package/story-elements/BigFact/index.js +49 -1895
  132. package/story-elements/BigFact/styles.arrow.css +1 -1
  133. package/story-elements/BlockQuote/index.js +79 -2206
  134. package/story-elements/BlockQuote/styles.arrow.css +1 -1
  135. package/story-elements/Blurb/index.js +52 -1957
  136. package/story-elements/Blurb/styles.arrow.css +1 -1
  137. package/story-elements/Image/index.js +147 -2329
  138. package/story-elements/Image/styles.arrow.css +1 -1
  139. package/story-elements/ImageGallery/index.js +135 -2317
  140. package/story-elements/ImageGallery/styles.arrow.css +1 -1
  141. package/story-elements/ImageSlideshow/index.js +173 -2355
  142. package/story-elements/ImageSlideshow/styles.arrow.css +1 -1
  143. package/story-elements/QuestionAnswer/index.js +79 -2207
  144. package/story-elements/QuestionAnswer/styles.arrow.css +1 -1
  145. package/story-elements/Quote/index.js +52 -1898
  146. package/story-elements/Quote/styles.arrow.css +1 -1
  147. package/story-elements/Reference/index.js +53 -1899
  148. package/story-elements/Reference/styles.arrow.css +1 -1
  149. package/story-elements/StoryElement/index.js +34 -1738
  150. package/story-elements/Summary/index.js +56 -1902
  151. package/story-elements/Summary/styles.arrow.css +1 -1
  152. package/story-elements/Text/index.js +48 -2176
  153. package/story-elements/Text/styles.arrow.css +1 -1
  154. package/story-elements/Video/index.js +35 -1739
  155. package/story-elements/Video/styles.arrow.css +1 -1
  156. package/story-templates/ListicleStoryTemplate/index.js +1182 -4038
  157. package/story-templates/ListicleStoryTemplate/styles.arrow.css +1 -1
  158. package/story-templates/LiveBlogStoryTemplate/index.js +1377 -4233
  159. package/story-templates/LiveBlogStoryTemplate/styles.arrow.css +1 -1
  160. package/story-templates/PhotoStoryTemplate/index.js +1162 -4018
  161. package/story-templates/PhotoStoryTemplate/styles.arrow.css +1 -1
  162. package/story-templates/TextStoryTemplate/index.js +1277 -4133
  163. package/story-templates/TextStoryTemplate/styles.arrow.css +1 -1
  164. package/story-templates/VideoStoryTemplate/index.js +1231 -4087
  165. package/story-templates/VideoStoryTemplate/styles.arrow.css +1 -1
  166. package/atoms/ExtendedLoadMore/index-e39b3ca8.js +0 -3023
  167. package/atoms/ExtendedLoadMore/index-f6e578e3.js +0 -86
@@ -1,340 +1,129 @@
1
- import React, { useState, useEffect } from 'react';
2
- import PropTypes from 'prop-types';
3
- import 'react-timeago';
4
- import 'date-fns-tz';
5
-
6
- function _extends() {
7
- _extends = Object.assign || function (target) {
8
- for (var i = 1; i < arguments.length; i++) {
9
- var source = arguments[i];
10
-
11
- for (var key in source) {
12
- if (Object.prototype.hasOwnProperty.call(source, key)) {
13
- target[key] = source[key];
14
- }
15
- }
16
- }
17
-
18
- return target;
19
- };
20
-
21
- return _extends.apply(this, arguments);
22
- }
23
-
24
- function _arrayWithHoles(arr) {
25
- if (Array.isArray(arr)) return arr;
26
- }
27
-
28
- function _iterableToArrayLimit(arr, i) {
29
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
30
-
31
- if (_i == null) return;
32
- var _arr = [];
33
- var _n = true;
34
- var _d = false;
35
-
36
- var _s, _e;
37
-
38
- try {
39
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
40
- _arr.push(_s.value);
41
-
42
- if (i && _arr.length === i) break;
43
- }
44
- } catch (err) {
45
- _d = true;
46
- _e = err;
47
- } finally {
48
- try {
49
- if (!_n && _i["return"] != null) _i["return"]();
50
- } finally {
51
- if (_d) throw _e;
52
- }
53
- }
54
-
55
- return _arr;
56
- }
57
-
58
- function _arrayLikeToArray(arr, len) {
59
- if (len == null || len > arr.length) len = arr.length;
60
-
61
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
62
- arr2[i] = arr[i];
63
- }
64
-
65
- return arr2;
66
- }
67
-
68
- function _unsupportedIterableToArray(o, minLen) {
69
- if (!o) return;
70
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
71
- var n = Object.prototype.toString.call(o).slice(8, -1);
72
- if (n === "Object" && o.constructor) n = o.constructor.name;
73
- if (n === "Map" || n === "Set") return Array.from(o);
74
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
75
- }
76
-
77
- function _nonIterableRest() {
78
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
79
- }
80
-
81
- function _slicedToArray(arr, i) {
82
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
83
- }
84
-
85
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
86
-
87
- function getDefaultExportFromCjs (x) {
88
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
89
- }
90
-
91
- function createCommonjsModule(fn) {
92
- var module = { exports: {} };
93
- return fn(module, module.exports), module.exports;
94
- }
95
-
96
- var optionsDefaults_1 = createCommonjsModule(function (module, exports) {
97
-
98
- Object.defineProperty(exports, "__esModule", {
99
- value: true
100
- });
101
- exports["default"] = void 0;
102
- var optionsDefaults = {
103
- attributeNames: {
104
- styleName: 'className'
105
- },
106
- generateScopedName: '[path]___[name]__[local]___[hash:base64:5]',
107
- handleMissingStyleName: 'throw'
108
- };
109
- var _default = optionsDefaults;
110
- exports["default"] = _default;
111
-
112
-
113
- });
114
-
115
- var getClassName = createCommonjsModule(function (module, exports) {
116
-
117
- Object.defineProperty(exports, "__esModule", {
118
- value: true
119
- });
120
- exports["default"] = void 0;
121
-
122
- var _optionsDefaults = _interopRequireDefault(optionsDefaults_1);
123
-
124
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
125
-
126
- var isNamespacedStyleName = function isNamespacedStyleName(styleName) {
127
- return styleName.indexOf('.') !== -1;
128
- };
129
-
130
- var handleError = function handleError(message, handleMissingStyleName) {
131
- if (handleMissingStyleName === 'throw') {
132
- throw new Error(message);
133
- } else if (handleMissingStyleName === 'warn') {
134
- // eslint-disable-next-line no-console
135
- console.warn(message);
136
- }
137
-
138
- return null;
139
- };
140
-
141
- var getClassNameForNamespacedStyleName = function getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
142
- // Note:
143
- // Do not use the desctructing syntax with Babel.
144
- // Desctructing adds _slicedToArray helper.
145
- var styleNameParts = styleName.split('.');
146
- var importName = styleNameParts[0];
147
- var moduleName = styleNameParts[1];
148
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
149
-
150
- if (!moduleName) {
151
- return handleError('Invalid style name: ' + styleName, handleMissingStyleName);
152
- }
153
-
154
- if (!styleModuleImportMap[importName]) {
155
- return handleError('CSS module import does not exist: ' + importName, handleMissingStyleName);
156
- }
157
-
158
- if (!styleModuleImportMap[importName][moduleName]) {
159
- return handleError('CSS module does not exist: ' + moduleName, handleMissingStyleName);
160
- }
161
-
162
- return styleModuleImportMap[importName][moduleName];
163
- };
164
-
165
- var getClassNameFromMultipleImports = function getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
166
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
167
- var importKeysWithMatches = Object.keys(styleModuleImportMap).map(function (importKey) {
168
- return styleModuleImportMap[importKey][styleName] && importKey;
169
- }).filter(function (importKey) {
170
- return importKey;
171
- });
172
-
173
- if (importKeysWithMatches.length > 1) {
174
- 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');
175
- }
176
-
177
- if (importKeysWithMatches.length === 0) {
178
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
179
- }
180
-
181
- return styleModuleImportMap[importKeysWithMatches[0]][styleName];
182
- };
183
-
184
- var _default = function _default(styleNameValue, styleModuleImportMap, options) {
185
- var styleModuleImportMapKeys = Object.keys(styleModuleImportMap);
186
-
187
- var _ref = options || {},
188
- _ref$handleMissingSty = _ref.handleMissingStyleName,
189
- handleMissingStyleName = _ref$handleMissingSty === void 0 ? _optionsDefaults["default"].handleMissingStyleName : _ref$handleMissingSty,
190
- _ref$autoResolveMulti = _ref.autoResolveMultipleImports,
191
- autoResolveMultipleImports = _ref$autoResolveMulti === void 0 ? _optionsDefaults["default"].autoResolveMultipleImports : _ref$autoResolveMulti;
192
-
193
- if (!styleNameValue) {
194
- return '';
195
- }
196
-
197
- return styleNameValue.split(' ').filter(function (styleName) {
198
- return styleName;
199
- }).map(function (styleName) {
200
- if (isNamespacedStyleName(styleName)) {
201
- return getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleName);
202
- }
203
-
204
- if (styleModuleImportMapKeys.length === 0) {
205
- throw new Error('Cannot use styleName attribute for style name \'' + styleName + '\' without importing at least one stylesheet.');
206
- }
207
-
208
- if (styleModuleImportMapKeys.length > 1) {
209
- if (!autoResolveMultipleImports) {
210
- throw new Error('Cannot use anonymous style name \'' + styleName + '\' with more than one stylesheet import without setting \'autoResolveMultipleImports\' to true.');
211
- }
212
-
213
- return getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleName);
214
- }
215
-
216
- var styleModuleMap = styleModuleImportMap[styleModuleImportMapKeys[0]];
217
-
218
- if (!styleModuleMap[styleName]) {
219
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
220
- }
221
-
222
- return styleModuleMap[styleName];
223
- }).filter(function (className) {
224
- // Remove any styles which could not be found (if handleMissingStyleName === 'ignore')
225
- return className;
226
- }).join(' ');
227
- };
228
-
229
- exports["default"] = _default;
230
-
231
-
232
- });
233
-
234
- var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _extends = require('@babel/runtime/helpers/extends');
6
+ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
7
+ var _getClassName = require('babel-plugin-react-css-modules/dist/browser/getClassName');
8
+ var React = require('react');
9
+ var PropTypes = require('prop-types');
10
+ require('@babel/runtime/helpers/asyncToGenerator');
11
+ require('@babel/runtime/helpers/typeof');
12
+ require('@babel/runtime/regenerator');
13
+ var lodash = require('lodash');
14
+ require('react-timeago');
15
+ require('date-fns-tz');
16
+
17
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
18
+
19
+ var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
20
+ var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
21
+ var _getClassName__default = /*#__PURE__*/_interopDefaultLegacy(_getClassName);
22
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
23
+ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
235
24
 
236
25
  var Twitter = function Twitter(_ref) {
237
26
  var _ref$color = _ref.color,
238
27
  color = _ref$color === void 0 ? "#1CB7EB" : _ref$color;
239
- return /*#__PURE__*/React.createElement("svg", {
28
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
240
29
  xmlns: "http://www.w3.org/2000/svg",
241
30
  width: "24",
242
31
  height: "24",
243
32
  viewBox: "0 0 24 24"
244
- }, /*#__PURE__*/React.createElement("path", {
33
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
245
34
  fill: color,
246
35
  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"
247
36
  }));
248
37
  };
249
38
  Twitter.propTypes = {
250
- color: PropTypes.string
39
+ color: PropTypes__default["default"].string
251
40
  };
252
41
 
253
42
  var Facebook = function Facebook(_ref) {
254
43
  var _ref$color = _ref.color,
255
44
  color = _ref$color === void 0 ? "#3B5998" : _ref$color;
256
- return /*#__PURE__*/React.createElement("svg", {
45
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
257
46
  xmlns: "http://www.w3.org/2000/svg",
258
47
  width: "24",
259
48
  height: "24",
260
49
  viewBox: "0 0 24 24"
261
- }, /*#__PURE__*/React.createElement("path", {
50
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
262
51
  fill: color,
263
52
  d: "M9.906 20v-7.156H7.5V10h2.406V7.75c0-1.187.334-2.11 1-2.766.667-.656 1.552-.984 2.656-.984.896 0 1.625.042 2.188.125v2.531h-1.5c-.563 0-.948.125-1.156.375-.167.209-.25.542-.25 1V10H15.5l-.375 2.844h-2.281V20H9.906z"
264
53
  }));
265
54
  };
266
55
  Facebook.propTypes = {
267
- color: PropTypes.string
56
+ color: PropTypes__default["default"].string
268
57
  };
269
58
 
270
59
  var LinkedIn = function LinkedIn(_ref) {
271
60
  var _ref$color = _ref.color,
272
61
  color = _ref$color === void 0 ? "#0077B5" : _ref$color;
273
- return /*#__PURE__*/React.createElement("svg", {
62
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
274
63
  xmlns: "http://www.w3.org/2000/svg",
275
64
  width: "24",
276
65
  height: "24",
277
66
  viewBox: "0 0 24 24"
278
- }, /*#__PURE__*/React.createElement("path", {
67
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
279
68
  fill: color,
280
69
  d: "M6.71 19H3.26V7.904h3.45V19zM5.005 6.383a1.926 1.926 0 01-1.41-.594A1.923 1.923 0 013 4.38c0-.544.198-1.014.594-1.41a1.926 1.926 0 011.41-.594c.544 0 1.014.198 1.41.594.396.396.594.866.594 1.41 0 .544-.198 1.014-.594 1.41a1.926 1.926 0 01-1.41.594zM19.625 19h-3.451v-5.418c0-.89-.074-1.534-.223-1.93-.272-.668-.804-1.002-1.596-1.002-.791 0-1.348.297-1.67.891-.247.445-.37 1.1-.37 1.967V19H8.9V7.904h3.303v1.522h.037c.248-.495.643-.903 1.188-1.225.593-.396 1.286-.594 2.078-.594 1.608 0 2.734.508 3.377 1.522.495.816.742 2.078.742 3.785V19z"
281
70
  }));
282
71
  };
283
72
  LinkedIn.propTypes = {
284
- color: PropTypes.string
73
+ color: PropTypes__default["default"].string
285
74
  };
286
75
 
287
76
  var WhatsApp = function WhatsApp(_ref) {
288
77
  var _ref$color = _ref.color,
289
78
  color = _ref$color === void 0 ? "#4AC959" : _ref$color;
290
- return /*#__PURE__*/React.createElement("svg", {
79
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
291
80
  xmlns: "http://www.w3.org/2000/svg",
292
81
  width: "24",
293
82
  height: "24",
294
83
  viewBox: "0 0 24 24"
295
- }, /*#__PURE__*/React.createElement("path", {
84
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
296
85
  fill: color,
297
86
  fillRule: "evenodd",
298
87
  d: "M18.404 5.505a9.457 9.457 0 012.02 2.96 8.587 8.587 0 01.715 3.449 8.665 8.665 0 01-1.245 4.53 9.282 9.282 0 01-3.347 3.307 8.894 8.894 0 01-4.552 1.225 8.835 8.835 0 01-4.327-1.102l-4.817 1.265 1.307-4.694a8.775 8.775 0 01-1.225-4.531 8.77 8.77 0 011.225-4.531 9.17 9.17 0 013.306-3.307 8.781 8.781 0 014.531-1.224c1.198 0 2.347.23 3.45.693a9.515 9.515 0 012.959 1.96zm-6.409 13.96c1.36 0 2.626-.34 3.797-1.02a7.75 7.75 0 002.796-2.756 7.202 7.202 0 001.04-3.775c0-.98-.203-1.933-.612-2.858a8.088 8.088 0 00-1.694-2.47 7.565 7.565 0 00-2.449-1.653 7.405 7.405 0 00-2.878-.571c-1.36 0-2.62.34-3.776 1.02a7.646 7.646 0 00-2.755 2.756 7.316 7.316 0 00-1.02 3.776c0 1.442.394 2.775 1.183 4l.164.286-.776 2.775 2.857-.734.286.163a7.275 7.275 0 003.837 1.061zm4.123-5.674l.123.082c.19.082.299.15.326.204.027.054.034.19.02.408a2.11 2.11 0 01-.163.674c-.095.231-.313.462-.653.694-.34.231-.633.36-.878.388-.38.054-.748.054-1.102 0-.408-.082-.952-.273-1.632-.572-1.388-.599-2.654-1.714-3.797-3.347l-.081-.082c-.6-.843-.898-1.62-.898-2.327 0-.707.244-1.32.734-1.837l.041-.04c.19-.19.395-.286.612-.286h.49c.11 0 .198.02.266.061.068.041.129.143.183.306l.694 1.674c.082.163.095.3.041.408a2.832 2.832 0 01-.53.735.917.917 0 00-.205.265c-.027.068 0 .143.082.225.38.707.83 1.265 1.347 1.673.381.3.952.64 1.714 1.02.218.11.381.096.49-.04.354-.408.599-.707.735-.898.054-.109.123-.163.204-.163.082 0 .177.013.286.04.218.082.735.327 1.551.735z"
299
88
  }));
300
89
  };
301
90
  WhatsApp.propTypes = {
302
- color: PropTypes.string
91
+ color: PropTypes__default["default"].string
303
92
  };
304
93
 
305
94
  var getSocialIcons = function getSocialIcons(color, iconType) {
306
95
  switch (iconType) {
307
96
  case "plain-color-svg":
308
97
  return {
309
- facebook: /*#__PURE__*/React.createElement(Facebook, {
98
+ facebook: /*#__PURE__*/React__default["default"].createElement(Facebook, {
310
99
  key: iconType
311
100
  }),
312
- twitter: /*#__PURE__*/React.createElement(Twitter, {
101
+ twitter: /*#__PURE__*/React__default["default"].createElement(Twitter, {
313
102
  key: iconType
314
103
  }),
315
- linkedin: /*#__PURE__*/React.createElement(LinkedIn, {
104
+ linkedin: /*#__PURE__*/React__default["default"].createElement(LinkedIn, {
316
105
  key: iconType
317
106
  }),
318
- whatsapp: /*#__PURE__*/React.createElement(WhatsApp, {
107
+ whatsapp: /*#__PURE__*/React__default["default"].createElement(WhatsApp, {
319
108
  key: iconType
320
109
  })
321
110
  };
322
111
 
323
112
  default:
324
113
  return {
325
- facebook: /*#__PURE__*/React.createElement(Facebook, {
114
+ facebook: /*#__PURE__*/React__default["default"].createElement(Facebook, {
326
115
  color: color,
327
116
  key: iconType
328
117
  }),
329
- twitter: /*#__PURE__*/React.createElement(Twitter, {
118
+ twitter: /*#__PURE__*/React__default["default"].createElement(Twitter, {
330
119
  color: color,
331
120
  key: iconType
332
121
  }),
333
- linkedin: /*#__PURE__*/React.createElement(LinkedIn, {
122
+ linkedin: /*#__PURE__*/React__default["default"].createElement(LinkedIn, {
334
123
  color: color,
335
124
  key: iconType
336
125
  }),
337
- whatsapp: /*#__PURE__*/React.createElement(WhatsApp, {
126
+ whatsapp: /*#__PURE__*/React__default["default"].createElement(WhatsApp, {
338
127
  color: color,
339
128
  key: iconType
340
129
  })
@@ -390,2553 +179,177 @@ var socialShareData = function socialShareData(_ref) {
390
179
  var CloseIcon = function CloseIcon(_ref) {
391
180
  var _ref$color = _ref.color,
392
181
  color = _ref$color === void 0 ? "#333" : _ref$color;
393
- return /*#__PURE__*/React.createElement("svg", {
182
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
394
183
  xmlns: "http://www.w3.org/2000/svg",
395
184
  width: "24",
396
185
  height: "24",
397
186
  viewBox: "0 0 24 24"
398
- }, /*#__PURE__*/React.createElement("g", {
187
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
399
188
  fill: "none",
400
189
  stroke: color,
401
190
  strokeLinecap: "square",
402
191
  strokeWidth: "2"
403
- }, /*#__PURE__*/React.createElement("path", {
192
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
404
193
  d: "M16.95 6.914l-9.9 9.9M16.95 17.107l-9.9-9.9"
405
194
  })));
406
195
  };
407
196
  CloseIcon.propTypes = {
408
- color: PropTypes.string
197
+ color: PropTypes__default["default"].string
409
198
  };
410
199
 
411
- /**
412
- * Copyright (c) 2014-present, Facebook, Inc.
413
- *
414
- * This source code is licensed under the MIT license found in the
415
- * LICENSE file in the root directory of this source tree.
416
- */
417
-
418
- createCommonjsModule(function (module) {
419
- var runtime = (function (exports) {
420
-
421
- var Op = Object.prototype;
422
- var hasOwn = Op.hasOwnProperty;
423
- var undefined$1; // More compressible than void 0.
424
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
425
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
426
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
427
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
428
-
429
- function define(obj, key, value) {
430
- Object.defineProperty(obj, key, {
431
- value: value,
432
- enumerable: true,
433
- configurable: true,
434
- writable: true
435
- });
436
- return obj[key];
437
- }
438
- try {
439
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
440
- define({}, "");
441
- } catch (err) {
442
- define = function(obj, key, value) {
443
- return obj[key] = value;
444
- };
445
- }
446
-
447
- function wrap(innerFn, outerFn, self, tryLocsList) {
448
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
449
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
450
- var generator = Object.create(protoGenerator.prototype);
451
- var context = new Context(tryLocsList || []);
452
-
453
- // The ._invoke method unifies the implementations of the .next,
454
- // .throw, and .return methods.
455
- generator._invoke = makeInvokeMethod(innerFn, self, context);
456
-
457
- return generator;
458
- }
459
- exports.wrap = wrap;
460
-
461
- // Try/catch helper to minimize deoptimizations. Returns a completion
462
- // record like context.tryEntries[i].completion. This interface could
463
- // have been (and was previously) designed to take a closure to be
464
- // invoked without arguments, but in all the cases we care about we
465
- // already have an existing method we want to call, so there's no need
466
- // to create a new function object. We can even get away with assuming
467
- // the method takes exactly one argument, since that happens to be true
468
- // in every case, so we don't have to touch the arguments object. The
469
- // only additional allocation required is the completion record, which
470
- // has a stable shape and so hopefully should be cheap to allocate.
471
- function tryCatch(fn, obj, arg) {
472
- try {
473
- return { type: "normal", arg: fn.call(obj, arg) };
474
- } catch (err) {
475
- return { type: "throw", arg: err };
476
- }
477
- }
478
-
479
- var GenStateSuspendedStart = "suspendedStart";
480
- var GenStateSuspendedYield = "suspendedYield";
481
- var GenStateExecuting = "executing";
482
- var GenStateCompleted = "completed";
483
-
484
- // Returning this object from the innerFn has the same effect as
485
- // breaking out of the dispatch switch statement.
486
- var ContinueSentinel = {};
487
-
488
- // Dummy constructor functions that we use as the .constructor and
489
- // .constructor.prototype properties for functions that return Generator
490
- // objects. For full spec compliance, you may wish to configure your
491
- // minifier not to mangle the names of these two functions.
492
- function Generator() {}
493
- function GeneratorFunction() {}
494
- function GeneratorFunctionPrototype() {}
495
-
496
- // This is a polyfill for %IteratorPrototype% for environments that
497
- // don't natively support it.
498
- var IteratorPrototype = {};
499
- define(IteratorPrototype, iteratorSymbol, function () {
500
- return this;
501
- });
502
-
503
- var getProto = Object.getPrototypeOf;
504
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
505
- if (NativeIteratorPrototype &&
506
- NativeIteratorPrototype !== Op &&
507
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
508
- // This environment has a native %IteratorPrototype%; use it instead
509
- // of the polyfill.
510
- IteratorPrototype = NativeIteratorPrototype;
511
- }
512
-
513
- var Gp = GeneratorFunctionPrototype.prototype =
514
- Generator.prototype = Object.create(IteratorPrototype);
515
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
516
- define(Gp, "constructor", GeneratorFunctionPrototype);
517
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
518
- GeneratorFunction.displayName = define(
519
- GeneratorFunctionPrototype,
520
- toStringTagSymbol,
521
- "GeneratorFunction"
522
- );
523
-
524
- // Helper for defining the .next, .throw, and .return methods of the
525
- // Iterator interface in terms of a single ._invoke method.
526
- function defineIteratorMethods(prototype) {
527
- ["next", "throw", "return"].forEach(function(method) {
528
- define(prototype, method, function(arg) {
529
- return this._invoke(method, arg);
530
- });
531
- });
532
- }
533
-
534
- exports.isGeneratorFunction = function(genFun) {
535
- var ctor = typeof genFun === "function" && genFun.constructor;
536
- return ctor
537
- ? ctor === GeneratorFunction ||
538
- // For the native GeneratorFunction constructor, the best we can
539
- // do is to check its .name property.
540
- (ctor.displayName || ctor.name) === "GeneratorFunction"
541
- : false;
542
- };
543
-
544
- exports.mark = function(genFun) {
545
- if (Object.setPrototypeOf) {
546
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
547
- } else {
548
- genFun.__proto__ = GeneratorFunctionPrototype;
549
- define(genFun, toStringTagSymbol, "GeneratorFunction");
550
- }
551
- genFun.prototype = Object.create(Gp);
552
- return genFun;
553
- };
554
-
555
- // Within the body of any async function, `await x` is transformed to
556
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
557
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
558
- // meant to be awaited.
559
- exports.awrap = function(arg) {
560
- return { __await: arg };
200
+ var hexToRGB = function hexToRGB(hex) {
201
+ var r = parseInt(hex.slice(1, 3), 16);
202
+ var g = parseInt(hex.slice(3, 5), 16);
203
+ var b = parseInt(hex.slice(5, 7), 16);
204
+ return {
205
+ r: r,
206
+ g: g,
207
+ b: b
561
208
  };
209
+ };
210
+ var getLuminanceOfColor = function getLuminanceOfColor(hex) {
211
+ var _hexToRGB = hexToRGB(hex),
212
+ r = _hexToRGB.r,
213
+ g = _hexToRGB.g,
214
+ b = _hexToRGB.b;
562
215
 
563
- function AsyncIterator(generator, PromiseImpl) {
564
- function invoke(method, arg, resolve, reject) {
565
- var record = tryCatch(generator[method], generator, arg);
566
- if (record.type === "throw") {
567
- reject(record.arg);
568
- } else {
569
- var result = record.arg;
570
- var value = result.value;
571
- if (value &&
572
- typeof value === "object" &&
573
- hasOwn.call(value, "__await")) {
574
- return PromiseImpl.resolve(value.__await).then(function(value) {
575
- invoke("next", value, resolve, reject);
576
- }, function(err) {
577
- invoke("throw", err, resolve, reject);
578
- });
579
- }
580
-
581
- return PromiseImpl.resolve(value).then(function(unwrapped) {
582
- // When a yielded Promise is resolved, its final value becomes
583
- // the .value of the Promise<{value,done}> result for the
584
- // current iteration.
585
- result.value = unwrapped;
586
- resolve(result);
587
- }, function(error) {
588
- // If a rejected Promise was yielded, throw the rejection back
589
- // into the async generator function so it can be handled there.
590
- return invoke("throw", error, resolve, reject);
591
- });
592
- }
593
- }
594
-
595
- var previousPromise;
596
-
597
- function enqueue(method, arg) {
598
- function callInvokeWithMethodAndArg() {
599
- return new PromiseImpl(function(resolve, reject) {
600
- invoke(method, arg, resolve, reject);
601
- });
602
- }
603
-
604
- return previousPromise =
605
- // If enqueue has been called before, then we want to wait until
606
- // all previous Promises have been resolved before calling invoke,
607
- // so that results are always delivered in the correct order. If
608
- // enqueue has not been called before, then it is important to
609
- // call invoke immediately, without waiting on a callback to fire,
610
- // so that the async generator function has the opportunity to do
611
- // any necessary setup in a predictable way. This predictability
612
- // is why the Promise constructor synchronously invokes its
613
- // executor callback, and why async functions synchronously
614
- // execute code before the first await. Since we implement simple
615
- // async functions in terms of async generators, it is especially
616
- // important to get this right, even though it requires care.
617
- previousPromise ? previousPromise.then(
618
- callInvokeWithMethodAndArg,
619
- // Avoid propagating failures to Promises returned by later
620
- // invocations of the iterator.
621
- callInvokeWithMethodAndArg
622
- ) : callInvokeWithMethodAndArg();
623
- }
216
+ return r * 0.299 + g * 0.587 + b * 0.114;
217
+ };
218
+ var rgbToHex = function rgbToHex() {
219
+ var color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "rgba(255, 255, 255, 0)";
220
+ var rgba = color.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);
221
+ return rgba && rgba.length === 4 ? "#" + ("0" + parseInt(rgba[1], 10).toString(16)).slice(-2) + ("0" + parseInt(rgba[2], 10).toString(16)).slice(-2) + ("0" + parseInt(rgba[3], 10).toString(16)).slice(-2) : color;
222
+ };
223
+ var getTextColor = function getTextColor() {
224
+ var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "rgb(255,255,255)";
225
+ var isRegexCheck = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(theme);
226
+ var getHexValue = !isRegexCheck ? rgbToHex(theme) : theme;
227
+ var textColor = getLuminanceOfColor(getHexValue) < 155 ? "light" : "dark";
228
+ return textColor;
229
+ };
230
+ PropTypes__default["default"].shape({
231
+ "sketches-host": PropTypes__default["default"].string,
232
+ "cdn-name": PropTypes__default["default"].string,
233
+ "cdn-image": PropTypes__default["default"].string
234
+ });
235
+ PropTypes__default["default"].shape({
236
+ headline: PropTypes__default["default"].string,
237
+ "last-published-at": PropTypes__default["default"].number,
238
+ subheadline: PropTypes__default["default"].string
239
+ });
624
240
 
625
- // Define the unified helper method that is used to implement .next,
626
- // .throw, and .return (see defineIteratorMethods).
627
- this._invoke = enqueue;
241
+ var _styleModuleImportMap$1 = {
242
+ "./social-share-popup.m.css": {
243
+ "share-popup-wrapper": "social-share-popup-m_share-popup-wrapper__GEJqD",
244
+ "light": "social-share-popup-m_light__gQmxf",
245
+ "dark": "social-share-popup-m_dark__26Igp",
246
+ "share-popup": "social-share-popup-m_share-popup__QRt3l social-share-popup-m_share-popup-wrapper__GEJqD",
247
+ "social-wrapper": "social-share-popup-m_social-wrapper__1lPzr",
248
+ "social-icon-wrapper": "social-share-popup-m_social-icon-wrapper__36jyV",
249
+ "wrapper": "social-share-popup-m_wrapper__3Ytce",
250
+ "top-bar": "social-share-popup-m_top-bar__174Um",
251
+ "share-text": "social-share-popup-m_share-text__19E-F",
252
+ "close": "social-share-popup-m_close__3k-Hj",
253
+ "social-icon": "social-share-popup-m_social-icon__2a4nT",
254
+ "social-text": "social-share-popup-m_social-text__1QPXb"
628
255
  }
256
+ };
629
257
 
630
- defineIteratorMethods(AsyncIterator.prototype);
631
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
632
- return this;
633
- });
634
- exports.AsyncIterator = AsyncIterator;
635
-
636
- // Note that simple async functions are implemented on top of
637
- // AsyncIterator objects; they just return a Promise for the value of
638
- // the final result produced by the iterator.
639
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
640
- if (PromiseImpl === void 0) PromiseImpl = Promise;
641
-
642
- var iter = new AsyncIterator(
643
- wrap(innerFn, outerFn, self, tryLocsList),
644
- PromiseImpl
645
- );
258
+ var popupSocialShareItem = function popupSocialShareItem(url, icon, text, index) {
259
+ return url ? /*#__PURE__*/React__default["default"].createElement("li", {
260
+ className: "social-share-popup-m_social-icon-wrapper__36jyV",
261
+ "data-testid": text,
262
+ key: "popup-item-".concat(index)
263
+ }, /*#__PURE__*/React__default["default"].createElement("a", {
264
+ href: url,
265
+ target: "_blank",
266
+ rel: "noopener noreferrer",
267
+ className: "social-share-popup-m_social-wrapper__1lPzr",
268
+ "aria-label": "social-icon"
269
+ }, icon, /*#__PURE__*/React__default["default"].createElement("span", {
270
+ className: "social-share-popup-m_social-text__1QPXb"
271
+ }, text))) : null;
272
+ };
646
273
 
647
- return exports.isGeneratorFunction(outerFn)
648
- ? iter // If outerFn is a generator, return the full iterator.
649
- : iter.next().then(function(result) {
650
- return result.done ? result.value : iter.next();
651
- });
274
+ var SocialSharePopup = function SocialSharePopup(_ref) {
275
+ var _ref$fbUrl = _ref.fbUrl,
276
+ fbUrl = _ref$fbUrl === void 0 ? "" : _ref$fbUrl,
277
+ _ref$twitterUrl = _ref.twitterUrl,
278
+ twitterUrl = _ref$twitterUrl === void 0 ? "" : _ref$twitterUrl,
279
+ _ref$linkedinUrl = _ref.linkedinUrl,
280
+ linkedinUrl = _ref$linkedinUrl === void 0 ? "" : _ref$linkedinUrl,
281
+ _ref$whatsappUrl = _ref.whatsappUrl,
282
+ whatsappUrl = _ref$whatsappUrl === void 0 ? "" : _ref$whatsappUrl,
283
+ theme = _ref.theme,
284
+ _ref$closePopup = _ref.closePopup,
285
+ closePopup = _ref$closePopup === void 0 ? "" : _ref$closePopup,
286
+ _ref$iconType = _ref.iconType,
287
+ iconType = _ref$iconType === void 0 ? "plain-color-svg" : _ref$iconType;
288
+ var textColor = getTextColor(theme);
289
+ var iconColor = textColor === "dark" ? "#000000" : "#ffffff";
290
+ var options = {
291
+ fbUrl: fbUrl,
292
+ twitterUrl: twitterUrl,
293
+ linkedinUrl: linkedinUrl,
294
+ whatsappUrl: whatsappUrl,
295
+ iconColor: iconColor,
296
+ iconType: iconType
652
297
  };
653
-
654
- function makeInvokeMethod(innerFn, self, context) {
655
- var state = GenStateSuspendedStart;
656
-
657
- return function invoke(method, arg) {
658
- if (state === GenStateExecuting) {
659
- throw new Error("Generator is already running");
660
- }
661
-
662
- if (state === GenStateCompleted) {
663
- if (method === "throw") {
664
- throw arg;
665
- }
666
-
667
- // Be forgiving, per 25.3.3.3.3 of the spec:
668
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
669
- return doneResult();
670
- }
671
-
672
- context.method = method;
673
- context.arg = arg;
674
-
675
- while (true) {
676
- var delegate = context.delegate;
677
- if (delegate) {
678
- var delegateResult = maybeInvokeDelegate(delegate, context);
679
- if (delegateResult) {
680
- if (delegateResult === ContinueSentinel) continue;
681
- return delegateResult;
682
- }
683
- }
684
-
685
- if (context.method === "next") {
686
- // Setting context._sent for legacy support of Babel's
687
- // function.sent implementation.
688
- context.sent = context._sent = context.arg;
689
-
690
- } else if (context.method === "throw") {
691
- if (state === GenStateSuspendedStart) {
692
- state = GenStateCompleted;
693
- throw context.arg;
694
- }
695
-
696
- context.dispatchException(context.arg);
697
-
698
- } else if (context.method === "return") {
699
- context.abrupt("return", context.arg);
700
- }
701
-
702
- state = GenStateExecuting;
703
-
704
- var record = tryCatch(innerFn, self, context);
705
- if (record.type === "normal") {
706
- // If an exception is thrown from innerFn, we leave state ===
707
- // GenStateExecuting and loop back for another invocation.
708
- state = context.done
709
- ? GenStateCompleted
710
- : GenStateSuspendedYield;
711
-
712
- if (record.arg === ContinueSentinel) {
713
- continue;
714
- }
715
-
716
- return {
717
- value: record.arg,
718
- done: context.done
719
- };
720
-
721
- } else if (record.type === "throw") {
722
- state = GenStateCompleted;
723
- // Dispatch the exception by looping back around to the
724
- // context.dispatchException(context.arg) call above.
725
- context.method = "throw";
726
- context.arg = record.arg;
727
- }
728
- }
729
- };
730
- }
731
-
732
- // Call delegate.iterator[context.method](context.arg) and handle the
733
- // result, either by returning a { value, done } result from the
734
- // delegate iterator, or by modifying context.method and context.arg,
735
- // setting context.delegate to null, and returning the ContinueSentinel.
736
- function maybeInvokeDelegate(delegate, context) {
737
- var method = delegate.iterator[context.method];
738
- if (method === undefined$1) {
739
- // A .throw or .return when the delegate iterator has no .throw
740
- // method always terminates the yield* loop.
741
- context.delegate = null;
742
-
743
- if (context.method === "throw") {
744
- // Note: ["return"] must be used for ES3 parsing compatibility.
745
- if (delegate.iterator["return"]) {
746
- // If the delegate iterator has a return method, give it a
747
- // chance to clean up.
748
- context.method = "return";
749
- context.arg = undefined$1;
750
- maybeInvokeDelegate(delegate, context);
751
-
752
- if (context.method === "throw") {
753
- // If maybeInvokeDelegate(context) changed context.method from
754
- // "return" to "throw", let that override the TypeError below.
755
- return ContinueSentinel;
756
- }
757
- }
758
-
759
- context.method = "throw";
760
- context.arg = new TypeError(
761
- "The iterator does not provide a 'throw' method");
762
- }
763
-
764
- return ContinueSentinel;
765
- }
766
-
767
- var record = tryCatch(method, delegate.iterator, context.arg);
768
-
769
- if (record.type === "throw") {
770
- context.method = "throw";
771
- context.arg = record.arg;
772
- context.delegate = null;
773
- return ContinueSentinel;
774
- }
775
-
776
- var info = record.arg;
777
-
778
- if (! info) {
779
- context.method = "throw";
780
- context.arg = new TypeError("iterator result is not an object");
781
- context.delegate = null;
782
- return ContinueSentinel;
783
- }
784
-
785
- if (info.done) {
786
- // Assign the result of the finished delegate to the temporary
787
- // variable specified by delegate.resultName (see delegateYield).
788
- context[delegate.resultName] = info.value;
789
-
790
- // Resume execution at the desired location (see delegateYield).
791
- context.next = delegate.nextLoc;
792
-
793
- // If context.method was "throw" but the delegate handled the
794
- // exception, let the outer generator proceed normally. If
795
- // context.method was "next", forget context.arg since it has been
796
- // "consumed" by the delegate iterator. If context.method was
797
- // "return", allow the original .return call to continue in the
798
- // outer generator.
799
- if (context.method !== "return") {
800
- context.method = "next";
801
- context.arg = undefined$1;
802
- }
803
-
804
- } else {
805
- // Re-yield the result returned by the delegate method.
806
- return info;
807
- }
808
-
809
- // The delegate iterator is finished, so forget it and continue with
810
- // the outer generator.
811
- context.delegate = null;
812
- return ContinueSentinel;
813
- }
814
-
815
- // Define Generator.prototype.{next,throw,return} in terms of the
816
- // unified ._invoke helper method.
817
- defineIteratorMethods(Gp);
818
-
819
- define(Gp, toStringTagSymbol, "Generator");
820
-
821
- // A Generator should always return itself as the iterator object when the
822
- // @@iterator function is called on it. Some browsers' implementations of the
823
- // iterator prototype chain incorrectly implement this, causing the Generator
824
- // object to not be returned from this call. This ensures that doesn't happen.
825
- // See https://github.com/facebook/regenerator/issues/274 for more details.
826
- define(Gp, iteratorSymbol, function() {
827
- return this;
828
- });
829
-
830
- define(Gp, "toString", function() {
831
- return "[object Generator]";
832
- });
833
-
834
- function pushTryEntry(locs) {
835
- var entry = { tryLoc: locs[0] };
836
-
837
- if (1 in locs) {
838
- entry.catchLoc = locs[1];
839
- }
840
-
841
- if (2 in locs) {
842
- entry.finallyLoc = locs[2];
843
- entry.afterLoc = locs[3];
844
- }
845
-
846
- this.tryEntries.push(entry);
847
- }
848
-
849
- function resetTryEntry(entry) {
850
- var record = entry.completion || {};
851
- record.type = "normal";
852
- delete record.arg;
853
- entry.completion = record;
854
- }
855
-
856
- function Context(tryLocsList) {
857
- // The root entry object (effectively a try statement without a catch
858
- // or a finally block) gives us a place to store values thrown from
859
- // locations where there is no enclosing try statement.
860
- this.tryEntries = [{ tryLoc: "root" }];
861
- tryLocsList.forEach(pushTryEntry, this);
862
- this.reset(true);
863
- }
864
-
865
- exports.keys = function(object) {
866
- var keys = [];
867
- for (var key in object) {
868
- keys.push(key);
869
- }
870
- keys.reverse();
871
-
872
- // Rather than returning an object with a next method, we keep
873
- // things simple and return the next function itself.
874
- return function next() {
875
- while (keys.length) {
876
- var key = keys.pop();
877
- if (key in object) {
878
- next.value = key;
879
- next.done = false;
880
- return next;
881
- }
882
- }
883
-
884
- // To avoid creating an additional object, we just hang the .value
885
- // and .done properties off the next function object itself. This
886
- // also ensures that the minifier will not anonymize the function.
887
- next.done = true;
888
- return next;
889
- };
890
- };
891
-
892
- function values(iterable) {
893
- if (iterable) {
894
- var iteratorMethod = iterable[iteratorSymbol];
895
- if (iteratorMethod) {
896
- return iteratorMethod.call(iterable);
897
- }
898
-
899
- if (typeof iterable.next === "function") {
900
- return iterable;
901
- }
902
-
903
- if (!isNaN(iterable.length)) {
904
- var i = -1, next = function next() {
905
- while (++i < iterable.length) {
906
- if (hasOwn.call(iterable, i)) {
907
- next.value = iterable[i];
908
- next.done = false;
909
- return next;
910
- }
911
- }
912
-
913
- next.value = undefined$1;
914
- next.done = true;
915
-
916
- return next;
917
- };
918
-
919
- return next.next = next;
920
- }
921
- }
922
-
923
- // Return an iterator with no values.
924
- return { next: doneResult };
925
- }
926
- exports.values = values;
927
-
928
- function doneResult() {
929
- return { value: undefined$1, done: true };
930
- }
931
-
932
- Context.prototype = {
933
- constructor: Context,
934
-
935
- reset: function(skipTempReset) {
936
- this.prev = 0;
937
- this.next = 0;
938
- // Resetting context._sent for legacy support of Babel's
939
- // function.sent implementation.
940
- this.sent = this._sent = undefined$1;
941
- this.done = false;
942
- this.delegate = null;
943
-
944
- this.method = "next";
945
- this.arg = undefined$1;
946
-
947
- this.tryEntries.forEach(resetTryEntry);
948
-
949
- if (!skipTempReset) {
950
- for (var name in this) {
951
- // Not sure about the optimal order of these conditions:
952
- if (name.charAt(0) === "t" &&
953
- hasOwn.call(this, name) &&
954
- !isNaN(+name.slice(1))) {
955
- this[name] = undefined$1;
956
- }
957
- }
958
- }
959
- },
960
-
961
- stop: function() {
962
- this.done = true;
963
-
964
- var rootEntry = this.tryEntries[0];
965
- var rootRecord = rootEntry.completion;
966
- if (rootRecord.type === "throw") {
967
- throw rootRecord.arg;
968
- }
969
-
970
- return this.rval;
971
- },
972
-
973
- dispatchException: function(exception) {
974
- if (this.done) {
975
- throw exception;
976
- }
977
-
978
- var context = this;
979
- function handle(loc, caught) {
980
- record.type = "throw";
981
- record.arg = exception;
982
- context.next = loc;
983
-
984
- if (caught) {
985
- // If the dispatched exception was caught by a catch block,
986
- // then let that catch block handle the exception normally.
987
- context.method = "next";
988
- context.arg = undefined$1;
989
- }
990
-
991
- return !! caught;
992
- }
993
-
994
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
995
- var entry = this.tryEntries[i];
996
- var record = entry.completion;
997
-
998
- if (entry.tryLoc === "root") {
999
- // Exception thrown outside of any try block that could handle
1000
- // it, so set the completion value of the entire function to
1001
- // throw the exception.
1002
- return handle("end");
1003
- }
1004
-
1005
- if (entry.tryLoc <= this.prev) {
1006
- var hasCatch = hasOwn.call(entry, "catchLoc");
1007
- var hasFinally = hasOwn.call(entry, "finallyLoc");
1008
-
1009
- if (hasCatch && hasFinally) {
1010
- if (this.prev < entry.catchLoc) {
1011
- return handle(entry.catchLoc, true);
1012
- } else if (this.prev < entry.finallyLoc) {
1013
- return handle(entry.finallyLoc);
1014
- }
1015
-
1016
- } else if (hasCatch) {
1017
- if (this.prev < entry.catchLoc) {
1018
- return handle(entry.catchLoc, true);
1019
- }
1020
-
1021
- } else if (hasFinally) {
1022
- if (this.prev < entry.finallyLoc) {
1023
- return handle(entry.finallyLoc);
1024
- }
1025
-
1026
- } else {
1027
- throw new Error("try statement without catch or finally");
1028
- }
1029
- }
1030
- }
1031
- },
1032
-
1033
- abrupt: function(type, arg) {
1034
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1035
- var entry = this.tryEntries[i];
1036
- if (entry.tryLoc <= this.prev &&
1037
- hasOwn.call(entry, "finallyLoc") &&
1038
- this.prev < entry.finallyLoc) {
1039
- var finallyEntry = entry;
1040
- break;
1041
- }
1042
- }
1043
-
1044
- if (finallyEntry &&
1045
- (type === "break" ||
1046
- type === "continue") &&
1047
- finallyEntry.tryLoc <= arg &&
1048
- arg <= finallyEntry.finallyLoc) {
1049
- // Ignore the finally entry if control is not jumping to a
1050
- // location outside the try/catch block.
1051
- finallyEntry = null;
1052
- }
1053
-
1054
- var record = finallyEntry ? finallyEntry.completion : {};
1055
- record.type = type;
1056
- record.arg = arg;
1057
-
1058
- if (finallyEntry) {
1059
- this.method = "next";
1060
- this.next = finallyEntry.finallyLoc;
1061
- return ContinueSentinel;
1062
- }
1063
-
1064
- return this.complete(record);
1065
- },
1066
-
1067
- complete: function(record, afterLoc) {
1068
- if (record.type === "throw") {
1069
- throw record.arg;
1070
- }
1071
-
1072
- if (record.type === "break" ||
1073
- record.type === "continue") {
1074
- this.next = record.arg;
1075
- } else if (record.type === "return") {
1076
- this.rval = this.arg = record.arg;
1077
- this.method = "return";
1078
- this.next = "end";
1079
- } else if (record.type === "normal" && afterLoc) {
1080
- this.next = afterLoc;
1081
- }
1082
-
1083
- return ContinueSentinel;
1084
- },
1085
-
1086
- finish: function(finallyLoc) {
1087
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1088
- var entry = this.tryEntries[i];
1089
- if (entry.finallyLoc === finallyLoc) {
1090
- this.complete(entry.completion, entry.afterLoc);
1091
- resetTryEntry(entry);
1092
- return ContinueSentinel;
1093
- }
1094
- }
1095
- },
1096
-
1097
- "catch": function(tryLoc) {
1098
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1099
- var entry = this.tryEntries[i];
1100
- if (entry.tryLoc === tryLoc) {
1101
- var record = entry.completion;
1102
- if (record.type === "throw") {
1103
- var thrown = record.arg;
1104
- resetTryEntry(entry);
1105
- }
1106
- return thrown;
1107
- }
1108
- }
1109
-
1110
- // The context.catch method must only be called with a location
1111
- // argument that corresponds to a known catch block.
1112
- throw new Error("illegal catch attempt");
1113
- },
1114
-
1115
- delegateYield: function(iterable, resultName, nextLoc) {
1116
- this.delegate = {
1117
- iterator: values(iterable),
1118
- resultName: resultName,
1119
- nextLoc: nextLoc
1120
- };
1121
-
1122
- if (this.method === "next") {
1123
- // Deliberately forget the last sent value so that we don't
1124
- // accidentally pass it on to the delegate.
1125
- this.arg = undefined$1;
1126
- }
1127
-
1128
- return ContinueSentinel;
1129
- }
1130
- };
1131
-
1132
- // Regardless of whether this script is executing as a CommonJS module
1133
- // or not, return the runtime object so that we can declare the variable
1134
- // regeneratorRuntime in the outer scope, which allows this module to be
1135
- // injected easily by `bin/regenerator --include-runtime script.js`.
1136
- return exports;
1137
-
1138
- }(
1139
- // If this script is executing as a CommonJS module, use module.exports
1140
- // as the regeneratorRuntime namespace. Otherwise create a new empty
1141
- // object. Either way, the resulting object will be used to initialize
1142
- // the regeneratorRuntime variable at the top of this file.
1143
- module.exports
1144
- ));
1145
-
1146
- try {
1147
- regeneratorRuntime = runtime;
1148
- } catch (accidentalStrictMode) {
1149
- // This module should not be running in strict mode, so the above
1150
- // assignment should always work unless something is misconfigured. Just
1151
- // in case runtime.js accidentally runs in strict mode, in modern engines
1152
- // we can explicitly access globalThis. In older engines we can escape
1153
- // strict mode using a global Function call. This could conceivably fail
1154
- // if a Content Security Policy forbids using Function, but in that case
1155
- // the proper solution is to fix the accidental strict mode problem. If
1156
- // you've misconfigured your bundler to force strict mode and applied a
1157
- // CSP to forbid Function, and you're not willing to fix either of those
1158
- // problems, please detail your unique predicament in a GitHub issue.
1159
- if (typeof globalThis === "object") {
1160
- globalThis.regeneratorRuntime = runtime;
1161
- } else {
1162
- Function("r", "regeneratorRuntime = r")(runtime);
1163
- }
1164
- }
1165
- });
1166
-
1167
- /**
1168
- * Checks if `value` is classified as an `Array` object.
1169
- *
1170
- * @static
1171
- * @memberOf _
1172
- * @since 0.1.0
1173
- * @category Lang
1174
- * @param {*} value The value to check.
1175
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1176
- * @example
1177
- *
1178
- * _.isArray([1, 2, 3]);
1179
- * // => true
1180
- *
1181
- * _.isArray(document.body.children);
1182
- * // => false
1183
- *
1184
- * _.isArray('abc');
1185
- * // => false
1186
- *
1187
- * _.isArray(_.noop);
1188
- * // => false
1189
- */
1190
- var isArray = Array.isArray;
1191
-
1192
- var isArray_1 = isArray;
1193
-
1194
- /** Detect free variable `global` from Node.js. */
1195
-
1196
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
1197
-
1198
- var _freeGlobal = freeGlobal;
1199
-
1200
- /** Detect free variable `self`. */
1201
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
1202
-
1203
- /** Used as a reference to the global object. */
1204
- var root = _freeGlobal || freeSelf || Function('return this')();
1205
-
1206
- var _root = root;
1207
-
1208
- /** Built-in value references. */
1209
- var Symbol$1 = _root.Symbol;
1210
-
1211
- var _Symbol = Symbol$1;
1212
-
1213
- /** Used for built-in method references. */
1214
- var objectProto$4 = Object.prototype;
1215
-
1216
- /** Used to check objects for own properties. */
1217
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
1218
-
1219
- /**
1220
- * Used to resolve the
1221
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1222
- * of values.
1223
- */
1224
- var nativeObjectToString$1 = objectProto$4.toString;
1225
-
1226
- /** Built-in value references. */
1227
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
1228
-
1229
- /**
1230
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
1231
- *
1232
- * @private
1233
- * @param {*} value The value to query.
1234
- * @returns {string} Returns the raw `toStringTag`.
1235
- */
1236
- function getRawTag(value) {
1237
- var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
1238
- tag = value[symToStringTag$1];
1239
-
1240
- try {
1241
- value[symToStringTag$1] = undefined;
1242
- var unmasked = true;
1243
- } catch (e) {}
1244
-
1245
- var result = nativeObjectToString$1.call(value);
1246
- if (unmasked) {
1247
- if (isOwn) {
1248
- value[symToStringTag$1] = tag;
1249
- } else {
1250
- delete value[symToStringTag$1];
1251
- }
1252
- }
1253
- return result;
1254
- }
1255
-
1256
- var _getRawTag = getRawTag;
1257
-
1258
- /** Used for built-in method references. */
1259
- var objectProto$3 = Object.prototype;
1260
-
1261
- /**
1262
- * Used to resolve the
1263
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1264
- * of values.
1265
- */
1266
- var nativeObjectToString = objectProto$3.toString;
1267
-
1268
- /**
1269
- * Converts `value` to a string using `Object.prototype.toString`.
1270
- *
1271
- * @private
1272
- * @param {*} value The value to convert.
1273
- * @returns {string} Returns the converted string.
1274
- */
1275
- function objectToString(value) {
1276
- return nativeObjectToString.call(value);
1277
- }
1278
-
1279
- var _objectToString = objectToString;
1280
-
1281
- /** `Object#toString` result references. */
1282
- var nullTag = '[object Null]',
1283
- undefinedTag = '[object Undefined]';
1284
-
1285
- /** Built-in value references. */
1286
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
1287
-
1288
- /**
1289
- * The base implementation of `getTag` without fallbacks for buggy environments.
1290
- *
1291
- * @private
1292
- * @param {*} value The value to query.
1293
- * @returns {string} Returns the `toStringTag`.
1294
- */
1295
- function baseGetTag(value) {
1296
- if (value == null) {
1297
- return value === undefined ? undefinedTag : nullTag;
1298
- }
1299
- return (symToStringTag && symToStringTag in Object(value))
1300
- ? _getRawTag(value)
1301
- : _objectToString(value);
1302
- }
1303
-
1304
- var _baseGetTag = baseGetTag;
1305
-
1306
- /**
1307
- * Checks if `value` is object-like. A value is object-like if it's not `null`
1308
- * and has a `typeof` result of "object".
1309
- *
1310
- * @static
1311
- * @memberOf _
1312
- * @since 4.0.0
1313
- * @category Lang
1314
- * @param {*} value The value to check.
1315
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
1316
- * @example
1317
- *
1318
- * _.isObjectLike({});
1319
- * // => true
1320
- *
1321
- * _.isObjectLike([1, 2, 3]);
1322
- * // => true
1323
- *
1324
- * _.isObjectLike(_.noop);
1325
- * // => false
1326
- *
1327
- * _.isObjectLike(null);
1328
- * // => false
1329
- */
1330
- function isObjectLike(value) {
1331
- return value != null && typeof value == 'object';
1332
- }
1333
-
1334
- var isObjectLike_1 = isObjectLike;
1335
-
1336
- /** `Object#toString` result references. */
1337
- var symbolTag = '[object Symbol]';
1338
-
1339
- /**
1340
- * Checks if `value` is classified as a `Symbol` primitive or object.
1341
- *
1342
- * @static
1343
- * @memberOf _
1344
- * @since 4.0.0
1345
- * @category Lang
1346
- * @param {*} value The value to check.
1347
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
1348
- * @example
1349
- *
1350
- * _.isSymbol(Symbol.iterator);
1351
- * // => true
1352
- *
1353
- * _.isSymbol('abc');
1354
- * // => false
1355
- */
1356
- function isSymbol(value) {
1357
- return typeof value == 'symbol' ||
1358
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
1359
- }
1360
-
1361
- var isSymbol_1 = isSymbol;
1362
-
1363
- /**
1364
- * Checks if `value` is the
1365
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1366
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1367
- *
1368
- * @static
1369
- * @memberOf _
1370
- * @since 0.1.0
1371
- * @category Lang
1372
- * @param {*} value The value to check.
1373
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1374
- * @example
1375
- *
1376
- * _.isObject({});
1377
- * // => true
1378
- *
1379
- * _.isObject([1, 2, 3]);
1380
- * // => true
1381
- *
1382
- * _.isObject(_.noop);
1383
- * // => true
1384
- *
1385
- * _.isObject(null);
1386
- * // => false
1387
- */
1388
- function isObject(value) {
1389
- var type = typeof value;
1390
- return value != null && (type == 'object' || type == 'function');
1391
- }
1392
-
1393
- var isObject_1 = isObject;
1394
-
1395
- /** `Object#toString` result references. */
1396
- var asyncTag = '[object AsyncFunction]',
1397
- funcTag = '[object Function]',
1398
- genTag = '[object GeneratorFunction]',
1399
- proxyTag = '[object Proxy]';
1400
-
1401
- /**
1402
- * Checks if `value` is classified as a `Function` object.
1403
- *
1404
- * @static
1405
- * @memberOf _
1406
- * @since 0.1.0
1407
- * @category Lang
1408
- * @param {*} value The value to check.
1409
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
1410
- * @example
1411
- *
1412
- * _.isFunction(_);
1413
- * // => true
1414
- *
1415
- * _.isFunction(/abc/);
1416
- * // => false
1417
- */
1418
- function isFunction(value) {
1419
- if (!isObject_1(value)) {
1420
- return false;
1421
- }
1422
- // The use of `Object#toString` avoids issues with the `typeof` operator
1423
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
1424
- var tag = _baseGetTag(value);
1425
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
1426
- }
1427
-
1428
- var isFunction_1 = isFunction;
1429
-
1430
- /** Used to detect overreaching core-js shims. */
1431
- var coreJsData = _root['__core-js_shared__'];
1432
-
1433
- var _coreJsData = coreJsData;
1434
-
1435
- /** Used to detect methods masquerading as native. */
1436
- var maskSrcKey = (function() {
1437
- var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
1438
- return uid ? ('Symbol(src)_1.' + uid) : '';
1439
- }());
1440
-
1441
- /**
1442
- * Checks if `func` has its source masked.
1443
- *
1444
- * @private
1445
- * @param {Function} func The function to check.
1446
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
1447
- */
1448
- function isMasked(func) {
1449
- return !!maskSrcKey && (maskSrcKey in func);
1450
- }
1451
-
1452
- var _isMasked = isMasked;
1453
-
1454
- /** Used for built-in method references. */
1455
- var funcProto$1 = Function.prototype;
1456
-
1457
- /** Used to resolve the decompiled source of functions. */
1458
- var funcToString$1 = funcProto$1.toString;
1459
-
1460
- /**
1461
- * Converts `func` to its source code.
1462
- *
1463
- * @private
1464
- * @param {Function} func The function to convert.
1465
- * @returns {string} Returns the source code.
1466
- */
1467
- function toSource(func) {
1468
- if (func != null) {
1469
- try {
1470
- return funcToString$1.call(func);
1471
- } catch (e) {}
1472
- try {
1473
- return (func + '');
1474
- } catch (e) {}
1475
- }
1476
- return '';
1477
- }
1478
-
1479
- var _toSource = toSource;
1480
-
1481
- /**
1482
- * Used to match `RegExp`
1483
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
1484
- */
1485
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
1486
-
1487
- /** Used to detect host constructors (Safari). */
1488
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
1489
-
1490
- /** Used for built-in method references. */
1491
- var funcProto = Function.prototype,
1492
- objectProto$2 = Object.prototype;
1493
-
1494
- /** Used to resolve the decompiled source of functions. */
1495
- var funcToString = funcProto.toString;
1496
-
1497
- /** Used to check objects for own properties. */
1498
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
1499
-
1500
- /** Used to detect if a method is native. */
1501
- var reIsNative = RegExp('^' +
1502
- funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
1503
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
1504
- );
1505
-
1506
- /**
1507
- * The base implementation of `_.isNative` without bad shim checks.
1508
- *
1509
- * @private
1510
- * @param {*} value The value to check.
1511
- * @returns {boolean} Returns `true` if `value` is a native function,
1512
- * else `false`.
1513
- */
1514
- function baseIsNative(value) {
1515
- if (!isObject_1(value) || _isMasked(value)) {
1516
- return false;
1517
- }
1518
- var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
1519
- return pattern.test(_toSource(value));
1520
- }
1521
-
1522
- var _baseIsNative = baseIsNative;
1523
-
1524
- /**
1525
- * Gets the value at `key` of `object`.
1526
- *
1527
- * @private
1528
- * @param {Object} [object] The object to query.
1529
- * @param {string} key The key of the property to get.
1530
- * @returns {*} Returns the property value.
1531
- */
1532
- function getValue(object, key) {
1533
- return object == null ? undefined : object[key];
1534
- }
1535
-
1536
- var _getValue = getValue;
1537
-
1538
- /**
1539
- * Gets the native function at `key` of `object`.
1540
- *
1541
- * @private
1542
- * @param {Object} object The object to query.
1543
- * @param {string} key The key of the method to get.
1544
- * @returns {*} Returns the function if it's native, else `undefined`.
1545
- */
1546
- function getNative(object, key) {
1547
- var value = _getValue(object, key);
1548
- return _baseIsNative(value) ? value : undefined;
1549
- }
1550
-
1551
- var _getNative = getNative;
1552
-
1553
- /* Built-in method references that are verified to be native. */
1554
- var nativeCreate = _getNative(Object, 'create');
1555
-
1556
- var _nativeCreate = nativeCreate;
1557
-
1558
- /**
1559
- * Removes all key-value entries from the hash.
1560
- *
1561
- * @private
1562
- * @name clear
1563
- * @memberOf Hash
1564
- */
1565
- function hashClear() {
1566
- this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
1567
- this.size = 0;
1568
- }
1569
-
1570
- var _hashClear = hashClear;
1571
-
1572
- /**
1573
- * Removes `key` and its value from the hash.
1574
- *
1575
- * @private
1576
- * @name delete
1577
- * @memberOf Hash
1578
- * @param {Object} hash The hash to modify.
1579
- * @param {string} key The key of the value to remove.
1580
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1581
- */
1582
- function hashDelete(key) {
1583
- var result = this.has(key) && delete this.__data__[key];
1584
- this.size -= result ? 1 : 0;
1585
- return result;
1586
- }
1587
-
1588
- var _hashDelete = hashDelete;
1589
-
1590
- /** Used to stand-in for `undefined` hash values. */
1591
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
1592
-
1593
- /** Used for built-in method references. */
1594
- var objectProto$1 = Object.prototype;
1595
-
1596
- /** Used to check objects for own properties. */
1597
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
1598
-
1599
- /**
1600
- * Gets the hash value for `key`.
1601
- *
1602
- * @private
1603
- * @name get
1604
- * @memberOf Hash
1605
- * @param {string} key The key of the value to get.
1606
- * @returns {*} Returns the entry value.
1607
- */
1608
- function hashGet(key) {
1609
- var data = this.__data__;
1610
- if (_nativeCreate) {
1611
- var result = data[key];
1612
- return result === HASH_UNDEFINED$1 ? undefined : result;
1613
- }
1614
- return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
1615
- }
1616
-
1617
- var _hashGet = hashGet;
1618
-
1619
- /** Used for built-in method references. */
1620
- var objectProto = Object.prototype;
1621
-
1622
- /** Used to check objects for own properties. */
1623
- var hasOwnProperty = objectProto.hasOwnProperty;
1624
-
1625
- /**
1626
- * Checks if a hash value for `key` exists.
1627
- *
1628
- * @private
1629
- * @name has
1630
- * @memberOf Hash
1631
- * @param {string} key The key of the entry to check.
1632
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1633
- */
1634
- function hashHas(key) {
1635
- var data = this.__data__;
1636
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
1637
- }
1638
-
1639
- var _hashHas = hashHas;
1640
-
1641
- /** Used to stand-in for `undefined` hash values. */
1642
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
1643
-
1644
- /**
1645
- * Sets the hash `key` to `value`.
1646
- *
1647
- * @private
1648
- * @name set
1649
- * @memberOf Hash
1650
- * @param {string} key The key of the value to set.
1651
- * @param {*} value The value to set.
1652
- * @returns {Object} Returns the hash instance.
1653
- */
1654
- function hashSet(key, value) {
1655
- var data = this.__data__;
1656
- this.size += this.has(key) ? 0 : 1;
1657
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
1658
- return this;
1659
- }
1660
-
1661
- var _hashSet = hashSet;
1662
-
1663
- /**
1664
- * Creates a hash object.
1665
- *
1666
- * @private
1667
- * @constructor
1668
- * @param {Array} [entries] The key-value pairs to cache.
1669
- */
1670
- function Hash(entries) {
1671
- var index = -1,
1672
- length = entries == null ? 0 : entries.length;
1673
-
1674
- this.clear();
1675
- while (++index < length) {
1676
- var entry = entries[index];
1677
- this.set(entry[0], entry[1]);
1678
- }
1679
- }
1680
-
1681
- // Add methods to `Hash`.
1682
- Hash.prototype.clear = _hashClear;
1683
- Hash.prototype['delete'] = _hashDelete;
1684
- Hash.prototype.get = _hashGet;
1685
- Hash.prototype.has = _hashHas;
1686
- Hash.prototype.set = _hashSet;
1687
-
1688
- var _Hash = Hash;
1689
-
1690
- /**
1691
- * Removes all key-value entries from the list cache.
1692
- *
1693
- * @private
1694
- * @name clear
1695
- * @memberOf ListCache
1696
- */
1697
- function listCacheClear() {
1698
- this.__data__ = [];
1699
- this.size = 0;
1700
- }
1701
-
1702
- var _listCacheClear = listCacheClear;
1703
-
1704
- /**
1705
- * Performs a
1706
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1707
- * comparison between two values to determine if they are equivalent.
1708
- *
1709
- * @static
1710
- * @memberOf _
1711
- * @since 4.0.0
1712
- * @category Lang
1713
- * @param {*} value The value to compare.
1714
- * @param {*} other The other value to compare.
1715
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1716
- * @example
1717
- *
1718
- * var object = { 'a': 1 };
1719
- * var other = { 'a': 1 };
1720
- *
1721
- * _.eq(object, object);
1722
- * // => true
1723
- *
1724
- * _.eq(object, other);
1725
- * // => false
1726
- *
1727
- * _.eq('a', 'a');
1728
- * // => true
1729
- *
1730
- * _.eq('a', Object('a'));
1731
- * // => false
1732
- *
1733
- * _.eq(NaN, NaN);
1734
- * // => true
1735
- */
1736
- function eq(value, other) {
1737
- return value === other || (value !== value && other !== other);
1738
- }
1739
-
1740
- var eq_1 = eq;
1741
-
1742
- /**
1743
- * Gets the index at which the `key` is found in `array` of key-value pairs.
1744
- *
1745
- * @private
1746
- * @param {Array} array The array to inspect.
1747
- * @param {*} key The key to search for.
1748
- * @returns {number} Returns the index of the matched value, else `-1`.
1749
- */
1750
- function assocIndexOf(array, key) {
1751
- var length = array.length;
1752
- while (length--) {
1753
- if (eq_1(array[length][0], key)) {
1754
- return length;
1755
- }
1756
- }
1757
- return -1;
1758
- }
1759
-
1760
- var _assocIndexOf = assocIndexOf;
1761
-
1762
- /** Used for built-in method references. */
1763
- var arrayProto = Array.prototype;
1764
-
1765
- /** Built-in value references. */
1766
- var splice = arrayProto.splice;
1767
-
1768
- /**
1769
- * Removes `key` and its value from the list cache.
1770
- *
1771
- * @private
1772
- * @name delete
1773
- * @memberOf ListCache
1774
- * @param {string} key The key of the value to remove.
1775
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1776
- */
1777
- function listCacheDelete(key) {
1778
- var data = this.__data__,
1779
- index = _assocIndexOf(data, key);
1780
-
1781
- if (index < 0) {
1782
- return false;
1783
- }
1784
- var lastIndex = data.length - 1;
1785
- if (index == lastIndex) {
1786
- data.pop();
1787
- } else {
1788
- splice.call(data, index, 1);
1789
- }
1790
- --this.size;
1791
- return true;
1792
- }
1793
-
1794
- var _listCacheDelete = listCacheDelete;
1795
-
1796
- /**
1797
- * Gets the list cache value for `key`.
1798
- *
1799
- * @private
1800
- * @name get
1801
- * @memberOf ListCache
1802
- * @param {string} key The key of the value to get.
1803
- * @returns {*} Returns the entry value.
1804
- */
1805
- function listCacheGet(key) {
1806
- var data = this.__data__,
1807
- index = _assocIndexOf(data, key);
1808
-
1809
- return index < 0 ? undefined : data[index][1];
1810
- }
1811
-
1812
- var _listCacheGet = listCacheGet;
1813
-
1814
- /**
1815
- * Checks if a list cache value for `key` exists.
1816
- *
1817
- * @private
1818
- * @name has
1819
- * @memberOf ListCache
1820
- * @param {string} key The key of the entry to check.
1821
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1822
- */
1823
- function listCacheHas(key) {
1824
- return _assocIndexOf(this.__data__, key) > -1;
1825
- }
1826
-
1827
- var _listCacheHas = listCacheHas;
1828
-
1829
- /**
1830
- * Sets the list cache `key` to `value`.
1831
- *
1832
- * @private
1833
- * @name set
1834
- * @memberOf ListCache
1835
- * @param {string} key The key of the value to set.
1836
- * @param {*} value The value to set.
1837
- * @returns {Object} Returns the list cache instance.
1838
- */
1839
- function listCacheSet(key, value) {
1840
- var data = this.__data__,
1841
- index = _assocIndexOf(data, key);
1842
-
1843
- if (index < 0) {
1844
- ++this.size;
1845
- data.push([key, value]);
1846
- } else {
1847
- data[index][1] = value;
1848
- }
1849
- return this;
1850
- }
1851
-
1852
- var _listCacheSet = listCacheSet;
1853
-
1854
- /**
1855
- * Creates an list cache object.
1856
- *
1857
- * @private
1858
- * @constructor
1859
- * @param {Array} [entries] The key-value pairs to cache.
1860
- */
1861
- function ListCache(entries) {
1862
- var index = -1,
1863
- length = entries == null ? 0 : entries.length;
1864
-
1865
- this.clear();
1866
- while (++index < length) {
1867
- var entry = entries[index];
1868
- this.set(entry[0], entry[1]);
1869
- }
1870
- }
1871
-
1872
- // Add methods to `ListCache`.
1873
- ListCache.prototype.clear = _listCacheClear;
1874
- ListCache.prototype['delete'] = _listCacheDelete;
1875
- ListCache.prototype.get = _listCacheGet;
1876
- ListCache.prototype.has = _listCacheHas;
1877
- ListCache.prototype.set = _listCacheSet;
1878
-
1879
- var _ListCache = ListCache;
1880
-
1881
- /* Built-in method references that are verified to be native. */
1882
- var Map = _getNative(_root, 'Map');
1883
-
1884
- var _Map = Map;
1885
-
1886
- /**
1887
- * Removes all key-value entries from the map.
1888
- *
1889
- * @private
1890
- * @name clear
1891
- * @memberOf MapCache
1892
- */
1893
- function mapCacheClear() {
1894
- this.size = 0;
1895
- this.__data__ = {
1896
- 'hash': new _Hash,
1897
- 'map': new (_Map || _ListCache),
1898
- 'string': new _Hash
1899
- };
1900
- }
1901
-
1902
- var _mapCacheClear = mapCacheClear;
1903
-
1904
- /**
1905
- * Checks if `value` is suitable for use as unique object key.
1906
- *
1907
- * @private
1908
- * @param {*} value The value to check.
1909
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1910
- */
1911
- function isKeyable(value) {
1912
- var type = typeof value;
1913
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1914
- ? (value !== '__proto__')
1915
- : (value === null);
1916
- }
1917
-
1918
- var _isKeyable = isKeyable;
1919
-
1920
- /**
1921
- * Gets the data for `map`.
1922
- *
1923
- * @private
1924
- * @param {Object} map The map to query.
1925
- * @param {string} key The reference key.
1926
- * @returns {*} Returns the map data.
1927
- */
1928
- function getMapData(map, key) {
1929
- var data = map.__data__;
1930
- return _isKeyable(key)
1931
- ? data[typeof key == 'string' ? 'string' : 'hash']
1932
- : data.map;
1933
- }
1934
-
1935
- var _getMapData = getMapData;
1936
-
1937
- /**
1938
- * Removes `key` and its value from the map.
1939
- *
1940
- * @private
1941
- * @name delete
1942
- * @memberOf MapCache
1943
- * @param {string} key The key of the value to remove.
1944
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1945
- */
1946
- function mapCacheDelete(key) {
1947
- var result = _getMapData(this, key)['delete'](key);
1948
- this.size -= result ? 1 : 0;
1949
- return result;
1950
- }
1951
-
1952
- var _mapCacheDelete = mapCacheDelete;
1953
-
1954
- /**
1955
- * Gets the map value for `key`.
1956
- *
1957
- * @private
1958
- * @name get
1959
- * @memberOf MapCache
1960
- * @param {string} key The key of the value to get.
1961
- * @returns {*} Returns the entry value.
1962
- */
1963
- function mapCacheGet(key) {
1964
- return _getMapData(this, key).get(key);
1965
- }
1966
-
1967
- var _mapCacheGet = mapCacheGet;
1968
-
1969
- /**
1970
- * Checks if a map value for `key` exists.
1971
- *
1972
- * @private
1973
- * @name has
1974
- * @memberOf MapCache
1975
- * @param {string} key The key of the entry to check.
1976
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1977
- */
1978
- function mapCacheHas(key) {
1979
- return _getMapData(this, key).has(key);
1980
- }
1981
-
1982
- var _mapCacheHas = mapCacheHas;
1983
-
1984
- /**
1985
- * Sets the map `key` to `value`.
1986
- *
1987
- * @private
1988
- * @name set
1989
- * @memberOf MapCache
1990
- * @param {string} key The key of the value to set.
1991
- * @param {*} value The value to set.
1992
- * @returns {Object} Returns the map cache instance.
1993
- */
1994
- function mapCacheSet(key, value) {
1995
- var data = _getMapData(this, key),
1996
- size = data.size;
1997
-
1998
- data.set(key, value);
1999
- this.size += data.size == size ? 0 : 1;
2000
- return this;
2001
- }
2002
-
2003
- var _mapCacheSet = mapCacheSet;
2004
-
2005
- /**
2006
- * Creates a map cache object to store key-value pairs.
2007
- *
2008
- * @private
2009
- * @constructor
2010
- * @param {Array} [entries] The key-value pairs to cache.
2011
- */
2012
- function MapCache(entries) {
2013
- var index = -1,
2014
- length = entries == null ? 0 : entries.length;
2015
-
2016
- this.clear();
2017
- while (++index < length) {
2018
- var entry = entries[index];
2019
- this.set(entry[0], entry[1]);
2020
- }
2021
- }
2022
-
2023
- // Add methods to `MapCache`.
2024
- MapCache.prototype.clear = _mapCacheClear;
2025
- MapCache.prototype['delete'] = _mapCacheDelete;
2026
- MapCache.prototype.get = _mapCacheGet;
2027
- MapCache.prototype.has = _mapCacheHas;
2028
- MapCache.prototype.set = _mapCacheSet;
2029
-
2030
- var _MapCache = MapCache;
2031
-
2032
- /** Error message constants. */
2033
- var FUNC_ERROR_TEXT = 'Expected a function';
2034
-
2035
- /**
2036
- * Creates a function that memoizes the result of `func`. If `resolver` is
2037
- * provided, it determines the cache key for storing the result based on the
2038
- * arguments provided to the memoized function. By default, the first argument
2039
- * provided to the memoized function is used as the map cache key. The `func`
2040
- * is invoked with the `this` binding of the memoized function.
2041
- *
2042
- * **Note:** The cache is exposed as the `cache` property on the memoized
2043
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
2044
- * constructor with one whose instances implement the
2045
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
2046
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
2047
- *
2048
- * @static
2049
- * @memberOf _
2050
- * @since 0.1.0
2051
- * @category Function
2052
- * @param {Function} func The function to have its output memoized.
2053
- * @param {Function} [resolver] The function to resolve the cache key.
2054
- * @returns {Function} Returns the new memoized function.
2055
- * @example
2056
- *
2057
- * var object = { 'a': 1, 'b': 2 };
2058
- * var other = { 'c': 3, 'd': 4 };
2059
- *
2060
- * var values = _.memoize(_.values);
2061
- * values(object);
2062
- * // => [1, 2]
2063
- *
2064
- * values(other);
2065
- * // => [3, 4]
2066
- *
2067
- * object.a = 2;
2068
- * values(object);
2069
- * // => [1, 2]
2070
- *
2071
- * // Modify the result cache.
2072
- * values.cache.set(object, ['a', 'b']);
2073
- * values(object);
2074
- * // => ['a', 'b']
2075
- *
2076
- * // Replace `_.memoize.Cache`.
2077
- * _.memoize.Cache = WeakMap;
2078
- */
2079
- function memoize(func, resolver) {
2080
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
2081
- throw new TypeError(FUNC_ERROR_TEXT);
2082
- }
2083
- var memoized = function() {
2084
- var args = arguments,
2085
- key = resolver ? resolver.apply(this, args) : args[0],
2086
- cache = memoized.cache;
2087
-
2088
- if (cache.has(key)) {
2089
- return cache.get(key);
2090
- }
2091
- var result = func.apply(this, args);
2092
- memoized.cache = cache.set(key, result) || cache;
2093
- return result;
2094
- };
2095
- memoized.cache = new (memoize.Cache || _MapCache);
2096
- return memoized;
2097
- }
2098
-
2099
- // Expose `MapCache`.
2100
- memoize.Cache = _MapCache;
2101
-
2102
- var memoize_1 = memoize;
2103
-
2104
- /** Used as the maximum memoize cache size. */
2105
- var MAX_MEMOIZE_SIZE = 500;
2106
-
2107
- /**
2108
- * A specialized version of `_.memoize` which clears the memoized function's
2109
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
2110
- *
2111
- * @private
2112
- * @param {Function} func The function to have its output memoized.
2113
- * @returns {Function} Returns the new memoized function.
2114
- */
2115
- function memoizeCapped(func) {
2116
- var result = memoize_1(func, function(key) {
2117
- if (cache.size === MAX_MEMOIZE_SIZE) {
2118
- cache.clear();
2119
- }
2120
- return key;
2121
- });
2122
-
2123
- var cache = result.cache;
2124
- return result;
2125
- }
2126
-
2127
- var _memoizeCapped = memoizeCapped;
2128
-
2129
- /** Used to match property names within property paths. */
2130
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
2131
-
2132
- /** Used to match backslashes in property paths. */
2133
- var reEscapeChar = /\\(\\)?/g;
2134
-
2135
- /**
2136
- * Converts `string` to a property path array.
2137
- *
2138
- * @private
2139
- * @param {string} string The string to convert.
2140
- * @returns {Array} Returns the property path array.
2141
- */
2142
- _memoizeCapped(function(string) {
2143
- var result = [];
2144
- if (string.charCodeAt(0) === 46 /* . */) {
2145
- result.push('');
2146
- }
2147
- string.replace(rePropName, function(match, number, quote, subString) {
2148
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
2149
- });
2150
- return result;
2151
- });
2152
-
2153
- /**
2154
- * A specialized version of `_.map` for arrays without support for iteratee
2155
- * shorthands.
2156
- *
2157
- * @private
2158
- * @param {Array} [array] The array to iterate over.
2159
- * @param {Function} iteratee The function invoked per iteration.
2160
- * @returns {Array} Returns the new mapped array.
2161
- */
2162
- function arrayMap(array, iteratee) {
2163
- var index = -1,
2164
- length = array == null ? 0 : array.length,
2165
- result = Array(length);
2166
-
2167
- while (++index < length) {
2168
- result[index] = iteratee(array[index], index, array);
2169
- }
2170
- return result;
2171
- }
2172
-
2173
- var _arrayMap = arrayMap;
2174
-
2175
- /** Used as references for various `Number` constants. */
2176
- var INFINITY = 1 / 0;
2177
-
2178
- /** Used to convert symbols to primitives and strings. */
2179
- var symbolProto = _Symbol ? _Symbol.prototype : undefined,
2180
- symbolToString = symbolProto ? symbolProto.toString : undefined;
2181
-
2182
- /**
2183
- * The base implementation of `_.toString` which doesn't convert nullish
2184
- * values to empty strings.
2185
- *
2186
- * @private
2187
- * @param {*} value The value to process.
2188
- * @returns {string} Returns the string.
2189
- */
2190
- function baseToString(value) {
2191
- // Exit early for strings to avoid a performance hit in some environments.
2192
- if (typeof value == 'string') {
2193
- return value;
2194
- }
2195
- if (isArray_1(value)) {
2196
- // Recursively convert values (susceptible to call stack limits).
2197
- return _arrayMap(value, baseToString) + '';
2198
- }
2199
- if (isSymbol_1(value)) {
2200
- return symbolToString ? symbolToString.call(value) : '';
2201
- }
2202
- var result = (value + '');
2203
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
2204
- }
2205
-
2206
- var _baseToString = baseToString;
2207
-
2208
- /**
2209
- * Converts `value` to a string. An empty string is returned for `null`
2210
- * and `undefined` values. The sign of `-0` is preserved.
2211
- *
2212
- * @static
2213
- * @memberOf _
2214
- * @since 4.0.0
2215
- * @category Lang
2216
- * @param {*} value The value to convert.
2217
- * @returns {string} Returns the converted string.
2218
- * @example
2219
- *
2220
- * _.toString(null);
2221
- * // => ''
2222
- *
2223
- * _.toString(-0);
2224
- * // => '-0'
2225
- *
2226
- * _.toString([1, 2, 3]);
2227
- * // => '1,2,3'
2228
- */
2229
- function toString(value) {
2230
- return value == null ? '' : _baseToString(value);
2231
- }
2232
-
2233
- var toString_1 = toString;
2234
-
2235
- /**
2236
- * A specialized version of `_.reduce` for arrays without support for
2237
- * iteratee shorthands.
2238
- *
2239
- * @private
2240
- * @param {Array} [array] The array to iterate over.
2241
- * @param {Function} iteratee The function invoked per iteration.
2242
- * @param {*} [accumulator] The initial value.
2243
- * @param {boolean} [initAccum] Specify using the first element of `array` as
2244
- * the initial value.
2245
- * @returns {*} Returns the accumulated value.
2246
- */
2247
- function arrayReduce(array, iteratee, accumulator, initAccum) {
2248
- var index = -1,
2249
- length = array == null ? 0 : array.length;
2250
-
2251
- if (initAccum && length) {
2252
- accumulator = array[++index];
2253
- }
2254
- while (++index < length) {
2255
- accumulator = iteratee(accumulator, array[index], index, array);
2256
- }
2257
- return accumulator;
2258
- }
2259
-
2260
- var _arrayReduce = arrayReduce;
2261
-
2262
- /**
2263
- * The base implementation of `_.propertyOf` without support for deep paths.
2264
- *
2265
- * @private
2266
- * @param {Object} object The object to query.
2267
- * @returns {Function} Returns the new accessor function.
2268
- */
2269
- function basePropertyOf(object) {
2270
- return function(key) {
2271
- return object == null ? undefined : object[key];
2272
- };
2273
- }
2274
-
2275
- var _basePropertyOf = basePropertyOf;
2276
-
2277
- /** Used to map Latin Unicode letters to basic Latin letters. */
2278
- var deburredLetters = {
2279
- // Latin-1 Supplement block.
2280
- '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
2281
- '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
2282
- '\xc7': 'C', '\xe7': 'c',
2283
- '\xd0': 'D', '\xf0': 'd',
2284
- '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
2285
- '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
2286
- '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
2287
- '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
2288
- '\xd1': 'N', '\xf1': 'n',
2289
- '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
2290
- '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
2291
- '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
2292
- '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
2293
- '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
2294
- '\xc6': 'Ae', '\xe6': 'ae',
2295
- '\xde': 'Th', '\xfe': 'th',
2296
- '\xdf': 'ss',
2297
- // Latin Extended-A block.
2298
- '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
2299
- '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
2300
- '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
2301
- '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
2302
- '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
2303
- '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
2304
- '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
2305
- '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
2306
- '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
2307
- '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
2308
- '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
2309
- '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
2310
- '\u0134': 'J', '\u0135': 'j',
2311
- '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
2312
- '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
2313
- '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
2314
- '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
2315
- '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
2316
- '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
2317
- '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
2318
- '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
2319
- '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
2320
- '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
2321
- '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
2322
- '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
2323
- '\u0163': 't', '\u0165': 't', '\u0167': 't',
2324
- '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
2325
- '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
2326
- '\u0174': 'W', '\u0175': 'w',
2327
- '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
2328
- '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
2329
- '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
2330
- '\u0132': 'IJ', '\u0133': 'ij',
2331
- '\u0152': 'Oe', '\u0153': 'oe',
2332
- '\u0149': "'n", '\u017f': 's'
2333
- };
2334
-
2335
- /**
2336
- * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
2337
- * letters to basic Latin letters.
2338
- *
2339
- * @private
2340
- * @param {string} letter The matched letter to deburr.
2341
- * @returns {string} Returns the deburred letter.
2342
- */
2343
- var deburrLetter = _basePropertyOf(deburredLetters);
2344
-
2345
- var _deburrLetter = deburrLetter;
2346
-
2347
- /** Used to match Latin Unicode letters (excluding mathematical operators). */
2348
- var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
2349
-
2350
- /** Used to compose unicode character classes. */
2351
- var rsComboMarksRange$3 = '\\u0300-\\u036f',
2352
- reComboHalfMarksRange$3 = '\\ufe20-\\ufe2f',
2353
- rsComboSymbolsRange$3 = '\\u20d0-\\u20ff',
2354
- rsComboRange$3 = rsComboMarksRange$3 + reComboHalfMarksRange$3 + rsComboSymbolsRange$3;
2355
-
2356
- /** Used to compose unicode capture groups. */
2357
- var rsCombo$2 = '[' + rsComboRange$3 + ']';
2358
-
2359
- /**
2360
- * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
2361
- * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
2362
- */
2363
- var reComboMark = RegExp(rsCombo$2, 'g');
2364
-
2365
- /**
2366
- * Deburrs `string` by converting
2367
- * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
2368
- * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
2369
- * letters to basic Latin letters and removing
2370
- * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
2371
- *
2372
- * @static
2373
- * @memberOf _
2374
- * @since 3.0.0
2375
- * @category String
2376
- * @param {string} [string=''] The string to deburr.
2377
- * @returns {string} Returns the deburred string.
2378
- * @example
2379
- *
2380
- * _.deburr('déjà vu');
2381
- * // => 'deja vu'
2382
- */
2383
- function deburr(string) {
2384
- string = toString_1(string);
2385
- return string && string.replace(reLatin, _deburrLetter).replace(reComboMark, '');
2386
- }
2387
-
2388
- var deburr_1 = deburr;
2389
-
2390
- /** Used to match words composed of alphanumeric characters. */
2391
- var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
2392
-
2393
- /**
2394
- * Splits an ASCII `string` into an array of its words.
2395
- *
2396
- * @private
2397
- * @param {string} The string to inspect.
2398
- * @returns {Array} Returns the words of `string`.
2399
- */
2400
- function asciiWords(string) {
2401
- return string.match(reAsciiWord) || [];
2402
- }
2403
-
2404
- var _asciiWords = asciiWords;
2405
-
2406
- /** Used to detect strings that need a more robust regexp to match words. */
2407
- 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 ]/;
2408
-
2409
- /**
2410
- * Checks if `string` contains a word composed of Unicode symbols.
2411
- *
2412
- * @private
2413
- * @param {string} string The string to inspect.
2414
- * @returns {boolean} Returns `true` if a word is found, else `false`.
2415
- */
2416
- function hasUnicodeWord(string) {
2417
- return reHasUnicodeWord.test(string);
2418
- }
2419
-
2420
- var _hasUnicodeWord = hasUnicodeWord;
2421
-
2422
- /** Used to compose unicode character classes. */
2423
- var rsAstralRange$2 = '\\ud800-\\udfff',
2424
- rsComboMarksRange$2 = '\\u0300-\\u036f',
2425
- reComboHalfMarksRange$2 = '\\ufe20-\\ufe2f',
2426
- rsComboSymbolsRange$2 = '\\u20d0-\\u20ff',
2427
- rsComboRange$2 = rsComboMarksRange$2 + reComboHalfMarksRange$2 + rsComboSymbolsRange$2,
2428
- rsDingbatRange = '\\u2700-\\u27bf',
2429
- rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
2430
- rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
2431
- rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
2432
- rsPunctuationRange = '\\u2000-\\u206f',
2433
- 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',
2434
- rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
2435
- rsVarRange$2 = '\\ufe0e\\ufe0f',
2436
- rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
2437
-
2438
- /** Used to compose unicode capture groups. */
2439
- var rsApos$1 = "['\u2019]",
2440
- rsBreak = '[' + rsBreakRange + ']',
2441
- rsCombo$1 = '[' + rsComboRange$2 + ']',
2442
- rsDigits = '\\d+',
2443
- rsDingbat = '[' + rsDingbatRange + ']',
2444
- rsLower = '[' + rsLowerRange + ']',
2445
- rsMisc = '[^' + rsAstralRange$2 + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
2446
- rsFitz$1 = '\\ud83c[\\udffb-\\udfff]',
2447
- rsModifier$1 = '(?:' + rsCombo$1 + '|' + rsFitz$1 + ')',
2448
- rsNonAstral$1 = '[^' + rsAstralRange$2 + ']',
2449
- rsRegional$1 = '(?:\\ud83c[\\udde6-\\uddff]){2}',
2450
- rsSurrPair$1 = '[\\ud800-\\udbff][\\udc00-\\udfff]',
2451
- rsUpper = '[' + rsUpperRange + ']',
2452
- rsZWJ$2 = '\\u200d';
2453
-
2454
- /** Used to compose unicode regexes. */
2455
- var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
2456
- rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
2457
- rsOptContrLower = '(?:' + rsApos$1 + '(?:d|ll|m|re|s|t|ve))?',
2458
- rsOptContrUpper = '(?:' + rsApos$1 + '(?:D|LL|M|RE|S|T|VE))?',
2459
- reOptMod$1 = rsModifier$1 + '?',
2460
- rsOptVar$1 = '[' + rsVarRange$2 + ']?',
2461
- rsOptJoin$1 = '(?:' + rsZWJ$2 + '(?:' + [rsNonAstral$1, rsRegional$1, rsSurrPair$1].join('|') + ')' + rsOptVar$1 + reOptMod$1 + ')*',
2462
- rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
2463
- rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
2464
- rsSeq$1 = rsOptVar$1 + reOptMod$1 + rsOptJoin$1,
2465
- rsEmoji = '(?:' + [rsDingbat, rsRegional$1, rsSurrPair$1].join('|') + ')' + rsSeq$1;
2466
-
2467
- /** Used to match complex or compound words. */
2468
- var reUnicodeWord = RegExp([
2469
- rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
2470
- rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
2471
- rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
2472
- rsUpper + '+' + rsOptContrUpper,
2473
- rsOrdUpper,
2474
- rsOrdLower,
2475
- rsDigits,
2476
- rsEmoji
2477
- ].join('|'), 'g');
2478
-
2479
- /**
2480
- * Splits a Unicode `string` into an array of its words.
2481
- *
2482
- * @private
2483
- * @param {string} The string to inspect.
2484
- * @returns {Array} Returns the words of `string`.
2485
- */
2486
- function unicodeWords(string) {
2487
- return string.match(reUnicodeWord) || [];
2488
- }
2489
-
2490
- var _unicodeWords = unicodeWords;
2491
-
2492
- /**
2493
- * Splits `string` into an array of its words.
2494
- *
2495
- * @static
2496
- * @memberOf _
2497
- * @since 3.0.0
2498
- * @category String
2499
- * @param {string} [string=''] The string to inspect.
2500
- * @param {RegExp|string} [pattern] The pattern to match words.
2501
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
2502
- * @returns {Array} Returns the words of `string`.
2503
- * @example
2504
- *
2505
- * _.words('fred, barney, & pebbles');
2506
- * // => ['fred', 'barney', 'pebbles']
2507
- *
2508
- * _.words('fred, barney, & pebbles', /[^, ]+/g);
2509
- * // => ['fred', 'barney', '&', 'pebbles']
2510
- */
2511
- function words(string, pattern, guard) {
2512
- string = toString_1(string);
2513
- pattern = guard ? undefined : pattern;
2514
-
2515
- if (pattern === undefined) {
2516
- return _hasUnicodeWord(string) ? _unicodeWords(string) : _asciiWords(string);
2517
- }
2518
- return string.match(pattern) || [];
2519
- }
2520
-
2521
- var words_1 = words;
2522
-
2523
- /** Used to compose unicode capture groups. */
2524
- var rsApos = "['\u2019]";
2525
-
2526
- /** Used to match apostrophes. */
2527
- var reApos = RegExp(rsApos, 'g');
2528
-
2529
- /**
2530
- * Creates a function like `_.camelCase`.
2531
- *
2532
- * @private
2533
- * @param {Function} callback The function to combine each word.
2534
- * @returns {Function} Returns the new compounder function.
2535
- */
2536
- function createCompounder(callback) {
2537
- return function(string) {
2538
- return _arrayReduce(words_1(deburr_1(string).replace(reApos, '')), callback, '');
2539
- };
2540
- }
2541
-
2542
- var _createCompounder = createCompounder;
2543
-
2544
- var hexToRGB = function hexToRGB(hex) {
2545
- var r = parseInt(hex.slice(1, 3), 16);
2546
- var g = parseInt(hex.slice(3, 5), 16);
2547
- var b = parseInt(hex.slice(5, 7), 16);
2548
- return {
2549
- r: r,
2550
- g: g,
2551
- b: b
2552
- };
2553
- };
2554
- var getLuminanceOfColor = function getLuminanceOfColor(hex) {
2555
- var _hexToRGB = hexToRGB(hex),
2556
- r = _hexToRGB.r,
2557
- g = _hexToRGB.g,
2558
- b = _hexToRGB.b;
2559
-
2560
- return r * 0.299 + g * 0.587 + b * 0.114;
2561
- };
2562
- var rgbToHex = function rgbToHex() {
2563
- var color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "rgba(255, 255, 255, 0)";
2564
- var rgba = color.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);
2565
- return rgba && rgba.length === 4 ? "#" + ("0" + parseInt(rgba[1], 10).toString(16)).slice(-2) + ("0" + parseInt(rgba[2], 10).toString(16)).slice(-2) + ("0" + parseInt(rgba[3], 10).toString(16)).slice(-2) : color;
2566
- };
2567
- var getTextColor = function getTextColor() {
2568
- var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "rgb(255,255,255)";
2569
- var isRegexCheck = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(theme);
2570
- var getHexValue = !isRegexCheck ? rgbToHex(theme) : theme;
2571
- var textColor = getLuminanceOfColor(getHexValue) < 155 ? "light" : "dark";
2572
- return textColor;
2573
- };
2574
- PropTypes.shape({
2575
- "sketches-host": PropTypes.string,
2576
- "cdn-name": PropTypes.string,
2577
- "cdn-image": PropTypes.string
2578
- });
2579
- PropTypes.shape({
2580
- headline: PropTypes.string,
2581
- "last-published-at": PropTypes.number,
2582
- subheadline: PropTypes.string
2583
- });
2584
-
2585
- var _styleModuleImportMap$1 = {
2586
- "./social-share-popup.m.css": {
2587
- "share-popup-wrapper": "social-share-popup-m_share-popup-wrapper__GEJqD",
2588
- "light": "social-share-popup-m_light__gQmxf",
2589
- "dark": "social-share-popup-m_dark__26Igp",
2590
- "share-popup": "social-share-popup-m_share-popup__QRt3l social-share-popup-m_share-popup-wrapper__GEJqD",
2591
- "social-wrapper": "social-share-popup-m_social-wrapper__1lPzr",
2592
- "social-icon-wrapper": "social-share-popup-m_social-icon-wrapper__36jyV",
2593
- "wrapper": "social-share-popup-m_wrapper__3Ytce",
2594
- "top-bar": "social-share-popup-m_top-bar__174Um",
2595
- "share-text": "social-share-popup-m_share-text__19E-F",
2596
- "close": "social-share-popup-m_close__3k-Hj",
2597
- "social-icon": "social-share-popup-m_social-icon__2a4nT",
2598
- "social-text": "social-share-popup-m_social-text__1QPXb"
2599
- }
2600
- };
2601
-
2602
- var popupSocialShareItem = function popupSocialShareItem(url, icon, text, index) {
2603
- return url ? /*#__PURE__*/React.createElement("li", {
2604
- className: "social-share-popup-m_social-icon-wrapper__36jyV",
2605
- "data-testid": text,
2606
- key: "popup-item-".concat(index)
2607
- }, /*#__PURE__*/React.createElement("a", {
2608
- href: url,
2609
- target: "_blank",
2610
- rel: "noopener noreferrer",
2611
- className: "social-share-popup-m_social-wrapper__1lPzr",
2612
- "aria-label": "social-icon"
2613
- }, icon, /*#__PURE__*/React.createElement("span", {
2614
- className: "social-share-popup-m_social-text__1QPXb"
2615
- }, text))) : null;
2616
- };
2617
-
2618
- var SocialSharePopup = function SocialSharePopup(_ref) {
2619
- var _ref$fbUrl = _ref.fbUrl,
2620
- fbUrl = _ref$fbUrl === void 0 ? "" : _ref$fbUrl,
2621
- _ref$twitterUrl = _ref.twitterUrl,
2622
- twitterUrl = _ref$twitterUrl === void 0 ? "" : _ref$twitterUrl,
2623
- _ref$linkedinUrl = _ref.linkedinUrl,
2624
- linkedinUrl = _ref$linkedinUrl === void 0 ? "" : _ref$linkedinUrl,
2625
- _ref$whatsappUrl = _ref.whatsappUrl,
2626
- whatsappUrl = _ref$whatsappUrl === void 0 ? "" : _ref$whatsappUrl,
2627
- theme = _ref.theme,
2628
- _ref$closePopup = _ref.closePopup,
2629
- closePopup = _ref$closePopup === void 0 ? "" : _ref$closePopup,
2630
- _ref$iconType = _ref.iconType,
2631
- iconType = _ref$iconType === void 0 ? "plain-color-svg" : _ref$iconType;
2632
- var textColor = getTextColor(theme);
2633
- var iconColor = textColor === "dark" ? "#000000" : "#ffffff";
2634
- var options = {
2635
- fbUrl: fbUrl,
2636
- twitterUrl: twitterUrl,
2637
- linkedinUrl: linkedinUrl,
2638
- whatsappUrl: whatsappUrl,
2639
- iconColor: iconColor,
2640
- iconType: iconType
2641
- };
2642
- var popupItemsList = socialShareData(options);
2643
- return /*#__PURE__*/React.createElement("div", {
2644
- className: _getClassName("share-popup-wrapper ".concat(textColor), _styleModuleImportMap$1)
2645
- }, /*#__PURE__*/React.createElement("div", {
2646
- className: "social-share-popup-m_share-popup__QRt3l social-share-popup-m_share-popup-wrapper__GEJqD"
2647
- }, /*#__PURE__*/React.createElement("div", {
2648
- className: "social-share-popup-m_top-bar__174Um"
2649
- }, /*#__PURE__*/React.createElement("span", {
2650
- className: "social-share-popup-m_share-text__19E-F"
2651
- }, "Share via"), /*#__PURE__*/React.createElement("span", {
2652
- className: "social-share-popup-m_close__3k-Hj",
2653
- onClick: closePopup
2654
- }, /*#__PURE__*/React.createElement(CloseIcon, {
2655
- color: iconColor
2656
- }))), /*#__PURE__*/React.createElement("ul", {
2657
- className: "social-share-popup-m_wrapper__3Ytce"
2658
- }, popupItemsList.map(function (_ref2, index) {
2659
- var url = _ref2.url,
2660
- icon = _ref2.icon,
2661
- text = _ref2.text,
2662
- bgColor = _ref2.bgColor;
2663
- _ref2.alt;
2664
- return popupSocialShareItem(url, icon, text, bgColor);
2665
- }))));
2666
- };
2667
- SocialSharePopup.propTypes = {
2668
- fbUrl: PropTypes.string,
2669
- twitterUrl: PropTypes.string,
2670
- linkedinUrl: PropTypes.string,
2671
- whatsappUrl: PropTypes.string,
2672
- grey: PropTypes.string,
2673
- primaryColor: PropTypes.string,
2674
- closePopup: PropTypes.bool,
2675
- theme: PropTypes.string,
2676
- iconType: PropTypes.string
2677
- };
298
+ var popupItemsList = socialShareData(options);
299
+ return /*#__PURE__*/React__default["default"].createElement("div", {
300
+ className: _getClassName__default["default"]("share-popup-wrapper ".concat(textColor), _styleModuleImportMap$1)
301
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
302
+ className: "social-share-popup-m_share-popup__QRt3l social-share-popup-m_share-popup-wrapper__GEJqD"
303
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
304
+ className: "social-share-popup-m_top-bar__174Um"
305
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
306
+ className: "social-share-popup-m_share-text__19E-F"
307
+ }, "Share via"), /*#__PURE__*/React__default["default"].createElement("span", {
308
+ className: "social-share-popup-m_close__3k-Hj",
309
+ onClick: closePopup
310
+ }, /*#__PURE__*/React__default["default"].createElement(CloseIcon, {
311
+ color: iconColor
312
+ }))), /*#__PURE__*/React__default["default"].createElement("ul", {
313
+ className: "social-share-popup-m_wrapper__3Ytce"
314
+ }, popupItemsList.map(function (_ref2, index) {
315
+ var url = _ref2.url,
316
+ icon = _ref2.icon,
317
+ text = _ref2.text,
318
+ bgColor = _ref2.bgColor;
319
+ _ref2.alt;
320
+ return popupSocialShareItem(url, icon, text, bgColor);
321
+ }))));
322
+ };
323
+ SocialSharePopup.propTypes = {
324
+ fbUrl: PropTypes__default["default"].string,
325
+ twitterUrl: PropTypes__default["default"].string,
326
+ linkedinUrl: PropTypes__default["default"].string,
327
+ whatsappUrl: PropTypes__default["default"].string,
328
+ grey: PropTypes__default["default"].string,
329
+ primaryColor: PropTypes__default["default"].string,
330
+ closePopup: PropTypes__default["default"].bool,
331
+ theme: PropTypes__default["default"].string,
332
+ iconType: PropTypes__default["default"].string
333
+ };
2678
334
 
2679
335
  var ShareIcon = function ShareIcon(_ref) {
2680
336
  var _ref$color = _ref.color,
2681
337
  color = _ref$color === void 0 ? "#0D0D0D" : _ref$color;
2682
- return /*#__PURE__*/React.createElement("svg", {
338
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2683
339
  xmlns: "http://www.w3.org/2000/svg",
2684
340
  width: "24",
2685
341
  height: "24",
2686
342
  viewBox: "0 0 24 24"
2687
- }, /*#__PURE__*/React.createElement("path", {
343
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2688
344
  fill: color,
2689
345
  fillRule: "evenodd",
2690
346
  d: "M15.843 3.189c-1.478 0-2.689 1.239-2.689 2.75 0 .293.046.58.13.846L8.844 9.31a2.638 2.638 0 00-1.687-.621c-1.477 0-2.688 1.238-2.688 2.75 0 1.51 1.21 2.75 2.688 2.75.638 0 1.224-.231 1.687-.615l4.446 2.525a2.778 2.778 0 00-.136.84c0 1.51 1.211 2.75 2.689 2.75 1.477 0 2.688-1.24 2.688-2.75 0-1.512-1.21-2.75-2.688-2.75-.742 0-1.419.317-1.907.82l-4.323-2.46a2.763 2.763 0 000-2.221l4.317-2.459c.488.506 1.168.82 1.913.82 1.477 0 2.688-1.239 2.688-2.75s-1.21-2.75-2.688-2.75z"
2691
347
  }));
2692
348
  };
2693
349
  ShareIcon.propTypes = {
2694
- color: PropTypes.string
350
+ color: PropTypes__default["default"].string
2695
351
  };
2696
352
 
2697
- /**
2698
- * The base implementation of `_.slice` without an iteratee call guard.
2699
- *
2700
- * @private
2701
- * @param {Array} array The array to slice.
2702
- * @param {number} [start=0] The start position.
2703
- * @param {number} [end=array.length] The end position.
2704
- * @returns {Array} Returns the slice of `array`.
2705
- */
2706
- function baseSlice(array, start, end) {
2707
- var index = -1,
2708
- length = array.length;
2709
-
2710
- if (start < 0) {
2711
- start = -start > length ? 0 : (length + start);
2712
- }
2713
- end = end > length ? length : end;
2714
- if (end < 0) {
2715
- end += length;
2716
- }
2717
- length = start > end ? 0 : ((end - start) >>> 0);
2718
- start >>>= 0;
2719
-
2720
- var result = Array(length);
2721
- while (++index < length) {
2722
- result[index] = array[index + start];
2723
- }
2724
- return result;
2725
- }
2726
-
2727
- var _baseSlice = baseSlice;
2728
-
2729
- /**
2730
- * Casts `array` to a slice if it's needed.
2731
- *
2732
- * @private
2733
- * @param {Array} array The array to inspect.
2734
- * @param {number} start The start position.
2735
- * @param {number} [end=array.length] The end position.
2736
- * @returns {Array} Returns the cast slice.
2737
- */
2738
- function castSlice(array, start, end) {
2739
- var length = array.length;
2740
- end = end === undefined ? length : end;
2741
- return (!start && end >= length) ? array : _baseSlice(array, start, end);
2742
- }
2743
-
2744
- var _castSlice = castSlice;
2745
-
2746
- /** Used to compose unicode character classes. */
2747
- var rsAstralRange$1 = '\\ud800-\\udfff',
2748
- rsComboMarksRange$1 = '\\u0300-\\u036f',
2749
- reComboHalfMarksRange$1 = '\\ufe20-\\ufe2f',
2750
- rsComboSymbolsRange$1 = '\\u20d0-\\u20ff',
2751
- rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1,
2752
- rsVarRange$1 = '\\ufe0e\\ufe0f';
2753
-
2754
- /** Used to compose unicode capture groups. */
2755
- var rsZWJ$1 = '\\u200d';
2756
-
2757
- /** 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/). */
2758
- var reHasUnicode = RegExp('[' + rsZWJ$1 + rsAstralRange$1 + rsComboRange$1 + rsVarRange$1 + ']');
2759
-
2760
- /**
2761
- * Checks if `string` contains Unicode symbols.
2762
- *
2763
- * @private
2764
- * @param {string} string The string to inspect.
2765
- * @returns {boolean} Returns `true` if a symbol is found, else `false`.
2766
- */
2767
- function hasUnicode(string) {
2768
- return reHasUnicode.test(string);
2769
- }
2770
-
2771
- var _hasUnicode = hasUnicode;
2772
-
2773
- /**
2774
- * Converts an ASCII `string` to an array.
2775
- *
2776
- * @private
2777
- * @param {string} string The string to convert.
2778
- * @returns {Array} Returns the converted array.
2779
- */
2780
- function asciiToArray(string) {
2781
- return string.split('');
2782
- }
2783
-
2784
- var _asciiToArray = asciiToArray;
2785
-
2786
- /** Used to compose unicode character classes. */
2787
- var rsAstralRange = '\\ud800-\\udfff',
2788
- rsComboMarksRange = '\\u0300-\\u036f',
2789
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
2790
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
2791
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
2792
- rsVarRange = '\\ufe0e\\ufe0f';
2793
-
2794
- /** Used to compose unicode capture groups. */
2795
- var rsAstral = '[' + rsAstralRange + ']',
2796
- rsCombo = '[' + rsComboRange + ']',
2797
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
2798
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
2799
- rsNonAstral = '[^' + rsAstralRange + ']',
2800
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
2801
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
2802
- rsZWJ = '\\u200d';
2803
-
2804
- /** Used to compose unicode regexes. */
2805
- var reOptMod = rsModifier + '?',
2806
- rsOptVar = '[' + rsVarRange + ']?',
2807
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
2808
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
2809
- rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
2810
-
2811
- /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
2812
- var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
2813
-
2814
- /**
2815
- * Converts a Unicode `string` to an array.
2816
- *
2817
- * @private
2818
- * @param {string} string The string to convert.
2819
- * @returns {Array} Returns the converted array.
2820
- */
2821
- function unicodeToArray(string) {
2822
- return string.match(reUnicode) || [];
2823
- }
2824
-
2825
- var _unicodeToArray = unicodeToArray;
2826
-
2827
- /**
2828
- * Converts `string` to an array.
2829
- *
2830
- * @private
2831
- * @param {string} string The string to convert.
2832
- * @returns {Array} Returns the converted array.
2833
- */
2834
- function stringToArray(string) {
2835
- return _hasUnicode(string)
2836
- ? _unicodeToArray(string)
2837
- : _asciiToArray(string);
2838
- }
2839
-
2840
- var _stringToArray = stringToArray;
2841
-
2842
- /**
2843
- * Creates a function like `_.lowerFirst`.
2844
- *
2845
- * @private
2846
- * @param {string} methodName The name of the `String` case method to use.
2847
- * @returns {Function} Returns the new case function.
2848
- */
2849
- function createCaseFirst(methodName) {
2850
- return function(string) {
2851
- string = toString_1(string);
2852
-
2853
- var strSymbols = _hasUnicode(string)
2854
- ? _stringToArray(string)
2855
- : undefined;
2856
-
2857
- var chr = strSymbols
2858
- ? strSymbols[0]
2859
- : string.charAt(0);
2860
-
2861
- var trailing = strSymbols
2862
- ? _castSlice(strSymbols, 1).join('')
2863
- : string.slice(1);
2864
-
2865
- return chr[methodName]() + trailing;
2866
- };
2867
- }
2868
-
2869
- var _createCaseFirst = createCaseFirst;
2870
-
2871
- /**
2872
- * Converts the first character of `string` to upper case.
2873
- *
2874
- * @static
2875
- * @memberOf _
2876
- * @since 4.0.0
2877
- * @category String
2878
- * @param {string} [string=''] The string to convert.
2879
- * @returns {string} Returns the converted string.
2880
- * @example
2881
- *
2882
- * _.upperFirst('fred');
2883
- * // => 'Fred'
2884
- *
2885
- * _.upperFirst('FRED');
2886
- * // => 'FRED'
2887
- */
2888
- var upperFirst = _createCaseFirst('toUpperCase');
2889
-
2890
- var upperFirst_1 = upperFirst;
2891
-
2892
- /**
2893
- * Converts the first character of `string` to upper case and the remaining
2894
- * to lower case.
2895
- *
2896
- * @static
2897
- * @memberOf _
2898
- * @since 3.0.0
2899
- * @category String
2900
- * @param {string} [string=''] The string to capitalize.
2901
- * @returns {string} Returns the capitalized string.
2902
- * @example
2903
- *
2904
- * _.capitalize('FRED');
2905
- * // => 'Fred'
2906
- */
2907
- function capitalize(string) {
2908
- return upperFirst_1(toString_1(string).toLowerCase());
2909
- }
2910
-
2911
- var capitalize_1 = capitalize;
2912
-
2913
- /**
2914
- * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
2915
- *
2916
- * @static
2917
- * @memberOf _
2918
- * @since 3.0.0
2919
- * @category String
2920
- * @param {string} [string=''] The string to convert.
2921
- * @returns {string} Returns the camel cased string.
2922
- * @example
2923
- *
2924
- * _.camelCase('Foo Bar');
2925
- * // => 'fooBar'
2926
- *
2927
- * _.camelCase('--foo-bar--');
2928
- * // => 'fooBar'
2929
- *
2930
- * _.camelCase('__FOO_BAR__');
2931
- * // => 'fooBar'
2932
- */
2933
- var camelCase = _createCompounder(function(result, word, index) {
2934
- word = word.toLowerCase();
2935
- return result + (index ? capitalize_1(word) : word);
2936
- });
2937
-
2938
- var camelCase_1 = camelCase;
2939
-
2940
353
  var _styleModuleImportMap = {
2941
354
  "./social-share-template.m.css": {
2942
355
  "desktop-view": "social-share-template-m_desktop-view__3TmkO",
@@ -2960,10 +373,10 @@ var ShareItem = function ShareItem(_ref) {
2960
373
  url = _ref.url,
2961
374
  icon = _ref.icon,
2962
375
  dataTestId = _ref.dataTestId;
2963
- return url ? /*#__PURE__*/React.createElement("li", {
376
+ return url ? /*#__PURE__*/React__default["default"].createElement("li", {
2964
377
  "data-testid": dataTestId,
2965
378
  className: "social-share-template-m_icon__1Mnu5"
2966
- }, /*#__PURE__*/React.createElement("a", {
379
+ }, /*#__PURE__*/React__default["default"].createElement("a", {
2967
380
  href: url,
2968
381
  target: "_blank",
2969
382
  rel: "noopener noreferrer",
@@ -2973,17 +386,17 @@ var ShareItem = function ShareItem(_ref) {
2973
386
  };
2974
387
 
2975
388
  ShareItem.propTypes = {
2976
- name: PropTypes.string,
2977
- url: PropTypes.string,
2978
- icon: PropTypes.node,
2979
- dataTestId: PropTypes.string
389
+ name: PropTypes__default["default"].string,
390
+ url: PropTypes__default["default"].string,
391
+ icon: PropTypes__default["default"].node,
392
+ dataTestId: PropTypes__default["default"].string
2980
393
  };
2981
394
 
2982
395
  function getActionIcon(open, color) {
2983
- if (!open) return /*#__PURE__*/React.createElement(ShareIcon, {
396
+ if (!open) return /*#__PURE__*/React__default["default"].createElement(ShareIcon, {
2984
397
  color: color
2985
398
  });
2986
- return /*#__PURE__*/React.createElement(CloseIcon, {
399
+ return /*#__PURE__*/React__default["default"].createElement(CloseIcon, {
2987
400
  color: color
2988
401
  });
2989
402
  }
@@ -3017,21 +430,21 @@ var SocialShareTemplate = function SocialShareTemplate(props) {
3017
430
  };
3018
431
  var iconsList = socialShareData(options);
3019
432
 
3020
- var _useState = useState(open),
3021
- _useState2 = _slicedToArray(_useState, 2),
433
+ var _useState = React.useState(open),
434
+ _useState2 = _slicedToArray__default["default"](_useState, 2),
3022
435
  isOpen = _useState2[0],
3023
436
  setIsOpen = _useState2[1];
3024
437
 
3025
438
  var verticalShare = vertical ? "vertical" : "horizontal";
3026
- useEffect(function () {
439
+ React.useEffect(function () {
3027
440
  return setIsOpen(open);
3028
441
  }, [open]);
3029
442
 
3030
443
  var shareIcon = function shareIcon() {
3031
- return /*#__PURE__*/React.createElement("li", {
444
+ return /*#__PURE__*/React__default["default"].createElement("li", {
3032
445
  className: "social-share-template-m_icon__1Mnu5",
3033
446
  key: "horizontal-0"
3034
- }, /*#__PURE__*/React.createElement("div", {
447
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3035
448
  onClick: clickHandler
3036
449
  }, getActionIcon(isOpen, iconColor)));
3037
450
  };
@@ -3041,16 +454,16 @@ var SocialShareTemplate = function SocialShareTemplate(props) {
3041
454
  };
3042
455
 
3043
456
  var popUpWrapper = function popUpWrapper() {
3044
- return /*#__PURE__*/React.createElement("div", {
457
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3045
458
  className: "social-share-template-m_tablet-view__kATzi"
3046
- }, !isOpen && /*#__PURE__*/React.createElement("ul", {
3047
- className: _getClassName("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap)
3048
- }, shareIcon()), isOpen && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
459
+ }, !isOpen && /*#__PURE__*/React__default["default"].createElement("ul", {
460
+ className: _getClassName__default["default"]("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap)
461
+ }, shareIcon()), isOpen && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3049
462
  className: "social-share-template-m_overlay__1nBp-",
3050
463
  onClick: clickHandler
3051
- }, /*#__PURE__*/React.createElement("div", {
3052
- className: "arr--popup " + _getClassName("popup-wrapper ".concat(isOpen ? "popup-open" : ""), _styleModuleImportMap)
3053
- }, /*#__PURE__*/React.createElement(SocialSharePopup, {
464
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
465
+ className: "arr--popup " + _getClassName__default["default"]("popup-wrapper ".concat(isOpen ? "popup-open" : ""), _styleModuleImportMap)
466
+ }, /*#__PURE__*/React__default["default"].createElement(SocialSharePopup, {
3054
467
  fbUrl: fbUrl,
3055
468
  twitterUrl: twitterUrl,
3056
469
  linkedinUrl: linkedinUrl,
@@ -3064,30 +477,30 @@ var SocialShareTemplate = function SocialShareTemplate(props) {
3064
477
  };
3065
478
 
3066
479
  var popupStyle = !isOpen && vertical ? "tablet-view-popup" : "";
3067
- return /*#__PURE__*/React.createElement("div", {
480
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3068
481
  "data-test-id": verticalShare,
3069
- className: "arr--share " + _getClassName("".concat(iconShade, " ").concat(verticalShare, " ").concat(popupStyle), _styleModuleImportMap)
3070
- }, /*#__PURE__*/React.createElement("div", {
482
+ className: "arr--share " + _getClassName__default["default"]("".concat(iconShade, " ").concat(verticalShare, " ").concat(popupStyle), _styleModuleImportMap)
483
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3071
484
  className: "social-share-template-m_desktop-view__3TmkO"
3072
- }, /*#__PURE__*/React.createElement("ul", {
3073
- "data-test-id": camelCase_1(iconType),
3074
- className: "desktop-share-wrapper " + _getClassName("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap)
485
+ }, /*#__PURE__*/React__default["default"].createElement("ul", {
486
+ "data-test-id": lodash.camelCase(iconType),
487
+ className: "desktop-share-wrapper " + _getClassName__default["default"]("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap)
3075
488
  }, shareIcon(), iconsList.map(function (iconData, index) {
3076
- return /*#__PURE__*/React.createElement(ShareItem, _extends({}, iconData, {
489
+ return /*#__PURE__*/React__default["default"].createElement(ShareItem, _extends__default["default"]({}, iconData, {
3077
490
  key: iconData.name,
3078
491
  dataTestId: "card-share-".concat(index)
3079
492
  }));
3080
493
  }))), popUpWrapper());
3081
494
  };
3082
495
  SocialShareTemplate.propTypes = {
3083
- fbUrl: PropTypes.string,
3084
- twitterUrl: PropTypes.string,
3085
- linkedinUrl: PropTypes.string,
3086
- whatsappUrl: PropTypes.string,
3087
- vertical: PropTypes.bool,
3088
- theme: PropTypes.string,
3089
- iconType: PropTypes.string,
3090
- open: PropTypes["boolean"]
496
+ fbUrl: PropTypes__default["default"].string,
497
+ twitterUrl: PropTypes__default["default"].string,
498
+ linkedinUrl: PropTypes__default["default"].string,
499
+ whatsappUrl: PropTypes__default["default"].string,
500
+ vertical: PropTypes__default["default"].bool,
501
+ theme: PropTypes__default["default"].string,
502
+ iconType: PropTypes__default["default"].string,
503
+ open: PropTypes__default["default"]["boolean"]
3091
504
  };
3092
505
 
3093
- export { SocialShareTemplate };
506
+ exports.SocialShareTemplate = SocialShareTemplate;