@ably/ui 8.1.1 → 8.2.1-dev.0f465a1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/Footer.jsx +1 -3
- package/core/Meganav/component.css +11 -1
- package/core/Meganav/component.js +1 -1
- package/core/Meganav/component.json +4 -4
- package/core/Meganav.jsx +537 -370
- package/core/MeganavBlogPostsList/component.js +1 -1
- package/core/MeganavBlogPostsList.jsx +7 -4
- package/core/MeganavContentCompany/component.js +1 -0
- package/core/MeganavContentCompany.jsx +1514 -0
- package/core/MeganavContentDevelopers.jsx +80 -102
- package/core/MeganavContentPlatform.jsx +58 -34
- package/core/MeganavContentUseCases.jsx +128 -36
- package/core/MeganavContentWhyAbly/component.js +22 -1
- package/core/MeganavContentWhyAbly.jsx +2138 -330
- package/core/MeganavControl/component.js +1 -1
- package/core/MeganavControl.jsx +3 -1
- package/core/MeganavControlMobilePanelClose.jsx +7 -4
- package/core/MeganavItemsDesktop.jsx +13 -5
- package/core/MeganavItemsMobile.jsx +11 -6
- package/core/MeganavItemsSignedIn.jsx +5 -2
- package/core/MeganavSearch.jsx +1 -1
- package/core/MeganavSearchPanel.jsx +1 -1
- package/core/MeganavSearchSuggestions/component.js +1 -1
- package/core/Notice/component.js +1 -1
- package/core/images/icon-tech-aws.svg +4 -0
- package/core/scripts.js +1 -1
- package/core/sprites.svg +150 -0
- package/core/styles.css +4 -0
- package/package.json +1 -1
- package/src/core/Footer/component.html.erb +1 -1
- package/src/core/Footer/component.jsx +1 -6
- package/src/core/Meganav/component.css +11 -1
- package/src/core/Meganav/component.json +4 -4
- package/src/core/Meganav/component.jsx +2 -2
- package/src/core/Meganav/component.rb +8 -4
- package/src/core/MeganavBlogPostsList/component.html.erb +4 -4
- package/src/core/MeganavBlogPostsList/component.js +2 -2
- package/src/core/MeganavBlogPostsList/component.jsx +6 -4
- package/src/core/MeganavContentCompany/component.html.erb +81 -0
- package/src/core/{MeganavContentWhyAbly → MeganavContentCompany}/component.js +0 -0
- package/src/core/MeganavContentCompany/component.jsx +108 -0
- package/src/core/{MeganavContentWhyAbly → MeganavContentCompany}/component.rb +2 -1
- package/src/core/MeganavContentDevelopers/component.html.erb +101 -80
- package/src/core/MeganavContentDevelopers/component.jsx +102 -83
- package/src/core/MeganavContentPlatform/component.html.erb +95 -85
- package/src/core/MeganavContentPlatform/component.jsx +105 -92
- package/src/core/MeganavContentUseCases/component.html.erb +112 -83
- package/src/core/MeganavContentUseCases/component.jsx +114 -87
- package/src/core/MeganavControl/component.html.erb +1 -1
- package/src/core/MeganavControl/component.js +9 -1
- package/src/core/MeganavControl/component.jsx +3 -2
- package/src/core/MeganavControl/component.rb +8 -2
- package/src/core/MeganavControlMobilePanelClose/component.html.erb +4 -2
- package/src/core/MeganavControlMobilePanelClose/component.jsx +3 -2
- package/src/core/MeganavControlMobilePanelClose/component.rb +4 -1
- package/src/core/MeganavItemsDesktop/component.html.erb +4 -3
- package/src/core/MeganavItemsDesktop/component.jsx +5 -3
- package/src/core/MeganavItemsDesktop/component.rb +8 -0
- package/src/core/MeganavItemsMobile/component.html.erb +1 -1
- package/src/core/MeganavItemsMobile/component.jsx +2 -1
- package/src/core/MeganavItemsMobile/component.rb +4 -0
- package/src/core/MeganavItemsSignedIn/component.html.erb +1 -1
- package/src/core/MeganavItemsSignedIn/component.jsx +1 -1
- package/src/core/MeganavSearchPanel/component.html.erb +1 -1
- package/src/core/MeganavSearchPanel/component.jsx +1 -1
- package/src/core/MeganavSearchSuggestions/component.html.erb +2 -2
- package/src/core/MeganavSearchSuggestions/component.js +15 -5
- package/src/core/core.rb +4 -0
- package/src/core/icons/icon-display-about-ably-col.svg +4 -0
- package/src/core/icons/icon-display-careers-col.svg +9 -0
- package/src/core/icons/icon-display-case-studies-col.svg +5 -0
- package/src/core/icons/icon-display-chat-stack-col.svg +4 -0
- package/src/core/icons/icon-display-chat-stack.svg +4 -0
- package/src/core/icons/icon-display-compare-tech-col.svg +9 -0
- package/src/core/icons/icon-display-customers-col.svg +15 -0
- package/src/core/icons/icon-display-docs-col.svg +7 -0
- package/src/core/icons/icon-display-lightbulb-col.svg +10 -0
- package/src/core/icons/icon-display-quickstart-guides-col.svg +8 -0
- package/src/core/icons/icon-display-resources-col.svg +21 -0
- package/src/core/icons/icon-display-sdks-col.svg +11 -0
- package/src/core/icons/icon-display-tutorials-demos-col.svg +25 -0
- package/src/core/icons/icon-display-virtual-events-col.svg +12 -0
- package/src/core/icons/icon-display-virtual-events.svg +12 -0
- package/src/core/icons/icon-gui-copy.svg +10 -0
- package/src/core/images/icon-tech-aws.svg +4 -0
- package/src/core/styles/layout.css +4 -0
- package/core/images/blog-thumb1.jpg +0 -0
- package/core/images/blog-thumb2.jpg +0 -0
- package/core/images/blog-thumb3.jpg +0 -0
- package/src/core/MeganavContentWhyAbly/component.html.erb +0 -70
- package/src/core/MeganavContentWhyAbly/component.jsx +0 -95
- package/src/core/images/blog-thumb1.jpg +0 -0
- package/src/core/images/blog-thumb2.jpg +0 -0
- package/src/core/images/blog-thumb3.jpg +0 -0
|
@@ -7,29 +7,118 @@
|
|
|
7
7
|
var a = typeof exports === 'object' ? factory(require("react")) : factory(root[undefined]);
|
|
8
8
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
9
|
}
|
|
10
|
-
})(this, function(
|
|
10
|
+
})(this, function(__WEBPACK_EXTERNAL_MODULE_react__) {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
14
|
-
/***/
|
|
14
|
+
/***/ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js":
|
|
15
|
+
/*!*******************************************************************!*\
|
|
16
|
+
!*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
|
|
17
|
+
\*******************************************************************/
|
|
18
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
19
|
+
|
|
20
|
+
"use strict";
|
|
21
|
+
__webpack_require__.r(__webpack_exports__);
|
|
22
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23
|
+
/* harmony export */ "default": () => (/* binding */ _defineProperty)
|
|
24
|
+
/* harmony export */ });
|
|
25
|
+
function _defineProperty(obj, key, value) {
|
|
26
|
+
if (key in obj) {
|
|
27
|
+
Object.defineProperty(obj, key, {
|
|
28
|
+
value: value,
|
|
29
|
+
enumerable: true,
|
|
30
|
+
configurable: true,
|
|
31
|
+
writable: true
|
|
32
|
+
});
|
|
33
|
+
} else {
|
|
34
|
+
obj[key] = value;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return obj;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/***/ }),
|
|
41
|
+
|
|
42
|
+
/***/ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js":
|
|
43
|
+
/*!******************************************************************!*\
|
|
44
|
+
!*** ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***!
|
|
45
|
+
\******************************************************************/
|
|
46
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
47
|
+
|
|
48
|
+
"use strict";
|
|
49
|
+
__webpack_require__.r(__webpack_exports__);
|
|
50
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
51
|
+
/* harmony export */ "default": () => (/* binding */ _objectSpread2)
|
|
52
|
+
/* harmony export */ });
|
|
53
|
+
/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
function ownKeys(object, enumerableOnly) {
|
|
57
|
+
var keys = Object.keys(object);
|
|
58
|
+
|
|
59
|
+
if (Object.getOwnPropertySymbols) {
|
|
60
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
61
|
+
|
|
62
|
+
if (enumerableOnly) {
|
|
63
|
+
symbols = symbols.filter(function (sym) {
|
|
64
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
keys.push.apply(keys, symbols);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return keys;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function _objectSpread2(target) {
|
|
75
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
76
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
77
|
+
|
|
78
|
+
if (i % 2) {
|
|
79
|
+
ownKeys(Object(source), true).forEach(function (key) {
|
|
80
|
+
(0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__.default)(target, key, source[key]);
|
|
81
|
+
});
|
|
82
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
|
83
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
84
|
+
} else {
|
|
85
|
+
ownKeys(Object(source)).forEach(function (key) {
|
|
86
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return target;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/***/ }),
|
|
95
|
+
|
|
96
|
+
/***/ "./node_modules/@babel/runtime/regenerator/index.js":
|
|
97
|
+
/*!**********************************************************!*\
|
|
98
|
+
!*** ./node_modules/@babel/runtime/regenerator/index.js ***!
|
|
99
|
+
\**********************************************************/
|
|
15
100
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
16
101
|
|
|
17
|
-
|
|
102
|
+
module.exports = __webpack_require__(/*! regenerator-runtime */ "./node_modules/regenerator-runtime/runtime.js");
|
|
18
103
|
|
|
19
104
|
|
|
20
105
|
/***/ }),
|
|
21
106
|
|
|
22
|
-
/***/
|
|
107
|
+
/***/ "./src/core/ConnectStateWrapper/component.jsx":
|
|
108
|
+
/*!****************************************************!*\
|
|
109
|
+
!*** ./src/core/ConnectStateWrapper/component.jsx ***!
|
|
110
|
+
\****************************************************/
|
|
23
111
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
24
112
|
|
|
25
113
|
"use strict";
|
|
114
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
115
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
116
|
+
/* harmony export */ "ConnectStateWrapper": () => (/* binding */ ConnectStateWrapper),
|
|
27
117
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
28
118
|
/* harmony export */ });
|
|
29
|
-
/*
|
|
30
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9281);
|
|
119
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
31
120
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
32
|
-
/* harmony import */ var _remote_data_store__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
121
|
+
/* harmony import */ var _remote_data_store__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../remote-data-store */ "./src/core/remote-data-store.js");
|
|
33
122
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
34
123
|
|
|
35
124
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -77,7 +166,7 @@ var ConnectStateWrapper = function ConnectStateWrapper(Component, selectors) {
|
|
|
77
166
|
};
|
|
78
167
|
|
|
79
168
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
|
80
|
-
var store = (0,_remote_data_store__WEBPACK_IMPORTED_MODULE_1__
|
|
169
|
+
var store = (0,_remote_data_store__WEBPACK_IMPORTED_MODULE_1__.getRemoteDataStore)();
|
|
81
170
|
var resolvedState = Object.keys(selectors).reduce(function (acc, key) {
|
|
82
171
|
return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, key, selectors[key](store)));
|
|
83
172
|
}, {}); // Set initial state
|
|
@@ -86,7 +175,7 @@ var ConnectStateWrapper = function ConnectStateWrapper(Component, selectors) {
|
|
|
86
175
|
// When optimising for renders, look for wins with selectors better for your use and using connectState directly.
|
|
87
176
|
|
|
88
177
|
Object.keys(selectors).forEach(function (key) {
|
|
89
|
-
(0,_remote_data_store__WEBPACK_IMPORTED_MODULE_1__
|
|
178
|
+
(0,_remote_data_store__WEBPACK_IMPORTED_MODULE_1__.connectState)(selectors[key], setStateForKey(key));
|
|
90
179
|
});
|
|
91
180
|
}, []);
|
|
92
181
|
|
|
@@ -100,18 +189,22 @@ var ConnectStateWrapper = function ConnectStateWrapper(Component, selectors) {
|
|
|
100
189
|
|
|
101
190
|
/***/ }),
|
|
102
191
|
|
|
103
|
-
/***/
|
|
192
|
+
/***/ "./src/core/FeaturedLink/component.jsx":
|
|
193
|
+
/*!*********************************************!*\
|
|
194
|
+
!*** ./src/core/FeaturedLink/component.jsx ***!
|
|
195
|
+
\*********************************************/
|
|
104
196
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
105
197
|
|
|
106
198
|
"use strict";
|
|
199
|
+
__webpack_require__.r(__webpack_exports__);
|
|
107
200
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
108
201
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
109
202
|
/* harmony export */ });
|
|
110
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
203
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
111
204
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
112
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
205
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
|
|
113
206
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
114
|
-
/* harmony import */ var _Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
207
|
+
/* harmony import */ var _Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Icon/component.jsx */ "./src/core/Icon/component.jsx");
|
|
115
208
|
|
|
116
209
|
|
|
117
210
|
|
|
@@ -150,16 +243,20 @@ FeaturedLink.propTypes = {
|
|
|
150
243
|
|
|
151
244
|
/***/ }),
|
|
152
245
|
|
|
153
|
-
/***/
|
|
246
|
+
/***/ "./src/core/Icon/component.jsx":
|
|
247
|
+
/*!*************************************!*\
|
|
248
|
+
!*** ./src/core/Icon/component.jsx ***!
|
|
249
|
+
\*************************************/
|
|
154
250
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
155
251
|
|
|
156
252
|
"use strict";
|
|
253
|
+
__webpack_require__.r(__webpack_exports__);
|
|
157
254
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
158
255
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
159
256
|
/* harmony export */ });
|
|
160
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
257
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
161
258
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
162
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
259
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
|
|
163
260
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
164
261
|
var _excluded = ["name", "size", "color", "additionalCSS"];
|
|
165
262
|
|
|
@@ -203,212 +300,2036 @@ Icon.propTypes = {
|
|
|
203
300
|
|
|
204
301
|
/***/ }),
|
|
205
302
|
|
|
206
|
-
/***/
|
|
303
|
+
/***/ "./src/core/MeganavBlogPostsList/component.jsx":
|
|
304
|
+
/*!*****************************************************!*\
|
|
305
|
+
!*** ./src/core/MeganavBlogPostsList/component.jsx ***!
|
|
306
|
+
\*****************************************************/
|
|
207
307
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
208
308
|
|
|
209
309
|
"use strict";
|
|
310
|
+
__webpack_require__.r(__webpack_exports__);
|
|
210
311
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
211
312
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
212
313
|
/* harmony export */ });
|
|
213
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
314
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
214
315
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
215
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
316
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
|
|
216
317
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
217
|
-
/* harmony import */ var _FeaturedLink_component_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
318
|
+
/* harmony import */ var _FeaturedLink_component_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../FeaturedLink/component.jsx */ "./src/core/FeaturedLink/component.jsx");
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
var MeganavBlogPostsList = function MeganavBlogPostsList(_ref) {
|
|
324
|
+
var recentBlogPosts = _ref.recentBlogPosts,
|
|
325
|
+
absUrl = _ref.absUrl;
|
|
326
|
+
return recentBlogPosts ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h3", {
|
|
327
|
+
className: "ui-meganav-overline",
|
|
328
|
+
id: "meganav-why-ably-panel-list-blog"
|
|
329
|
+
}, "Blog"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("ul", {
|
|
330
|
+
className: "mb-8",
|
|
331
|
+
"aria-labelledby": "meganav-why-ably-panel-list-blog"
|
|
332
|
+
}, recentBlogPosts.map(function (post) {
|
|
333
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", {
|
|
334
|
+
key: post.link
|
|
335
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
336
|
+
href: post.link,
|
|
337
|
+
className: "ui-meganav-media group"
|
|
338
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
339
|
+
className: "ui-meganav-media-heading"
|
|
340
|
+
}, post.title), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
341
|
+
className: "ui-meganav-media-copy"
|
|
342
|
+
}, post.pubDate)));
|
|
343
|
+
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_FeaturedLink_component_jsx__WEBPACK_IMPORTED_MODULE_2__.default, {
|
|
344
|
+
url: absUrl("/blog")
|
|
345
|
+
}, "More from our Blog")) : null;
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
MeganavBlogPostsList.propTypes = {
|
|
349
|
+
recentBlogPosts: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({
|
|
350
|
+
link: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
351
|
+
title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
352
|
+
pubDate: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
|
353
|
+
})),
|
|
354
|
+
absUrl: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)
|
|
355
|
+
};
|
|
356
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MeganavBlogPostsList);
|
|
357
|
+
|
|
358
|
+
/***/ }),
|
|
359
|
+
|
|
360
|
+
/***/ "./src/core/remote-blogs-posts.js":
|
|
361
|
+
/*!****************************************!*\
|
|
362
|
+
!*** ./src/core/remote-blogs-posts.js ***!
|
|
363
|
+
\****************************************/
|
|
364
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
365
|
+
|
|
366
|
+
"use strict";
|
|
367
|
+
__webpack_require__.r(__webpack_exports__);
|
|
368
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
369
|
+
/* harmony export */ "fetchBlogPosts": () => (/* binding */ fetchBlogPosts),
|
|
370
|
+
/* harmony export */ "reducerBlogPosts": () => (/* binding */ reducerBlogPosts),
|
|
371
|
+
/* harmony export */ "selectRecentBlogPosts": () => (/* binding */ selectRecentBlogPosts)
|
|
372
|
+
/* harmony export */ });
|
|
373
|
+
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
|
|
374
|
+
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
|
|
375
|
+
/* harmony import */ var _remote_data_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./remote-data-util */ "./src/core/remote-data-util.js");
|
|
376
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
377
|
+
|
|
378
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
379
|
+
|
|
380
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
385
|
+
|
|
386
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
var fetchBlogPosts = /*#__PURE__*/function () {
|
|
391
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee(store, blogUrl) {
|
|
392
|
+
var res, payload;
|
|
393
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {
|
|
394
|
+
while (1) {
|
|
395
|
+
switch (_context.prev = _context.next) {
|
|
396
|
+
case 0:
|
|
397
|
+
_context.prev = 0;
|
|
398
|
+
|
|
399
|
+
if (blogUrl) {
|
|
400
|
+
_context.next = 4;
|
|
401
|
+
break;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
console.log("Skipping fetching blog posts, invalid blogUrl: \"".concat(blogUrl, "\""));
|
|
405
|
+
return _context.abrupt("return");
|
|
406
|
+
|
|
407
|
+
case 4:
|
|
408
|
+
_context.next = 6;
|
|
409
|
+
return fetch(blogUrl);
|
|
410
|
+
|
|
411
|
+
case 6:
|
|
412
|
+
res = _context.sent;
|
|
413
|
+
|
|
414
|
+
if (!(0,_remote_data_util__WEBPACK_IMPORTED_MODULE_1__.isJsonResponse)(res.headers.get("content-type"))) {
|
|
415
|
+
_context.next = 14;
|
|
416
|
+
break;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
_context.next = 10;
|
|
420
|
+
return res.json();
|
|
421
|
+
|
|
422
|
+
case 10:
|
|
423
|
+
payload = _context.sent;
|
|
424
|
+
store.dispatch({
|
|
425
|
+
type: "blog/loaded",
|
|
426
|
+
payload: payload
|
|
427
|
+
});
|
|
428
|
+
_context.next = 15;
|
|
429
|
+
break;
|
|
430
|
+
|
|
431
|
+
case 14:
|
|
432
|
+
throw new Error("Blog posts url is not serving json");
|
|
433
|
+
|
|
434
|
+
case 15:
|
|
435
|
+
_context.next = 20;
|
|
436
|
+
break;
|
|
437
|
+
|
|
438
|
+
case 17:
|
|
439
|
+
_context.prev = 17;
|
|
440
|
+
_context.t0 = _context["catch"](0);
|
|
441
|
+
console.warn("Could not fetch blog posts due to error:", _context.t0);
|
|
442
|
+
|
|
443
|
+
case 20:
|
|
444
|
+
case "end":
|
|
445
|
+
return _context.stop();
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}, _callee, null, [[0, 17]]);
|
|
449
|
+
}));
|
|
450
|
+
|
|
451
|
+
return function fetchBlogPosts(_x, _x2) {
|
|
452
|
+
return _ref.apply(this, arguments);
|
|
453
|
+
};
|
|
454
|
+
}();
|
|
455
|
+
|
|
456
|
+
var initialState = {
|
|
457
|
+
recent: null
|
|
458
|
+
};
|
|
459
|
+
var REDUCER_KEY = "blogPosts";
|
|
460
|
+
|
|
461
|
+
var reducerBlogPosts = _defineProperty({}, REDUCER_KEY, function () {
|
|
462
|
+
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;
|
|
463
|
+
var action = arguments.length > 1 ? arguments[1] : undefined;
|
|
464
|
+
|
|
465
|
+
switch (action.type) {
|
|
466
|
+
case "blog/loaded":
|
|
467
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
468
|
+
recent: action.payload
|
|
469
|
+
});
|
|
470
|
+
|
|
471
|
+
default:
|
|
472
|
+
return state;
|
|
473
|
+
}
|
|
474
|
+
});
|
|
475
|
+
|
|
476
|
+
var selectRecentBlogPosts = function selectRecentBlogPosts(store) {
|
|
477
|
+
var _store$getState$REDUC;
|
|
478
|
+
|
|
479
|
+
return (_store$getState$REDUC = store.getState()[REDUCER_KEY]) === null || _store$getState$REDUC === void 0 ? void 0 : _store$getState$REDUC.recent;
|
|
480
|
+
};
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
/***/ }),
|
|
485
|
+
|
|
486
|
+
/***/ "./src/core/remote-data-store.js":
|
|
487
|
+
/*!***************************************!*\
|
|
488
|
+
!*** ./src/core/remote-data-store.js ***!
|
|
489
|
+
\***************************************/
|
|
490
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
491
|
+
|
|
492
|
+
"use strict";
|
|
493
|
+
__webpack_require__.r(__webpack_exports__);
|
|
494
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
495
|
+
/* harmony export */ "attachStoreToWindow": () => (/* binding */ attachStoreToWindow),
|
|
496
|
+
/* harmony export */ "getRemoteDataStore": () => (/* binding */ getRemoteDataStore),
|
|
497
|
+
/* harmony export */ "connectState": () => (/* binding */ connectState),
|
|
498
|
+
/* harmony export */ "createRemoteDataStore": () => (/* binding */ createRemoteDataStore)
|
|
499
|
+
/* harmony export */ });
|
|
500
|
+
/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! redux */ "./node_modules/redux/es/redux.js");
|
|
501
|
+
|
|
502
|
+
var attachStoreToWindow = function attachStoreToWindow(store) {
|
|
503
|
+
window.AblyUi = window.AblyUi || {};
|
|
504
|
+
window.AblyUi.RemoteDataStore = store;
|
|
505
|
+
};
|
|
506
|
+
var getRemoteDataStore = function getRemoteDataStore() {
|
|
507
|
+
if (!window.AblyUi.RemoteDataStore) {
|
|
508
|
+
throw new Error("Remote store was called before one was created");
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
return window.AblyUi.RemoteDataStore;
|
|
512
|
+
};
|
|
513
|
+
var connectState = function connectState(selector, setState) {
|
|
514
|
+
var store = getRemoteDataStore();
|
|
515
|
+
var cachedOldState = selector(store);
|
|
516
|
+
store.subscribe(function () {
|
|
517
|
+
var newState = selector(store); // Do nothing, state is the same
|
|
518
|
+
|
|
519
|
+
if (newState === cachedOldState) {
|
|
520
|
+
return;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
cachedOldState = newState;
|
|
524
|
+
setState(newState);
|
|
525
|
+
});
|
|
526
|
+
};
|
|
527
|
+
var createRemoteDataStore = function createRemoteDataStore(reducers) {
|
|
528
|
+
return (0,redux__WEBPACK_IMPORTED_MODULE_0__.createStore)((0,redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers)(reducers));
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
/***/ }),
|
|
532
|
+
|
|
533
|
+
/***/ "./src/core/remote-data-util.js":
|
|
534
|
+
/*!**************************************!*\
|
|
535
|
+
!*** ./src/core/remote-data-util.js ***!
|
|
536
|
+
\**************************************/
|
|
537
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
538
|
+
|
|
539
|
+
"use strict";
|
|
540
|
+
__webpack_require__.r(__webpack_exports__);
|
|
541
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
542
|
+
/* harmony export */ "isJsonResponse": () => (/* binding */ isJsonResponse)
|
|
543
|
+
/* harmony export */ });
|
|
544
|
+
// isJsonResponse is useful for environments where hitting an endpoint
|
|
545
|
+
// would return an html page (eg. Gatsby local dev)
|
|
546
|
+
var isJsonResponse = function isJsonResponse(contentType) {
|
|
547
|
+
return contentType && contentType.includes("application/json");
|
|
548
|
+
};
|
|
549
|
+
|
|
550
|
+
/***/ }),
|
|
551
|
+
|
|
552
|
+
/***/ "./node_modules/object-assign/index.js":
|
|
553
|
+
/*!*********************************************!*\
|
|
554
|
+
!*** ./node_modules/object-assign/index.js ***!
|
|
555
|
+
\*********************************************/
|
|
556
|
+
/***/ ((module) => {
|
|
557
|
+
|
|
558
|
+
"use strict";
|
|
559
|
+
/*
|
|
560
|
+
object-assign
|
|
561
|
+
(c) Sindre Sorhus
|
|
562
|
+
@license MIT
|
|
563
|
+
*/
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
/* eslint-disable no-unused-vars */
|
|
567
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
568
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
569
|
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
570
|
+
|
|
571
|
+
function toObject(val) {
|
|
572
|
+
if (val === null || val === undefined) {
|
|
573
|
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
return Object(val);
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
function shouldUseNative() {
|
|
580
|
+
try {
|
|
581
|
+
if (!Object.assign) {
|
|
582
|
+
return false;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
// Detect buggy property enumeration order in older V8 versions.
|
|
586
|
+
|
|
587
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
588
|
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
589
|
+
test1[5] = 'de';
|
|
590
|
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
591
|
+
return false;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
595
|
+
var test2 = {};
|
|
596
|
+
for (var i = 0; i < 10; i++) {
|
|
597
|
+
test2['_' + String.fromCharCode(i)] = i;
|
|
598
|
+
}
|
|
599
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
600
|
+
return test2[n];
|
|
601
|
+
});
|
|
602
|
+
if (order2.join('') !== '0123456789') {
|
|
603
|
+
return false;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
607
|
+
var test3 = {};
|
|
608
|
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
609
|
+
test3[letter] = letter;
|
|
610
|
+
});
|
|
611
|
+
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
612
|
+
'abcdefghijklmnopqrst') {
|
|
613
|
+
return false;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
return true;
|
|
617
|
+
} catch (err) {
|
|
618
|
+
// We don't expect any of the above to throw, but better to be safe.
|
|
619
|
+
return false;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
624
|
+
var from;
|
|
625
|
+
var to = toObject(target);
|
|
626
|
+
var symbols;
|
|
627
|
+
|
|
628
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
629
|
+
from = Object(arguments[s]);
|
|
630
|
+
|
|
631
|
+
for (var key in from) {
|
|
632
|
+
if (hasOwnProperty.call(from, key)) {
|
|
633
|
+
to[key] = from[key];
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
if (getOwnPropertySymbols) {
|
|
638
|
+
symbols = getOwnPropertySymbols(from);
|
|
639
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
640
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
641
|
+
to[symbols[i]] = from[symbols[i]];
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
return to;
|
|
648
|
+
};
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
/***/ }),
|
|
652
|
+
|
|
653
|
+
/***/ "./node_modules/prop-types/checkPropTypes.js":
|
|
654
|
+
/*!***************************************************!*\
|
|
655
|
+
!*** ./node_modules/prop-types/checkPropTypes.js ***!
|
|
656
|
+
\***************************************************/
|
|
657
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
658
|
+
|
|
659
|
+
"use strict";
|
|
660
|
+
/**
|
|
661
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
662
|
+
*
|
|
663
|
+
* This source code is licensed under the MIT license found in the
|
|
664
|
+
* LICENSE file in the root directory of this source tree.
|
|
665
|
+
*/
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
var printWarning = function() {};
|
|
670
|
+
|
|
671
|
+
if (true) {
|
|
672
|
+
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
673
|
+
var loggedTypeFailures = {};
|
|
674
|
+
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
675
|
+
|
|
676
|
+
printWarning = function(text) {
|
|
677
|
+
var message = 'Warning: ' + text;
|
|
678
|
+
if (typeof console !== 'undefined') {
|
|
679
|
+
console.error(message);
|
|
680
|
+
}
|
|
681
|
+
try {
|
|
682
|
+
// --- Welcome to debugging React ---
|
|
683
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
684
|
+
// to find the callsite that caused this warning to fire.
|
|
685
|
+
throw new Error(message);
|
|
686
|
+
} catch (x) {}
|
|
687
|
+
};
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* Assert that the values match with the type specs.
|
|
692
|
+
* Error messages are memorized and will only be shown once.
|
|
693
|
+
*
|
|
694
|
+
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
695
|
+
* @param {object} values Runtime values that need to be type-checked
|
|
696
|
+
* @param {string} location e.g. "prop", "context", "child context"
|
|
697
|
+
* @param {string} componentName Name of the component for error messages.
|
|
698
|
+
* @param {?Function} getStack Returns the component stack.
|
|
699
|
+
* @private
|
|
700
|
+
*/
|
|
701
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
702
|
+
if (true) {
|
|
703
|
+
for (var typeSpecName in typeSpecs) {
|
|
704
|
+
if (has(typeSpecs, typeSpecName)) {
|
|
705
|
+
var error;
|
|
706
|
+
// Prop type validation may throw. In case they do, we don't want to
|
|
707
|
+
// fail the render phase where it didn't fail before. So we log it.
|
|
708
|
+
// After these have been cleaned up, we'll let them throw.
|
|
709
|
+
try {
|
|
710
|
+
// This is intentionally an invariant that gets caught. It's the same
|
|
711
|
+
// behavior as without this statement except with a better message.
|
|
712
|
+
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
713
|
+
var err = Error(
|
|
714
|
+
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
715
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
716
|
+
);
|
|
717
|
+
err.name = 'Invariant Violation';
|
|
718
|
+
throw err;
|
|
719
|
+
}
|
|
720
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
721
|
+
} catch (ex) {
|
|
722
|
+
error = ex;
|
|
723
|
+
}
|
|
724
|
+
if (error && !(error instanceof Error)) {
|
|
725
|
+
printWarning(
|
|
726
|
+
(componentName || 'React class') + ': type specification of ' +
|
|
727
|
+
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
728
|
+
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
729
|
+
'You may have forgotten to pass an argument to the type checker ' +
|
|
730
|
+
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
731
|
+
'shape all require an argument).'
|
|
732
|
+
);
|
|
733
|
+
}
|
|
734
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
735
|
+
// Only monitor this failure once because there tends to be a lot of the
|
|
736
|
+
// same error.
|
|
737
|
+
loggedTypeFailures[error.message] = true;
|
|
738
|
+
|
|
739
|
+
var stack = getStack ? getStack() : '';
|
|
740
|
+
|
|
741
|
+
printWarning(
|
|
742
|
+
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
743
|
+
);
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* Resets warning cache when testing.
|
|
752
|
+
*
|
|
753
|
+
* @private
|
|
754
|
+
*/
|
|
755
|
+
checkPropTypes.resetWarningCache = function() {
|
|
756
|
+
if (true) {
|
|
757
|
+
loggedTypeFailures = {};
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
module.exports = checkPropTypes;
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
/***/ }),
|
|
765
|
+
|
|
766
|
+
/***/ "./node_modules/prop-types/factoryWithTypeCheckers.js":
|
|
767
|
+
/*!************************************************************!*\
|
|
768
|
+
!*** ./node_modules/prop-types/factoryWithTypeCheckers.js ***!
|
|
769
|
+
\************************************************************/
|
|
770
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
771
|
+
|
|
772
|
+
"use strict";
|
|
773
|
+
/**
|
|
774
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
775
|
+
*
|
|
776
|
+
* This source code is licensed under the MIT license found in the
|
|
777
|
+
* LICENSE file in the root directory of this source tree.
|
|
778
|
+
*/
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
var ReactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
|
|
783
|
+
var assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
|
|
784
|
+
|
|
785
|
+
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
786
|
+
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js");
|
|
787
|
+
|
|
788
|
+
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
789
|
+
var printWarning = function() {};
|
|
790
|
+
|
|
791
|
+
if (true) {
|
|
792
|
+
printWarning = function(text) {
|
|
793
|
+
var message = 'Warning: ' + text;
|
|
794
|
+
if (typeof console !== 'undefined') {
|
|
795
|
+
console.error(message);
|
|
796
|
+
}
|
|
797
|
+
try {
|
|
798
|
+
// --- Welcome to debugging React ---
|
|
799
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
800
|
+
// to find the callsite that caused this warning to fire.
|
|
801
|
+
throw new Error(message);
|
|
802
|
+
} catch (x) {}
|
|
803
|
+
};
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
function emptyFunctionThatReturnsNull() {
|
|
807
|
+
return null;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
811
|
+
/* global Symbol */
|
|
812
|
+
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
813
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* Returns the iterator method function contained on the iterable object.
|
|
817
|
+
*
|
|
818
|
+
* Be sure to invoke the function with the iterable as context:
|
|
819
|
+
*
|
|
820
|
+
* var iteratorFn = getIteratorFn(myIterable);
|
|
821
|
+
* if (iteratorFn) {
|
|
822
|
+
* var iterator = iteratorFn.call(myIterable);
|
|
823
|
+
* ...
|
|
824
|
+
* }
|
|
825
|
+
*
|
|
826
|
+
* @param {?object} maybeIterable
|
|
827
|
+
* @return {?function}
|
|
828
|
+
*/
|
|
829
|
+
function getIteratorFn(maybeIterable) {
|
|
830
|
+
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
831
|
+
if (typeof iteratorFn === 'function') {
|
|
832
|
+
return iteratorFn;
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Collection of methods that allow declaration and validation of props that are
|
|
838
|
+
* supplied to React components. Example usage:
|
|
839
|
+
*
|
|
840
|
+
* var Props = require('ReactPropTypes');
|
|
841
|
+
* var MyArticle = React.createClass({
|
|
842
|
+
* propTypes: {
|
|
843
|
+
* // An optional string prop named "description".
|
|
844
|
+
* description: Props.string,
|
|
845
|
+
*
|
|
846
|
+
* // A required enum prop named "category".
|
|
847
|
+
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
848
|
+
*
|
|
849
|
+
* // A prop named "dialog" that requires an instance of Dialog.
|
|
850
|
+
* dialog: Props.instanceOf(Dialog).isRequired
|
|
851
|
+
* },
|
|
852
|
+
* render: function() { ... }
|
|
853
|
+
* });
|
|
854
|
+
*
|
|
855
|
+
* A more formal specification of how these methods are used:
|
|
856
|
+
*
|
|
857
|
+
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
858
|
+
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
859
|
+
*
|
|
860
|
+
* Each and every declaration produces a function with the same signature. This
|
|
861
|
+
* allows the creation of custom validation functions. For example:
|
|
862
|
+
*
|
|
863
|
+
* var MyLink = React.createClass({
|
|
864
|
+
* propTypes: {
|
|
865
|
+
* // An optional string or URI prop named "href".
|
|
866
|
+
* href: function(props, propName, componentName) {
|
|
867
|
+
* var propValue = props[propName];
|
|
868
|
+
* if (propValue != null && typeof propValue !== 'string' &&
|
|
869
|
+
* !(propValue instanceof URI)) {
|
|
870
|
+
* return new Error(
|
|
871
|
+
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
872
|
+
* componentName
|
|
873
|
+
* );
|
|
874
|
+
* }
|
|
875
|
+
* }
|
|
876
|
+
* },
|
|
877
|
+
* render: function() {...}
|
|
878
|
+
* });
|
|
879
|
+
*
|
|
880
|
+
* @internal
|
|
881
|
+
*/
|
|
882
|
+
|
|
883
|
+
var ANONYMOUS = '<<anonymous>>';
|
|
884
|
+
|
|
885
|
+
// Important!
|
|
886
|
+
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
887
|
+
var ReactPropTypes = {
|
|
888
|
+
array: createPrimitiveTypeChecker('array'),
|
|
889
|
+
bool: createPrimitiveTypeChecker('boolean'),
|
|
890
|
+
func: createPrimitiveTypeChecker('function'),
|
|
891
|
+
number: createPrimitiveTypeChecker('number'),
|
|
892
|
+
object: createPrimitiveTypeChecker('object'),
|
|
893
|
+
string: createPrimitiveTypeChecker('string'),
|
|
894
|
+
symbol: createPrimitiveTypeChecker('symbol'),
|
|
895
|
+
|
|
896
|
+
any: createAnyTypeChecker(),
|
|
897
|
+
arrayOf: createArrayOfTypeChecker,
|
|
898
|
+
element: createElementTypeChecker(),
|
|
899
|
+
elementType: createElementTypeTypeChecker(),
|
|
900
|
+
instanceOf: createInstanceTypeChecker,
|
|
901
|
+
node: createNodeChecker(),
|
|
902
|
+
objectOf: createObjectOfTypeChecker,
|
|
903
|
+
oneOf: createEnumTypeChecker,
|
|
904
|
+
oneOfType: createUnionTypeChecker,
|
|
905
|
+
shape: createShapeTypeChecker,
|
|
906
|
+
exact: createStrictShapeTypeChecker,
|
|
907
|
+
};
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
911
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
912
|
+
*/
|
|
913
|
+
/*eslint-disable no-self-compare*/
|
|
914
|
+
function is(x, y) {
|
|
915
|
+
// SameValue algorithm
|
|
916
|
+
if (x === y) {
|
|
917
|
+
// Steps 1-5, 7-10
|
|
918
|
+
// Steps 6.b-6.e: +0 != -0
|
|
919
|
+
return x !== 0 || 1 / x === 1 / y;
|
|
920
|
+
} else {
|
|
921
|
+
// Step 6.a: NaN == NaN
|
|
922
|
+
return x !== x && y !== y;
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
/*eslint-enable no-self-compare*/
|
|
926
|
+
|
|
927
|
+
/**
|
|
928
|
+
* We use an Error-like object for backward compatibility as people may call
|
|
929
|
+
* PropTypes directly and inspect their output. However, we don't use real
|
|
930
|
+
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
931
|
+
* is prohibitively expensive if they are created too often, such as what
|
|
932
|
+
* happens in oneOfType() for any type before the one that matched.
|
|
933
|
+
*/
|
|
934
|
+
function PropTypeError(message) {
|
|
935
|
+
this.message = message;
|
|
936
|
+
this.stack = '';
|
|
937
|
+
}
|
|
938
|
+
// Make `instanceof Error` still work for returned errors.
|
|
939
|
+
PropTypeError.prototype = Error.prototype;
|
|
940
|
+
|
|
941
|
+
function createChainableTypeChecker(validate) {
|
|
942
|
+
if (true) {
|
|
943
|
+
var manualPropTypeCallCache = {};
|
|
944
|
+
var manualPropTypeWarningCount = 0;
|
|
945
|
+
}
|
|
946
|
+
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
947
|
+
componentName = componentName || ANONYMOUS;
|
|
948
|
+
propFullName = propFullName || propName;
|
|
949
|
+
|
|
950
|
+
if (secret !== ReactPropTypesSecret) {
|
|
951
|
+
if (throwOnDirectAccess) {
|
|
952
|
+
// New behavior only for users of `prop-types` package
|
|
953
|
+
var err = new Error(
|
|
954
|
+
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
955
|
+
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
956
|
+
'Read more at http://fb.me/use-check-prop-types'
|
|
957
|
+
);
|
|
958
|
+
err.name = 'Invariant Violation';
|
|
959
|
+
throw err;
|
|
960
|
+
} else if ( true && typeof console !== 'undefined') {
|
|
961
|
+
// Old behavior for people using React.PropTypes
|
|
962
|
+
var cacheKey = componentName + ':' + propName;
|
|
963
|
+
if (
|
|
964
|
+
!manualPropTypeCallCache[cacheKey] &&
|
|
965
|
+
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
966
|
+
manualPropTypeWarningCount < 3
|
|
967
|
+
) {
|
|
968
|
+
printWarning(
|
|
969
|
+
'You are manually calling a React.PropTypes validation ' +
|
|
970
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
971
|
+
'and will throw in the standalone `prop-types` package. ' +
|
|
972
|
+
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
973
|
+
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
974
|
+
);
|
|
975
|
+
manualPropTypeCallCache[cacheKey] = true;
|
|
976
|
+
manualPropTypeWarningCount++;
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
if (props[propName] == null) {
|
|
981
|
+
if (isRequired) {
|
|
982
|
+
if (props[propName] === null) {
|
|
983
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
984
|
+
}
|
|
985
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
986
|
+
}
|
|
987
|
+
return null;
|
|
988
|
+
} else {
|
|
989
|
+
return validate(props, propName, componentName, location, propFullName);
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
var chainedCheckType = checkType.bind(null, false);
|
|
994
|
+
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
995
|
+
|
|
996
|
+
return chainedCheckType;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
function createPrimitiveTypeChecker(expectedType) {
|
|
1000
|
+
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
1001
|
+
var propValue = props[propName];
|
|
1002
|
+
var propType = getPropType(propValue);
|
|
1003
|
+
if (propType !== expectedType) {
|
|
1004
|
+
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
1005
|
+
// check, but we can offer a more precise error message here rather than
|
|
1006
|
+
// 'of type `object`'.
|
|
1007
|
+
var preciseType = getPreciseType(propValue);
|
|
1008
|
+
|
|
1009
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
|
|
1010
|
+
}
|
|
1011
|
+
return null;
|
|
1012
|
+
}
|
|
1013
|
+
return createChainableTypeChecker(validate);
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
function createAnyTypeChecker() {
|
|
1017
|
+
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
function createArrayOfTypeChecker(typeChecker) {
|
|
1021
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
1022
|
+
if (typeof typeChecker !== 'function') {
|
|
1023
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
1024
|
+
}
|
|
1025
|
+
var propValue = props[propName];
|
|
1026
|
+
if (!Array.isArray(propValue)) {
|
|
1027
|
+
var propType = getPropType(propValue);
|
|
1028
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
1029
|
+
}
|
|
1030
|
+
for (var i = 0; i < propValue.length; i++) {
|
|
1031
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
1032
|
+
if (error instanceof Error) {
|
|
1033
|
+
return error;
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
return null;
|
|
1037
|
+
}
|
|
1038
|
+
return createChainableTypeChecker(validate);
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
function createElementTypeChecker() {
|
|
1042
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
1043
|
+
var propValue = props[propName];
|
|
1044
|
+
if (!isValidElement(propValue)) {
|
|
1045
|
+
var propType = getPropType(propValue);
|
|
1046
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
1047
|
+
}
|
|
1048
|
+
return null;
|
|
1049
|
+
}
|
|
1050
|
+
return createChainableTypeChecker(validate);
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
function createElementTypeTypeChecker() {
|
|
1054
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
1055
|
+
var propValue = props[propName];
|
|
1056
|
+
if (!ReactIs.isValidElementType(propValue)) {
|
|
1057
|
+
var propType = getPropType(propValue);
|
|
1058
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
1059
|
+
}
|
|
1060
|
+
return null;
|
|
1061
|
+
}
|
|
1062
|
+
return createChainableTypeChecker(validate);
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
function createInstanceTypeChecker(expectedClass) {
|
|
1066
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
1067
|
+
if (!(props[propName] instanceof expectedClass)) {
|
|
1068
|
+
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
1069
|
+
var actualClassName = getClassName(props[propName]);
|
|
1070
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
1071
|
+
}
|
|
1072
|
+
return null;
|
|
1073
|
+
}
|
|
1074
|
+
return createChainableTypeChecker(validate);
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
function createEnumTypeChecker(expectedValues) {
|
|
1078
|
+
if (!Array.isArray(expectedValues)) {
|
|
1079
|
+
if (true) {
|
|
1080
|
+
if (arguments.length > 1) {
|
|
1081
|
+
printWarning(
|
|
1082
|
+
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
|
1083
|
+
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
|
1084
|
+
);
|
|
1085
|
+
} else {
|
|
1086
|
+
printWarning('Invalid argument supplied to oneOf, expected an array.');
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
return emptyFunctionThatReturnsNull;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
1093
|
+
var propValue = props[propName];
|
|
1094
|
+
for (var i = 0; i < expectedValues.length; i++) {
|
|
1095
|
+
if (is(propValue, expectedValues[i])) {
|
|
1096
|
+
return null;
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
1101
|
+
var type = getPreciseType(value);
|
|
1102
|
+
if (type === 'symbol') {
|
|
1103
|
+
return String(value);
|
|
1104
|
+
}
|
|
1105
|
+
return value;
|
|
1106
|
+
});
|
|
1107
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
1108
|
+
}
|
|
1109
|
+
return createChainableTypeChecker(validate);
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
function createObjectOfTypeChecker(typeChecker) {
|
|
1113
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
1114
|
+
if (typeof typeChecker !== 'function') {
|
|
1115
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
1116
|
+
}
|
|
1117
|
+
var propValue = props[propName];
|
|
1118
|
+
var propType = getPropType(propValue);
|
|
1119
|
+
if (propType !== 'object') {
|
|
1120
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
1121
|
+
}
|
|
1122
|
+
for (var key in propValue) {
|
|
1123
|
+
if (has(propValue, key)) {
|
|
1124
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
1125
|
+
if (error instanceof Error) {
|
|
1126
|
+
return error;
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
return null;
|
|
1131
|
+
}
|
|
1132
|
+
return createChainableTypeChecker(validate);
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
1136
|
+
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
1137
|
+
true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
|
|
1138
|
+
return emptyFunctionThatReturnsNull;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
1142
|
+
var checker = arrayOfTypeCheckers[i];
|
|
1143
|
+
if (typeof checker !== 'function') {
|
|
1144
|
+
printWarning(
|
|
1145
|
+
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
|
1146
|
+
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
1147
|
+
);
|
|
1148
|
+
return emptyFunctionThatReturnsNull;
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
1153
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
1154
|
+
var checker = arrayOfTypeCheckers[i];
|
|
1155
|
+
if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
|
|
1156
|
+
return null;
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
|
|
1161
|
+
}
|
|
1162
|
+
return createChainableTypeChecker(validate);
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
function createNodeChecker() {
|
|
1166
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
1167
|
+
if (!isNode(props[propName])) {
|
|
1168
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
1169
|
+
}
|
|
1170
|
+
return null;
|
|
1171
|
+
}
|
|
1172
|
+
return createChainableTypeChecker(validate);
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
function createShapeTypeChecker(shapeTypes) {
|
|
1176
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
1177
|
+
var propValue = props[propName];
|
|
1178
|
+
var propType = getPropType(propValue);
|
|
1179
|
+
if (propType !== 'object') {
|
|
1180
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
1181
|
+
}
|
|
1182
|
+
for (var key in shapeTypes) {
|
|
1183
|
+
var checker = shapeTypes[key];
|
|
1184
|
+
if (!checker) {
|
|
1185
|
+
continue;
|
|
1186
|
+
}
|
|
1187
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
1188
|
+
if (error) {
|
|
1189
|
+
return error;
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
return null;
|
|
1193
|
+
}
|
|
1194
|
+
return createChainableTypeChecker(validate);
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
function createStrictShapeTypeChecker(shapeTypes) {
|
|
1198
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
1199
|
+
var propValue = props[propName];
|
|
1200
|
+
var propType = getPropType(propValue);
|
|
1201
|
+
if (propType !== 'object') {
|
|
1202
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
1203
|
+
}
|
|
1204
|
+
// We need to check all keys in case some are required but missing from
|
|
1205
|
+
// props.
|
|
1206
|
+
var allKeys = assign({}, props[propName], shapeTypes);
|
|
1207
|
+
for (var key in allKeys) {
|
|
1208
|
+
var checker = shapeTypes[key];
|
|
1209
|
+
if (!checker) {
|
|
1210
|
+
return new PropTypeError(
|
|
1211
|
+
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
1212
|
+
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
1213
|
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
1214
|
+
);
|
|
1215
|
+
}
|
|
1216
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
1217
|
+
if (error) {
|
|
1218
|
+
return error;
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
return null;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
return createChainableTypeChecker(validate);
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
function isNode(propValue) {
|
|
1228
|
+
switch (typeof propValue) {
|
|
1229
|
+
case 'number':
|
|
1230
|
+
case 'string':
|
|
1231
|
+
case 'undefined':
|
|
1232
|
+
return true;
|
|
1233
|
+
case 'boolean':
|
|
1234
|
+
return !propValue;
|
|
1235
|
+
case 'object':
|
|
1236
|
+
if (Array.isArray(propValue)) {
|
|
1237
|
+
return propValue.every(isNode);
|
|
1238
|
+
}
|
|
1239
|
+
if (propValue === null || isValidElement(propValue)) {
|
|
1240
|
+
return true;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
var iteratorFn = getIteratorFn(propValue);
|
|
1244
|
+
if (iteratorFn) {
|
|
1245
|
+
var iterator = iteratorFn.call(propValue);
|
|
1246
|
+
var step;
|
|
1247
|
+
if (iteratorFn !== propValue.entries) {
|
|
1248
|
+
while (!(step = iterator.next()).done) {
|
|
1249
|
+
if (!isNode(step.value)) {
|
|
1250
|
+
return false;
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
} else {
|
|
1254
|
+
// Iterator will provide entry [k,v] tuples rather than values.
|
|
1255
|
+
while (!(step = iterator.next()).done) {
|
|
1256
|
+
var entry = step.value;
|
|
1257
|
+
if (entry) {
|
|
1258
|
+
if (!isNode(entry[1])) {
|
|
1259
|
+
return false;
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
} else {
|
|
1265
|
+
return false;
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
return true;
|
|
1269
|
+
default:
|
|
1270
|
+
return false;
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
function isSymbol(propType, propValue) {
|
|
1275
|
+
// Native Symbol.
|
|
1276
|
+
if (propType === 'symbol') {
|
|
1277
|
+
return true;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
// falsy value can't be a Symbol
|
|
1281
|
+
if (!propValue) {
|
|
1282
|
+
return false;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
1286
|
+
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
1287
|
+
return true;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
1291
|
+
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
1292
|
+
return true;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
return false;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
1299
|
+
function getPropType(propValue) {
|
|
1300
|
+
var propType = typeof propValue;
|
|
1301
|
+
if (Array.isArray(propValue)) {
|
|
1302
|
+
return 'array';
|
|
1303
|
+
}
|
|
1304
|
+
if (propValue instanceof RegExp) {
|
|
1305
|
+
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
1306
|
+
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
1307
|
+
// passes PropTypes.object.
|
|
1308
|
+
return 'object';
|
|
1309
|
+
}
|
|
1310
|
+
if (isSymbol(propType, propValue)) {
|
|
1311
|
+
return 'symbol';
|
|
1312
|
+
}
|
|
1313
|
+
return propType;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
// This handles more types than `getPropType`. Only used for error messages.
|
|
1317
|
+
// See `createPrimitiveTypeChecker`.
|
|
1318
|
+
function getPreciseType(propValue) {
|
|
1319
|
+
if (typeof propValue === 'undefined' || propValue === null) {
|
|
1320
|
+
return '' + propValue;
|
|
1321
|
+
}
|
|
1322
|
+
var propType = getPropType(propValue);
|
|
1323
|
+
if (propType === 'object') {
|
|
1324
|
+
if (propValue instanceof Date) {
|
|
1325
|
+
return 'date';
|
|
1326
|
+
} else if (propValue instanceof RegExp) {
|
|
1327
|
+
return 'regexp';
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
return propType;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
// Returns a string that is postfixed to a warning about an invalid type.
|
|
1334
|
+
// For example, "undefined" or "of type array"
|
|
1335
|
+
function getPostfixForTypeWarning(value) {
|
|
1336
|
+
var type = getPreciseType(value);
|
|
1337
|
+
switch (type) {
|
|
1338
|
+
case 'array':
|
|
1339
|
+
case 'object':
|
|
1340
|
+
return 'an ' + type;
|
|
1341
|
+
case 'boolean':
|
|
1342
|
+
case 'date':
|
|
1343
|
+
case 'regexp':
|
|
1344
|
+
return 'a ' + type;
|
|
1345
|
+
default:
|
|
1346
|
+
return type;
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
// Returns class name of the object, if any.
|
|
1351
|
+
function getClassName(propValue) {
|
|
1352
|
+
if (!propValue.constructor || !propValue.constructor.name) {
|
|
1353
|
+
return ANONYMOUS;
|
|
1354
|
+
}
|
|
1355
|
+
return propValue.constructor.name;
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
1359
|
+
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
1360
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1361
|
+
|
|
1362
|
+
return ReactPropTypes;
|
|
1363
|
+
};
|
|
1364
|
+
|
|
1365
|
+
|
|
1366
|
+
/***/ }),
|
|
1367
|
+
|
|
1368
|
+
/***/ "./node_modules/prop-types/index.js":
|
|
1369
|
+
/*!******************************************!*\
|
|
1370
|
+
!*** ./node_modules/prop-types/index.js ***!
|
|
1371
|
+
\******************************************/
|
|
1372
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1376
|
+
*
|
|
1377
|
+
* This source code is licensed under the MIT license found in the
|
|
1378
|
+
* LICENSE file in the root directory of this source tree.
|
|
1379
|
+
*/
|
|
1380
|
+
|
|
1381
|
+
if (true) {
|
|
1382
|
+
var ReactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
|
|
1383
|
+
|
|
1384
|
+
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
1385
|
+
// http://fb.me/prop-types-in-prod
|
|
1386
|
+
var throwOnDirectAccess = true;
|
|
1387
|
+
module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "./node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
|
|
1388
|
+
} else {}
|
|
1389
|
+
|
|
1390
|
+
|
|
1391
|
+
/***/ }),
|
|
1392
|
+
|
|
1393
|
+
/***/ "./node_modules/prop-types/lib/ReactPropTypesSecret.js":
|
|
1394
|
+
/*!*************************************************************!*\
|
|
1395
|
+
!*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
|
|
1396
|
+
\*************************************************************/
|
|
1397
|
+
/***/ ((module) => {
|
|
1398
|
+
|
|
1399
|
+
"use strict";
|
|
1400
|
+
/**
|
|
1401
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1402
|
+
*
|
|
1403
|
+
* This source code is licensed under the MIT license found in the
|
|
1404
|
+
* LICENSE file in the root directory of this source tree.
|
|
1405
|
+
*/
|
|
1406
|
+
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
1410
|
+
|
|
1411
|
+
module.exports = ReactPropTypesSecret;
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
/***/ }),
|
|
1415
|
+
|
|
1416
|
+
/***/ "./node_modules/react-is/cjs/react-is.development.js":
|
|
1417
|
+
/*!***********************************************************!*\
|
|
1418
|
+
!*** ./node_modules/react-is/cjs/react-is.development.js ***!
|
|
1419
|
+
\***********************************************************/
|
|
1420
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
1421
|
+
|
|
1422
|
+
"use strict";
|
|
1423
|
+
/** @license React v16.13.1
|
|
1424
|
+
* react-is.development.js
|
|
1425
|
+
*
|
|
1426
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1427
|
+
*
|
|
1428
|
+
* This source code is licensed under the MIT license found in the
|
|
1429
|
+
* LICENSE file in the root directory of this source tree.
|
|
1430
|
+
*/
|
|
1431
|
+
|
|
1432
|
+
|
|
1433
|
+
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
if (true) {
|
|
1437
|
+
(function() {
|
|
1438
|
+
'use strict';
|
|
1439
|
+
|
|
1440
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
1441
|
+
// nor polyfill, then a plain number is used for performance.
|
|
1442
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
1443
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
1444
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
1445
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
1446
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
1447
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
1448
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
1449
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
1450
|
+
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
1451
|
+
|
|
1452
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
1453
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
1454
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
1455
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
1456
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
1457
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
1458
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
1459
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
1460
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
1461
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
1462
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
1463
|
+
|
|
1464
|
+
function isValidElementType(type) {
|
|
1465
|
+
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1466
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
function typeOf(object) {
|
|
1470
|
+
if (typeof object === 'object' && object !== null) {
|
|
1471
|
+
var $$typeof = object.$$typeof;
|
|
1472
|
+
|
|
1473
|
+
switch ($$typeof) {
|
|
1474
|
+
case REACT_ELEMENT_TYPE:
|
|
1475
|
+
var type = object.type;
|
|
1476
|
+
|
|
1477
|
+
switch (type) {
|
|
1478
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
1479
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
1480
|
+
case REACT_FRAGMENT_TYPE:
|
|
1481
|
+
case REACT_PROFILER_TYPE:
|
|
1482
|
+
case REACT_STRICT_MODE_TYPE:
|
|
1483
|
+
case REACT_SUSPENSE_TYPE:
|
|
1484
|
+
return type;
|
|
1485
|
+
|
|
1486
|
+
default:
|
|
1487
|
+
var $$typeofType = type && type.$$typeof;
|
|
1488
|
+
|
|
1489
|
+
switch ($$typeofType) {
|
|
1490
|
+
case REACT_CONTEXT_TYPE:
|
|
1491
|
+
case REACT_FORWARD_REF_TYPE:
|
|
1492
|
+
case REACT_LAZY_TYPE:
|
|
1493
|
+
case REACT_MEMO_TYPE:
|
|
1494
|
+
case REACT_PROVIDER_TYPE:
|
|
1495
|
+
return $$typeofType;
|
|
1496
|
+
|
|
1497
|
+
default:
|
|
1498
|
+
return $$typeof;
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
case REACT_PORTAL_TYPE:
|
|
1504
|
+
return $$typeof;
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
return undefined;
|
|
1509
|
+
} // AsyncMode is deprecated along with isAsyncMode
|
|
1510
|
+
|
|
1511
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
1512
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
1513
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
1514
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
1515
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
1516
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
1517
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
1518
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
1519
|
+
var Memo = REACT_MEMO_TYPE;
|
|
1520
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
1521
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
1522
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1523
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
1524
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
1525
|
+
|
|
1526
|
+
function isAsyncMode(object) {
|
|
1527
|
+
{
|
|
1528
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
1529
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
1530
|
+
|
|
1531
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
1536
|
+
}
|
|
1537
|
+
function isConcurrentMode(object) {
|
|
1538
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
1539
|
+
}
|
|
1540
|
+
function isContextConsumer(object) {
|
|
1541
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
1542
|
+
}
|
|
1543
|
+
function isContextProvider(object) {
|
|
1544
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
1545
|
+
}
|
|
1546
|
+
function isElement(object) {
|
|
1547
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1548
|
+
}
|
|
1549
|
+
function isForwardRef(object) {
|
|
1550
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
1551
|
+
}
|
|
1552
|
+
function isFragment(object) {
|
|
1553
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
1554
|
+
}
|
|
1555
|
+
function isLazy(object) {
|
|
1556
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
1557
|
+
}
|
|
1558
|
+
function isMemo(object) {
|
|
1559
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
1560
|
+
}
|
|
1561
|
+
function isPortal(object) {
|
|
1562
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
1563
|
+
}
|
|
1564
|
+
function isProfiler(object) {
|
|
1565
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
1566
|
+
}
|
|
1567
|
+
function isStrictMode(object) {
|
|
1568
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
1569
|
+
}
|
|
1570
|
+
function isSuspense(object) {
|
|
1571
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
exports.AsyncMode = AsyncMode;
|
|
1575
|
+
exports.ConcurrentMode = ConcurrentMode;
|
|
1576
|
+
exports.ContextConsumer = ContextConsumer;
|
|
1577
|
+
exports.ContextProvider = ContextProvider;
|
|
1578
|
+
exports.Element = Element;
|
|
1579
|
+
exports.ForwardRef = ForwardRef;
|
|
1580
|
+
exports.Fragment = Fragment;
|
|
1581
|
+
exports.Lazy = Lazy;
|
|
1582
|
+
exports.Memo = Memo;
|
|
1583
|
+
exports.Portal = Portal;
|
|
1584
|
+
exports.Profiler = Profiler;
|
|
1585
|
+
exports.StrictMode = StrictMode;
|
|
1586
|
+
exports.Suspense = Suspense;
|
|
1587
|
+
exports.isAsyncMode = isAsyncMode;
|
|
1588
|
+
exports.isConcurrentMode = isConcurrentMode;
|
|
1589
|
+
exports.isContextConsumer = isContextConsumer;
|
|
1590
|
+
exports.isContextProvider = isContextProvider;
|
|
1591
|
+
exports.isElement = isElement;
|
|
1592
|
+
exports.isForwardRef = isForwardRef;
|
|
1593
|
+
exports.isFragment = isFragment;
|
|
1594
|
+
exports.isLazy = isLazy;
|
|
1595
|
+
exports.isMemo = isMemo;
|
|
1596
|
+
exports.isPortal = isPortal;
|
|
1597
|
+
exports.isProfiler = isProfiler;
|
|
1598
|
+
exports.isStrictMode = isStrictMode;
|
|
1599
|
+
exports.isSuspense = isSuspense;
|
|
1600
|
+
exports.isValidElementType = isValidElementType;
|
|
1601
|
+
exports.typeOf = typeOf;
|
|
1602
|
+
})();
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
|
|
1606
|
+
/***/ }),
|
|
1607
|
+
|
|
1608
|
+
/***/ "./node_modules/react-is/index.js":
|
|
1609
|
+
/*!****************************************!*\
|
|
1610
|
+
!*** ./node_modules/react-is/index.js ***!
|
|
1611
|
+
\****************************************/
|
|
1612
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1613
|
+
|
|
1614
|
+
"use strict";
|
|
1615
|
+
|
|
1616
|
+
|
|
1617
|
+
if (false) {} else {
|
|
1618
|
+
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-is/cjs/react-is.development.js");
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
|
|
1622
|
+
/***/ }),
|
|
1623
|
+
|
|
1624
|
+
/***/ "./node_modules/redux/es/redux.js":
|
|
1625
|
+
/*!****************************************!*\
|
|
1626
|
+
!*** ./node_modules/redux/es/redux.js ***!
|
|
1627
|
+
\****************************************/
|
|
1628
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1629
|
+
|
|
1630
|
+
"use strict";
|
|
1631
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1632
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1633
|
+
/* harmony export */ "__DO_NOT_USE__ActionTypes": () => (/* binding */ ActionTypes),
|
|
1634
|
+
/* harmony export */ "applyMiddleware": () => (/* binding */ applyMiddleware),
|
|
1635
|
+
/* harmony export */ "bindActionCreators": () => (/* binding */ bindActionCreators),
|
|
1636
|
+
/* harmony export */ "combineReducers": () => (/* binding */ combineReducers),
|
|
1637
|
+
/* harmony export */ "compose": () => (/* binding */ compose),
|
|
1638
|
+
/* harmony export */ "createStore": () => (/* binding */ createStore)
|
|
1639
|
+
/* harmony export */ });
|
|
1640
|
+
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
1641
|
+
|
|
1642
|
+
|
|
1643
|
+
/**
|
|
1644
|
+
* Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
|
|
1645
|
+
*
|
|
1646
|
+
* Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
|
|
1647
|
+
* during build.
|
|
1648
|
+
* @param {number} code
|
|
1649
|
+
*/
|
|
1650
|
+
function formatProdErrorMessage(code) {
|
|
1651
|
+
return "Minified Redux error #" + code + "; visit https://redux.js.org/Errors?code=" + code + " for the full message or " + 'use the non-minified dev environment for full errors. ';
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
// Inlined version of the `symbol-observable` polyfill
|
|
1655
|
+
var $$observable = (function () {
|
|
1656
|
+
return typeof Symbol === 'function' && Symbol.observable || '@@observable';
|
|
1657
|
+
})();
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* These are private action types reserved by Redux.
|
|
1661
|
+
* For any unknown actions, you must return the current state.
|
|
1662
|
+
* If the current state is undefined, you must return the initial state.
|
|
1663
|
+
* Do not reference these action types directly in your code.
|
|
1664
|
+
*/
|
|
1665
|
+
var randomString = function randomString() {
|
|
1666
|
+
return Math.random().toString(36).substring(7).split('').join('.');
|
|
1667
|
+
};
|
|
1668
|
+
|
|
1669
|
+
var ActionTypes = {
|
|
1670
|
+
INIT: "@@redux/INIT" + randomString(),
|
|
1671
|
+
REPLACE: "@@redux/REPLACE" + randomString(),
|
|
1672
|
+
PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {
|
|
1673
|
+
return "@@redux/PROBE_UNKNOWN_ACTION" + randomString();
|
|
1674
|
+
}
|
|
1675
|
+
};
|
|
1676
|
+
|
|
1677
|
+
/**
|
|
1678
|
+
* @param {any} obj The object to inspect.
|
|
1679
|
+
* @returns {boolean} True if the argument appears to be a plain object.
|
|
1680
|
+
*/
|
|
1681
|
+
function isPlainObject(obj) {
|
|
1682
|
+
if (typeof obj !== 'object' || obj === null) return false;
|
|
1683
|
+
var proto = obj;
|
|
1684
|
+
|
|
1685
|
+
while (Object.getPrototypeOf(proto) !== null) {
|
|
1686
|
+
proto = Object.getPrototypeOf(proto);
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
return Object.getPrototypeOf(obj) === proto;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
function kindOf(val) {
|
|
1693
|
+
var typeOfVal = typeof val;
|
|
1694
|
+
|
|
1695
|
+
if (true) {
|
|
1696
|
+
// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of
|
|
1697
|
+
function miniKindOf(val) {
|
|
1698
|
+
if (val === void 0) return 'undefined';
|
|
1699
|
+
if (val === null) return 'null';
|
|
1700
|
+
var type = typeof val;
|
|
1701
|
+
|
|
1702
|
+
switch (type) {
|
|
1703
|
+
case 'boolean':
|
|
1704
|
+
case 'string':
|
|
1705
|
+
case 'number':
|
|
1706
|
+
case 'symbol':
|
|
1707
|
+
case 'function':
|
|
1708
|
+
{
|
|
1709
|
+
return type;
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
if (Array.isArray(val)) return 'array';
|
|
1714
|
+
if (isDate(val)) return 'date';
|
|
1715
|
+
if (isError(val)) return 'error';
|
|
1716
|
+
var constructorName = ctorName(val);
|
|
1717
|
+
|
|
1718
|
+
switch (constructorName) {
|
|
1719
|
+
case 'Symbol':
|
|
1720
|
+
case 'Promise':
|
|
1721
|
+
case 'WeakMap':
|
|
1722
|
+
case 'WeakSet':
|
|
1723
|
+
case 'Map':
|
|
1724
|
+
case 'Set':
|
|
1725
|
+
return constructorName;
|
|
1726
|
+
} // other
|
|
1727
|
+
|
|
1728
|
+
|
|
1729
|
+
return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
function ctorName(val) {
|
|
1733
|
+
return typeof val.constructor === 'function' ? val.constructor.name : null;
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
function isError(val) {
|
|
1737
|
+
return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
function isDate(val) {
|
|
1741
|
+
if (val instanceof Date) return true;
|
|
1742
|
+
return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
typeOfVal = miniKindOf(val);
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
return typeOfVal;
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
/**
|
|
1752
|
+
* Creates a Redux store that holds the state tree.
|
|
1753
|
+
* The only way to change the data in the store is to call `dispatch()` on it.
|
|
1754
|
+
*
|
|
1755
|
+
* There should only be a single store in your app. To specify how different
|
|
1756
|
+
* parts of the state tree respond to actions, you may combine several reducers
|
|
1757
|
+
* into a single reducer function by using `combineReducers`.
|
|
1758
|
+
*
|
|
1759
|
+
* @param {Function} reducer A function that returns the next state tree, given
|
|
1760
|
+
* the current state tree and the action to handle.
|
|
1761
|
+
*
|
|
1762
|
+
* @param {any} [preloadedState] The initial state. You may optionally specify it
|
|
1763
|
+
* to hydrate the state from the server in universal apps, or to restore a
|
|
1764
|
+
* previously serialized user session.
|
|
1765
|
+
* If you use `combineReducers` to produce the root reducer function, this must be
|
|
1766
|
+
* an object with the same shape as `combineReducers` keys.
|
|
1767
|
+
*
|
|
1768
|
+
* @param {Function} [enhancer] The store enhancer. You may optionally specify it
|
|
1769
|
+
* to enhance the store with third-party capabilities such as middleware,
|
|
1770
|
+
* time travel, persistence, etc. The only store enhancer that ships with Redux
|
|
1771
|
+
* is `applyMiddleware()`.
|
|
1772
|
+
*
|
|
1773
|
+
* @returns {Store} A Redux store that lets you read the state, dispatch actions
|
|
1774
|
+
* and subscribe to changes.
|
|
1775
|
+
*/
|
|
1776
|
+
|
|
1777
|
+
function createStore(reducer, preloadedState, enhancer) {
|
|
1778
|
+
var _ref2;
|
|
1779
|
+
|
|
1780
|
+
if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {
|
|
1781
|
+
throw new Error( false ? 0 : 'It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.');
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {
|
|
1785
|
+
enhancer = preloadedState;
|
|
1786
|
+
preloadedState = undefined;
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
if (typeof enhancer !== 'undefined') {
|
|
1790
|
+
if (typeof enhancer !== 'function') {
|
|
1791
|
+
throw new Error( false ? 0 : "Expected the enhancer to be a function. Instead, received: '" + kindOf(enhancer) + "'");
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
return enhancer(createStore)(reducer, preloadedState);
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
if (typeof reducer !== 'function') {
|
|
1798
|
+
throw new Error( false ? 0 : "Expected the root reducer to be a function. Instead, received: '" + kindOf(reducer) + "'");
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
var currentReducer = reducer;
|
|
1802
|
+
var currentState = preloadedState;
|
|
1803
|
+
var currentListeners = [];
|
|
1804
|
+
var nextListeners = currentListeners;
|
|
1805
|
+
var isDispatching = false;
|
|
1806
|
+
/**
|
|
1807
|
+
* This makes a shallow copy of currentListeners so we can use
|
|
1808
|
+
* nextListeners as a temporary list while dispatching.
|
|
1809
|
+
*
|
|
1810
|
+
* This prevents any bugs around consumers calling
|
|
1811
|
+
* subscribe/unsubscribe in the middle of a dispatch.
|
|
1812
|
+
*/
|
|
1813
|
+
|
|
1814
|
+
function ensureCanMutateNextListeners() {
|
|
1815
|
+
if (nextListeners === currentListeners) {
|
|
1816
|
+
nextListeners = currentListeners.slice();
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
/**
|
|
1820
|
+
* Reads the state tree managed by the store.
|
|
1821
|
+
*
|
|
1822
|
+
* @returns {any} The current state tree of your application.
|
|
1823
|
+
*/
|
|
1824
|
+
|
|
1825
|
+
|
|
1826
|
+
function getState() {
|
|
1827
|
+
if (isDispatching) {
|
|
1828
|
+
throw new Error( false ? 0 : 'You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
return currentState;
|
|
1832
|
+
}
|
|
1833
|
+
/**
|
|
1834
|
+
* Adds a change listener. It will be called any time an action is dispatched,
|
|
1835
|
+
* and some part of the state tree may potentially have changed. You may then
|
|
1836
|
+
* call `getState()` to read the current state tree inside the callback.
|
|
1837
|
+
*
|
|
1838
|
+
* You may call `dispatch()` from a change listener, with the following
|
|
1839
|
+
* caveats:
|
|
1840
|
+
*
|
|
1841
|
+
* 1. The subscriptions are snapshotted just before every `dispatch()` call.
|
|
1842
|
+
* If you subscribe or unsubscribe while the listeners are being invoked, this
|
|
1843
|
+
* will not have any effect on the `dispatch()` that is currently in progress.
|
|
1844
|
+
* However, the next `dispatch()` call, whether nested or not, will use a more
|
|
1845
|
+
* recent snapshot of the subscription list.
|
|
1846
|
+
*
|
|
1847
|
+
* 2. The listener should not expect to see all state changes, as the state
|
|
1848
|
+
* might have been updated multiple times during a nested `dispatch()` before
|
|
1849
|
+
* the listener is called. It is, however, guaranteed that all subscribers
|
|
1850
|
+
* registered before the `dispatch()` started will be called with the latest
|
|
1851
|
+
* state by the time it exits.
|
|
1852
|
+
*
|
|
1853
|
+
* @param {Function} listener A callback to be invoked on every dispatch.
|
|
1854
|
+
* @returns {Function} A function to remove this change listener.
|
|
1855
|
+
*/
|
|
1856
|
+
|
|
1857
|
+
|
|
1858
|
+
function subscribe(listener) {
|
|
1859
|
+
if (typeof listener !== 'function') {
|
|
1860
|
+
throw new Error( false ? 0 : "Expected the listener to be a function. Instead, received: '" + kindOf(listener) + "'");
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
if (isDispatching) {
|
|
1864
|
+
throw new Error( false ? 0 : 'You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1867
|
+
var isSubscribed = true;
|
|
1868
|
+
ensureCanMutateNextListeners();
|
|
1869
|
+
nextListeners.push(listener);
|
|
1870
|
+
return function unsubscribe() {
|
|
1871
|
+
if (!isSubscribed) {
|
|
1872
|
+
return;
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
if (isDispatching) {
|
|
1876
|
+
throw new Error( false ? 0 : 'You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
isSubscribed = false;
|
|
1880
|
+
ensureCanMutateNextListeners();
|
|
1881
|
+
var index = nextListeners.indexOf(listener);
|
|
1882
|
+
nextListeners.splice(index, 1);
|
|
1883
|
+
currentListeners = null;
|
|
1884
|
+
};
|
|
1885
|
+
}
|
|
1886
|
+
/**
|
|
1887
|
+
* Dispatches an action. It is the only way to trigger a state change.
|
|
1888
|
+
*
|
|
1889
|
+
* The `reducer` function, used to create the store, will be called with the
|
|
1890
|
+
* current state tree and the given `action`. Its return value will
|
|
1891
|
+
* be considered the **next** state of the tree, and the change listeners
|
|
1892
|
+
* will be notified.
|
|
1893
|
+
*
|
|
1894
|
+
* The base implementation only supports plain object actions. If you want to
|
|
1895
|
+
* dispatch a Promise, an Observable, a thunk, or something else, you need to
|
|
1896
|
+
* wrap your store creating function into the corresponding middleware. For
|
|
1897
|
+
* example, see the documentation for the `redux-thunk` package. Even the
|
|
1898
|
+
* middleware will eventually dispatch plain object actions using this method.
|
|
1899
|
+
*
|
|
1900
|
+
* @param {Object} action A plain object representing “what changed”. It is
|
|
1901
|
+
* a good idea to keep actions serializable so you can record and replay user
|
|
1902
|
+
* sessions, or use the time travelling `redux-devtools`. An action must have
|
|
1903
|
+
* a `type` property which may not be `undefined`. It is a good idea to use
|
|
1904
|
+
* string constants for action types.
|
|
1905
|
+
*
|
|
1906
|
+
* @returns {Object} For convenience, the same action object you dispatched.
|
|
1907
|
+
*
|
|
1908
|
+
* Note that, if you use a custom middleware, it may wrap `dispatch()` to
|
|
1909
|
+
* return something else (for example, a Promise you can await).
|
|
1910
|
+
*/
|
|
1911
|
+
|
|
1912
|
+
|
|
1913
|
+
function dispatch(action) {
|
|
1914
|
+
if (!isPlainObject(action)) {
|
|
1915
|
+
throw new Error( false ? 0 : "Actions must be plain objects. Instead, the actual type was: '" + kindOf(action) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
if (typeof action.type === 'undefined') {
|
|
1919
|
+
throw new Error( false ? 0 : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
if (isDispatching) {
|
|
1923
|
+
throw new Error( false ? 0 : 'Reducers may not dispatch actions.');
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
try {
|
|
1927
|
+
isDispatching = true;
|
|
1928
|
+
currentState = currentReducer(currentState, action);
|
|
1929
|
+
} finally {
|
|
1930
|
+
isDispatching = false;
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
var listeners = currentListeners = nextListeners;
|
|
1934
|
+
|
|
1935
|
+
for (var i = 0; i < listeners.length; i++) {
|
|
1936
|
+
var listener = listeners[i];
|
|
1937
|
+
listener();
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
return action;
|
|
1941
|
+
}
|
|
1942
|
+
/**
|
|
1943
|
+
* Replaces the reducer currently used by the store to calculate the state.
|
|
1944
|
+
*
|
|
1945
|
+
* You might need this if your app implements code splitting and you want to
|
|
1946
|
+
* load some of the reducers dynamically. You might also need this if you
|
|
1947
|
+
* implement a hot reloading mechanism for Redux.
|
|
1948
|
+
*
|
|
1949
|
+
* @param {Function} nextReducer The reducer for the store to use instead.
|
|
1950
|
+
* @returns {void}
|
|
1951
|
+
*/
|
|
1952
|
+
|
|
1953
|
+
|
|
1954
|
+
function replaceReducer(nextReducer) {
|
|
1955
|
+
if (typeof nextReducer !== 'function') {
|
|
1956
|
+
throw new Error( false ? 0 : "Expected the nextReducer to be a function. Instead, received: '" + kindOf(nextReducer));
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.
|
|
1960
|
+
// Any reducers that existed in both the new and old rootReducer
|
|
1961
|
+
// will receive the previous state. This effectively populates
|
|
1962
|
+
// the new state tree with any relevant data from the old one.
|
|
1963
|
+
|
|
1964
|
+
dispatch({
|
|
1965
|
+
type: ActionTypes.REPLACE
|
|
1966
|
+
});
|
|
1967
|
+
}
|
|
1968
|
+
/**
|
|
1969
|
+
* Interoperability point for observable/reactive libraries.
|
|
1970
|
+
* @returns {observable} A minimal observable of state changes.
|
|
1971
|
+
* For more information, see the observable proposal:
|
|
1972
|
+
* https://github.com/tc39/proposal-observable
|
|
1973
|
+
*/
|
|
1974
|
+
|
|
1975
|
+
|
|
1976
|
+
function observable() {
|
|
1977
|
+
var _ref;
|
|
1978
|
+
|
|
1979
|
+
var outerSubscribe = subscribe;
|
|
1980
|
+
return _ref = {
|
|
1981
|
+
/**
|
|
1982
|
+
* The minimal observable subscription method.
|
|
1983
|
+
* @param {Object} observer Any object that can be used as an observer.
|
|
1984
|
+
* The observer object should have a `next` method.
|
|
1985
|
+
* @returns {subscription} An object with an `unsubscribe` method that can
|
|
1986
|
+
* be used to unsubscribe the observable from the store, and prevent further
|
|
1987
|
+
* emission of values from the observable.
|
|
1988
|
+
*/
|
|
1989
|
+
subscribe: function subscribe(observer) {
|
|
1990
|
+
if (typeof observer !== 'object' || observer === null) {
|
|
1991
|
+
throw new Error( false ? 0 : "Expected the observer to be an object. Instead, received: '" + kindOf(observer) + "'");
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
function observeState() {
|
|
1995
|
+
if (observer.next) {
|
|
1996
|
+
observer.next(getState());
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
observeState();
|
|
2001
|
+
var unsubscribe = outerSubscribe(observeState);
|
|
2002
|
+
return {
|
|
2003
|
+
unsubscribe: unsubscribe
|
|
2004
|
+
};
|
|
2005
|
+
}
|
|
2006
|
+
}, _ref[$$observable] = function () {
|
|
2007
|
+
return this;
|
|
2008
|
+
}, _ref;
|
|
2009
|
+
} // When a store is created, an "INIT" action is dispatched so that every
|
|
2010
|
+
// reducer returns their initial state. This effectively populates
|
|
2011
|
+
// the initial state tree.
|
|
2012
|
+
|
|
2013
|
+
|
|
2014
|
+
dispatch({
|
|
2015
|
+
type: ActionTypes.INIT
|
|
2016
|
+
});
|
|
2017
|
+
return _ref2 = {
|
|
2018
|
+
dispatch: dispatch,
|
|
2019
|
+
subscribe: subscribe,
|
|
2020
|
+
getState: getState,
|
|
2021
|
+
replaceReducer: replaceReducer
|
|
2022
|
+
}, _ref2[$$observable] = observable, _ref2;
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2025
|
+
/**
|
|
2026
|
+
* Prints a warning in the console if it exists.
|
|
2027
|
+
*
|
|
2028
|
+
* @param {String} message The warning message.
|
|
2029
|
+
* @returns {void}
|
|
2030
|
+
*/
|
|
2031
|
+
function warning(message) {
|
|
2032
|
+
/* eslint-disable no-console */
|
|
2033
|
+
if (typeof console !== 'undefined' && typeof console.error === 'function') {
|
|
2034
|
+
console.error(message);
|
|
2035
|
+
}
|
|
2036
|
+
/* eslint-enable no-console */
|
|
2037
|
+
|
|
2038
|
+
|
|
2039
|
+
try {
|
|
2040
|
+
// This error was thrown as a convenience so that if you enable
|
|
2041
|
+
// "break on all exceptions" in your console,
|
|
2042
|
+
// it would pause the execution at this line.
|
|
2043
|
+
throw new Error(message);
|
|
2044
|
+
} catch (e) {} // eslint-disable-line no-empty
|
|
2045
|
+
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
|
|
2049
|
+
var reducerKeys = Object.keys(reducers);
|
|
2050
|
+
var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
|
|
2051
|
+
|
|
2052
|
+
if (reducerKeys.length === 0) {
|
|
2053
|
+
return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2056
|
+
if (!isPlainObject(inputState)) {
|
|
2057
|
+
return "The " + argumentName + " has unexpected type of \"" + kindOf(inputState) + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
var unexpectedKeys = Object.keys(inputState).filter(function (key) {
|
|
2061
|
+
return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];
|
|
2062
|
+
});
|
|
2063
|
+
unexpectedKeys.forEach(function (key) {
|
|
2064
|
+
unexpectedKeyCache[key] = true;
|
|
2065
|
+
});
|
|
2066
|
+
if (action && action.type === ActionTypes.REPLACE) return;
|
|
2067
|
+
|
|
2068
|
+
if (unexpectedKeys.length > 0) {
|
|
2069
|
+
return "Unexpected " + (unexpectedKeys.length > 1 ? 'keys' : 'key') + " " + ("\"" + unexpectedKeys.join('", "') + "\" found in " + argumentName + ". ") + "Expected to find one of the known reducer keys instead: " + ("\"" + reducerKeys.join('", "') + "\". Unexpected keys will be ignored.");
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
|
|
2073
|
+
function assertReducerShape(reducers) {
|
|
2074
|
+
Object.keys(reducers).forEach(function (key) {
|
|
2075
|
+
var reducer = reducers[key];
|
|
2076
|
+
var initialState = reducer(undefined, {
|
|
2077
|
+
type: ActionTypes.INIT
|
|
2078
|
+
});
|
|
2079
|
+
|
|
2080
|
+
if (typeof initialState === 'undefined') {
|
|
2081
|
+
throw new Error( false ? 0 : "The slice reducer for key \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined.");
|
|
2082
|
+
}
|
|
2083
|
+
|
|
2084
|
+
if (typeof reducer(undefined, {
|
|
2085
|
+
type: ActionTypes.PROBE_UNKNOWN_ACTION()
|
|
2086
|
+
}) === 'undefined') {
|
|
2087
|
+
throw new Error( false ? 0 : "The slice reducer for key \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle '" + ActionTypes.INIT + "' or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null.");
|
|
2088
|
+
}
|
|
2089
|
+
});
|
|
2090
|
+
}
|
|
2091
|
+
/**
|
|
2092
|
+
* Turns an object whose values are different reducer functions, into a single
|
|
2093
|
+
* reducer function. It will call every child reducer, and gather their results
|
|
2094
|
+
* into a single state object, whose keys correspond to the keys of the passed
|
|
2095
|
+
* reducer functions.
|
|
2096
|
+
*
|
|
2097
|
+
* @param {Object} reducers An object whose values correspond to different
|
|
2098
|
+
* reducer functions that need to be combined into one. One handy way to obtain
|
|
2099
|
+
* it is to use ES6 `import * as reducers` syntax. The reducers may never return
|
|
2100
|
+
* undefined for any action. Instead, they should return their initial state
|
|
2101
|
+
* if the state passed to them was undefined, and the current state for any
|
|
2102
|
+
* unrecognized action.
|
|
2103
|
+
*
|
|
2104
|
+
* @returns {Function} A reducer function that invokes every reducer inside the
|
|
2105
|
+
* passed object, and builds a state object with the same shape.
|
|
2106
|
+
*/
|
|
218
2107
|
|
|
219
2108
|
|
|
2109
|
+
function combineReducers(reducers) {
|
|
2110
|
+
var reducerKeys = Object.keys(reducers);
|
|
2111
|
+
var finalReducers = {};
|
|
220
2112
|
|
|
2113
|
+
for (var i = 0; i < reducerKeys.length; i++) {
|
|
2114
|
+
var key = reducerKeys[i];
|
|
221
2115
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
id: "meganav-why-ably-panel-list-blog"
|
|
228
|
-
}, "Blog"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("ul", {
|
|
229
|
-
className: "mb-8",
|
|
230
|
-
"aria-labelledby": "meganav-why-ably-panel-list-blog"
|
|
231
|
-
}, recentBlogPosts.map(function (post) {
|
|
232
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", {
|
|
233
|
-
key: post.link
|
|
234
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
235
|
-
href: post.link,
|
|
236
|
-
className: "ui-meganav-media group"
|
|
237
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
238
|
-
className: "ui-meganav-media-heading"
|
|
239
|
-
}, post.title), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
240
|
-
className: "ui-meganav-media-copy"
|
|
241
|
-
}, post.pubDate)));
|
|
242
|
-
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_FeaturedLink_component_jsx__WEBPACK_IMPORTED_MODULE_2__.default, {
|
|
243
|
-
url: absUrl("/blog")
|
|
244
|
-
}, "More from our Blog")) : null;
|
|
245
|
-
};
|
|
2116
|
+
if (true) {
|
|
2117
|
+
if (typeof reducers[key] === 'undefined') {
|
|
2118
|
+
warning("No reducer provided for key \"" + key + "\"");
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
246
2121
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
pubDate: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
|
252
|
-
})),
|
|
253
|
-
absUrl: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)
|
|
254
|
-
};
|
|
255
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MeganavBlogPostsList);
|
|
2122
|
+
if (typeof reducers[key] === 'function') {
|
|
2123
|
+
finalReducers[key] = reducers[key];
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
256
2126
|
|
|
257
|
-
|
|
2127
|
+
var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same
|
|
2128
|
+
// keys multiple times.
|
|
258
2129
|
|
|
259
|
-
|
|
260
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2130
|
+
var unexpectedKeyCache;
|
|
261
2131
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
/* harmony export */ "kZ": () => (/* binding */ connectState)
|
|
266
|
-
/* harmony export */ });
|
|
267
|
-
/* unused harmony exports attachStoreToWindow, createRemoteDataStore */
|
|
2132
|
+
if (true) {
|
|
2133
|
+
unexpectedKeyCache = {};
|
|
2134
|
+
}
|
|
268
2135
|
|
|
269
|
-
var
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
throw new Error("Remote store was called before one was created");
|
|
2136
|
+
var shapeAssertionError;
|
|
2137
|
+
|
|
2138
|
+
try {
|
|
2139
|
+
assertReducerShape(finalReducers);
|
|
2140
|
+
} catch (e) {
|
|
2141
|
+
shapeAssertionError = e;
|
|
276
2142
|
}
|
|
277
2143
|
|
|
278
|
-
return
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
var cachedOldState = selector(store);
|
|
283
|
-
store.subscribe(function () {
|
|
284
|
-
var newState = selector(store); // Do nothing, state is the same
|
|
2144
|
+
return function combination(state, action) {
|
|
2145
|
+
if (state === void 0) {
|
|
2146
|
+
state = {};
|
|
2147
|
+
}
|
|
285
2148
|
|
|
286
|
-
if (
|
|
287
|
-
|
|
2149
|
+
if (shapeAssertionError) {
|
|
2150
|
+
throw shapeAssertionError;
|
|
288
2151
|
}
|
|
289
2152
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
});
|
|
293
|
-
};
|
|
294
|
-
var createRemoteDataStore = function createRemoteDataStore(reducers) {
|
|
295
|
-
return createStore(combineReducers(reducers));
|
|
296
|
-
};
|
|
2153
|
+
if (true) {
|
|
2154
|
+
var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);
|
|
297
2155
|
|
|
298
|
-
|
|
2156
|
+
if (warningMessage) {
|
|
2157
|
+
warning(warningMessage);
|
|
2158
|
+
}
|
|
2159
|
+
}
|
|
299
2160
|
|
|
300
|
-
|
|
301
|
-
|
|
2161
|
+
var hasChanged = false;
|
|
2162
|
+
var nextState = {};
|
|
302
2163
|
|
|
303
|
-
|
|
2164
|
+
for (var _i = 0; _i < finalReducerKeys.length; _i++) {
|
|
2165
|
+
var _key = finalReducerKeys[_i];
|
|
2166
|
+
var reducer = finalReducers[_key];
|
|
2167
|
+
var previousStateForKey = state[_key];
|
|
2168
|
+
var nextStateForKey = reducer(previousStateForKey, action);
|
|
2169
|
+
|
|
2170
|
+
if (typeof nextStateForKey === 'undefined') {
|
|
2171
|
+
var actionType = action && action.type;
|
|
2172
|
+
throw new Error( false ? 0 : "When called with an action of type " + (actionType ? "\"" + String(actionType) + "\"" : '(unknown type)') + ", the slice reducer for key \"" + _key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined.");
|
|
2173
|
+
}
|
|
2174
|
+
|
|
2175
|
+
nextState[_key] = nextStateForKey;
|
|
2176
|
+
hasChanged = hasChanged || nextStateForKey !== previousStateForKey;
|
|
2177
|
+
}
|
|
2178
|
+
|
|
2179
|
+
hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;
|
|
2180
|
+
return hasChanged ? nextState : state;
|
|
2181
|
+
};
|
|
2182
|
+
}
|
|
2183
|
+
|
|
2184
|
+
function bindActionCreator(actionCreator, dispatch) {
|
|
2185
|
+
return function () {
|
|
2186
|
+
return dispatch(actionCreator.apply(this, arguments));
|
|
2187
|
+
};
|
|
2188
|
+
}
|
|
304
2189
|
/**
|
|
305
|
-
*
|
|
2190
|
+
* Turns an object whose values are action creators, into an object with the
|
|
2191
|
+
* same keys, but with every function wrapped into a `dispatch` call so they
|
|
2192
|
+
* may be invoked directly. This is just a convenience method, as you can call
|
|
2193
|
+
* `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
|
|
306
2194
|
*
|
|
307
|
-
*
|
|
308
|
-
*
|
|
2195
|
+
* For convenience, you can also pass an action creator as the first argument,
|
|
2196
|
+
* and get a dispatch wrapped function in return.
|
|
2197
|
+
*
|
|
2198
|
+
* @param {Function|Object} actionCreators An object whose values are action
|
|
2199
|
+
* creator functions. One handy way to obtain it is to use ES6 `import * as`
|
|
2200
|
+
* syntax. You may also pass a single function.
|
|
2201
|
+
*
|
|
2202
|
+
* @param {Function} dispatch The `dispatch` function available on your Redux
|
|
2203
|
+
* store.
|
|
2204
|
+
*
|
|
2205
|
+
* @returns {Function|Object} The object mimicking the original object, but with
|
|
2206
|
+
* every action creator wrapped into the `dispatch` call. If you passed a
|
|
2207
|
+
* function as `actionCreators`, the return value will also be a single
|
|
2208
|
+
* function.
|
|
309
2209
|
*/
|
|
310
2210
|
|
|
311
2211
|
|
|
2212
|
+
function bindActionCreators(actionCreators, dispatch) {
|
|
2213
|
+
if (typeof actionCreators === 'function') {
|
|
2214
|
+
return bindActionCreator(actionCreators, dispatch);
|
|
2215
|
+
}
|
|
312
2216
|
|
|
313
|
-
|
|
2217
|
+
if (typeof actionCreators !== 'object' || actionCreators === null) {
|
|
2218
|
+
throw new Error( false ? 0 : "bindActionCreators expected an object or a function, but instead received: '" + kindOf(actionCreators) + "'. " + "Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?");
|
|
2219
|
+
}
|
|
314
2220
|
|
|
315
|
-
|
|
316
|
-
function emptyFunctionWithReset() {}
|
|
317
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
2221
|
+
var boundActionCreators = {};
|
|
318
2222
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
2223
|
+
for (var key in actionCreators) {
|
|
2224
|
+
var actionCreator = actionCreators[key];
|
|
2225
|
+
|
|
2226
|
+
if (typeof actionCreator === 'function') {
|
|
2227
|
+
boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);
|
|
324
2228
|
}
|
|
325
|
-
|
|
326
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
327
|
-
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
328
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
329
|
-
);
|
|
330
|
-
err.name = 'Invariant Violation';
|
|
331
|
-
throw err;
|
|
332
|
-
};
|
|
333
|
-
shim.isRequired = shim;
|
|
334
|
-
function getShim() {
|
|
335
|
-
return shim;
|
|
336
|
-
};
|
|
337
|
-
// Important!
|
|
338
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
339
|
-
var ReactPropTypes = {
|
|
340
|
-
array: shim,
|
|
341
|
-
bool: shim,
|
|
342
|
-
func: shim,
|
|
343
|
-
number: shim,
|
|
344
|
-
object: shim,
|
|
345
|
-
string: shim,
|
|
346
|
-
symbol: shim,
|
|
347
|
-
|
|
348
|
-
any: shim,
|
|
349
|
-
arrayOf: getShim,
|
|
350
|
-
element: shim,
|
|
351
|
-
elementType: shim,
|
|
352
|
-
instanceOf: getShim,
|
|
353
|
-
node: shim,
|
|
354
|
-
objectOf: getShim,
|
|
355
|
-
oneOf: getShim,
|
|
356
|
-
oneOfType: getShim,
|
|
357
|
-
shape: getShim,
|
|
358
|
-
exact: getShim,
|
|
359
|
-
|
|
360
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
361
|
-
resetWarningCache: emptyFunction
|
|
362
|
-
};
|
|
2229
|
+
}
|
|
363
2230
|
|
|
364
|
-
|
|
2231
|
+
return boundActionCreators;
|
|
2232
|
+
}
|
|
365
2233
|
|
|
366
|
-
|
|
367
|
-
|
|
2234
|
+
/**
|
|
2235
|
+
* Composes single-argument functions from right to left. The rightmost
|
|
2236
|
+
* function can take multiple arguments as it provides the signature for
|
|
2237
|
+
* the resulting composite function.
|
|
2238
|
+
*
|
|
2239
|
+
* @param {...Function} funcs The functions to compose.
|
|
2240
|
+
* @returns {Function} A function obtained by composing the argument functions
|
|
2241
|
+
* from right to left. For example, compose(f, g, h) is identical to doing
|
|
2242
|
+
* (...args) => f(g(h(...args))).
|
|
2243
|
+
*/
|
|
2244
|
+
function compose() {
|
|
2245
|
+
for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2246
|
+
funcs[_key] = arguments[_key];
|
|
2247
|
+
}
|
|
368
2248
|
|
|
2249
|
+
if (funcs.length === 0) {
|
|
2250
|
+
return function (arg) {
|
|
2251
|
+
return arg;
|
|
2252
|
+
};
|
|
2253
|
+
}
|
|
369
2254
|
|
|
370
|
-
|
|
2255
|
+
if (funcs.length === 1) {
|
|
2256
|
+
return funcs[0];
|
|
2257
|
+
}
|
|
371
2258
|
|
|
372
|
-
|
|
373
|
-
|
|
2259
|
+
return funcs.reduce(function (a, b) {
|
|
2260
|
+
return function () {
|
|
2261
|
+
return a(b.apply(void 0, arguments));
|
|
2262
|
+
};
|
|
2263
|
+
});
|
|
2264
|
+
}
|
|
374
2265
|
|
|
375
2266
|
/**
|
|
376
|
-
*
|
|
2267
|
+
* Creates a store enhancer that applies middleware to the dispatch method
|
|
2268
|
+
* of the Redux store. This is handy for a variety of tasks, such as expressing
|
|
2269
|
+
* asynchronous actions in a concise manner, or logging every action payload.
|
|
377
2270
|
*
|
|
378
|
-
*
|
|
379
|
-
*
|
|
2271
|
+
* See `redux-thunk` package as an example of the Redux middleware.
|
|
2272
|
+
*
|
|
2273
|
+
* Because middleware is potentially asynchronous, this should be the first
|
|
2274
|
+
* store enhancer in the composition chain.
|
|
2275
|
+
*
|
|
2276
|
+
* Note that each middleware will be given the `dispatch` and `getState` functions
|
|
2277
|
+
* as named arguments.
|
|
2278
|
+
*
|
|
2279
|
+
* @param {...Function} middlewares The middleware chain to be applied.
|
|
2280
|
+
* @returns {Function} A store enhancer applying the middleware.
|
|
380
2281
|
*/
|
|
381
2282
|
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
}
|
|
2283
|
+
function applyMiddleware() {
|
|
2284
|
+
for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2285
|
+
middlewares[_key] = arguments[_key];
|
|
2286
|
+
}
|
|
387
2287
|
|
|
2288
|
+
return function (createStore) {
|
|
2289
|
+
return function () {
|
|
2290
|
+
var store = createStore.apply(void 0, arguments);
|
|
388
2291
|
|
|
389
|
-
|
|
2292
|
+
var _dispatch = function dispatch() {
|
|
2293
|
+
throw new Error( false ? 0 : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');
|
|
2294
|
+
};
|
|
390
2295
|
|
|
391
|
-
|
|
392
|
-
|
|
2296
|
+
var middlewareAPI = {
|
|
2297
|
+
getState: store.getState,
|
|
2298
|
+
dispatch: function dispatch() {
|
|
2299
|
+
return _dispatch.apply(void 0, arguments);
|
|
2300
|
+
}
|
|
2301
|
+
};
|
|
2302
|
+
var chain = middlewares.map(function (middleware) {
|
|
2303
|
+
return middleware(middlewareAPI);
|
|
2304
|
+
});
|
|
2305
|
+
_dispatch = compose.apply(void 0, chain)(store.dispatch);
|
|
2306
|
+
return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__.default)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__.default)({}, store), {}, {
|
|
2307
|
+
dispatch: _dispatch
|
|
2308
|
+
});
|
|
2309
|
+
};
|
|
2310
|
+
};
|
|
2311
|
+
}
|
|
393
2312
|
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
*
|
|
397
|
-
*
|
|
398
|
-
* This source code is licensed under the MIT license found in the
|
|
399
|
-
* LICENSE file in the root directory of this source tree.
|
|
2313
|
+
/*
|
|
2314
|
+
* This is a dummy function to check if the function name has been altered by minification.
|
|
2315
|
+
* If the function has been minified and NODE_ENV !== 'production', warn the user.
|
|
400
2316
|
*/
|
|
401
2317
|
|
|
2318
|
+
function isCrushed() {}
|
|
402
2319
|
|
|
2320
|
+
if ( true && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
|
|
2321
|
+
warning('You are currently using minified code outside of NODE_ENV === "production". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');
|
|
2322
|
+
}
|
|
403
2323
|
|
|
404
|
-
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
405
2324
|
|
|
406
|
-
module.exports = ReactPropTypesSecret;
|
|
407
2325
|
|
|
408
2326
|
|
|
409
2327
|
/***/ }),
|
|
410
2328
|
|
|
411
|
-
/***/
|
|
2329
|
+
/***/ "./node_modules/regenerator-runtime/runtime.js":
|
|
2330
|
+
/*!*****************************************************!*\
|
|
2331
|
+
!*** ./node_modules/regenerator-runtime/runtime.js ***!
|
|
2332
|
+
\*****************************************************/
|
|
412
2333
|
/***/ ((module) => {
|
|
413
2334
|
|
|
414
2335
|
/**
|
|
@@ -1163,11 +3084,14 @@ try {
|
|
|
1163
3084
|
|
|
1164
3085
|
/***/ }),
|
|
1165
3086
|
|
|
1166
|
-
/***/
|
|
3087
|
+
/***/ "react":
|
|
3088
|
+
/*!*********************************************************!*\
|
|
3089
|
+
!*** external {"commonjs":"react","commonjs2":"react"} ***!
|
|
3090
|
+
\*********************************************************/
|
|
1167
3091
|
/***/ ((module) => {
|
|
1168
3092
|
|
|
1169
3093
|
"use strict";
|
|
1170
|
-
module.exports =
|
|
3094
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_react__;
|
|
1171
3095
|
|
|
1172
3096
|
/***/ })
|
|
1173
3097
|
|
|
@@ -1243,137 +3167,21 @@ var __webpack_exports__ = {};
|
|
|
1243
3167
|
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
|
1244
3168
|
(() => {
|
|
1245
3169
|
"use strict";
|
|
1246
|
-
|
|
3170
|
+
/*!******************************************************!*\
|
|
3171
|
+
!*** ./src/core/MeganavContentWhyAbly/component.jsx ***!
|
|
3172
|
+
\******************************************************/
|
|
1247
3173
|
__webpack_require__.r(__webpack_exports__);
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
var
|
|
1256
|
-
var
|
|
1257
|
-
|
|
1258
|
-
var
|
|
1259
|
-
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
1260
|
-
// EXTERNAL MODULE: ./src/core/FeaturedLink/component.jsx
|
|
1261
|
-
var component = __webpack_require__(5751);
|
|
1262
|
-
// EXTERNAL MODULE: ./src/core/MeganavBlogPostsList/component.jsx
|
|
1263
|
-
var MeganavBlogPostsList_component = __webpack_require__(2725);
|
|
1264
|
-
// EXTERNAL MODULE: ./src/core/ConnectStateWrapper/component.jsx
|
|
1265
|
-
var ConnectStateWrapper_component = __webpack_require__(9787);
|
|
1266
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
1267
|
-
var regenerator = __webpack_require__(7757);
|
|
1268
|
-
;// CONCATENATED MODULE: ./src/core/remote-blogs-posts.js
|
|
1269
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
1270
|
-
|
|
1271
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1272
|
-
|
|
1273
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
1278
|
-
|
|
1279
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
var fetchBlogPosts = /*#__PURE__*/(/* unused pure expression or super */ null && (function () {
|
|
1284
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(store, blogUrl) {
|
|
1285
|
-
var res, payload;
|
|
1286
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
1287
|
-
while (1) {
|
|
1288
|
-
switch (_context.prev = _context.next) {
|
|
1289
|
-
case 0:
|
|
1290
|
-
_context.prev = 0;
|
|
1291
|
-
|
|
1292
|
-
if (blogUrl) {
|
|
1293
|
-
_context.next = 4;
|
|
1294
|
-
break;
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
console.log("Skipping fetching blog posts, invalid blogUrl: \"".concat(blogUrl, "\""));
|
|
1298
|
-
return _context.abrupt("return");
|
|
1299
|
-
|
|
1300
|
-
case 4:
|
|
1301
|
-
_context.next = 6;
|
|
1302
|
-
return fetch(blogUrl);
|
|
1303
|
-
|
|
1304
|
-
case 6:
|
|
1305
|
-
res = _context.sent;
|
|
1306
|
-
|
|
1307
|
-
if (!isJsonResponse(res.headers.get("content-type"))) {
|
|
1308
|
-
_context.next = 14;
|
|
1309
|
-
break;
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
|
-
_context.next = 10;
|
|
1313
|
-
return res.json();
|
|
1314
|
-
|
|
1315
|
-
case 10:
|
|
1316
|
-
payload = _context.sent;
|
|
1317
|
-
store.dispatch({
|
|
1318
|
-
type: "blog/loaded",
|
|
1319
|
-
payload: payload
|
|
1320
|
-
});
|
|
1321
|
-
_context.next = 15;
|
|
1322
|
-
break;
|
|
1323
|
-
|
|
1324
|
-
case 14:
|
|
1325
|
-
throw new Error("Blog posts url is not serving json");
|
|
1326
|
-
|
|
1327
|
-
case 15:
|
|
1328
|
-
_context.next = 20;
|
|
1329
|
-
break;
|
|
1330
|
-
|
|
1331
|
-
case 17:
|
|
1332
|
-
_context.prev = 17;
|
|
1333
|
-
_context.t0 = _context["catch"](0);
|
|
1334
|
-
console.warn("Could not fetch blog posts due to error:", _context.t0);
|
|
1335
|
-
|
|
1336
|
-
case 20:
|
|
1337
|
-
case "end":
|
|
1338
|
-
return _context.stop();
|
|
1339
|
-
}
|
|
1340
|
-
}
|
|
1341
|
-
}, _callee, null, [[0, 17]]);
|
|
1342
|
-
}));
|
|
1343
|
-
|
|
1344
|
-
return function fetchBlogPosts(_x, _x2) {
|
|
1345
|
-
return _ref.apply(this, arguments);
|
|
1346
|
-
};
|
|
1347
|
-
}()));
|
|
1348
|
-
|
|
1349
|
-
var initialState = {
|
|
1350
|
-
recent: null
|
|
1351
|
-
};
|
|
1352
|
-
var REDUCER_KEY = "blogPosts";
|
|
1353
|
-
|
|
1354
|
-
var reducerBlogPosts = _defineProperty({}, REDUCER_KEY, function () {
|
|
1355
|
-
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;
|
|
1356
|
-
var action = arguments.length > 1 ? arguments[1] : undefined;
|
|
1357
|
-
|
|
1358
|
-
switch (action.type) {
|
|
1359
|
-
case "blog/loaded":
|
|
1360
|
-
return _objectSpread(_objectSpread({}, state), {}, {
|
|
1361
|
-
recent: action.payload
|
|
1362
|
-
});
|
|
1363
|
-
|
|
1364
|
-
default:
|
|
1365
|
-
return state;
|
|
1366
|
-
}
|
|
1367
|
-
});
|
|
1368
|
-
|
|
1369
|
-
var selectRecentBlogPosts = function selectRecentBlogPosts(store) {
|
|
1370
|
-
var _store$getState$REDUC;
|
|
1371
|
-
|
|
1372
|
-
return (_store$getState$REDUC = store.getState()[REDUCER_KEY]) === null || _store$getState$REDUC === void 0 ? void 0 : _store$getState$REDUC.recent;
|
|
1373
|
-
};
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
;// CONCATENATED MODULE: ./src/core/MeganavContentWhyAbly/component.jsx
|
|
3174
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3175
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
3176
|
+
/* harmony export */ });
|
|
3177
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
3178
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
3179
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
|
|
3180
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
3181
|
+
/* harmony import */ var _FeaturedLink_component_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../FeaturedLink/component.jsx */ "./src/core/FeaturedLink/component.jsx");
|
|
3182
|
+
/* harmony import */ var _MeganavBlogPostsList_component_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../MeganavBlogPostsList/component.jsx */ "./src/core/MeganavBlogPostsList/component.jsx");
|
|
3183
|
+
/* harmony import */ var _ConnectStateWrapper_component_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ConnectStateWrapper/component.jsx */ "./src/core/ConnectStateWrapper/component.jsx");
|
|
3184
|
+
/* harmony import */ var _remote_blogs_posts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../remote-blogs-posts */ "./src/core/remote-blogs-posts.js");
|
|
1377
3185
|
|
|
1378
3186
|
|
|
1379
3187
|
|
|
@@ -1383,86 +3191,86 @@ var selectRecentBlogPosts = function selectRecentBlogPosts(store) {
|
|
|
1383
3191
|
|
|
1384
3192
|
var MeganavContentWhyAbly = function MeganavContentWhyAbly(_ref) {
|
|
1385
3193
|
var absUrl = _ref.absUrl;
|
|
1386
|
-
var BlogPostsList = (0,
|
|
1387
|
-
recentBlogPosts: selectRecentBlogPosts
|
|
3194
|
+
var BlogPostsList = (0,_ConnectStateWrapper_component_jsx__WEBPACK_IMPORTED_MODULE_4__.default)(_MeganavBlogPostsList_component_jsx__WEBPACK_IMPORTED_MODULE_3__.default, {
|
|
3195
|
+
recentBlogPosts: _remote_blogs_posts__WEBPACK_IMPORTED_MODULE_5__.selectRecentBlogPosts
|
|
1388
3196
|
});
|
|
1389
|
-
return /*#__PURE__*/
|
|
3197
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("section", {
|
|
1390
3198
|
className: "ui-meganav-content ui-grid-gap md:grid-cols-3"
|
|
1391
|
-
}, /*#__PURE__*/
|
|
3199
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h3", {
|
|
1392
3200
|
className: "ui-meganav-overline",
|
|
1393
3201
|
id: "meganav-why-ably-panel-list-why-companies"
|
|
1394
|
-
}, "Why companies choose Ably"), /*#__PURE__*/
|
|
3202
|
+
}, "Why companies choose Ably"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("ul", {
|
|
1395
3203
|
"aria-labelledby": "meganav-why-ably-panel-list-why-companies"
|
|
1396
|
-
}, /*#__PURE__*/
|
|
3204
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
1397
3205
|
href: absUrl("/customers"),
|
|
1398
3206
|
className: "group ui-meganav-media py-12"
|
|
1399
|
-
}, /*#__PURE__*/
|
|
3207
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
1400
3208
|
className: "ui-meganav-media-heading"
|
|
1401
|
-
}, "Customers"))), /*#__PURE__*/
|
|
3209
|
+
}, "Customers"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
1402
3210
|
href: absUrl("/case-studies"),
|
|
1403
3211
|
className: "group ui-meganav-media py-12"
|
|
1404
|
-
}, /*#__PURE__*/
|
|
3212
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
1405
3213
|
className: "ui-meganav-media-heading"
|
|
1406
|
-
}, "Case studies"))), /*#__PURE__*/
|
|
3214
|
+
}, "Case studies"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
1407
3215
|
href: absUrl("/compare"),
|
|
1408
3216
|
className: "group ui-meganav-media py-12"
|
|
1409
|
-
}, /*#__PURE__*/
|
|
3217
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
1410
3218
|
className: "ui-meganav-media-heading"
|
|
1411
|
-
}, "Compare our tech"))), /*#__PURE__*/
|
|
3219
|
+
}, "Compare our tech"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
1412
3220
|
href: absUrl("/aws"),
|
|
1413
3221
|
className: "group ui-meganav-media py-12"
|
|
1414
|
-
}, /*#__PURE__*/
|
|
3222
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
1415
3223
|
className: "ui-meganav-media-heading"
|
|
1416
|
-
}, "Ably & AWS"))), /*#__PURE__*/
|
|
3224
|
+
}, "Ably & AWS"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
1417
3225
|
href: absUrl("/resources"),
|
|
1418
3226
|
className: "group ui-meganav-media py-12"
|
|
1419
|
-
}, /*#__PURE__*/
|
|
3227
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
1420
3228
|
className: "ui-meganav-media-heading"
|
|
1421
|
-
}, "Resources"))))), /*#__PURE__*/
|
|
3229
|
+
}, "Resources"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h3", {
|
|
1422
3230
|
className: "ui-meganav-overline",
|
|
1423
3231
|
id: "meganav-why-ably-panel-list-four-pillars"
|
|
1424
|
-
}, "Four pillars of dependability"), /*#__PURE__*/
|
|
3232
|
+
}, "Four pillars of dependability"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("ul", {
|
|
1425
3233
|
className: "mb-8",
|
|
1426
3234
|
"aria-labelledby": "meganav-why-ably-panel-list-four-pillars"
|
|
1427
|
-
}, /*#__PURE__*/
|
|
3235
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
1428
3236
|
href: absUrl("/four-pillars-of-dependability#performance"),
|
|
1429
3237
|
className: "ui-meganav-media group"
|
|
1430
|
-
}, /*#__PURE__*/
|
|
3238
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
1431
3239
|
className: "ui-meganav-media-heading"
|
|
1432
|
-
}, "Predictable performance"), /*#__PURE__*/
|
|
3240
|
+
}, "Predictable performance"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
1433
3241
|
className: "ui-meganav-media-copy"
|
|
1434
|
-
}, "A low-latency global edge network across 200+ PoPs."))), /*#__PURE__*/
|
|
3242
|
+
}, "A low-latency global edge network across 200+ PoPs."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
1435
3243
|
href: absUrl("/four-pillars-of-dependability#integrity"),
|
|
1436
3244
|
className: "ui-meganav-media group"
|
|
1437
|
-
}, /*#__PURE__*/
|
|
3245
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
1438
3246
|
className: "ui-meganav-media-heading"
|
|
1439
|
-
}, "Guaranteed ordering & delivery"), /*#__PURE__*/
|
|
3247
|
+
}, "Guaranteed ordering & delivery"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
1440
3248
|
className: "ui-meganav-media-copy"
|
|
1441
|
-
}, "We guarantee in-order data delivery, even after disconnections."))), /*#__PURE__*/
|
|
3249
|
+
}, "We guarantee in-order data delivery, even after disconnections."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
1442
3250
|
href: absUrl("/four-pillars-of-dependability#reliability"),
|
|
1443
3251
|
className: "ui-meganav-media group"
|
|
1444
|
-
}, /*#__PURE__*/
|
|
3252
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
1445
3253
|
className: "ui-meganav-media-heading"
|
|
1446
|
-
}, "Fault tolerant infrastructure"), /*#__PURE__*/
|
|
3254
|
+
}, "Fault tolerant infrastructure"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
1447
3255
|
className: "ui-meganav-media-copy"
|
|
1448
|
-
}, "Redundant at regional and global levels with 99.999% uptime SLAs."))), /*#__PURE__*/
|
|
3256
|
+
}, "Redundant at regional and global levels with 99.999% uptime SLAs."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
1449
3257
|
href: absUrl("/four-pillars-of-dependability#availability"),
|
|
1450
3258
|
className: "ui-meganav-media group"
|
|
1451
|
-
}, /*#__PURE__*/
|
|
3259
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
1452
3260
|
className: "ui-meganav-media-heading"
|
|
1453
|
-
}, "High scalability & availability"), /*#__PURE__*/
|
|
3261
|
+
}, "High scalability & availability"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
1454
3262
|
className: "ui-meganav-media-copy"
|
|
1455
|
-
}, "Elastic, battle-tested global infrastructure for massive scale.")))), /*#__PURE__*/
|
|
3263
|
+
}, "Elastic, battle-tested global infrastructure for massive scale.")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_FeaturedLink_component_jsx__WEBPACK_IMPORTED_MODULE_2__.default, {
|
|
1456
3264
|
url: absUrl("/four-pillars-of-dependability")
|
|
1457
|
-
}, "Explore our Four Pillars of Dependability")), /*#__PURE__*/
|
|
3265
|
+
}, "Explore our Four Pillars of Dependability")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(BlogPostsList, {
|
|
1458
3266
|
absUrl: absUrl
|
|
1459
3267
|
}));
|
|
1460
3268
|
};
|
|
1461
3269
|
|
|
1462
3270
|
MeganavContentWhyAbly.propTypes = {
|
|
1463
|
-
absUrl: (
|
|
3271
|
+
absUrl: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)
|
|
1464
3272
|
};
|
|
1465
|
-
/* harmony default export */ const
|
|
3273
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MeganavContentWhyAbly);
|
|
1466
3274
|
})();
|
|
1467
3275
|
|
|
1468
3276
|
/******/ return __webpack_exports__;
|