@imperium/layout 14.2.0 → 14.5.0
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/dist/esm/_virtual/index.js +4 -0
- package/dist/esm/_virtual/index.js.map +1 -0
- package/dist/esm/_virtual/react-is.development.js +4 -0
- package/dist/esm/_virtual/react-is.development.js.map +1 -0
- package/dist/esm/_virtual/react-is.production.min.js +4 -0
- package/dist/esm/_virtual/react-is.production.min.js.map +1 -0
- package/dist/esm/content/createPages.js +48 -15
- package/dist/esm/content/createPages.js.map +1 -1
- package/dist/esm/content/types.js.map +1 -1
- package/dist/esm/external/@babel/runtime/helpers/esm/assertThisInitialized.js +9 -0
- package/dist/esm/external/@babel/runtime/helpers/esm/assertThisInitialized.js.map +1 -0
- package/dist/esm/external/@babel/runtime/helpers/esm/extends.js +17 -0
- package/dist/esm/external/@babel/runtime/helpers/esm/extends.js.map +1 -0
- package/dist/esm/external/@babel/runtime/helpers/esm/inheritsLoose.js +10 -0
- package/dist/esm/external/@babel/runtime/helpers/esm/inheritsLoose.js.map +1 -0
- package/dist/esm/external/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +15 -0
- package/dist/esm/external/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
- package/dist/esm/external/@babel/runtime/helpers/esm/setPrototypeOf.js +10 -0
- package/dist/esm/external/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
- package/dist/esm/external/@loadable/component/dist/loadable.esm.js +470 -0
- package/dist/esm/external/@loadable/component/dist/loadable.esm.js.map +1 -0
- package/dist/esm/external/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +107 -0
- package/dist/esm/external/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +1 -0
- package/dist/esm/external/react-is/cjs/react-is.development.js +182 -0
- package/dist/esm/external/react-is/cjs/react-is.development.js.map +1 -0
- package/dist/esm/external/react-is/cjs/react-is.production.min.js +18 -0
- package/dist/esm/external/react-is/cjs/react-is.production.min.js.map +1 -0
- package/dist/esm/external/react-is/index.js +12 -0
- package/dist/esm/external/react-is/index.js.map +1 -0
- package/dist/stats.html +1 -1
- package/dist/stats.txt +74 -48
- package/dist/types/content/types.d.ts +3 -1
- package/package.json +5 -5
- package/dist/types/content/components/PageHeaderContext.d.ts +0 -1
- package/dist/types/content/hooks/usePageHeader.d.ts +0 -1
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import _objectWithoutPropertiesLoose from '../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js';
|
|
3
|
+
import _extends from '../../../@babel/runtime/helpers/esm/extends.js';
|
|
4
|
+
import _assertThisInitialized from '../../../@babel/runtime/helpers/esm/assertThisInitialized.js';
|
|
5
|
+
import _inheritsLoose from '../../../@babel/runtime/helpers/esm/inheritsLoose.js';
|
|
6
|
+
import '../../../react-is/index.js';
|
|
7
|
+
import hoistNonReactStatics_cjs from '../../../hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js';
|
|
8
|
+
import { r as reactIs } from '../../../../_virtual/index.js';
|
|
9
|
+
|
|
10
|
+
/* eslint-disable import/prefer-default-export */
|
|
11
|
+
function invariant(condition, message) {
|
|
12
|
+
if (condition) return;
|
|
13
|
+
var error = new Error("loadable: " + message);
|
|
14
|
+
error.framesToPop = 1;
|
|
15
|
+
error.name = 'Invariant Violation';
|
|
16
|
+
throw error;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
var Context = /*#__PURE__*/
|
|
20
|
+
React.createContext();
|
|
21
|
+
|
|
22
|
+
var LOADABLE_SHARED = {
|
|
23
|
+
initialChunks: {}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var STATUS_PENDING = 'PENDING';
|
|
27
|
+
var STATUS_RESOLVED = 'RESOLVED';
|
|
28
|
+
var STATUS_REJECTED = 'REJECTED';
|
|
29
|
+
|
|
30
|
+
function resolveConstructor(ctor) {
|
|
31
|
+
if (typeof ctor === 'function') {
|
|
32
|
+
return {
|
|
33
|
+
requireAsync: ctor,
|
|
34
|
+
resolve: function resolve() {
|
|
35
|
+
return undefined;
|
|
36
|
+
},
|
|
37
|
+
chunkName: function chunkName() {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return ctor;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
var withChunkExtractor = function withChunkExtractor(Component) {
|
|
47
|
+
var LoadableWithChunkExtractor = function LoadableWithChunkExtractor(props) {
|
|
48
|
+
return React.createElement(Context.Consumer, null, function (extractor) {
|
|
49
|
+
return React.createElement(Component, Object.assign({
|
|
50
|
+
__chunkExtractor: extractor
|
|
51
|
+
}, props));
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
if (Component.displayName) {
|
|
56
|
+
LoadableWithChunkExtractor.displayName = Component.displayName + "WithChunkExtractor";
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return LoadableWithChunkExtractor;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
var identity = function identity(v) {
|
|
63
|
+
return v;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
function createLoadable(_ref) {
|
|
67
|
+
var _ref$defaultResolveCo = _ref.defaultResolveComponent,
|
|
68
|
+
defaultResolveComponent = _ref$defaultResolveCo === void 0 ? identity : _ref$defaultResolveCo,
|
|
69
|
+
_render = _ref.render,
|
|
70
|
+
onLoad = _ref.onLoad;
|
|
71
|
+
|
|
72
|
+
function loadable(loadableConstructor, options) {
|
|
73
|
+
if (options === void 0) {
|
|
74
|
+
options = {};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
var ctor = resolveConstructor(loadableConstructor);
|
|
78
|
+
var cache = {};
|
|
79
|
+
/**
|
|
80
|
+
* Cachekey represents the component to be loaded
|
|
81
|
+
* if key changes - component has to be reloaded
|
|
82
|
+
* @param props
|
|
83
|
+
* @returns {null|Component}
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
function _getCacheKey(props) {
|
|
87
|
+
if (options.cacheKey) {
|
|
88
|
+
return options.cacheKey(props);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if (ctor.resolve) {
|
|
92
|
+
return ctor.resolve(props);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return 'static';
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Resolves loaded `module` to a specific `Component
|
|
99
|
+
* @param module
|
|
100
|
+
* @param props
|
|
101
|
+
* @param Loadable
|
|
102
|
+
* @returns Component
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
function resolve(module, props, Loadable) {
|
|
107
|
+
var Component = options.resolveComponent ? options.resolveComponent(module, props) : defaultResolveComponent(module);
|
|
108
|
+
|
|
109
|
+
if (options.resolveComponent && !reactIs.exports.isValidElementType(Component)) {
|
|
110
|
+
throw new Error("resolveComponent returned something that is not a React component!");
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
hoistNonReactStatics_cjs(Loadable, Component, {
|
|
114
|
+
preload: true
|
|
115
|
+
});
|
|
116
|
+
return Component;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
var cachedLoad = function cachedLoad(props) {
|
|
120
|
+
var cacheKey = _getCacheKey(props);
|
|
121
|
+
|
|
122
|
+
var promise = cache[cacheKey];
|
|
123
|
+
|
|
124
|
+
if (!promise || promise.status === STATUS_REJECTED) {
|
|
125
|
+
promise = ctor.requireAsync(props);
|
|
126
|
+
promise.status = STATUS_PENDING;
|
|
127
|
+
cache[cacheKey] = promise;
|
|
128
|
+
promise.then(function () {
|
|
129
|
+
promise.status = STATUS_RESOLVED;
|
|
130
|
+
}, function (error) {
|
|
131
|
+
console.error('loadable-components: failed to asynchronously load component', {
|
|
132
|
+
fileName: ctor.resolve(props),
|
|
133
|
+
chunkName: ctor.chunkName(props),
|
|
134
|
+
error: error ? error.message : error
|
|
135
|
+
});
|
|
136
|
+
promise.status = STATUS_REJECTED;
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
return promise;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
var InnerLoadable =
|
|
144
|
+
/*#__PURE__*/
|
|
145
|
+
function (_React$Component) {
|
|
146
|
+
_inheritsLoose(InnerLoadable, _React$Component);
|
|
147
|
+
|
|
148
|
+
InnerLoadable.getDerivedStateFromProps = function getDerivedStateFromProps(props, state) {
|
|
149
|
+
var cacheKey = _getCacheKey(props);
|
|
150
|
+
|
|
151
|
+
return _extends({}, state, {
|
|
152
|
+
cacheKey: cacheKey,
|
|
153
|
+
// change of a key triggers loading state automatically
|
|
154
|
+
loading: state.loading || state.cacheKey !== cacheKey
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
function InnerLoadable(props) {
|
|
159
|
+
var _this;
|
|
160
|
+
|
|
161
|
+
_this = _React$Component.call(this, props) || this;
|
|
162
|
+
_this.state = {
|
|
163
|
+
result: null,
|
|
164
|
+
error: null,
|
|
165
|
+
loading: true,
|
|
166
|
+
cacheKey: _getCacheKey(props)
|
|
167
|
+
};
|
|
168
|
+
invariant(!props.__chunkExtractor || ctor.requireSync, 'SSR requires `@loadable/babel-plugin`, please install it'); // Server-side
|
|
169
|
+
|
|
170
|
+
if (props.__chunkExtractor) {
|
|
171
|
+
// This module has been marked with no SSR
|
|
172
|
+
if (options.ssr === false) {
|
|
173
|
+
return _assertThisInitialized(_this);
|
|
174
|
+
} // We run load function, we assume that it won't fail and that it
|
|
175
|
+
// triggers a synchronous loading of the module
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
ctor.requireAsync(props)["catch"](function () {
|
|
179
|
+
return null;
|
|
180
|
+
}); // So we can require now the module synchronously
|
|
181
|
+
|
|
182
|
+
_this.loadSync();
|
|
183
|
+
|
|
184
|
+
props.__chunkExtractor.addChunk(ctor.chunkName(props));
|
|
185
|
+
|
|
186
|
+
return _assertThisInitialized(_this);
|
|
187
|
+
} // Client-side with `isReady` method present (SSR probably)
|
|
188
|
+
// If module is already loaded, we use a synchronous loading
|
|
189
|
+
// Only perform this synchronous loading if the component has not
|
|
190
|
+
// been marked with no SSR, else we risk hydration mismatches
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
if (options.ssr !== false && ( // is ready - was loaded in this session
|
|
194
|
+
ctor.isReady && ctor.isReady(props) || // is ready - was loaded during SSR process
|
|
195
|
+
ctor.chunkName && LOADABLE_SHARED.initialChunks[ctor.chunkName(props)])) {
|
|
196
|
+
_this.loadSync();
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
return _this;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
var _proto = InnerLoadable.prototype;
|
|
203
|
+
|
|
204
|
+
_proto.componentDidMount = function componentDidMount() {
|
|
205
|
+
this.mounted = true; // retrieve loading promise from a global cache
|
|
206
|
+
|
|
207
|
+
var cachedPromise = this.getCache(); // if promise exists, but rejected - clear cache
|
|
208
|
+
|
|
209
|
+
if (cachedPromise && cachedPromise.status === STATUS_REJECTED) {
|
|
210
|
+
this.setCache();
|
|
211
|
+
} // component might be resolved synchronously in the constructor
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
if (this.state.loading) {
|
|
215
|
+
this.loadAsync();
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
_proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {
|
|
220
|
+
// Component has to be reloaded on cacheKey change
|
|
221
|
+
if (prevState.cacheKey !== this.state.cacheKey) {
|
|
222
|
+
this.loadAsync();
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
227
|
+
this.mounted = false;
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
_proto.safeSetState = function safeSetState(nextState, callback) {
|
|
231
|
+
if (this.mounted) {
|
|
232
|
+
this.setState(nextState, callback);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* returns a cache key for the current props
|
|
237
|
+
* @returns {Component|string}
|
|
238
|
+
*/
|
|
239
|
+
;
|
|
240
|
+
|
|
241
|
+
_proto.getCacheKey = function getCacheKey() {
|
|
242
|
+
return _getCacheKey(this.props);
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* access the persistent cache
|
|
246
|
+
*/
|
|
247
|
+
;
|
|
248
|
+
|
|
249
|
+
_proto.getCache = function getCache() {
|
|
250
|
+
return cache[this.getCacheKey()];
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* sets the cache value. If called without value sets it as undefined
|
|
254
|
+
*/
|
|
255
|
+
;
|
|
256
|
+
|
|
257
|
+
_proto.setCache = function setCache(value) {
|
|
258
|
+
if (value === void 0) {
|
|
259
|
+
value = undefined;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
cache[this.getCacheKey()] = value;
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
_proto.triggerOnLoad = function triggerOnLoad() {
|
|
266
|
+
var _this2 = this;
|
|
267
|
+
|
|
268
|
+
if (onLoad) {
|
|
269
|
+
setTimeout(function () {
|
|
270
|
+
onLoad(_this2.state.result, _this2.props);
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Synchronously loads component
|
|
276
|
+
* target module is expected to already exists in the module cache
|
|
277
|
+
* or be capable to resolve synchronously (webpack target=node)
|
|
278
|
+
*/
|
|
279
|
+
;
|
|
280
|
+
|
|
281
|
+
_proto.loadSync = function loadSync() {
|
|
282
|
+
// load sync is expecting component to be in the "loading" state already
|
|
283
|
+
// sounds weird, but loading=true is the initial state of InnerLoadable
|
|
284
|
+
if (!this.state.loading) return;
|
|
285
|
+
|
|
286
|
+
try {
|
|
287
|
+
var loadedModule = ctor.requireSync(this.props);
|
|
288
|
+
var result = resolve(loadedModule, this.props, Loadable);
|
|
289
|
+
this.state.result = result;
|
|
290
|
+
this.state.loading = false;
|
|
291
|
+
} catch (error) {
|
|
292
|
+
console.error('loadable-components: failed to synchronously load component, which expected to be available', {
|
|
293
|
+
fileName: ctor.resolve(this.props),
|
|
294
|
+
chunkName: ctor.chunkName(this.props),
|
|
295
|
+
error: error ? error.message : error
|
|
296
|
+
});
|
|
297
|
+
this.state.error = error;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Asynchronously loads a component.
|
|
302
|
+
*/
|
|
303
|
+
;
|
|
304
|
+
|
|
305
|
+
_proto.loadAsync = function loadAsync() {
|
|
306
|
+
var _this3 = this;
|
|
307
|
+
|
|
308
|
+
var promise = this.resolveAsync();
|
|
309
|
+
promise.then(function (loadedModule) {
|
|
310
|
+
var result = resolve(loadedModule, _this3.props, Loadable);
|
|
311
|
+
|
|
312
|
+
_this3.safeSetState({
|
|
313
|
+
result: result,
|
|
314
|
+
loading: false
|
|
315
|
+
}, function () {
|
|
316
|
+
return _this3.triggerOnLoad();
|
|
317
|
+
});
|
|
318
|
+
})["catch"](function (error) {
|
|
319
|
+
return _this3.safeSetState({
|
|
320
|
+
error: error,
|
|
321
|
+
loading: false
|
|
322
|
+
});
|
|
323
|
+
});
|
|
324
|
+
return promise;
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Asynchronously resolves(not loads) a component.
|
|
328
|
+
* Note - this function does not change the state
|
|
329
|
+
*/
|
|
330
|
+
;
|
|
331
|
+
|
|
332
|
+
_proto.resolveAsync = function resolveAsync() {
|
|
333
|
+
var _this$props = this.props;
|
|
334
|
+
_this$props.__chunkExtractor;
|
|
335
|
+
_this$props.forwardedRef;
|
|
336
|
+
var props = _objectWithoutPropertiesLoose(_this$props, ["__chunkExtractor", "forwardedRef"]);
|
|
337
|
+
|
|
338
|
+
return cachedLoad(props);
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
_proto.render = function render() {
|
|
342
|
+
var _this$props2 = this.props,
|
|
343
|
+
forwardedRef = _this$props2.forwardedRef,
|
|
344
|
+
propFallback = _this$props2.fallback;
|
|
345
|
+
_this$props2.__chunkExtractor;
|
|
346
|
+
var props = _objectWithoutPropertiesLoose(_this$props2, ["forwardedRef", "fallback", "__chunkExtractor"]);
|
|
347
|
+
|
|
348
|
+
var _this$state = this.state,
|
|
349
|
+
error = _this$state.error,
|
|
350
|
+
loading = _this$state.loading,
|
|
351
|
+
result = _this$state.result;
|
|
352
|
+
|
|
353
|
+
if (options.suspense) {
|
|
354
|
+
var cachedPromise = this.getCache() || this.loadAsync();
|
|
355
|
+
|
|
356
|
+
if (cachedPromise.status === STATUS_PENDING) {
|
|
357
|
+
throw this.loadAsync();
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
if (error) {
|
|
362
|
+
throw error;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
var fallback = propFallback || options.fallback || null;
|
|
366
|
+
|
|
367
|
+
if (loading) {
|
|
368
|
+
return fallback;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
return _render({
|
|
372
|
+
fallback: fallback,
|
|
373
|
+
result: result,
|
|
374
|
+
options: options,
|
|
375
|
+
props: _extends({}, props, {
|
|
376
|
+
ref: forwardedRef
|
|
377
|
+
})
|
|
378
|
+
});
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
return InnerLoadable;
|
|
382
|
+
}(React.Component);
|
|
383
|
+
|
|
384
|
+
var EnhancedInnerLoadable = withChunkExtractor(InnerLoadable);
|
|
385
|
+
var Loadable = React.forwardRef(function (props, ref) {
|
|
386
|
+
return React.createElement(EnhancedInnerLoadable, Object.assign({
|
|
387
|
+
forwardedRef: ref
|
|
388
|
+
}, props));
|
|
389
|
+
});
|
|
390
|
+
Loadable.displayName = 'Loadable'; // In future, preload could use `<link rel="preload">`
|
|
391
|
+
|
|
392
|
+
Loadable.preload = function (props) {
|
|
393
|
+
Loadable.load(props);
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
Loadable.load = function (props) {
|
|
397
|
+
return cachedLoad(props);
|
|
398
|
+
};
|
|
399
|
+
|
|
400
|
+
return Loadable;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
function lazy(ctor, options) {
|
|
404
|
+
return loadable(ctor, _extends({}, options, {
|
|
405
|
+
suspense: true
|
|
406
|
+
}));
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
return {
|
|
410
|
+
loadable: loadable,
|
|
411
|
+
lazy: lazy
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
function defaultResolveComponent(loadedModule) {
|
|
416
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
417
|
+
return loadedModule.__esModule ? loadedModule["default"] : loadedModule["default"] || loadedModule;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
421
|
+
|
|
422
|
+
var _createLoadable =
|
|
423
|
+
/*#__PURE__*/
|
|
424
|
+
createLoadable({
|
|
425
|
+
defaultResolveComponent: defaultResolveComponent,
|
|
426
|
+
render: function render(_ref) {
|
|
427
|
+
var Component = _ref.result,
|
|
428
|
+
props = _ref.props;
|
|
429
|
+
return React.createElement(Component, props);
|
|
430
|
+
}
|
|
431
|
+
}),
|
|
432
|
+
loadable = _createLoadable.loadable,
|
|
433
|
+
lazy = _createLoadable.lazy;
|
|
434
|
+
|
|
435
|
+
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
436
|
+
|
|
437
|
+
var _createLoadable$1 =
|
|
438
|
+
/*#__PURE__*/
|
|
439
|
+
createLoadable({
|
|
440
|
+
onLoad: function onLoad(result, props) {
|
|
441
|
+
if (result && props.forwardedRef) {
|
|
442
|
+
if (typeof props.forwardedRef === 'function') {
|
|
443
|
+
props.forwardedRef(result);
|
|
444
|
+
} else {
|
|
445
|
+
props.forwardedRef.current = result;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
render: function render(_ref) {
|
|
450
|
+
var result = _ref.result,
|
|
451
|
+
props = _ref.props;
|
|
452
|
+
|
|
453
|
+
if (props.children) {
|
|
454
|
+
return props.children(result);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
return null;
|
|
458
|
+
}
|
|
459
|
+
}),
|
|
460
|
+
loadable$1 = _createLoadable$1.loadable,
|
|
461
|
+
lazy$1 = _createLoadable$1.lazy;
|
|
462
|
+
|
|
463
|
+
/* eslint-disable no-underscore-dangle */
|
|
464
|
+
var loadable$2 = loadable;
|
|
465
|
+
loadable$2.lib = loadable$1;
|
|
466
|
+
var lazy$2 = lazy;
|
|
467
|
+
lazy$2.lib = lazy$1;
|
|
468
|
+
|
|
469
|
+
export { loadable$2 as default, lazy$2 as lazy };
|
|
470
|
+
//# sourceMappingURL=loadable.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import '../../react-is/index.js';
|
|
2
|
+
import { r as reactIs$1 } from '../../../_virtual/index.js';
|
|
3
|
+
|
|
4
|
+
var reactIs = reactIs$1.exports;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Copyright 2015, Yahoo! Inc.
|
|
8
|
+
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
9
|
+
*/
|
|
10
|
+
var REACT_STATICS = {
|
|
11
|
+
childContextTypes: true,
|
|
12
|
+
contextType: true,
|
|
13
|
+
contextTypes: true,
|
|
14
|
+
defaultProps: true,
|
|
15
|
+
displayName: true,
|
|
16
|
+
getDefaultProps: true,
|
|
17
|
+
getDerivedStateFromError: true,
|
|
18
|
+
getDerivedStateFromProps: true,
|
|
19
|
+
mixins: true,
|
|
20
|
+
propTypes: true,
|
|
21
|
+
type: true
|
|
22
|
+
};
|
|
23
|
+
var KNOWN_STATICS = {
|
|
24
|
+
name: true,
|
|
25
|
+
length: true,
|
|
26
|
+
prototype: true,
|
|
27
|
+
caller: true,
|
|
28
|
+
callee: true,
|
|
29
|
+
arguments: true,
|
|
30
|
+
arity: true
|
|
31
|
+
};
|
|
32
|
+
var FORWARD_REF_STATICS = {
|
|
33
|
+
'$$typeof': true,
|
|
34
|
+
render: true,
|
|
35
|
+
defaultProps: true,
|
|
36
|
+
displayName: true,
|
|
37
|
+
propTypes: true
|
|
38
|
+
};
|
|
39
|
+
var MEMO_STATICS = {
|
|
40
|
+
'$$typeof': true,
|
|
41
|
+
compare: true,
|
|
42
|
+
defaultProps: true,
|
|
43
|
+
displayName: true,
|
|
44
|
+
propTypes: true,
|
|
45
|
+
type: true
|
|
46
|
+
};
|
|
47
|
+
var TYPE_STATICS = {};
|
|
48
|
+
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
49
|
+
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
50
|
+
|
|
51
|
+
function getStatics(component) {
|
|
52
|
+
// React v16.11 and below
|
|
53
|
+
if (reactIs.isMemo(component)) {
|
|
54
|
+
return MEMO_STATICS;
|
|
55
|
+
} // React v16.12 and above
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
var defineProperty = Object.defineProperty;
|
|
62
|
+
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
63
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
64
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
65
|
+
var getPrototypeOf = Object.getPrototypeOf;
|
|
66
|
+
var objectPrototype = Object.prototype;
|
|
67
|
+
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
68
|
+
if (typeof sourceComponent !== 'string') {
|
|
69
|
+
// don't hoist over string (html) components
|
|
70
|
+
if (objectPrototype) {
|
|
71
|
+
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
72
|
+
|
|
73
|
+
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
74
|
+
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
var keys = getOwnPropertyNames(sourceComponent);
|
|
79
|
+
|
|
80
|
+
if (getOwnPropertySymbols) {
|
|
81
|
+
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
var targetStatics = getStatics(targetComponent);
|
|
85
|
+
var sourceStatics = getStatics(sourceComponent);
|
|
86
|
+
|
|
87
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
88
|
+
var key = keys[i];
|
|
89
|
+
|
|
90
|
+
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
91
|
+
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
92
|
+
|
|
93
|
+
try {
|
|
94
|
+
// Avoid failures from read-only properties
|
|
95
|
+
defineProperty(targetComponent, key, descriptor);
|
|
96
|
+
} catch (e) {}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return targetComponent;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
var hoistNonReactStatics_cjs = hoistNonReactStatics;
|
|
105
|
+
|
|
106
|
+
export { hoistNonReactStatics_cjs as default };
|
|
107
|
+
//# sourceMappingURL=hoist-non-react-statics.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|